/* =====================================================================
   阿拉伯语站第二版前台样式（由 prototype/ar2/assets/ar.css 定稿而来）
   - 风格：深色流媒体 + 夜晚影院。暖黑底，橙红渐变（沙漠落日：番红花橙 → 宝石红）做强调色
   - 版式：透明页眉叠在整屏大图上；横向滚动的海报排；片名叠在海报底部；前十用大号描边的 ١٢٣
   - 中东元素：八角星（خاتم）做 Logo 和标题记号；极淡的木格窗（مشربية）纹理只出现在大图边缘和底栏
   - 字体：Cairo（标题，粗）+ IBM Plex Sans Arabic（正文）
   - 方向相关的属性一律用逻辑属性，<html dir="rtl"> 时自动镜像
   ===================================================================== */
:root {
  --bg: #0b090a;
  --bg-2: #131012;
  --card: #1b1719;
  --card-2: #252022;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f6f0ea;
  --text-2: #bdb2ab;
  --text-3: #7f7570;
  --accent: #ff4b5c;
  --accent-2: #ffad42;
  --grad-a: linear-gradient(120deg, #ffad42 0%, #ff6a3d 45%, #ff3b5c 100%);
  --grad: linear-gradient(160deg, #2a1d22, #141013 70%);
  --r: 14px;
  --top: 72px;
  --star: polygon(50% 0, 64% 14%, 85% 15%, 86% 36%, 100% 50%, 86% 64%, 85% 85%, 64% 86%, 50% 100%, 36% 86%, 15% 85%, 14% 64%, 0 50%, 14% 36%, 15% 15%, 36% 14%);
  /* 木格窗纹理：八角星 + 十字，极淡 */
  --mash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.05' stroke-width='1.2'%3E%3Cpath d='M28 8l6 6h8v8l6 6-6 6v8h-8l-6 6-6-6h-8v-8l-6-6 6-6v-8h8z'/%3E%3Cpath d='M0 28h8M48 28h8M28 0v8M28 48v8'/%3E%3C/g%3E%3C/svg%3E");
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
  --font-h: "Cairo", "IBM Plex Sans Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.75 var(--font); overflow-x: hidden; }
/* 阿拉伯字母是连写的：任何 letter-spacing 都会把字母拆开 */
body * { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-h); font-weight: 800; line-height: 1.35; margin: 0; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }
[dir="rtl"] .i.flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
[dir="rtl"] .en[dir="ltr"] { text-align: right; }

/* ---------- 页眉：透明叠在大图上，滚动后变实色 ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: linear-gradient(180deg, rgba(11, 9, 10, .85), transparent); transition: background .3s; }
.hdr.solid { background: rgba(11, 9, 10, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.hdr-in { height: var(--top); display: flex; align-items: center; gap: 26px; max-width: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.logo .mk svg { width: 36px; height: 36px; display: block; }
.logo .wd { display: flex; flex-direction: column; line-height: 1; }
.logo .wd b { font: 900 28px/1 var(--font-h); color: var(--text); }
.logo .wd small { font: 700 9px/1 system-ui, sans-serif; color: var(--accent-2); margin-top: 4px; direction: ltr; text-align: center; }
.mnav { display: flex; align-items: center; gap: 4px; }
.mnav > a, .mnav .dd > button { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--text-2); background: none; border: 0; cursor: pointer; white-space: nowrap; border-radius: 10px; }
.mnav > a:hover, .mnav .dd > button:hover { color: var(--text); }
.mnav > a.on, .mnav .dd > button.on { color: var(--text); font-weight: 700; }
.mnav > a.on::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--grad-a); }
.mnav .dd { position: relative; }
.mnav .dd .i { width: 15px; height: 15px; opacity: .7; }
.mnav .mega, .mnav .menu { position: absolute; top: calc(100% + 12px); inset-inline-start: 0; background: rgba(27, 23, 25, .98); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); padding: 20px; display: none; z-index: 5; }
.mnav .dd::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 14px; }
.mnav .dd:hover .mega, .mnav .dd:focus-within .mega, .mnav .dd:hover .menu, .mnav .dd:focus-within .menu { display: grid; }
.mnav .mega { width: 580px; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.mnav .menu { min-width: 210px; padding: 8px; }
.mnav .menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); }
.mnav .menu a:hover { background: var(--card-2); color: var(--text); }
.mnav .menu .i { color: var(--accent-2); }
h5 { font: 800 13px var(--font-h); color: var(--text-3); margin-bottom: 8px; }
.mg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; }
.mega > div:last-child .mg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mg a { padding: 5px 8px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.mg a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.search { position: relative; flex: 1; max-width: 320px; margin-inline-start: auto; }
.search .box { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.search .box:focus-within { border-color: var(--accent); background: rgba(255, 255, 255, .1); }
.search .box .i { color: var(--text-3); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.suggest { position: absolute; inset-inline: 0; top: 50px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .6); padding: 6px; display: none; z-index: 50; }
.suggest.show { display: block; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.suggest a:hover { background: var(--card-2); }
.suggest .pt { width: 36px; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; flex: none; background: var(--card-2); }
.suggest b { display: block; font-weight: 700; }
.suggest small { color: var(--text-3); }
.suggest .all { justify-content: center; color: var(--accent-2); font-size: 14px; }
.acts { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); cursor: pointer; color: var(--text); flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .14); }
.menu-btn, .m-search { display: none !important; }

/* ---------- 按钮、标签 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 12px; font: 700 15px var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--grad-a); color: #fff; box-shadow: 0 12px 30px rgba(255, 75, 92, .3); }
.btn-main:hover { filter: brightness(1.08); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-line, .btn-ghost, .btn-soft { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-line:hover, .btn-ghost:hover, .btn-soft:hover { background: var(--card-2); }
.btn-line.on, .btn-ghost.on, .btn-soft.on, .btn-glass.on { color: var(--accent-2); border-color: var(--accent-2); }
.btn-ic { width: 50px; padding: 0; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; }
.b-q { background: rgba(255, 255, 255, .92); color: #111; }
.b-sub { background: rgba(56, 189, 248, .2); color: #7dd3fc; }
.b-dub { background: rgba(255, 173, 66, .2); color: #ffc46b; }
.b-ar { background: rgba(52, 211, 153, .2); color: #6ee7b7; }
.b-ep { background: var(--accent); color: #fff; }
.b-age { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.b-new { background: var(--grad-a); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: var(--text); border-color: var(--text); color: #111; font-weight: 700; }
.chip .i { width: 15px; height: 15px; color: var(--accent); }

/* ---------- 区块标题：八角星记号 + 粗体标题 ---------- */
.sec { margin-top: 48px; }
.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-h h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.sec-h h2::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--grad-a); clip-path: var(--star); }
.sec-h .sub { color: var(--text-3); font-size: 13px; }
.sec-h .nav-btns { display: flex; gap: 6px; margin-inline-start: auto; }
.sec-h .nav-btns button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.sec-h .nav-btns button:hover { color: var(--text); background: var(--card-2); }
.sec-h .nav-btns .i { width: 16px; height: 16px; }
.sec-h .more { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.sec-h > .more { margin-inline-start: auto; }
.sec-h .nav-btns + .more { margin-inline-start: 6px; }
.sec-h .more:hover { color: var(--accent-2); }
.sec-h .more .i { width: 16px; height: 16px; }
.stabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.stabs button { height: 32px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--text-3); cursor: pointer; font-weight: 700; font-size: 13px; }
.stabs button.on { background: var(--text); color: #111; }

/* ---------- 海报卡片：圆角，片名叠在底部 ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 10px; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.grid.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pc { display: block; min-width: 0; }
.pc .ps { position: relative; aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; background: var(--card); transition: transform .3s, box-shadow .3s; box-shadow: 0 0 0 1px var(--line); }
.pc:hover .ps { transform: scale(1.04); box-shadow: 0 0 0 2px var(--accent), 0 24px 40px rgba(0, 0, 0, .6); z-index: 2; }
.pc .ps img { width: 100%; height: 100%; object-fit: cover; }
.pc .tl { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 1; }
.pc .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 12px 12px; background: linear-gradient(transparent, rgba(11, 9, 10, .7) 35%, rgba(11, 9, 10, .96)); }
.pc .bl { display: flex; gap: 4px; margin-bottom: 4px; }
.pc .t { font: 800 16px/1.4 var(--font-h); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc .s { display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; }
.pc .s > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.pc .s .rt { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-2); font-weight: 700; flex: none; }
.pc .s .rt .i { width: 12px; height: 12px; }
.pc .hover-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; padding-bottom: 50px; }
.pc .hover-play span { width: 52px; height: 52px; border-radius: 50%; background: var(--grad-a); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(255, 75, 92, .45); }
.pc .hover-play .i { width: 20px; height: 20px; margin-left: 3px; }
.pc:hover .hover-play { opacity: 1; }
/* 没有海报时的占位：暖色渐变 + 纹理 + 图标 */
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 14px; background: var(--mash), radial-gradient(circle at 70% 20%, rgba(255, 106, 61, .28), transparent 60%), var(--grad); font: 800 18px/1.4 var(--font-h); color: var(--text); }
.ph .i { width: 30px; height: 30px; color: var(--accent-2); opacity: .9; }
.ph small { font: 12px var(--font); color: var(--text-3); direction: ltr; }
.pc .ph { padding-bottom: 80px; }

