@font-face {
  font-family: 'SB Serif';
  src: url('fonts/sb-serif.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --panel: rgba(20, 23, 30, 0.72);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --txt: #eef1f6;
  --dim: #9aa3b2;
  --dim-2: #6b7484;
  --amber: #f2b23c;
  --amber-soft: #ffd489;
  --teal: #45c8de;
  --accent: var(--amber);
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .6);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --serif: 'SB Serif', 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .01em; }

button, input { font: inherit; color: inherit; }

/* ---------- 胶片颗粒 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 9;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(3) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px clamp(16px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(7, 8, 11, .92), rgba(7, 8, 11, 0));
  backdrop-filter: blur(0px);
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
body.on-cat .topbar, .topbar.solid {
  background: rgba(8, 9, 13, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: conic-gradient(from 210deg, var(--amber), #ff7a3d, var(--teal), var(--amber));
  box-shadow: 0 0 22px rgba(242, 178, 60, .5);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  background: #0a0b0f;
}
.brand-txt { font-size: 14.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.15; }
.brand-txt em {
  display: block; font-style: normal; font-size: 10.5px; font-weight: 500;
  color: var(--dim-2); letter-spacing: .18em; text-transform: uppercase;
}
.topnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav button {
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  padding: 7px 13px; border-radius: 999px; font-size: 13.5px; color: var(--dim);
  transition: color .2s, background .2s;
}
.topnav button:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.topnav button.on { color: #10121a; background: var(--accent); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: flex-end; overflow: hidden;
  padding: 140px clamp(16px, 4vw, 46px) 76px;
}
.hero-bg {
  position: absolute; inset: -6% -3% 0; background-size: cover; background-position: center 42%;
  transform: scale(1.06); filter: saturate(1.05) contrast(1.05);
  animation: heroDrift 34s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.13) translate3d(-1.5%, -1.5%, 0); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 12% 100%, rgba(7, 8, 11, .96) 12%, rgba(7, 8, 11, .55) 48%, rgba(7, 8, 11, .12) 78%),
    linear-gradient(180deg, rgba(7, 8, 11, .78) 0%, rgba(7, 8, 11, 0) 34%, rgba(7, 8, 11, .9) 92%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 20px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-soft);
  padding: 6px 14px; border: 1px solid rgba(242, 178, 60, .34); border-radius: 999px;
  background: rgba(242, 178, 60, .07);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 12px var(--amber); animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(38px, 6.4vw, 78px); line-height: 1.08; letter-spacing: .01em;
  margin: 0 0 20px; text-shadow: 0 10px 46px rgba(0, 0, 0, .7);
}
.hero-title .glow {
  background: linear-gradient(100deg, var(--amber-soft), var(--amber) 45%, #ff8a45);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(242, 178, 60, .35));
}
.hero-sub { max-width: 560px; color: #c6cddb; font-size: 16px; margin: 0 0 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 30px; margin-bottom: 34px; }
.stat b {
  display: block; font-family: var(--serif); font-size: 30px; line-height: 1;
  letter-spacing: .02em;
}
.stat b i { font-style: normal; color: var(--dim-2); margin: 0 3px; }
.stat span { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 1px solid var(--line-2);
  text-decoration: none; font-size: 14.5px; font-weight: 600;
  transition: transform .18s, box-shadow .25s, background .25s, border-color .25s;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn-primary {
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #17120a; border-color: transparent;
  box-shadow: 0 12px 34px rgba(242, 178, 60, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(242, 178, 60, .45); }
.btn-ghost { background: rgba(255, 255, 255, .05); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.hero-strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22px; z-index: 3;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .1) 0 9px, transparent 9px 22px);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  opacity: .5;
}

/* ---------- 首页正文 ---------- */
.home-body { padding: 54px clamp(16px, 4vw, 46px) 64px; max-width: 1560px; margin: 0 auto; }
.sec-title {
  font-family: var(--serif); font-size: 24px; margin: 0 0 18px;
  display: flex; align-items: baseline; gap: 12px;
}
.sec-title span { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--dim-2); letter-spacing: .06em; }

