/* ================= TOKENS ================= */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --sidebar-w: 300px; --list-w: 400px;

  --accent: #E8795A; --accent-2: #F29A7E; --accent-ink: #fff;
  --c-blue: #5B8DEF; --c-green: #4FB286; --c-pink: #E06C9F; --c-yellow: #E3B341;
  --c-purple: #9B7BE0; --c-red: #E5604D; --c-teal: #3FB0B0;
}
/* Dark (default, ngikutin Notes) */
[data-mode="dark"] {
  --bg: #1f1f1f; --bg-side: #262626; --bg-list: #222222; --surface: #2b2b2b; --surface-2: #323232;
  --border: #383838; --border-2: #444; --text: #f2f0ee; --text-2: #b9b5b1; --text-3: #85817d;
  --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --glass: rgba(30,30,30,.82); color-scheme: dark;
}
[data-mode="light"] {
  --bg: #fbf8f5; --bg-side: #f3eee9; --bg-list: #f7f3ef; --surface: #ffffff; --surface-2: #f4efea;
  --border: #e8e1da; --border-2: #dcd3ca; --text: #2a2522; --text-2: #5e5650; --text-3: #978e87;
  --shadow: 0 10px 30px rgba(80,50,30,.08); --shadow-lg: 0 24px 60px rgba(80,50,30,.16);
  --glass: rgba(255,255,255,.85); color-scheme: light;
}
/* Tema warna */
[data-theme="kopisusu"] { --accent: #E8795A; --accent-2: #F29A7E; }
[data-theme="matcha"]   { --accent: #5FA36E; --accent-2: #86C293; }
[data-theme="taro"]     { --accent: #9473D9; --accent-2: #B39AE8; }
[data-theme="laut"]     { --accent: #3F86E8; --accent-2: #74A8F0; }
[data-theme="stroberi"] { --accent: #E25C86; --accent-2: #EE8BAA; }
[data-theme="lemon"]    { --accent: #D4A21C; --accent-2: #E8C25A; --accent-ink: #2a2214; }
[data-theme="mint"]     { --accent: #2BA89A; --accent-2: #5CC6BA; }
[data-theme="senja"]    { --accent: #E0623A; --accent-2: #B04ECF; }
[data-theme="senja"] .btn-primary, [data-theme="senja"] .brand-logo, [data-theme="senja"] .fab-music { background: linear-gradient(135deg, #F07A3C, #B04ECF); }

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.hidden { display: none !important; }

/* ================= LAYOUT ================= */
.app {
  display: grid; height: 100vh; height: 100dvh;
  grid-template-columns: var(--sidebar-w) var(--list-w) 1fr;
  transition: grid-template-columns .45s var(--ease);
}
.app.no-list { grid-template-columns: var(--sidebar-w) 0 1fr; }
.app.side-collapsed { grid-template-columns: 76px var(--list-w) 1fr; }
.app.side-collapsed.no-list { grid-template-columns: 76px 0 1fr; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--bg-side); border-right: 1px solid var(--border); display: flex; flex-direction: column;
  padding: 18px 12px 14px; min-width: 0; overflow: hidden; transition: background-color .4s var(--ease);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 18px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -.5px; flex: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .4s var(--ease-spring), background .4s;
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-text { min-width: 0; flex: 1; }
.brand-text b { display: block; font-size: 17px; letter-spacing: -.2px; }
.brand-text small { color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2);
  transition: background .2s, color .2s, transform .2s var(--ease-spring);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.9); }
.search-row { display: flex; gap: 8px; padding: 0 2px 16px; }
.search-btn {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-3); text-align: left;
  transition: border-color .2s, background .2s; min-width: 0;
}
.search-btn:hover { border-color: var(--border-2); }
.search-btn span { flex: 1; white-space: nowrap; overflow: hidden; }
kbd { font-family: var(--font); font-size: 11.5px; border: 1px solid var(--border-2); border-radius: 6px; padding: 1px 6px; color: var(--text-2); }
.random-btn {
  width: 46px; height: 46px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent); transition: transform .3s var(--ease-spring), background .2s;
}
.random-btn:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); transform: rotate(-12deg); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .side-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); color: var(--text-2);
  font-weight: 600; font-size: 15.5px; position: relative; transition: background .2s, color .2s; white-space: nowrap;
}
.nav a:hover, .side-item:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); }
.nav a.active .ic { color: var(--text); }
.nav .count { margin-left: auto; font-size: 13px; color: var(--text-3); font-weight: 600; }
.nav .badge { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
  min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; }
.side-section { display: flex; align-items: center; justify-content: space-between; padding: 22px 12px 8px;
  color: var(--text-3); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }
.side-albums { flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.side-albums a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r); font-weight: 600; color: var(--text-2); transition: background .2s, color .2s, padding .25s var(--ease); }
.side-albums a:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); color: var(--text); padding-left: 16px; }
.side-albums a.active { background: var(--surface-2); color: var(--text); }
.side-albums a span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-albums .count { font-size: 13px; color: var(--text-3); }
.side-foot { border-top: 1px solid var(--border); margin: 10px -12px 0; padding: 12px 12px 0; display: flex; align-items: center; gap: 4px; }
.side-foot .side-item { flex: 1; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 0 0 6px; border-radius: var(--r); font-size: 13px; color: var(--text-3); }
.me-chip b { color: var(--text); }
.side-collapsed .brand-text, .side-collapsed .search-btn span, .side-collapsed .search-btn kbd, .side-collapsed .nav span,
.side-collapsed .nav .count, .side-collapsed .side-section, .side-collapsed .side-albums span:not(.dot), .side-collapsed .side-item span,
.side-collapsed .me-chip, .side-collapsed .random-btn, .side-collapsed #collapseBtn { display: none; }
.side-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.side-collapsed .search-btn { justify-content: center; padding: 0; }
.side-collapsed .nav a, .side-collapsed .side-albums a { justify-content: center; }
.side-collapsed .side-foot { flex-direction: column; }
.side-collapsed .nav .badge { position: absolute; top: 2px; right: 6px; min-width: 18px; height: 18px; font-size: 10px; }

