:root {
  color-scheme: dark;
  --bg: #0a0c18;
  --surface: #13172e;
  --surface2: #1b2042;
  --surface3: #242a55;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --text: #eef0fb;
  --muted: #a3a9cc;
  --dim: #6f7699;
  --accent: #b69cff;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --radius: 14px;
  --maxw: 1180px;
  --dock-h: 0px;
  --head-h: 112px;
  --fav: #f472b6;
  --g-genshin-impact: #e9c46a;
  --g-honkai-star-rail: #a78bfa;
  --g-zenless-zone-zero: #c6f432;
  --g-honkai-impact-3rd: #ff6b9d;
  --g-tears-of-themis: #5eead4;
  --g-singles-and-more: #94a3b8;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 420px at 95% 0%, rgba(236, 72, 153, 0.14), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  padding-bottom: var(--dock-h);
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 24, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-top { display: flex; align-items: center; gap: 18px; height: 64px; }
.head-nav { display: flex; align-items: center; height: 44px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.12rem; white-space: nowrap; letter-spacing: -0.01em; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: -12px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface2); }
.nav .gdot { margin-right: 6px; }

/* site search: the big box in the header on every page */
.hsearch { position: relative; flex: 1; max-width: 620px; margin: 0 auto; }
.hsearch .search input { padding: 10px 44px 10px 42px; background: var(--surface); border-color: color-mix(in srgb, var(--accent) 35%, var(--line2)); }
.hsearch .search input:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line2)); }
.hsearch .search svg { color: var(--accent); }
.hsearch kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none;
  font: 600 0.78rem/1 inherit; color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 3px 7px;
}
.hsearch input:focus ~ kbd, .hsearch input:not(:placeholder-shown) ~ kbd { display: none; }
@media (hover: none) { .hsearch kbd { display: none; } }
.hs-pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); padding: 6px 0;
  max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain;
}
.hs-label { padding: 10px 14px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.hs-pop .tracks { padding: 0; }
.hs-pop .trk { padding: 6px 12px; gap: 10px; border-top: 0; }
.hs-pop .trk:focus-within, .hs-album:hover, .hs-album:focus-visible, .hs-all:hover, .hs-all:focus-visible { background: var(--surface2); outline: none; }
.hs-pop .trk-art { width: 64px; height: 36px; }
.hs-album { display: flex; align-items: center; gap: 10px; padding: 6px 12px; text-decoration: none; min-width: 0; }
.hs-album img { width: 64px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.hs-album span { min-width: 0; }
.hs-album b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-album small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.hs-all { display: block; margin-top: 6px; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.hs-msg { margin: 0; padding: 14px 16px; color: var(--muted); }
.hs-note { padding: 8px 14px 2px; font-size: 0.85rem; color: var(--dim); }

/* favourites link: always visible, top right */
.fav-link {
  flex: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  border: 1px solid color-mix(in srgb, var(--fav) 40%, transparent); background: color-mix(in srgb, var(--fav) 10%, transparent);
}
.fav-link:hover, .fav-link[aria-current="page"] { background: color-mix(in srgb, var(--fav) 22%, transparent); }
.fav-link svg { width: 18px; height: 18px; color: var(--fav); fill: currentColor; }
.fav-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--fav); color: #1a0b14; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.fav-link.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }

/* account menu (only rendered when sign-in is configured) */
.acct { position: relative; flex: none; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--surface); font-weight: 600; font-size: 0.92rem; cursor: pointer; white-space: nowrap;
}
.acct-btn:hover { background: var(--surface2); }
.acct-face { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface2); color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.acct-face svg { width: 18px; height: 18px; }
.acct-face img, .acct-who img { width: 100%; height: 100%; object-fit: cover; }
.acct-btn.in .acct-face { background: var(--grad); color: #fff; }
.acct-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 320px;
  background: var(--surface); border: 1px solid var(--line2); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); padding: 18px;
}
.acct-pop h3 { margin: 0 0 6px; font-size: 1.1rem; }
.acct-pop p { margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.acct-providers { display: grid; gap: 8px; margin-bottom: 12px; }
.acct-providers .btn { width: 100%; }
.acct-providers .prov-discord { background: #5865f2; border-color: transparent; color: #fff; }
.acct-providers .prov-discord:hover { background: #4752c4; }
.acct-providers .prov-google { background: #fff; border-color: transparent; color: #1f1f1f; }
.acct-providers .prov-google:hover { background: #e8eaed; }
.acct-providers .btn:disabled { opacity: 0.6; cursor: progress; }
.acct-pop .acct-fine { margin: 0; font-size: 0.8rem; color: var(--dim); }
.acct-pop .acct-fine a { color: var(--muted); }
.acct-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.acct-who img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.acct-who span { min-width: 0; }
.acct-who b, .acct-who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-who small { color: var(--muted); font-size: 0.85rem; }
.acct-pop .acct-ok { font-size: 0.88rem; }
.acct-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.acct-del { color: var(--dim); font-size: 0.85rem; font-weight: 500; }
.acct-del:hover { color: #f87171; }
.fv-sync { margin: -8px 0 20px; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 760px) {
  .head-top { height: 56px; gap: 10px; }
  .head-nav { height: 42px; }
  .logo span { display: none; }
  .nav { margin: 0 -20px; padding: 0 16px; width: calc(100% + 40px); }
  .hsearch { position: static; margin: 0; }
  .hsearch .search input { padding-right: 12px; }
  .hs-pop { top: 58px; left: 8px; right: 8px; max-height: calc(100dvh - 66px - var(--dock-h)); }
  .fav-link { padding: 8px 10px; }
  .acct-btn { padding: 0 5px; height: 40px; }
  .acct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .acct-pop { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; }
  .fav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- generic ---------- */
.gdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--g, var(--dim)); flex: none; vertical-align: middle; }
.g-genshin-impact { --g: var(--g-genshin-impact); }
.g-honkai-star-rail { --g: var(--g-honkai-star-rail); }
.g-zenless-zone-zero { --g: var(--g-zenless-zone-zero); }
.g-honkai-impact-3rd { --g: var(--g-honkai-impact-3rd); }
.g-tears-of-themis { --g: var(--g-tears-of-themis); }
.g-singles-and-more { --g: var(--g-singles-and-more); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: 999px;
  color: var(--g, var(--muted));
  background: color-mix(in srgb, var(--g, #888) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--g, #888) 35%, transparent);
  text-decoration: none; white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--surface2); color: var(--text); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface3); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 24px rgba(168, 85, 247, 0.35); }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; }
.btn.sm { padding: 7px 13px; font-size: 0.86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
section { margin: 44px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.01em; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.sec-head .more { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.muted { color: var(--muted); }
.crumbs { font-size: 0.88rem; color: var(--dim); margin: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 48px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.025em; max-width: 16ch; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 60ch; margin: 0 0 22px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; color: var(--muted); font-size: 0.92rem; }
.stats b { display: block; color: var(--text); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- game cards ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.game-card {
  position: relative; overflow: hidden; display: block; text-decoration: none;
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--g) 20%, var(--surface)) 0%, var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--g) 28%, transparent);
  transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--g) 60%, transparent); }
.game-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.game-card .n { color: var(--muted); font-size: 0.88rem; }
.game-card .top { margin-top: 12px; font-size: 0.82rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card .top span { color: var(--muted); }
.game-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--g); opacity: 0.12; filter: blur(8px);
}

/* ---------- track lists ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; }
.tracks { list-style: none; margin: 0; padding: 4px 0; }
.trk {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 14px; border-top: 1px solid var(--line);
}
.tracks .trk:first-child { border-top: 0; }
.trk:hover { background: rgba(255, 255, 255, 0.03); }
.trk.playing { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.trk.playing .trk-title { color: var(--accent); }
.trk-rank { flex: none; width: 2.6ch; text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.tracks.no-rank .trk-rank { display: none; }
.trk-art {
  position: relative; flex: none; width: 80px; height: 45px; border-radius: 8px; overflow: hidden;
  border: 0; padding: 0; cursor: pointer; background: var(--surface2);
}
.trk-art img { width: 100%; height: 100%; object-fit: cover; }
.trk-art::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
  opacity: 0; transition: opacity .15s ease;
}
.trk:hover .trk-art::after, .trk-art:focus-visible::after, .trk.playing .trk-art::after { opacity: 1; }
.trk.playing .trk-art::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Crect x='4' y='10' width='3' height='10' rx='1'/%3E%3Crect x='10.5' y='5' width='3' height='15' rx='1'/%3E%3Crect x='17' y='12' width='3' height='8' rx='1'/%3E%3C/svg%3E");
}
.trk-main { min-width: 0; flex: 1; }
.trk-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.trk-sub { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--muted); min-width: 0; }
.trk-sub a { text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-sub a:hover { color: var(--text); text-decoration: underline; }
.trk-views { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; text-align: right; min-width: 5ch; }
.trk-trend { min-width: 6ch; font-variant-numeric: tabular-nums; color: #4ade80; font-size: 0.85rem; text-align: right; white-space: nowrap; }
.trk-date { color: var(--dim); font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trk-fav, .trk-yt {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  border: 0; background: transparent; color: var(--dim); cursor: pointer; text-decoration: none;
}
.trk-fav:hover, .trk-yt:hover { background: var(--surface2); color: var(--text); }
.trk-fav svg, .trk-yt svg { width: 18px; height: 18px; fill: none; }
.trk-fav[aria-pressed="true"] { color: #f472b6; }
.trk-fav[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 760px) {
  .trk { gap: 10px; padding: 8px 12px; }
  .trk-rank, .trk-date, .trk-yt { display: none; }
  .trk-art { width: 64px; height: 36px; }
  .trk-views { font-size: 0.82rem; }
  .trk-trend { display: none; }
  .trk-title { font-size: 0.95rem; }
}

/* ---------- album cards ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.album-card { text-decoration: none; display: block; min-width: 0; }
.album-card .art {
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface2);
  border: 1px solid var(--line); position: relative;
}
.album-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.album-card:hover .art img { transform: scale(1.05); }
.album-card .art .cnt {
  position: absolute; right: 6px; bottom: 6px; font-size: 0.74rem; font-weight: 600;
  background: rgba(0, 0, 0, 0.7); padding: 2px 8px; border-radius: 999px;
}
.album-card h3 { font-size: 0.95rem; margin: 8px 0 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album-card .meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
@media (max-width: 520px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* ---------- album / game page header ---------- */
.page-head { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: end; margin-top: 18px; }
.page-head .cover { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); background: var(--surface2); }
.page-head .cover img { width: 100%; height: 100%; object-fit: cover; }
.page-head h1 { margin: 10px 0 8px; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; }
.page-head .facts { color: var(--muted); margin: 0 0 18px; }
.page-head.no-cover { grid-template-columns: 1fr; }
.game-hero { border-radius: 20px; padding: 34px; margin-top: 18px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--g) 26%, var(--surface)) 0%, var(--surface) 65%);
  border: 1px solid color-mix(in srgb, var(--g) 30%, transparent); }