.resume-wrap { margin-bottom: 46px; }
.resume {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(242, 178, 60, .1), var(--panel) 42%);
  backdrop-filter: blur(10px); transition: transform .2s, border-color .25s, box-shadow .3s;
}
.resume:hover { transform: translateY(-2px); border-color: rgba(242, 178, 60, .5); box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.resume-thumb {
  position: relative; width: 208px; flex: none; aspect-ratio: 16 / 9; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line); background: #12141a;
}
.resume-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resume-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .55); }
.resume-bar b { display: block; height: 100%; background: var(--amber); }
.resume-meta { min-width: 0; flex: 1; }
.resume-cat { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.resume-title {
  display: block; font-family: var(--serif); font-size: 21px; margin: 3px 0 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.resume-left { display: block; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.resume-play {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--amber-soft), var(--amber)); color: #17120a;
  box-shadow: 0 10px 26px rgba(242, 178, 60, .32);
}
.resume-play svg { width: 22px; height: 22px; fill: currentColor; }

.cats-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.home-cat {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #0c0e13;
  transition: transform .25s, border-color .25s, box-shadow .3s;
}
.home-cat:hover { transform: translateY(-4px); border-color: rgba(242, 178, 60, .45); box-shadow: 0 22px 50px rgba(0, 0, 0, .55); }
.hc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.hc-media img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .3s, transform .5s; }
.home-cat:hover .hc-media img { opacity: 1; transform: scale(1.06); }
.hc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(12, 14, 19, .95)); }
.hc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hc-num { font-size: 10.5px; letter-spacing: .22em; color: var(--dim-2); }
.hc-name { font-family: var(--serif); font-size: 21px; }
.hc-intro { font-size: 12.5px; color: var(--dim); line-height: 1.6; flex: 1; }
.hc-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--dim-2); padding-top: 10px; border-top: 1px solid var(--line);
}
.hc-go { font-style: normal; color: var(--amber); transition: transform .2s; }
.home-cat:hover .hc-go { transform: translateX(3px); }

/* ---------- 类别页头 ---------- */
.cat-head {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 18px;
  padding: 86px 0 16px;
}
.back {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 13px;
  color: var(--dim); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .04); transition: color .2s, border-color .2s, background .2s;
}
.back:hover { color: var(--txt); border-color: var(--line-2); background: rgba(255, 255, 255, .09); }
.back svg { width: 15px; height: 15px; fill: currentColor; }
.cat-head-txt { display: flex; align-items: baseline; gap: 12px; }
.cat-head-num { font-size: 11px; letter-spacing: .22em; color: var(--dim-2); }
.cat-head-name { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); }
.cat-head-intro { grid-column: 2; margin: 0; font-size: 13px; color: var(--dim); max-width: 900px; }

/* ---------- 类别卡（类别页顶部横排） ---------- */
.theatre { padding: 0 clamp(16px, 4vw, 46px) 64px; max-width: 1560px; margin: 0 auto; }
.cats { margin: 0 0 26px; position: relative; z-index: 5; }
.cats-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin;
}
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: #0d0f14; text-align: left; padding: 0;
  aspect-ratio: 16 / 8.4; transition: transform .25s, border-color .25s, box-shadow .3s;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: opacity .3s, transform .5s; }
.cat::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 13, .1), rgba(8, 9, 13, .93));
}
.cat-body { position: relative; z-index: 2; padding: 12px 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.cat-num { font-size: 10.5px; letter-spacing: .22em; color: var(--dim-2); }
.cat-name { font-family: var(--serif); font-size: 19px; margin: 2px 0 3px; }
.cat-meta { font-size: 11.5px; color: var(--dim); }
.cat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.cat:hover img { opacity: .78; transform: scale(1.05); }
.cat.on { border-color: rgba(242, 178, 60, .75); box-shadow: 0 0 0 1px rgba(242, 178, 60, .3), 0 16px 40px rgba(0, 0, 0, .55); }
.cat.on img { opacity: .8; }
.cat.on .cat-name { color: var(--amber-soft); }

/* ---------- 舞台布局 ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }

/* ---------- 播放器 ---------- */
.player {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); outline: none;
}
.player:focus-visible { border-color: rgba(242, 178, 60, .6); }
.player video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }
.player video::cue {
  font-family: var(--sans); font-size: 17px; line-height: 1.35; color: #fff;
  background: rgba(4, 5, 8, .62); text-shadow: 0 2px 8px rgba(0, 0, 0, .95);
}
.player video::-webkit-media-text-track-container { font-size: 17px !important; }
.poster-idle {
  position: absolute; inset: 0; background: #05060a center/cover no-repeat;
  transition: opacity .45s; pointer-events: none;
}
.poster-idle::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 6, 10, .35), rgba(5, 6, 10, .8)); }
.player.started .poster-idle { opacity: 0; }

