/* ================= Shelf — vivid cinema ================= */

:root {
  --bg: #07060b;
  --bg-2: #0e0c15;
  --surface: rgba(255, 255, 255, .055);
  --surface-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .09);
  --text: #f6f3fb;
  --text-2: #aaa4b8;
  --text-3: #6f6a7c;
  --accent: #7cb4ff;
  --gold: #ffc940;
  --green: #34d399;
  --amber: #fbbf24;
  --violet: #c084fc;
  --red: #ff5a6a;
  --sunset: linear-gradient(115deg, #ffb36b 0%, #ff5e7e 48%, #a855f7 100%);
  --aurora: linear-gradient(115deg, #5eead4 0%, #60a5fa 50%, #a78bfa 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --display: "Fraunces", "Noto Serif TC", "Songti TC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --max: 1280px;
  --gutter: max(20px, calc((100vw - var(--max)) / 2 + 24px));
  --nav-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* soft coloured light behind every page */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 12% 8%, rgba(255, 94, 126, .13), transparent 70%),
    radial-gradient(45vw 45vw at 92% 30%, rgba(168, 85, 247, .12), transparent 70%),
    radial-gradient(50vw 40vw at 50% 110%, rgba(96, 165, 250, .1), transparent 70%);
}
/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
p a, .muted a { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 94, 126, .4); }
:focus-visible { outline: 2px solid #ff8fa3; outline-offset: 3px; border-radius: 8px; }

.wrap { padding-inline: var(--gutter); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.gold { color: var(--gold); }
.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; margin: 0 7px; vertical-align: middle; }

/* italic gradient accent inside display titles */
em { font-style: italic; }
:is(.display, .large-title, .stage-title, .row-head h3, .sec-head h2, .detail-title, .spot-title) em {
  font-family: var(--display); font-style: italic; font-weight: 500;
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--text-2); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sunset); box-shadow: 0 0 12px #ff5e7e; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.6); opacity: .6; } }

/* bilingual text: CSS picks the language, so switching is instant */
.l-zh { display: none; }
html[data-lang="zh"] .l-en { display: none; }
html[data-lang="zh"] .l-zh { display: inline; }

/* ================= motion ================= */

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.nav { view-transition-name: nav; }
.nav-pill { view-transition-name: navpill; }
::view-transition-old(root) { animation: vtOut .3s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .55s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(poster) { animation-duration: .6s; animation-timing-function: var(--ease); z-index: 50; }
::view-transition-old(poster), ::view-transition-new(poster) { height: 100%; object-fit: cover; }
html.vt-fade::view-transition-old(root) { animation: fadeOutQuick .26s ease both; }
html.vt-fade::view-transition-new(root) { animation: fadeIn .36s ease both; }
@keyframes fadeOutQuick { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= buttons ================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative;
  min-height: 46px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em;
  transition: transform .35s var(--spring), background .3s, box-shadow .35s, opacity .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.95); }