/* ---------- List panel ---------- */
.list-panel {
  background: var(--bg-list); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  transition: background-color .4s var(--ease);
}
.no-list .list-panel { border: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 20px 18px 14px; }
.panel-head h1 { font-size: 23px; margin: 0; letter-spacing: -.5px; line-height: 1.2; }
.panel-head .sub { font-size: 14px; color: var(--text-2); }
.panel-head .grow { flex: 1; min-width: 0; }
.list-scroll { flex: 1; overflow-y: auto; padding: 4px 14px 120px; }
.group-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: 1px; font-weight: 700; color: var(--text-3); margin: 22px 6px 10px; }
.group-label.accent { color: var(--accent); }

/* ---------- Main ---------- */
.main { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.main-scroll { flex: 1; overflow-y: auto; padding: 28px 36px 130px; }
.main-top { display: flex; justify-content: flex-end; padding: 18px 22px 0; position: absolute; right: 0; top: 0; z-index: 3; gap: 6px; }
.mobile-bar { display: none; }

/* ================= COMPONENTS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r);
  font-weight: 700; font-size: 15px; white-space: nowrap; border: 1px solid var(--border-2); background: var(--surface);
  transition: transform .2s var(--ease-spring), background .2s, border-color .2s, box-shadow .25s, filter .2s;
}
.btn:hover { border-color: var(--text-3); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.06); border-color: transparent; box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-danger { color: #ec6a5c; }
.btn-danger:hover { background: rgba(236,106,92,.12); border-color: rgba(236,106,92,.4); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s, background-color .4s;
}
.card.hoverable:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.list-card {
  display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--border); margin-bottom: 8px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s, background-color .3s;
}
.list-card::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease); }
.list-card:hover { border-color: var(--border-2); transform: translateX(3px); }
.list-card.active { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.list-card.active::before { transform: scaleY(1); }
.list-card .thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-2); }
.list-card .info { flex: 1; min-width: 0; }
.list-card .title { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--c, var(--text-3)) 14%, transparent); color: var(--c, var(--text-2));
  border: 1px solid color-mix(in srgb, var(--c, var(--text-3)) 22%, transparent);
}
.chip .ic { width: 14px; height: 14px; }
.chip.accent { --c: var(--accent); } .chip.blue { --c: var(--c-blue); } .chip.green { --c: var(--c-green); } .chip.yellow { --c: var(--c-yellow); }
.chip.pink { --c: var(--c-pink); } .chip.purple { --c: var(--c-purple); }

.col-accent { color: var(--accent); } .col-blue { color: var(--c-blue); } .col-green { color: var(--c-green); } .col-pink { color: var(--c-pink); }
.col-yellow { color: var(--c-yellow); } .col-purple { color: var(--c-purple); } .col-red { color: var(--c-red); } .col-teal { color: var(--c-teal); }
.bg-dot-accent { background: var(--accent); } .bg-dot-blue { background: var(--c-blue); } .bg-dot-green { background: var(--c-green); } .bg-dot-pink { background: var(--c-pink); }
.bg-dot-yellow { background: var(--c-yellow); } .bg-dot-purple { background: var(--c-purple); } .bg-dot-red { background: var(--c-red); } .bg-dot-teal { background: var(--c-teal); }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800;
  color: #fff; font-size: 16px; background: var(--av, var(--accent)); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Greeting card */
.greet { display: flex; align-items: center; gap: 16px; padding: 22px; }
.greet h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.3px; }
.greet p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring > svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring b .ic { width: 26px; height: 26px; color: var(--accent); }
.ring .track { stroke: var(--border-2); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; text-align: center; line-height: 1.05; }
.ring b small { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-2); }

