/* ============================================================
   CineVault 视觉层（流媒体风格 v2）
   设计要点：#141414 平铺底色 / 全幅主视觉 + 左下文案 /
   行与主视觉重叠 / 悬停弹出预览卡 / 顶部居上的详情模态框
   ============================================================ */
:root {
  --red: #e50914;
  --red-soft: #f6121d;
  --bg: #141414;
  --bg-elev: #181818;
  --bg-card: #2f2f2f;
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --text-mute: #808080;
  --green: #46d369;
  --radius: 4px;
  --nav-h: 68px;
  --gutter: 4vw;
  --gap: max(4px, .4vw);
  --per: 6;
  --ease: cubic-bezier(.25, .8, .25, 1);
}
@media (max-width: 1399px) { :root { --per: 5; } }
@media (max-width: 1099px) { :root { --per: 4; } }
@media (max-width: 799px)  { :root { --per: 3; } }
@media (max-width: 499px)  { :root { --per: 2; } }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Segoe UI", Roboto, Ubuntu, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ------------------------------------------------------------ 顶部导航 */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  z-index: 90;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 10%, rgba(0,0,0,0));
  transition: background-color .4s;
}
.nav.solid { background-color: var(--bg); }
.brand {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: .02em;
  color: var(--red);
  white-space: nowrap;
  margin-right: 34px;
  user-select: none;
}
.brand span { color: inherit; }
.nav-menu { position: relative; display: flex; align-items: center; }
.nav-browse { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #fff; }
.nav-browse::after { content: ""; border: 5px solid transparent; border-top-color: #fff; margin-top: 5px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; color: #e5e5e5; }
.nav-links a { transition: color .4s; white-space: nowrap; }
.nav-links a:hover { color: var(--text-dim); }
.nav-links a.active { color: #fff; font-weight: 700; cursor: default; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 20px; color: #fff; }
.nav-text { font-size: 14px; color: #fff; white-space: nowrap; }
.nav-icon { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.nav-icon svg { width: 22px; height: 22px; }
.nav-icon .dot {
  position: absolute; top: -5px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  height: 34px; width: 34px; padding: 0 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: width .3s var(--ease), background-color .3s, border-color .3s;
  overflow: hidden;
}
.search-box svg { width: 22px; height: 22px; flex: 0 0 auto; }
.search-box input {
  background: none; border: 0; outline: 0; color: #fff; font-size: 14px; width: 100%;
  font-family: inherit;
}
.search-box input::placeholder { color: #8c8c8c; }
.search-box input::-webkit-search-cancel-button { filter: invert(1); }
.search-box:focus-within,
.search-box:has(input:not(:placeholder-shown)) {
  width: 270px; border-color: rgba(255,255,255,.85); background: rgba(0,0,0,.75); cursor: text;
}
.profile { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.profile::after {
  content: ""; border: 5px solid transparent; border-top-color: #fff; margin-top: 5px;
  transition: transform .3s;
}
.profile:hover::after { transform: rotate(180deg) translateY(5px); }
.avatar {
  width: 32px; height: 32px; border-radius: 4px;
  background: linear-gradient(135deg, #2b74e2, #1a4fa3);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
}

/* ------------------------------------------------------------ 主视觉（全幅 billboard） */
.hero {
  position: relative;
  height: 56.25vw;
  min-height: 540px;
  max-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 80% at 72% 28%, hsl(var(--hue, 352) 70% 34% / .95), transparent 70%),
    radial-gradient(42% 60% at 98% 80%, hsl(calc(var(--hue, 352) + 34) 60% 24% / .9), transparent 70%),
    radial-gradient(50% 60% at 40% 10%, hsl(calc(var(--hue, 352) - 20) 40% 18% / .8), transparent 70%),
    linear-gradient(118deg, #0d0b10 0%, #0b0b0e 52%, #060608 100%);
}
.hero-bg::before {
  content: ""; position: absolute;
  right: -10vw; top: -20vh; width: 64vw; height: 130vh;
  background: linear-gradient(200deg, hsl(var(--hue, 352) 80% 50% / .28), transparent 66%);
  transform: rotate(16deg);
  filter: blur(80px);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  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='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  opacity: .12; mix-blend-mode: overlay;
}
.hero-ghost {
  position: absolute; z-index: -2;
  right: -2vw; top: 46%;
  transform: translateY(-50%);
  font-size: clamp(160px, 24vw, 420px);
  font-weight: 900; letter-spacing: -.06em; line-height: .8;
  color: #fff; opacity: .07;
  white-space: nowrap; pointer-events: none;
  mix-blend-mode: overlay;
}
/* 左侧压暗 + 底部融入底色 */
.hero-bg .hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  opacity: 0; transition: opacity .65s ease;
}
.hero-bg .hero-img.loaded { opacity: 1; }
.hero.has-img .hero-ghost { display: none; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(77deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,0) 85%);
}
.hero-fade {
  position: absolute; inset: auto 0 0 0; height: 14.7vw; min-height: 120px; z-index: -1;
  background: linear-gradient(180deg,
    rgba(20,20,20,0) 0%, rgba(20,20,20,.15) 15%, rgba(20,20,20,.35) 29%,
    rgba(20,20,20,.58) 44%, var(--bg) 68%, var(--bg) 100%);
}
.hero-content {
  position: absolute;
  left: var(--gutter); bottom: 35%;
  width: 40%; min-width: 320px;
  z-index: 2;
}
.hero-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: clamp(12px, 1vw, 16px); font-weight: 700;
  letter-spacing: .3em; color: #ddd; margin-bottom: .8vw;
}
.kicker-mark {
  font-family: "Arial Black", Arial, sans-serif;
  color: var(--red); letter-spacing: 0; font-size: 1.25em;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 92px);
  line-height: 1;
  margin: 0 0 1.2vw;
  font-weight: 900;
  letter-spacing: -.02em;
  text-shadow: 2px 4px 30px rgba(0,0,0,.45);
}
.hero-rank {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(15px, 1.5vw, 26px); font-weight: 700;
  margin-bottom: 1vw;
  text-shadow: 2px 2px 4px rgba(0,0,0,.45);
}
.t10 {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 1.45em; height: 1.6em; border-radius: 2px;
  background: var(--red); color: #fff;
  font-size: .78em; line-height: 1; letter-spacing: 0;
  text-shadow: none;
}
.t10 small { font-size: .42em; font-weight: 700; letter-spacing: .05em; }
.t10 b { font-size: .78em; font-weight: 900; letter-spacing: -.04em; }
.hero p {
  font-size: clamp(14px, 1.3vw, 22px);
  line-height: 1.4;
  color: #fff;
  margin: 0 0 1.5vw;
  text-shadow: 2px 2px 4px rgba(0,0,0,.45);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: none; }
.hero-actions { display: flex; gap: .8vw; align-items: center; flex-wrap: wrap; }
.hero-side {
  position: absolute; right: 0; bottom: 35%; z-index: 2;
  display: flex; align-items: center; gap: 1vw;
}
.maturity-flag {
  display: flex; align-items: center;
  height: 2.4vw; min-height: 32px;
  padding: 0 3.5vw 0 .8vw;
  background: rgba(51,51,51,.6);
  border-left: 3px solid #dcdcdc;
  font-size: clamp(13px, 1.1vw, 18px);
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: var(--gutter); height: 96px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.78);
  opacity: 0; transition: opacity .25s, color .2s, transform .2s;
}
.hero-arrow svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.75)); }
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { color: #fff; transform: translateY(-50%) scale(1.12); }
.hero-arrow.left { left: 0; }
.hero-arrow.right { right: 0; }
.hero-arrow[hidden] { display: none; }
.hero-dots {
  position: absolute; right: var(--gutter); bottom: 25%; z-index: 4;
  display: flex; align-items: center; gap: 6px;
}
.hero-dot {
  width: 18px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.35);
  transition: width .25s var(--ease), background-color .25s;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.on { width: 28px; background: #fff; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .55em 1.7em .55em 1.3em;
  border-radius: 4px;
  font-size: clamp(14px, 1.2vw, 20px); font-weight: 700; line-height: 1.6;
  white-space: nowrap;
  transition: background-color .2s, opacity .2s;
}
.btn svg { width: 1.45em; height: 1.45em; flex: 0 0 auto; }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: rgba(255,255,255,.75); }
.btn-info { background: rgba(109,109,110,.7); color: #fff; }
.btn-info:hover { background: rgba(109,109,110,.4); }
.btn.disabled { opacity: .5; cursor: default; }
.btn-dl { background: rgba(109,109,110,.7); color: #fff; }
.btn-dl:hover { background: rgba(109,109,110,.4); }
.chip {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.4);
  padding: 0 .4em; font-size: .9em; line-height: 1.4; color: #fff;
}
.hd-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.4); border-radius: 3px;
  padding: 0 .4em; font-size: .7em; font-weight: 700; line-height: 1.5; letter-spacing: .04em;
}
.cc-badge svg { width: 1.4em; height: 1.4em; vertical-align: middle; opacity: .85; }
.match { color: var(--green); font-weight: 700; }

