/* 观影库 · v6
   Cinema-dark canvas, frosted glass pills floating over full-bleed TMDB stills, one
   sky → violet → coral gradient for brand, state and progress. Latin figures in Inter Tight / SF,
   Chinese in PingFang. Signature: the Top-10 rank numerals. */

:root {
  --ink: #0e0f11;
  --screen: #16171a;
  --raised: #1e1f23;
  --lift: #2a2b31;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);
  --silver: #f3f4f6;
  --ash: #a4a6ad;
  --ash-2: #6b6d75;
  --sky: #29a0f3;
  --violet: #7e62c8;
  --coral: #de7177;
  --marquee: #e8767d;
  --reel: linear-gradient(100deg, #29a0f3 0%, #7e62c8 52%, #de7177 100%);
  --glass: rgba(24, 25, 30, .52);
  --glass-hover: rgba(255, 255, 255, .14);
  --glass-edge: rgba(255, 255, 255, .12);
  --blur: blur(24px) saturate(160%);
  --douban: #2e963d;
  --tmdb: #01b4e4;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --inset: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  --card-w: clamp(124px, 12.2vw, 186px);
  --topbar: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter Tight", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-rank: "Avenir Next Condensed", "DIN Condensed", "Bahnschrift SemiCondensed", "Bahnschrift",
               "Roboto Condensed", "Arial Narrow", var(--font);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--silver);
  font: 400 14.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01"; display: flex; flex-direction: column;
}
/* faint brand light around the page edges, as on a lit screen */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48vw 44vh at -6% 4%, rgba(41, 160, 243, .085), transparent 72%),
    radial-gradient(40vw 40vh at 104% 30%, rgba(126, 98, 200, .07), transparent 72%),
    radial-gradient(54vw 46vh at 24% 108%, rgba(222, 113, 119, .06), transparent 72%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
abbr { text-decoration: none; }
kbd { font-family: var(--font); }
.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(--silver); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--silver); color: var(--ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: currentColor; stroke: none; }

