/* =========================================================================
   爱壹帆 Web Portal — UI v10（黑白高级感 · 大厂质感 · 顶栏布局）
   设计语言：纯黑白灰 + 发丝线 + 大留白 + 克制动效，无彩色渐变。
   ========================================================================= */

:root {
  --bg: #ffffff;
  --header: rgba(255, 255, 255, .82);
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ececee;

  --ink: #08090b;
  --ink-2: #45464b;
  --muted: #86868b;
  --muted-2: #b3b4ba;

  --line: #eaeaec;
  --line-2: #dadadd;

  --accent: #08090b;          /* 主色=黑 */
  --on-accent: #ffffff;       /* 黑底上的字 */
  --score: #08090b;

  --maxw: 1520px;
  --gutter: clamp(16px, 2.8vw, 48px);
  --headh: 64px;

  --r: 8px;
  --r-lg: 10px;
  --r-xl: 13px;

  --shadow-xs: 0 1px 2px rgba(8, 9, 11, .05);
  --shadow-sm: 0 6px 18px rgba(8, 9, 11, .07);
  --shadow-md: 0 16px 40px rgba(8, 9, 11, .12);
  --shadow-lg: 0 30px 70px rgba(8, 9, 11, .2);

  --ease: cubic-bezier(.22, .8, .26, 1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

body.dark {
  --bg: #000000;
  --header: rgba(10, 10, 12, .72);
  --card: #121214;
  --surface: #121214;
  --surface-2: #1b1b1f;
  --surface-3: #26262b;
  --ink: #f5f5f7;
  --ink-2: #c4c4cc;
  --muted: #8a8a90;
  --muted-2: #5a5a60;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --accent: #ffffff;
  --on-accent: #08090b;
  --score: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .5);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
img { display: block; }
h1, h2, h3, p { margin: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(135, 135, 142, .35); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(135, 135, 142, .55); background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.fade-in { animation: fadeIn .45s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================ 外壳 ============================ */
.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; padding-bottom: 64px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================ 顶栏 ============================ */
.topnav { flex: 0 0 auto; height: var(--headh); background: var(--header); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); z-index: 60; }
.topnav__inner { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.topnav__menu { display: none; }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--on-accent); background: var(--accent); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.brand__name i { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .2em; color: var(--muted-2); }

.topnav__nav { display: flex; align-items: center; gap: clamp(6px, 1vw, 18px); flex: 0 1 auto; overflow: hidden; }
.nav__item { position: relative; padding: 8px 2px; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .18s; }
.nav__item:hover { color: var(--ink); }
.nav__item.is-active { color: var(--ink); font-weight: 700; }
.nav__item.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }

.search { position: relative; display: flex; align-items: center; flex: 1 1 auto; max-width: 340px; min-width: 120px; height: 40px; margin-left: auto; padding: 0 6px 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; transition: background .16s, border-color .16s; }
.search:focus-within { background: var(--surface); border-color: var(--ink); }
.search__icon { color: var(--muted); flex: 0 0 auto; }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; background: none; border: none; outline: none; color: var(--ink); font-size: 14px; }
.search__input::placeholder { color: var(--muted-2); }
.search__btn { flex: 0 0 auto; height: 30px; padding: 0 16px; border-radius: 999px; color: var(--on-accent); font-size: 13px; font-weight: 700; background: var(--accent); transition: opacity .16s; }
.search__btn:hover { opacity: .85; }

.suggest { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 6px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 70; max-height: 64vh; overflow-y: auto; }
.suggest.open { opacity: 1; transform: none; pointer-events: auto; }
.suggest__item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.suggest__item:hover, .suggest__item.active { background: var(--surface-2); color: var(--ink); }
.suggest__item b { color: var(--ink); font-weight: 800; }
.suggest__meta { margin-left: auto; font-size: 11.5px; color: var(--muted-2); }

.top__actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.tool-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: 54px; padding: 6px 0; border-radius: 11px; color: var(--muted); font-size: 11px; font-weight: 600; transition: color .16s, background .16s; }
.tool-btn svg { width: 20px; height: 20px; }
.tool-btn:hover { color: var(--ink); background: var(--surface-2); }
.ghost-btn { height: 38px; padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: 14px; transition: all .16s; }
.ghost-btn:hover { border-color: var(--ink); }
.ghost-btn--login { display: inline-flex; align-items: center; gap: 7px; color: var(--on-accent); background: var(--accent); border-color: transparent; }
.ghost-btn--login:hover { color: var(--on-accent); opacity: .86; }
/* 顶栏 APP：桌面端小图标+文字，手机端与登录按钮同款 */
.ghost-btn--app {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 54px;
  height: auto;
  min-height: 38px;
  padding: 6px 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  border-radius: 11px;
  text-decoration: none;
  line-height: 1.1;
}
.ghost-btn--app svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ghost-btn--app:hover { color: var(--ink); background: var(--surface-2); }
.ghost-btn--app[hidden] { display: none !important; }