.btn-light { background: var(--text); color: #120c18; }
.btn-light:hover { background: #fff; box-shadow: 0 10px 34px rgba(255, 255, 255, .2); transform: translateY(-1px); }
.btn-grad { background: var(--sunset); color: #fff; box-shadow: 0 8px 26px -6px rgba(255, 94, 126, .6); }
.btn-grad:hover { box-shadow: 0 12px 36px -6px rgba(255, 94, 126, .85); transform: translateY(-1px); }
.btn-glass { background: rgba(255, 255, 255, .1); color: var(--text); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.btn-glass:hover { background: rgba(255, 255, 255, .17); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost-danger { color: var(--red); background: rgba(255, 90, 106, .1); }
.btn-ghost-danger:hover { background: rgba(255, 90, 106, .18); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-xs svg { width: 14px; height: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(150, 150, 150, .45); border-top-color: #999; animation: spin .8s linear infinite; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); transition: background .25s, color .25s, transform .3s var(--spring); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn.active { color: var(--text); background: var(--surface-2); }

/* ================= navigation ================= */

.nav { position: fixed; inset: 0 0 auto; z-index: 40; padding-top: calc(var(--safe-top) + 10px); pointer-events: none; }
.nav::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(to bottom, rgba(7, 6, 11, .94), rgba(7, 6, 11, .7) 55%, transparent); opacity: 0; transition: opacity .4s; pointer-events: none; }
.nav.solid::before { opacity: 1; }
.nav-inner { position: relative; height: 54px; display: flex; align-items: center; gap: 16px; padding-inline: var(--gutter); }
.nav-inner > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.logo-mark { position: relative; width: 26px; height: 26px; }
.logo-mark i { position: absolute; left: 6px; top: 1px; width: 14px; height: 22px; border-radius: 4px; transform-origin: 50% 100%; transition: transform .5s var(--spring); }
.logo-mark i:nth-child(1) { background: #3b3546; transform: rotate(-16deg); }
.logo-mark i:nth-child(2) { background: #5b5368; transform: rotate(16deg); }
.logo-mark i:nth-child(3) { background: var(--sunset); box-shadow: 0 0 14px rgba(255, 94, 126, .6); }
.logo:hover .logo-mark i:nth-child(1) { transform: rotate(-26deg); }
.logo:hover .logo-mark i:nth-child(2) { transform: rotate(26deg); }

.nav-pill {
  position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 5px;
  border-radius: 999px; background: rgba(26, 22, 34, .62);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 10px 40px -10px rgba(0, 0, 0, .6);
}
.nav-pill a { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: color .35s; }
.nav-pill a svg { width: 18px; height: 18px; transition: transform .45s var(--spring); }
.nav-pill a:hover { color: var(--text); }
.nav-pill a:hover svg { transform: translateY(-1px) scale(1.08); }
.nav-pill a.active { color: #fff; }
.nav-blob {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; opacity: 0;
  background: linear-gradient(115deg, rgba(255, 179, 107, .9), rgba(255, 94, 126, .9) 50%, rgba(168, 85, 247, .9));
  box-shadow: 0 6px 22px -4px rgba(255, 94, 126, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .6s var(--spring), width .6s var(--spring), opacity .3s;
}
.nav-actions { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(26, 22, 34, .62); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.add-btn { margin-left: 4px; }
.fab { display: none; }

.lang-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 72px; height: 32px; margin: 0 4px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 800; }
.lang-toggle span { position: relative; z-index: 1; display: grid; place-items: center; color: #120c18; transition: color .35s; }
.lang-toggle .lt-zh { color: var(--text-2); font-family: var(--sans); font-size: 13px; }
.lang-toggle i { position: absolute; top: 3px; left: 3px; width: 33px; height: 26px; border-radius: 999px; background: var(--text); transition: transform .5s var(--spring), background .4s; }
.lang-toggle[aria-pressed="true"] i { transform: translateX(33px); background: var(--sunset); }
.lang-toggle[aria-pressed="true"] .lt-en { color: var(--text-2); }
.lang-toggle[aria-pressed="true"] .lt-zh { color: #fff; }

.sync-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; }
.sync-dot[data-state="synced"] { background: var(--green); box-shadow: 0 0 8px var(--green); }
.sync-dot[data-state="syncing"] { background: var(--gold); animation: breathe 1s infinite; }
.sync-dot[data-state="error"] { background: var(--red); }
.sync-dot[data-state="signed-out"] { background: var(--text-3); }

/* ================= segmented control ================= */

.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--text-2); white-space: nowrap; transition: color .35s; }
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #120c18; }
.seg button small { font-size: 11.5px; opacity: .55; font-weight: 700; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--text); transition: transform .55s var(--spring), width .55s var(--spring); }

/* ================= HOME: stage with the poster wall ================= */

.stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1040px; overflow: hidden; --p: 0; --mx: 0; --my: 0; isolation: isolate; }
.wall { position: absolute; inset: -10%; perspective: 1200px; opacity: calc(.85 - var(--p) * .6); }
.wall-plane {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  transform: translate3d(calc(var(--mx) * -30px), calc(var(--my) * -20px), 0) rotateX(calc(26deg + var(--p) * 18deg)) rotateZ(-10deg) scale(calc(1.18 + var(--p) * .25));
  transition: transform .25s linear;
}
.wall-row { overflow: visible; }
.wall-strip { display: flex; gap: 22px; width: max-content; animation: drift var(--dur) linear infinite; animation-direction: var(--dir); }
@keyframes drift { to { transform: translateX(-50%); } }
.wall-tile { width: clamp(110px, 11vw, 170px); aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #1b1724; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .8); }
.wall-tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.wall-tile img.ok { opacity: 1; }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 55%, rgba(7, 6, 11, .35), rgba(7, 6, 11, .92) 75%),
    linear-gradient(to top, var(--bg) 2%, transparent 35%),
    linear-gradient(to bottom, rgba(7, 6, 11, .7), transparent 25%);
}
.stage-copy {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding-top: 40px; transform: translateY(calc(var(--p) * -90px)) scale(calc(1 - var(--p) * .08)); opacity: calc(1 - var(--p) * 1.6);
}
.stage-title { font-family: var(--display); font-weight: 700; font-size: clamp(54px, 9vw, 132px); letter-spacing: -0.045em; line-height: .95; font-variation-settings: "SOFT" 50, "opsz" 144; text-shadow: 0 10px 60px rgba(0, 0, 0, .6); }
.stage-lead { margin: 22px 0 34px; color: rgba(246, 243, 251, .75); font-size: clamp(16px, 1.6vw, 19px); }
.pick-card {
  display: flex; align-items: center; gap: 18px; padding: 12px 22px 12px 12px; text-align: left; max-width: min(520px, 100%);
  border-radius: 24px; background: rgba(22, 18, 30, .6); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 80px -20px rgba(0, 0, 0, .8);
  transition: opacity .26s, transform .4s var(--ease);
}
.pick-card.swap { opacity: 0; transform: translateY(8px) scale(.98); }
.pick-poster { flex: none; width: 92px; }
.pick-poster .poster { border-radius: 12px; }
.pick-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pick-label svg { width: 13px; height: 13px; color: #ff8a6b; }
.pick-title { font-family: var(--display); font-size: 26px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.pick-meta { font-size: 13.5px; color: var(--text-2); }
.pick-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ================= intro + stats ================= */

.intro { padding-top: clamp(70px, 12vh, 140px); padding-bottom: clamp(50px, 9vh, 110px); }
.scrub { font-family: var(--display); font-size: clamp(36px, 5.8vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; max-width: 1080px; font-variation-settings: "opsz" 144; }
.scrub .w { color: rgba(246, 243, 251, .12); transition: color .6s ease; }
.scrub .w.lit { color: var(--text); }
.scrub .w.lit:nth-last-child(-n+3) { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(50px, 8vh, 96px); }
.stat { position: relative; padding: 22px 0 0; border-top: 1px solid var(--line); }
.stat:nth-child(2) { transition-delay: .1s; } .stat:nth-child(3) { transition-delay: .2s; } .stat:nth-child(4) { transition-delay: .3s; }
.stat b { display: block; font-family: var(--display); font-size: clamp(48px, 6.5vw, 88px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; -webkit-background-clip: text; background-clip: text; color: transparent; }
.tone-sunset b { background-image: var(--sunset); }
.tone-aurora b { background-image: var(--aurora); }
.tone-violet b { background-image: linear-gradient(115deg, #f0abfc, #a855f7); }
.tone-gold b { background-image: linear-gradient(115deg, #fde68a, #f59e0b); }
.stat span { display: block; margin-top: 10px; color: var(--text-2); font-size: 15px; }

/* ================= rows ================= */

.home-filter { margin-bottom: 8px; }
.home-rows { transition: opacity .22s ease, transform .22s ease; }
.home-rows.swap { opacity: 0; transform: translateY(10px); }
.home-foot { padding-block: 50px 140px; text-align: center; }
.row { margin-top: clamp(40px, 7vh, 72px); }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.row-head h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -0.035em; }
.see-all { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font-size: 14.5px; font-weight: 600; transition: color .25s; }
.see-all:hover { color: var(--text); }
.see-all svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.see-all:hover svg { transform: translateX(3px); }
.row-scroller { position: relative; }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(136px, 14.5vw, 200px); gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 14px var(--gutter) 26px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.row.groups .row-track { grid-auto-columns: clamp(180px, 19vw, 250px); }
.row.wides .row-track { grid-auto-columns: clamp(280px, 34vw, 480px); }
.row :is(.card, .gcard, .wide) { opacity: 0; transform: translateX(46px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 100ms); }
.row.in :is(.card, .gcard, .wide), .strip .card { opacity: 1; transform: none; }
.row-arrow { position: absolute; top: calc(50% - 44px); z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 26, 40, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: opacity .3s, transform .35s var(--spring); }
.row-arrow svg { width: 20px; height: 20px; }
.row-arrow.prev { left: calc(var(--gutter) - 23px); }
.row-arrow.next { right: calc(var(--gutter) - 23px); }
.row-scroller:hover .row-arrow { opacity: 1; }
.row-scroller.at-start .prev, .row-scroller.at-end .next { opacity: 0 !important; pointer-events: none; }
.row-arrow:hover { transform: scale(1.1); }
@media (hover: none) { .row-arrow { display: none; } }

/* wide "continue" cards */
.wide { position: relative; display: block; aspect-ratio: 16 / 9.4; border-radius: 22px; overflow: hidden; background: #1a1622; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.wide-media { position: absolute; inset: 0; }
.wide-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s, transform 1.2s var(--ease); }
.wide-media img.ok { opacity: 1; }
.wide-media.from-poster img { filter: blur(26px) saturate(1.6); transform: scale(1.3); }
.wide:hover .wide-media img { transform: scale(1.05); }
.wide:hover .wide-media.from-poster img { transform: scale(1.35); }
.wide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 6, 11, .95), rgba(7, 6, 11, .15) 60%, transparent); }
.wide-copy { position: absolute; inset: auto 0 0; z-index: 2; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.wide-kind { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.wide h4 { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 650; letter-spacing: -0.03em; }
.wide-progress { height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .2); overflow: hidden; margin-top: 4px; }
.wide-progress i { display: block; height: 100%; background: var(--sunset); border-radius: inherit; }
.wide-note { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.wide-play { position: absolute; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .4s var(--spring), background .3s; }
.wide-play svg { width: 18px; height: 18px; margin-left: 2px; }
.wide:hover .wide-play { transform: scale(1.12); background: var(--sunset); }

/* poster cards */
.card { position: relative; display: block; min-width: 0; }
.tilt { position: relative; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.card:hover .tilt { transition-duration: .12s; }
.glow { position: absolute; inset: 12% 8% -4%; width: 84%; height: 92%; object-fit: cover; filter: blur(26px) saturate(2); opacity: 0; transform: translateZ(-1px); transition: opacity .5s; pointer-events: none; border-radius: 30px; }
.card:hover .glow.ok { opacity: .75; }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: #1a1622; isolation: isolate; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 32px -14px rgba(0, 0, 0, .9); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.poster img.ok { opacity: 1; }
.poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover .poster::after { opacity: 1; }
.poster-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; background: radial-gradient(120% 80% at 20% 0%, hsl(var(--h) 70% 55% / .75), transparent 60%), linear-gradient(160deg, hsl(var(--h) 55% 28%), hsl(calc(var(--h) + 60) 60% 10%)); font-family: var(--display); font-weight: 650; font-size: 17px; line-height: 1.1; letter-spacing: -0.02em; }
.card:hover .poster { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 50px -18px rgba(0, 0, 0, .95); }
.card:active .poster { transform: scale(.97); transition-duration: .15s; }
.card-title { margin-top: 13px; font-family: var(--display); font-size: 16.5px; font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-variation-settings: "opsz" 24; }
html[data-lang="zh"] .card-title { font-weight: 700; letter-spacing: .02em; }
.card-sub { margin-top: 4px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.pill-on { position: absolute; top: 9px; left: 9px; z-index: 2; padding: 4px 10px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #120c18; background: linear-gradient(115deg, #fde68a, #fbbf24); box-shadow: 0 4px 14px rgba(251, 191, 36, .4); }
.card.current .poster { outline: 2px solid #ff8fa3; outline-offset: 3px; }

/* collection stacks */
.gcard { display: block; }
.gstack { position: relative; aspect-ratio: 1 / .98; }
.glayer { position: absolute; top: 4%; left: 50%; width: 58%; transition: transform .6s var(--spring); }
.glayer.l0 { transform: translateX(-50%); z-index: 3; }
.glayer.l1 { transform: translateX(-74%) rotate(-6deg) scale(.9); transform-origin: 50% 100%; z-index: 2; filter: brightness(.55) saturate(.8); }
.glayer.l2 { transform: translateX(-26%) rotate(6deg) scale(.9); transform-origin: 50% 100%; z-index: 1; filter: brightness(.55) saturate(.8); }
.gstack.n1 .glayer.l0 { width: 66%; }
.gcard:hover .glayer.l0 { transform: translateX(-50%) translateY(-6px); }
.gcard:hover .glayer.l1 { transform: translateX(-84%) rotate(-11deg) scale(.9); }
.gcard:hover .glayer.l2 { transform: translateX(-16%) rotate(11deg) scale(.9); }
.gstack > .poster { width: 66%; margin: 4% auto 0; }

/* ================= welcome ================= */

.welcome { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.welcome-bg { position: absolute; inset: 0; filter: blur(90px) saturate(1.4); opacity: .6; }
.welcome-bg i { position: absolute; width: 50vmax; height: 50vmax; border-radius: 50%; animation: float 18s ease-in-out infinite alternate; }
.welcome-bg i:nth-child(1) { background: #ff5e7e; top: -20%; left: -10%; }
.welcome-bg i:nth-child(2) { background: #7c3aed; bottom: -30%; right: -10%; animation-delay: -6s; }
.welcome-bg i:nth-child(3) { background: #ffb36b; top: 30%; left: 40%; width: 30vmax; height: 30vmax; animation-delay: -12s; opacity: .7; }
@keyframes float { to { transform: translate(8vw, 6vh) scale(1.15); } }
.welcome-inner { position: relative; text-align: center; padding-block: 120px; }
.display { font-family: var(--display); font-size: clamp(56px, 10.5vw, 140px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; font-variation-settings: "SOFT" 50, "opsz" 144; }
.lead { max-width: 620px; margin: 28px auto 40px; font-size: clamp(18px, 2vw, 21px); color: rgba(246, 243, 251, .75); }
.welcome-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================= library pages ================= */

.page { padding-top: calc(var(--nav-h) + var(--safe-top) + clamp(40px, 8vh, 90px)); padding-bottom: 150px; }
.page-head { margin-bottom: 38px; }
.large-title { font-family: var(--display); font-size: clamp(56px, 9vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; font-variation-settings: "SOFT" 50, "opsz" 144; }
.lead-sm { margin: 16px 0 26px; max-width: 560px; color: var(--text-2); font-size: 18px; }
.page-tools { margin-top: 32px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.tools-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.icon-seg button { padding: 8px 14px; }
.tool-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; }
.chip { padding: 7px 15px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 650; color: var(--text-2); transition: all .25s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--surface-2); color: var(--text); box-shadow: none; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, background .25s; }
.search-field:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255, 143, 163, .8), 0 0 0 4px rgba(255, 94, 126, .15); background: var(--surface-2); }
.search-field svg { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.search-field.big { max-width: none; height: 54px; margin: 22px 0 18px; }
.select { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--text-2); }
.select select { background: none; border: 0; color: var(--text); font: inherit; font-size: 14px; font-weight: 650; outline: 0; padding: 8px 4px; cursor: pointer; }
.select option { background: #1c1826; }

.lib-body { transition: opacity .2s ease, transform .3s var(--ease); }
.lib-body.swap { opacity: 0; transform: scale(.985); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 38px 24px; }
.grid.groups { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid > :is(.card, .gcard) { animation: cardIn .75s var(--ease) both; animation-delay: calc(var(--i, 0) * 32ms); }
.grid.no-anim > .card { animation: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(28px) scale(.96); } }
.empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--text-2); }
.empty p { margin: 0 0 18px; }

/* ================= spotlight (cover-flow) ================= */

.spot { position: relative; margin: -10px calc(var(--gutter) * -1) 0; --sw: clamp(150px, min(21vw, 31vh), 290px); }
.spot-ambient { position: absolute; inset: -60px 0 -40px; pointer-events: none; overflow: hidden; -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 40%, transparent 100%); mask-image: radial-gradient(60% 55% at 50% 45%, #000 40%, transparent 100%); }
.spot-ambient img { position: absolute; left: 50%; top: 0; width: 70%; height: 90%; transform: translateX(-50%); object-fit: cover; filter: blur(100px) saturate(2); opacity: 0; transition: opacity 1.1s ease; }
.spot-ambient img.on { opacity: .55; }
.spot-track {
  position: relative; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; outline: 0;
  padding: 26px calc(50% - var(--sw) / 2) 56px;
}
.spot-track::-webkit-scrollbar { display: none; }
.spot-item {
  flex: 0 0 var(--sw); margin: 0 calc(var(--sw) * -.1); scroll-snap-align: center; position: relative; --d: 0; --ad: 0;
  transform: perspective(1200px) translateZ(calc(var(--ad) * -140px)) rotateY(clamp(-58deg, calc(var(--d) * -44deg), 58deg)) scale(calc(1 - var(--ad) * .06));
  filter: brightness(calc(1 - var(--ad) * .42)) saturate(calc(1 - var(--ad) * .3));
  transition: transform .12s linear, filter .2s linear;
}
.spot-card .poster { border-radius: 18px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 1), inset 0 0 0 1px rgba(255, 255, 255, .08); -webkit-box-reflect: below 10px linear-gradient(transparent 72%, rgba(255, 255, 255, .16)); }
.spot-item.center .spot-card .poster { box-shadow: 0 40px 90px -24px rgba(255, 94, 126, .45), 0 40px 70px -30px #000, inset 0 0 0 1px rgba(255, 255, 255, .14); }
.spot-item.center { cursor: zoom-in; }
.spot-arrow { position: absolute; top: calc(26px + var(--sw) * .75 - 24px); z-index: 120; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 26, 40, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--spring), background .3s; }
.spot-arrow:hover { transform: scale(1.1); background: rgba(255, 255, 255, .18); }
.spot-arrow svg { width: 22px; height: 22px; }
.spot-arrow.prev { left: max(16px, calc(var(--gutter) - 10px)); }
.spot-arrow.next { right: max(16px, calc(var(--gutter) - 10px)); }
@media (hover: none) { .spot-arrow { display: none; } }
.spot-info { position: relative; max-width: 680px; margin: -10px auto 0; padding: 0 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: opacity .2s, transform .35s var(--ease); }
.spot-info.swap { opacity: 0; transform: translateY(10px); }
.spot-meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--text-2); }
.spot-title { font-family: var(--display); font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variation-settings: "opsz" 144; }
.spot-score { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.spot-score b { color: var(--text); font-size: 17px; }
.spot-ov { margin: 0; color: rgba(246, 243, 251, .78); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.status-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.s-done { color: #052e1f; background: var(--green); }
.s-progress { color: #3a2500; background: var(--amber); }
.s-wishlist { color: #2a0f40; background: var(--violet); }

/* ================= detail ================= */

.detail { position: relative; padding-bottom: 150px; min-height: 100vh; }
.detail-backdrop {
  position: absolute; inset: 0 0 auto; height: min(94vh, 920px); background-size: cover; background-position: center 20%; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 100%); mask-image: linear-gradient(to bottom, #000 25%, transparent 100%);
  animation: backdropIn 1.6s var(--ease) both;
}
.detail-backdrop.from-poster { filter: blur(60px) saturate(1.7); transform: scale(1.3); opacity: .5; animation-name: fadeIn; }
@keyframes backdropIn { from { opacity: 0; transform: scale(1.06); } }
.detail-glow { position: absolute; top: 40vh; left: 50%; width: 90vw; height: 120vh; transform: translateX(-50%); object-fit: cover; filter: blur(140px) saturate(2.2); opacity: .22; pointer-events: none; z-index: -1; }
.detail-top { position: relative; padding-top: calc(var(--nav-h) + var(--safe-top) + 30px); }
.back-link { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px 0 8px; margin-bottom: 26px; border-radius: 99px; background: rgba(26, 22, 34, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--text-2); font-size: 14px; font-weight: 600; transition: color .25s, background .25s; }
.back-link:hover { color: var(--text); background: rgba(255, 255, 255, .14); }
.back-link svg { width: 18px; height: 18px; }
.detail-hero { display: grid; grid-template-columns: minmax(200px, 310px) 1fr; gap: clamp(28px, 4vw, 60px); align-items: end; }
.detail-poster .poster { border-radius: 20px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .08); }
.detail-poster .poster-fallback { font-size: 26px; padding: 22px; }
.detail-head { padding-bottom: 4px; min-width: 0; }
.meta-line { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.meta-line span { padding: 4px 11px; border-radius: 99px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 650; color: rgba(246, 243, 251, .85); }
.detail-title { font-family: var(--display); font-size: clamp(44px, 6.4vw, 92px); font-weight: 700; letter-spacing: -0.045em; line-height: .98; font-variation-settings: "SOFT" 30, "opsz" 144; text-wrap: balance; }
html[data-lang="zh"] .detail-title { letter-spacing: .01em; font-weight: 900; }
.orig { margin: 10px 0 0; color: var(--text-2); font-family: var(--display); font-style: italic; font-size: 18px; }
.people { margin: 16px 0 0; font-size: 15.5px; }
.people span, .cast span { color: var(--text-3); margin-right: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { padding: 4px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-size: 13px; color: var(--text-2); }
.web-ratings { margin-top: 22px; }
.wr-list { display: flex; flex-wrap: wrap; gap: 10px; }
.wr { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.wr b { font-family: var(--display); font-size: 24px; letter-spacing: -0.03em; }
.wr span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.wr-imdb b { color: #f5c518; }
.wr-rt b { color: #ff6347; }
.veiled .wr-list { display: none; }
.veiled.open .wr-list { display: flex; animation: fadeUp .5s var(--ease); }
.veiled.open .peek { display: none; }
.peek { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px dashed rgba(255, 255, 255, .25); color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: all .25s; }
.peek:hover { color: var(--text); border-color: rgba(255, 255, 255, .5); }
.peek svg { width: 16px; height: 16px; }

.status-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.sp { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px 0 14px; border-radius: 99px; font-size: 14.5px; font-weight: 700; color: var(--text-2); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: all .45s var(--spring); }
.sp svg { width: 16px; height: 16px; }
.sp:hover { color: var(--text); transform: translateY(-1px); }
.sp.on { color: #120c18; transform: scale(1.04); }
.sp-wishlist.on { background: linear-gradient(115deg, #f0abfc, #c084fc); box-shadow: 0 8px 26px -6px rgba(192, 132, 252, .7); }
.sp-progress.on { background: linear-gradient(115deg, #fde68a, #fbbf24); box-shadow: 0 8px 26px -6px rgba(251, 191, 36, .7); }
.sp-done.on { background: linear-gradient(115deg, #a7f3d0, #34d399); box-shadow: 0 8px 26px -6px rgba(52, 211, 153, .7); }

.detail-section { position: relative; margin-top: clamp(56px, 9vh, 96px); }
.detail-section.strip .sec-head { padding-inline: var(--gutter); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(32px, 3.8vw, 48px); font-weight: 650; letter-spacing: -0.035em; }
.sec-head h2 .muted { font-weight: 500; font-style: italic; }
.sec-actions { display: flex; gap: 8px; }
.story { max-width: 860px; }
.tagline { margin: 0 0 18px; font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.8vw, 34px); font-weight: 500; letter-spacing: -0.02em; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-overview { margin: 0; max-width: 780px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.62; color: rgba(246, 243, 251, .86); white-space: pre-line; }
.cast { margin: 20px 0 0; max-width: 780px; font-size: 15px; color: var(--text-2); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ext-links { margin-top: 18px; display: flex; gap: 18px; font-size: 14px; }
.ext-links a { color: var(--text-2); }
.ext-links a:hover { color: var(--text); }

/* ================= your take ================= */

.take { max-width: 980px; }
.rv { display: flex; flex-direction: column; gap: 14px; }
.rv-card {
  position: relative; padding: clamp(22px, 3.4vw, 34px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 94, 126, .16), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(168, 85, 247, .16), transparent 55%), rgba(20, 16, 28, .75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -40px rgba(255, 94, 126, .5);
}
.rv-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(255, 179, 107, .6), transparent 35%, transparent 65%, rgba(168, 85, 247, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.rv-main { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.rv-q { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--text-2); }
.rv-mood { display: flex; align-items: baseline; gap: 12px; min-height: 52px; transition: color .4s; }
.rv-num { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rv-word { font-family: var(--display); font-style: italic; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.rv-mood.pop .rv-word, .rv-mood.pop .rv-num { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.7); opacity: .2; } 100% { transform: none; opacity: 1; } }
.tone-0 { color: var(--text-3); }
.tone-1 { color: #94a3b8; }
.tone-2 { color: #a5b4fc; }
.tone-3 { color: #60a5fa; }
.tone-4 { color: #34d399; }
.tone-5 { color: #fbbf24; }
.tone-6 { color: #fb7185; }
.tone-7 :is(.rv-num, .rv-word), .season-word.tone-7 { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv.compact .rv-num { font-size: 34px; }
.rv.compact .rv-word { font-size: 20px; }
.rv.compact .rv-q { font-size: 16px; }
.rv.compact .rv-mood { min-height: 38px; }

.rv-details { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
.rv-details summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.rv-details summary::-webkit-details-marker { display: none; }
.rv-details summary svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.rv-details[open] summary svg { transform: rotate(180deg); }
.rv-detail-body { display: grid; grid-template-columns: 1fr 200px; gap: 28px; align-items: center; margin-top: 18px; animation: fadeUp .5s var(--ease); }
.rv-bars { display: flex; flex-direction: column; gap: 10px; }
.cbar { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 14px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; padding: 4px 0; border-radius: 10px; }
.cbar-label { font-size: 14.5px; font-weight: 650; color: rgba(246, 243, 251, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar-track { position: relative; height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); overflow: hidden; }
.cbar-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), rgba(7, 6, 11, .7) calc(20% - 1px) 20%); pointer-events: none; }
.cbar-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); box-shadow: 0 0 18px var(--c1); transition: width .35s var(--spring); }
.cbar.active .cbar-fill { transition-duration: .08s; }
.cbar-val { font-family: var(--display); font-size: 18px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.cbar:hover .cbar-track { background: rgba(255, 255, 255, .11); }
.rv.compact .rv-detail-body { grid-template-columns: 1fr 160px; }
.radar { width: 100%; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: rgba(255, 255, 255, .08); }
.radar-axis { stroke: rgba(255, 255, 255, .07); }
.radar-shape { fill: url(#rg); fill-opacity: .35; stroke: url(#rg); stroke-width: 2.2; stroke-linejoin: round; transition: all .5s var(--spring); filter: drop-shadow(0 0 10px rgba(255, 94, 126, .5)); }
.radar text { fill: var(--text-3); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-family: var(--sans); }

/* diary-style note */
.journal { position: relative; padding: 22px 26px 16px 62px; border-radius: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: box-shadow .3s; }
.journal:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 143, 163, .55), 0 0 0 4px rgba(255, 94, 126, .1); }
.journal-mark { position: absolute; left: 18px; top: 6px; font-family: var(--display); font-size: 74px; line-height: 1; font-weight: 700; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.journal-text { width: 100%; resize: none; border: 0; outline: 0; background: none; color: var(--text); font-family: var(--display); font-size: 19px; line-height: 1.6; font-style: italic; font-weight: 400; min-height: 60px; font-variation-settings: "opsz" 24; }
.journal-text::placeholder { color: var(--text-3); }
.journal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; min-height: 34px; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); font-size: 13px; font-weight: 650; color: var(--text-2); cursor: pointer; }
.date-chip svg { width: 15px; height: 15px; }
.date-chip input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 650; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .5; cursor: pointer; }
.saved { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--green); opacity: 0; }
.saved svg { width: 14px; height: 14px; }
.saved.show { animation: savedFlash 1.8s ease both; }
@keyframes savedFlash { 0% { opacity: 0; transform: translateY(4px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.rv.compact .journal { padding: 16px 20px 10px 50px; border-radius: 20px; }
.rv.compact .journal-mark { font-size: 56px; left: 14px; }
.rv.compact .journal-text { font-size: 17px; }

/* stars with gradient fill */
.stars { --s: 22px; display: inline-flex; gap: 3px; flex: none; }
.stars.xl { --s: 48px; gap: 8px; }
.stars.lg { --s: 34px; gap: 5px; }
.stars.md { --s: 24px; }
.stars.sm { --s: 18px; gap: 2px; }
.stars.xs { --s: 13px; gap: 1px; }
.star { position: relative; width: var(--s); height: var(--s); transition: transform .35s var(--spring); }
.star > svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, .13); }
.star .fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; transition: width .2s ease; }
.star .fill svg { width: var(--s); height: var(--s); max-width: none; fill: url(#starGrad); filter: drop-shadow(0 0 8px rgba(255, 150, 80, .45)); }
.stars[data-rate] { cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: 0; border-radius: 10px; }
.stars[data-rate]:focus-visible { box-shadow: 0 0 0 3px rgba(255, 143, 163, .6); }
.stars[data-rate]:hover .star > svg { fill: rgba(255, 255, 255, .22); }
.stars[data-rate]:hover .star:hover { transform: scale(1.15) rotate(-6deg); }
.stars.active .star { transform: scale(1.1); }
.stars-val { font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 24px; }

.spark { position: fixed; z-index: 300; width: 7px; height: 7px; margin: -3px; border-radius: 50%; pointer-events: none; background: hsl(var(--hue) 100% 68%); box-shadow: 0 0 10px hsl(var(--hue) 100% 60%); animation: spark .85s cubic-bezier(.1, .7, .3, 1) both; }
@keyframes spark { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }

/* ================= seasons & episodes ================= */

.progress { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.progress .bar { width: 150px; height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; border-radius: inherit; background: var(--sunset); transition: width .8s var(--ease); }
.seasons { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.season { border-radius: 22px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px transparent; transition: background .3s, box-shadow .3s; }
.season:hover, .season.open { background: rgba(255, 255, 255, .065); }
.season.open { box-shadow: inset 0 0 0 1px var(--line); }
.season-head { display: flex; align-items: center; gap: 8px; padding-right: 14px; }
.season-open { flex: 1; display: flex; align-items: center; gap: 14px; padding: 12px; text-align: left; min-width: 0; }
.season-num { width: 36px; font-family: var(--display); font-size: 22px; font-weight: 700; font-style: italic; color: var(--text-3); text-align: center; transition: color .3s; }
.season.is-seen .season-num { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.season-open .poster { width: 50px; flex: none; border-radius: 9px; }
.season-open .poster-fallback { font-size: 0; }
.season-info { flex: 1; min-width: 0; }
.season-name { font-family: var(--display); font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.season-info .muted { font-size: 13.5px; }
.season-sum { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; }
.season-word { font-family: var(--display); font-style: italic; font-size: 14px; }
.has-note svg { width: 14px; height: 14px; color: var(--text-2); }
.chev svg { width: 20px; height: 20px; color: var(--text-2); transition: transform .45s var(--ease); }
.season.open .chev svg { transform: rotate(180deg); }
.seen-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); color: transparent; transition: all .4s var(--spring); }
.seen-btn svg { width: 18px; height: 18px; }
.seen-btn:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); color: rgba(255, 255, 255, .4); }
.seen-btn.on { background: linear-gradient(135deg, #a7f3d0, #34d399); box-shadow: 0 6px 18px -4px rgba(52, 211, 153, .7); color: #052e1f; transform: rotate(-8deg); }
.seen-btn.sm { width: 30px; height: 30px; }
.seen-btn.sm svg { width: 15px; height: 15px; }
.season-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.season.open .season-body { grid-template-rows: 1fr; }
.season-inner { overflow: hidden; min-height: 0; }
.season-content { padding: 6px 16px 20px; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .5s var(--ease); }
.season.open .season-content { opacity: 1; transform: none; transition-delay: .12s; }
.season-ov { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.eps-head { display: flex; align-items: center; gap: 8px; margin: 26px 0 8px; }
.eps-head h3 { font-family: var(--display); font-size: 22px; margin-right: auto; letter-spacing: -0.02em; }
.eps { display: flex; flex-direction: column; }
.ep { display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.ep-still { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2a2434, #15121c); }
.ep-still img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s, filter .4s; }
.ep-still img.ok { opacity: 1; }
.ep-still span { position: absolute; left: 6px; bottom: 5px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .65); font-size: 11px; font-weight: 800; }
.ep.is-seen .ep-still img { filter: saturate(.35) brightness(.65); }
.ep-title { font-family: var(--display); font-weight: 650; font-size: 17px; letter-spacing: -0.015em; }
.ep-ov { margin: 6px 0 0; font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-rate { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ep-note-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); transition: all .25s; }
.ep-note-btn svg { width: 17px; height: 17px; }
.ep-note-btn:hover { color: var(--text); background: var(--surface); }
.ep-note-btn.has { color: #ff8fa3; }
.ep-note { width: 100%; margin-top: 10px; resize: none; padding: 12px 14px; border-radius: 14px; border: 0; outline: 0; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-family: var(--display); font-style: italic; font-size: 16px; line-height: 1.5; animation: fadeUp .4s var(--ease); }
.ep-note:focus { box-shadow: inset 0 0 0 1px rgba(255, 143, 163, .55); }
.add-season { margin-top: 14px; }
p.muted.small { margin: 8px 0; }

/* ================= group detail ================= */

.group-detail .detail-top { padding-bottom: 10px; }
.group-detail .detail-overview { margin-top: 16px; }
.group-stats { display: flex; align-items: center; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.group-stats b { display: block; font-family: var(--display); font-size: 44px; letter-spacing: -0.04em; line-height: 1; }
.group-stats b small { font-size: 22px; color: var(--text-3); }
.group-stats span { font-size: 13px; color: var(--text-2); }
.members { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; max-width: 920px; }
.member { display: flex; align-items: center; gap: 8px; border-radius: 22px; background: rgba(255, 255, 255, .04); padding-right: 10px; transition: background .3s, transform .4s var(--spring); }
.member:hover { background: rgba(255, 255, 255, .08); transform: translateX(4px); }
.member-link { flex: 1; display: flex; align-items: center; gap: 16px; padding: 12px; min-width: 0; }
.member-n { width: 40px; text-align: center; font-family: var(--display); font-style: italic; font-size: 26px; font-weight: 700; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member-link .poster { width: 58px; flex: none; border-radius: 9px; }
.member-link .poster-fallback { font-size: 0; }
.member-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.member-title { font-family: var(--display); font-weight: 650; font-size: 20px; letter-spacing: -0.02em; }
.member-meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.member-tools { display: flex; }
.danger-zone { display: flex; align-items: center; gap: 14px; margin-top: 40px; }

/* ================= sheets ================= */

.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 10, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .4s ease; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 50%; top: 50%; width: min(560px, 92vw); max-height: 88vh; overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 60% at 0% 0%, rgba(255, 94, 126, .09), transparent 60%), rgba(24, 20, 32, .95);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 30px; box-shadow: 0 40px 120px rgba(0, 0, 0, .75);
  transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .55s var(--spring), opacity .35s ease;
}
.sheet.wide { width: min(920px, 94vw); }
.sheet-wrap.open .sheet { transform: translate(-50%, -50%); opacity: 1; }
.sheet-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 5; background: rgba(255, 255, 255, .1); }
.sheet-body { padding: clamp(24px, 3.5vw, 38px); }
.sheet-body h2 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.035em; margin-bottom: 8px; }
.confirm { text-align: center; padding-top: 10px; }
.confirm p { margin: 8px 0 24px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; }

.toast { position: fixed; left: 50%; bottom: calc(30px + var(--safe-bottom)); z-index: 200; transform: translate(-50%, 20px); opacity: 0; padding: 12px 22px; border-radius: 99px; background: rgba(40, 34, 52, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 40px rgba(0, 0, 0, .5); font-size: 15px; font-weight: 650; transition: transform .5s var(--spring), opacity .3s; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.in { transform: translate(-50%, 0); opacity: 1; }

/* ================= add sheet ================= */

.add { position: relative; }
.add-title { margin-bottom: 18px !important; }
.add-search-view, .add-pick-view { transition: transform .55s var(--ease), opacity .4s ease; }
.add-pick-view { position: absolute; inset: 0 0 auto; transform: translateX(60px); opacity: 0; pointer-events: none; }
.add.picking .add-pick-view { position: relative; transform: none; opacity: 1; pointer-events: auto; }
.add.picking .add-search-view { position: absolute; inset: 0 0 auto; transform: translateX(-60px); opacity: 0; pointer-events: none; }
.add-pane { min-height: 200px; }
.hint { text-align: center; padding: 30px 0; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px 16px; }
.result { text-align: left; animation: fadeUp .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); min-width: 0; }
.r-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #2c2638, #15121c); transition: transform .45s var(--spring), box-shadow .4s; display: flex; align-items: flex-end; padding: 10px; font-family: var(--display); font-size: 14px; font-weight: 650; }
.r-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.r-poster img.ok { opacity: 1; }
.result:hover .r-poster { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px -14px #000; }
.r-title { margin-top: 9px; font-family: var(--display); font-size: 15px; font-weight: 650; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-sub { font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result.sk { animation: none; }
.sk-poster, .sk-line { border-radius: 12px; background: linear-gradient(90deg, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.sk-poster { aspect-ratio: 2 / 3; }
.sk-line { height: 12px; margin-top: 10px; border-radius: 6px; }
.sk-line.short { width: 60%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.notice { padding: 28px; border-radius: 22px; background: radial-gradient(120% 120% at 0% 0%, rgba(255, 94, 126, .12), transparent 60%), rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); margin-top: 22px; }
.notice h3 { font-family: var(--display); font-size: 24px; margin-bottom: 8px; letter-spacing: -0.02em; }
.notice p { margin: 0 0 20px; }
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice.slim { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.notice.slim p { margin: 0; }
.pick-loading { display: grid; place-items: center; gap: 14px; padding: 80px 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #ff8fa3; animation: spin .8s linear infinite; }
.pick { display: grid; grid-template-columns: 190px 1fr; gap: 28px; margin-top: 4px; animation: fadeUp .6s var(--ease); }
.add .pick-poster { width: auto; aspect-ratio: 2 / 3; border-radius: 16px; overflow: hidden; background: #221d2c; box-shadow: 0 30px 60px -20px #000; }
.add .pick-poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.add .pick-poster img.ok { opacity: 1; }
.pick-info h2 { font-size: 36px !important; }
.pick-info > .muted { margin: 6px 0 0; font-size: 15px; }
.pick-ov { margin: 16px 0 0; color: rgba(246, 243, 251, .82); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.pick-controls { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; animation: fadeUp .6s .1s var(--ease) both; }
.pick-controls > .muted { margin: 0 0 -6px; }
.pick-coll { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; width: 100%; }
.pick-coll input { width: 20px; height: 20px; accent-color: #ff5e7e; margin-top: 2px; flex: none; }
.pick-coll span { display: flex; flex-direction: column; gap: 4px; }
.pick-coll small { font-size: 13.5px; }
.wide-btn { width: 100%; }

/* ================= forms ================= */

.form { display: flex; flex-direction: column; gap: 16px; }
.form h2 { margin-bottom: 6px !important; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field small { font-weight: 500; color: var(--text-3); }
.field :is(input, select, textarea), .stack-form input, .poster-input input {
  background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; color: var(--text); font: inherit; font-size: 16px; padding: 11px 14px; outline: 0; transition: box-shadow .25s;
}
.field :is(input, select, textarea):focus, .stack-form input:focus, .poster-input input:focus { box-shadow: inset 0 0 0 1.5px rgba(255, 143, 163, .8), 0 0 0 4px rgba(255, 94, 126, .12); }
.field textarea { resize: vertical; line-height: 1.5; }
.field select option { background: #1c1826; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row.three { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.poster-input { display: flex; gap: 16px; align-items: center; }
.pi-preview { width: 70px; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--surface); flex: none; }
.pi-preview img { width: 100%; height: 100%; object-fit: cover; }
.pi-controls { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pi-controls input { width: 100%; }
.file-btn { cursor: pointer; }

.picker > .muted { margin: 0 0 18px; }
.picker .search-field { max-width: none; margin: 16px 0; }
.pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 52vh; overflow: auto; margin: 0 -8px; padding: 0 8px; }
.pick-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; cursor: pointer; transition: background .2s; }
.pick-row:hover { background: var(--surface); }
.pick-row input { position: absolute; opacity: 0; pointer-events: none; }
.pick-row .poster { width: 40px; flex: none; border-radius: 7px; }
.pick-row .poster-fallback { font-size: 0; }
.pick-row > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pick-row b { font-family: var(--display); font-weight: 650; }
.pick-row small { font-size: 13px; }
.tick { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); display: grid; place-items: center; color: transparent; transition: all .35s var(--spring); flex: none; }
.tick svg { width: 15px; height: 15px; }
.pick-row input:checked ~ .tick { background: var(--sunset); box-shadow: none; color: #fff; transform: scale(1.08); }

/* ================= settings ================= */

.settings .page-head { margin-bottom: 30px; }
.panel { max-width: 760px; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel h2 { font-family: var(--display); font-size: 25px; font-weight: 650; letter-spacing: -0.025em; }
.panel h3 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); margin: 22px 0 10px; }
.panel > p { margin: 0 0 16px; font-size: 15px; }
.badge { padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: rgba(52, 211, 153, .16); color: var(--green); }
.badge.bad { background: rgba(255, 90, 106, .16); color: var(--red); }
.stack-form { display: flex; flex-direction: column; gap: 10px; align-items: stretch; max-width: 460px; margin-bottom: 14px; }
.stack-form .btn { align-self: flex-start; }
.btn-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.sub-details { margin-top: 18px; }
.sub-details summary { cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 4px; }
.switch-row small { font-size: 14px; line-height: 1.45; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 32px; border-radius: 99px; background: var(--surface-2); cursor: pointer; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .45s var(--spring); }
.switch:checked { background: var(--sunset); }
.switch:checked::after { transform: translateX(20px); }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 99px; background: var(--surface-2); font-size: 14px; font-weight: 650; animation: fadeUp .4s var(--ease); }
.cat-chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.cat-chip button:hover { background: rgba(255, 255, 255, .15); color: var(--text); }
.cat-chip svg { width: 12px; height: 12px; }
.cat-add { display: inline-flex; align-items: center; border-radius: 99px; border: 1px dashed rgba(255, 255, 255, .25); padding: 2px 4px 2px 12px; }
.cat-add input { width: 90px; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.cat-add button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.cat-add button svg { width: 15px; height: 15px; }
.err { color: var(--red); font-size: 14px; }
.about { max-width: 760px; margin-top: 30px; }

/* ================= tablets & phones ================= */

@media (max-width: 980px) {
  .nav-pill a span { display: none; }
  .nav-pill a { padding: 0 14px; }
  .rv-detail-body { grid-template-columns: 1fr; }
  .rv-radar { max-width: 220px; margin: 0 auto; order: -1; }
}

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .detail-poster { width: min(56vw, 250px); }
}

@media (max-width: 700px) {
  :root { --nav-h: 56px; }
  body { font-size: 16px; padding-bottom: calc(84px + var(--safe-bottom)); }
  .nav { padding-top: calc(var(--safe-top) + 6px); }
  .nav-inner { height: 48px; justify-content: space-between; }
  .logo { font-size: 21px; }
  .add-btn { display: none; }
  .nav-actions { gap: 0; padding: 3px; }
  .nav-actions .icon-btn { width: 36px; height: 36px; }
  /* section switcher becomes a floating glass bar at the bottom */
  .nav-pill {
    position: fixed; left: 14px; right: 84px; bottom: calc(14px + var(--safe-bottom)); margin: 0; justify-content: space-between; padding: 6px;
    background: rgba(26, 22, 34, .8);
  }
  .nav-pill a { flex: 1; justify-content: center; height: 46px; padding: 0; }
  .nav-pill a svg { width: 22px; height: 22px; }
  .fab {
    display: grid; place-items: center; position: fixed; right: 14px; bottom: calc(14px + var(--safe-bottom)); z-index: 41;
    width: 58px; height: 58px; border-radius: 50%; background: var(--sunset); color: #fff; box-shadow: 0 10px 30px -6px rgba(255, 94, 126, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .4s var(--spring);
  }
  .fab:active { transform: scale(.88) rotate(90deg); }
  .fab svg { width: 24px; height: 24px; }
  .toast { bottom: calc(92px + var(--safe-bottom)); }

  .stage { min-height: 560px; height: 92svh; }
  .stage-title { font-size: clamp(48px, 15vw, 70px); }
  .pick-card { gap: 14px; padding: 10px 14px 10px 10px; border-radius: 20px; }
  .pick-poster { width: 74px; }
  .pick-title { font-size: 21px; }
  .pick-actions .btn-glass span { display: none; }
  .row-track { gap: 14px; grid-auto-columns: 36vw; }
  .row.groups .row-track { grid-auto-columns: 46vw; }
  .row.wides .row-track { grid-auto-columns: 80vw; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 26px 12px; }
  .grid.groups { grid-template-columns: repeat(2, 1fr); }
  .card-title { font-size: 14.5px; margin-top: 10px; }
  .card-sub { font-size: 11.5px; }
  .seg button { padding: 7px 12px; font-size: 13px; }
  .icon-seg button span { display: none; }
  .tool-row .search-field { flex-basis: 100%; max-width: none; }
  .spot { --sw: min(56vw, 40vh); }
  .ep { grid-template-columns: 96px 1fr auto; gap: 12px; }
  .season-open { gap: 10px; padding: 10px; }
  .season-num { width: 26px; font-size: 18px; }
  .season-open .poster { width: 40px; }
  .stars.xl { --s: 40px; gap: 6px; }
  .cbar { grid-template-columns: 88px 1fr 34px; gap: 10px; }
  .journal { padding: 18px 18px 12px 48px; }
  .journal-mark { font-size: 58px; left: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .field-row.three { grid-template-columns: repeat(2, 1fr); }
  .pick { grid-template-columns: 110px 1fr; gap: 16px; }
  .pick-info h2 { font-size: 26px !important; }
  .pick-ov { -webkit-line-clamp: 5; }
  .result-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .member-link { gap: 12px; padding: 10px; }
  .member-n { display: none; }
  .group-stats { gap: 24px; }

  .sheet, .sheet.wide { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; transform: translateY(100%); opacity: 1; padding-bottom: var(--safe-bottom); transition: transform .55s var(--ease); }
  .sheet-wrap.open .sheet { transform: none; }
  .sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .25); margin: 8px auto 0; }
  .sheet-close { top: 10px; margin: 6px 12px 0 0; }
  .sheet-body h2 { font-size: 27px; }
}