/* ---------- 首页：整屏大图舞台 ---------- */
.stage { position: relative; margin-top: calc(-1 * var(--top)); height: min(82vh, 760px); min-height: 560px; overflow: hidden; background: var(--bg-2); }
.stage .sl { position: absolute; inset: 0; opacity: 0; transition: opacity .9s; pointer-events: none; }
.stage .sl.on { opacity: 1; pointer-events: auto; }
.stage .bg { position: absolute; inset: -40px; background: var(--grad) center / cover; filter: blur(30px) saturate(1.3) brightness(.65); transform: scale(1.1); }
.stage .bg:not([style]) { background: var(--mash), radial-gradient(800px 500px at 30% 40%, rgba(255, 106, 61, .25), transparent 70%), var(--grad); filter: none; }
.stage .sl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(11, 9, 10, .92) 10%, rgba(11, 9, 10, .4) 55%, rgba(11, 9, 10, .1)), linear-gradient(transparent 55%, var(--bg)); }
[dir="ltr"] .stage .sl::after { background: linear-gradient(to right, rgba(11, 9, 10, .92) 10%, rgba(11, 9, 10, .4) 55%, rgba(11, 9, 10, .1)), linear-gradient(transparent 55%, var(--bg)); }
.st-in { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: center; padding-top: var(--top); padding-bottom: 110px; }
.st-txt { max-width: 680px; }
.st-txt .kick { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; color: #fff; }
.st-txt .kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 75, 92, .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 75, 92, 0); } }
.st-txt h2 { font-size: 64px; font-weight: 900; line-height: 1.2; margin-top: 16px; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.st-txt .en { color: var(--text-2); font-size: 17px; margin-top: 4px; }
.st-txt .meta { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; margin: 16px 0; color: var(--text-2); font-size: 14px; }
.st-txt .meta .rt { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-2); font-weight: 700; }
.st-txt .meta .rt .i { width: 16px; height: 16px; }
.st-txt .ov { color: #e4dbd5; font-size: 16px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-txt .acts { margin-top: 26px; flex-wrap: wrap; gap: 10px; }
.st-pos { display: block; aspect-ratio: 2/3; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12); transform: rotate(-2deg); background: var(--card); }
[dir="rtl"] .st-pos { transform: rotate(2deg); }
.st-pos img { width: 100%; height: 100%; object-fit: cover; }
.st-pos .ph { font-size: 24px; }
/* 底部片名导航：编号 + 片名 + 自动播放进度条 */
.st-nav { position: absolute; inset-inline: 0; bottom: 26px; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.st-nav button { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 0; border: 0; background: none; color: var(--text-3); cursor: pointer; text-align: start; }
.st-nav .no { font: 900 22px/1 var(--font-h); }
.st-nav .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-nav .bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 8px; }
.st-nav .bar i { display: block; height: 100%; width: 0; background: var(--grad-a); }
.st-nav button.on { color: #fff; }
.st-nav button.on .bar i { width: 100%; transition: width 8s linear; }
.st-nav button:hover { color: var(--text); }

/* 分类胶囊 */
.cat-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; position: relative; z-index: 2; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-pill { position: relative; display: flex; align-items: center; gap: 12px; height: 78px; padding: 0 16px; border-radius: 16px; overflow: hidden; color: #fff; transition: transform .2s; }
.cat-pill::after { content: ""; position: absolute; inset-block: -20px; inset-inline-end: -30px; width: 110px; background: rgba(255, 255, 255, .9); clip-path: var(--star); opacity: .1; }
.cat-pill:hover { transform: translateY(-3px); }
.cat-pill .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 0, 0, .22); flex: none; }
.cat-pill b { display: block; font: 800 16px/1.3 var(--font-h); }
.cat-pill small { display: block; font-size: 12px; opacity: .8; white-space: nowrap; }
.c-emerald { background: linear-gradient(120deg, #0f7a5c, #0b3b30); }
.c-clay { background: linear-gradient(120deg, #d9483b, #6b1c1f); }
.c-lapis { background: linear-gradient(120deg, #3a4fc9, #1a1f5c); }
.c-gold { background: linear-gradient(120deg, #c98318, #5c3507); }
.c-turq { background: linear-gradient(120deg, #138a99, #0b3a44); }
.c-rose { background: linear-gradient(120deg, #c2366f, #521230); }

/* 今晚的新集：票根式横向卡片 */
.row.tickets { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
.tk { position: relative; display: flex; align-items: center; gap: 14px; height: 84px; padding: 0 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.tk::before, .tk::after { content: ""; position: absolute; inset-inline-start: 84px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); }
.tk::before { top: -8px; }
.tk::after { bottom: -8px; }
.tk .stub { width: 62px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding-inline-end: 14px; border-inline-end: 2px dashed var(--line-2); }
.tk .stub small { font-size: 11px; color: var(--text-3); }
.tk .stub b { font: 900 21px/1.2 var(--font-h); color: var(--accent-2); white-space: nowrap; }
.tk .tb { min-width: 0; flex: 1; }
.tk b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk small { color: var(--text-3); font-size: 12px; }
.tk .tp { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--text); flex: none; }
.tk .tp .i { width: 14px; height: 14px; }
.tk:hover { border-color: var(--line-2); background: var(--card-2); }
.tk:hover .tp { background: var(--grad-a); }

/* 前十：大号描边数字 + 海报 */
.row.top10 { grid-auto-columns: calc((100% - 4 * 16px) / 5); }
.t10 { position: relative; display: flex; align-items: flex-end; }
.t10 .n { flex: 0 0 40%; text-align: center; font: 900 150px/.8 var(--font-h); color: var(--bg); -webkit-text-stroke: 3px rgba(255, 255, 255, .35); position: relative; z-index: 0; padding-bottom: 6px; }
.t10:hover .n { -webkit-text-stroke-color: var(--accent-2); }
.t10 .ps { position: relative; z-index: 1; flex: 0 0 66%; margin-inline-start: -6%; min-width: 0; aspect-ratio: 2/3; border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 30px rgba(0, 0, 0, .5); transition: transform .3s; }
.t10:hover .ps { transform: translateY(-4px); }
.t10 .ps img { width: 100%; height: 100%; object-fit: cover; }
.t10 .ph { font-size: 15px; }

/* 专题文字列表 + 介绍并排 */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.clist { display: grid; gap: 10px; }
.clist a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.clist a:hover { background: var(--card-2); }
.clist a > .i { color: var(--text-3); margin-inline-start: auto; }
.clist .ix { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font: 900 20px var(--font-h); color: #fff; background: var(--grad-a); clip-path: var(--star); }
.clist b { display: block; font-weight: 700; }
.clist small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-3); font-size: 12px; }

/* 侧栏面板（播放页） */
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.panel h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.panel h3 .i { color: var(--accent); }
.rank a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.rank a:hover { background: var(--card-2); }
.rank .no { width: 24px; font: 900 20px/1 var(--font-h); color: var(--text-3); text-align: center; flex: none; }
.rank a:nth-of-type(-n+3) .no { color: var(--accent-2); }
.rank .pt { width: 44px; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; flex: none; background: var(--card-2); }
.rank .pt img { width: 100%; height: 100%; object-fit: cover; }
.rank b { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.rank small { color: var(--text-3); font-size: 12px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); margin-bottom: 8px; }
.seg button { flex: 1; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; font-weight: 700; }
.seg button.on { background: var(--text); color: #111; }

/* 专题卡片 */
.colls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.coll { position: relative; display: block; padding: 20px; border-radius: 18px; background: var(--mash), var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
.coll:hover { border-color: var(--accent); }
.coll .fan { display: flex; height: 120px; margin-bottom: 16px; }
.coll .fan div { width: 80px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--card-2); box-shadow: 0 12px 24px rgba(0, 0, 0, .5), 0 0 0 1px var(--line); }
.coll .fan div + div { margin-inline-start: -26px; }
.coll .fan div:nth-child(1) { transform: rotate(4deg); }
.coll .fan div:nth-child(2) { transform: translateY(-6px); z-index: 1; }
.coll .fan div:nth-child(3) { transform: rotate(-4deg); }
.coll .fan img { width: 100%; height: 100%; object-fit: cover; }
.coll h3 { font-size: 19px; }
.coll p { color: var(--text-2); font-size: 13px; margin: 6px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coll small { color: var(--accent-2); font-size: 12px; font-weight: 700; }

/* SEO 文字 */
.about { margin-top: 48px; padding: 26px 28px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.split .about { margin-top: 0; }
.about h2 { color: var(--text); font-size: 20px; margin-bottom: 8px; }
.about h3 { color: var(--text); font-size: 17px; margin: 16px 0 4px; }
.about p { margin: 0 0 8px; }
.about a { color: var(--accent-2); }

/* ---------- 列表页 ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-3); margin: 20px 0 10px; }
.crumb a:hover { color: var(--text); }
.crumb .sep { opacity: .5; }
.ph1 { position: relative; padding: 30px 32px; border-radius: 20px; overflow: hidden; background: var(--mash), radial-gradient(600px 240px at 0% 0%, rgba(255, 75, 92, .22), transparent 70%), radial-gradient(500px 200px at 100% 100%, rgba(255, 173, 66, .14), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.ph1 h1 { font-size: 36px; font-weight: 900; }
.ph1 p { color: var(--text-2); margin: 4px 0 0; max-width: 760px; }
.filters { margin: 18px 0; display: grid; gap: 10px; }
.filters .fr { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filters .fr b { width: 70px; flex: none; color: var(--text-3); font-size: 13px; }
.filters .chip { height: 32px; font-size: 13px; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--text-3); font-size: 14px; }
.toolbar select { margin-inline-start: auto; height: 38px; border-radius: 10px; padding: 0 14px; background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-weight: 700; }
.pager a:hover { color: var(--text); background: var(--card-2); }
.pager .on { background: var(--grad-a); color: #fff; border-color: transparent; }

/* ---------- 详情页：模糊大背景 + 海报 ---------- */
.dhero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--top)); padding-top: var(--top); }
.dhero .bg { position: absolute; inset: -40px -40px auto; height: 620px; background-size: cover; background-position: center 20%; filter: blur(28px) saturate(1.3) brightness(.55); transform: scale(1.1); }
.dhero:not(:has(.bg)) .shade, .dhero .bg:not([style*="url"]) { background: var(--mash), radial-gradient(800px 400px at 70% 30%, rgba(255, 106, 61, .25), transparent 70%), var(--grad) !important; filter: none; transform: none; }
.dhero .shade { position: absolute; inset: 0 0 auto; height: 621px; background: linear-gradient(180deg, rgba(11, 9, 10, .2), var(--bg) 92%); }
.dhero .in { position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; padding-top: 36px; }
.dhero .poster { align-self: start; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .12); }
.dhero .poster img, .dhero .poster .ph { aspect-ratio: 2/3; width: 100%; height: auto; object-fit: cover; }
.dhero .poster .ph { font-size: 24px; }
.dhero .crumb { margin-top: 0; }
.dhero h1 { font-size: 48px; font-weight: 900; line-height: 1.25; color: #fff; }
.dhero .en { color: var(--text-2); font-size: 17px; margin-top: 2px; }
.dhero .tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.dhero .tags .chip { background: rgba(255, 255, 255, .08); }
.dhero .score { display: flex; gap: 0; flex-wrap: wrap; margin: 4px 0 6px; }
.dhero .score div { display: flex; flex-direction: column; padding: 0 22px; border-inline-start: 1px solid var(--line-2); }
.dhero .score div:first-child { padding-inline-start: 0; border: 0; }
.dhero .score b { font: 900 24px var(--font-h); }
.dhero .score b.y { color: var(--accent-2); }
.dhero .score small { color: var(--text-3); font-size: 12px; }
.dhero .acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.dhero .ov { color: #e4dbd5; max-width: 820px; font-size: 16px; }
.dhero .ov.empty { color: var(--text-3); }
.facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; font-size: 14px; margin: 20px 0 0; max-width: 820px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; }
.facts dt { color: var(--text-3); }
.facts dd { color: var(--text-2); }
.facts dd a { color: var(--text); }
.facts dd a:hover { color: var(--accent-2); }
.tabs { display: flex; gap: 26px; margin-bottom: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { position: relative; height: 46px; padding: 0; border: 0; background: none; color: var(--text-3); cursor: pointer; white-space: nowrap; font: 800 17px var(--font-h); display: inline-flex; align-items: center; }
.tabs button.on, .tabs a.on { color: var(--text); }
.tabs button.on::after, .tabs a.on::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--grad-a); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 18px; }
.people a { text-align: center; font-size: 13px; font-weight: 700; }
.people .av { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; background: var(--grad); border: 2px solid var(--line-2); display: grid; place-items: center; font: 900 30px var(--font-h); color: var(--accent-2); }
.people a:hover .av { border-color: var(--accent); }
.people small { display: block; color: var(--text-3); font-weight: 400; }

/* 剧集：季 + 集 */
.seasons { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.eplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ep { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ep:hover { background: var(--card-2); }
.ep .th { width: 64px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--grad); border: 1px solid var(--line-2); font: 900 18px var(--font-h); color: var(--text); }
.ep b { font-size: 14px; display: block; }
.ep small { color: var(--text-3); font-size: 12px; }
.ep.soon { opacity: .4; pointer-events: none; }
.ep.cur { border-color: var(--accent); background: rgba(255, 75, 92, .08); }
.ep.cur .th { background: var(--grad-a); border-color: transparent; color: #fff; }
.epnums { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.epnums a { height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.epnums a:hover { background: var(--grad-a); color: #fff; border-color: transparent; }
.next-air { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: rgba(255, 173, 66, .08); border: 1px solid rgba(255, 173, 66, .3); margin-bottom: 16px; }
.next-air .i { color: var(--accent-2); }

/* ---------- 播放页 ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; padding-top: 10px; }
.player { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); }
.player .cover { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(2px) brightness(.6); }
.player .cover[style*="--grad"] { background: var(--mash), var(--grad) !important; filter: none; }
.player .cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent, rgba(0, 0, 0, .7)); }
.player .big { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; border: 0; background: none; cursor: pointer; color: #fff; }
.player .big span { width: 92px; height: 92px; border-radius: 50%; background: var(--grad-a); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 75, 92, .18), 0 20px 50px rgba(255, 75, 92, .4); transition: transform .2s; }
.player .big:hover span { transform: scale(1.06); }
.player .big .i { width: 34px; height: 34px; margin-left: 5px; }
.player .big small { position: absolute; bottom: 20px; inset-inline: 0; text-align: center; font-size: 14px; color: var(--text-2); }
.player .msg { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; color: var(--text-2); text-align: center; padding: 20px; }
.lights-off .hdr, .lights-off .foot, .lights-off .tabbar, .lights-off .watch-wrap > .crumb, .lights-off .wside, .lights-off .wtitle, .lights-off .servers, .lights-off .ctrl, .lights-off .watch-wrap ~ *, .lights-off .ad-slot { opacity: .05; transition: opacity .3s; }
.lights-off .ctrl #lights { opacity: 1; }
.lights-off .ctrl { opacity: 1; }
.lights-off .ctrl > *:not(#lights) { opacity: .1; }
.ctrl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ctrl .sp { flex: 1; }
.servers { margin-top: 14px; display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.servers .sr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.servers .sr > b { width: 80px; flex: none; font-size: 14px; color: var(--text-2); }
.servers button { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.servers button .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.servers button:hover { color: var(--text); }
.servers button.on { background: var(--grad-a); color: #fff; border-color: transparent; font-weight: 700; }
.servers button.on .dot { background: #fff; }
.servers button.miss { opacity: .45; text-decoration: line-through; }
.servers button.miss .dot { background: var(--text-3); }
.tip { margin-top: 10px; font-size: 13px; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.wtitle { margin-top: 22px; }
.wtitle h1 { font-size: 30px; }
.wtitle .en { color: var(--text-3); }
.wside .panel + .panel { margin-top: 16px; }
.wside .eplist { grid-template-columns: 1fr; max-height: 560px; overflow-y: auto; padding-inline-end: 4px; }

/* 时间表 */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 22px 0; }
.days button { padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text-3); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0; }
.days button b { font: 900 24px var(--font-h); color: var(--text); }
.days button small { font-size: 12px; }
.days button.on { background: var(--grad-a); border-color: transparent; color: rgba(255, 255, 255, .85); }
.days button.on b { color: #fff; }
.slot { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.slot time { font: 900 22px var(--font-h); color: var(--accent-2); direction: ltr; text-align: end; }
.eps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ec { display: flex; gap: 14px; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ec:hover { background: var(--card-2); }
.ec .pt { width: 62px; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; flex: none; background: var(--mash), var(--grad); }
.ec .pt img { width: 100%; height: 100%; object-fit: cover; }
.ec .b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ec b { font: 800 16px/1.4 var(--font-h); }
.ec .en { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec .tg { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; }
.ec time { color: var(--accent-2); font-size: 12px; }

/* 类型总览 */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.cats a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 92px; padding: 14px 16px; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); font: 800 18px var(--font-h); }
.cats a::after { content: ""; position: absolute; top: -26px; inset-inline-end: -26px; width: 80px; height: 80px; background: var(--grad-a); clip-path: var(--star); opacity: .18; transition: opacity .2s; }
.cats a:hover { border-color: var(--line-2); background: var(--card-2); }
.cats a:hover::after { opacity: .5; }
.cats a small { font: 12px var(--font); color: var(--text-3); }

/* 搜索、空状态、404 */
.big-search { margin: 22px 0 8px; }
.big-search .box { height: 58px; font-size: 17px; border-radius: 14px; }
.hot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-state .i { width: 56px; height: 56px; color: var(--text-3); margin: 0 auto 12px; }
.nf { text-align: center; padding: 60px 20px 24px; }
.nf .code { font: 900 160px/1 var(--font-h); background: var(--grad-a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 32px; margin: 6px 0 8px; }
.nf p { color: var(--text-2); max-width: 520px; margin: 0 auto 22px; }

/* ---------- 底栏 ---------- */
.foot { margin-top: 80px; background: var(--mash), var(--bg-2); border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.foot .wrap { padding-top: 44px; padding-bottom: 120px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot p { margin: 14px 0 0; }
.foot h4 { color: var(--text); font-size: 16px; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a:hover { color: var(--text); }
.foot .kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.foot .kw a { font-size: 12px; padding: 3px 10px; border-radius: 8px; background: var(--card); }
.foot .copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* 手机标签栏、抽屉、提示 */
.tabbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: #111; padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: .25s; z-index: 90; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.dside { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 300px; overflow-y: auto; background: var(--bg-2); border-inline-end: 1px solid var(--line); padding: 20px 16px 40px; }
.dside .logo { margin-bottom: 18px; }
.dside nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); }
.dside nav a.on { background: var(--card-2); color: var(--text); }
.dside nav a .i { color: var(--accent); }
.dside h5 { margin: 20px 4px 8px; }
.dside .mg { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .mnav > a:nth-child(n+5) { display: none; }
  .st-txt h2 { font-size: 52px; }
  .st-in { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 1200px) {
  .grid, .grid.g5, .grid.g6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .row.tickets { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .row.top10 { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .two, .watch { grid-template-columns: minmax(0, 1fr); }
  .eps { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  :root { --top: 60px; }
  .wrap { padding: 0 16px; }
  .hdr-in { gap: 10px; }
  .mnav { display: none; }
  .menu-btn, .m-search { display: inline-grid !important; }
  .logo { margin-inline: auto; }
  .logo .wd b { font-size: 24px; }
  .logo .mk svg { width: 30px; height: 30px; }
  .search { display: none; }
  .search.open { display: block; position: absolute; inset-inline: 12px; top: 9px; max-width: none; margin: 0; z-index: 60; }
  .search.open .box { background: var(--card); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: rgba(19, 16, 18, .96); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--text-3); background: none; border: 0; padding: 4px 0; cursor: pointer; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on .i { color: var(--accent); }
  .grid, .grid.g5, .grid.g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .row { grid-auto-columns: calc((100% - 2 * 10px) / 3); gap: 10px; }
  .row.tickets { grid-auto-columns: 78%; }
  .row.top10 { grid-auto-columns: calc((100% - 10px) / 2.3); }
  .stage { height: auto; min-height: 0; }
  .stage .sl { position: relative; display: none; }
  .stage .sl.on { display: block; }
  .st-in { grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; padding-bottom: 96px; padding-top: calc(var(--top) + 20px); }
  .st-txt h2 { font-size: 38px; }
  .st-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .st-nav .nm { display: none; }
  .st-nav .no { font-size: 16px; }
  .dhero .in { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
  .dhero h1 { font-size: 36px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .days { grid-template-columns: repeat(7, 84px); overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .sec { margin-top: 36px; }
  .sec-h { gap: 8px; margin-bottom: 12px; }
  .sec-h h2 { font-size: 20px; }
  .sec-h .sub, .sec-h .nav-btns { display: none; }
  .sec-h .more { margin-inline-start: auto; font-size: 13px; }
  .stabs { order: 3; width: 100%; }
  .stabs button { flex: 1; }
  .pc .cap { padding: 44px 8px 8px; }
  .pc .t { font-size: 13px; }
  .pc .s { font-size: 10px; gap: 4px; }
  .pc .bl { display: none; }
  .pc .tl { top: 6px; inset-inline-start: 6px; }
  .pc .ph { padding-bottom: 60px; }
  .pc .ph .i { width: 22px; height: 22px; }
  .stage .bg { filter: blur(20px) saturate(1.3) brightness(.55); }
  .stage .sl::after { background: linear-gradient(transparent 0%, rgba(11, 9, 10, .55) 40%, var(--bg) 96%); }
  .st-in { grid-template-columns: 1fr; gap: 16px; text-align: center; padding-bottom: 80px; }
  .st-pos { order: -1; width: 52%; justify-self: center; transform: none !important; }
  .st-txt { margin: 0 auto; }
  .st-txt h2 { font-size: 30px; margin-top: 10px; }
  .st-txt .meta { justify-content: center; margin: 10px 0; }
  .st-txt .ov { -webkit-line-clamp: 2; font-size: 14px; }
  .st-txt .acts { justify-content: center; margin-top: 16px; }
  .st-txt .btn { height: 44px; padding: 0 18px; }
  .st-txt .btn-ic { width: 44px; padding: 0; }
  .st-nav { bottom: 22px; }
  .cat-row { grid-auto-columns: 62%; }
  .cat-pill { height: 66px; }
  .t10 .n { font-size: 100px; -webkit-text-stroke-width: 2px; }
  .colls { grid-template-columns: minmax(0, 1fr); }
  .ph1 { padding: 22px 18px; }
  .ph1 h1 { font-size: 27px; }
  .filters .fr b { width: 56px; }
  .dhero .in { grid-template-columns: 1fr; padding-top: 16px; }
  .dhero .poster { width: 56%; justify-self: center; }
  .dhero h1 { font-size: 30px; text-align: center; }
  .dhero .en, .dhero .crumb { text-align: center; justify-content: center; }
  .dhero .tags, .dhero .acts, .dhero .score { justify-content: center; }
  .dhero .score div { padding: 0 10px; }
  .dhero .score b { font-size: 19px; }
  .facts { grid-template-columns: 96px minmax(0, 1fr); }
  .servers .sr > b { width: 100%; }
  .slot { grid-template-columns: 1fr; gap: 8px; }
  .slot time { text-align: start; }
  .dhero .in > div:last-child { text-align: center; }
  .facts { text-align: start; }
  .foot .cols { grid-template-columns: 1fr; }
  .nf .code { font-size: 110px; }
  .eplist { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   正式版补充：PHP 模板里有、原型里没有的部分
   ===================================================================== */
/* Logo：后台图片 Logo（EgyBest 白字版）或文字 Logo */
.logo img { height: var(--logo-h); width: auto; }
.logo > span { font: 900 28px/1 var(--font-h); color: var(--text); direction: ltr; }
.logo > b { font: 900 14px/1 var(--font-h); color: #fff; background: var(--grad-a); padding: 5px 7px 4px; border-radius: 6px; margin-inline-start: 4px; }
.foot .logo img { height: 36px; }
.dside .logo img { height: 32px; }
.badge.b-rank { background: var(--grad-a); color: #fff; }
.chip-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.chip-select { height: 34px; border-radius: 10px; padding: 0 12px; background: var(--card); border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; }
.chip-select option, .chip-select optgroup { background: var(--card); color: var(--text); }
.intro-box { margin-top: 26px; padding: 16px 20px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }
.suggest .none { padding: 12px; color: var(--text-3); font-size: 13px; }
.search-h { font-size: 22px; margin-top: 18px; }
.cats a.cat small { font: 400 12px var(--font); color: var(--text-3); }
.tabs a.tab { text-decoration: none; }

/* 演职员（有头像时显示照片） */
.people .person { text-align: center; font-size: 13px; font-weight: 700; }
.people .av { overflow: hidden; }
.people .av img { width: 100%; height: 100%; object-fit: cover; }
.people .person small { display: block; color: var(--text-3); font-weight: 400; }

/* 集列表：编号方块（剧照不加载，页面更轻）+ 名称、日期、简介 */
.ep .th { position: relative; }
.ep .th img { display: none; }
.ep .th .no { font: 900 18px var(--font-h); }
.ep .b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ep .b b .badge { margin-inline-start: 6px; height: 18px; font-size: 10px; vertical-align: 2px; }
.ep .ov { color: var(--text-3); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-panel .seasons { margin-bottom: 12px; }
.ep-panel-body { transition: opacity .15s; }
.epnums a.cur { background: var(--grad-a); border-color: transparent; color: #fff; }
.epnums span { height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--text-3); }
.wside .epnums { max-height: 420px; overflow-y: auto; padding-inline-end: 4px; }
.wside .panel h3 .chip-select { height: 30px; font: 12px var(--font); }
.wside .facts { grid-template-columns: 80px minmax(0, 1fr); padding: 12px 14px; margin-top: 10px; }

/* 播放器 */
.player .player-box { position: absolute; inset: 0; background: #000 center / cover no-repeat; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-cover { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, .25), rgba(0, 0, 0, .75)); }
.player-cover .play-circle { width: 92px; height: 92px; border-radius: 50%; background: var(--grad-a); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 75, 92, .18), 0 20px 50px rgba(255, 75, 92, .4); transition: transform .2s; }
.player-cover:hover .play-circle { transform: scale(1.06); }
.player-cover .play-circle .i { width: 34px; height: 34px; margin-left: 5px; }
.player-cover .label { position: absolute; bottom: 20px; inset-inline: 0; text-align: center; font-size: 14px; color: var(--text-2); }
.player-msg { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 20px; background: rgba(0, 0, 0, .8); color: var(--text-2); }
.player-msg b { color: #fff; font-size: 17px; }
.player-msg code { font-size: 12px; word-break: break-all; color: var(--text-3); }
.player-restart { position: absolute; inset-inline: 0; bottom: 56px; display: flex; justify-content: center; z-index: 2; }
.next-countdown { position: absolute; inset-inline-end: 16px; bottom: 16px; z-index: 3; background: rgba(27, 23, 25, .96); color: var(--text); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); padding: 14px 16px; font-size: 14px; max-width: 300px; }
.server-tip { font-size: 12px; color: var(--text-3); padding: 4px 0 0; }
.ctrl .ep-nav { display: flex; gap: 8px; }
.watch-wrap { padding-bottom: 8px; }
.wtitle .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.wtitle p.muted { color: var(--text-2); }

/* 播出表 */
.nt-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.nt-stats span { padding: 10px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--text-3); font-size: 12px; }
.nt-stats b { display: block; font: 900 24px var(--font-h); color: var(--text); }
.sched .days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); overflow-x: auto; scrollbar-width: none; }
.nt-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 18px; }
.nt-day h2 { font-size: 22px; margin-bottom: 14px; }
.nt-day h2 small { font: 400 13px var(--font); color: var(--text-3); margin-inline-start: 8px; }
.nt-day .eps { margin-bottom: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 专题详情 */
.coll-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: center; margin-top: 8px; padding: 28px; border-radius: 20px; background: var(--mash), radial-gradient(600px 240px at 0% 0%, rgba(255, 75, 92, .2), transparent 70%), var(--bg-2); border: 1px solid var(--line); }
.coll-hero .fan-only { background: none; border: 0; padding: 0; overflow: visible; }
.coll-hero .fan { height: 220px; margin: 0; justify-content: center; }
.coll-hero .fan div { width: 130px; }
.coll-hero .fan div + div { margin-inline-start: -60px; }
.coll-hero .kick { color: var(--accent-2); font-size: 13px; font-weight: 700; }
.coll-hero h1 { font-size: 40px; font-weight: 900; margin: 4px 0 10px; }
.coll-hero .desc { color: var(--text-2); }
.coll-hero .desc p { margin: 0 0 10px; }
.coll-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-3); font-size: 13px; margin-top: 12px; }
.coll-meta b { color: var(--text); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* 单页正文、常见问题 */
.prose { max-width: 860px; font-size: 15px; }
.prose h1 { font-size: 36px; font-weight: 900; margin-bottom: 14px; color: var(--text); }
.prose h2 { font-size: 22px; margin: 24px 0 6px; color: var(--text); }
.prose ul { padding-inline-start: 22px; margin: 0 0 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; font-size: 14px; }
.prose th { width: 32%; color: var(--text); }
.faq details { margin-bottom: 10px; padding: 14px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 800 16px var(--font-h); }
.faq details[open] summary { color: var(--accent-2); }
.faq p { color: var(--text-2); margin: 8px 0 0; }

/* 回到顶部、Cookie 提示、广告位、底栏声明 */
.totop { position: fixed; inset-inline-start: 18px; bottom: 24px; z-index: 45; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.totop.show { opacity: 1; pointer-events: auto; }
.cookie-banner { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 70; max-width: 720px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); font-size: 13px; color: var(--text-2); }
.cookie-banner a { color: var(--accent-2); }
.ad-slot { margin-top: 16px; text-align: center; overflow: hidden; }
.sec + .ad-slot, .wrap > .ad-slot, .wrap > .intro-box + .ad-slot, .cat-row + .ad-slot { margin: 24px 0 0; }
.wside > .ad-slot:first-child { margin: 0 0 16px; }
.ad-slot img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.footer-notice, .tmdb-attr { flex-basis: 100%; font-size: 12px; }
.tmdb-attr b { color: #01b4e4; margin-inline-end: 4px; }

@media (max-width: 1200px) {
  .nt-day .eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .totop { bottom: 84px; }
  .cookie-banner { bottom: 84px; }
  .coll-hero { grid-template-columns: 1fr; }
  .coll-hero .fan { height: 180px; }
  .logo img { height: var(--logo-h-m); }
}
@media (max-width: 640px) {
  .nt-day .eps { grid-template-columns: minmax(0, 1fr); }
  .coll-hero { padding: 20px; }
  .coll-hero h1 { font-size: 28px; }
  .ctrl .ep-nav .btn-sm { font-size: 12px; padding: 0 10px; }
  .next-countdown { inset-inline: 12px; bottom: 12px; max-width: none; }
  .wside .epnums { max-height: none; }
  .prose h1 { font-size: 28px; }
}