/* ============================ Hero（影院级横幅，电脑端铺满宽度） ============================ */
.hero-skeleton { width: 100%; height: calc(100dvh - var(--headh)); background: var(--surface-2); }
.hero { position: relative; width: 100%; height: calc(100dvh - var(--headh)); overflow: hidden; background: #08090b; cursor: pointer; touch-action: pan-y; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 12s linear; }
.hero__bg img.active { opacity: 1; transform: scale(1); }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,7,9,.82) 0%, rgba(6,7,9,.38) 44%, rgba(6,7,9,.06) 72%), linear-gradient(0deg, rgba(6,7,9,.8) 0%, transparent 46%); }
.hero__empty { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 14px; }
.hero__layout { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 5vw, 76px); }
.hero__content { max-width: min(960px, 92%); }
.hero__title { color: #fff; font-weight: 800; letter-spacing: -.03em; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.03; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero__sub { margin-top: 14px; color: rgba(255,255,255,.78); font-size: clamp(13px, 1.2vw, 16px); font-weight: 500; letter-spacing: .01em; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s var(--ease), background .16s, transform .16s; }
.hero:hover .hero__arrow { opacity: 1; }
.hero__arrow svg { width: 22px; height: 22px; }
.hero__arrow--prev { left: clamp(14px, 2.2vw, 32px); }
.hero__arrow--next { right: clamp(14px, 2.2vw, 32px); }
.hero__arrow:hover { background: rgba(255,255,255,.22); transform: translateY(-50%) scale(1.06); }
.hero__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: clamp(18px, 2.4vw, 28px); z-index: 4; display: flex; gap: 7px; }
.hero__dot { flex: 0 0 auto; box-sizing: border-box; padding: 0; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .2s, transform .2s; }
.hero__dot.active { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
/* 手机端：很小的圆点、靠右下角、与标题同一行 */
@media (max-width: 1000px) {
  .hero__dots { left: auto; right: 14px; transform: none; bottom: 15px; gap: 5px; align-items: center; }
  .hero__dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); }
  .hero__dot.active { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
}

/* ============================ 区块 ============================ */
.block { margin-top: clamp(20px, 2.6vw, 34px); }
.block:first-child { margin-top: clamp(16px, 2vw, 24px); }
.row-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.row-head__title { font-size: clamp(16px, 1.4vw, 19px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.row-head__more { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13.5px; font-weight: 600; align-self: center; }
.row-head__more svg { width: 15px; height: 15px; }
.row-head__more:hover, a.row-head__more:hover { color: var(--ink); }

.swap-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; align-self: center; transition: all .16s; }
.swap-btn svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.swap-btn:hover { color: var(--ink); border-color: var(--ink); }
.swap-btn.is-busy svg { transform: rotate(360deg); }

/* ============================ 卡片 ============================ */
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 24px); }
.poster-grid > .card, .rank-grid > * { min-width: 0; }

