:root {
  --bg: #08090d;
  --bg-soft: #0d0f16;
  --surface: #14161f;
  --surface-2: #1b1e2a;
  --text: #f5f6fa;
  --text-2: #c2c7d6;
  --muted: #8a92a6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ff6a45;
  --accent-2: #ff9d6b;
  --sun: #ffc94d;
  --mint: #57d9c6;
  --violet: #a78bfa;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-h: 66px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-h);
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(255, 106, 69, 0.16), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(167, 139, 250, 0.14), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.hidden { display: none !important; }

/* ---------------- 照片墙背景 ---------------- */
.bg-wall {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.6;
}
.bg-wall__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: wallDrift var(--dur, 80s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.bg-wall__col:nth-child(even) { animation-direction: reverse; }
.bg-wall__col img {
  flex: none;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  filter: saturate(0.85) brightness(0.82);
}
.bg-wall__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 85% at 50% 6%, rgba(8, 9, 13, 0.38), rgba(8, 9, 13, 0.74) 58%, rgba(8, 9, 13, 0.95) 100%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.74), rgba(8, 9, 13, 0.5) 32%, rgba(8, 9, 13, 0.82));
}
@keyframes wallDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0.92), rgba(8, 9, 13, 0));
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  background: rgba(9, 10, 15, 0.94);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--sun));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(255, 106, 69, 0.35);
  flex: none;
}
.brand__mark svg { width: 19px; height: 19px; color: #1a1206; }
.brand__name { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; }
.brand__tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.4;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 250px;
  height: 38px;
  padding: 0 6px 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, width 0.25s;
}
.search:focus-within { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.24); }
.search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 13.5px;
  color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.search button {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.2s;
}
.search button:hover { background: #ff7f5c; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.12); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 55;
  background: rgba(11, 12, 18, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px 20px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer__search { display: flex; gap: 8px; margin-bottom: 14px; }
.drawer__search input {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.drawer__search button {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
}
.drawer nav { display: grid; gap: 4px; }
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.drawer nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); color: #fff; }
.drawer nav a span { color: var(--muted); font-size: 12px; }
.drawer__foot { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* ---------------- 首页 Hero ---------------- */
main { padding-top: var(--header-h); }

.hero {
  position: relative;
  padding: 26px 0 10px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 46px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.eyebrow b {
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1a1206;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(115deg, var(--accent), var(--sun) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin: 16px 0 24px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
  max-width: 33em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.hero__stat span { font-size: 12px; color: var(--muted); }

.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  isolation: isolate;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 13, 0) 42%, rgba(8, 9, 13, 0.86));
}
.hero__art--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #1d2030, #2a1f33);
}
.hero__art-label {
  position: absolute;
  left: 20px; bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__art-label b { font-size: 17px; font-weight: 700; }
.hero__art-label span { font-size: 12px; color: var(--text-2); }
.hero__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid; place-items: center;
  z-index: 3;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s;
}
.hero__play:hover { transform: scale(1.07); }
.hero__play svg { width: 22px; height: 22px; margin-left: 3px; color: #12141c; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--line-strong); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn--primary:hover { background: #ff7f5c; }
.btn--light { background: #fff; color: #14161f; border-color: transparent; }
.btn--light:hover { background: #eef0f6; }
.btn--ghost { background: transparent; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }
.btn.is-casting::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(87, 217, 198, 0.22);
}

/* ---------------- 区块与横滑行 ---------------- */
.rows { padding-bottom: 40px; }
.row { margin: 34px 0; }
.row__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.row__head h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; }
.row__head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.row__more { font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.row__more:hover { color: var(--accent); }

.row__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__track > * { scroll-snap-align: start; }

/* ---------------- 卡片（竖版海报） ---------------- */
.card {
  display: block;
  flex: none;
  width: 196px;
  border-radius: var(--radius-md);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover { transform: translateY(-4px); }
.card:hover .card__title { color: #fff; }
.card__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, #1b1e29, #241f2f);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
  isolation: isolate;
}
.card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card__img {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card__img { transform: scale(1.045); }
.card__blur {
  z-index: 0;
  object-fit: cover;
  filter: blur(18px) brightness(0.55) saturate(1.12);
  transform: scale(1.25);
}
.card__cover--wide .card__img { object-fit: contain; }
.card__cover--empty::after {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(140deg, #1d2030, #2a1f33);
}
.card__badge {
  position: absolute;
  left: 8px; top: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
}
.card__age {
  position: absolute;
  right: 8px; top: 8px;
  z-index: 3;
  height: 20px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #191c26;
  font-size: 10.5px;
  font-weight: 700;
}
.card__play {
  position: absolute;
  right: 9px; bottom: 9px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #12141c;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}
.card:hover .card__play,
.card:focus-visible .card__play { opacity: 1; transform: none; }
.card__play svg { width: 13px; height: 13px; margin-left: 2px; }
.card__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
}
.card__bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.card__title {
  display: -webkit-box;
  margin-top: 9px;
  min-height: 2.76em;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.card__meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}
.card__meta i { width: 2px; height: 2px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 26px 16px;
}
.grid .card { width: auto; }

/* ---------------- 分类快捷 ---------------- */
.cats { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 1 0 200px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.cat:hover { transform: translateY(-3px); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.09); }
.cat__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #16181f;
  flex: none;
}
.cat__icon--a { background: linear-gradient(135deg, #ffc94d, #ff9d6b); }
.cat__icon--b { background: linear-gradient(135deg, #57d9c6, #7fe3d5); }
.cat__icon--c { background: linear-gradient(135deg, #a78bfa, #c4b0ff); }
.cat b { display: block; font-size: 13.5px; }
.cat span { font-size: 11.5px; color: var(--muted); }

/* ---------------- 指南 ---------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.guide-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
}
.guide-card__num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(255, 201, 77, 0.16);
  color: var(--sun);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 10px;
}
.guide-card b { display: block; font-size: 13.5px; margin-bottom: 5px; }
.guide-card p { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.notice svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--mint); }

/* ---------------- 片单页 ---------------- */
.page-head { padding: 26px 0 4px; }
.page-head h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.page-head p { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 16px 0 22px;
}
.filter-bar__inner { display: flex; align-items: center; gap: 10px; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
  transition: all 0.2s;
}
.pill:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pill.is-on { background: #fff; border-color: #fff; color: #101218; font-weight: 650; }
.pill small { font-size: 11px; opacity: 0.6; }
.select {
  flex: none;
  height: 34px;
  padding: 0 30px 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    rgba(255, 255, 255, 0.07)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a92a6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center / 13px;
  font-size: 12.5px;
  color: var(--text-2);
  appearance: none;
  outline: none;
}

/* ---------------- 播放页 ---------------- */
.play-page { padding: 14px 0 60px; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.crumb a:hover { color: var(--text); }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.play-layout > * { min-width: 0; }

.stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
}
.stage__video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage__badge {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.6);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.stage:hover .stage__badge { opacity: 1; }
.stage__bigplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid; place-items: center;
  z-index: 4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, opacity 0.2s;
}
.stage__bigplay:hover { transform: scale(1.06); }
.stage__bigplay svg { width: 24px; height: 24px; margin-left: 3px; color: #12141c; }
.stage__bigplay.is-hidden { opacity: 0; pointer-events: none; }
.stage__spinner { position: absolute; inset: 0; display: none; place-items: center; z-index: 3; }
.stage.is-loading .stage__spinner { display: grid; }
.stage:fullscreen { border-radius: 0; display: flex; flex-direction: column; border: 0; }
.stage:fullscreen .stage__video { flex: 1; aspect-ratio: auto; }
.spinner {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stage__ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 10px;
  background: #0c0e15;
}
.ctrl-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  color: #dfe3ee;
  flex: none;
  transition: background 0.2s, color 0.2s;
}
.ctrl-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ctrl-btn svg { width: 18px; height: 18px; }
.ctrl-btn.is-wide { width: auto; padding: 0 8px; font-size: 12px; font-weight: 600; }
.progress { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.progress input[type="range"] {
  flex: 1;
  min-width: 0;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}
.progress input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 69, 0.25);
  cursor: pointer;
}
.progress input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}
.progress output { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.next-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 7, 11, 0.78);
  backdrop-filter: blur(6px);
}
.next-overlay[hidden] { display: none; }
.next-overlay__card { text-align: center; }
.next-overlay__card p { font-size: 13.5px; color: var(--text-2); }
.next-overlay__title { font-size: 18px; font-weight: 700; color: #fff; margin-top: 6px; }
.next-overlay__actions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

.play-head { margin-top: 18px; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.play-head h1 { font-size: clamp(20px, 2.5vw, 27px); font-weight: 800; }
.play-head__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.play-head__actions { margin-left: auto; display: flex; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-2);
}
.tag--brand { background: rgba(255, 106, 69, 0.16); border-color: rgba(255, 106, 69, 0.3); color: #ffb199; }
.tag--teal { background: rgba(87, 217, 198, 0.14); border-color: rgba(87, 217, 198, 0.28); color: #8df0e2; }
.tag--violet { background: rgba(167, 139, 250, 0.16); border-color: rgba(167, 139, 250, 0.3); color: #cbbcfd; }

.line-box { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.line-box b { font-size: 12px; font-weight: 500; color: var(--muted); }
.line-chip {
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
  transition: all 0.2s;
}
.line-chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.line-chip.is-on { background: rgba(255, 106, 69, 0.16); border-color: rgba(255, 106, 69, 0.45); color: #ffb199; font-weight: 600; }
.line-chip.is-bad { opacity: 0.4; text-decoration: line-through; }
.hint { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

.panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.panel + .panel { margin-top: 12px; }
.panel h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.panel h3 small { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.panel p { font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.panel .kv { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); padding: 6px 0; border-bottom: 1px solid var(--line); }
.panel .kv:last-of-type { border-bottom: 0; }
.panel .kv span { flex: none; width: 56px; color: var(--muted); }
.side-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.side-poster {
  flex: none;
  width: 84px;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.side-poster img { width: 100%; height: 100%; object-fit: cover; }
.side-head__text { min-width: 0; padding-top: 2px; }
.side-head__text h3 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.side-head__text p { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.link { color: var(--accent-2); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }

.season-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.episode-grid::-webkit-scrollbar { width: 6px; }
.episode-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 999px; }
.ep {
  height: 44px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  transition: all 0.18s;
}
.ep:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ep.is-on { background: #fff; border-color: #fff; color: #12141c; font-weight: 700; }
.ep__num { font-weight: 600; }

.related-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.related-row::-webkit-scrollbar { display: none; }

/* ---------------- 投屏页 ---------------- */
body.cast-body { background: #08090d; color: var(--text); padding-top: 0; }
.cast-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 16px 18px; }
.cast-head, .cast-foot {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cast-head__brand { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.cast-head__brand svg { width: 18px; height: 18px; color: var(--accent); }
.cast-title { font-size: 17px; font-weight: 700; margin-top: 4px; }
.cast-state { font-size: 12px; color: var(--sun); margin-top: 3px; }
.cast-state.ok { color: var(--mint); }
.room-code {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 4px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--sun);
}
.cast-video {
  width: min(1120px, 100%, calc((100vh - 176px) * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 176px);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.cast-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tap-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 82px; height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.tap-play svg { width: 28px; height: 28px; margin-left: 4px; color: #12141c; }
.tap-play.is-hidden { display: none; }
.cast-foot .lines { display: flex; gap: 8px; flex-wrap: wrap; }
.cast-foot .line-chip { background: rgba(255, 255, 255, 0.07); }
.cast-foot .line-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- 弹窗 ---------------- */
dialog.sheet {
  width: min(440px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: #12141c;
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
dialog.sheet::backdrop { background: rgba(4, 5, 8, 0.66); backdrop-filter: blur(4px); }
dialog.sheet h2 { font-size: 18px; margin-bottom: 6px; }
dialog.sheet .note { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
#cast-qr { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 10px; margin: 14px 0; }
#cast-qr svg { width: min(200px, 60vw); height: auto; }

.cast-devices { display: grid; gap: 8px; margin-top: 12px; }
.cast-device {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cast-device:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); transform: translateY(-1px); }
.cast-device.is-on { border-color: rgba(255, 106, 69, 0.55); background: rgba(255, 106, 69, 0.12); }
.cast-device__icon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(87, 217, 198, 0.14);
  color: var(--mint);
}
.cast-device__icon svg { width: 19px; height: 19px; }
.cast-device__text { min-width: 0; flex: 1; }
.cast-device__text b { display: block; font-size: 13.5px; font-weight: 650; }
.cast-device__text i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cast-device__go { flex: none; font-size: 11.5px; font-weight: 600; color: var(--accent-2); }
.cast-fallback { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cast-fallback summary { font-size: 12px; color: var(--muted); cursor: pointer; list-style: none; }
.cast-fallback summary::-webkit-details-marker { display: none; }
.cast-fallback summary::before { content: "＋ "; color: var(--accent-2); }
.cast-fallback[open] summary::before { content: "－ "; }
.cast-fallback summary:hover { color: var(--text-2); }
.copy-row { display: flex; gap: 8px; }
.copy-row input {
  flex: 1; min-width: 0;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 12px;
  font-size: 12px;
}
.copy-row .btn { flex: none; }

/* ---------------- 空态 / 骨架 ---------------- */
.empty {
  text-align: center;
  padding: 56px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.empty h2 { font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 13px; margin: 0 auto 16px; max-width: 32em; }
.skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, #15171f 30%, #1d2029 50%, #15171f 70%);
  background-size: 220% 100%;
  animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* ---------------- 页脚 ---------------- */
.foot {
  margin-top: 48px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}
.foot__row { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.foot a:hover { color: var(--text); }

.fade-up { animation: fadeUp 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 40px); }
  .hero__grid { gap: 30px; }
  .play-layout { grid-template-columns: minmax(0, 1fr) 286px; gap: 18px; }
  .card { width: 180px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .search { display: none; }
  .menu-btn { display: grid; }
  .brand__tag { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .hero__art { order: -1; aspect-ratio: 16 / 9; }
  .play-layout { grid-template-columns: minmax(0, 1fr); }
  .play-head__actions { margin-left: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 12px; }
  .card { width: 164px; }
}

@media (max-width: 620px) {
  :root { --header-h: 58px; }
  body { font-size: 14.5px; }
  .wrap { width: calc(100% - 28px); }
  .topbar__inner { gap: 12px; }
  .brand__name { font-size: 15.5px; }
  .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
  .icon-btn { width: 34px; height: 34px; }
  .hero { padding-top: 14px; }
  .hero h1 { font-size: 29px; }
  .hero__lede { font-size: 13.5px; margin: 12px 0 18px; }
  .hero__stats { gap: 22px; margin-top: 22px; }
  .hero__stat strong { font-size: 18px; }
  .hero__play { width: 54px; height: 54px; }
  .btn { height: 40px; padding: 0 16px; font-size: 13px; }
  .row { margin: 26px 0; }
  .row__head h2 { font-size: 16.5px; }
  .row__head p { display: none; }
  .row__track { gap: 10px; margin-right: -14px; padding-right: 14px; }
  .card { width: 43vw; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .grid .card__title { font-size: 12.5px; }
  .grid .card__meta { font-size: 10.5px; }
  .grid .card__badge, .grid .card__age { font-size: 10px; height: 18px; padding: 0 6px; }
  .bg-wall { gap: 10px; }
  .bg-wall__col { gap: 10px; }
  .bg-wall__col img { border-radius: 10px; }
  .bg-wall__col:nth-child(4) { display: none; }
  .play-page { padding-top: 6px; }
  .crumb { display: none; }
  .stage { border-radius: 0; border-left: 0; border-right: 0; margin: 0 -14px; }
  .stage__ctrl { padding: 8px 10px 9px; gap: 6px; }
  .progress output { display: none; }
  .play-head { margin-top: 16px; }
  .play-head h1 { font-size: 20px; }
  .play-head__actions { width: 100%; }
  .play-head__actions .btn { flex: 1; }
  .season-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .season-tabs::-webkit-scrollbar { display: none; }
  .episode-grid { max-height: none; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .guide-grid { grid-template-columns: 1fr; }
  .cats { gap: 10px; margin-right: -14px; padding-right: 14px; }
  .cat { flex: 0 0 74%; }
  .filter-bar { top: var(--header-h); }
  .filter-bar__inner { gap: 8px; }
  .select { display: none; }
  .cast-shell { padding: 10px; }
  .cast-video { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .bg-wall__col { animation: none !important; transform: none !important; }
}