.player-hud {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 1; transition: opacity .3s;
}
.player.hide-ui .player-hud { opacity: 0; }
.player.hide-ui .hud-bottom, .player.hide-ui .big-play { pointer-events: none; }
.player.hide-ui { cursor: none; }
.hud-top {
  padding: 16px 18px 40px;
  background: linear-gradient(180deg, rgba(4, 5, 8, .82), transparent);
  pointer-events: none;
}
.now-cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.now-title { font-family: var(--serif); font-size: clamp(17px, 2.1vw, 25px); margin: 2px 0 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.now-stage { font-size: 12px; color: var(--dim); }

.big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 12, 18, .5);
  backdrop-filter: blur(10px); display: grid; place-items: center;
  transition: transform .25s, background .25s, opacity .25s, box-shadow .3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.big-play:hover { background: rgba(242, 178, 60, .9); color: #14100a; transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 16px 50px rgba(242, 178, 60, .4); }
.big-play svg { width: 32px; height: 32px; fill: currentColor; }
.player.playing .big-play { opacity: 0; pointer-events: none; }
.ico-pause, .ico-exit, .ico-mute { display: none; }
.player.playing .big-play .ico-play, .player.playing #btn-play .ico-play { display: none; }
.player.playing .big-play .ico-pause, .player.playing #btn-play .ico-pause { display: block; }

.spinner {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--amber);
  border-radius: 50%; opacity: 0; transition: opacity .2s; animation: spin .9s linear infinite;
}
.player.buffering .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.seek-flash {
  position: absolute; top: 50%; left: 12%; transform: translateY(-50%);
  padding: 10px 16px; border-radius: 999px; background: rgba(8, 10, 15, .72);
  backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.seek-flash.right { left: auto; right: 12%; }
.seek-flash.show { opacity: 1; }

.hud-bottom {
  padding: 34px 16px 12px;
  background: linear-gradient(0deg, rgba(4, 5, 8, .92) 35%, transparent);
}

.scrub { position: relative; padding: 9px 0; cursor: pointer; }
.scrub-track { position: relative; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .2); transition: height .16s; }
.scrub:hover .scrub-track, .scrub.dragging .scrub-track { height: 7px; }
.scrub-buffer { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, .3); border-radius: 3px; }
.scrub-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, #ff8a45, var(--amber));
  box-shadow: 0 0 14px rgba(242, 178, 60, .55);
}
.scrub-knob {
  position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  transform: translateY(-50%) scale(0); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  transition: transform .16s;
}
.scrub:hover .scrub-knob, .scrub.dragging .scrub-knob { transform: translateY(-50%) scale(1); }
.scrub-tip {
  position: absolute; bottom: 26px; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 6px; background: rgba(8, 10, 15, .92);
  font-size: 12px; font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity .15s;
  border: 1px solid var(--line);
}
.scrub:hover .scrub-tip, .scrub.dragging .scrub-tip { opacity: 1; }

.ctrls { display: flex; align-items: center; gap: 6px; }
.ctrls > *, .ctrls .ico, .ctrls .txt { flex: none; white-space: nowrap; }
.ctrls .spacer { flex: 1; }
.ico {
  width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 0; border-radius: 9px; color: #e9edf5; opacity: .88;
  transition: background .2s, opacity .2s, transform .2s;
}
.ico svg { width: 20px; height: 20px; fill: currentColor; }
.ico:hover { background: rgba(255, 255, 255, .12); opacity: 1; transform: translateY(-1px); }
.ico-lg { width: 42px; height: 42px; }
.ico-lg svg { width: 25px; height: 25px; }
.time { font-size: 12.5px; color: #cfd6e2; font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }
.time i { color: var(--dim-2); font-style: normal; margin: 0 4px; }
.txt {
  background: none; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  padding: 5px 12px; font-size: 12.5px; color: #dfe5ef; transition: background .2s, color .2s, border-color .2s;
}
.txt:hover { background: rgba(255, 255, 255, .1); }
.txt[aria-pressed="true"] { background: rgba(242, 178, 60, .18); border-color: rgba(242, 178, 60, .55); color: var(--amber-soft); }
.vol { display: flex; align-items: center; gap: 4px; }
.vol input {
  width: 0; opacity: 0; transition: width .25s, opacity .25s; accent-color: var(--amber);
  height: 4px; cursor: pointer;
}
.vol:hover input, .vol input:focus { width: 74px; opacity: 1; }
.player.muted .ico-vol { display: none; }
.player.muted .ico-mute { display: block; }

.menu-wrap { position: relative; }
.menu {
  position: absolute; bottom: 40px; right: 0; min-width: 96px; padding: 6px;
  background: rgba(12, 14, 20, .96); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); display: none; backdrop-filter: blur(12px);
}
.menu.open { display: block; }
.menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 8px; font-size: 13px; color: #dfe5ef;
}
.menu button:hover { background: rgba(255, 255, 255, .09); }
.menu button.on { color: var(--amber-soft); background: rgba(242, 178, 60, .14); }