/* ------------------------------------------------------------ 二级栏：分类标题 + 类型下拉 + 排序 */
.subnav {
  position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 6px var(--gutter);
}
.subnav-title {
  margin: 0; font-size: clamp(22px, 2.4vw, 38px); font-weight: 700; letter-spacing: .01em;
}
.nf-dd { position: relative; }
.nf-dd-btn, .sort select {
  display: inline-flex; align-items: center; gap: 22px;
  height: 30px; padding: 0 10px 0 12px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.9);
  font-size: 14px; font-weight: 700; font-family: inherit;
  border-radius: 0;
}
.nf-dd-btn::after { content: ""; border: 5px solid transparent; border-top-color: #fff; margin-top: 5px; }
.nf-dd-btn:hover, .sort select:hover { background: rgba(255,255,255,.1); }
.nf-dd-menu {
  position: absolute; top: calc(100% + 2px); left: 0;
  min-width: 220px; padding: 10px 0;
  background: rgba(0,0,0,.92);
  border: 1px solid rgba(255,255,255,.15);
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nf-dd.open .nf-dd-menu { opacity: 1; visibility: visible; transform: none; }
.chips { display: contents; }
.chip-btn {
  text-align: left; padding: 5px 18px; font-size: 14px; color: #fff; white-space: nowrap;
}
.chip-btn:hover { text-decoration: underline; }
.chip-btn.active { font-weight: 700; color: #fff; }
.chip-btn.active::before { content: "• "; color: var(--red); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dim); }
.sort select {
  gap: 0; padding-right: 32px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='white'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
}
.sort select:hover { background-color: #1a1a1a; }
.sort select option { background: #141414; font-weight: 400; }

/* ------------------------------------------------------------ 行 */
.browse { position: relative; z-index: 3; margin-top: -9vw; padding-bottom: 3vw; }
.row { margin: 0 0 3vw; position: relative; }
.row-head {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 0 var(--gutter); margin-bottom: .6em;
}
.row-head h2 {
  margin: 0; font-size: clamp(15px, 1.4vw, 24px); font-weight: 700; color: #e5e5e5;
  line-height: 1.25;
}
.row-head .see-all {
  display: inline-flex; align-items: center;
  font-size: clamp(11px, .9vw, 15px); font-weight: 700; color: #54b9c5;
  opacity: 0; transform: translateX(-12px);
  transition: opacity .4s, transform .6s var(--ease);
  white-space: nowrap; line-height: 1.6;
}
.row-head:hover .see-all { opacity: 1; transform: none; }
.row-pager { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .2s; align-self: center; }
.row:hover .row-pager { opacity: 1; }
.row-pager i { display: block; width: 12px; height: 2px; background: #4d4d4d; }
.row-pager i.on { background: #aaa; }
.row-track-wrap { position: relative; }
.row-track {
  display: flex; gap: var(--gap);
  padding: 0 var(--gutter);
  overflow-x: auto; overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute; top: 0; bottom: 0; width: calc(var(--gutter) - 2px);
  display: grid; place-items: center;
  background: rgba(20,20,20,.5);
  color: #fff;
  opacity: 0; transition: opacity .2s, background-color .2s;
  z-index: 25;
}
.row-arrow svg { width: 60%; max-width: 34px; height: auto; transition: transform .1s ease-out; }
.row-arrow:hover { background: rgba(20,20,20,.7); }
.row-arrow:hover svg { transform: scale(1.25); }
.row-track-wrap:hover .row-arrow { opacity: 1; }
.row-arrow.left { left: 0; border-radius: 0 4px 4px 0; }
.row-arrow.right { right: 0; border-radius: 4px 0 0 4px; }
.row-arrow[hidden] { display: none; }

/* ------------------------------------------------------------ 卡片 */
.card {
  position: relative;
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  cursor: pointer;
  container-type: inline-size;
}
.card-box {
  position: absolute; inset: 0;
  border-radius: var(--radius); overflow: hidden;
  background: #222;
}
.card-art, .pv-art-bg, .sim-art, .sh-art, .ep-thumb-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(78% 96% at 22% 6%, hsl(var(--hue) 72% 38% / .95), transparent 66%),
    radial-gradient(72% 92% at 88% 94%, hsl(var(--hue2, calc(var(--hue) + 46)) 62% 30% / .9), transparent 64%),
    linear-gradient(158deg, #16131b 0%, #0b0b10 68%);
}
.card[data-art="1"] .card-art, .preview[data-art="1"] .pv-art-bg {
  background:
    radial-gradient(62% 118% at 52% -14%, hsl(var(--hue) 76% 42% / .92), transparent 64%),
    radial-gradient(60% 70% at 6% 96%, hsl(var(--hue2) 56% 26% / .8), transparent 62%),
    linear-gradient(198deg, #171320 0%, #09090e 72%);
}
.card[data-art="2"] .card-art, .preview[data-art="2"] .pv-art-bg {
  background:
    radial-gradient(96% 78% at 46% 110%, hsl(var(--hue) 74% 36% / .95), transparent 66%),
    radial-gradient(66% 64% at 102% -4%, hsl(var(--hue2) 66% 28% / .78), transparent 62%),
    linear-gradient(0deg, #0b0a11 8%, #16121c 100%);
}
.card[data-art="3"] .card-art, .preview[data-art="3"] .pv-art-bg {
  background:
    radial-gradient(84% 110% at -6% 42%, hsl(var(--hue) 70% 34% / .9), transparent 62%),
    radial-gradient(80% 100% at 94% 62%, hsl(var(--hue2) 70% 30% / .92), transparent 64%),
    linear-gradient(116deg, #0a090f 0%, #14101a 100%);
}
.card-art::before, .pv-art-bg::before, .sh-art::before, .sim-art::before, .ep-thumb-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 48%, rgba(0,0,0,.82) 100%);
}
.cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.06);
  z-index: 0; pointer-events: none;
}
.has-img .card-mark, .has-img .pv-mark, .has-img .sh-mark { display: none; }
.card-art::after, .pv-art-bg::after, .sh-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .12; mix-blend-mode: overlay;
}
.card-mark, .pv-mark {
  position: absolute; right: 6%; top: -6%;
  font-size: 52cqw; font-weight: 900; line-height: 1; letter-spacing: -.05em;
  color: rgba(255,255,255,.08);
  pointer-events: none; user-select: none;
}
.card-roll {
  position: absolute; left: 7%; right: 7%; bottom: 17%; z-index: 3;
}
.card-title {
  font-size: clamp(12px, 8.2cqw, 22px); font-weight: 900; line-height: 1.15; letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(0,0,0,.85);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* “新上线”底部红签 */
.card-new {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 4;
  background: var(--red); color: #fff;
  font-size: clamp(9px, 5.4cqw, 13px); font-weight: 700; white-space: nowrap;
  padding: .15em .6em; border-radius: 2px 2px 0 0;
}
/* 排行角标 */
.card-top {
  position: absolute; right: 0; top: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 12cqw; min-width: 22px; aspect-ratio: 9 / 11;
  background: var(--red); color: #fff; border-radius: 0 0 0 2px; line-height: 1;
}
.card-top small { font-size: clamp(6px, 3cqw, 9px); font-weight: 700; letter-spacing: .04em; }
.card-top b { font-size: clamp(9px, 5.4cqw, 15px); font-weight: 900; letter-spacing: -.04em; }
/* 继续观看进度 */
.card-progress {
  position: absolute; left: 8%; right: 8%; bottom: 7%; height: 3px; z-index: 4;
  background: rgba(128,128,128,.75); pointer-events: none;
}
.card-progress span { display: block; height: 100%; background: var(--red); }

/* ------------------------------------------------------------ Top 10：大号描边数字 + 竖版海报 */
.row.top10 .card { aspect-ratio: 4 / 3; }
.row.top10 .card-box { left: 50%; }
.row.top10 .card::before {
  content: attr(data-rank);
  position: absolute; right: 46%; bottom: -.02em; z-index: 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 92cqw; font-weight: 900; line-height: .8; letter-spacing: -.06em;
  color: var(--bg);
  -webkit-text-stroke: max(2px, .03em) #595959;
  pointer-events: none; user-select: none;
}
.row.top10 .card[data-rank="10"]::before { font-size: 70cqw; letter-spacing: -.14em; right: 44%; }
.row.top10 .card-mark, .row.top10 .card-top { display: none; }
.row.top10 .card-title { font-size: clamp(11px, 6.4cqw, 18px); }
.row.top10 .card-roll { left: 8%; right: 8%; }

/* ------------------------------------------------------------ 网格模式（搜索 / 筛选 / 分类） */
.grid-mode .hero { display: none; }
.grid-mode .subnav {
  position: relative; top: auto;
  padding-top: calc(var(--nav-h) + 18px); padding-bottom: 22px;
}
.grid-mode .browse { margin-top: 0; min-height: 60vh; }
.grid-view {
  display: grid;
  grid-template-columns: repeat(var(--per), minmax(0, 1fr));
  gap: max(28px, 3vw) var(--gap);
  padding: 0 var(--gutter);
}
.grid-view .card { flex: none; }
.grid-empty { padding: 4vw var(--gutter); color: var(--text-dim); font-size: 16px; line-height: 1.8; }
.grid-empty b { color: #fff; display: block; font-size: 20px; margin-bottom: 4px; }

/* ------------------------------------------------------------ 悬停预览卡（浮层） */
.preview {
  position: absolute; z-index: 80;
  border-radius: 6px;
  background: var(--bg-elev);
  box-shadow: rgba(0,0,0,.75) 0 3px 10px;
  opacity: 0;
  transition: transform .3s var(--ease), opacity .2s;
  will-change: transform;
}
.preview.show { opacity: 1; transform: none !important; }
.pv-art {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 6px 6px 0 0; overflow: hidden; cursor: pointer;
  container-type: inline-size;
}
.pv-art .card-roll { bottom: 10%; }
.pv-art .card-title { font-size: clamp(14px, 7cqw, 28px); }
.pv-info { padding: 14px 16px 18px; }
.pv-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pv-actions .spacer { flex: 1; }
.pv-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px;
  font-size: 14px; color: #bcbcbc; margin-bottom: 10px;
}
.pv-tags { display: flex; flex-wrap: wrap; font-size: 14px; color: #fff; }
.pv-tags span + span::before { content: "•"; color: #646464; padding: 0 6px; }

.icon-btn {
  flex: 0 0 auto;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: rgba(42,42,42,.6); color: #fff;
  display: grid; place-items: center;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.icon-btn svg { width: 50%; height: 50%; }
.icon-btn.play { background: #fff; border-color: #fff; color: #000; }
.icon-btn.play:hover { background: rgba(255,255,255,.75); border-color: transparent; }
.icon-btn.play svg { width: 58%; height: 58%; margin-left: 2px; }
.icon-btn.lg { width: 46px; height: 46px; }

/* ------------------------------------------------------------ 详情模态框 */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0,0,0,.7);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 130;
  left: 50%; top: 2em;
  transform: translateX(-50%) scale(.92);
  transform-origin: 50% 0;
  width: min(850px, 96vw);
  max-height: calc(100vh - 2em);
  overflow-y: auto;
  background: var(--bg-elev);
  border-radius: 6px 6px 0 0;
  box-shadow: rgba(0,0,0,.75) 0 3px 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease);
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1); }
.sheet-loading { padding: 80px; text-align: center; color: var(--text-mute); }
.sheet-hero {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  container-type: inline-size;
}
.sheet-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg-elev) 0%, rgba(24,24,24,0) 48%);
}
.sh-mark {
  position: absolute; right: 4%; top: 6%;
  font-size: 44cqw; font-weight: 900; line-height: .8; letter-spacing: -.06em;
  color: rgba(255,255,255,.07); pointer-events: none;
}
.sh-content {
  position: absolute; left: 3em; right: 3em; bottom: 9%; z-index: 2;
}
.sh-content h2 {
  margin: 0 0 22px; max-width: 70%;
  font-size: clamp(28px, 6cqw, 52px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em;
  text-shadow: 2px 4px 24px rgba(0,0,0,.5);
}
.sheet-actions { display: flex; align-items: center; gap: 10px; }
.sheet-actions .btn { font-size: 16px; padding: 6px 26px 6px 20px; }
.sheet-close {
  position: absolute; top: 1em; right: 1em; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elev); display: grid; place-items: center;
}
.sheet-close svg { width: 20px; height: 20px; }
.sheet-body { padding: 0 3em 2.5em; position: relative; z-index: 2; }
.sheet-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 2em; }
.sheet-meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 16px; color: #bcbcbc; margin: 4px 0 12px;
}
.sheet-cols p { margin: 0 0 12px; line-height: 1.5; font-size: 15px; color: #fff; }
.kv { font-size: 14px; color: #777; margin: 0 0 12px; line-height: 1.5; word-break: break-word; }
.kv b { color: #ddd; font-weight: 400; }
.sheet h3 { font-size: 24px; font-weight: 700; margin: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 40px 0 16px; }
.season-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: #242424; border: 1px solid #4d4d4d; border-radius: 4px;
  padding: 8px 14px; font-size: 16px; font-weight: 700;
}
.season-btn::after { content: ""; border: 5px solid transparent; border-top-color: #fff; margin-top: 5px; }

/* 剧集列表 */
.ep-list { border-top: 1px solid #404040; }
.ep {
  display: grid; grid-template-columns: 48px 130px minmax(0, 1fr); gap: 16px;
  align-items: center; padding: 16px 20px;
  border-bottom: 1px solid #404040; border-radius: 4px;
  cursor: pointer;
}
.ep:first-child, .ep:hover { background: #333; }
.ep-no { font-size: 24px; color: #d2d2d2; text-align: center; }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; }
.ep-thumb .play-ico {
  position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #fff; background: rgba(30,30,20,.5); display: grid; place-items: center;
  opacity: 0; transition: opacity .2s;
}
.ep-thumb .play-ico svg { width: 20px; height: 20px; margin-left: 2px; }
.ep:hover .play-ico { opacity: 1; }
.ep-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ep-name { font-size: 16px; font-weight: 700; }
.ep-time { font-size: 16px; white-space: nowrap; }
.ep-sub { font-size: 14px; color: #d2d2d2; line-height: 1.45; }

/* 更多类似内容 */
.sim-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sim-card {
  position: relative; display: block;
  background: var(--bg-card); border-radius: 4px; overflow: hidden; cursor: pointer;
}
.sim-thumb { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; }
.sim-thumb .card-roll { bottom: 10%; }
.sim-info { padding: 14px 14px 18px; }
.sim-row { display: flex; align-items: center; gap: 10px; }
.sim-row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: #bcbcbc; }
.sim-row .icon-btn { margin-left: auto; width: 36px; height: 36px; }
.sim-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: #d2d2d2;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.about { margin-top: 40px; padding-top: 24px; border-top: 2px solid #404040; }
.about h3 { font-weight: 400; margin-bottom: 18px; }
.about h3 b { font-weight: 700; }

/* ------------------------------------------------------------ 页脚 */
.footer {
  max-width: 980px; margin: 20px auto 0;
  padding: 0 var(--gutter) 30px;
  color: var(--text-mute); font-size: 13px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 18px; margin-bottom: 16px;
}
.footer-grid a { margin-bottom: 16px; line-height: 1.2; }
.footer-grid a:hover { text-decoration: underline; }
.footer .svc {
  display: inline-block; margin-bottom: 20px;
  border: 1px solid var(--text-mute); color: var(--text-mute);
  padding: .5em; font-size: 13px;
}
.footer .svc:hover { color: #fff; }
.footer .copy { font-size: 11px; }

/* ------------------------------------------------------------ 骨架屏 / 动画 */
.skeleton { background: linear-gradient(90deg, #1f1f1f 25%, #2a2a2a 37%, #1f1f1f 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-content > * { animation: fadeIn .8s ease both; }
.row { animation: fadeIn .5s ease both; }
.empty { padding: 80px var(--gutter); color: var(--text-mute); font-size: 14px; }

/* ------------------------------------------------------------ 播放页 */
.player-shell {
  position: fixed; inset: 0; background: #000;
  display: flex; flex-direction: column;
}
.player-shell video {
  width: 100%; height: 100%; object-fit: contain; background: #000;
  flex: 1 1 auto; outline: none;
}
.player-shell:not(.ui) { cursor: none; }
.p-topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 6;
  display: flex; align-items: center; gap: 16px;
  padding: 24px 32px 60px;
  background: linear-gradient(180deg, rgba(0,0,0,.6), transparent);
  opacity: 0; transition: opacity .3s;
}
.player-shell.ui .p-topbar { opacity: 1; }
.p-topbar .back { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; transition: transform .15s; }
.p-topbar .back:hover { transform: scale(1.15); }
.p-topbar .back svg { width: 36px; height: 36px; }
.p-right { margin-left: auto; font-size: 13px; color: var(--text-dim); }

.p-controls {
  position: absolute; inset: auto 0 0 0;
  padding: 80px 32px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  opacity: 0;
  transition: opacity .3s;
  z-index: 5;
}
.player-shell.ui .p-controls { opacity: 1; }
.p-seekrow { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.p-seek { position: relative; flex: 1; height: 20px; display: flex; align-items: center; cursor: pointer; }
.p-seek-track { position: relative; height: 4px; width: 100%; background: #5b5b5b; transition: height .1s; }
.p-seek:hover .p-seek-track { height: 7px; }
.p-buffer { position: absolute; inset: 0 auto 0 0; background: #8a8a8a; }
.p-played { position: absolute; inset: 0 auto 0 0; background: var(--red); }
.p-knob {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); transform: translate(-50%, -50%);
  transition: transform .1s;
}
.p-seek:hover .p-knob { transform: translate(-50%, -50%) scale(1.3); }
.p-time { font-variant-numeric: tabular-nums; color: #fff; font-size: 15px; white-space: nowrap; }

.p-bar { display: flex; align-items: center; gap: 22px; color: #fff; }
.p-bar .spacer { flex: 1 1 auto; }
.p-bar .p-title {
  flex: 1 1 auto; min-width: 0; text-align: center;
  font-size: 18px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-btn { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; transition: transform .15s; }
.p-btn:hover { transform: scale(1.25); }
.p-btn svg { width: 32px; height: 32px; }
.p-btn.big svg { width: 38px; height: 38px; }
.p-btn.quality { width: auto; gap: 6px; display: inline-flex; align-items: center; }
.p-btn.quality span { font-size: 14px; font-weight: 700; }
.p-btn.quality svg { width: 28px; height: 28px; }
.p-vol { display: flex; align-items: center; gap: 8px; }
.p-vol input {
  -webkit-appearance: none; appearance: none;
  width: 0; opacity: 0; transition: width .22s var(--ease), opacity .22s;
  height: 4px; background: #5b5b5b; outline: none; accent-color: var(--red);
}
.p-vol:hover input { width: 90px; opacity: 1; }
.p-vol input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--red);
}

.p-menu {
  position: absolute; right: 32px; bottom: 110px; z-index: 8;
  min-width: 240px; padding: 10px 0;
  background: #262626; border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.p-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.p-menu .head { font-size: 20px; font-weight: 700; color: #fff; padding: 10px 24px 12px; }
.p-menu button {
  display: flex; width: 100%; align-items: center; gap: 12px;
  padding: 9px 24px 9px 50px; position: relative;
  font-size: 16px; color: var(--text-dim); text-align: left;
}
.p-menu button:hover { color: #fff; background: #333; }
.p-menu button.active { color: #fff; font-weight: 700; }
.p-menu button.active::before { content: "✓"; position: absolute; left: 24px; color: #fff; }

.p-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.p-big-play {
  width: 110px; height: 110px; display: grid; place-items: center;
  color: #fff; pointer-events: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.6));
  transition: transform .2s;
}
.p-big-play:hover { transform: scale(1.12); }
.p-big-play svg { width: 96px; height: 96px; }
.player-shell.playing .p-big-play,
.p-spinner:not(.hide) + .p-center .p-big-play { display: none; }

.p-spinner {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none; z-index: 4; transition: opacity .25s;
}
.p-spinner.hide { opacity: 0; }
.p-spinner .ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 4px solid transparent; border-top-color: var(--red); border-right-color: var(--red);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cue-layer {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  max-width: 78%; text-align: center;
  font-size: clamp(18px, 2.1vw, 30px); line-height: 1.45; font-weight: 600; color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.95), 0 0 18px rgba(0,0,0,.85), 0 0 3px #000;
  pointer-events: none; z-index: 6; white-space: pre-line; display: none;
}
.cue-layer.show { display: block; }
.player-shell.ui .cue-layer { bottom: 17%; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 1100px) {
  .nav-text { display: none; }
}
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .brand { font-size: 19px; margin-right: 18px; }
  .nav-browse { display: inline-flex; }
  .nav-menu .nav-links {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
    flex-direction: column; gap: 0; width: 220px; padding: 6px 0;
    background: rgba(0,0,0,.92); border-top: 2px solid #e5e5e5;
    opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
  }
  .nav-menu .nav-links a { padding: 12px; text-align: center; }
  .nav-menu:hover .nav-links, .nav-menu:focus-within .nav-links { opacity: 1; visibility: visible; }
  .nav-right { gap: 14px; }
  .nav-icon.bell { display: none; }
  .search-box:focus-within, .search-box:has(input:not(:placeholder-shown)) { width: 190px; }
  .hero { height: 125vw; min-height: 0; max-height: 82vh; }
  .hero-content { left: 0; right: 0; width: auto; min-width: 0; bottom: 14%; padding: 0 20px; text-align: center; }
  .hero-kicker, .hero-rank, .hero-actions { justify-content: center; }
  .hero p { display: none; }
  .hero-side, .hero-ghost, .hero-arrow { display: none; }
  .hero-dots { right: auto; left: 50%; bottom: 4%; transform: translateX(-50%); }
  .browse { margin-top: 0; }
  .subnav { gap: 14px; flex-wrap: wrap; }
  .sort { display: none; }
  .row-arrow, .row-pager { display: none; }
  .sheet { top: 0; width: 100vw; max-height: 100vh; border-radius: 0; }
  .sh-content { left: 20px; right: 20px; }
  .sheet-body { padding: 0 20px 24px; }
  .sheet-cols { grid-template-columns: 1fr; }
  .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep { grid-template-columns: 30px 100px minmax(0, 1fr); padding: 12px 8px; gap: 10px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .p-topbar { padding: 14px 12px 40px; }
  .p-controls { padding: 50px 14px 16px; }
  .p-bar { gap: 8px; }
  .p-bar .p-title { font-size: 14px; }
  .p-btn { width: 36px; height: 36px; }
  .p-btn svg { width: 24px; height: 24px; }
  #btn-speed, .p-vol input { display: none; }
}


/* 季切换 */
.season-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.season-tab {
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: #cfcfd6; font-size: 13px; cursor: pointer;
}
.season-tab:hover { border-color: rgba(255,255,255,.32); color: #fff; }
.season-tab.on { background: #e50914; border-color: #e50914; color: #fff; font-weight: 600; }
.ep { cursor: pointer; }


/* ---------- 手机端适配 ---------- */
@media (max-width: 820px) {
  .cv-lines {
    left: 8px; right: 8px; bottom: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 8px; gap: 6px;
  }
  .cv-lines button {
    padding: 8px 14px; font-size: 13px; white-space: nowrap;
  }
  .cv-info { left: 8px; right: 8px; top: 8px; max-width: none; padding: 8px 10px; }
  .cv-poster { width: 34px; height: 48px; }
  .cv-txt b { font-size: 13.5px; }
  .cv-txt span { font-size: 10.5px; }
  #video { width: 100vw; height: 100vh; object-fit: contain; background: #000; }
  .p-shell { border-radius: 0; }
  .p-center .p-big-play { width: 64px; height: 64px; }
}

@media (max-width: 820px) and (orientation: landscape) {
  #video { height: 100vh; }
}