.card { cursor: pointer; }
.card__thumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-xs); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.card:hover .card__thumb { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card__thumb img { transform: scale(1.06); }
.card__badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(8,9,11,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.card__remark { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(8,9,11,.5); }
.card__play-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(8,9,11,.34); opacity: 0; transition: opacity .24s var(--ease); }
.card:hover .card__play-overlay { opacity: 1; }
.card__play-overlay svg { width: 24px; height: 24px; color: #08090b; padding: 13px; border-radius: 50%; background: #fff; box-sizing: content-box; }
.card__title { margin: 11px 1px 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta { display: flex; align-items: center; gap: 8px; margin: 4px 1px 0; }
.card__count { flex: 1 1 auto; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__score { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--score); }
.card__score::before { content: "★"; font-family: var(--font); font-size: 11px; color: var(--muted); }
.card__sub { margin: 4px 1px 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================ 横滑行 ============================ */
.rail { position: relative; }
.poster-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * clamp(14px, 1.5vw, 24px)) / 6); gap: clamp(14px, 1.5vw, 24px); overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 6px; margin: -6px; }
.poster-row::-webkit-scrollbar { display: none; }
.rail__arrow { position: absolute; top: calc(50% - 34px); transform: translateY(-50%); z-index: 6; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), background .16s, color .16s; }
.rail__arrow svg { width: 22px; height: 22px; }
.rail__arrow--prev { left: -8px; }
.rail__arrow--next { right: -8px; }
.rail.can-prev .rail__arrow--prev, .rail.can-next .rail__arrow--next { opacity: 1; pointer-events: auto; }
.rail__arrow:hover { background: var(--ink); color: var(--bg); border-color: transparent; }