/* Empty state ala Notes */
.empty { height: 100%; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 30px; }
.empty-art { position: relative; width: 170px; height: 140px; margin-bottom: 26px; }
.empty-art div { position: absolute; width: 120px; height: 112px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-2); left: 25px; top: 14px; }
.empty-art div:nth-child(1) { transform: rotate(-9deg) translateX(-20px); opacity: .7; }
.empty-art div:nth-child(2) { transform: rotate(8deg) translateX(20px); opacity: .7; }
.empty-art div:nth-child(3) { display: grid; place-items: center; color: var(--accent); animation: floaty 4s ease-in-out infinite; box-shadow: var(--shadow); }
.empty h3 { margin: 0; font-size: 20px; }
.empty p { margin: 0 0 18px; color: var(--text-2); }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* Photo grid (masonry pakai columns) */
.album-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.album-head h1 { margin: 0; font-size: 32px; letter-spacing: -.8px; line-height: 1.15; }
.album-head .grow { flex: 1; min-width: 240px; }
.album-head .desc { color: var(--text-2); margin-top: 6px; max-width: 640px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 3px; position: relative; }
.seg button { height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: color .2s, background .25s; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.masonry { columns: 4 220px; column-gap: 14px; }
.ph {
  break-inside: avoid; margin-bottom: 14px; border-radius: 14px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--surface-2);
  transform: translateZ(0); transition: transform .4s var(--ease), box-shadow .4s;
}
.ph img { width: 100%; height: auto; transition: transform .7s var(--ease), opacity .5s; opacity: 0; }
.ph img.loaded { opacity: 1; }
.ph:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ph:hover img { transform: scale(1.05); }
.ph .meta { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; display: flex; gap: 10px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.ph:hover .meta { opacity: 1; transform: none; }
.ph .meta span { display: inline-flex; align-items: center; gap: 4px; }
.ph .meta .cap { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-hint { position: absolute; inset: 12px; z-index: 20; border: 2px dashed var(--accent); border-radius: var(--r-xl); display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--glass)); backdrop-filter: blur(6px); font-size: 20px; font-weight: 700; color: var(--accent);
  opacity: 0; pointer-events: none; transition: opacity .2s; }
.main.dragging .drop-hint { opacity: 1; }
.upload-box { border: 1.5px dashed var(--border-2); border-radius: var(--r-lg); padding: 30px; text-align: center; color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s; }
.upload-box:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }

