@charset "UTF-8";
/* 字体放在本站（不连 Google Fonts）：Kufam（700 / 800，标题）、Mada（400 / 600 / 800，正文）分阿拉伯字母 + 拉丁字母两个子集；
   Teko（500 / 600，频道号、时间、比分、评分、集数，只有拉丁字母） */
@font-face { font-family: "Kufam"; font-weight: 700; font-display: swap; src: url("/assets/fonts/kufam-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Kufam"; font-weight: 700; font-display: swap; src: url("/assets/fonts/kufam-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kufam"; font-weight: 800; font-display: swap; src: url("/assets/fonts/kufam-800-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Kufam"; font-weight: 800; font-display: swap; src: url("/assets/fonts/kufam-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* 站名字标「إيجي بست」：Noto Kufi Arabic，只含这几个字（6 KB）；Kufam 的「ي」两点太小，读起来像「إبجي」。
   换站名时重新截取：pyftsubset kufi-arabic.woff2 --text="新站名" --flavor=woff2 --layout-features='*' --output-file=brand-kufi.woff2 */
@font-face { font-family: "Brand"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/brand-kufi.woff2") format("woff2"); }
@font-face { font-family: "Mada"; font-weight: 400; font-display: swap; src: url("/assets/fonts/mada-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Mada"; font-weight: 400; font-display: swap; src: url("/assets/fonts/mada-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mada"; font-weight: 600; font-display: swap; src: url("/assets/fonts/mada-600-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Mada"; font-weight: 600; font-display: swap; src: url("/assets/fonts/mada-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mada"; font-weight: 800; font-display: swap; src: url("/assets/fonts/mada-800-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Mada"; font-weight: 800; font-display: swap; src: url("/assets/fonts/mada-800-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Teko"; font-weight: 500; font-display: swap; src: url("/assets/fonts/teko-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2015, U+2022; }
@font-face { font-family: "Teko"; font-weight: 600 700; font-display: swap; src: url("/assets/fonts/teko-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2010-2015, U+2022; }
/* =====================================================================
   阿拉伯语站第十八版样式：إيجي بست（egybest.digital）· 电视台直播风（来自 prototype/ar18/assets/ar.css，文件后面追加正式版专用的样式）
   - 深夜蓝底 + 电视台红 + 白字；评分、时间、比分用黄色；平行四边形斜切块（按钮、标签、频道号、台标），像电视画面里的字幕条和角标
   - 结构：顶部滚动快讯条 + 频道栏页眉；搜索是全屏浮层；「الدليل」频道指南全屏菜单（手机是右下角遥控器按钮）；
     首页直播画面 + 下三分之一字幕条；详情页「宽幅头图 + 正文 / 侧栏」；播放页全宽影院；列表页左侧筛选栏；播出表是 EPG；404 彩条测试图
   - 方向相关的属性一律用逻辑属性，<html dir="rtl"> 时自动镜像
   ===================================================================== */
:root {
  --bg: #070c1f;
  --s1: #0c1430;
  --s2: #121c3f;
  --s3: #1a2754;
  --line: rgba(146, 166, 230, .15);
  --line2: rgba(146, 166, 230, .28);
  --tx: #f3f5fc;
  --mu: #97a3c8;
  --mu2: #6c78a0;
  --red: #e8242e;
  --red2: #ff3d47;
  --redd: #a3121a;
  --yel: #ffcc2a;
  --grn: #25d083;
  --fh: "Kufam", "Mada", Tahoma, sans-serif;
  --fb: "Mada", Tahoma, system-ui, sans-serif;
  --fn: "Teko", "Mada", sans-serif;
  --sl: 10px; /* 斜切量 */
  --w: 1320px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.75 var(--fb); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--fh); font-weight: 700; line-height: 1.45; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--yel); outline-offset: 2px; }
.ctr { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.gap { flex: 1; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i.fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[dir="rtl"] .i.flip { transform: scaleX(-1); }

/* ---------- 按钮、标签 ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border: 0; font: 700 15px/1 var(--fb); white-space: nowrap;
  clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%); transition: background .15s, color .15s; }
.bt-red { background: var(--red); color: #fff; }
.bt-red:hover { background: var(--red2); }
.bt-glass { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(6px); }
.bt-glass:hover, .bt-glass.on { background: #fff; color: var(--bg); }
.bt-line { background: var(--s2); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line2); }
.bt-line:hover { background: var(--s3); }
.bt-sq { width: 46px; padding: 0; }
.bt-s { height: 38px; padding: 0 16px; font-size: 14px; --sl: 7px; }
.bt[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.sq { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: var(--s2); color: var(--tx); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.sq:hover, .sq.cur { background: var(--red); color: #fff; }
.tg { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font: 700 12px/1 var(--fb); background: rgba(255, 255, 255, .1); color: var(--tx); }
.tg-sub { background: #1d4ed8; color: #fff; }
.tg-dub { background: #b45309; color: #fff; }
.tg-arb { background: #047857; color: #fff; }

/* ---------- 顶部快讯条 ---------- */
.ticker { display: flex; align-items: stretch; height: 34px; background: #000; border-bottom: 2px solid var(--red); font-size: 14px; overflow: hidden; }
.tk-tag { display: grid; place-items: center; padding: 0 18px 0 22px; background: var(--red); color: #fff; font: 800 14px/1 var(--fh); clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%); flex: none; }
.tk-run { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(to left, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.tk-in { display: flex; align-items: center; gap: 18px; height: 100%; width: max-content; white-space: nowrap; animation: tk 60s linear infinite; }
.tk-in i { color: var(--red); font-style: normal; font-size: 10px; }
.tk-in a { color: #d9def0; }
.tk-in a:hover { color: #fff; text-decoration: underline; }
.ticker:hover .tk-in { animation-play-state: paused; }
@keyframes tk { from { transform: translateX(0); } to { transform: translateX(50%); } }
.tk-clk { display: grid; place-items: center; padding: 0 16px; background: var(--s2); font: 700 20px/1 var(--fn); letter-spacing: 1px; color: var(--yel); flex: none; min-width: 74px; }

/* ---------- 频道栏页眉 ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(7, 12, 31, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.mast.stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.mast-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.dog { display: flex; align-items: center; gap: 10px; flex: none; }
.dog-m svg { width: 42px; height: 42px; display: block; }
.dog-w { display: flex; flex-direction: column; line-height: 1; }
.dog-w b { font: 800 26px/1.1 "Brand", var(--fh); }
.dog-w small { font: 700 12px/1 var(--fn); letter-spacing: 3px; color: var(--mu); margin-top: 3px; }
.chn { display: flex; align-items: stretch; height: 100%; gap: 2px; margin-inline-start: 10px; }
.chn a { position: relative; display: flex; align-items: center; padding: 0 16px; font: 700 15.5px/1 var(--fb); color: #c8cfe6; }
.chn a::after { content: ''; position: absolute; inset-inline: 10px; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transition: transform .2s; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.chn a:hover { color: #fff; }
.chn a:hover::after, .chn a.cur::after { transform: none; }
.chn a.cur { color: #fff; background: linear-gradient(to top, rgba(232, 36, 46, .2), transparent); }
.mast-x { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.onair-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; font: 700 14px/1 var(--fb); background: var(--s2); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.onair-btn i, .oa-live i, .wk-live i, .l3-live i, .nb-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 0 0 rgba(255, 61, 71, .7); animation: blink 1.6s infinite; flex: none; }
.onair-btn:hover, .onair-btn.cur { background: var(--red); }
.onair-btn:hover i, .onair-btn.cur i { background: #fff; }
@keyframes blink { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 71, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 61, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 71, 0); } }
.guide-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 18px; border: 0; background: var(--red); color: #fff; font: 700 14px/1 var(--fb); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.guide-btn:hover { background: var(--red2); }
.remote { display: none; }

/* ---------- 搜索浮层 ---------- */
.find, .guide { position: fixed; inset: 0; z-index: 90; background: rgba(4, 7, 20, .94); backdrop-filter: blur(8px); overflow-y: auto; animation: fade .18s; }
.find[hidden], .guide[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.find-in { max-width: 860px; padding-top: 12vh; padding-bottom: 40px; }
.find-f { display: flex; align-items: center; gap: 12px; height: 70px; padding: 0 20px 0 12px; background: var(--s1); border-bottom: 3px solid var(--red); }
.find-f > .i { width: 26px; height: 26px; color: var(--red2); }
.find-f input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: 600 22px/1 var(--fb); }
.find-f input::-webkit-search-cancel-button { display: none; }
.find-r { margin-top: 12px; }
.find-r > a:not(.fr-all) { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.find-r > a:hover { background: var(--s1); }
.fr-p { width: 44px; height: 64px; flex: none; background: var(--s2); overflow: hidden; }
.fr-p img { width: 100%; height: 100%; object-fit: cover; }
.find-r b { display: block; font-size: 16px; }
.find-r small { color: var(--mu); font-size: 13px; }
.find-r em { margin-inline-start: auto; font: 700 22px/1 var(--fn); font-style: normal; color: var(--yel); }
.fr-none { padding: 14px 12px; color: var(--mu); }
.fr-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red2); font-weight: 700; }
.find-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; }
.find-hot small { width: 100%; color: var(--mu); font-size: 13px; }
.find-hot a, .sband-hot a, .desk-hot a, .base-kw a, .chips a, .st-g a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; background: var(--s2); font-size: 14px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.find-hot a:hover, .sband-hot a:hover, .desk-hot a:hover, .base-kw a:hover, .chips a:hover, .st-g a:hover { background: var(--red); color: #fff; }

/* ---------- 频道指南 ---------- */
.guide-in { padding-top: 22px; padding-bottom: 40px; }
.guide-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.guide-cols { display: grid; grid-template-columns: 360px 1fr; gap: 40px; margin-top: 26px; }
.guide-ch { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.guide-ch a { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 16px; background: var(--s1); font: 700 17px/1 var(--fb); border-inline-start: 4px solid transparent; }
.guide-ch a i { font: 700 20px/1 var(--fn); font-style: normal; color: var(--mu2); width: 54px; }
.guide-ch a .i { color: var(--mu); }
.guide-ch a:hover, .guide-ch a.cur { background: var(--s2); border-color: var(--red); }
.guide-ch a.cur i, .guide-ch a:hover i { color: var(--red2); }
.guide-sub h3 { font-size: 17px; margin: 0 0 12px; color: var(--mu); }
.guide-sub h3 + .chips { margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-all { display: inline-flex; align-items: center; gap: 6px; color: var(--red2); font-weight: 700; }

/* ---------- 区块 ---------- */
.blk { margin: 46px 0 0; }
.blk-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.blk-h::after { content: ''; position: absolute; bottom: -1px; inset-inline-start: 0; width: 120px; height: 3px; background: var(--red); }
.kick { display: inline-flex; align-items: center; height: 26px; padding: 0 14px; background: var(--red); color: #fff; font: 700 13px/1 var(--fb); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.blk-h h2 { font-size: 22px; }
.blk-h small { color: var(--mu); font-size: 14px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--mu); }
.more:hover { color: var(--red2); }
.arw { display: flex; gap: 4px; }
.arw button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: var(--s2); color: var(--tx); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.arw button:hover { background: var(--red); }
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; color: var(--mu); margin-bottom: 14px; }
.trail i { font-style: normal; color: var(--red); font-weight: 700; }
.trail a:hover { color: #fff; }
.trail span { color: #dfe4f3; }

/* 页面标题带 */
.pagehead { position: relative; padding: 30px 0 32px; background: linear-gradient(100deg, var(--s1), var(--bg) 70%); border-bottom: 1px solid var(--line); overflow: hidden; }
.pagehead::before { content: ''; position: absolute; inset-block: 0; inset-inline-end: -60px; width: 340px; background: repeating-linear-gradient(115deg, rgba(232, 36, 46, .09) 0 14px, transparent 14px 30px); }
.pagehead .ctr { position: relative; }
.pagehead h1 { font-size: 34px; display: inline-flex; align-items: center; gap: 14px; }
.pagehead h1::before { content: ''; width: 10px; height: 34px; background: var(--red); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); flex: none; }
.pagehead p { color: var(--mu); margin-top: 6px; max-width: 760px; }
.ph-count { display: inline-flex; margin-top: 12px; padding: 0 12px; height: 28px; align-items: center; font: 700 18px/1 var(--fn); background: var(--s2); color: var(--yel); letter-spacing: .5px; }

/* ---------- 海报卡 pk ---------- */
.rail { 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-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 16px; }
.lmain .mosaic { grid-template-columns: repeat(5, 1fr); }
.pk { display: flex; flex-direction: column; min-width: 0; }
.pk-f { position: relative; aspect-ratio: 2 / 3; background: var(--s2); overflow: hidden; }
.pk-f img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pk:hover .pk-f img { transform: scale(1.05); }
.pk-q { position: absolute; top: 0; inset-inline-start: 0; padding: 4px 12px 4px 14px; background: var(--red); color: #fff; font: 700 12px/1.2 var(--fb); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.pk-new, .pk-n { position: absolute; top: 6px; inset-inline-end: 6px; padding: 2px 8px; background: var(--yel); color: #000; font: 700 12px/1.4 var(--fb); }
.pk-n { font: 700 20px/1 var(--fn); padding: 4px 8px; background: #fff; }
.pk-bar { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 30px; padding: 0 0 0 0; background: rgba(7, 12, 31, .86); font-size: 12.5px; font-weight: 600; color: #dfe4f3; }
.pk-bar span { padding-inline-start: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-bar b { height: 100%; display: grid; place-items: center; min-width: 40px; padding: 0 8px; background: var(--yel); color: #000; font: 700 19px/1 var(--fn); }
.pk-go { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 12, 31, .45); opacity: 0; transition: opacity .2s; }
.pk-go .i { width: 50px; height: 50px; padding: 14px; background: var(--red); color: #fff; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.pk:hover .pk-go { opacity: 1; }
.pk-t { margin-top: 10px; padding-inline-start: 10px; border-inline-start: 3px solid var(--red); font: 700 15px/1.45 var(--fb); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk:hover .pk-t { color: var(--red2); }
.pk-s { padding-inline-start: 13px; font-size: 13px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-l { display: flex; gap: 4px; padding-inline-start: 13px; margin-top: 4px; }
.pk-l .tg { height: 20px; font-size: 11px; padding: 0 6px; }
.nopic { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; text-align: center;
  background: repeating-linear-gradient(115deg, rgba(232, 36, 46, .14) 0 10px, transparent 10px 22px), linear-gradient(160deg, var(--s3), var(--s1)); }
.nopic .i { width: 30px; height: 30px; color: var(--red2); }
.nopic b { font: 700 15px/1.5 var(--fh); }
.nopic small { font-size: 12px; color: var(--mu); }
.nomini { display: grid; place-items: center; width: 100%; height: 100%; background: var(--s3); color: var(--mu); }
.blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.55); }
.side { position: absolute; top: 8%; bottom: 8%; inset-inline-start: 6%; height: 84%; width: auto !important; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* ---------- 横版卡 wk（监视器墙） ---------- */
.wk { display: block; min-width: 0; }
.wk-f { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--s2); overflow: hidden; outline: 1px solid var(--line); }
.wk-f .nopic b, .wk-f .nopic small { display: none; }
.wk-f .nopic { justify-content: flex-start; padding-top: 22%; }
.wk-f > img:not(.side) { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.wk:hover .wk-f > img:not(.side) { transform: scale(1.04); }
.wk-bug { position: absolute; top: 10px; inset-inline-end: 10px; padding: 2px 8px; background: rgba(0, 0, 0, .6); font: 700 15px/1.2 var(--fn); letter-spacing: 1px; }
.wk-live { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; align-items: center; gap: 6px; padding: 3px 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.wk-live i { background: #fff; }
.wk-l3 { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; padding: 30px 14px 10px; background: linear-gradient(to top, rgba(4, 7, 20, .95), transparent); }
.wk-l3 b { font: 700 16px/1.4 var(--fh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-l3 small { font-size: 13px; color: #c9d0e8; }
.wk:hover .wk-l3 b { color: var(--red2); }
.wk-ov { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; color: var(--mu); font-size: 14px; }
.wall { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.wall .wk-xl { grid-row: span 2; }
.wall .wk-xl .wk-l3 { padding: 60px 22px 18px; }
.wall .wk-xl .wk-l3 b { font-size: 26px; }
.wall .wk-xl .wk-l3::before { content: 'حصري'; align-self: flex-start; margin-bottom: 8px; padding: 2px 12px; background: var(--red); font-size: 12px; font-weight: 700; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }

/* ---------- 首页直播画面 ---------- */
.onair { position: relative; height: min(76vh, 660px); min-height: 480px; background: #000; overflow: hidden; }
.oa-s { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.oa-s.on { opacity: 1; visibility: visible; }
.oa-img { position: absolute; inset: 0; display: block; }
.oa-img > img:not(.side) { width: 100%; height: 100%; object-fit: cover; }
.oa-s.on .oa-img > img:not(.side) { animation: kb 9s ease-out both; }
@keyframes kb { from { transform: scale(1.08); } to { transform: none; } }
.oa-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(7, 12, 31, .55) 38%, transparent 70%), linear-gradient(to left, rgba(7, 12, 31, .85), transparent 60%); }
.oa-l3 { position: absolute; inset-inline: 0; bottom: 46px; padding-inline-end: 380px; }
.l3-tag { display: flex; align-items: stretch; gap: 0; }
.l3-k { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; background: var(--red); color: #fff; font: 800 14px/1 var(--fh); clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.l3-c { display: inline-flex; align-items: center; height: 30px; padding: 0 18px 0 14px; margin-inline-start: -6px; background: #fff; color: var(--bg); font-weight: 700; font-size: 14px; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.l3-live { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; margin-inline-start: 6px; background: rgba(0, 0, 0, .5); font-weight: 700; font-size: 13px; }
.l3-t { margin-top: 10px; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.3; text-shadow: 0 3px 20px rgba(0, 0, 0, .6); }
.l3-t small { font-size: .55em; color: var(--mu); font-weight: 600; }
.l3-t a:hover { color: var(--red2); }
.l3-i { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; padding: 8px 14px; background: rgba(7, 12, 31, .78); border-inline-start: 4px solid var(--red); width: fit-content; max-width: 100%; font-size: 14.5px; color: #dbe0f0; }
.l3-r { display: inline-flex; align-items: center; gap: 4px; color: var(--yel); font: 700 21px/1 var(--fn); }
.l3-p { margin-top: 12px; max-width: 640px; color: #d1d7ea; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.oa-live { position: absolute; top: 22px; inset-inline-start: max(20px, calc((100% - var(--w)) / 2 + 20px)); display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(0, 0, 0, .55); font-weight: 800; font-size: 14px; z-index: 3; }
.oa-live b { font: 700 18px/1 var(--fn); letter-spacing: 1px; color: var(--yel); margin-inline-start: 6px; }
.oa-next { position: absolute; z-index: 3; bottom: 46px; inset-inline-end: max(20px, calc((100% - var(--w)) / 2 + 20px)); width: 340px; background: rgba(7, 12, 31, .82); backdrop-filter: blur(10px); border-top: 3px solid var(--red); }
.oa-next h3 { padding: 12px 16px 8px; font-size: 15px; color: var(--mu); }
.oa-next button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 16px; border: 0; background: none; text-align: start; }
.oa-next button:hover { background: rgba(255, 255, 255, .05); }
.nx-p { width: 38px; height: 54px; flex: none; overflow: hidden; background: var(--s2); }
.nx-p img { width: 100%; height: 100%; object-fit: cover; }
.nx-t { display: flex; flex-direction: column; min-width: 0; }
.nx-t small { font-size: 12px; color: var(--mu2); font-weight: 700; }
.nx-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c5cce3; }
.oa-next button.on { background: rgba(232, 36, 46, .14); }
.oa-next button.on .nx-t b { color: #fff; }
.oa-next button.on .nx-t small { color: var(--red2); }
.nx-bar { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: transparent; }
.nx-bar i { display: block; height: 100%; width: 0; background: var(--red); }
.oa-next button.done .nx-bar i { width: 100%; background: var(--line2); }
.oa-next button.on .nx-bar i { animation: bar 7s linear forwards; }
.onair.paused .oa-next button.on .nx-bar i { animation-play-state: paused; }
@keyframes bar { to { width: 100%; } }

/* ---------- 频道块 ---------- */
.chs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 28px; }
.ch { position: relative; display: flex; flex-direction: column; padding: 14px 14px 14px; min-height: 128px; background: var(--s1); border-top: 3px solid var(--s3); overflow: hidden; transition: background .2s, border-color .2s; }
.ch::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); pointer-events: none; }
.ch:hover { background: var(--s2); border-color: var(--red); }
.ch-n { font: 700 22px/1 var(--fn); letter-spacing: 1px; color: var(--red2); }
.ch-i { position: absolute; top: 14px; inset-inline-end: 14px; width: 22px; height: 22px; color: var(--mu); }
.ch b { margin-top: auto; font: 700 16px/1.4 var(--fh); }
.ch small { font-size: 12.5px; color: var(--mu); }
.ch-sig { position: absolute; bottom: 14px; inset-inline-end: 14px; display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.ch-sig i { width: 3px; background: var(--grn); }
.ch-sig i:nth-child(1) { height: 25%; } .ch-sig i:nth-child(2) { height: 50%; } .ch-sig i:nth-child(3) { height: 75%; } .ch-sig i:nth-child(4) { height: 100%; }
.ch-all { background: var(--red); border-color: var(--red2); }
.ch-all .ch-n, .ch-all small, .ch-all .ch-i { color: rgba(255, 255, 255, .85); }
.ch-all:hover { background: var(--red2); }

/* ---------- 今晚时间轴 ---------- */
.lineup { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
.lineup li { position: relative; padding-top: 34px; padding-inline-end: 12px; }
.lineup li::before { content: ''; position: absolute; top: 9px; inset-inline: 0; height: 2px; background: var(--line2); }
.lineup li::after { content: ''; position: absolute; top: 4px; inset-inline-start: 0; width: 12px; height: 12px; background: var(--s3); border: 2px solid var(--mu2); transform: rotate(45deg); }
.lineup li.now::after { background: var(--red); border-color: var(--red2); }
.lineup li.now::before { background: linear-gradient(to left, var(--red) 40%, var(--line2) 40%); }
[dir="ltr"] .lineup li.now::before { background: linear-gradient(to right, var(--red) 40%, var(--line2) 40%); }
.lineup time { position: absolute; top: -4px; inset-inline-start: 22px; font: 700 22px/1 var(--fn); letter-spacing: 1px; color: var(--yel); }
.lineup a { display: flex; flex-direction: column; height: 100%; padding: 12px 14px; background: var(--s1); border-inline-start: 3px solid var(--s3); }
.lineup li.now a { border-color: var(--red); background: var(--s2); }
.lineup a:hover { background: var(--s2); }
.lineup b { font-size: 15.5px; line-height: 1.5; }
.lineup a:hover b { color: var(--red2); }
.lineup small { color: var(--mu); font-size: 13px; }
.lineup em { align-self: flex-start; margin-top: 8px; padding: 1px 10px; background: var(--red); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.lineup em.fin { background: var(--yel); color: #000; }

/* ---------- 积分榜 ---------- */
.std-h { display: none; }
.std ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 0 26px; }
.std li a { display: grid; grid-template-columns: 50px 44px 1fr 64px 60px; align-items: center; gap: 0; height: 74px; border-bottom: 1px solid var(--line); }
.std li a:hover { background: var(--s1); }
.std-n { font: 700 34px/1 var(--fn); color: var(--mu2); text-align: center; }
.std li:nth-child(-n+3) .std-n { color: #fff; }
.std li:first-child a { background: linear-gradient(to left, rgba(232, 36, 46, .2), transparent 70%); }
.std li:first-child .std-n { color: var(--red2); }
.std-m { display: inline-flex; align-items: center; gap: 1px; font: 700 16px/1 var(--fn); justify-content: center; }
.std-m.up { color: var(--grn); } .std-m.dn { color: var(--red2); } .std-m.eq { color: var(--mu2); }
.std-m .i { width: 14px; height: 14px; stroke-width: 3; }
.std-t { display: flex; align-items: center; gap: 12px; min-width: 0; }
.std-p { width: 40px; height: 58px; flex: none; overflow: hidden; background: var(--s2); }
.std-p img { width: 100%; height: 100%; object-fit: cover; }
.std-t > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.std-t b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std li a:hover .std-t b { color: var(--red2); }
.std-t small { font-size: 12.5px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-k { font-size: 13px; color: var(--mu); text-align: center; }
.std-pts { justify-self: stretch; height: 34px; display: grid; place-items: center; background: var(--s2); font: 700 21px/1 var(--fn); color: var(--yel); }

/* ---------- 换台切换 ---------- */
.sw { display: flex; gap: 4px; }
.sw button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; background: var(--s2); color: var(--mu); font-weight: 700; font-size: 14px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.sw button i { font: 700 15px/1 var(--fn); font-style: normal; opacity: .7; }
.sw button.on { background: #fff; color: var(--bg); }
.sw button:hover:not(.on) { color: #fff; }

/* ---------- 专题「برامج خاصة」 ---------- */
.specials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spc { position: relative; display: flex; gap: 14px; padding: 18px; min-height: 170px; background: linear-gradient(150deg, var(--s2), var(--s1)); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.spc::before { content: ''; position: absolute; inset-block: 0; inset-inline-end: 0; width: 6px; background: var(--red); }
.spc-n { font: 700 56px/.9 var(--fn); color: var(--red2); }
.spc-b { display: flex; flex-direction: column; min-width: 0; }
.spc-b small { color: var(--mu2); font-size: 12px; font-weight: 700; }
.spc-b b { font: 700 17px/1.45 var(--fh); margin: 2px 0 6px; }
.spc-b span { font-size: 13.5px; color: var(--mu); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spc-b em { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--red2); }
.spc:hover { background: var(--s3); }

/* ---------- 介绍「عن القناة」 ---------- */
.desk { position: relative; margin: 50px 0 10px; padding: 26px 28px 24px; background: var(--s1); border-inline-start: 6px solid var(--red); }
.desk-k { display: inline-block; font: 700 13px/1 var(--fb); color: var(--red2); margin-bottom: 8px; }
.desk h1, .desk h2 { font-size: 21px; margin-bottom: 8px; }
.desk p { color: #c3cae1; font-size: 15px; }
.desk p a { color: #fff; border-bottom: 1px solid var(--red); }
.desk-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.desk-hot small { color: var(--mu); margin-inline-end: 4px; }
.desk-sm { margin-top: 40px; }

/* ---------- 列表页 ---------- */
.lgrid { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; margin-top: 26px; }
.fpanel { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--s1); scrollbar-width: thin; }
.fp-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fp-h b { display: flex; align-items: center; gap: 8px; font-family: var(--fh); }
.fp-h .sq, .fp-done { display: none; }
.fg { border-bottom: 1px solid var(--line); }
.fg summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.fg summary::-webkit-details-marker { display: none; }
.fg summary .i { color: var(--mu); transition: transform .2s; }
.fg[open] summary .i { transform: rotate(180deg); }
.fg-o { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.fg-o button { height: 32px; padding: 0 12px; border: 0; background: var(--s2); color: #c8cfe6; font-size: 13.5px; font-weight: 600; }
.fg-o button:hover { color: #fff; background: var(--s3); }
.fg-o button.on { background: var(--red); color: #fff; }
.lbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 14px; background: var(--s1); }
.lbar-c { font-weight: 700; color: var(--mu); font-size: 14px; }
.fp-open { display: none; }
.sortby { display: flex; align-items: center; gap: 8px; }
.sortby small { color: var(--mu); }
.sortby select { height: 36px; padding: 0 12px; border: 0; background: var(--s2); color: var(--tx); font-weight: 600; }
.lbar-s { margin-top: 26px; }
.pgn { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 34px; }
.pgn a, .pgn span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; background: var(--s1); font: 700 22px/1 var(--fn); }
.pgn .pg-dir { font: 700 14px/1 var(--fb); }
.pgn a:hover { background: var(--s3); }
.pgn .pg-on { background: var(--red); color: #fff; }
.pgn .pg-gap { background: none; }
.nosig { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 50px 20px; text-align: center; color: var(--mu); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 4px), var(--s1); margin-top: 26px; }
.nosig > .i { width: 44px; height: 44px; color: var(--red2); }
.nosig b { display: block; color: var(--tx); font-family: var(--fh); font-size: 20px; margin-bottom: 4px; }

/* ---------- 类型、国家总览 ---------- */
.chgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.chgrid a { display: flex; flex-direction: column; padding: 14px 16px; background: var(--s1); border-bottom: 3px solid var(--s3); transition: background .2s, border-color .2s; }
.chgrid a:hover { background: var(--s2); border-color: var(--red); }
.chgrid i { font: 700 18px/1 var(--fn); font-style: normal; color: var(--red2); }
.chgrid b { font: 700 18px/1.5 var(--fh); margin-top: 10px; }
.chgrid small { color: var(--mu); font-size: 13px; }
.chtable { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.chtable a { display: flex; align-items: center; gap: 16px; height: 58px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.chtable a:hover { background: var(--s1); }
.chtable i { font: 700 22px/1 var(--fn); font-style: normal; color: var(--mu2); width: 30px; }
.chtable b { font-size: 16px; }
.chtable small { margin-inline-start: auto; color: var(--mu); font-size: 13px; }
.chtable .i { color: var(--red2); }

/* ---------- 详情页 ---------- */
.dtop { position: relative; min-height: 480px; display: flex; align-items: flex-end; padding: 60px 0 40px; overflow: hidden; background: #000; }
.dtop-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
.dtop-blur .dtop-bg { inset: -40px; filter: blur(30px) brightness(.6); }
.dtop-bg:not([style]) { background: repeating-linear-gradient(115deg, rgba(232, 36, 46, .12) 0 14px, transparent 14px 30px), linear-gradient(160deg, var(--s3), var(--bg)); }
.dtop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(7, 12, 31, .55) 50%, rgba(7, 12, 31, .3)), linear-gradient(to left, rgba(7, 12, 31, .9), transparent 70%); }
.dtop-in { position: relative; z-index: 2; }
.dtop .l3-t { font-size: clamp(30px, 4vw, 50px); }
.dgrid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.dmain { min-width: 0; }
.dside { position: sticky; top: 84px; margin-top: -170px; z-index: 5; }
.ds-card { background: var(--s1); border-top: 4px solid var(--red); padding: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.ds-po { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--s2); }
.ds-po img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 14px 0; }
.facts div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts dt { width: 96px; flex: none; color: var(--mu); }
.facts dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.facts a:hover { color: var(--red2); }
.ds-share { width: 100%; }
.story { margin-top: 34px; }
.st-h { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 10px; }
.st-h::before { content: ''; width: 8px; height: 24px; background: var(--red); }
.story p { font-size: 16.5px; line-height: 1.95; color: #d6dcee; max-width: 820px; }
.st-none { color: var(--mu) !important; font-style: italic; }
.st-g { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.upnext { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 14px; background: linear-gradient(to left, rgba(232, 36, 46, .2), var(--s1)); border-inline-start: 4px solid var(--red); }
.upnext > .i { width: 28px; height: 28px; color: var(--red2); }
.upnext small { display: block; color: var(--mu); font-size: 13px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.seg button { height: 36px; padding: 0 16px; border: 0; background: var(--s2); color: var(--mu); font-weight: 700; font-size: 14px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.seg button.on { background: var(--red); color: #fff; }
.seg button:hover:not(.on) { color: #fff; }
.seg-big { margin-top: 26px; }
.seg-big button { height: 44px; padding: 0 24px; font-size: 15px; }
.eprows { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
.eprows a { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.eprows a:hover { background: var(--s1); }
.ep-n { width: 56px; height: 44px; flex: none; display: grid; place-items: center; background: var(--s2); font: 700 26px/1 var(--fn); }
.eprows a:hover .ep-n { background: var(--red); }
.ep-b { display: flex; flex-direction: column; min-width: 0; }
.ep-b b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.ep-b em { padding: 0 8px; background: var(--yel); color: #000; font-style: normal; font-size: 11.5px; line-height: 20px; }
.ep-b small { color: var(--mu); font-size: 13px; }
.ep-go { margin-inline-start: auto; color: var(--mu); }
.eprows a:hover .ep-go { color: var(--red2); }
.eprows li.soon a { opacity: .45; pointer-events: none; }
.epnum { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 420px; overflow-y: auto; }
.epnum a { display: grid; place-items: center; height: 44px; background: var(--s1); font: 700 22px/1 var(--fn); }
.epnum a:hover { background: var(--red); }
.crew { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.crew li { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px; background: var(--s1); }
.crew li:hover { background: var(--s2); }
.cr-av img { width: 100%; height: 100%; object-fit: cover; }
.cr-av { overflow: hidden; }
.cr-av { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; background: var(--s3); font: 700 20px/1 var(--fh); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.crew b { font-size: 14px; line-height: 1.4; }
.crew small { color: var(--mu); font-size: 12px; line-height: 1.3; }

/* ---------- 播放页 ---------- */
.theater { padding: 22px 0 28px; background: #000; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.scr { position: relative; aspect-ratio: 16 / 9; max-height: 74vh; width: 100%; margin: 0 auto; background: #05070f; overflow: hidden; }
.scr-cover { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.45); }
.scr-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; background: none; color: #fff; }
.scr-play > span { display: grid; place-items: center; width: 92px; height: 92px; background: var(--red); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform .2s, background .2s; }
.scr-play > span .i { width: 38px; height: 38px; }
.scr-play:hover > span { transform: scale(1.06); background: var(--red2); }
.scr-play small { padding: 4px 12px; background: rgba(0, 0, 0, .6); font-size: 14px; }
.scr-bug { position: absolute; top: 16px; inset-inline-end: 18px; font: 800 18px/1 var(--fh); opacity: .55; pointer-events: none; }
.scr-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--mu); background: #05070f; }
.nowbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 10px 12px; background: var(--s1); border-inline-start: 4px solid var(--red); }
.nb-k { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 13px; }
.nb-k i { background: #fff; }
.nb-t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.nb-t b { font-family: var(--fh); font-size: 16px; }
.nb-t small { font-size: 12.5px; color: var(--mu); }
body.dim::before { content: ''; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .88); pointer-events: none; }
body.dim .theater { z-index: 3; }
.srv { margin-top: 30px; }
.auto { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mu); }
.auto input { accent-color: var(--red); width: 16px; height: 16px; }
.srv-list { display: grid; gap: 10px; }
.srv-g { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.srv-g > b { width: 110px; font-size: 14px; color: var(--mu); }
.srv-g button { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 0; background: var(--s1); color: #d4daee; font-weight: 700; font-size: 14px; border-bottom: 3px solid var(--s3); }
.srv-g button i { font: 700 18px/1 var(--fn); font-style: normal; color: var(--mu2); }
.srv-g button:hover { background: var(--s2); }
.srv-g button.on { background: var(--s2); border-color: var(--red); color: #fff; }
.srv-g button.on i { color: var(--red2); }
.srv-sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.srv-sig em { width: 3px; background: var(--grn); }
.srv-sig em:nth-child(1) { height: 40%; } .srv-sig em:nth-child(2) { height: 70%; } .srv-sig em:nth-child(3) { height: 100%; }
.eprail { grid-auto-columns: 76px; gap: 6px; }
.eprail a { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; background: var(--s1); border-bottom: 3px solid var(--s3); }
.eprail a b { font: 700 26px/1 var(--fn); }
.eprail a small { font-size: 11px; color: var(--mu); margin-top: 3px; white-space: nowrap; }
.eprail a:hover { background: var(--s2); }
.eprail a.cur { background: var(--red); border-color: var(--red2); }
.eprail a.cur small { color: #fff; }
.eprail a.soon { opacity: .4; pointer-events: none; }
.wgrid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; margin-top: 40px; align-items: start; }
.winfo h1 { font-size: 24px; }
.wi-en { color: var(--mu); font-size: 14px; margin-top: 2px; text-align: start; }
.wi-t { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.winfo p { color: #c9d0e6; margin-bottom: 16px; }
.wpicks { background: var(--s1); border-top: 3px solid var(--red); }
.wpicks h3 { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; font-size: 16px; }
.wpicks h3 .i { color: var(--grn); }
.wpicks ol { list-style: none; margin: 0; padding: 0 0 8px; }
.wpicks a { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.wpicks a:hover { background: var(--s2); }
.wpicks a > i { font: 700 22px/1 var(--fn); font-style: normal; color: var(--mu2); width: 26px; }
.wp-p { width: 40px; height: 58px; flex: none; overflow: hidden; background: var(--s2); }
.wp-p img { width: 100%; height: 100%; object-fit: cover; }
.wpicks a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.wpicks b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpicks small { font-size: 12.5px; color: var(--mu); }

/* ---------- 时间表 EPG ---------- */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 26px; }
.days button { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border: 0; background: var(--s1); color: #c8cfe6; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.days button b { font-size: 15px; }
.days button small { font-size: 12.5px; color: var(--mu); }
.days button:hover { background: var(--s2); }
.days button.on { background: var(--red); color: #fff; }
.days button.on small { color: #ffd7da; }
.epg { margin-top: 18px; }
.epg-r { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--line); }
.epg-r time { position: relative; padding: 20px 0 0 0; font: 700 30px/1 var(--fn); color: var(--yel); letter-spacing: 1px; border-inline-end: 2px solid var(--line2); }
.epg-r time::after { content: ''; position: absolute; top: 22px; inset-inline-end: -7px; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); }
.epg-c { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; padding: 14px 0 14px 0; padding-inline-start: 20px; }
.epg-c a { display: flex; gap: 12px; padding: 10px; background: var(--s1); }
.epg-c a:hover { background: var(--s2); }
.epg-p { width: 52px; height: 76px; flex: none; overflow: hidden; background: var(--s2); }
.epg-p img { width: 100%; height: 100%; object-fit: cover; }
.epg-b { display: flex; flex-direction: column; min-width: 0; }
.epg-b b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-c a:hover b { color: var(--red2); }
.epg-b small { font-size: 12.5px; color: var(--mu2); text-align: start; }
.epg-b > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; font-size: 13px; color: var(--mu); }
.epg-b .tg { height: 20px; font-size: 11px; padding: 0 6px; }

/* ---------- 搜索带 ---------- */
.sband { padding: 32px 0 34px; background: linear-gradient(100deg, var(--s1), var(--bg)); border-bottom: 1px solid var(--line); }
.sband h1 { font-size: 30px; margin-bottom: 16px; }
.sband-f { display: flex; align-items: center; gap: 12px; height: 60px; max-width: 820px; padding: 0 6px 0 0; padding-inline-start: 18px; background: var(--s2); border-bottom: 3px solid var(--red); }
.sband-f > .i { width: 22px; height: 22px; color: var(--red2); }
.sband-f input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 18px; font-weight: 600; }
.sband-f .bt { height: 46px; margin-inline-end: 6px; }
.sband-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; }
.sband-hot small { color: var(--mu); margin-inline-end: 4px; }

/* ---------- 专题 ---------- */
.prgs { display: grid; gap: 10px; margin-top: 26px; }
.prg { display: flex; align-items: center; gap: 22px; padding: 16px 22px; background: var(--s1); border-inline-start: 4px solid var(--s3); transition: background .2s, border-color .2s; }
.prg:hover { background: var(--s2); border-color: var(--red); }
.prg-n { font: 700 50px/1 var(--fn); color: var(--red2); width: 56px; flex: none; }
.prg-p { position: relative; width: 140px; height: 96px; flex: none; }
.prg-p span { position: absolute; top: 0; width: 64px; height: 96px; overflow: hidden; background: var(--s3); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.prg-p span:nth-child(1) { inset-inline-start: 0; z-index: 3; }
.prg-p span:nth-child(2) { inset-inline-start: 38px; z-index: 2; transform: scale(.92); }
.prg-p span:nth-child(3) { inset-inline-start: 76px; z-index: 1; transform: scale(.84); }
.prg-p img { width: 100%; height: 100%; object-fit: cover; }
.prg-b { display: flex; flex-direction: column; min-width: 0; }
.prg-b b { font: 700 19px/1.45 var(--fh); }
.prg-b span { color: var(--mu); font-size: 14.5px; }
.prg-b small { color: var(--yel); font-weight: 700; font-size: 13px; margin-top: 4px; }
.prg-go { margin-inline-start: auto; width: 26px; height: 26px; color: var(--mu); }
.prg:hover .prg-go { color: var(--red2); }

/* ---------- 我的片单 ---------- */
.resume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
.resume a { display: flex; flex-direction: column; min-width: 0; }
.rs-f { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--s2); }
.rs-f > img:not(.side) { width: 100%; height: 100%; object-fit: cover; }
.rs-bar { position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .25); }
.rs-bar i { display: block; height: 100%; background: var(--red); }
.resume b { margin-top: 8px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume small { color: var(--mu); font-size: 13px; }
.clear { text-align: center; margin-top: 26px; }
.pane { margin-top: 20px; }

/* ---------- 单页 ---------- */
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; margin-top: 30px; }
.doc-nav { position: sticky; top: 84px; display: grid; gap: 4px; }
.doc-nav a { padding: 12px 16px; background: var(--s1); font-weight: 700; border-inline-start: 4px solid transparent; }
.doc-nav a:hover { background: var(--s2); }
.doc-nav a.cur { border-color: var(--red); background: var(--s2); color: #fff; }
.doc-a { max-width: 820px; font-size: 16px; color: #d0d6ea; }
.doc-a h2 { font-size: 20px; color: var(--tx); margin: 26px 0 8px; padding-inline-start: 12px; border-inline-start: 4px solid var(--red); }
.doc-a p { margin-bottom: 10px; }
.doc-a a { color: #fff; border-bottom: 1px solid var(--red); }
.doc-d { color: var(--mu2); font-size: 14px; margin-top: 24px; }
.form { display: grid; gap: 14px; max-width: 560px; margin-top: 20px; padding: 20px; background: var(--s1); border-top: 3px solid var(--red); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; background: var(--s2); color: var(--tx); outline: none; border-bottom: 2px solid var(--s3); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); }
.form .bt { justify-self: start; }

/* ---------- 404 无信号 ---------- */
.nosignal { position: relative; min-height: 560px; display: grid; place-items: center; padding: 40px 20px; overflow: hidden; background: #000; }
.bars { position: absolute; inset: 0 0 22% 0; display: grid; grid-template-columns: repeat(7, 1fr); opacity: .85; }
.bars i:nth-child(1) { background: #c0c0c0; } .bars i:nth-child(2) { background: #c0c000; } .bars i:nth-child(3) { background: #00c0c0; } .bars i:nth-child(4) { background: #00c000; }
.bars i:nth-child(5) { background: #c000c0; } .bars i:nth-child(6) { background: #c00000; } .bars i:nth-child(7) { background: #0000c0; }
.bars2 { position: absolute; inset: 78% 0 0 0; display: grid; grid-template-columns: repeat(7, 1fr); opacity: .85; }
.bars2 i:nth-child(1) { background: #0000c0; } .bars2 i:nth-child(2) { background: #131313; } .bars2 i:nth-child(3) { background: #c000c0; } .bars2 i:nth-child(4) { background: #131313; }
.bars2 i:nth-child(5) { background: #00c0c0; } .bars2 i:nth-child(6) { background: #131313; } .bars2 i:nth-child(7) { background: #c0c0c0; }
.nosignal::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 4px); pointer-events: none; }
.ns-box { position: relative; z-index: 2; width: 100%; max-width: 600px; padding: 30px 28px; background: rgba(4, 7, 20, .93); text-align: center; border-top: 4px solid var(--red); }
.ns-box > b { display: block; font: 700 110px/1 var(--fn); color: var(--red2); letter-spacing: 4px; }
.ns-box h1 { font-size: 22px; margin: 6px 0 6px; }
.ns-box p { color: var(--mu); margin-bottom: 18px; }
.ns-box .sband-f { margin: 0 auto 16px; height: 54px; }
.ns-box .sband-f .bt { height: 42px; }

/* ---------- 页脚 ---------- */
.base { margin-top: 70px; background: #050916; border-top: 3px solid var(--red); padding-bottom: 20px; }
.az { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.az b { font: 700 14px/1 var(--fh); color: var(--mu); margin-inline-end: 10px; }
.az a { display: grid; place-items: center; width: 34px; height: 34px; background: var(--s1); font: 700 16px/1 var(--fh); }
.az a:hover { background: var(--red); color: #fff; }
.base-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 30px 0 20px; }
.base-about p { color: var(--mu); font-size: 14.5px; margin-top: 12px; max-width: 420px; }
.base-cols h4 { font-size: 15px; margin-bottom: 10px; color: var(--tx); }
.base-cols > div:not(.base-about) { display: flex; flex-direction: column; gap: 6px; }
.base-cols > div:not(.base-about) a { color: var(--mu); font-size: 14.5px; }
.base-cols > div:not(.base-about) a:hover { color: var(--red2); }
.base-kw { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 20px; }
.base-kw a { height: 30px; font-size: 13px; color: var(--mu); background: var(--s1); }
.base-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--mu2); font-size: 13px; }

/* ---------- 提示条 ---------- */
.flash { position: fixed; z-index: 100; bottom: 30px; left: 50%; transform: translate(-50%, 20px); padding: 12px 22px; background: #fff; color: var(--bg); font-weight: 700; border-inline-start: 5px solid var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.flash.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1200px) {
  .chn a { padding: 0 11px; font-size: 15px; }
  .rail { grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; }
  .mosaic { grid-template-columns: repeat(5, 1fr); }
  .lmain .mosaic { grid-template-columns: repeat(4, 1fr); }
  .chs { grid-template-columns: repeat(4, 1fr); }
  .chgrid { grid-template-columns: repeat(4, 1fr); }
  .specials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .chn, .onair-btn { display: none; }
  .oa-l3 { padding-inline-end: 20px; bottom: 150px; }
  .oa-next { inset-inline: 0; bottom: 0; width: auto; display: flex; align-items: stretch; border-top: 0; background: rgba(7, 12, 31, .9); }
  .oa-next h3 { display: none; }
  .oa-next div { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
  .oa-next button { padding: 12px 10px; }
  .onair { height: 640px; }
  .dgrid, .wgrid { grid-template-columns: 1fr; }
  .dside { position: static; margin-top: 30px; }
  .ds-card { display: grid; grid-template-columns: 160px 1fr; gap: 0 18px; align-items: start; box-shadow: none; }
  .ds-po { grid-row: span 2; }
  .facts { margin-top: 0; }
  .ds-share { grid-column: 2; }
  .std ol { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .wall { grid-template-columns: 1fr 1fr; }
  .wall .wk-xl { grid-column: span 2; grid-row: auto; }
  .lgrid { grid-template-columns: 1fr; }
  .fpanel { position: fixed; inset: auto 0 0 0; top: auto; z-index: 95; max-height: 82vh; transform: translateY(105%); transition: transform .25s; box-shadow: 0 -20px 50px rgba(0, 0, 0, .6); border-top: 3px solid var(--red); }
  .fpanel.open { transform: none; }
  .fp-h .sq { display: grid; }
  .fp-done { display: flex; width: calc(100% - 32px); margin: 14px 16px; }
  .fp-open { display: inline-flex; }
  .lmain .mosaic { grid-template-columns: repeat(4, 1fr); }
  .resume { grid-template-columns: repeat(3, 1fr); }
  .base-cols { grid-template-columns: 1fr 1fr 1fr; }
  .base-about { grid-column: 1 / -1; }
  .guide-cols { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .ctr { padding: 0 14px; }
  .ticker { height: 30px; font-size: 13px; }
  .tk-tag { padding: 0 12px 0 16px; font-size: 13px; }
  .tk-clk { min-width: 58px; font-size: 18px; padding: 0 10px; }
  .mast-in { height: 58px; gap: 10px; }
  .dog-m svg { width: 36px; height: 36px; }
  .dog-w b { font-size: 22px; }
  .dog-w small { font-size: 10px; letter-spacing: 2px; }
  .hide-s, .guide-btn { display: none; }
  .remote { position: fixed; z-index: 60; bottom: 18px; inset-inline-end: 16px; display: grid; place-items: center; width: 56px; height: 56px; border: 0; background: var(--red); color: #fff; clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
  .remote .i { width: 26px; height: 26px; }
  .onair { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .oa-s { position: absolute; inset: 0 0 auto 0; height: 100%; }
  .oa-s.on { position: relative; }
  .oa-img { position: relative; aspect-ratio: 16 / 10; }
  .oa-img::after { background: linear-gradient(to top, var(--bg) 0%, rgba(7, 12, 31, .3) 50%, transparent 80%); }
  .oa-l3 { position: relative; bottom: auto; margin-top: -60px; padding: 0 14px; }
  .l3-t { font-size: 28px; }
  .l3-i { font-size: 13px; padding: 6px 10px; }
  .l3-p { font-size: 14px; }
  .acts { margin-top: 14px; }
  .acts .bt { height: 42px; padding: 0 16px; font-size: 14px; }
  .acts .bt-sq { width: 42px; padding: 0; }
  .oa-live { top: 12px; inset-inline-start: 12px; font-size: 12px; padding: 4px 10px; }
  .oa-next { position: relative; margin-top: 18px; background: none; }
  .oa-next div { display: flex; overflow-x: auto; gap: 6px; padding: 0 14px; scrollbar-width: none; }
  .oa-next button { flex: 0 0 180px; background: var(--s1); padding: 8px 10px; }
  .chs { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
  .ch { min-height: 112px; padding: 12px; }
  .ch b { font-size: 14.5px; }
  .ch small { display: none; }
  .ch-all { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 12px; }
  .ch-all b { margin: 0; }
  .ch-all .ch-i { position: static; order: -1; }
  .ch-n { font-size: 19px; }
  .blk { margin-top: 36px; }
  .blk-h h2 { font-size: 19px; }
  .blk-h small { width: 100%; order: 5; }
  .rail { grid-auto-columns: calc((100% - 2 * 10px) / 3); gap: 10px; }
  .mosaic, .lmain .mosaic { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .pk-t { font-size: 13.5px; padding-inline-start: 7px; }
  .pk-s, .pk-l { padding-inline-start: 10px; }
  .pk-s { font-size: 12px; }
  .pk-l { display: none; }
  .pk-bar { height: 24px; font-size: 11px; }
  .pk-bar span { padding-inline-start: 6px; }
  .pk-bar b { min-width: 32px; font-size: 16px; padding: 0 5px; }
  .pk-q { font-size: 10.5px; padding: 3px 9px 3px 10px; }
  .lineup { grid-auto-columns: 200px; }
  .std li a { grid-template-columns: 40px 34px 1fr 50px; height: 70px; }
  .std-k { display: none; }
  .std-n { font-size: 28px; }
  .wall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wall .wk-xl .wk-l3 b { font-size: 20px; }
  .wall .wk-xl .wk-l3 { padding: 40px 14px 12px; }
  .wk-l3 { padding: 24px 10px 8px; }
  .wk-l3 b { font-size: 14px; }
  .wk-l3 small { font-size: 11.5px; }
  .wk-bug { font-size: 13px; top: 6px; inset-inline-end: 6px; }
  .wk-live { top: 6px; inset-inline-start: 6px; font-size: 11px; padding: 2px 7px; }
  .sw { width: 100%; order: 6; }
  .sw button { flex: 1; justify-content: center; padding: 0 8px; }
  .specials { grid-template-columns: 1fr; }
  .spc { min-height: 0; }
  .desk { padding: 20px 18px; }
  .pagehead { padding: 22px 0 24px; }
  .pagehead h1 { font-size: 25px; }
  .pagehead h1::before { height: 26px; width: 8px; }
  .lbar { flex-wrap: wrap; padding: 8px 10px; }
  .lbar-c { order: 5; width: 100%; font-size: 13px; }
  .sortby small { display: none; }
  .chgrid { grid-template-columns: repeat(2, 1fr); }
  .chtable { grid-template-columns: 1fr; }
  .dtop { min-height: 440px; padding: 40px 0 26px; }
  .dtop .l3-t { font-size: 28px; }
  .ds-card { grid-template-columns: 110px 1fr; gap: 0 14px; padding: 12px; }
  .ds-share { grid-column: 1 / -1; margin-top: 10px; }
  .facts div { flex-direction: column; gap: 0; padding: 6px 0; font-size: 13.5px; }
  .facts dt { width: auto; font-size: 12.5px; }
  .story p { font-size: 15.5px; }
  .eprows a { gap: 12px; padding: 9px 6px; }
  .ep-n { width: 46px; height: 40px; font-size: 22px; }
  .theater { padding: 14px 0 18px; }
  .theater .ctr { padding: 0; }
  .theater .trail { padding: 0 14px; }
  .scr-play > span { width: 70px; height: 70px; }
  .nowbar { margin: 10px 14px 0; }
  .nb-t { width: calc(100% - 120px); }
  .nowbar .gap { display: none; }
  .nowbar .bt span { display: none; }
  .nowbar .bt { padding: 0 12px; }
  .srv-g > b { width: 100%; }
  .eprail { grid-auto-columns: 62px; }
  .srv-g button { flex: 1 1 140px; justify-content: center; }
  .winfo h1 { font-size: 20px; }
  .days { display: flex; overflow-x: auto; scrollbar-width: none; }
  .days button { flex: 0 0 96px; }
  .epg-r { grid-template-columns: 1fr; }
  .epg-r time { padding: 14px 0 0; border: 0; display: flex; align-items: center; gap: 10px; font-size: 26px; }
  .epg-r time::after { position: static; order: -1; }
  .epg-c { grid-template-columns: 1fr; padding: 10px 0 14px; }
  .sband h1 { font-size: 23px; }
  .sband-f { height: 54px; padding-inline-start: 12px; }
  .sband-f input { font-size: 16px; }
  .sband-f .bt { height: 42px; padding: 0 14px; }
  .prg { gap: 12px; padding: 12px; flex-wrap: wrap; }
  .prg-n { font-size: 36px; width: auto; }
  .prg-p { width: 110px; height: 76px; }
  .prg-p span { width: 50px; height: 76px; }
  .prg-p span:nth-child(2) { inset-inline-start: 30px; }
  .prg-p span:nth-child(3) { inset-inline-start: 60px; }
  .prg-b { width: 100%; order: 5; }
  .prg-b b { font-size: 17px; }
  .prg-go { display: none; }
  .resume { grid-template-columns: repeat(2, 1fr); }
  .doc { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  .doc-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .doc-nav a { flex: none; padding: 10px 14px; border-inline-start: 0; border-bottom: 3px solid transparent; }
  .doc-nav a.cur { border-color: var(--red); }
  .nosignal { min-height: 520px; }
  .ns-box { padding: 24px 16px; }
  .ns-box > b { font-size: 80px; }
  .base { margin-top: 50px; padding-bottom: 90px; }
  .az a { width: 30px; height: 30px; font-size: 14px; }
  .az b { width: 100%; margin-bottom: 4px; }
  .base-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .base-cols > div:last-child { grid-column: 1 / -1; }
  .find-in { padding-top: 16px; }
  .find-f { height: 58px; }
  .find-f input { font-size: 18px; }
  .flash { bottom: 90px; width: max-content; max-width: calc(100% - 28px); }
}
/* =====================================================================
   正式版专用（原型里没有，或者正式版的结构稍有不同）
   ===================================================================== */
/* Logo：后台上传的图片 / 文字 Logo */
.dog img { height: var(--logo-h, 40px); width: auto; }
.dog-m .mk { width: 42px; height: 42px; display: block; }
.mast { top: 0; }
.ticker .tk-in > span { display: flex; align-items: center; gap: 18px; }
.tk-in a.tk-sc { color: #fff; font-weight: 700; }
.tk-sc b { color: var(--yel); font: 700 18px/1 var(--fn); margin: 0 2px; }
.ticker:not(:has(a)) .tk-in { animation: none; }

/* 通用小标签列表（热门搜索、类型、页脚关键词） */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips > small { color: var(--mu); font-size: 13px; margin-inline-end: 4px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--s2); font-size: 14px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.chips a small { font: 600 15px/1 var(--fn); color: var(--mu); }
.chips a:hover { background: var(--red); color: #fff; }
.find-hot { margin-top: 30px; }
.find-hot small { width: 100%; }
.guide-sub .more { margin-top: 8px; }

/* 搜索浮层 / 搜索带 / 404 的联想结果（app.js 往 .find-r 里写） */
.find-f, .sband-f { position: relative; }
.find-r { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 5; max-height: 60vh; overflow-y: auto; background: var(--s1); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); border-top: 3px solid var(--red); }
.find-r:not(.on) { display: none; }
.find-r > a:not(.fr-all) { display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.find-r > a:hover { background: var(--s2); }
.find-r b { display: block; font-size: 15px; color: var(--tx); }
.find-r small { color: var(--mu); font-size: 13px; }
.fr-p { width: 40px; height: 58px; flex: none; overflow: hidden; background: var(--s3); }
.fr-p img { width: 100%; height: 100%; object-fit: cover; }
.fr-all { display: block; padding: 12px; color: var(--red2); font-weight: 700; text-align: center; }
.sband h1.sband-q { font-size: 24px; }
.ns-box .sband-f { text-align: start; }

/* 「...」按钮、表单控件 */
.bt .i { width: 18px; height: 18px; }
.bt.on { background: #fff; color: var(--bg); }
.go-sel { height: 32px; padding: 0 10px; border: 0; background: var(--s2); color: var(--tx); font: 600 13.5px var(--fb); }
.eps-blk .go-sel { height: 34px; }
.mail { color: #fff; font-weight: 700; border-bottom: 1px solid var(--red); }

/* 标签：清晰度、语言、日期、季终 */
.tg-q { background: var(--red); color: #fff; }
.tg-meta { background: var(--s3); color: #dbe0f0; }
.tg-fin { background: var(--yel); color: #000; }

/* 海报卡：名次方块、没有海报 */
.pk-f .nopic b { font-size: 14px; }
.top-grid .pk-n, .mosaic .pk-n { font-size: 22px; }
.pk-f .rs-bar { position: absolute; inset-inline: 0; bottom: 30px; height: 4px; background: rgba(255, 255, 255, .25); }
.pk-f .rs-bar i { display: block; height: 100%; background: var(--red); }

/* 横版卡一排（最新集） */
.rail.rail-w { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
.wk-f .nopic b, .wk-f .nopic small { display: none; }
.wk-f .nopic { justify-content: flex-start; padding-top: 18%; }

/* 首页直播画面：正式版的「التالي」节目单是纯文字（编号 + 片名 + 进度条），不加载额外图片 */
.oa-next button > i { font: 700 24px/1 var(--fn); font-style: normal; color: var(--mu2); width: 30px; flex: none; text-align: center; }
.oa-next button.on > i { color: var(--red2); }
.onair.solo .oa-l3 { padding-inline-end: 20px; }
.oa-img > .nopic { position: absolute; inset: 0; }
.oa-img .blur { inset: -40px; }
.oa-img .side { top: 12%; height: 70%; inset-inline-start: auto; inset-inline-end: 10%; }
.l3-t a { color: inherit; }

/* 频道块：正式版图标是 Html::ICON_*（.i） */
.ch > .i { position: absolute; top: 14px; inset-inline-end: 14px; width: 22px; height: 22px; color: var(--mu); }
.ch-all > .i { color: rgba(255, 255, 255, .85); }

/* 今晚时间轴：刻度上写集数（TMDB 没有钟点） */
.lineup time { font: 800 15px/1 var(--fb); top: 0; }

/* 积分榜：正式版没有升降列 */
.std li a { grid-template-columns: 50px 1fr 64px 60px; }
.std-p .nomini, .rk-p .nomini, .epc-p .nomini { width: 100%; height: 100%; }

/* 区块标题里的换台、季下拉 */
.blk-h .sw { margin-inline-start: 6px; }

/* 专题行（Html::collectionCard）：编号可选，最后一个箭头 */
.prg > .i { margin-inline-start: auto; width: 26px; height: 26px; color: var(--mu); flex: none; }
.prg:hover > .i { color: var(--red2); }
.prg-p span:nth-child(1) { inset-inline-start: 0; }
.prg-p-xl { width: 220px; height: 150px; flex: none; }
.prg-p-xl span { width: 100px; height: 150px; }
.prg-p-xl span:nth-child(2) { inset-inline-start: 60px; }
.prg-p-xl span:nth-child(3) { inset-inline-start: 120px; }

/* 标题带：统计数、专题详情 */
.pagehead .trail { margin-bottom: 10px; }
.pagehead .stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stats span { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; background: var(--s2); font-size: 13.5px; color: var(--mu); }
.stats b { font: 700 22px/1 var(--fn); color: var(--yel); }
.ph-coll-in { display: flex; align-items: center; gap: 30px; }
.ph-coll-in > div:first-child { flex: 1; min-width: 0; }
.ph-coll .kick { margin-bottom: 8px; }
.ph-desc p { color: #c9d0e6; margin-top: 8px; max-width: 760px; }

/* 详情页：正式版的头图背景是 .dtop-bg（有剧照）/ .dtop-bg.dtop-blur（模糊海报） */
.dtop-bg.dtop-blur { inset: -40px; filter: blur(30px) brightness(.55); }
.dtop-nobd { min-height: 420px; }
.st-intro { margin-top: 12px; color: var(--mu) !important; font-size: 15px !important; }
.ds-po .nopic { position: absolute; inset: 0; }
.facts dd a { color: #fff; border-bottom: 1px dotted var(--mu2); }

/* 季分段（链接）+ 集分段（按钮） */
.seg a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; background: var(--s2); color: var(--mu); font-weight: 700; font-size: 14px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.seg a.on { background: var(--red); color: #fff; }
.seg a:hover:not(.on) { color: #fff; }
.seg-season { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.seg-season a { flex: none; }
.seg-b button { height: 30px; font-size: 13px; padding: 0 12px; }

/* 集行：剧照 + 大号集数叠在剧照角上 · 标题 + 日期 + 简介 · ▶ */
.eprows li > a, .eprows li > div { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.eprows li > a:hover { background: var(--s1); }
.eprows li.cur > a { background: linear-gradient(to left, rgba(232, 36, 46, .18), transparent); border-inline-start: 4px solid var(--red); }
.eprows li.soon > div { opacity: .5; }
.ep-st { position: relative; width: 132px; aspect-ratio: 16 / 9; flex: none; background: var(--s2); overflow: hidden; }
.ep-st img { width: 100%; height: 100%; object-fit: cover; }
.ep-st .ep-n { position: absolute; bottom: 0; inset-inline-start: 0; width: auto; height: auto; padding: 2px 8px; font-size: 20px; background: rgba(7, 12, 31, .85); }
.ep-st:not(:has(img)) .ep-n { inset: 0; display: grid; place-items: center; background: none; font-size: 30px; }
.ep-b { flex: 1; }
.ep-b b em { margin-inline-start: 4px; }
.ep-b b em.soon { background: var(--s3); color: var(--mu); }
.ep-ov { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13.5px; color: #b8c0da; }
.eprows li > a > .i, .eprows li > div > .i { margin-inline-start: auto; color: var(--mu); flex: none; }
.eprows li > a:hover > .i { color: var(--red2); }
.epnum .cur { background: var(--red); color: #fff; }
.epnum .soon { display: grid; place-items: center; height: 44px; background: var(--s1); font: 700 22px/1 var(--fn); opacity: .4; }

/* 播放器（player.js）：.scr 里的 .scr-in 放封面 / iframe / 提示 */
.scr-in { position: absolute; inset: 0; background: #05070f center / cover no-repeat; }
.scr-in::before { content: ''; position: absolute; inset: 0; background: rgba(4, 7, 20, .5); pointer-events: none; }
.scr-in:has(iframe)::before { display: none; }
.scr-in iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.scr-in .scr-play { z-index: 2; }
.scr-msg { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: #dfe4f3; }
.scr-msg b { font: 700 20px/1.5 var(--fh); color: #fff; }
.scr-msg span { color: var(--mu); }
.scr-msg code { direction: ltr; font-size: 12px; color: var(--mu); word-break: break-all; }
.scr-re { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; }
.scr-bug { z-index: 4; }
.nx-cd { position: absolute; z-index: 5; bottom: 18px; inset-inline-end: 18px; padding: 14px 16px; background: rgba(7, 12, 31, .94); border-inline-start: 4px solid var(--red); font-size: 14px; }
.nx-cd .nx-m { color: var(--mu); }
.nx-cd b.n { font: 700 22px/1 var(--fn); color: var(--yel); }
body.dim::before { content: ''; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .88); pointer-events: none; }
body.dim .theater { z-index: 3; }
.ep-nav { display: inline-flex; gap: 6px; }
.srv-g button.miss { opacity: .45; }
.srv-g button.miss .srv-sig em { background: var(--mu2); }
.wi-name { font: 600 16px/1.5 var(--fb); color: #c9d0e6; margin-top: 6px; }
.winfo .blk { margin-top: 30px; }

/* 播放页侧栏推荐（Html::rankItem / mini） */
.rks { padding-bottom: 8px; }
.rk { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.rk:hover { background: var(--s2); }
.rk > i { font: 700 22px/1 var(--fn); font-style: normal; color: var(--mu2); width: 26px; flex: none; }
.rk-p { width: 40px; height: 58px; flex: none; overflow: hidden; background: var(--s2); }
.rk-p img { width: 100%; height: 100%; object-fit: cover; }
.rk > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.rk b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk:hover b { color: var(--red2); }
.rk small { font-size: 12.5px; color: var(--mu); }
.wpicks .facts { padding: 0 16px 10px; margin: 0; }
.wpicks .ad-slot { margin: 0 0 12px; }

/* 播出表 EPG：日期标签 + 每天的节目行（Html::epCard 同样的结构） */
.epg { margin-top: 26px; }
.epg .days { display: flex; overflow-x: auto; scrollbar-width: none; margin-top: 0; }
.epg .days button { flex: 1 0 96px; }
.epg-kinds { margin: 12px 0 4px; }
.epg-h { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; font-size: 18px; }
.epg-h time { padding: 2px 12px; background: var(--red); color: #fff; font: 800 15px/1.6 var(--fb); }
.epg-h small { color: var(--mu); font: 600 13px var(--fb); }
.epg-c { padding: 0; }
.epc { display: flex; gap: 12px; padding: 10px; background: var(--s1); border-inline-start: 3px solid var(--s3); }
.epc:hover { background: var(--s2); border-color: var(--red); }
.epc[hidden] { display: none; }
.epc-p { width: 52px; height: 76px; flex: none; overflow: hidden; background: var(--s2); }
.epc-p img { width: 100%; height: 100%; object-fit: cover; }
.epc-b { display: flex; flex-direction: column; min-width: 0; }
.epc-b b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epc:hover .epc-b b { color: var(--red2); }
.epc-b small { font-size: 12.5px; color: var(--mu2); text-align: start; }
.epc-t { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.epc-t em { padding: 0 8px; background: var(--red); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; line-height: 22px; }
.epc-t em.soon { background: var(--s3); color: #dbe0f0; }
.epc-t em.new { background: var(--yel); color: #000; }
.epc-t .tg { height: 22px; font-size: 11px; padding: 0 6px; }
.epc-b time { font-size: 12.5px; color: var(--mu); margin-top: 2px; }
.epg-more-p { text-align: center; margin-top: 14px; }
.epg-note { color: var(--mu2); font-size: 13px; margin-top: 10px; }
.desk h3 { font-size: 16px; margin: 14px 0 4px; }

/* 标签云 */
.tagcloud { margin-top: 26px; }

/* 单页正文（后台编辑的 HTML） */
.doc-a h2, .doc-a h3 { font-size: 20px; color: var(--tx); margin: 26px 0 8px; padding-inline-start: 12px; border-inline-start: 4px solid var(--red); }
.doc-a h3 { font-size: 17px; }
.doc-a ul, .doc-a ol { padding-inline-start: 22px; margin: 0 0 12px; }
.doc-a li { margin-bottom: 4px; }
.doc-a table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.doc-a td, .doc-a th { padding: 8px 10px; border: 1px solid var(--line); }

/* FAQ「أسئلة المشاهدين」：编号问题卡，点开回答（不是 <details>） */
.qa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qa-i { background: var(--s1); border-inline-start: 4px solid var(--s3); transition: border-color .2s; }
.qa-i.on { border-color: var(--red); background: linear-gradient(to left, rgba(232, 36, 46, .08), var(--s1) 60%); }
.qa-q { margin: 0; font: 700 15.5px/1.5 var(--fb); }
.qa-q button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--tx); font: inherit; text-align: start; cursor: pointer; }
.qa-q button:hover { color: #fff; }
.qa-q i { flex: none; padding: 2px 10px; background: var(--s3); color: var(--yel); font: 700 18px/1.3 var(--fn); font-style: normal; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.qa-i.on .qa-q i { background: var(--red); color: #fff; }
.qa-q span { flex: 1; }
.qa-q .i { flex: none; color: var(--mu); transition: transform .2s; }
.qa-i.on .qa-q .i { transform: rotate(180deg); color: var(--red2); }
.qa-a { display: flex; gap: 12px; padding: 0 16px 16px; }
.qa-a[hidden] { display: none; }
.qa-a b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; background: #fff; color: var(--bg); font: 800 15px/1 var(--fh); }
.qa-a p { color: #c9d0e6; line-height: 1.9; }

/* 广告位 */
.ad-slot { margin: 26px auto; text-align: center; max-width: 100%; overflow: hidden; }

/* 回到顶部、Cookie 提示条 */
.up { position: fixed; z-index: 55; bottom: 22px; inset-inline-end: 22px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--s2); color: var(--tx); opacity: 0; pointer-events: none; transition: opacity .2s; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.up.on { opacity: 1; pointer-events: auto; }
.up:hover { background: var(--red); }
.cookie-bar { position: fixed; z-index: 80; inset-inline: 16px; bottom: 16px; max-width: 640px; margin-inline: auto; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--s1); border-inline-start: 4px solid var(--red); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: 14px; }
.cookie-bar[hidden] { display: none; }
.cookie-bar a { color: #fff; border-bottom: 1px solid var(--red); }
.base-note, .tmdb-attr { display: block; width: 100%; color: var(--mu2); font-size: 12.5px; }
.base-cols > div:not(.base-about) a { display: block; }

@media (max-width: 1020px) {
  .rail.rail-w { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .ph-coll-in { flex-direction: column; align-items: flex-start; }
  .up { bottom: 86px; }
}
@media (max-width: 720px) {
  .rail.rail-w { grid-auto-columns: 74%; }
  .oa-next button > i { font-size: 18px; width: 22px; }
  .oa-next button { flex: 0 0 200px; }
  .std li a { grid-template-columns: 40px 1fr 50px; }
  .ep-st { width: 96px; }
  .eprows li > a, .eprows li > div { gap: 10px; padding: 9px 4px; }
  .ep-ov { display: none; }
  .prg-p-xl { display: none; }
  .epg .days button { flex: 0 0 92px; }
  .epc-b b { font-size: 14.5px; }
  .up { inset-inline-end: auto; inset-inline-start: 16px; bottom: 18px; }
  .cookie-bar { bottom: 86px; flex-direction: column; align-items: stretch; }
  .nowbar .ep-nav { order: 9; width: 100%; }
  .nowbar .ep-nav .bt { flex: 1; }
  .nowbar .bt span { display: none; }
  .ns-box .sband-f .bt { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tk-in { animation: none; }
}