.data { font-family: var(--font); font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--ash); }
.eyebrow .data { color: var(--silver); letter-spacing: .04em; }
.hint, .empty { color: var(--ash); font-size: 14px; }
.error { margin: 12px 0; padding: 10px 14px; border-radius: var(--radius); background: rgba(222, 113, 119, .14); color: #ff9aa1; font-size: 14px; }

/* ---------- buttons & chips ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease), box-shadow .16s, opacity .16s;
}
.button:active { transform: scale(.97); }
.button .icon { width: 1.15em; height: 1.15em; }
.button.light { background: var(--silver); color: var(--ink); }
.button.light:hover { background: #fff; }
/* the signature call to action: dark glass with a gradient rim */
.button.primary {
  color: #fff; border: 1.5px solid transparent;
  background: linear-gradient(rgba(20, 21, 26, .74), rgba(20, 21, 26, .74)) padding-box, var(--reel) border-box;
  box-shadow: 0 10px 34px -14px rgba(126, 98, 200, .75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.button.primary:hover { background: linear-gradient(rgba(38, 39, 46, .7), rgba(38, 39, 46, .7)) padding-box, var(--reel) border-box; box-shadow: 0 12px 40px -12px rgba(126, 98, 200, .9); }
.button.glass { background: rgba(255, 255, 255, .1); color: var(--silver); box-shadow: inset 0 0 0 1px var(--glass-edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.button.glass:hover { background: var(--glass-hover); }
.button.reel { background: var(--reel); color: #fff; }
.button.reel:hover { box-shadow: 0 10px 34px -12px rgba(126, 98, 200, .9); }
.button.small { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.button.wide { width: 100%; }
.round-button {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%;
  background: var(--glass); color: var(--silver); cursor: pointer; box-shadow: inset 0 0 0 1px var(--glass-edge);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background-color .16s, transform .16s var(--ease);
}
.round-button:hover { background: var(--glass-hover); }
.round-button:active { transform: scale(.94); }
.round-button .icon { width: 18px; height: 18px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--ash); cursor: pointer; font-size: 13px; }
.text-button:hover { color: var(--silver); }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ash); cursor: pointer; transition: background-color .16s, color .16s; }
.icon-button:hover { background: var(--lift); color: var(--silver); }
.icon-button.danger:hover { color: #ff7d86; }

.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip {
  --brand: #8e8e99;
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 7px;
  border-radius: 6px; background: rgba(20, 21, 26, .62); color: var(--silver);
  font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
[data-platform="爱奇艺"] { --brand: #00c80a; }
[data-platform="腾讯视频"] { --brand: #ff8a00; }
[data-platform="优酷"] { --brand: #1ebaff; }
[data-platform="芒果TV"] { --brand: #ff6a00; }
[data-platform="B站"] { --brand: #fb7299; }
[data-platform="Netflix"] { --brand: #e50914; }
[data-platform="院线"] { --brand: #f5c451; }
[data-platform="Emby（Rex）"] { --brand: #52b54b; }

/* ---------- top bar: two floating glass pills ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); pointer-events: none; }
.overlay-header .topbar { position: fixed; inset: 0 0 auto 0; }
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 var(--inset); }
.topbar-inner > * { pointer-events: auto; }
.navpill, .topsearch, .kinds {
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 10px 28px -14px rgba(0, 0, 0, .7);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.navpill { display: flex; align-items: center; height: 46px; padding: 4px; border-radius: 999px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 7px; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.brandmark { width: 24px; height: 24px; flex: none; }
.nav { display: flex; gap: 2px; padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--line-strong); }
.nav a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; color: var(--ash); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .16s, background-color .16s; }
.nav a .icon { display: none; }
.nav a:hover { color: var(--silver); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--silver); background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.topsearch { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(280px, 26vw); height: 46px; padding: 0 9px 0 16px; border-radius: 999px; color: var(--ash); transition: background-color .2s, width .3s var(--ease); }
.topsearch:focus-within { background: rgba(14, 15, 17, .86); color: var(--silver); width: min(340px, 32vw); }
.topsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.topsearch input::placeholder { color: var(--ash); }
.topsearch input::-webkit-search-cancel-button { display: none; }
.topsearch kbd { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ash-2); font-size: 12px; font-weight: 500; }
.topsearch:focus-within kbd { visibility: hidden; }
.search-link { display: none; margin-left: auto; }
.gate .navpill { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

.main { flex: 1; }
/* every page lines up with the left edge of the nav pill */
.page { padding: 20px var(--inset) 24px; width: 100%; }
.page.narrow > * { max-width: 920px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin-top: 6px; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.back { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 18px; color: var(--ash); font-size: 14px; font-weight: 500; }
.back:hover { color: var(--silver); }
.back .icon { width: 18px; height: 18px; }

/* ---------- hero carousel ---------- */
.hero { position: relative; isolation: isolate; height: clamp(560px, 88vh, 900px); overflow: hidden; }
.hero.is-empty { height: auto; display: flex; align-items: flex-end; min-height: 380px; padding: calc(var(--topbar) + 90px) var(--inset) 56px; }
.hero-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hero-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; isolation: isolate; flex: 0 0 100%; height: 100%; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: flex-end; padding: 0 var(--inset) clamp(84px, 12vh, 128px);
}
.slide-art {
  position: absolute; inset: 0; z-index: -1; background: var(--screen);
  /* fade out into whatever is behind the hero, so no seam shows against the page glow */
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 24%); mask-image: linear-gradient(0deg, transparent 0%, #000 24%);
}
.slide-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.slide-art img.blur { filter: blur(48px) saturate(1.35) brightness(.6); transform: scale(1.18); }
.slide-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 15, 17, .9) 0%, rgba(14, 15, 17, .62) 30%, rgba(14, 15, 17, .12) 58%, rgba(14, 15, 17, 0) 76%),
    linear-gradient(0deg, rgba(14, 15, 17, .7) 0%, rgba(14, 15, 17, .35) 24%, rgba(14, 15, 17, 0) 46%),
    linear-gradient(180deg, rgba(14, 15, 17, .6) 0%, rgba(14, 15, 17, 0) 24%);
}
.slide-copy { position: relative; width: min(580px, 50vw); }
.slide .eyebrow { display: flex; align-items: center; gap: 10px; }
.slide-count { color: var(--silver); font-size: 12px; letter-spacing: .06em; }
.slide-count i { font-style: normal; color: var(--ash-2); margin: 0 3px; }
.slide-title { margin-top: 14px; }
.slide-name { display: block; width: fit-content; font-size: clamp(40px, 5.4vw, 76px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
.slide-title.has-logo .slide-name { margin-top: 16px; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: rgba(243, 244, 246, .9); text-shadow: none; }
.slide-logo { width: auto; height: auto; max-width: min(440px, 100%); max-height: clamp(84px, 14vh, 140px); object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .5)); }
.slide-logo.is-dark { filter: brightness(0) invert(1) drop-shadow(0 6px 26px rgba(0, 0, 0, .5)); }
.slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-top: 12px; color: var(--ash); font-size: 14px; }
.slide-meta > :not(.chips) + :not(.chips)::before { content: "·"; margin: 0 9px; color: var(--ash-2); }
.slide-meta > .chips { margin-left: 14px; }
.slide-meta .data { color: var(--silver); }
.slide-intro { margin-top: 12px; max-width: 50ch; color: rgba(243, 244, 246, .76); font-size: 14.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.slide-actions form { display: contents; }
.slide-poster {
  position: absolute; right: calc(var(--inset) + 2vw); bottom: clamp(84px, 12vh, 128px); width: clamp(200px, 19vw, 280px);
  border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: perspective(900px) rotateY(-9deg); transition: transform .5s var(--ease);
}
.slide-poster:hover { transform: perspective(900px) rotateY(-3deg); }
.is-poster .slide-copy { width: min(560px, 46vw); }
/* motion only once the script runs the carousel */
.hero.is-live .slide:not(.is-active) .slide-copy > * { opacity: 0; }
.hero.is-live .slide.is-active .slide-copy > * { animation: rise .7s var(--ease) both; }
.hero.is-live .slide.is-active .slide-copy > :nth-child(2) { animation-delay: .05s; }
.hero.is-live .slide.is-active .slide-copy > :nth-child(3) { animation-delay: .1s; }
.hero.is-live .slide.is-active .slide-copy > :nth-child(4) { animation-delay: .15s; }
.hero.is-live .slide.is-active .slide-copy > :nth-child(5) { animation-delay: .2s; }
.hero.is-live .slide.is-active .slide-art img:not(.blur) { animation: drift 14s linear both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-top { position: absolute; z-index: 2; top: calc(var(--topbar) + 4px); left: 0; right: 0; padding: 0 var(--inset); pointer-events: none; }
.hero.is-empty .hero-top { position: absolute; }
.kinds { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; pointer-events: auto; }
.kinds a { display: inline-flex; align-items: center; height: 32px; padding: 0 15px; border-radius: 999px; color: var(--ash); font-size: 13.5px; font-weight: 500; transition: background-color .16s, color .16s; }
.kinds a:hover { color: var(--silver); background: rgba(255, 255, 255, .07); }
.kinds a[aria-current="page"] { background: var(--silver); color: var(--ink); font-weight: 600; }

.hero-controls { position: absolute; z-index: 2; right: var(--inset); bottom: clamp(84px, 12vh, 128px); display: grid; justify-items: end; gap: 24px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { display: grid; align-items: center; width: 22px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .35s var(--ease); }
.hero-dot span { position: relative; display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .26); overflow: hidden; }
.hero-dot:hover span { background: rgba(255, 255, 255, .45); }
.hero-dot[aria-current="true"] { width: 44px; }
.hero-dot[aria-current="true"] span::after { content: ""; position: absolute; inset: 0; background: var(--silver); transform-origin: left; transform: scaleX(var(--p, 1)); }

/* score badge, eg in the hero and under cards */
.score { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: var(--silver); font-variant-numeric: tabular-nums; }
.score abbr { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: var(--douban); color: #fff; font: 600 11px/1 var(--font); }
.score[data-source="tmdb"] abbr { background: var(--tmdb); color: var(--ink); }

/* ---------- rows ---------- */
.row { position: relative; margin-top: 40px; }
.hero + .row { margin-top: -40px; z-index: 1; }
.row-head { display: flex; align-items: baseline; gap: 10px; padding: 0 var(--inset); margin-bottom: 4px; }
.row-head h2 { font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.01em; }
.row-count { color: var(--ash-2); font-size: 12.5px; }
.row-count .data { color: var(--ash-2); font-weight: 500; }
.row-all { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ash); font-size: 13px; font-weight: 500; transition: color .16s; }
.row-all .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.row-all:hover { color: var(--silver); }
.row-all:hover .icon { transform: translateX(3px); }
.row-viewport { position: relative; }
.row-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset);
  padding: 12px var(--inset) 24px; scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute; z-index: 3; top: calc(12px + var(--card-w) * .75); width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--silver);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 10px 28px -10px rgba(0, 0, 0, .8);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  opacity: 0; transition: opacity .2s var(--ease), background-color .16s;
}
.row-arrow.prev { left: max(8px, calc(var(--inset) - 22px)); }
.row-arrow.next { right: max(8px, calc(var(--inset) - 22px)); }
.row-arrow:hover { background: var(--glass-hover); }
.row-arrow .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.row-viewport:hover .row-arrow:not(:disabled), .row-arrow:focus-visible { opacity: 1; }
.row-arrow:disabled { pointer-events: none; }
.row-empty { padding: 0 var(--inset); }

/* platform Top 10 row: pills switch the chart in place */
.stream-row .row-head { flex-wrap: wrap; align-items: center; row-gap: 10px; }
.stream-tabs { display: flex; gap: 4px; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--screen); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.stream-tabs::-webkit-scrollbar { display: none; }
.stream-tabs a {
  --brand: #8e8e99; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 11px;
  border-radius: 999px; color: var(--ash); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color .16s, color .16s;
}
.stream-tabs a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.stream-tabs a:hover { color: var(--silver); background: rgba(255, 255, 255, .06); }
.stream-tabs a[aria-current="true"] { color: var(--ink); background: var(--silver); font-weight: 600; }
[data-service="netflix"] { --brand: #e50914; }
[data-service="disney"] { --brand: #3d6bff; }
[data-service="apple"] { --brand: #d6d6dc; }
[data-service="prime"] { --brand: #1a98ff; }
[data-service="hbo"] { --brand: #8a5cf6; }
.stream-row.htmx-request .row-viewport, .stream-row.htmx-request .row-empty { opacity: .45; transition: opacity .2s; }
.stream-row .row-empty { min-height: 120px; }

/* ---------- poster card ---------- */
.card { flex: 0 0 var(--card-w); scroll-snap-align: start; min-width: 0; }
.card > a { display: block; }
.card-art {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--raised);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 26px -18px rgba(0, 0, 0, .9);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.card > a:hover .card-art, .card > a:focus-visible .card-art { transform: translateY(-5px); box-shadow: 0 22px 44px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .2); }
.card > a:focus-visible { outline: none; }
.poster { position: relative; display: block; aspect-ratio: 2 / 3; background: linear-gradient(160deg, var(--lift), var(--raised)); }
.poster img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; color: var(--ash); font-size: 13px; font-weight: 600; line-height: 1.4; }
.badge-status {
  position: absolute; z-index: 2; top: 7px; left: 7px; display: inline-flex; align-items: center; gap: 3px;
  height: 22px; padding: 0 7px 0 5px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1;
  background: rgba(20, 21, 26, .78); color: var(--silver); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.badge-status .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.badge-status[data-status="watched"] { background: var(--reel); color: #fff; }
.badge-status[data-status="watching"] { background: var(--violet); color: #fff; }
.badge-status[data-status="dropped"] { color: var(--ash); }
.card-foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 30px 7px 7px; background: linear-gradient(0deg, rgba(14, 15, 17, .86), rgba(14, 15, 17, 0)); }
.card-foot .chip { height: 20px; font-size: 11px; }
.card-title { margin-top: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { display: flex; align-items: center; margin-top: 3px; color: var(--ash-2); font-size: 12px; overflow: hidden; white-space: nowrap; }
.card-sub > * + *::before { content: "·"; margin: 0 6px; color: var(--ash-2); }
.card-sub .data { color: var(--ash); font-weight: 500; }
.card-genre { overflow: hidden; text-overflow: ellipsis; color: var(--ash); }
.card-sub .score { font-size: 12px; gap: 3px; flex: none; }
.card-sub .score abbr { width: 14px; height: 14px; border-radius: 3px; font-size: 9.5px; }

/* signature: Top-10 rank numerals */
.card.ranked { flex-basis: auto; }
.rank-stage { display: flex; align-items: flex-end; }
.rank-stage .card-art { width: var(--card-w); flex: none; z-index: 1; }
.rank {
  flex: none; position: relative; z-index: 0; margin-right: -.12em;
  font: 800 calc(var(--card-w) * 1.06)/.74 var(--font-rank); letter-spacing: -.06em;
  background: var(--reel); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px rgba(14, 15, 17, .9); paint-order: stroke fill;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
  transition: transform .3s var(--ease);
}
.card.ranked > a:hover .rank { transform: translateX(-4px); }
.card.ranked .card-title, .card.ranked .card-sub { width: var(--card-w); margin-left: auto; }

/* grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 16px; }
.grid .card { flex: none; }
.grid .card.ranked .rank-stage .card-art, .grid .card.ranked .card-title, .grid .card.ranked .card-sub { width: 72%; }
.grid .rank { font-size: clamp(80px, 8vw, 120px); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pills a { padding: 7px 16px; border-radius: 999px; background: var(--raised); color: var(--ash); font-size: 13.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .16s, color .16s; }
.pills a:hover { color: var(--silver); background: var(--lift); }
.pills a[aria-current="page"] { background: var(--silver); color: var(--ink); font-weight: 600; box-shadow: none; }

/* ---------- title detail ---------- */
.title-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--topbar) + 12px) var(--inset) 44px; }
.title-hero:has(.is-still) { min-height: min(80vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; }
.title-backdrop { position: absolute; inset: -60px; z-index: -2; }
.title-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(48px) saturate(1.5) brightness(.74); transform: scale(1.1); animation: backdrop-in 1.2s var(--ease) both; }
.title-backdrop.is-still { inset: 0; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 34%); mask-image: linear-gradient(0deg, transparent 0%, #000 34%); }
.title-backdrop.is-still img { filter: none; transform: none; object-position: center 20%; animation: still-in 1.2s var(--ease) both; }
@keyframes backdrop-in { from { opacity: 0; transform: scale(1.16); } }
@keyframes still-in { from { opacity: 0; transform: scale(1.04); } }
.title-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 2%, rgba(14, 15, 17, .55) 42%, rgba(14, 15, 17, .2)), linear-gradient(90deg, rgba(14, 15, 17, .62), rgba(14, 15, 17, 0) 62%); }
.title-hero:has(.is-still)::after { content: none; }
.title-backdrop.is-still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 15, 17, .7) 0%, rgba(14, 15, 17, .5) 34%, rgba(14, 15, 17, .06) 68%, rgba(14, 15, 17, .5)), linear-gradient(90deg, rgba(14, 15, 17, .82), rgba(14, 15, 17, 0) 64%); }
.title-hero-inner { width: 100%; }
.title-head { display: grid; grid-template-columns: clamp(170px, 18vw, 250px) 1fr; gap: clamp(20px, 3.4vw, 48px); align-items: end; }
.title-poster { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
.title-copy h1 { margin: 8px 0 4px; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.original { color: var(--ash); font-size: 16px; }
.scores { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.score-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); font-size: 13px; color: var(--ash); }
.score-pill b { font-size: 17px; color: var(--silver); line-height: 1; }
.score-pill[data-source="douban"] abbr { color: #5fd16f; }
.score-pill[data-source="tmdb"] abbr { color: var(--tmdb); }
.score-pill[data-source="mine"] { background: var(--reel); color: rgba(255, 255, 255, .88); box-shadow: none; }
.score-pill[data-source="mine"] b { color: #fff; }
.status-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status-button {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 68px; height: 60px; border-radius: 14px; background: var(--glass); color: var(--ash);
  box-shadow: inset 0 0 0 1px var(--glass-edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  font-size: 12px; font-weight: 600; transition: background-color .16s, color .16s, transform .16s var(--ease);
}
.status-button .icon { width: 20px; height: 20px; }
.status-button:hover { background: var(--glass-hover); color: var(--silver); }
.status-button:active { transform: scale(.95); }
.status-button[aria-current="true"] { background: var(--reel); color: #fff; box-shadow: none; }
.log-button { height: 60px; padding: 0 26px; }
.status-bar .log-button:first-of-type { margin-left: 6px; }
.review { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--violet); color: rgba(243, 244, 246, .86); font-size: 15px; max-width: 640px; }

.title-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 64px); margin-top: 12px; padding: 0 var(--inset) 24px; width: 100%; }
.block { margin-bottom: 36px; }
.block > h2, .block-head h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.block-head { display: flex; align-items: baseline; gap: 10px; }
.count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--raised); color: var(--ash); font-size: 12.5px; }
.synopsis { color: rgba(243, 244, 246, .82); font-size: 15px; line-height: 1.85; max-width: 72ch; }
.providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.provider {
  --brand: #8e8e99;
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px;
  min-height: 62px; padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--screen);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: background-color .16s, transform .16s var(--ease);
}
.provider::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
a.provider:hover { background: var(--raised); transform: translateY(-2px); }
.provider-name { font-weight: 600; font-size: 15px; }
.provider small { grid-column: 1; color: var(--ash); font-size: 12px; }
.provider .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--ash); width: 18px; height: 18px; }
.facts { display: grid; gap: 16px; padding: 20px; border-radius: var(--radius-lg); background: var(--screen); box-shadow: inset 0 0 0 1px var(--line); }
.facts dt { color: var(--ash-2); font-size: 12px; font-weight: 500; letter-spacing: .12em; }
.facts dd { margin-top: 3px; font-size: 14px; line-height: 1.65; }

.records { display: grid; gap: 4px; }
.record { display: grid; grid-template-columns: 104px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px 12px 14px; border-radius: 12px; background: var(--screen); }
.record time { font-size: 15px; color: var(--silver); }
.record-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.se { font-size: 14px; color: var(--silver); }
.record-note { margin-top: 4px; color: var(--ash); font-size: 14px; }
.record-actions { display: flex; }
.record-actions form { display: contents; }

/* ---------- sheet (record dialog) ---------- */
.sheet {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 18px 22px 24px; border: 0; border-radius: 22px; background: var(--screen); color: var(--silver);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-strong);
}
.sheet::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .32s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.sheet-grip { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: -6px auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sheet-head h2 { font-size: 21px; font-weight: 700; }
.sheet-head p { color: var(--ash); font-size: 14px; }
.sheet-form { display: grid; gap: 18px; }
.sheet-form legend, .field { color: var(--ash); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; }
.sheet-form legend { margin-bottom: 8px; }
.sheet-hint { color: var(--ash-2); font-size: 12.5px; line-height: 1.6; }
.field { display: grid; gap: 7px; }
.field input, .field select, .field textarea, .bigsearch input {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 12px; outline: none;
  background: var(--raised); color: var(--silver); font-size: 15px; font-weight: 400; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .16s;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px rgba(243, 244, 246, .7); }
.field-row { display: grid; grid-template-columns: 1fr 76px 76px; gap: 10px; }
.field-row:has(> .field:only-child) { grid-template-columns: 1fr; }
.field.compact select { min-height: 36px; padding: 6px 30px 6px 14px; border-radius: 999px; font-size: 13.5px; }
.segmented, .choice-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented input, .choice-chips input, .stars input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; height: 44px;
  border-radius: 12px; background: var(--raised); color: var(--ash); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .16s, color .16s;
}
.segmented label .icon { width: 17px; height: 17px; }
.segmented input:checked + label { background: var(--reel); color: #fff; }
.segmented input:focus-visible + label, .choice-chips input:focus-visible + label, .stars input:focus-visible + label { outline: 2px solid var(--silver); outline-offset: 2px; }
.choice-chips label {
  --brand: #8e8e99; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 11px;
  border-radius: 999px; background: var(--raised); color: var(--ash); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background-color .16s, color .16s, box-shadow .16s;
}
.choice-chips label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.choice-chips input:checked + label { background: var(--lift); color: var(--silver); box-shadow: inset 0 0 0 1.5px var(--silver); }
.stars { display: flex; align-items: center; gap: 14px; }
.stars-row { display: inline-flex; flex-direction: row-reverse; }
.stars-row label { padding: 2px 3px; color: var(--lift); cursor: pointer; transition: color .12s, transform .12s var(--ease); }
.stars-row label .icon { width: 32px; height: 32px; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--marquee); }
.stars-row label:active { transform: scale(.88); }
.stars-clear { order: 2; color: var(--ash); font-size: 13px; font-weight: 500; cursor: pointer; padding: 6px 12px; border-radius: 999px; }
.stars input#rating-none:checked + .stars-clear { background: var(--raised); color: var(--silver); }

/* ---------- trailer dialog ---------- */
.trailer {
  width: min(1120px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  background: #000; color: var(--silver); box-shadow: 0 40px 140px rgba(0, 0, 0, .85), 0 0 0 1px var(--line-strong);
}
.trailer::backdrop { background: rgba(5, 6, 8, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.trailer[open] { animation: sheet-in .32s var(--ease) both; }
.trailer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; background: var(--screen); }
.trailer-head p { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trailer-frame { aspect-ratio: 16 / 9; background: #000; }
.trailer-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- queue ---------- */
.watching { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
.watch-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--screen); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .16s; }
.watch-card:hover { background: var(--raised); }
.watch-link { flex: 1; display: flex; gap: 14px; align-items: center; min-width: 0; }
.watch-thumb { width: 64px; flex: none; border-radius: 9px; overflow: hidden; }
.watch-thumb .poster-fallback, .log-thumb .poster-fallback { font-size: 10px; padding: 4px; }
.watch-body { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.watch-body strong { font-size: 16px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-progress-text { color: var(--ash); font-size: 13px; }
.watch-progress-text > .data { font-size: 15px; color: var(--silver); }
.watch-progress-text .of .data { color: var(--ash); font-size: 13px; }
progress { -webkit-appearance: none; appearance: none; width: min(220px, 100%); height: 4px; border: 0; border-radius: 2px; background: var(--lift); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--lift); border-radius: 2px; }
progress::-webkit-progress-value { background: var(--reel); border-radius: 2px; }
progress::-moz-progress-bar { background: var(--reel); border-radius: 2px; }
.plus-one {
  display: inline-flex; align-items: center; gap: 3px; height: 40px; padding: 0 15px 0 12px; border: 0; border-radius: 999px;
  background: var(--reel); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), opacity .16s;
}
.plus-one .icon { stroke-width: 2.8; }
.plus-one:active { transform: scale(.94); }
.plus-one:disabled { opacity: .5; }
#queue-content .block + .block { margin-top: 12px; }

/* ---------- timeline ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.filters .field { gap: 0; }
.month { margin-bottom: 30px; }
.month-head { position: sticky; top: var(--topbar); z-index: 2; padding: 10px 0; background: linear-gradient(180deg, var(--ink) 70%, rgba(14, 15, 17, 0)); font-size: 14px; font-weight: 600; color: var(--ash); letter-spacing: .04em; }
.log { display: grid; gap: 4px; }
.log-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.log-date { display: grid; justify-items: center; line-height: 1; }
.log-date .data { font-size: 26px; font-weight: 600; color: var(--silver); }
.log-date small { margin-top: 5px; color: var(--ash-2); font-size: 11.5px; font-weight: 500; }
.log-link { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--screen); transition: background-color .16s; min-width: 0; }
.log-link:hover { background: var(--raised); }
.log-thumb { width: 46px; flex: none; border-radius: 7px; overflow: hidden; }
.log-body { display: grid; gap: 5px; min-width: 0; }
.log-body strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.log-note { color: var(--ash); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stars-static { color: var(--marquee); letter-spacing: 1px; font-size: 13px; }
.stars-static .off { color: var(--lift); }

/* ---------- search ---------- */
.bigsearch { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 18px; color: var(--ash); }
.bigsearch:focus-within { box-shadow: inset 0 0 0 2px rgba(243, 244, 246, .6); }
.bigsearch .icon { width: 20px; height: 20px; }
.bigsearch input { flex: 1; min-width: 0; padding: 8px 0; box-shadow: none; background: none; font-size: 17px; }
.bigsearch input:focus { box-shadow: none; }
.result-count { color: var(--ash); font-size: 13px; margin-bottom: 10px; }
.results { display: grid; gap: 4px; }
.results a { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 12px 14px 14px; border-radius: 14px; background: var(--screen); transition: background-color .16s; }
.results a:hover { background: var(--raised); }
.results strong { font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-kind { padding: 3px 9px; border-radius: 999px; background: var(--lift); color: var(--ash); font-size: 12px; font-weight: 500; }
.result-year { color: var(--ash); font-size: 14px; }
.result-source { color: var(--ash-2); font-size: 12px; }
.results .icon { color: var(--ash-2); }

/* ---------- login ---------- */
.gate-stage { position: relative; min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 32px 16px; isolation: isolate; overflow: hidden; }
.gate-glow { position: absolute; z-index: -1; left: 50%; top: 50%; width: 760px; height: 560px; transform: translate(-50%, -54%); background: radial-gradient(closest-side at 44% 44%, rgba(41, 160, 243, .28), transparent 70%), radial-gradient(closest-side at 60% 50%, rgba(126, 98, 200, .24), transparent 70%), radial-gradient(closest-side at 50% 68%, rgba(222, 113, 119, .2), transparent 70%); filter: blur(30px); }
.gate-card { width: min(400px, 100%); padding: 32px 28px; border-radius: 24px; background: rgba(26, 27, 32, .74); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px var(--line), 0 40px 100px rgba(0, 0, 0, .6); }
.gate-card h1 { margin: 8px 0 22px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 28px var(--inset) 36px; margin-top: 28px; border-top: 1px solid var(--line); color: var(--ash-2); font-size: 12px; }
.footer img { opacity: .7; height: 10px; width: auto; }
.footer p { flex: 1; min-width: 240px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .title-body { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .slide-copy { width: min(560px, 62vw); }
}
@media (max-width: 760px) {
  :root { --topbar: 56px; --card-w: 30vw; --gutter: 16px; }
  body.app { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* no backdrop-filter on the bar or the pill: it would become the containing block of the fixed bottom nav */
  .topbar { pointer-events: auto; transition: background-color .25s var(--ease); }
  .topbar.is-scrolled, .gate .topbar { background: rgba(14, 15, 17, .94); box-shadow: 0 1px 0 var(--line); }
  .overlay-header .topbar:not(.is-scrolled) { background: linear-gradient(180deg, rgba(14, 15, 17, .78), rgba(14, 15, 17, 0)); }
  .topbar-inner { padding: 0 12px 0 16px; }
  .navpill { height: auto; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .wordmark { padding: 0; height: 40px; font-size: 17px; }
  .topsearch { display: none; }
  .search-link { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--silver); }
  .search-link .icon { width: 21px; height: 21px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 0; justify-content: space-around; margin: 0; padding: 0 0 env(safe-area-inset-bottom);
    height: calc(60px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--line);
    background: rgba(18, 19, 23, .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  }
  .nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 60px; padding: 0; border-radius: 0; font-size: 11px; }
  .nav a:hover, .nav a[aria-current="page"] { background: none; box-shadow: none; }
  .nav a .icon { display: block; width: 23px; height: 23px; }
  .nav a[aria-current="page"] .icon { color: var(--violet); filter: drop-shadow(0 0 10px rgba(126, 98, 200, .6)); }

  .hero { height: auto; }
  .hero.is-empty { min-height: 300px; padding: calc(var(--topbar) + 70px) 16px 36px; }
  .slide { display: block; height: auto; padding: 0 0 6px; }
  .slide-art { position: relative; inset: auto; height: max(300px, 74vw); }
  .slide-art img { object-position: center 30%; }
  .slide-art::after { background: linear-gradient(0deg, var(--ink) 1%, rgba(14, 15, 17, .55) 32%, rgba(14, 15, 17, 0) 60%), linear-gradient(180deg, rgba(14, 15, 17, .6) 0%, rgba(14, 15, 17, 0) 30%); }
  .slide-copy, .is-poster .slide-copy { width: auto; margin-top: -92px; padding: 0 16px; }
  .slide-name { font-size: clamp(30px, 9vw, 40px); }
  .slide-logo { max-width: 72%; max-height: 72px; }
  .slide-title.has-logo .slide-name { margin-top: 10px; font-size: 14px; }
  .slide-meta { font-size: 13px; margin-top: 10px; }
  .slide-meta > .chips { margin: 6px 0 0; flex-basis: 100%; }
  .slide-intro { font-size: 13.5px; margin-top: 8px; }
  .slide-actions { margin-top: 16px; gap: 8px; }
  .slide-actions .button { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
  .slide-actions .button.primary { flex: 1; max-width: 220px; }
  .slide-poster { display: none; }
  .hero-top { top: calc(var(--topbar) + 2px); padding: 0 16px; }
  .kinds { background: rgba(14, 15, 17, .55); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .kinds a { height: 30px; padding: 0 13px; font-size: 13px; }
  .hero-controls { position: absolute; top: calc(max(300px, 74vw) - 120px); bottom: auto; right: 16px; }
  .hero-arrows { display: none; }
  .hero-dot { width: 14px; }
  .hero-dot[aria-current="true"] { width: 30px; }

  .hero + .row { margin-top: 22px; }
  .row { margin-top: 30px; }
  .row-head h2 { font-size: 19px; }
  .stream-tabs { order: 3; flex-basis: 100%; margin: 0 calc(-1 * var(--inset)); padding: 3px var(--inset); border-radius: 0; background: none; box-shadow: none; }
  .stream-tabs a { background: var(--screen); box-shadow: inset 0 0 0 1px var(--line); }
  .row-track { gap: 10px; padding: 8px var(--inset) 16px; }
  .row-arrow { display: none; }
  .card-title { font-size: 13px; margin-top: 8px; }
  .card-sub { font-size: 11.5px; }
  .card-genre { display: none; }
  .card-foot { display: none; }
  .rank { -webkit-text-stroke-width: 1.5px; font-size: calc(var(--card-w) * .9); }
  .badge-status { padding: 0 5px; }
  .badge-status span { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
  .grid .card.ranked .rank-stage .card-art, .grid .card.ranked .card-title, .grid .card.ranked .card-sub { width: 74%; }
  .grid .rank { font-size: 24vw; }
  .page { padding: 14px 16px 16px; }

  .title-hero { padding: calc(var(--topbar) + 6px) 16px 26px; }
  .title-hero:has(.is-still) { min-height: 0; }
  .title-backdrop.is-still { inset: 0 0 auto 0; height: max(300px, 74vw); }
  .title-backdrop.is-still::after { background: linear-gradient(0deg, rgba(14, 15, 17, .6), rgba(14, 15, 17, 0) 60%), linear-gradient(180deg, rgba(14, 15, 17, .55), rgba(14, 15, 17, 0) 32%); }
  .title-hero:has(.is-still) .title-head { padding-top: calc(max(300px, 74vw) - 220px); }
  .title-head { grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
  .title-copy h1 { font-size: clamp(24px, 7vw, 32px); margin-top: 4px; }
  .original { font-size: 13.5px; }
  .scores { margin: 12px 0 0; gap: 6px; }
  .score-pill { height: 28px; padding: 0 10px; font-size: 12px; }
  .score-pill b { font-size: 15px; }
  .status-bar { grid-column: 1 / -1; margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); }
  .title-copy { display: contents; }
  .title-copy > :not(.status-bar):not(.review) { grid-column: 2; }
  .title-copy > .eyebrow { align-self: start; }
  .title-head > .title-poster { grid-row: 1 / span 4; }
  .review { grid-column: 1 / -1; }
  .status-button { width: auto; }
  .log-button, .status-bar .log-button:first-of-type { grid-column: span 2; height: 48px; margin: 4px 0 0; }
  .log-button:only-of-type, .status-bar .log-button:only-of-type { grid-column: 1 / -1; }
  .title-body { padding: 0 16px 16px; }
  .providers { grid-template-columns: 1fr 1fr; }
  .record { grid-template-columns: 1fr auto; padding: 10px 4px 10px 12px; }
  .record time { grid-column: 1; font-size: 14px; }
  .record-body { grid-column: 1; }
  .record-actions { grid-column: 2; grid-row: 1 / span 2; }

  .sheet { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); }
  .sheet[open] { animation: sheet-up .36s var(--ease) both; }
  .sheet-grip { display: block; }
  .segmented label { min-width: 0; font-size: 13px; }
  .stars-row label .icon { width: 30px; height: 30px; }
  .trailer { width: 100vw; max-width: none; border-radius: 0; }

  .watching { grid-template-columns: 1fr; }
  .watch-thumb { width: 54px; }
  .log-row { grid-template-columns: 40px 1fr; gap: 8px; }
  .log-date .data { font-size: 22px; }
  .results a { grid-template-columns: auto 1fr auto auto; }
  .result-source { display: none; }
  .footer { padding: 24px 16px 20px; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

@media (hover: none) {
  .row-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