/* Home */
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; padding: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 40%, var(--surface)), var(--surface)); border: 1px solid var(--border);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7)); }
.hero .hero-in { position: relative; z-index: 1; color: #fff; display: flex; align-items: flex-end; gap: 16px; width: 100%; flex-wrap: wrap; }
.hero h2 { margin: 0; font-size: 28px; letter-spacing: -.5px; }
.hero p { margin: 4px 0 0; opacity: .85; }
.hero .grow { flex: 1; min-width: 200px; }
@keyframes kenburns { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
.stat { padding: 16px 18px; }
.stat b { font-size: 26px; letter-spacing: -.5px; display: block; }
.stat span { color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.section-title .grow { flex: 1; }
.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.strip .sq { aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.strip .sq img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.strip .sq:hover img { transform: scale(1.08); }

/* Birthday list */
.bday { display: flex; gap: 12px; align-items: center; }
.bday .days { margin-left: auto; text-align: right; font-weight: 800; font-size: 18px; }
.bday .days small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.bday.today { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }

/* Member profile */
.profile-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 34px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--av) 35%, transparent), transparent 60%), var(--surface); border: 1px solid var(--border); }
.profile-hero .big-av { width: 150px; height: 150px; font-size: 52px; box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px color-mix(in srgb, var(--av) 60%, transparent), var(--shadow-lg); }
.profile-hero h1 { margin: 0; font-size: 36px; letter-spacing: -1px; line-height: 1.1; }
.profile-hero .nick { color: var(--text-2); font-size: 16px; margin-top: 4px; }
.profile-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 14px; }
.profile-grid h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--text-3); letter-spacing: 1px; text-transform: uppercase; }
.bio { white-space: pre-wrap; font-size: 15.5px; line-height: 1.7; }
.theme-song { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 14px; }
.eq { display: inline-flex; gap: 3px; height: 18px; align-items: flex-end; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; }
.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; } .playing .eq i:nth-child(3) { animation-delay: -.6s; } .playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }

/* Songs */
.song-row { cursor: pointer; }
.song-art { width: 50px; height: 50px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.song-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 60%); }
.song-row .eq { opacity: 0; transition: opacity .3s; }
.song-row.now .eq { opacity: 1; }
.song-row.now { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.now-big { max-width: 520px; margin: 30px auto 0; text-align: center; }
.vinyl { width: min(320px, 70vw); aspect-ratio: 1; margin: 0 auto 28px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #151515 0 2px, #1d1d1d 2px 4px); box-shadow: var(--shadow-lg); animation: spin 8s linear infinite; animation-play-state: paused; }
.vinyl .label { width: 38%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 26px; box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
.vinyl::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); position: absolute; }
.is-playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.now-big h2 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.play-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .25s var(--ease-spring); }
.play-btn:hover { transform: scale(1.07); } .play-btn:active { transform: scale(.92); }
.play-btn .ic { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.toggle-on { color: var(--accent) !important; }
.seek { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 5px; border-radius: 5px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--border-2) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transition: transform .2s; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.25); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }

/* Floating music button + popup */
.fab-music {
  position: fixed; right: 26px; bottom: 26px; z-index: 50; width: 72px; height: 72px; border-radius: 22px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 14px 34px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .35s var(--ease-spring), border-radius .35s var(--ease), background .4s;
}
.fab-music:hover { transform: translateY(-3px) scale(1.04); }
.fab-music .ic { width: 30px; height: 30px; }
.fab-music.playing { border-radius: 50%; }
.fab-music.playing::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: pulse 1.8s ease-out infinite; }
.fab-music.playing .ic { animation: spin 6s linear infinite; }
@keyframes pulse { from { transform: scale(.9); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }
.player-pop {
  position: fixed; right: 26px; bottom: 112px; z-index: 49; width: 360px; max-width: calc(100vw - 32px); max-height: calc(100vh - 140px); display: flex; flex-direction: column;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--border-2); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 18px;
  transform-origin: bottom right; transform: scale(.85) translateY(20px); opacity: 0; pointer-events: none; transition: transform .45s var(--ease-spring), opacity .25s;
}
.player-pop.open { transform: none; opacity: 1; pointer-events: auto; }
.pp-now { display: flex; gap: 14px; align-items: center; }
.pp-now .song-art { width: 64px; height: 64px; border-radius: 16px; }
.pp-now .t { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-queue { margin-top: 14px; overflow-y: auto; border-top: 1px solid var(--border); padding-top: 10px; flex: 1; min-height: 0; }
.pp-queue button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; text-align: left; font-size: 14px; transition: background .2s; }
.pp-queue button:hover { background: var(--surface-2); }
.pp-queue button.now { color: var(--accent); font-weight: 700; }
.pp-queue .song-art { width: 34px; height: 34px; border-radius: 9px; }
.vol { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-3); }