/* ============================ 旧排行兜底 ============================ */
.rank-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.5vw, 24px); }
.rank-card { position: relative; cursor: pointer; }
.rank-card__poster { position: relative; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-xs); transition: transform .28s, box-shadow .28s; }
.rank-card:hover .rank-card__poster { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.rank-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.rank-card__no { position: absolute; left: 8px; top: 4px; z-index: 2; font-family: var(--mono); font-size: 26px; font-weight: 900; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.rank-card__name { margin: 9px 1px 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================ 追剧日历 ============================ */
.sch-dates { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 18px; }
.sch-dates::-webkit-scrollbar { display: none; }
.sch-dates--fit .sch-date { flex: 1 1 0; }
.sch-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 9px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: all .16s; }
.sch-date__wd { font-size: 14px; font-weight: 700; }
.sch-date__md { font-size: 10px; color: var(--muted); }
.sch-date.is-active { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.sch-date.is-active .sch-date__md { color: rgba(255,255,255,.7); }
body.dark .sch-date.is-active .sch-date__md { color: rgba(0,0,0,.55); }
.sch-films { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * clamp(14px, 1.5vw, 24px)) / 6); gap: clamp(14px, 1.5vw, 24px); overflow-x: auto; scrollbar-width: none; padding: 6px; }
.sch-films::-webkit-scrollbar { display: none; }
.sch-card { cursor: pointer; }
.sch-card__poster { position: relative; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s; }
.sch-card:hover .sch-card__poster { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sch-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.sch-card__poster::after { content: ''; position: absolute; inset: auto 0 0; height: 44%; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }
.sch-card__air { position: absolute; top: 8px; left: 8px; z-index: 2; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.sch-card__air-time { display: block; font-size: 17px; font-weight: 800; color: #fff; }
.sch-card__air-sub { font-size: 11px; color: rgba(255,255,255,.9); }
.sch-card__status { position: absolute; right: 8px; bottom: 8px; z-index: 2; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.sch-card__title { margin: 9px 1px 0; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-empty { color: var(--muted); font-size: 14px; padding: 20px 4px; }
.sch-head__hint { color: var(--muted); }

/* ============================ 分区 / 搜索 / 返回 ============================ */
.section-page, .library, .account, .play { max-width: var(--maxw); margin: 0 auto; padding: clamp(16px, 2.2vw, 30px) var(--gutter) 0; }
.play-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(14px, 1.8vw, 22px) var(--gutter) 0; }
.section-page__head { display: flex; align-items: center; gap: 14px; padding: 4px 0 22px; }
.section-page__title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.result-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(18px, 2.2vw, 30px) var(--gutter) 6px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.result-head b { color: var(--ink); }
.back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: 13.5px; transition: all .16s; }
.back-btn svg { width: 18px; height: 18px; }
.back-btn:hover { color: var(--ink); border-color: var(--ink); }

/* ============================ 片库筛选 ============================ */
.filter-block { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-block:first-child { padding-top: 0; }
.filter-block__label { flex: 0 0 52px; padding-top: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.filter-block__opts { display: flex; flex-wrap: nowrap; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.filter-block__opts::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; white-space: nowrap; padding: 7px 15px; border-radius: 999px; background: transparent; border: 1px solid transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: all .16s; }
.chip:hover { color: var(--ink); background: var(--surface-2); }
.chip.is-active { color: var(--on-accent); background: var(--accent); }

/* ============================ 我的 / 登录 ============================ */
/* ---- 身份卡片 ---- */
.profile { border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.profile__head { display: flex; align-items: center; gap: 16px; padding: 22px 22px 18px; }
.profile__avatar { width: 60px; height: 60px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; color: var(--on-accent); background: var(--accent); flex: 0 0 auto; }
.profile__avatar svg { width: 30px; height: 30px; }
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile__meta { flex: 1 1 auto; min-width: 0; }
.profile__name { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: var(--ink); }
.profile__name > *:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile__badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #2a200a; background: linear-gradient(135deg, #f7d27a, #e9b949); }
.profile__badge svg { width: 12px; height: 12px; }
.profile__id { margin-top: 5px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.profile__logout { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--surface-2); transition: all .16s; }
.profile__logout:hover { color: var(--ink); background: var(--surface-3); }
.profile__logout svg { width: 19px; height: 19px; }
.profile__vip { display: flex; align-items: center; gap: 12px; margin: 0 14px 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); }
.profile__vip-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: var(--muted-2); background: var(--surface-3); }
.profile__vip-icon svg { width: 19px; height: 19px; }
.profile__vip-text { min-width: 0; }
.profile__vip-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.profile__vip-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.profile__vip.is-active { background: linear-gradient(120deg, #1c1d20, #08090b); }
.profile__vip.is-active .profile__vip-icon { color: #f3cf86; background: rgba(243, 207, 134, .14); }
.profile__vip.is-active .profile__vip-title { color: #fff; }
.profile__vip.is-active .profile__vip-sub { color: rgba(255, 255, 255, .66); }

.account__section { margin-top: 26px; }

/* ---- 快捷入口 ---- */
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.acc-entry { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); text-align: left; transition: all .16s var(--ease); }
.acc-entry:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.acc-entry__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; color: var(--on-accent); background: var(--accent); }
.acc-entry__icon svg { width: 21px; height: 21px; }
.acc-entry__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.acc-entry__title { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.acc-entry__sub { margin-top: 2px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-entry__arrow { flex: 0 0 auto; color: var(--muted-2); }
.acc-entry__arrow svg { width: 17px; height: 17px; }

/* ---- 卡密兑换 ---- */
.redeem { padding: 20px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.redeem__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.redeem__head-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; color: var(--on-accent); background: var(--accent); }
.redeem__head-icon svg { width: 21px; height: 21px; }
.redeem__head-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.redeem__head-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.redeem__row { display: flex; gap: 10px; }
.redeem__input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 16px; font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase; text-align: center; transition: all .16s; }
.redeem__input:focus { outline: none; border-color: var(--ink); background: var(--card); }
.redeem__input::placeholder { letter-spacing: 1px; color: var(--muted-2); }
.redeem__btn { flex: 0 0 auto; height: 48px; padding: 0 24px; }
.redeem__btn:disabled { opacity: .55; cursor: default; }
.redeem__status { max-height: 0; overflow: hidden; opacity: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .2s; }
.redeem__status.is-show { max-height: 40px; opacity: 1; margin-top: 12px; }
.redeem__status.is-error { color: #e23744; }
.redeem__hint { margin-top: 10px; font-size: 12px; color: var(--muted-2); text-align: center; }

.auth-wrap { max-width: 420px; margin: 5vh auto 0; }
.auth-hero { text-align: center; margin-bottom: 26px; }
.auth-hero__logo { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; color: var(--on-accent); background: var(--accent); }
.auth-hero__logo svg { width: 28px; height: 28px; }
.auth-hero__title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.auth-hero__sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 26px 24px; }
.auth-tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface-2); border-radius: 999px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 10px 0; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); transition: all .16s; }
.auth-tab.is-active { color: var(--on-accent); background: var(--accent); }
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field__label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.auth-input { height: 46px; padding: 0 15px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font-size: 15px; outline: none; transition: border-color .16s; }
.auth-input:focus { border-color: var(--ink); }
.auth-msg { min-height: 18px; margin: 12px 2px 0; font-size: 13px; font-weight: 600; color: #d11; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-scan__qr { display: flex; justify-content: center; margin: 12px 0 8px; }
.auth-scan__qr img { border-radius: 12px; background: #fff; padding: 8px; }
.auth-scan__code { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: .14em; color: var(--ink); text-align: center; margin-top: 4px; }
.auth-scan__hint { color: var(--muted); font-size: 13px; margin-top: 6px; text-align: center; line-height: 1.5; }

/* ============================ 详情 + 播放 ============================ */
.play { max-width: var(--maxw); margin: 0 auto; padding: clamp(16px, 2vw, 28px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.play__main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.play__detail { display: flex; flex-direction: column; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.detail__tag { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }

/* 弹幕条 */
.dm-bar { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.dm-toggle { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); transition: color .16s, opacity .16s; }
.dm-toggle svg { width: 18px; height: 18px; }
.dm-toggle.is-off { color: var(--muted-2); opacity: .6; }
.dm-input { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 6px; background: none; border: none; outline: none; color: var(--ink); font-size: 14px; }
.dm-input::placeholder { color: var(--muted-2); }
.dm-send { flex: 0 0 auto; height: 30px; padding: 0 18px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13.5px; }

/* 标题 / 元信息 / 简介 / 操作 */
.watch-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.watch-title__name { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.watch-title__sep { display: inline-flex; color: var(--muted-2); }
.watch-title__sep svg { width: 18px; height: 18px; }
.watch-title__ep { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.play__detail .detail__tags { margin-top: 14px; }
.watch-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.watch-meta__score { color: var(--ink); font-weight: 800; }
.watch-meta__sep { color: var(--line-2); font-style: normal; }
.watch-desc-block { margin-top: 14px; }
.watch-desc { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.watch-desc__label { color: var(--ink); font-weight: 700; }
.watch-desc__toggle { display: none; margin-top: 6px; color: var(--ink); font-weight: 700; font-size: 13px; }
.watch-desc__toggle::after { content: " ›"; }
.watch-desc-block.is-expanded .watch-desc__toggle::after { content: " ‹"; }
@media (max-width: 1000px) {
  .watch-desc-block:not(.is-expanded) .watch-desc { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .watch-desc__toggle { display: inline-block; }
}
.watch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.act-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; transition: all .16s; }
.act-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.act-btn:hover { border-color: var(--ink); color: var(--ink); }
.act-btn.is-on { color: var(--on-accent); background: var(--accent); border-color: transparent; }

.play__main,
.play__side,
.player-wrap,
.player {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.player-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: #000; isolation: isolate; }
.player { aspect-ratio: 16/9; background: #05060a; display: grid; place-items: center; color: rgba(255,255,255,.6); position: relative; overflow: hidden; }
.player video { width: 100%; height: 100%; max-width: 100%; background: #000; object-fit: contain; pointer-events: none; }
.player .art-video-player .art-mask,
.player .art-video-player .art-controls,
.player .art-video-player .art-layers { pointer-events: auto; }
/* 压制 iOS/Android 原生 video 控件，只显示 Artplayer UI */
.player video::-webkit-media-controls { display: none !important; }
.player video::-webkit-media-controls-enclosure { display: none !important; }
.player video::-webkit-media-controls-panel { display: none !important; }
.player video::-webkit-media-controls-start-playback-button { display: none !important; }
.player:has(.art-video-player) { display: block; }
.player.is-sized .art-video-player:not(.art-fullscreen):not(.art-fullscreen-web) { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: 100% !important; margin: 0 !important; }
.player.is-sized .art-video,
.player.is-sized video { width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: contain; }
.player .art-video-player { width: 100% !important; height: 100% !important; max-width: 100% !important; border-radius: inherit; overflow: hidden; }
.player .skp-mobile-ctrl .art-controls { max-width: 100%; }
.player .skp-mobile-ctrl .art-control-pip,
.player .skp-mobile-ctrl .art-control-setting,
.player .skp-mobile-ctrl .art-control-lock,
.player .skp-mobile-ctrl .art-control-playbackRate,
.player .skp-mobile-ctrl .art-control-fullscreen { display: none !important; }
.player .art-fullscreen-web { z-index: 9999; }
.player .art-control-quality, .player .art-control-audio, .player .art-control-subtitle { white-space: nowrap; font-size: 13px; opacity: .92; }
.player .art-danmuku { z-index: 11; }
.player__placeholder { text-align: center; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.player__placeholder .pp-icon { width: 56px; height: 56px; margin: 0 auto 14px; color: rgba(255,255,255,.8); }
.player__placeholder p { color: rgba(255,255,255,.72); font-size: 15px; }
.pp-spin { animation: ppspin 1s linear infinite; }
@keyframes ppspin { to { transform: rotate(360deg); } }
.player-now-wrap { opacity: 1; transition: opacity .2s ease; }
.player-now { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(8,9,12,.66); color: #fff; pointer-events: none; }
.player-now__title { max-width: 46vw; font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-now__sep { color: rgba(255,255,255,.5); }
.player-now__ep { font-size: 14px; color: rgba(255,255,255,.9); }
.player .art-video-player:not(.art-hover):not(.art-control-show) .player-now-wrap { opacity: 0; visibility: hidden; }
.player-wrap.is-scroll-hidden .player-now-wrap { visibility: hidden !important; opacity: 0 !important; }
.play-unlock__qr { display: flex; justify-content: center; margin: 8px 0; }
.play-unlock__qr img { border-radius: 12px; background: #fff; padding: 8px; }
.play-unlock__code { font-family: var(--mono); font-size: 18px; letter-spacing: .12em; color: #fff; }
.play-unlock__hint { color: rgba(255,255,255,.66); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.player-gate { padding: 24px 16px; }
.slide__play { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.slide__play svg { width: 16px; height: 16px; }

.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px; display: flex; flex-direction: column; }
.side-card__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-card__title { display: inline-flex; align-items: center; height: 30px; font-size: 17px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.side-card__head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 30px; }
.side-card__count { display: inline-flex; align-items: center; height: 30px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ep-sort { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.ep-sort:hover { color: var(--ink); }
.src-row { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.src-row__label { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--ink); }
.src-row .source-tabs { flex: 1 1 auto; min-width: 0; padding: 0; }
.source-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 2px; }
.source-tab { padding: 7px 15px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 13px; transition: all .16s; }
.source-tab:hover { color: var(--ink); }
.source-tab.is-active { color: var(--on-accent); background: var(--accent); }
.side-card__eps { flex: 1; overflow-y: auto; padding: 14px 2px 2px; }
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 9px; }
.ep { padding: 11px 5px; border-radius: 9px; text-align: center; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; transition: all .16s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep:hover { color: var(--ink); background: var(--surface-3); }
.ep.is-active { color: var(--on-accent); background: var(--accent); }
.ep.is-banned:not(.is-active) { opacity: .42; color: var(--ink-3); }
.ep.is-banned.is-active { background: color-mix(in srgb, var(--accent) 55%, var(--surface-2)); }

/* ============================ 通用 ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .18s var(--ease), opacity .18s; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: var(--on-accent); background: var(--accent); }
.btn-primary:hover { transform: translateY(-2px); opacity: .9; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(150,150,160,.14), transparent); transform: translateX(-100%); animation: shimmer 1.3s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-card { aspect-ratio: 3/4; border-radius: var(--r-lg); }
.sk-line { height: 12px; border-radius: 6px; margin-top: 10px; }

.empty { text-align: center; color: var(--muted-2); padding: 70px 20px; }
.empty svg { width: 64px; height: 64px; opacity: .5; margin-bottom: 12px; }
.empty p { font-size: 14px; }

.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 999; background: var(--ink); transition: width .25s var(--ease), opacity .4s; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 999; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.fab-stack { position: fixed; right: clamp(14px, 1.6vw, 28px); bottom: clamp(18px, 3vw, 40px); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.fab { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-md); transition: background .16s, color .16s, opacity .25s, transform .25s; }
.fab svg { width: 21px; height: 21px; }
.fab:hover { color: var(--bg); background: var(--ink); border-color: transparent; }
.fab .ic-sun { display: none; }
body.dark .fab .ic-sun { display: block; }
body.dark .fab .ic-moon { display: none; }
.fab--top { opacity: 0; transform: translateY(10px); pointer-events: none; }
.fab--top.show { opacity: 1; transform: none; pointer-events: auto; }

/* 移动端：不需要底栏 */
.tabbar { display: none !important; }
.scrim { display: none; }

/* ============================ 响应式 ============================ */
@media (max-width: 1280px) {
  .poster-grid, .rank-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .poster-row, .sch-films { grid-auto-columns: calc((100% - 4 * clamp(14px,1.5vw,24px)) / 5); }
  .play { grid-template-columns: 1fr; }
  .side-card { max-height: none !important; }
  .side-card__eps { max-height: 340px; }
}
@media (max-width: 1000px) {
  /* 手机/平板：隐藏右侧滚动条，避免右边出现多余留白 */
  .view { scrollbar-width: none; }
  .view::-webkit-scrollbar { display: none; }
  /* 手机端「正在热播」最多显示 6 条，且去掉「换一换」按钮 */
  .rank-board .swap-btn { display: none; }
  .rank-board__grid > .card:nth-child(n+7) { display: none; }
  /* 手机端播放页线路：横向滑动一行展示，不换行 */
  .source-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -2px; padding: 12px 2px 2px; }
  .source-tabs::-webkit-scrollbar { display: none; }
  .source-tab { flex: 0 0 auto; white-space: nowrap; }
  /* 手机/平板：导航变成顶栏下方横向滚动条（参考站样式），不用汉堡抽屉 */
  .topnav { height: auto; }
  .topnav__inner { flex-wrap: wrap; row-gap: 8px; padding-top: 9px; padding-bottom: 6px; gap: 10px; }
  .topnav__menu { display: none; }
  .brand { order: 1; flex: 0 0 auto; }
  .brand__logo { display: none; }
  .brand__name { font-size: 17px; }
  /* flex-basis:0 让搜索框只占用剩余空间、永远不挤到第二行 */
  .search { order: 2; flex: 1 1 0; min-width: 0; max-width: none; margin-left: 10px; height: 38px; border-radius: 10px; }
  .top__actions { order: 3; margin-left: 2px; gap: 0; position: relative; z-index: 2; }
  .topnav__nav { order: 4; flex-basis: 100%; width: 100%; display: flex; align-items: center; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-overflow-scrolling: touch; }
  .topnav__nav::-webkit-scrollbar { display: none; }
  .nav__item { font-size: 15px; padding: 6px 1px; }
  .tool-btn { display: none; }
  .rail__arrow { display: none; }
  /* 手机端轮播图不要左右切换按钮 */
  .hero__arrow { display: none !important; }
  /* 手机端搜索框：去掉黑色「搜索」按钮，只留输入框 */
  .search__btn { display: none; }
  /* 手机端登录 / APP：同尺寸图标按钮 */
  .ghost-btn--login,
  .ghost-btn--app {
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--ink);
    padding: 0;
    width: 40px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
  .ghost-btn--login:hover,
  .ghost-btn--app:hover { opacity: 1; color: var(--ink); background: transparent; }
  .ghost-btn--login span,
  .ghost-btn--app span { display: none; }
  .ghost-btn--login svg,
  .ghost-btn--app svg { width: 25px; height: 25px; }
  .hero, .hero-skeleton { height: clamp(320px, 54vh, 600px); }
  .poster-grid, .rank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .poster-row, .sch-films { grid-auto-columns: calc((100% - 3 * clamp(14px,1.5vw,24px)) / 4); }
}
@media (max-width: 720px) {
  :root { --gutter: 14px; }
  .brand__name { font-size: 16px; }
  .search { max-width: none; }
  .poster-grid, .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  /* 手机端：横向滑动行的卡片也和「正在热播」3列网格同宽 */
  .poster-row { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; }
  /* 追剧日历：卡片缩小到和主页一致；日期一行铺满、全部可见 */
  .sch-films { grid-auto-columns: calc((100% - 2 * 12px) / 3); gap: 12px; padding: 4px 2px; }
  .sch-card__air-time { font-size: 14px; }
  .sch-card__title { font-size: 12.5px; }
  .sch-dates { gap: 6px; padding-bottom: 14px; }
  .sch-date { min-width: 0; padding: 7px 4px; }
  .sch-date__wd { font-size: 13px; }
  /* 手机端播放器：强制不超出屏幕宽度，16:9 高度由 JS lockMobilePlayerBox 写入 */
  .play,
  .play__main,
  .play__side,
  .player-wrap,
  .player { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  .player:not(:has(.player__placeholder)) { overflow: hidden; }
  .player:has(.player__placeholder) { aspect-ratio: auto; height: auto; min-height: 0; display: block; }
  .player__placeholder { box-sizing: border-box; width: 100%; min-height: clamp(180px, 40vw, 240px); padding: 22px 16px; justify-content: center; }
  .player__placeholder .pp-icon { display: none; }
  .player__placeholder p { font-size: 13px; }
  .hero, .hero-skeleton { height: clamp(170px, 28vh, 230px); min-height: 0; width: auto; margin: 12px var(--gutter) 0; border-radius: 10px; }
  .hero__layout { padding: 0 14px 13px; }
  /* 标题单行 + 末尾省略，给右下角圆点留出空间，二者同一行 */
  .hero__content { max-width: calc(100% - 56px); }
  .hero__title { font-size: clamp(15px, 4.2vw, 20px); line-height: 1.2; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }
  .hero__sub { display: none; }
  .detail__head { flex-direction: column; }
  .detail__poster { width: 130px; flex-basis: auto; }
  .ghost-btn:not(.ghost-btn--login) { display: none; }
  /* 我的页：手机端紧凑、信息块更稳 */
  .profile__head { padding: 18px 16px 14px; gap: 13px; }
  .profile__avatar { width: 54px; height: 54px; }
  .profile__name { font-size: 17px; }
  .profile__vip { margin: 0 12px 12px; padding: 12px 14px; }
  .account__section { margin-top: 20px; }
  .acc-grid { gap: 10px; margin-top: 14px; }
  .acc-entry { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .acc-entry__arrow { display: none; }
  .acc-entry__icon { width: 38px; height: 38px; }
  .redeem { padding: 16px; }
  .redeem__head { margin-bottom: 14px; }
  .redeem__input { height: 46px; font-size: 15px; letter-spacing: 1px; }
  .redeem__btn { height: 46px; padding: 0 18px; }
}
@media (max-width: 440px) { .poster-grid, .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; } }

/* ============================ 带鱼屏 / 超宽屏 ============================ */
@media (min-width: 1680px) {
  :root { --maxw: min(90vw, 2000px); }
}
@media (min-width: 1920px) {
  :root { --maxw: min(92vw, 2280px); }
  .poster-grid, .rank-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .poster-row, .sch-films { grid-auto-columns: calc((100% - 7 * clamp(14px, 1.5vw, 24px)) / 8); }
  .play { grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; }
}
@media (min-width: 2560px) {
  :root { --maxw: min(94vw, 2680px); }
  .poster-grid, .rank-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .poster-row, .sch-films { grid-auto-columns: calc((100% - 9 * clamp(14px, 1.5vw, 24px)) / 10); }
}
@media (min-aspect-ratio: 21/9) and (min-width: 1600px) {
  :root { --maxw: min(96vw, 3200px); }
  .hero__bg img { object-fit: cover; object-position: center center; }
}

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } .reveal { opacity: 1; transform: none; } }