.player:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; width: 100vw; height: 100vh; height: 100dvh; }
.player:fullscreen video { object-fit: contain; }
.player:fullscreen .ico-fs { display: none; }
.player:fullscreen .ico-exit { display: block; }
.player:-webkit-full-screen { border-radius: 0; border: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player:-webkit-full-screen video { object-fit: contain; }
.player:-webkit-full-screen .ico-fs { display: none; }
.player:-webkit-full-screen .ico-exit { display: block; }
/* 全屏（尤其手机横屏）时避开刘海/圆角 */
.player:fullscreen .hud-bottom, .player:-webkit-full-screen .hud-bottom {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.player:fullscreen .hud-top, .player:-webkit-full-screen .hud-top {
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}
/* 全屏时不再受窄屏折叠影响：桌面全屏视口本来就宽/高，控件自动全回来 */
.player:fullscreen .player-hud, .player:-webkit-full-screen .player-hud { z-index: 3; }

/* ---------- 播放器下方信息条 ---------- */
.under-player {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(10px);
}
.up-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.chip {
  flex: none; font-size: 11.5px; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px;
  background: rgba(242, 178, 60, .16); color: var(--amber-soft); border: 1px solid rgba(242, 178, 60, .3);
  font-variant-numeric: tabular-nums;
}
.up-title { font-size: 14px; color: #d6dce8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-right { display: flex; align-items: center; gap: 10px; }
.mini {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: none; color: var(--dim); text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.mini:hover { color: var(--txt); background: rgba(255, 255, 255, .07); }
.kbd-hint { font-size: 11.5px; color: var(--dim-2); }

/* ---------- 播放列表 ---------- */
.list-col {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  backdrop-filter: blur(12px); overflow: hidden; position: sticky; top: 76px;
  display: flex; flex-direction: column; max-height: calc(100vh - 100px);
}
.list-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.lh-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lh-top h3 { font-family: var(--serif); font-size: 19px; }
.count { font-size: 12px; color: var(--dim-2); }
.lh-intro { margin: 8px 0 12px; font-size: 12.5px; color: var(--dim); line-height: 1.55; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; width: 15px; height: 15px; fill: var(--dim-2); }
.search input {
  width: 100%; padding: 9px 12px 9px 33px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .32); font-size: 13px;
  outline: none; transition: border-color .2s, background .2s;
}
.search input:focus { border-color: rgba(242, 178, 60, .55); background: rgba(0, 0, 0, .5); }

.list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.list::-webkit-scrollbar { width: 8px; }
.list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; }
.stage-head {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim-2);
  padding: 14px 10px 6px; display: flex; align-items: center; gap: 8px;
}
.stage-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.item {
  display: grid; grid-template-columns: 26px 104px minmax(0, 1fr) 26px; gap: 10px; align-items: center;
  padding: 7px 8px; border-radius: 10px; cursor: pointer; position: relative;
  transition: background .18s, transform .18s;
}
.item:hover { background: rgba(255, 255, 255, .06); }
.item .n { font-size: 12px; color: var(--dim-2); text-align: center; font-variant-numeric: tabular-nums; }
.item .thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden;
  background: #12141a; border: 1px solid var(--line);
}
.item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .25s, transform .35s; }
.item:hover .thumb img { opacity: 1; transform: scale(1.06); }
.item .dur {
  position: absolute; right: 3px; bottom: 3px; padding: 1px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, .78); font-size: 10.5px; font-variant-numeric: tabular-nums; color: #dbe1ec;
}
.item .seen { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .18); }
.item .seen i { display: block; height: 100%; background: var(--amber); }
.item .meta { min-width: 0; }
.item .t {
  font-size: 13.2px; line-height: 1.4; color: #dde3ee;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item .s { font-size: 11px; color: var(--dim-2); margin-top: 2px; }
.item-dl {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px;
  color: var(--dim-2); opacity: 0; transition: opacity .2s, background .2s, color .2s;
}
.item-dl svg { width: 15px; height: 15px; fill: currentColor; }
.item:hover .item-dl { opacity: 1; }
.item-dl:hover { background: rgba(255, 255, 255, .12); color: var(--amber-soft); }
.mini-dl { display: inline-flex; align-items: center; gap: 6px; }
.mini-dl svg { width: 14px; height: 14px; fill: currentColor; }
.item.on { background: rgba(242, 178, 60, .13); box-shadow: inset 0 0 0 1px rgba(242, 178, 60, .32); }
.item.on .t { color: var(--amber-soft); font-weight: 600; }
.item.done .t { color: var(--dim); }

.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; margin-right: 5px; vertical-align: -1px; }
.eq i { width: 2px; background: var(--amber); animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; }
.eq i:nth-child(3) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.empty { padding: 26px 12px; text-align: center; color: var(--dim-2); font-size: 13px; }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--dim-2); line-height: 1.7;
}
.foot a { color: var(--dim); }
.foot-dim { opacity: .7; margin-top: 4px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr; }
  .list-col { position: static; max-height: 620px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 116px; min-height: 74vh; }
  .stats { gap: 20px; }
  .stat b { font-size: 24px; }
  .kbd-hint { display: none; }
  .item { grid-template-columns: 22px 84px minmax(0, 1fr); }
  .brand-txt em { display: none; }
  .hide-sm { display: none; }
  .eyebrow { font-size: 11px; padding: 5px 12px; }
  .hud-top { padding: 12px 12px 26px; }
  .vol { display: none; }
  .cat-head { grid-template-columns: 1fr; padding-top: 92px; gap: 10px; }
  .cat-head-intro { grid-column: 1; }
  .resume { flex-wrap: wrap; }
  .resume-thumb { width: 100%; }
  .home-body { padding-top: 40px; }

  .stage { gap: 14px; }

  /* --- 播放器下方信息条 / 列表 --- */
  .under-player { margin-top: 10px; padding: 10px 12px; gap: 10px; }
  .up-left { flex: 1 1 100%; }
  .up-right { flex-wrap: wrap; gap: 8px; }
  .mini { padding: 6px 11px; }
  .list-col { max-height: none; }
  .list { max-height: 60vh; }
  .list-head { padding: 12px 12px 10px; }
  .item { padding: 8px 6px; }
  .item .t { font-size: 13px; }
  .item-dl { display: none; }                          /* hover 才出现，触屏用不上 */
  .foot { margin-top: 32px; }
}
/* 播放器控件：窄屏 / 矮屏（手机横屏）统一压缩，保证全屏按钮一定露在最右 */
@media (max-width: 900px), (max-height: 520px) {
  .hud-bottom { padding: 26px 8px 8px; }
  .hud-top { padding: 12px 12px 26px; }
  .ctrls { gap: 1px; flex-wrap: nowrap; }
  .ico { width: 32px; height: 32px; border-radius: 8px; }
  .ico svg { width: 19px; height: 19px; }
  .ico-lg { width: 38px; height: 38px; }
  .ico-lg svg { width: 24px; height: 24px; }
  #btn-prev, #btn-next, #btn-pip { display: none; }   /* 换集用下面的列表，PiP 手机没用 */
  .vol { display: none; }
  .time { font-size: 11.5px; margin-left: 3px; }
  .txt { padding: 5px 8px; font-size: 12px; }
  #btn-cue { padding: 5px 7px; }
  .menu { bottom: 38px; min-width: 92px; }
  .menu button { padding: 9px 12px; }                 /* 触屏点得到 */
  .big-play { width: 66px; height: 66px; }
  .big-play svg { width: 26px; height: 26px; }
  .seek-flash { padding: 8px 13px; font-size: 12px; }
  .now-title { font-size: 15.5px; }
  .now-stage { display: none; }
  .scrub { padding: 11px 0; }                          /* 触屏更好按 */
}
/* 很窄的手机：时长只留当前时间，给全屏按钮腾地方 */
@media (max-width: 430px) {
  .time i, #t-dur { display: none; }
  .txt { padding: 5px 7px; font-size: 11.5px; }
  .ico { width: 30px; height: 30px; }
  .ico svg { width: 18px; height: 18px; }
}
/* 手机横屏：播放器占满一屏，列表往下退 */
@media (max-width: 900px) and (orientation: landscape) {
  .cat-head { padding-top: 66px; padding-bottom: 6px; gap: 4px; }
  .cat-head-intro { display: none; }
  .player { max-height: calc(100dvh - 78px); }
  .hero { min-height: 100dvh; padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