/* Overlay / modal */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px;
  animation: fadeIn .25s var(--ease) both; }
.overlay.closing { animation: fadeOut .2s ease both; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-lg); animation: popIn .45s var(--ease-spring) both; }
.closing .modal { animation: popOut .2s ease both; }
.modal h3 { margin: 0 0 4px; font-size: 20px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.color-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.color-pick button { width: 30px; height: 30px; border-radius: 50%; transition: transform .25s var(--ease-spring), box-shadow .2s; }
.color-pick button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px currentColor; transform: scale(1.1); }

/* Search palette */
.palette { max-width: 600px; padding: 0; align-self: start; margin-top: 10vh; }
.palette .input { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; height: 60px; font-size: 17px; background: transparent; box-shadow: none; padding: 0 22px; }
.palette .res { padding: 10px; max-height: 60vh; overflow-y: auto; }
.palette .res a, .palette .res button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; width: 100%; text-align: left; }
.palette .res a:hover, .palette .res button:hover, .palette .res .sel { background: var(--surface-2); }
.palette .res img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

/* Theme picker */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.theme-opt { border: 1px solid var(--border); border-radius: var(--r); padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; transition: border-color .2s, transform .25s var(--ease-spring), background .2s; }
.theme-opt:hover { transform: translateY(-2px); border-color: var(--border-2); }
.theme-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.theme-opt i { width: 34px; height: 34px; border-radius: 50%; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 1fr 380px; background: rgba(8,8,8,.92); backdrop-filter: blur(10px); animation: fadeIn .3s both; }
.lightbox.closing { animation: fadeOut .2s both; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 30px 80px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 60px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: zoomIn .45s var(--ease) both; user-select: none; }
.lb-stage img.swap-l { animation: slideL .4s var(--ease) both; } .lb-stage img.swap-r { animation: slideR .4s var(--ease) both; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav.l { left: 18px; } .lb-nav.r { right: 18px; }
.lb-close { position: absolute; top: 16px; left: 16px; color: #fff; background: rgba(255,255,255,.1); }
.lb-close:hover { background: rgba(255,255,255,.2); color: #fff; }
.lb-side { background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; animation: slideInR .45s var(--ease) both; }
.lb-side .hd { padding: 20px; border-bottom: 1px solid var(--border); }
.lb-side .bd { flex: 1; overflow-y: auto; padding: 16px 20px; }
.lb-side .ft { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.caption-input { width: 100%; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; margin: 0 -10px; resize: none; font-size: 16px; font-weight: 700; outline: none; transition: border-color .2s, background .2s; }
.caption-input:hover { background: var(--surface-2); }
.caption-input:focus { border-color: var(--accent); background: var(--bg); }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.react { height: 36px; min-width: 44px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--border-2); display: inline-flex; align-items: center; gap: 5px; font-size: 16px; transition: transform .25s var(--ease-spring), background .2s, border-color .2s; }
.react b { font-size: 13px; }
.react:hover { transform: scale(1.1); }
.react.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.react.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.35); } }
.comment { display: flex; gap: 10px; margin-bottom: 14px; animation: fadeUp .35s var(--ease) both; }
.comment .avatar { width: 32px; height: 32px; font-size: 12px; }
.comment .bubble { flex: 1; background: var(--surface-2); padding: 9px 12px; border-radius: 4px 14px 14px 14px; }
.comment .bubble b { font-size: 13.5px; } .comment .bubble small { color: var(--text-3); font-size: 11.5px; margin-left: 6px; }
.comment .bubble p { margin: 2px 0 0; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.comment .del { opacity: 0; transition: opacity .2s; }
.comment:hover .del { opacity: 1; }
.comment-form { display: flex; gap: 8px; }
.comment-form .input { height: 42px; }

/* Slideshow */
.slideshow { position: fixed; inset: 0; z-index: 130; background: #000; overflow: hidden; animation: fadeIn .5s both; cursor: none; }
.slideshow.ui { cursor: default; }
.ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; display: grid; place-items: center; }
.ss-slide.on { opacity: 1; }
.ss-slide .bgblur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.45); }
.ss-slide img { position: relative; max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.ss-top, .ss-ui, .ss-cap, .ss-progress { z-index: 2; }
.ss-slide.on img.kb-1 { animation: kb1 9s ease-out both; } .ss-slide.on img.kb-2 { animation: kb2 9s ease-out both; }
.ss-slide.on img.kb-3 { animation: kb3 9s ease-out both; } .ss-slide.on img.kb-4 { animation: kb4 9s ease-out both; }
@keyframes kb1 { from { transform: scale(1); } to { transform: scale(1.12) translate(2%, 1%); } }
@keyframes kb2 { from { transform: scale(1.12) translate(-2%, 0); } to { transform: scale(1); } }
@keyframes kb3 { from { transform: scale(1.05) translate(0, 2%); } to { transform: scale(1.15) translate(0, -2%); } }
@keyframes kb4 { from { transform: scale(1.14); } to { transform: scale(1.02) translate(-1%, 1%); } }
.ss-cap { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 2px 20px rgba(0,0,0,.7); padding: 0 30px; }
.ss-cap small { display: block; font-size: 14px; font-weight: 500; opacity: .75; }
.ss-ui { position: absolute; inset: auto 0 0 0; padding: 18px 24px; display: flex; gap: 12px; align-items: center; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .3s; }
.slideshow.ui .ss-ui, .slideshow.ui .ss-top { opacity: 1; }
.ss-ui .icon-btn, .ss-top .icon-btn { color: #fff; } .ss-ui .icon-btn:hover, .ss-top .icon-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.ss-progress { position: absolute; top: 0; left: 0; height: 3px; background: var(--accent); }
.ss-top { position: absolute; top: 0; left: 0; right: 0; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; color: #fff; opacity: 0; transition: opacity .3s; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.ss-ui select { background: rgba(255,255,255,.12); border: 0; color: #fff; height: 36px; border-radius: 10px; padding: 0 10px; }
.ss-ui select option { color: #000; }

/* Login */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: blob 18s ease-in-out infinite alternate; }
.blob.a { width: 420px; height: 420px; background: var(--accent); top: -120px; left: -80px; }
.blob.b { width: 360px; height: 360px; background: var(--c-purple); bottom: -120px; right: -60px; animation-delay: -6s; }
.blob.c { width: 260px; height: 260px; background: var(--c-blue); top: 40%; left: 55%; animation-delay: -12s; opacity: .25; }
@keyframes blob { 50% { transform: translate(60px, 40px) scale(1.15); } 100% { transform: translate(-30px, 70px) scale(.95); } }
.login-card { position: relative; width: 100%; max-width: 420px; background: var(--glass); backdrop-filter: blur(24px); border: 1px solid var(--border-2);
  border-radius: 28px; padding: 34px 30px; box-shadow: var(--shadow-lg); animation: popIn .7s var(--ease-spring) both; }
.login-card .brand-logo { width: 60px; height: 60px; font-size: 22px; border-radius: 18px; margin-bottom: 18px; }
.login-card h1 { margin: 0; font-size: 26px; letter-spacing: -.6px; }
.login-card p { margin: 6px 0 4px; color: var(--text-2); }
.member-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.member-pick button { padding: 10px 4px 8px; border-radius: 14px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  transition: border-color .2s, background .2s, transform .25s var(--ease-spring); }
.member-pick button:hover { transform: translateY(-2px); border-color: var(--border-2); }
.member-pick button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.member-pick .avatar { width: 34px; height: 34px; font-size: 13px; }
.err { color: #ec6a5c; font-size: 14px; margin-top: 10px; min-height: 20px; }
.shake { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

/* History & trash */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 12px; }
.tl-item::before { content: ''; position: absolute; left: -22px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 4px var(--bg); }
.tl-item .card { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.diff { margin-top: 8px; font-size: 13.5px; display: grid; gap: 4px; }
.diff div { padding: 6px 10px; border-radius: 8px; word-break: break-word; white-space: pre-wrap; }
.diff .old { background: rgba(236,106,92,.1); color: var(--text-2); text-decoration: line-through; text-decoration-color: rgba(236,106,92,.5); }
.diff .new { background: rgba(79,178,134,.12); }
.trash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.trash-item { padding: 0; overflow: hidden; }
.trash-item img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.5); }
.trash-item .ti { padding: 10px 12px; }

/* Toast */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; pointer-events: auto; animation: toastIn .5s var(--ease-spring) both; max-width: 90vw; }
.toast.out { animation: toastOut .3s ease both; }
.toast button { color: var(--accent); font-weight: 800; }
.progress { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; margin-top: 8px; width: 220px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; width: 100%; height: 100%; }

/* ================= ANIMASI ================= */
@keyframes fadeIn { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(14px); } }
@keyframes popOut { to { opacity: 0; transform: scale(.96); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-40px); } } @keyframes slideR { from { opacity: 0; transform: translateX(40px); } }
@keyframes slideInR { from { transform: translateX(40px); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } } @keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.anim-in > * { animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.view-enter { animation: fadeUp .45s var(--ease) both; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) { :root { --sidebar-w: 260px; --list-w: 340px; } }
@media (max-width: 980px) {
  body { overflow: auto; }
  .app, .app.no-list, .app.side-collapsed { display: block; height: auto; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 290px; z-index: 90; transform: translateX(-105%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); }
  .app.drawer .sidebar { transform: none; }
  .app.drawer::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 80; animation: fadeIn .3s; }
  .mobile-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
  .mobile-bar b { flex: 1; font-size: 16px; }
  .list-panel, .main { border: 0; min-height: 0; }
  .list-scroll, .main-scroll { overflow: visible; }
  .app.show-main .list-panel { display: none; }
  .app.show-list .main { display: none; }
  .app:not(.show-main):not(.show-list) .list-scroll { padding-bottom: 0; }
  .app:not(.show-main):not(.show-list) .main .mobile-bar { display: none; }
  .main-scroll { padding: 20px 16px 130px; }
  .list-scroll { padding: 4px 12px 130px; }
  .main-top { display: none; }
  #collapseBtn { display: none; }
  .masonry { columns: 2 140px; column-gap: 10px; } .ph { margin-bottom: 10px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { padding: 24px; } .profile-hero .big-av { width: 110px; height: 110px; font-size: 40px; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; }
  .lb-stage { padding: 10px; } .lb-stage img { max-height: calc(55vh - 20px); }
  .lb-nav { width: 40px; height: 40px; } .lb-nav.l { left: 8px; } .lb-nav.r { right: 8px; }
  .lb-side { border-left: 0; border-top: 1px solid var(--border); }
  .fab-music { right: 16px; bottom: 16px; width: 60px; height: 60px; border-radius: 18px; }
  .player-pop { right: 16px; bottom: 90px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .stat { padding: 12px; } .stat b { font-size: 20px; }
  .themes { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 240px; padding: 20px; } .hero h2 { font-size: 22px; }
  .album-head h1 { font-size: 26px; }
  .album-head .toolbar { width: 100%; }
  .album-head .toolbar .btn { height: 38px; padding: 0 12px; font-size: 14px; }
  .album-head .toolbar #ssBtn, .album-head .toolbar #upBtn { flex: 1; }
  .seg { max-width: 100%; overflow-x: auto; }
  .seg button { white-space: nowrap; }
}
