/* =====================================================================
   阿拉伯语站第十九版样式：سيما كلوب（cimaclub.run）· 分屏「舞台 + 内容流」（来自 prototype/ar19/assets/ar.css）
   竖向图标栏（手机：底部悬浮胶囊）+ 深色固定舞台 + 浅色滚动内容流（全是文字行，没有海报网格）
   字体放在本站 /assets/fonts/（不连 Google）：正文 Vazirmatn（可变字重），大标题 / 站名 Rakkas
   ===================================================================== */
@font-face { font-family: "Rakkas"; font-display: swap; src: url("/assets/fonts/rakkas-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Rakkas"; font-display: swap; src: url("/assets/fonts/rakkas-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Vazirmatn"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/vazirmatn-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/vazirmatn-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --ink: #101418;
  --ink2: #1a2027;
  --paper: #f3f1ec;
  --card: #fffdf9;
  --line: #e0dcd3;
  --mute: #6f7378;
  --text: #191c20;
  --hot: #ff5a3c;
  --hot2: #ffd2c7;
  --gold: #f2b33d;
  --live: #e11d48;
  --rail: 84px;
  --r: 16px;
  --f: "Vazirmatn", Tahoma, system-ui, sans-serif;
  --d: "Rakkas", "Vazirmatn", Tahoma, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 15px/1.7 var(--f); overflow-x: hidden; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.35; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.fill { fill: currentColor; stroke: none; }
[dir="rtl"] .i.flip { transform: scaleX(-1); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; z-index: 200; top: -60px; right: 16px; padding: 8px 16px; border-radius: 0 0 12px 12px; background: var(--hot); color: #fff; font-weight: 700; }
.skip:focus { top: 0; }

/* ---------- 竖向图标栏 ---------- */
.rail { position: fixed; z-index: 40; top: 0; bottom: 0; right: 0; width: var(--rail); background: #0a0d10; color: #9aa3ab; display: flex; flex-direction: column; align-items: stretch; padding: 14px 0; overflow-y: auto; scrollbar-width: none; }
.rail a, .rail button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; font-size: 11px; line-height: 1.3; text-align: center; background: none; border: 0; position: relative; transition: color .15s; }
.rail a:hover, .rail button:hover { color: #fff; }
.rail .i { width: 22px; height: 22px; }
.rail-logo { color: #fff; margin-bottom: 10px; }
.rail-logo .mk { width: 42px; height: 42px; }
.rail-logo span { font: 19px/1.2 var(--d); color: #fff; }
.rail-logo img { max-width: 70px; height: auto; max-height: var(--logo-h); }
.rail-l { display: flex; flex-direction: column; flex: 1; }
.rail-l a.on { color: #fff; }
.rail-l a.on::before { content: ""; position: absolute; right: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px 0 0 3px; background: var(--hot); }
.rail-l a.on .i { color: var(--hot); }
.rail-s { color: #fff !important; margin-top: 8px; }
.rail-s .i { background: var(--hot); border-radius: 12px; padding: 8px; width: 38px; height: 38px; stroke-width: 2.2; }
.mk { display: block; flex: none; }

/* ---------- 分屏 ---------- */
.split { margin-right: var(--rail); display: grid; grid-template-columns: minmax(380px, 42%) minmax(0, 1fr); min-height: 100vh; }
.split-pl { grid-template-columns: minmax(0, 62%) minmax(360px, 1fr); }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.stage.swap .st-in, .stage.swap .st-bg { opacity: 0; }
.st-bg { position: absolute; inset: 0; z-index: -1; transition: opacity .2s; background: linear-gradient(150deg, hsl(var(--h, 210) 45% 30%), var(--ink) 70%); }
.st-bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 18s ease-in-out infinite alternate; }
.st-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 20, 24, .15) 0%, rgba(16, 20, 24, .25) 35%, rgba(16, 20, 24, .92) 72%, var(--ink) 100%); }
.st-po img { object-position: center 20%; }
.st-brand { background: radial-gradient(circle at 70% 15%, #2b3a4a, var(--ink) 65%); }
.st-brand::after { background: radial-gradient(circle at 20% 90%, rgba(255, 90, 60, .18), transparent 55%); }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-2%); } }
.st-in { position: absolute; inset: auto 0 0 0; padding: 40px 44px 44px; transition: opacity .2s; }
.st-mk .mk { width: 84px; height: 84px; margin-bottom: 14px; }
.st-k { margin: 0 0 6px; color: var(--hot2); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.st-k .i { width: 16px; height: 16px; }
.st-t { margin: 0; font: 50px/1.18 var(--d); text-wrap: balance; overflow-wrap: anywhere; }
.st-en { margin: 4px 0 0; color: #aab2ba; font-size: 14px; text-align: right; }
.st-m { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; font-size: 13.5px; color: #d6dbe0; }
.st-m em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; color: var(--gold); font-weight: 700; }
.st-m em .i { width: 15px; height: 15px; }
.st-o { margin: 14px 0 0; color: #c3cad1; font-size: 14.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; max-width: 560px; }
.stage-fix .st-o { -webkit-line-clamp: 3; }
.st-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn .i { width: 18px; height: 18px; }
.btn-go { background: var(--hot); color: #fff; }
.btn-go:hover { background: #ff7051; }
.btn-gh { background: rgba(255, 255, 255, .13); color: #fff; backdrop-filter: blur(8px); }
.btn-gh:hover { background: rgba(255, 255, 255, .22); }
.btn-ic { width: 46px; padding: 0; background: rgba(255, 255, 255, .13); color: #fff; }
.btn-ic.on { background: #fff; color: var(--ink); }
.btn-li { height: 40px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); }
.btn-li:hover { border-color: var(--hot); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- 内容流 ---------- */
.flow { min-width: 0; display: flex; flex-direction: column; }
.flow > main { flex: 1; padding: 30px 48px 0; min-width: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.crumbs .i { width: 13px; height: 13px; }
.crumbs a:hover { color: var(--hot); }
.ph { margin-bottom: 20px; }
.ph h1 { margin: 0; font: 42px/1.25 var(--d); color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.ph h1 small { font-size: .55em; color: var(--mute); }
.ph p { margin: 6px 0 0; color: var(--mute); }
.ph .ph-en { margin-top: 2px; text-align: right; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: #3c4046; }
.pill-q { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-sub { background: #eaf0fb; border-color: #d4e0f6; color: #23498a; }
.pill-dub { background: #fdf1dc; border-color: #f6e0b5; color: #8a5a07; }
.pill-ar { background: #e5f5ea; border-color: #cbead5; color: #1d6b3a; }
.pill-live { background: #ffe4e9; border-color: #fecdd6; color: var(--live); }
.pill-live i, .pill-fin::before { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.pill-fin { color: var(--live); }
.ep-name { margin: 8px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.hello { padding: 18px 0 6px; }
.hello > p { margin: 0; color: var(--mute); font-size: 14px; }
.hello h1 { margin: 4px 0 18px; font: 48px/1.2 var(--d); color: var(--ink); text-wrap: balance; }
.hello-s { width: 100%; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--mute); text-align: right; font-size: 16px; box-shadow: 0 8px 30px -18px rgba(16, 20, 24, .35); }
.hello-s span { flex: 1; }
.hello-s kbd { font: 12px var(--f); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.hello-s:hover { border-color: var(--hot); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chips a .i { width: 16px; height: 16px; }
.chips a:hover, .chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips small { color: var(--mute); }

.blk { margin: 34px 0 0; }
.blk-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 0 0 6px; }
.blk-h h2, .blk-h > span { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.blk-h h2 .i { width: 20px; height: 20px; color: var(--hot); }
.blk-h small { color: var(--mute); font-size: 13px; font-weight: 400; }
.blk-h > a { margin-right: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--hot); }
.blk-h > a .i { width: 15px; height: 15px; }
.blk-h select { margin-right: auto; }
.blk-h select + a { margin-right: 0; }

/* 行 */
.rows { display: grid; }
.rows-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid var(--line); position: relative; min-width: 0; transition: background .12s; }
.row:hover, .row.cur { background: var(--card); box-shadow: 0 6px 24px -16px rgba(16, 20, 24, .4); border-bottom-color: transparent; }
.row:hover::before, .row.cur::before { content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--hot); }
.row-n { flex: none; min-width: 34px; font: 22px/1 var(--d); color: #b6b0a4; text-align: center; }
.row:hover .row-n, .row.cur .row-n { color: var(--hot); }
.row-t { flex: none; width: 46px; height: 66px; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h, 20) 50% 45%), hsl(var(--h, 20) 40% 22%)); display: grid; place-items: center; color: #fff; font: 22px var(--d); }
.row-t img { width: 100%; height: 100%; object-fit: cover; }
.row-t i { font-style: normal; }
.row-ic { background: var(--card); border: 1px solid var(--line); width: 46px; height: 46px; border-radius: 50%; font: 24px/1 system-ui; }
.row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-b strong { font-size: 15.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-b small { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-r { flex: none; font-size: 13px; color: var(--mute); }
.row-r em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); }
.row-r em .i { width: 14px; height: 14px; color: var(--gold); }
.row-r time { display: inline-block; font-weight: 700; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1px 9px; white-space: nowrap; }
.row-r time.soon { color: var(--mute); }
.row-r > .i { color: var(--hot); width: 18px; height: 18px; }
.rows-big .row-t { width: 56px; height: 80px; }
.rows-big .row-n { min-width: 44px; font-size: 32px; }
.rows-big .row-b strong { font-size: 17px; }
.prog { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--hot); }

/* 专题行（叠起来的三张海报） */
.stack { display: flex; align-items: center; gap: 16px; padding: 12px 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.stack:hover { background: var(--card); }
.stack > .i { color: var(--hot); }
.stack-p { flex: none; width: 96px; height: 76px; position: relative; }
.stack-p i { position: absolute; top: 0; width: 52px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--ink2); box-shadow: -4px 0 10px -4px rgba(0, 0, 0, .45); }
.stack-p i:nth-child(1) { right: 0; z-index: 3; }
.stack-p i:nth-child(2) { right: 22px; z-index: 2; transform: rotate(-4deg); }
.stack-p i:nth-child(3) { right: 44px; z-index: 1; transform: rotate(-8deg); }
.stack-p img { width: 100%; height: 100%; object-fit: cover; }

/* 分段、工具条、下拉、标签页 */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 22px; background: #e7e3da; margin-bottom: 8px; max-width: 100%; }
.seg a, .seg button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #4b4f54; white-space: nowrap; }
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg .on { background: var(--ink); color: #fff !important; }
.seg small { opacity: .7; font-weight: 400; }
.seg-days, .seg-season { display: flex; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.seg-days button { display: flex; flex-direction: column; align-items: center; line-height: 1.35; padding: 6px 14px; border-radius: 16px; }
.seg-wrap { display: flex; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.tools .seg { margin: 0; }
.pick { position: relative; }
.pick summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px; }
.pick summary small { color: var(--mute); font-weight: 400; }
.pick summary .i { width: 16px; height: 16px; color: var(--mute); }
.pick summary::-webkit-details-marker { display: none; }
.pick[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick[open] summary small, .pick[open] summary .i { color: #aab2ba; }
.pick > div { position: absolute; z-index: 15; top: calc(100% + 6px); right: 0; width: min(380px, 78vw); max-height: 60vh; overflow: auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35); }
.pick > div a { padding: 3px 12px; border-radius: 999px; background: var(--paper); font-size: 13.5px; }
.pick > div a:hover, .pick > div a.on { background: var(--hot); color: #fff; }
.pick select, .blk-h select { height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 0; font-weight: 700; font-size: 15.5px; color: var(--mute); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--hot); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 14px; }
.facts div { padding: 9px 14px; min-width: 0; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 0 -1px -1px; }
.facts dt { font-size: 12px; color: var(--mute); }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.facts dd a { color: #23498a; }
.facts dd a:hover { color: var(--hot); }
.facts dd small { color: var(--mute); font-weight: 400; }
.lede { font-size: 16.5px; line-height: 2; margin: 0 0 14px; max-width: 760px; }
.muted { color: var(--mute); font-size: 14px; }
.empty { color: var(--mute); padding: 26px 0; }
.empty a { color: var(--hot); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tags a { padding: 3px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.tags a:hover { border-color: var(--hot); color: var(--hot); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.people li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.people i { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font: 18px var(--d); font-style: normal; background: var(--ink); color: #fff; }
.people img { width: 100%; height: 100%; object-fit: cover; }
.people b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people small { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff1ec; color: #a8331b; font-size: 14px; margin: 4px 0 10px; }
.next small { color: #b8624f; }

/* 集列表、集号方块 */
.epl { list-style: none; margin: 0; padding: 0; }
.epl .row-n { font-size: 22px; }
.epl em { font-style: normal; font-size: 11.5px; background: var(--hot); color: #fff; border-radius: 6px; padding: 0 6px; margin-right: 6px; vertical-align: 2px; }
.epl em.soon { background: var(--line); color: var(--mute); }
.epl .soon .row { opacity: .6; }
.epl .cur .row { background: var(--card); }
.ep-ov { font-size: 13px; color: #55595e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.epn { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; margin-top: 10px; }
.epn a, .epn span { height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.epn a:hover { border-color: var(--hot); }
.epn a.on { background: var(--hot); color: #fff; border-color: var(--hot); }
.epn .soon { color: #b2ada3; border-style: dashed; }
.eps .seg { margin: 6px 6px 4px 0; }

/* 常见问题 */
.qa { margin: 34px 0 0; }
.qa h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.qa-i { border-bottom: 1px solid var(--line); }
.qa h3 { margin: 0; font-size: inherit; }
.qa h3 button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border: 0; background: none; text-align: right; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.qa h3 button i { flex: none; width: 20px; height: 20px; position: relative; }
.qa h3 button i::before, .qa h3 button i::after { content: ""; position: absolute; top: 9px; right: 3px; width: 14px; height: 2px; border-radius: 2px; background: var(--hot); transition: transform .2s; }
.qa h3 button i::after { transform: rotate(90deg); }
.qa-i.on h3 button i::after { transform: rotate(0); }
.qa-a p { margin: 0 0 14px; color: #44484d; }

/* 播放器舞台 */
.stage-pl { display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 50% 35%, #1f2830, #05070a 72%); }
.scr { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #05070a; overflow: hidden; }
.scr-in { position: absolute; inset: 0; background: #05070a center / cover no-repeat; }
.scr-in::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .65)); pointer-events: none; }
.scr-in:has(iframe)::before { display: none; }
.scr-in iframe, .scr iframe, .scr video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: #000; }
.scr-play { position: absolute; inset: 0; z-index: 2; 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: 84px; height: 84px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 12px rgba(255, 90, 60, .25); transition: transform .15s; }
.scr-play > span .i { width: 34px; height: 34px; margin-left: -4px; }
.scr-play:hover > span { transform: scale(1.06); }
.scr-play small { padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 13.5px; }
.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: #c3cad1; }
.scr-msg b { font-size: 19px; color: #fff; }
.scr-msg code { direction: ltr; font-size: 12px; word-break: break-all; }
.scr-re { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; }
.nx-cd { position: absolute; z-index: 5; bottom: 16px; left: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(16, 20, 24, .94); color: #fff; font-size: 14px; }
.nx-cd .nx-m { color: #aab2ba; }
.nx-cd b.n { font: 22px/1 var(--d); color: var(--hot); }
.nx-cd .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 24px; color: #fff; }
.now b { font-size: 17px; }
.now small { color: #aab2ba; }
.now-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--hot2); }
.now-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .5); } 70% { box-shadow: 0 0 0 9px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }
body.dim .flow, body.sp-dim .flow { opacity: .12; transition: opacity .3s; }
body.dim .rail, body.sp-dim .rail { opacity: .3; }

/* 播放页的内容流 */
.ctl { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-nav { display: inline-flex; gap: 8px; }
.srv { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.srv:empty::before { content: "جارٍ تحميل السيرفرات…"; color: var(--mute); font-size: 14px; }
.srv-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.srv-g > b { grid-column: 1 / -1; font-size: 13px; color: var(--mute); font-weight: 600; }
.srv-g button { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; text-align: right; gap: 0 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.srv-g button i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 13px; font-style: normal; font-weight: 700; }
.srv-g button span { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-g button small { color: var(--mute); font-size: 12px; }
.srv-g button:hover { border-color: var(--hot); }
.srv-g button.on { border-color: var(--hot); box-shadow: 0 0 0 2px var(--hot2); }
.srv-g button.on i { background: var(--hot); color: #fff; }
.srv-g button.miss, .srv-g button[data-off] { opacity: .5; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 10px; }
.zones span { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.zones small { display: block; color: var(--mute); font-size: 12px; }
.zones b { font: 24px/1.3 var(--d); }

/* 杂项 */
.cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 10px 0 0; }
.cloud a { font: var(--s, 17px) / 1.5 var(--d); color: var(--ink); }
.cloud a:hover { color: var(--hot); }
.cloud sup { font: 600 11px var(--f); color: var(--mute); margin-right: 3px; }
.big-s { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px; padding-right: 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.big-s input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; height: 44px; font-size: 16px; }
.big-s > .i { color: var(--mute); }
.sug { display: none; position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; left: 0; padding: 6px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); }
.sug.on { display: block; }
.sug .row { margin: 0 -8px; }
.sug .empty { padding: 12px 0; }
.sug-all { display: block; padding: 10px 0 6px; font-weight: 700; color: var(--hot); font-size: 14px; }
.hot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.hot span { color: var(--mute); font-size: 13px; margin-left: 6px; }
.hot a { padding: 3px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.hot a:hover { border-color: var(--hot); color: var(--hot); }
.pg { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
.pg a, .pg b, .pg span { min-width: 42px; height: 42px; padding: 0 6px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; }
.pg b { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg a:hover { border-color: var(--hot); }
.pg .pg-gap { border: 0; background: none; min-width: 20px; }
.more-p { margin: 14px 0 0; }
.about { margin: 40px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; }
.about h2 { margin: 0 0 4px; font-size: 17px; }
.about h3 { margin: 14px 0 2px; font-size: 15px; }
.about p { margin: 0; color: #4a4e53; font-size: 14px; }
.about .hot { margin-top: 12px; }
.lost { padding: 6vh 0 0; }
.lost > b { display: block; font: 120px/1 var(--d); color: var(--hot); }
.lost h1 { font: 36px/1.3 var(--d); margin: 10px 0 4px; color: var(--ink); }
.lost p { color: var(--mute); }
.doc { max-width: 780px; font-size: 16px; line-height: 2; }
.doc h2 { font-size: 20px; margin: 26px 0 6px; }
.doc h3 { font-size: 17px; margin: 20px 0 4px; }
.doc a { color: var(--hot); }
.doc ul, .doc ol { padding-right: 22px; }
.ad-slot { margin: 26px auto; text-align: center; max-width: 100%; overflow: hidden; }

/* 内容流的「尾巴」（代替页尾） */
.tail { margin-top: 56px; padding: 30px 48px 34px; background: var(--ink); color: #9aa3ab; font-size: 13.5px; }
.tail-b { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.tail-b .mk { width: 36px; height: 36px; }
.tail-b span { font: 26px/1.2 var(--d); }
.tail-b img { max-height: var(--logo-h); width: auto; }
.tail p { margin: 10px 0 0; max-width: 640px; }
.tail-l { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; }
.tail-l a:hover, .tail-kw a:hover { color: #fff; }
.tail-kw { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: #6b747c; }
.tail small { display: block; margin-top: 12px; color: #6b747c; }
.tmdb-attr b { color: #01b4e4; }

/* ---------- 搜索层 / 「المزيد」层 ---------- */
.layer { position: fixed; inset: 0; z-index: 60; background: rgba(10, 13, 16, .72); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 16px 16px; }
.layer-in { width: min(660px, 100%); max-height: 82vh; overflow: auto; background: var(--paper); border-radius: 22px; padding: 16px 20px 20px; box-shadow: 0 30px 80px -30px #000; }
.find-f { position: relative; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.find-f input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 20px; height: 46px; }
.find-f .sug { position: static; margin-top: 10px; box-shadow: none; padding: 4px 12px; }
.find-f { flex-wrap: wrap; }
.find-f .sug { flex-basis: 100%; }
.x { border: 0; background: var(--card); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.more-h { display: flex; align-items: center; justify-content: space-between; }
.more-h strong { font: 26px var(--d); }
.more-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.more-g a { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.more-g a .i { color: var(--hot); }
.more-g a:hover { border-color: var(--hot); }
.layer h3 { font-size: 14px; color: var(--mute); margin: 14px 0 6px; }
.more-t { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.more-t a { padding: 3px 12px; border-radius: 999px; background: var(--card); font-size: 13.5px; }
.more-t a:hover { background: var(--hot); color: #fff; }
.more-f { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 16px 0 0; font-size: 13px; color: var(--mute); }

.flash { position: fixed; z-index: 100; bottom: 30px; left: 50%; transform: translate(-50%, 20px); padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.flash.on { opacity: 1; transform: translate(-50%, 0); }
.cookie-bar { position: fixed; z-index: 80; left: 16px; right: calc(var(--rail) + 16px); bottom: 16px; max-width: 640px; margin-inline: auto; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); font-size: 14px; }
.cookie-bar a { color: var(--hot2); }
.cookie-bar .btn { height: 38px; flex: none; }

/* ---------- 宽屏 ---------- */
@media (min-width: 1600px) {
  .flow > main { padding-inline: 64px; }
  .tail { padding-inline: 64px; }
}
@media (max-width: 1250px) and (min-width: 1000px) {
  .rows-2 { grid-template-columns: minmax(0, 1fr); }
  .st-t { font-size: 40px; }
  .flow > main { padding-inline: 32px; }
  .tail { padding-inline: 32px; }
}

/* ---------- 手机 / 平板：舞台变成顶部大图，图标栏变成底部悬浮胶囊 ---------- */
@media (max-width: 999px) {
  body { font-size: 14.5px; }
  .rail { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; left: 12px; width: auto; height: 64px; padding: 0 8px; border-radius: 999px; flex-direction: row; align-items: center; overflow: visible; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); background: rgba(10, 13, 16, .94); backdrop-filter: blur(10px); }
  .rail .rail-logo { display: none; }
  .rail-l { flex-direction: row; flex: 1; min-width: 0; }
  .rail-l a { flex: 1; min-width: 0; }
  .rail-l a:not(.mo) { display: none; }
  .rail-l a span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-l a.on::before { right: 30%; left: 30%; top: auto; bottom: -2px; width: auto; height: 3px; border-radius: 3px; }
  .rail a, .rail button { padding: 6px 2px; font-size: 10.5px; }
  .rail-s { order: -1; margin: 0; }
  .rail-s span { display: none; }
  .rail-more { flex: none; width: 54px; }
  .split, .split-pl { margin: 0; display: block; }
  .stage { position: relative; height: 70vh; min-height: 440px; max-height: 620px; }
  .stage-brand { height: 46vh; min-height: 320px; }
  .st-in { padding: 24px 20px 46px; }
  .st-t { font-size: 36px; }
  .st-mk .mk { width: 64px; height: 64px; }
  .st-o { -webkit-line-clamp: 3; font-size: 14px; }
  .st-a { margin-top: 16px; }
  .btn { height: 44px; padding: 0 18px; }
  .btn-ic { width: 44px; padding: 0; }
  .flow { position: relative; z-index: 2; margin-top: -26px; border-radius: 24px 24px 0 0; background: var(--paper); }
  .flow > main { padding: 22px 18px 0; }
  .hello h1 { font-size: 32px; }
  .ph h1 { font-size: 30px; }
  .rows-2 { grid-template-columns: minmax(0, 1fr); }
  .row { gap: 12px; }
  .more-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tail { margin-top: 44px; padding: 26px 18px 110px; }
  /* 播放器：吸顶 */
  .stage-pl { position: sticky; top: 0; z-index: 30; height: auto; min-height: 0; max-height: none; display: block; }
  .stage-pl .now, .stage-pl .st-score { display: none; }
  .split-pl .flow { margin-top: 0; border-radius: 0; }
  .scr-play > span { width: 64px; height: 64px; }
  .scr-play > span .i { width: 26px; height: 26px; }
  .lost > b { font-size: 90px; }
  .layer { padding-top: 6vh; }
  .flash { bottom: 92px; width: max-content; max-width: calc(100% - 28px); }
  .cookie-bar { right: 16px; bottom: 90px; flex-direction: column; align-items: stretch; }
  .pick > div { position: fixed; top: auto; bottom: 90px; right: 12px; left: 12px; width: auto; }
}
@media (max-width: 420px) {
  .st-t { font-size: 30px; }
  .hello h1 { font-size: 28px; }
  .btn-gh { padding: 0 14px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-bg img { animation: none; }
  * { transition: none !important; }
}
