/* 影库 · 资源门户（portal）—— 苹果CMS 前台模板样式
   浅色门户：页面底 #f2f3f5，白色面板 + 1px 细线组织信息，活力橙做导航条、按钮、选中、名次和连载状态。
   版心 1200px，正文 13–14px。不依赖任何框架、外部字体；图标全部是内联 SVG。 */

:root {
  --bg: #f2f3f5;
  --panel: #fff;
  --line: #e5e6eb;
  --line-2: #f0f1f3;
  --fill: #f7f8fa;
  --ink: #1d2129;
  --ink-2: #4e5969;
  --ink-3: #6b7785;      /* 小字说明：在白底上对比度 ≥ 4.5 */
  --ink-4: #86909c;      /* 分隔符、图标、占位文字 */
  --pri: #e85a00;        /* 导航条、按钮、选中：白字对比度 3.6:1（原 #ff6a00 只有 2.9:1） */
  --pri-d: #c94c00;      /* 当前项、悬停：白字 4.6:1 */
  --pri-l: #fff3e8;
  --pri-ink: #c24f00;    /* 白底上的橙色小字 */
  --foot: #2b2f36;
  --r: 4px;
  --side: 310px;
  --gap: 20px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pri-d); }
img { display: block; max-width: 100%; border: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pri-d); outline-offset: 2px; }   /* 深橙：白底上对比度 ≥ 3:1 */
.wrap { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 8px 14px; border-radius: var(--r); background: var(--ink); color: #fff; }
.skip:focus { top: 12px; color: #fff; }
.none { padding: 24px 16px; color: var(--ink-3); font-size: 13px; text-align: center; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r); background: none; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn .ico { font-size: 16px; }
.btn--pri { background: var(--pri); color: #fff; }
.btn--pri:hover { background: var(--pri-d); color: #fff; }
.btn--line { border-color: var(--line); background: #fff; color: var(--ink-2); }
.btn--line:hover { border-color: var(--pri); color: var(--pri-d); }
.btn--line[aria-pressed="true"] { border-color: var(--pri); background: var(--pri-l); color: var(--pri-ink); }
.btn--lg { height: 42px; padding: 0 28px; font-size: 15px; }
.btn--sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- 页头第一行：标志、搜索、热搜、观看历史 ---------- */
.hd__top { background: #fff; }
.hd__row { display: flex; align-items: center; gap: 32px; height: 92px; }
.logo { display: flex; flex: none; align-items: center; min-width: 0; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.logo:hover { color: var(--ink); }
.logo__mk { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: var(--pri); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 0; }
.logo__name { overflow: hidden; max-width: 12em; text-overflow: ellipsis; white-space: nowrap; }   /* 站名再长也不挤搜索框 */
.hd__find { flex: 0 1 600px; min-width: 0; margin-left: 24px; }
.sbox { position: relative; display: flex; height: 40px; border: 2px solid var(--pri); border-radius: var(--r); background: #fff; }
.sbox__ico { position: absolute; left: 12px; top: 50%; margin-top: -8px; font-size: 16px; color: var(--ink-4); pointer-events: none; }
.sbox input { flex: 1; min-width: 0; height: 100%; padding: 0 12px 0 36px; border: 0; outline: 0; background: none; font-size: 14px; }
.sbox input::placeholder { color: var(--ink-4); }
.sbox input::-webkit-search-cancel-button { -webkit-appearance: none; }
.sbox:focus-within { box-shadow: 0 0 0 3px rgba(232, 90, 0, .16); }
.sbox button { flex: none; width: 92px; margin: -2px -2px -2px 0; border: 0; border-radius: 0 var(--r) var(--r) 0; background: var(--pri); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .1em; }
.sbox button:hover { background: var(--pri-d); }
.hotw { display: flex; flex-wrap: wrap; height: 20px; margin-top: 7px; overflow: hidden; column-gap: 16px; font-size: 12px; line-height: 20px; }
.hotw__k { color: var(--pri-ink); font-weight: 600; }
.hotw a { max-width: 12em; overflow: hidden; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.hotw a:hover { color: var(--pri-d); }
.hd__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.tool .ico { font-size: 16px; }
.tool:hover, .tool[aria-expanded="true"] { border-color: var(--pri); color: var(--pri-d); }

/* 观看历史弹出层 */
.pop { position: relative; }
.pop__panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 340px; max-height: min(560px, 75vh); overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: 0 8px 24px rgba(29, 33, 41, .1); overscroll-behavior: contain; }
.pop__h { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.pop__h button { height: 30px; padding: 0 8px; border: 0; background: none; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.pop__h button:hover { color: var(--pri-d); }
.pop__sub { border-top: 6px solid var(--bg); }
.hist__list { padding: 4px 0; }
.hist__list a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.hist__list a:hover { background: var(--fill); }
.hist__list img, .hist__ph { flex: none; width: 36px; height: 50px; border-radius: 2px; background: var(--bg); object-fit: cover; }
.hist__list span { display: flex; flex-direction: column; min-width: 0; }
.hist__list b { overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.hist__list small { color: var(--ink-3); font-size: 12px; }
.hist__none { padding: 20px 16px; color: var(--ink-3); font-size: 13px; line-height: 1.7; }

/* ---------- 页头第二行：橙色导航条 ---------- */
.hnav { background: var(--pri); }
.hnav__in { display: flex; align-items: stretch; height: 44px; }
.hnav__in a { display: flex; flex: none; align-items: center; padding: 0 20px; color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .15s; }
.hnav__in a:hover { background: rgba(0, 0, 0, .1); color: #fff; }
.hnav__in a[aria-current] { background: var(--pri-d); }
.hnav__in a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.hnav__m { display: none !important; }

/* ---------- 页头第三行：二级分类细条 ---------- */
.hsub { border-bottom: 1px solid var(--line); background: #fff; }
.hsub__in { display: flex; flex-wrap: wrap; height: 40px; overflow: hidden; }
.hsub__g { display: flex; flex: none; align-items: center; height: 40px; }
.hsub__g + .hsub__g { margin-left: 14px; padding-left: 14px; }
.hsub__g + .hsub__g::before { content: ""; width: 1px; height: 14px; margin: 0 14px 0 -14px; background: var(--line); }
.hsub__g a { position: relative; padding: 0 9px; color: var(--ink-2); font-size: 13px; line-height: 40px; white-space: nowrap; }
.hsub__g a:hover { color: var(--pri-d); }
.hsub__g:first-child a:first-child { padding-left: 0; }
.hsub .hsub__top { color: var(--ink); font-weight: 600; }
.hsub a[aria-current] { color: var(--pri-ink); font-weight: 600; }
.hsub a[aria-current]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; background: var(--pri); }
.hsub__g:first-child a:first-child[aria-current]::after { left: 0; }

/* ---------- 版面 ---------- */
main.wrap { padding-top: 16px; padding-bottom: 8px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--gap); margin-bottom: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--gap); align-items: start; }
.cols__main, .cols__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* 面板头：分类名（左侧橙色短竖条）+ 文字标签 + 更多» */
.ph { display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.ph h2, .ph h3 { display: flex; flex: none; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.ph h2::before, .ph h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--pri); }
.ph h2 a:hover { color: var(--pri-d); }
.ph__tags { display: flex; flex: 1; flex-wrap: wrap; height: 26px; min-width: 0; overflow: hidden; }
.ph__tags a { padding: 0 8px; border-radius: 2px; color: var(--ink-2); font-size: 13px; line-height: 26px; white-space: nowrap; }
.ph__tags a:hover { background: var(--pri-l); color: var(--pri-ink); }
.ph__note { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.ph__note b { color: var(--pri-ink); font-weight: 600; }
.ph__more { position: relative; flex: none; margin-left: auto; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.ph__more::after { content: ""; position: absolute; inset: -12px -10px; }   /* 点击区补到面板头的高度 */
.ph__more span { margin-left: 2px; }

/* 文字 tab（排序、榜单周期、子栏目） */
.tabs { display: flex; align-items: stretch; align-self: stretch; gap: 4px; min-width: 0; }
.tabs a, .tabs button { position: relative; display: flex; align-items: center; padding: 0 12px; border: 0; background: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--pri-d); }
.tabs [aria-current], .tabs [aria-pressed="true"], .tabs [aria-selected="true"] { color: var(--pri-ink); font-weight: 600; }
.tabs [aria-current]::after, .tabs [aria-pressed="true"]::after, .tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--pri); }
.ph--tabs { padding-left: 4px; }

/* ---------- 影片卡 ---------- */
.g6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; padding: 16px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__pic { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: #e9ebef; aspect-ratio: 2 / 3; }
@supports not (aspect-ratio: 1 / 1) { .card__pic { height: 0; padding-top: 150%; } .card__pic img { position: absolute; inset: 0; } }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__pic img { transform: scale(1.04); }
.card__st { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 7px 5px; overflow: hidden; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .78)); color: #fff; font-size: 12px; line-height: 18px; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.card__st.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--pri); vertical-align: 1px; }
.card__rank { position: absolute; left: 0; top: 0; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r) 0 var(--r) 0; background: rgba(29, 33, 41, .72); color: #fff; font-size: 13px; font-weight: 700; }
.card__rank.is-top { background: var(--pri); }
.card__name { margin-top: 8px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.card:hover .card__name { color: var(--pri-d); }
.card__sub { margin-top: 2px; overflow: hidden; color: var(--ink-3); font-size: 12px; line-height: 18px; white-space: nowrap; text-overflow: ellipsis; }

/* 没有海报或海报打不开：保留海报位，正中写片名 */
.is-broken { position: relative; }
.is-broken img { visibility: hidden; }
.is-broken::after { content: attr(data-name); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; background: linear-gradient(160deg, #f2f3f5, #e5e6eb); color: var(--ink-3); font-size: 13px; line-height: 1.5; text-align: center; word-break: break-all; }

/* ---------- 热播榜 ---------- */
.rank { display: flex; flex-direction: column; }
.bd { display: flex; flex: 1; flex-direction: column; padding: 6px 0 8px; counter-reset: none; }
.bd > li { display: flex; flex: 1 1 auto; }
.bd > li > a { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 34px; padding: 0 16px; font-size: 13px; }
.bd > li > a:hover { background: var(--fill); }
.bd__no { display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 2px; background: var(--bg); color: var(--ink-3); font-size: 12px; font-style: normal; font-weight: 700; line-height: 1; }
.bd__no.is-top { background: var(--pri); color: #fff; }
.bd > li b { flex: 1; min-width: 0; overflow: hidden; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.bd > li em { flex: none; max-width: 96px; overflow: hidden; color: var(--ink-3); font-size: 12px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.bd em.is-on { color: var(--pri-ink); }
.bd > li.bd__first { flex: none; }
.bd__first > a { align-items: flex-start; gap: 12px; margin-bottom: 4px; padding-top: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.bd__pic { position: relative; flex: none; width: 76px; overflow: hidden; border-radius: 3px; background: #e9ebef; aspect-ratio: 2 / 3; }
.bd__pic img { width: 100%; height: 100%; object-fit: cover; }
.bd__pic.is-broken::after { font-size: 12px; padding: 4px; }
.bd__txt { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.bd__first .bd__t { display: block; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 22px; white-space: nowrap; text-overflow: ellipsis; }
.bd__t .bd__no { margin-right: 8px; vertical-align: 1px; }
.bd__meta { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--ink-3); font-size: 12px; line-height: 18px; }
.bd__meta em { max-width: none; color: var(--ink-3); font-style: normal; }
.bd__d { display: -webkit-box; overflow: hidden; color: var(--ink-2); font-size: 12px; line-height: 1.65; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ---------- 首页：焦点图 + 今日更新 ---------- */
.focus { display: grid; grid-template-columns: minmax(0, 1fr) 224px; overflow: hidden; }
.focus__stage { position: relative; min-width: 0; }
.fs { display: none; grid-template-columns: 200px minmax(0, 1fr); height: 100%; }
.fs.is-active { display: grid; }
.fs__pic { position: relative; display: block; width: 200px; height: 300px; overflow: hidden; background: #e9ebef; }
.fs__pic img { width: 100%; height: 100%; object-fit: cover; }
.fs__info { display: flex; flex-direction: column; min-width: 0; padding: 20px 24px 22px; }
.fs__t { overflow: hidden; font-size: 22px; font-weight: 700; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.fs__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fs__meta span, .fs__meta em { padding: 0 8px; border-radius: 2px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-style: normal; line-height: 22px; }
.fs__meta em.is-on { background: var(--pri-l); color: var(--pri-ink); }
.fs__desc { display: -webkit-box; margin-top: 12px; overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 1.75; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.fs__cr { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; font-size: 13px; }
.fs__cr div { display: flex; gap: 10px; min-width: 0; }
.fs__cr dt { flex: none; color: var(--ink-3); }
.fs__cr dd { overflow: hidden; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.fs__acts { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }
.focus__tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--fill); }
.ftab { position: relative; display: flex; flex: 1; align-items: center; gap: 10px; min-height: 0; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.ftab:last-child { border-bottom: 0; }
.ftab:hover b { color: var(--pri-d); }
.ftab__no { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 2px; background: var(--line); color: var(--ink-2); font-size: 12px; font-style: normal; font-weight: 700; }
.ftab__txt { display: flex; flex-direction: column; min-width: 0; }
.ftab__txt b, .ftab__txt small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ftab__txt b { font-size: 13px; font-weight: 600; line-height: 19px; }
.ftab__txt small { color: var(--ink-3); font-size: 12px; line-height: 17px; }
.ftab[aria-selected="true"] { background: #fff; }
.ftab[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--pri); }
.ftab[aria-selected="true"] .ftab__no { background: var(--pri); color: #fff; }
.ftab[aria-selected="true"] b { color: var(--pri-ink); }
.ftab__bar { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--pri); }
.focus.is-playing .ftab[aria-selected="true"] .ftab__bar { animation: fbar 6s linear forwards; }
.focus.is-playing:hover .ftab__bar, .focus.is-playing:focus-within .ftab__bar { animation-play-state: paused; }
@keyframes fbar { to { width: 100%; } }

.today { display: flex; flex-direction: column; }
.tl { display: flex; flex: 1; flex-direction: column; padding: 4px 0; }
.tl li { position: relative; display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-height: 25px; padding: 0 14px; font-size: 13px; }
.tl li:hover { background: var(--fill); }
.tl li:hover .tl__name { color: var(--pri-d); }
/* 整行都能点进影片（分类链接浮在上面，照样能单独点） */
.tl__name::after { content: ""; position: absolute; inset: 0; }
.tl__type { position: relative; z-index: 1; }
.tl time { flex: none; width: 38px; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.tl__type { flex: none; width: 52px; overflow: hidden; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.tl__name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl em { flex: none; max-width: 86px; overflow: hidden; color: var(--ink-3); font-size: 12px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.tl em.is-on { color: var(--pri-ink); }
.tl--side li { min-height: 34px; }

/* ---------- 更新表格 ---------- */
.utab { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.utab th { height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--fill); color: var(--ink-2); font-weight: 600; text-align: left; }
.utab td { height: 40px; padding: 0 12px; overflow: hidden; border-bottom: 1px solid var(--line-2); white-space: nowrap; text-overflow: ellipsis; }
.utab tbody tr:last-child td { border-bottom: 0; }
.utab tbody tr:hover td { background: var(--fill); }
.utab th:first-child, .utab td:first-child { padding-left: 16px; }
.utab th:last-child, .utab td:last-child { padding-right: 16px; }
.utab .u-time { width: 124px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.utab .u-type { width: 100px; }
.utab td.u-type a { color: var(--ink-2); }
.utab td.u-type a:hover { color: var(--pri-d); }
.utab td.u-name a { color: var(--ink); font-weight: 500; }
.utab td.u-name a:hover { color: var(--pri-d); }
.utab .u-cast { width: 300px; color: var(--ink-2); }
.utab .u-ep { width: 156px; color: var(--ink-3); }
.utab .u-ep .is-on { color: var(--pri-ink); }
.ups { margin-bottom: 8px; }

/* ---------- 面包屑 ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 12px; color: var(--ink-3); font-size: 13px; line-height: 20px; }
.crumb a { color: var(--ink-2); }
.crumb a:hover { color: var(--pri-d); }
.crumb a[aria-current] { color: var(--ink-3); }
.crumb span { color: var(--ink-4); }
.crumb::before { content: "当前位置："; color: var(--ink-3); }

/* ---------- 分类 / 筛选页 ---------- */
.lf__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.lf__head h1 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.lf__n { color: var(--ink-3); font-size: 13px; }
.lf__n b { color: var(--pri-ink); font-weight: 600; }
.lf__des { flex-basis: 100%; color: var(--ink-3); font-size: 13px; }
.lf__btn { display: none; }
.lf__sw { position: absolute; opacity: 0; pointer-events: none; }
.lf__rows { padding: 6px 0; }
.lf__row { display: flex; align-items: flex-start; gap: 8px; padding: 5px 16px; }
.lf__row--sub { display: none; }
.lf__lb { flex: none; width: 40px; color: var(--ink-3); font-size: 13px; line-height: 28px; }
.lf__opts { display: flex; flex: 1; flex-wrap: wrap; gap: 2px 4px; min-width: 0; }
.lf__opts a { padding: 0 10px; border-radius: 2px; color: var(--ink-2); font-size: 13px; line-height: 28px; white-space: nowrap; }
.lf__opts a:hover { color: var(--pri-d); }
.lf__opts a[aria-current] { background: var(--pri); color: #fff; font-weight: 600; }
.lf__picked { padding-top: 10px; padding-bottom: 10px; border-top: 1px dashed var(--line); background: #fffaf5; }
.lf__picked .lf__opts { align-items: center; gap: 6px 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 10px; border: 1px solid #ffd5b3; border-radius: 2px; background: var(--pri-l); color: var(--pri-ink) !important; font-size: 13px; line-height: 1 !important; }
.chip .ico { font-size: 12px; }
.chip:hover { border-color: var(--pri); }
.lf__clear { color: var(--ink-3) !important; text-decoration: underline; text-underline-offset: 3px; }

.empty { padding: 48px 24px; text-align: center; }
.empty h2, .empty h3 { font-size: 17px; font-weight: 700; }
.empty p { max-width: 460px; margin: 8px auto 0; color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.empty p a { color: var(--pri-ink); }
.empty__acts { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* ---------- 分页 ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 4px 0 8px; }
.pager__nums { display: flex; gap: 6px; }
.pager a, .pager span.pager__step, .pager__nums a, .pager__gap { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--pri); color: var(--pri-d); }
.pager a[aria-current] { border-color: var(--pri); background: var(--pri); color: #fff; font-weight: 600; }
.pager span[aria-disabled] { background: var(--fill); color: var(--ink-4); }
.pager__gap { min-width: 20px; padding: 0 2px; border-color: transparent; background: none; color: var(--ink-4); }
.pager__of { display: none; }
.pager__jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--ink-3); font-size: 13px; }
.pager__jump input { width: 56px; height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; background: #fff; text-align: center; -moz-appearance: textfield; }
.pager__jump input::-webkit-inner-spin-button, .pager__jump input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pager__jump input:focus { border-color: var(--pri); outline: 0; }
.pager__jump button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink-2); }
.pager__jump button:hover { border-color: var(--pri); color: var(--pri-d); }
.more { display: none; }

/* ---------- 广告位 ---------- */
.ad { margin-bottom: 16px; overflow: hidden; text-align: center; }
.cols__main .ad, .cols__side .ad { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.ft { margin-top: 24px; background: var(--foot); color: #c9cdd4; font-size: 13px; }
.ft__in { padding-top: 32px; padding-bottom: 28px; }
.ft__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.logo--ft { color: #fff; font-size: 18px; }
.logo--ft:hover { color: #fff; }
.logo--ft .logo__mk { width: 32px; height: 32px; border-radius: 5px; font-size: 17px; }
.ft__brand p { max-width: 380px; margin-top: 12px; color: #a9aeb8; line-height: 1.8; }
.ft__h { margin-bottom: 12px; color: #fff; font-size: 14px; font-weight: 600; }
.ft__links { display: flex; flex-wrap: wrap; gap: 8px 22px; line-height: 22px; }
.ft__links a, .ft__note a, .ft__copy a { color: #c9cdd4; }
.ft__links a:hover, .ft__note a:hover, .ft__copy a:hover { color: #fff; }
.ft__note { margin-top: 20px; color: #a9aeb8; font-size: 12px; line-height: 1.85; }
.ft__note b { margin-right: 8px; color: #fff; font-weight: 600; }
.ft__copy { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; color: #a9aeb8; font-size: 12px; }
.totop { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink-2); font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.totop.is-on { opacity: 1; visibility: visible; }
.totop:hover { border-color: var(--pri); color: var(--pri-d); }

/* ---------- 详情页：海报 + 信息表 ---------- */
.vinfo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 20px; }
.vinfo__pic { position: relative; align-self: start; width: 220px; overflow: hidden; border-radius: var(--r); background: #e9ebef; aspect-ratio: 2 / 3; }
.vinfo__pic img { width: 100%; height: 100%; object-fit: cover; }
.vinfo__pic .card__st { padding: 24px 10px 8px; font-size: 13px; }
.vinfo__bd { display: flex; flex-direction: column; min-width: 0; }
.vinfo__t { font-size: 24px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.vinfo__sub { margin-top: 4px; overflow: hidden; color: var(--ink-3); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.vtab { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin-top: 14px; border-top: 1px dashed var(--line); }
.vtab > div { display: flex; gap: 12px; min-width: 0; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 22px; }
.vtab > .vtab__w { grid-column: 1 / -1; }
.vtab dt { flex: none; width: 56px; color: var(--ink-3); }
.vtab dd { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; }
.vtab dd a:hover { color: var(--pri-d); text-decoration: underline; text-underline-offset: 3px; }
.vtab__ppl { display: flex; flex-wrap: wrap; gap: 0 14px; }
.vtab__ppl a { color: var(--ink); }
.vstate.is-on { color: var(--pri-ink); font-weight: 600; }
.vtab__score b { color: var(--pri-ink); font-size: 18px; font-weight: 700; line-height: 1; }
.vinfo__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.vinfo__jump { display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 0 6px; color: var(--ink-3); font-size: 13px; }

/* 剧情简介 */
.syn { padding: 14px 16px 16px; }
.syn__txt { display: -webkit-box; overflow: hidden; color: var(--ink-2); font-size: 14px; line-height: 1.85; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.syn--3 .syn__txt { -webkit-line-clamp: 3; }
.syn.is-open .syn__txt { display: block; overflow: visible; }
.syn__more { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; padding: 4px 0; border: 0; background: none; color: var(--pri-ink); font-size: 13px; }
.syn__more .ico { transition: transform .2s; }
.syn.is-open .syn__more .ico { transform: rotate(180deg); }

/* 一行信息（播放页简介）、演职员 */
.vfacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: 13px; }
.vfacts__score { color: var(--ink-3); }
.vfacts__score b { margin-right: 2px; color: var(--pri-ink); font-size: 18px; font-weight: 700; }
.vfacts__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vtag { padding: 0 8px; border-radius: 2px; background: var(--fill); color: var(--ink-2); font-size: 12px; line-height: 22px; }
a.vtag:hover { background: var(--pri-l); color: var(--pri-ink); }
.crew { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 22px; }
.crew__row { display: flex; gap: 12px; min-width: 0; }
.crew dt { flex: none; color: var(--ink-3); }
.crew dd { display: flex; flex-wrap: wrap; gap: 0 12px; min-width: 0; }
.crew dd a { color: var(--ink-2); }
.crew dd a:hover { color: var(--pri-d); }

/* ---------- 播放线路 / 选集 ---------- */
.eps-box__sort { margin-left: auto; height: 28px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink-2); font-size: 12px; }
.eps-box__sort:hover { border-color: var(--pri); color: var(--pri-d); }
.lines { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 0; }
.lines button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink-2); font-size: 13px; }
.lines button small { color: var(--ink-3); font-size: 12px; }
.lines button:hover { border-color: var(--pri); color: var(--pri-d); }
.lines [aria-selected="true"], .lines [aria-selected="true"]:hover { border-color: var(--pri); background: var(--pri-l); color: var(--pri-ink); font-weight: 600; }
.lines [aria-selected="true"] small { color: var(--pri-ink); font-weight: 400; }
.eps-pane { padding: 14px 16px 16px; }
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.eps--txt { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ep { display: block; height: 36px; padding: 0 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink-2); font-size: 13px; line-height: 34px; text-align: center; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ep:hover { border-color: var(--pri); color: var(--pri-d); }
.ep.is-seen { border-color: #ffc89f; background: var(--pri-l); color: var(--pri-ink); }
.ep[aria-current], .ep[aria-current]:hover { border-color: var(--pri); background: var(--pri); color: #fff; font-weight: 600; }
.eps.is-clip60 > li:nth-child(n+61) { display: none; }
.eps__more { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 38px; margin-top: 10px; border: 1px dashed var(--line); border-radius: 2px; background: var(--fill); color: var(--ink-2); font-size: 13px; }
.eps__more:hover { border-color: var(--pri); color: var(--pri-d); }
.eps:not(.is-clip60) + .eps__more { display: none; }
.srcs { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; }
.src { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2); font-size: 14px; }
.src .ico { color: var(--pri); font-size: 13px; }
.src:hover { border-color: var(--pri); color: var(--pri-d); }
.src[aria-current] { border-color: var(--pri); background: var(--pri); color: #fff; }
.src[aria-current] .ico { color: #fff; }

/* ---------- 播放页 ---------- */
.pl-top { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--gap); margin-bottom: 16px; }
.pl-box { min-width: 0; overflow: hidden; border-radius: var(--r); background: #111318; }
.screen { position: relative; width: 100%; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
@supports not (aspect-ratio: 1 / 1) { .screen { height: 0; padding-top: 56.25%; } }
/* MacPlayer 会按后台设置写死宽高，这里强制铺满 16:9 容器 */
.screen > *:not(script):not(style) { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; }
.screen .MacPlayer, .screen #playleft, .screen table, .screen td { width: 100% !important; height: 100% !important; min-height: 0 !important; }
.screen .MacPlayer { position: absolute !important; inset: 0 !important; }
.screen iframe, .screen video, .screen embed, .screen object { display: block; width: 100% !important; height: 100% !important; border: 0; }
.pl-bar { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 8px 16px; border-top: 1px solid #262a31; background: #1b1e24; }
.pl-bar__t { flex: 1; min-width: 0; }
.pl-t { overflow: hidden; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; }
.pl-t a { color: #fff; }
.pl-t a:hover { color: #ffb27a; }
.pl-t span { margin-left: 10px; color: #ffb27a; }
.pl-sub { margin-top: 1px; overflow: hidden; color: #a9aeb8; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.pl-go { display: flex; flex: none; gap: 8px; }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; padding: 0 14px; border: 1px solid #3c414b; border-radius: var(--r); color: #e5e6eb; font-size: 13px; white-space: nowrap; }
.pl-btn .ico { font-size: 15px; }
.pl-btn:hover { border-color: var(--pri); color: #fff; }
.pl-btn--pri { border-color: var(--pri); background: var(--pri); color: #fff; }
.pl-btn--pri:hover { background: var(--pri-d); }
.pl-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pl-side { position: relative; display: flex; flex-direction: column; min-height: 320px; }
.pl-list, .pl-scroll { position: absolute; left: 0; right: 0; top: 47px; bottom: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9cdd4 transparent; }
.pl-list { padding: 12px; }
.eps--side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.eps--side.eps--txt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-info { display: flex; gap: 12px; padding: 14px 14px 10px; }
.pl-info__pic { position: relative; flex: none; width: 96px; overflow: hidden; border-radius: 3px; background: #e9ebef; aspect-ratio: 2 / 3; }
.pl-info__pic img { width: 100%; height: 100%; object-fit: cover; }
.pl-info__dl { flex: 1; min-width: 0; }
.pl-info__dl div { display: flex; gap: 8px; font-size: 13px; line-height: 24px; }
.pl-info__dl dt { flex: none; color: var(--ink-3); }
.pl-info__dl dd { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crew--side { padding: 4px 14px 0; }
.crew--side .crew__row { flex-direction: column; gap: 0; }
.pl-info__acts { display: flex; gap: 8px; padding: 12px 14px 14px; }
.pl-about { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.pl-about .syn { padding: 0; }

/* ---------- 页面标题面板（排行榜、最近更新、专题、资讯、地图） ---------- */
.rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 16px; padding: 14px 16px; }
.rhead__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.rhead__t h1 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.rhead__des { flex-basis: 100%; color: var(--ink-3); font-size: 13px; }
.rhead__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.rhead__tabs a, .rhead__tabs button { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.rhead__tabs a:hover, .rhead__tabs button:hover { border-color: var(--pri); color: var(--pri-d); }
.rhead__tabs [aria-current], .rhead__tabs [aria-pressed="true"], .rhead__tabs [aria-current]:hover, .rhead__tabs [aria-pressed="true"]:hover { border-color: var(--pri); background: var(--pri); color: #fff; font-weight: 600; }
.cols > .rhead, .cols__main > .rhead { margin-bottom: 0; }

/* ---------- 排行榜：多榜并排 ---------- */
.boards__tabs { display: none; }
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rboard .bd > li { flex: none; }

/* ---------- 最近更新页 ---------- */
.uday__h th { height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fffaf5; color: var(--ink); font-size: 14px; font-weight: 700; text-align: left; }
.uday__h small { margin-left: 10px; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.uday + .uday .uday__h th { border-top: 1px solid var(--line); }
.utab--new tbody tr:last-child td { border-bottom: 0; }

/* ---------- 搜索页 ---------- */
.shead { padding: 16px; }
.shead__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.shead__line h1 { min-width: 0; font-size: 20px; font-weight: 700; line-height: 1.35; word-break: break-all; }
.sbox--lg { height: 44px; margin-top: 12px; }
.sbox--lg button { width: 104px; font-size: 16px; }
.shead__hot { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; line-height: 22px; }
.shead__hot span { color: var(--pri-ink); font-weight: 600; }
.shead__hot a { color: var(--ink-2); }
.shead__hot a:hover { color: var(--pri-d); }
.results > li + li { border-top: 1px solid var(--line-2); }
.res { display: flex; gap: 16px; padding: 16px; }
.res__pic { position: relative; flex: none; width: 116px; overflow: hidden; border-radius: var(--r); background: #e9ebef; aspect-ratio: 2 / 3; align-self: flex-start; }
.res__pic img { width: 100%; height: 100%; object-fit: cover; }
.res__bd { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.res__t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.res__t a { min-width: 0; overflow-wrap: anywhere; }
.res__t a:hover { color: var(--pri-d); }
.res__t em { padding: 0 8px; border-radius: 2px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-style: normal; font-weight: 400; line-height: 22px; }
.res__t em.is-on { background: var(--pri-l); color: var(--pri-ink); }
.res__dl { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 2px 28px; margin-top: 8px; font-size: 13px; line-height: 22px; }
.res__dl div { display: flex; gap: 8px; min-width: 0; }
.res__dl .res__w { grid-column: 1 / -1; }
.res__dl dt { flex: none; color: var(--ink-3); }
.res__dl dd { min-width: 0; overflow: hidden; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.res__d { display: -webkit-box; margin-top: 6px; overflow: hidden; color: var(--ink-3); font-size: 13px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.res__acts { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }

/* ---------- 专题 ---------- */
.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; padding: 16px; }
.tcard { display: flex; flex-direction: column; min-width: 0; }
.tcard__pic { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: #e9ebef; aspect-ratio: 16 / 9; }
.tcard__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.tcard:hover .tcard__pic img { transform: scale(1.04); }
.tcard__name { margin-top: 8px; overflow: hidden; font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tcard:hover .tcard__name { color: var(--pri-d); }
.tcard__sub { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--ink-3); font-size: 12px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thead { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; margin-bottom: 16px; padding: 20px; }
.thead__pic { position: relative; overflow: hidden; border-radius: var(--r); background: #e9ebef; aspect-ratio: 16 / 9; align-self: start; }
.thead__pic img { width: 100%; height: 100%; object-fit: cover; }
.thead__bd { min-width: 0; }
.thead .prose { margin-top: 12px; }
main > .panel + .panel { margin-top: 16px; }

/* ---------- 文章 ---------- */
.alist > li + li { border-top: 1px solid var(--line-2); }
.art { display: flex; gap: 16px; padding: 16px; }
.art__pic { flex: none; width: 180px; overflow: hidden; border-radius: var(--r); background: #e9ebef; aspect-ratio: 16 / 10; }
.art__pic img { width: 100%; height: 100%; object-fit: cover; }
.art__bd { flex: 1; min-width: 0; }
.art__t { font-size: 16px; font-weight: 600; line-height: 1.5; }
.art__t a:hover { color: var(--pri-d); }
.art__d { display: -webkit-box; margin-top: 6px; overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 1.75; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; color: var(--ink-3); font-size: 12px; }
.read { padding: 24px 28px 28px; }
.read__kick a { color: var(--pri-ink); font-size: 13px; font-weight: 600; }
.read h1 { margin-top: 6px; font-size: 24px; font-weight: 700; line-height: 1.4; }
.read__lede { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--pri); background: var(--fill); color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.read__tags { margin-top: 20px; color: var(--ink-3); font-size: 13px; }
.read__tags span { margin-right: 8px; color: var(--ink); font-weight: 600; }
.prose { color: var(--ink-2); font-size: 15px; line-height: 1.9; word-break: break-word; }
.read .prose { margin-top: 20px; }
.prose p + p, .prose p + img, .prose img + p { margin-top: 1em; }
.prose img { height: auto; margin: 1em auto; border-radius: var(--r); }
.prose a { color: var(--pri-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { margin: 1.4em 0 .6em; color: var(--ink); font-size: 18px; }

/* ---------- 网站地图 ---------- */
.maptree { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 32px; padding: 16px; }
.maptree h3 { font-size: 15px; font-weight: 700; }
.maptree h3 a:hover { color: var(--pri-d); }
.maplinks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; line-height: 22px; }
.panel > .maplinks { margin: 0; padding: 14px 16px 16px; }
.maplinks a { min-width: 0; max-width: 100%; color: var(--ink-2); overflow-wrap: anywhere; }   /* 采集来的超长英文片名会撑破手机屏 */
.maplinks a:hover { color: var(--pri-d); }
.maplinks--dense { gap: 4px 14px; }

/* ---------- 提示页（404 / msg / jump） ---------- */
.solo { margin-bottom: 16px; padding: 48px 24px; text-align: center; }
.solo h1 { font-size: 22px; font-weight: 700; line-height: 1.4; }
.solo__tx { max-width: 600px; margin: 10px auto 0; color: var(--ink-3); font-size: 14px; line-height: 1.8; }
.solo__tx b { color: var(--pri-ink); }
.solo .sbox { max-width: 520px; margin: 20px auto 0; text-align: left; }
.solo__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ================= 平板 ================= */
@media (max-width: 1120px) {
  .hd__find { margin-left: 0; }
  .focus { grid-template-columns: minmax(0, 1fr) 190px; }
  .utab .u-cast { width: 220px; }
}
@media (max-width: 1000px) {
  :root { --side: 280px; }
  .g6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .g6 > .card:nth-child(n+11) { display: none; }
  .lgrid > .card:nth-child(n+11) { display: flex; }
  .focus__tabs { display: none; }
  .focus { grid-template-columns: minmax(0, 1fr); }
}

/* ================= 手机（单栏） ================= */
@media (max-width: 860px) {
  .duo, .cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .duo { margin-bottom: 12px; }
  .cols__main, .cols__side { gap: 12px; }
  .g6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g6 > .card:nth-child(n+11) { display: flex; }
  .g6 > .card:nth-child(n+9) { display: none; }
  .lgrid > .card:nth-child(n+9) { display: flex; }
  .rank .bd > li { flex: none; }
  .focus__tabs { display: flex; }
  .pl-top { grid-template-columns: minmax(0, 1fr); }
  .pl-side--eps { display: none; }
  .pl-side { min-height: 0; }
  .pl-scroll { position: static; }
}
/* 播放页电脑端：只有一条线路时，播放器右边的「剧集列表」就是全部集数，下面那块选集和「选集」按钮不再重复 */
@media (min-width: 861px) {
  .eps-box--dup, .pl-btn.is-dup { display: none; }
}
@media (max-width: 767px) {
  body { font-size: 14px; }
  .wrap { padding: 0 12px; }
  main.wrap { padding-top: 12px; }
  .hd__row { gap: 10px; height: 60px; }
  .logo__mk { width: 36px; height: 36px; font-size: 20px; }
  .logo__name, .hotw, .tool__t, .hsub { display: none; }
  .logo--ft .logo__name { display: inline; }
  .logo--ft .logo__mk { width: 32px; height: 32px; font-size: 17px; }
  .hd__find { flex: 1; }
  .sbox { height: 40px; }
  .sbox input { padding-left: 32px; font-size: 15px; }
  .sbox__ico { left: 10px; }
  .sbox button { width: 60px; font-size: 14px; letter-spacing: 0; }
  .hd__tools { gap: 6px; }
  .tool { justify-content: center; width: 40px; height: 40px; padding: 0; }
  .tool .ico { font-size: 18px; }
  .tool--app, .tool--login { width: auto; padding: 0 10px; }
  .tool--app .tool__t, .tool--login .tool__t { display: inline; }
  .pop__panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .hnav__in { height: 42px; padding: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hnav__in::-webkit-scrollbar { display: none; }
  .hnav__in a { padding: 0 14px; }
  .hnav__in a:first-child { padding-left: 16px; }
  .hnav__m { display: flex !important; }

  .ph { gap: 10px; min-height: 44px; padding: 0 12px; }
  .ph h2, .ph h3 { font-size: 16px; }
  .ph__tags { display: none; }
  .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; padding: 12px; }
  .g6 > .card:nth-child(9) { display: flex; }
  /* 首页每个分类在手机上只排两行（6 张），整页不至于太长；其余的还在 HTML 里，"更多"进分类页 */
  .pg-home .g6 > .card:nth-child(n+7) { display: none; }
  .card__name { margin-top: 6px; font-size: 13px; }
  .card__st { padding: 16px 6px 4px; font-size: 12px; }

  /* 焦点图：海报 + 文字一行，下面一排圆点 */
  .focus { grid-template-columns: minmax(0, 1fr); }
  .fs { grid-template-columns: 112px minmax(0, 1fr); }
  .fs__pic { width: 112px; height: 168px; }
  .fs__info { padding: 12px 12px 12px 14px; }
  .fs__t { font-size: 17px; }
  .fs__meta { margin-top: 6px; gap: 4px; }
  .fs__meta span, .fs__meta em { padding: 0 6px; line-height: 20px; }
  .fs__meta span:nth-child(2) { display: none; }
  .fs__desc { margin-top: 8px; font-size: 12px; line-height: 1.65; }
  .fs__cr { display: none; }
  .fs__acts { padding-top: 10px; }
  .fs__acts .btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .fs__acts .btn--line { display: none; }
  .focus__tabs { flex-direction: row; justify-content: center; border-top: 1px solid var(--line); border-left: 0; background: #fff; }
  .ftab { flex: none; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; }
  .ftab__txt, .ftab__bar { display: none; }
  .ftab[aria-selected="true"]::before { display: none; }
  .ftab__no { width: 8px; height: 8px; border-radius: 50%; font-size: 0; }
  .ftab[aria-selected="true"] .ftab__no { width: 20px; border-radius: 4px; }

  .tl li { min-height: 40px; }
  .tl__type { width: 56px; }
  /* 手机只留 分类 / 片名 / 更新：时间、主演两列压成 0 宽（不用 display:none，免得按天分组那一行的 colspan 留出空列） */
  .utab .u-time, .utab .u-cast, .utab th.u-time, .utab th.u-cast, .utab td.u-time, .utab td.u-cast { width: 0; padding: 0 !important; border-left: 0; border-right: 0; font-size: 0; }
  .utab .u-type { width: 76px; }
  .utab .u-ep { width: 104px; }
  .utab th:first-child, .utab td:first-child { padding-left: 12px; }
  .utab th, .utab td { padding: 0 8px; }
  .utab th.u-type, .utab td.u-type { padding-left: 12px; }
  .utab td { height: 44px; }
  .bd > li > a { min-height: 40px; padding: 0 12px; }
  .bd__first > a { padding-top: 10px; }
  .crumb { margin-bottom: 4px; font-size: 12px; }
  .crumb::before { display: none; }
  .crumb a { display: inline-flex; align-items: center; min-height: 36px; }
  .eps-box__sort { height: 36px; padding: 0 14px; }

  /* 筛选：手机端收进「筛选」按钮，展开后每行左右滑 */
  .lf__head { position: relative; padding: 12px 12px 10px; padding-right: 92px; }
  .lf__head h1 { font-size: 18px; }
  .lf__des { display: none; }
  .lf__btn { position: absolute; right: 12px; top: 50%; display: inline-flex; align-items: center; gap: 4px; height: 40px; margin-top: -20px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); font-size: 13px; cursor: pointer; }
  .lf__btn b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pri); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
  .lf__btn .ico { transition: transform .2s; }
  .lf__sw:checked ~ .lf__head .lf__btn .ico, .lf__head:has(~ .lf__sw:checked) .lf__btn .ico { transform: rotate(180deg); }
  .lf__sw:focus-visible + .lf__rows { outline: 2px solid var(--pri-d); }
  .lf__rows { display: none; padding: 4px 0; }
  .lf__sw:checked + .lf__rows { display: block; }
  .lf__row--sub { display: flex; }
  .lf__row { align-items: center; padding: 3px 0 3px 12px; }
  .lf__lb { width: 34px; line-height: 40px; }
  .lf__opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 12px; }
  .lf__opts::-webkit-scrollbar { display: none; }
  .lf__opts a { line-height: 40px; }
  .lf__picked { padding: 8px 0 8px 12px; }
  .ph--tabs { padding-left: 0; }
  .tabs a, .tabs button { padding: 0 10px; font-size: 14px; }
  .tabs [aria-current]::after, .tabs [aria-pressed="true"]::after, .tabs [aria-selected="true"]::after { left: 10px; right: 10px; }

  .pager--more { display: none; }
  .pager__edge, .pager__jump { display: none !important; }
  .pager__nums { display: none; }
  .pager__of { display: inline-flex; align-items: center; height: 40px; padding: 0 10px; color: var(--ink-3); font-size: 13px; }
  .pager a, .pager span.pager__step { height: 40px; padding: 0 16px; }
  .more { display: flex; align-items: center; justify-content: center; height: 44px; margin: 4px 0; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink-2); font-size: 14px; }
  .more:hover { color: var(--pri-d); }
  .more--end { border: 0; background: none; color: var(--ink-3); font-size: 13px; }

  /* 详情页 */
  .vinfo { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .vinfo__pic { width: 112px; }
  .vinfo__pic .card__st { padding: 16px 6px 4px; font-size: 12px; }
  .vinfo__t { font-size: 18px; }
  .vinfo__sub { font-size: 12px; }
  .vtab { grid-template-columns: minmax(0, 1fr); margin-top: 6px; border-top: 0; }
  .vtab > div { gap: 8px; padding: 2px 0; border-bottom: 0; font-size: 12px; line-height: 20px; }
  .vtab dt { width: 50px; }
  .vtab__ppl { max-height: 40px; overflow: hidden; gap: 0 10px; }
  .vtab__score b { font-size: 15px; }
  .vinfo__acts { gap: 8px; padding-top: 10px; }
  .vinfo__acts .btn--lg { height: 40px; padding: 0 14px; font-size: 14px; }
  .vinfo__jump { display: none; }
  .syn { padding: 12px; }
  .syn__txt { font-size: 13px; line-height: 1.8; }
  .lines { flex-wrap: nowrap; gap: 6px; padding: 12px 12px 0; overflow-x: auto; scrollbar-width: none; }
  .lines::-webkit-scrollbar { display: none; }
  .lines button { flex: none; height: 40px; }
  .eps-pane { padding: 12px; }
  .eps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .eps--txt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep { height: 40px; line-height: 38px; }
  .eps.is-clip30 > li:nth-child(n+31) { display: none; }
  .eps.is-clip30 + .eps__more { display: flex; }
  .srcs { gap: 8px; padding: 12px; }
  .src { height: 40px; padding: 0 14px; }

  /* 播放页：播放器贴边，按钮条平分 */
  .pg-play .crumb { display: none; }
  .pg-play main.wrap { padding-top: 0; }
  .pl-top { gap: 12px; margin-bottom: 12px; }
  .pl-box { margin: 0 -12px; border-radius: 0; }
  .pl-bar { flex-wrap: wrap; gap: 10px; padding: 10px 12px 12px; }
  .pl-bar__t { flex-basis: 100%; }
  .pl-go { flex: 1; }
  .pl-btn { flex: 1; height: 40px; padding: 0 8px; }
  .pl-about { padding: 12px; }

  /* 标题面板、排行榜、搜索、专题、文章 */
  .rhead { gap: 10px; margin-bottom: 12px; padding: 12px; }
  .rhead__t h1 { font-size: 18px; }
  .rhead__t .lf__n { flex-basis: 100%; }
  .rhead__tabs { flex-wrap: nowrap; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .rhead__tabs::-webkit-scrollbar { display: none; }
  .rhead__tabs a, .rhead__tabs button { flex: none; height: 40px; padding: 0 14px; }
  .pg-rank .rhead__tabs a { flex: 1; justify-content: center; }
  .boards__tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 0; margin-bottom: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; scrollbar-width: none; }
  .boards__tabs::-webkit-scrollbar { display: none; }
  .boards__tabs button { position: relative; flex: 1 0 auto; height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
  .boards__tabs [aria-selected="true"] { color: var(--pri-ink); font-weight: 600; }
  .boards__tabs [aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--pri); }
  .rgrid { grid-template-columns: minmax(0, 1fr); }
  .rboard { display: none; }
  .rboard.is-active { display: flex; }
  .uday__h th { padding: 0 12px; }
  .shead { padding: 12px; }
  .shead__line h1 { font-size: 18px; }
  .sbox--lg { height: 42px; }
  .sbox--lg button { width: 68px; font-size: 15px; }
  .shead__hot { gap: 0 14px; line-height: 40px; }
  .res { gap: 12px; padding: 12px; }
  .res__pic { width: 92px; }
  .res__t { font-size: 15px; }
  .res__dl { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 4px; font-size: 12px; line-height: 20px; }
  .res__dl div:nth-child(n+4):not(.res__w) { display: none; }
  .res__d { display: none; }
  .res__acts .btn--sm { height: 40px; padding: 0 14px; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; padding: 12px; }
  .tcard__name { font-size: 14px; }
  .thead { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; padding: 12px; }
  main > .panel + .panel { margin-top: 12px; }
  .art { gap: 12px; padding: 12px; }
  .art__pic { width: 112px; }
  .art__t { font-size: 15px; }
  .art__d { display: none; }
  .read { padding: 16px 14px 20px; }
  .read h1 { font-size: 20px; }
  .prose { font-size: 15px; }
  .maptree { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .maplinks a { display: inline-flex; align-items: center; min-height: 40px; }
  .solo { margin-bottom: 12px; padding: 32px 16px; }
  .solo h1 { font-size: 18px; }

  .ft { margin-top: 16px; }
  .ft__in { padding-top: 24px; padding-bottom: 24px; }
  .ft__cols { grid-template-columns: 1fr; gap: 20px; }
  .ft__links a { display: inline-flex; align-items: center; min-height: 40px; }
  .totop { right: 12px; bottom: 16px; }
}

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