.game-hero h1 { margin: 10px 0 8px; font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; }
.game-hero p { color: var(--muted); max-width: 64ch; margin: 0 0 20px; }
@media (max-width: 760px) {
  .page-head { grid-template-columns: 1fr; gap: 14px; }
  .page-head .cover { max-width: 420px; }
  .game-hero { padding: 22px; }
}

/* ---------- explorer ---------- */
.explorer-bar { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: var(--head-h); z-index: 20; border-radius: var(--radius) var(--radius) 0 0; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 14px 12px 42px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(182, 156, 255, 0.2); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; color: var(--muted); font-size: 0.88rem; font-weight: 500; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] .gdot { box-shadow: 0 0 0 2px var(--bg); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select {
  padding: 7px 30px 7px 12px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a3a9cc'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") right 8px center / 18px no-repeat;
  color: var(--text); font: inherit; font-size: 0.88rem; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.filters .count { margin-left: auto; color: var(--muted); font-size: 0.88rem; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.load-more { display: flex; justify-content: center; padding: 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .explorer-bar { position: static; padding: 12px; }
  .filters .count { width: 100%; margin: 0; order: 9; }
}

/* ---------- favourites page ---------- */
.fav-hero { border-radius: 20px; padding: 34px; margin-top: 18px; --g: var(--fav);
  background: linear-gradient(140deg, color-mix(in srgb, var(--fav) 20%, var(--surface)) 0%, var(--surface) 65%);
  border: 1px solid color-mix(in srgb, var(--fav) 30%, transparent); }
.fav-hero h1 { margin: 10px 0 8px; font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; }
.fav-hero .facts { color: var(--muted); margin: 0 0 20px; }
.fav-hero .badge svg { fill: currentColor; color: var(--fav); }
.fav-hero .btn svg use { fill: currentColor; }
.fv-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fv-empty b { color: var(--text); font-size: 1.15rem; }
.fv-empty .btn-row { justify-content: center; margin-top: 12px; }
.trk-move { flex: none; display: flex; gap: 2px; }
.trk-move button {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--dim);
  display: grid; place-items: center; cursor: pointer;
}
.trk-move button:hover { background: var(--surface2); color: var(--text); }
.trk-move svg { width: 16px; height: 16px; }
.trk:first-child [data-move="-1"], .trk:last-child [data-move="1"] { visibility: hidden; }
@media (max-width: 760px) {
  .fav-hero { padding: 22px; }
  #fv-list .trk-views { display: none; }
  .trk-move button { width: 28px; height: 28px; }
}

/* ---------- prose / faq ---------- */
.prose { max-width: 72ch; color: var(--muted); }
.prose h1, .prose h2, .prose h3 { color: var(--text); }
.prose a { color: var(--accent); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 75ch; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 30px 0 40px; color: var(--dim); font-size: 0.88rem; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- player dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(16, 19, 40, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line2);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
}
.dock[hidden] { display: none; }
.dock-video {
  position: absolute; right: 16px; bottom: calc(100% + 12px);
  width: 384px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); border: 1px solid var(--line2);
}
.dock-video iframe, .dock-video > div { width: 100%; height: 100%; border: 0; display: block; }
.dock-bar { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; height: 72px; }
.dock-info { min-width: 0; flex: 1; }
.dock-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-sub { font-size: 0.85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-sub a { text-decoration: none; }
.dock-sub a:hover { text-decoration: underline; }
.dock-ctl { display: flex; align-items: center; gap: 4px; }
.dock-ctl button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
.dock-ctl button:hover { background: var(--surface2); }
.dock-ctl button svg { width: 22px; height: 22px; }
.dock-ctl .play { width: 48px; height: 48px; background: var(--text); color: var(--bg); }
.dock-ctl .play:hover { background: #fff; }
.dock-ctl [aria-pressed="true"] { color: var(--accent); }
.dock-ctl .x svg { width: 18px; height: 18px; }
.dock-pos { font-size: 0.8rem; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .dock-video { position: static; width: 100%; border-radius: 0; border: 0; box-shadow: none; }
  .dock-bar { height: 64px; padding: 8px 12px; gap: 8px; }
  .dock-ctl button { width: 38px; height: 38px; }
  .dock-ctl .play { width: 42px; height: 42px; }
  .dock-pos, .dock-ctl .shuf { display: none; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 20px); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 200; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.has-act.show { pointer-events: auto; }
.toast-act { margin-left: 14px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: #7c3aed; text-decoration: underline; cursor: pointer; }
