/* =====================================================================
   阿拉伯语站第二十版样式：دردركم（Dardarkom）· 社交「动态流」（原型 prototype/ar20）
   浅薰衣草底 + 白色卡片 + 橙粉紫渐变（故事圆圈、Logo）；正文 Beiruti，标题 Lemonada（/assets/fonts/，可变字重）
   ===================================================================== */
@font-face { font-family: 'Beiruti'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/beiruti-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Beiruti'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/beiruti-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lemonada'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/lemonada-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Lemonada'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/lemonada-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f4f2f8;
  --card: #fff;
  --line: #e8e4f0;
  --text: #1c1530;
  --mute: #6e6880;
  --soft: #f1edf9;
  --acc: #7b3ff2;
  --acc2: #ff3d81;
  --live: #f43f5e;
  --gold: #f5a524;
  --grad: linear-gradient(45deg, #ffb020, #ff3d81 50%, #7b3ff2);
  --r: 20px;
  --f: 'Beiruti', system-ui, sans-serif;
  --d: 'Lemonada', 'Beiruti', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--f); }
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.4; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .5); } 70% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }
.live { color: var(--live); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 三栏骨架 ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 640px) 330px; justify-content: center; gap: 28px; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 0; overflow-y: auto; scrollbar-width: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 16px; }
.brand b { font: 700 26px/1 var(--d); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: 6px; }
.side-l { display: flex; flex-direction: column; gap: 2px; }
.side-l a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; font-size: 17px; font-weight: 500; transition: background .15s; }
.side-l a:hover { background: var(--card); }
.side-l a.on { font-weight: 800; background: var(--card); box-shadow: 0 2px 10px -6px rgba(60, 30, 120, .3); }
.side-l a.on .i { color: var(--acc); stroke-width: 2.3; }
.side-s { margin: 14px 8px 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 10px 24px -12px #ff3d81; }
.side-f { margin: auto 0 0; padding: 18px 12px 0; font-size: 12.5px; color: var(--mute); line-height: 1.9; }
.side-f a:hover { color: var(--acc); }
.col { min-width: 0; padding: 18px 0 40px; }
.rail { position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto; scrollbar-width: none; padding: 18px 0 30px; display: flex; flex-direction: column; gap: 14px; }
.rail-f { font-size: 12.5px; color: var(--mute); margin: 0; padding: 0 6px; }
.top, .tabs-m { display: none; }

/* ---------- 卡片、按钮 ---------- */
.card, .post, .comp, .wg, .prof { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card { padding: 16px 18px; margin-bottom: 14px; }
.card h2, .wg h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.card h2 a, .wg h3 a { margin-right: auto; font-size: 13.5px; font-weight: 600; color: var(--acc); }
.wg { padding: 14px 16px; }
.wg h3 { font-size: 16.5px; }
.wg h3 .i { width: 19px; height: 19px; color: var(--acc); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.btn .i { width: 18px; height: 18px; }
.btn-go { background: var(--acc); color: #fff; }
.btn-go .i { fill: currentColor; stroke: none; }
.btn-go:hover { background: #6a2fe0; }
.btn-li { background: var(--card); border: 1px solid var(--line); }
.ic-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; position: relative; flex: none; }
.ic-btn:hover { background: var(--soft); }
.ic-bd { border: 1px solid var(--line); width: 44px; height: 44px; }
.badge { position: absolute; top: 4px; left: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--acc2); color: #fff; font: 700 11px/17px var(--f); font-style: normal; text-align: center; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--acc); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.fbtn .i { width: 16px; height: 16px; stroke-width: 2.4; }
.fbtn.on { background: var(--soft); color: var(--acc); }
.fbtn-xl { height: 44px; padding: 0 20px; font-size: 15.5px; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #ffe4ea; color: var(--live); font-weight: 800; font-size: 13px; margin-right: auto; flex: none; }

/* ---------- 头像 ---------- */
.av { --s: 44px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, hsl(var(--h, 260) 55% 55%), hsl(var(--h, 260) 50% 30%)); color: #fff; font: 700 calc(var(--s) * .42) var(--d); }
.av > span { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { --s: 38px; }
.av-sm { --s: 42px; }
.av-md { --s: 50px; }
.av-lg { --s: 74px; }
.av-st { --s: 72px; }
.av.ring { padding: 3px; background: var(--grad); }
.av.ring > span { border: 3px solid var(--card); background: linear-gradient(160deg, hsl(var(--h, 260) 55% 55%), hsl(var(--h, 260) 50% 30%)); }
.ring-live { background: var(--live) !important; }
.av-ic { background: var(--soft); color: var(--acc); }
.av-ic .i { width: 22px; height: 22px; }
.av-ic .mk { width: 30px; height: 30px; }
.av-sp { background: #e6f7ee; color: #12924f; }
.av-ch { background: var(--c); font: 800 14px var(--f); }
.cr { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font: 800 11px var(--f); flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* ---------- 首页：发帖框、故事、标签 ---------- */
.comp { padding: 16px 18px; margin-bottom: 14px; }
.comp h1 { margin: 0 0 12px; font: 700 24px/1.5 var(--d); }
.comp-s { width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border: 0; border-radius: 999px; background: var(--soft); color: var(--mute); font-size: 16px; text-align: right; }
.comp-s span { flex: 1; }
.comp-s:hover { background: #e9e3f7; }
.comp-q { display: flex; gap: 4px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.comp-q a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: var(--mute); }
.comp-q a:hover { background: var(--soft); color: var(--acc); }
.comp-q a:nth-child(1) .i { color: #7b3ff2; }
.comp-q a:nth-child(2) .i { color: #ff3d81; }
.comp-q a:nth-child(3) .i { color: #12924f; }
.comp-q a:nth-child(4) .i { color: #f5a524; }
.stories { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 10px; margin-bottom: 14px; }
.st-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.st { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; scroll-snap-align: start; }
.st > span:last-child { width: 100%; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.st.seen .ring { background: #d6d1e0; }
.st:hover .av { transform: scale(1.04); }
.st .av { transition: transform .15s; }
.st-m .cr { width: 100%; height: 100%; font-size: 15px; box-shadow: none; }
.ftabs { position: sticky; top: 0; z-index: 10; display: flex; background: rgba(244, 242, 248, .92); backdrop-filter: blur(10px); margin: 0 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ftabs button { flex: 1 0 auto; min-width: 80px; padding-inline: 14px !important; border: 0; background: none; padding: 12px 8px; font-weight: 700; color: var(--mute); border-bottom: 3px solid transparent; white-space: nowrap; }
.ftabs button.on { color: var(--text); border-bottom-color: var(--acc); }

/* ---------- 帖子 ---------- */
.feed { display: flex; flex-direction: column; gap: 14px; }
.post { overflow: hidden; }
.ph { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.ph-b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.ph-b b { text-align: right; font-weight: 800; font-size: 16px; }
.ph-b a:hover b { color: var(--acc); }
.ph-b small { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, hsl(var(--h) 45% 45%), hsl(var(--h) 45% 20%)); overflow: hidden; }
.pm > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pm:hover > img { transform: scale(1.03); }
.pm-po { aspect-ratio: 4 / 3; }
.pm-bl { position: absolute; inset: -20px; background: center / cover; filter: blur(24px) brightness(.7); }
.pm-p { position: relative; height: 100% !important; width: auto !important; margin: 0 auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.pm > i { display: grid; place-items: center; height: 100%; font: 700 26px var(--d); color: #fff; font-style: normal; padding: 20px; text-align: center; }
.pm-tag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(20, 12, 40, .7); color: #fff; font-size: 13.5px; font-weight: 700; backdrop-filter: blur(6px); }
.pm-tag .dot { background: #4ade80; animation: none; }
.pm-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--acc); opacity: 0; transform: scale(.8); transition: .2s; }
.pm-play .i { fill: currentColor; stroke: none; width: 26px; height: 26px; margin-left: -3px; }
.pm:hover .pm-play { opacity: 1; transform: none; }
.pa { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pa-go { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--acc); color: #fff; font-weight: 800; font-size: 14.5px; margin-left: auto; white-space: nowrap; }
.pa-go .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.pa-b { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: none; color: var(--mute); font-weight: 600; font-size: 14px; white-space: nowrap; }
.pa-b:hover { background: var(--soft); color: var(--text); }
.pa-b.on { color: var(--acc2); }
.pa-b.on .i { fill: currentColor; }
.pa-b[data-save].on { color: var(--acc); }
.pc { padding: 10px 16px 14px; }
.pc p { margin: 0; }
.pc h1 { margin: 0 0 6px; font: 700 21px/1.5 var(--d); }
.pc a:not(.tags a) { color: var(--acc); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px !important; }
.tags a { color: var(--acc); font-weight: 700; font-size: 14.5px; }
.tags a:hover { text-decoration: underline; }
.car-nav { display: flex; gap: 4px; }
.car-nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.car-nav .i { width: 16px; height: 16px; }
.car { display: flex; gap: 10px; padding: 0 14px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car-i { flex: none; width: 140px; position: relative; scroll-snap-align: start; }
.car-i img, .car-i > i { width: 140px; height: 210px; border-radius: 14px; object-fit: cover; background: linear-gradient(160deg, hsl(var(--h) 45% 45%), hsl(var(--h) 45% 20%)); display: grid; place-items: center; color: #fff; font-style: normal; text-align: center; padding: 8px; }
.car-n { position: absolute; top: 6px; right: 6px; min-width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; font: 700 15px/32px var(--d); text-align: center; }
.car-i span { display: block; margin-top: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 4 / 3; }
.mos span { overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 45% 45%), hsl(var(--h) 45% 20%)); }
.mos span:first-child { grid-row: span 2; }
.mos img { width: 100%; height: 100%; object-fit: cover; }
.fol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 14px 16px; }
.fol-i { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 14px 6px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.fol-i b { font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fol-i a { max-width: 100%; }
.fol-i small { color: var(--mute); font-size: 12.5px; margin-bottom: 4px; }
.more-p { text-align: center; margin: 16px 0 0; }
.about { margin-top: 18px; padding: 16px 18px; border-radius: var(--r); background: var(--soft); }
.about h2 { margin: 0 0 4px; font-size: 17px; }
.about p { margin: 0; color: var(--mute); font-size: 14.5px; }

/* ---------- 比赛 ---------- */
.pm-sb { display: block; background: linear-gradient(135deg, #0e3b2a, #146c45); color: #fff; }
.sb { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 22px 16px 10px; }
.sb-t { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.sb-t .cr { width: 56px; height: 56px; font-size: 15px; }
.sb-t b { font-size: 16px; }
.sb strong { font: 700 36px/1 var(--d); }
.sb .sb-k { font-size: 28px; }
.sb-ev { grid-column: 1 / -1; text-align: center; font-size: 20px; }
.sb-s { grid-column: 1 / -1; margin: 0; text-align: center; font-weight: 700; font-size: 14px; color: #c8f0da; }
.sb-s .live { color: #ffb3c0; }
.sb-xl { background: linear-gradient(135deg, #0e3b2a, #146c45); color: #fff; padding-bottom: 16px; }
.post-m.s-ft { opacity: .8; }
.mm { display: block; padding: 8px 0; border-top: 1px solid var(--line); }
.mm:first-of-type { border-top: 0; }
.mm-l { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mute); margin-bottom: 4px; }
.mm.s-live .mm-l { color: var(--live); font-weight: 700; }
.mm-r { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.mm-r .cr { width: 24px; height: 24px; font-size: 8.5px; }
.mm-r b { flex: 1; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-r em { font: 700 15px var(--d); font-style: normal; }
.mm:hover b { color: var(--acc); }
.zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.zones span { background: var(--soft); border-radius: 14px; padding: 10px; text-align: center; }
.zones small { display: block; color: var(--mute); font-size: 13px; }
.zones b { font: 700 20px var(--d); }

/* ---------- 账号行、热门、通知 ---------- */
.acc { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 14px; min-width: 0; }
.acc:hover { background: var(--soft); }
.acc.on { background: var(--soft); }
.acc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.acc-b b { text-align: right; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-b small { color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-sm { padding: 6px 2px; }
.acc-sm .acc-b b { font-size: 14.5px; }
.rank .rk { width: 30px; text-align: center; font: 700 18px var(--d); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 800; }
.score .i { width: 16px; height: 16px; fill: var(--gold); stroke: none; }
.tr { display: flex; flex-direction: column; padding: 8px 2px; border-top: 1px solid var(--line); line-height: 1.4; }
.tr:first-of-type { border-top: 0; }
.tr small { color: var(--mute); font-size: 12.5px; }
.tr b { font-weight: 800; }
.tr:hover b { color: var(--acc); }
.notes { padding: 6px 8px; }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 14px; position: relative; }
.note:hover { background: var(--soft); }
.note.unread { background: #f6f1ff; }
.note.unread::before { content: ''; position: absolute; left: 8px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--acc); }
.note-b { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.note-b small { color: var(--mute); font-size: 13px; }
.note time { font: 700 15px var(--d); color: var(--acc); margin-left: 14px; }

/* ---------- 探索方格 ---------- */
.xgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 4px; border-radius: 16px; overflow: hidden; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 45% 45%), hsl(var(--h) 45% 20%)); }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile > i { display: grid; place-items: center; height: 100%; color: #fff; font-style: normal; font-weight: 700; padding: 10px; text-align: center; }
.tile:hover img { transform: scale(1.05); }
.tile-b { position: absolute; inset: auto 0 0 0; padding: 30px 10px 8px; background: linear-gradient(transparent, rgba(16, 8, 32, .85)); color: #fff; display: flex; flex-direction: column; line-height: 1.3; opacity: 0; transition: opacity .2s; }
.tile:hover .tile-b, .tile-xl .tile-b { opacity: 1; }
.tile-b b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-b small { font-size: 12.5px; opacity: .85; }
.tile-r { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: rgba(16, 8, 32, .65); color: #fff; font-style: normal; font-size: 12.5px; font-weight: 700; }
.tile-r .i { width: 12px; height: 12px; fill: var(--gold); stroke: none; }
.fh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fh h1 { margin: 0; font: 700 26px/1.45 var(--d); }
.fh p { margin: 0; color: var(--mute); font-size: 14.5px; }
.fh .ic-btn { background: var(--card); border: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.chips a { flex: none; padding: 6px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.chips a:hover { border-color: var(--acc); color: var(--acc); }
.chips a.on { background: var(--text); color: #fff; border-color: var(--text); }
.chips-s { margin-bottom: 10px; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.sortbar > span { color: var(--mute); font-size: 14px; margin-left: auto; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.seg a { padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--mute); }
.seg a.on { background: var(--acc); color: #fff; }
select.go { height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; }
.pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }
.pg a, .pg b { display: inline-flex; align-items: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 12px; justify-content: center; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }
.pg b { background: var(--acc); color: #fff; border-color: var(--acc); }
.pg .i { width: 16px; height: 16px; }
.empty { color: var(--mute); text-align: center; padding: 30px 0; }
.sub-h { font-size: 18px; margin: 18px 0 10px; }

/* ---------- 主页（详情） ---------- */
.prof { overflow: hidden; margin-bottom: 14px; }
.cover { aspect-ratio: 3 / 1.15; background: linear-gradient(160deg, hsl(var(--h) 45% 45%), hsl(var(--h) 45% 20%)); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-po img { filter: blur(18px) brightness(.8); transform: scale(1.2); }
.prof-in { padding: 0 18px 18px; position: relative; }
.prof-av { display: block; width: 128px; height: 180px; margin-top: -96px; border-radius: 18px; border: 4px solid var(--card); overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 45% 45%), hsl(var(--h) 45% 20%)); box-shadow: 0 14px 30px -14px rgba(30, 10, 70, .5); position: relative; }
.prof-av img { width: 100%; height: 100%; object-fit: cover; }
.prof-av i { display: grid; place-items: center; height: 100%; color: #fff; font: 700 40px var(--d); font-style: normal; }
.prof-act { position: absolute; top: 14px; left: 18px; display: flex; gap: 8px; }
.prof h1 { margin: 12px 0 0; font: 700 26px/1.45 var(--d); }
.prof-en { margin: 0; color: var(--mute); text-align: right; }
.prof-k { margin: 4px 0 0; color: var(--mute); font-size: 14.5px; }
.stats { list-style: none; display: flex; gap: 0; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; }
.stats li { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-left: 1px solid var(--line); }
.stats li:last-child { border-left: 0; }
.stats b { font: 700 17px/1.6 var(--d); }
.stats small { color: var(--mute); font-size: 12.5px; }
.bio { margin: 14px 0 0; }
.next { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: #f6f1ff; color: var(--acc); font-weight: 700; font-size: 14.5px; }
.ptabs { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.ptabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; padding: 9px 10px; border-radius: 12px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.ptabs button .i { width: 18px; height: 18px; }
.ptabs button.on { background: var(--soft); color: var(--acc); }
.epgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; border-radius: 16px; overflow: hidden; }
.epc { position: relative; aspect-ratio: 1; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h) 45% 45%), hsl(var(--h) 45% 20%)); color: #fff; }
.epc img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.65); transition: transform .3s; }
.epc:hover img { transform: scale(1.06); filter: brightness(.5); }
.epc b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 40px var(--d); }
.epc small { position: absolute; bottom: 8px; right: 10px; font-size: 12.5px; font-weight: 600; }
.epc em { position: absolute; top: 8px; left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--acc2); font-style: normal; font-size: 12px; font-weight: 800; }
.pane { margin-bottom: 14px; }
.pane > .acc { background: var(--card); border: 1px solid var(--line); margin-bottom: 8px; padding: 10px 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 12px; }
.facts div { padding: 10px 14px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0 0 -1px -1px; min-width: 0; }
.facts dt { font-size: 12.5px; color: var(--mute); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.qa h2 { margin: 0 0 4px; font-size: 18px; }
.qa details { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
.qa p { margin: 0 0 10px; color: var(--mute); }
.cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cast span { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.cast i { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 22px var(--d); font-style: normal; margin-bottom: 6px; }
.cast b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cast small { color: var(--mute); font-size: 12.5px; }
.prof-c .mos-xl { aspect-ratio: 3 / 1.4; }
.prof-c h1 { margin-top: 14px; }

/* ---------- 播放 ---------- */
.post-w { margin-bottom: 14px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0c0818 center / cover no-repeat; display: grid; place-items: center; }
.player::before { content: ''; position: absolute; inset: 0; background: rgba(12, 8, 24, .45); }
.player-sp { background: linear-gradient(135deg, #0e3b2a, #146c45); }
.player-tv { background: radial-gradient(circle at 50% 40%, #3b2470, #0c0818 75%); }
.pl-go { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 0; background: none; color: #fff; font-weight: 700; }
.pl-go .i { width: 78px; height: 78px; padding: 22px; border-radius: 50%; background: var(--grad); fill: #fff; stroke: none; box-shadow: 0 0 0 10px rgba(255, 61, 129, .25); }
.pl-go span { padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 14px; }
.pl-demo { position: relative; display: flex; flex-direction: column; align-items: center; color: #fff; }
.pl-demo span { color: #c8bfe0; font-size: 14px; }
.srv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.srv button { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 0 8px; text-align: right; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 700; }
.srv button b { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: 13px; }
.srv button small { color: var(--mute); font-size: 12px; font-weight: 500; }
.srv button.on { border-color: var(--acc); background: #f6f1ff; }
.srv button.on b { background: var(--acc); color: #fff; }
.epn { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.epn a { height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); font-weight: 700; }
.epn a:hover { background: #e9e3f7; }
.epn a.on { background: var(--acc); color: #fff; }

/* ---------- 搜索、探索、空状态 ---------- */
.sbig { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 56px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.sbig input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 17px; height: 100%; }
.sbig .i { color: var(--mute); }
h1.sr { font: 700 22px/1.5 var(--d); margin: 0 0 10px; }
.hot { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hot a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.hot a .i { width: 16px; height: 16px; color: var(--acc2); }
.hashes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
.hashes a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: var(--soft); line-height: 1.4; }
.hashes a b { color: var(--acc); font-weight: 800; }
.hashes a small { color: var(--mute); font-size: 12.5px; }
.hashes a:hover { background: #e9e3f7; }
.empty-c { text-align: center; padding: 36px 18px; }
.empty-c > .i { width: 54px; height: 54px; color: var(--acc); }
.empty-c h2 { justify-content: center; margin: 8px 0 4px; }
.empty-c p { color: var(--mute); margin: 0 0 16px; }
.lost { text-align: center; padding: 30px 18px; }
.lost > b { display: block; font: 700 90px/1.3 var(--d); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost h1 { margin: 0; font-size: 24px; }
.lost p { color: var(--mute); }
.doc .pc { padding: 0 18px 20px; font-size: 17px; line-height: 2; }

/* ---------- 电视台 ---------- */
.ring-on { background: var(--acc) !important; }
.tv-all, .tv-flag { background: var(--soft) !important; color: var(--acc); font-size: 34px; }
.tv-all .i { width: 30px; height: 30px; }
.av-ch > span { background: var(--c); font: 800 13px var(--f); }
.tvc-g h2 { font-size: 17px; }

/* ---------- 搜索层、故事、提示 ---------- */
.layer { position: fixed; inset: 0; z-index: 60; background: rgba(28, 21, 48, .55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; }
.layer-in { width: min(600px, 100%); max-height: 84vh; overflow: auto; background: var(--card); border-radius: 24px; padding: 14px 18px 18px; box-shadow: 0 30px 80px -30px rgba(30, 10, 70, .6); }
.find-f { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--soft); }
.find-f input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 18px; }
#find-r { margin-top: 8px; }
.layer h3 { font-size: 15px; color: var(--mute); margin: 14px 0 8px; }
.story { position: fixed; inset: 0; z-index: 80; background: #0c0818; display: flex; justify-content: center; }
.sv { position: relative; width: min(440px, 100%); height: 100%; background: linear-gradient(160deg, hsl(var(--h) 45% 40%), #0c0818); overflow: hidden; color: #fff; }
.sv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .5), transparent 25%, transparent 50%, rgba(0, 0, 0, .85)); pointer-events: none; }
.sv-bars { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; position: relative; }
.sv-bars i.done { background: #fff; }
.sv-bars i.run::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: right; animation: bar 5s linear forwards; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sv-h { position: absolute; z-index: 3; top: 22px; left: 10px; right: 12px; display: flex; align-items: center; gap: 10px; }
.sv-h span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sv-h small { opacity: .8; font-size: 13px; }
.sv-h .ic-btn { color: #fff; }
.sv-prev, .sv-next { position: absolute; z-index: 2; top: 0; bottom: 0; width: 40%; border: 0; background: none; }
.sv-prev { right: 0; }
.sv-next { left: 0; }
.sv-f { position: absolute; z-index: 3; inset: auto 0 0 0; padding: 24px 20px 34px; }
.sv-k { margin: 0; color: #ffd27a; font-weight: 800; }
.sv-t { margin: 2px 0 14px; font: 700 30px/1.4 var(--d); }


/* =====================================================================
   正式站补充（原型里没有的：面包屑、标签、播放器、服务器、问答、EPG、页尾、联想、Cookie 等）
   ===================================================================== */
.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(--acc); color: #fff; font-weight: 700; }
.skip:focus { top: 0; }
.i.fill, .fill { fill: currentColor; stroke: none; }
.brand img { height: var(--logo-h); width: auto; }
.mk { flex: none; display: block; }
.muted { color: var(--mute); font-size: 14.5px; }
.lede { margin: 10px 0 0; color: var(--mute); }
.btn-gh { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-gh:hover { background: rgba(255, 255, 255, .24); }
.btn-li:hover { border-color: var(--acc); color: var(--acc); }
main { min-width: 0; }

/* 面包屑 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 13px; color: var(--mute); margin: 0 4px 10px; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs a:hover { color: var(--acc); }
.crumbs span { color: var(--text); font-weight: 600; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 卡片标题 h2.ch：标题 + 小字 + 「الكل」 */
.ch { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; font-size: 18px; font-weight: 800; }
.ch small { font-size: 13px; font-weight: 500; color: var(--mute); }
.ch a { margin-right: auto; font-size: 13.5px; font-weight: 600; color: var(--acc); }
.card > .acc, .card > .acc-a { margin: 0 -6px; }
.wg .acc { margin: 0 -4px; }

/* 账号行：外层 .acc（div）里面是 a.acc-a；频道行本身就是 a.acc.acc-a */
.acc-a { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
div.acc > .acc-a:hover .acc-b b { color: var(--acc); }
div.acc:hover { background: none; }
div.acc { padding: 6px 4px; }
.acc .score { margin-left: 4px; }
.top .acc { border-radius: 0; }

/* 标签 */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px !important; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 700; color: #4a3f66; }
.pill-q { background: var(--text); color: #fff; }
.pill-sub { background: #ece6ff; color: #5a2fd0; }
.pill-dub { background: #fff0db; color: #9a5b00; }
.pill-ar { background: #e2f6ea; color: #137a42; }
.pill-fin { background: #ffe4ea; color: var(--live); }
.pill-m { background: var(--soft); }
.post .pill-live { margin-right: auto; }

/* 帖子补充 */
.post-c .car-nav { margin-right: auto; }
.pm > img.pm-p { object-fit: contain; }
.post .pc p + p { margin-top: 6px; }
.feed-top { margin-bottom: 14px; }
.post-w .ph-en { margin: 0 0 4px; color: var(--mute); font-size: 14px; text-align: right; }
.pc .ctl { margin-top: 12px; }
.ep-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-nav .btn { height: 40px; padding: 0 16px; font-size: 14.5px; }
.ep-nav .btn .i { width: 16px; height: 16px; }
.soon-box { text-align: center; }
.soon-box b { font: 700 22px/1.4 var(--d); color: var(--acc); }
.soon-box p { margin: 6px 0 0; color: var(--mute); }

/* 方格补充 */
.xgrid-flat .tile-b { opacity: 1; }
.tile-n { position: absolute; top: 8px; right: 8px; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 10px; background: var(--grad); color: #fff; font: 700 15px/32px var(--d); text-align: center; }
.tile .prog { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(255, 255, 255, .3); }
.tile .prog i { display: block; height: 100%; background: var(--acc2); }
.card .xgrid { margin-top: 4px; }

/* 主页补充 */
.prof-act .btn { height: 40px; padding: 0 16px; font-size: 14.5px; }
.prof-act .ic-btn { background: var(--card); border: 1px solid var(--line); }
.prof-k a { color: var(--acc); font-weight: 600; }
.prof .tags { margin-top: 10px !important; }
.bio { white-space: normal; }
.next a { color: inherit; text-decoration: underline; }
.pane > .card { margin-bottom: 12px; }
.pane .facts { margin-bottom: 12px; }
.facts a { color: var(--acc); }
.cast { list-style: none; margin: 0; padding: 0; }
.cast li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.cast i { overflow: hidden; }
.cast i img { width: 100%; height: 100%; object-fit: cover; }
.card .cast li { background: var(--soft); border-color: transparent; }
.card .epgrid, .card .epn { margin-top: 4px; }
.epc.soon { opacity: .55; }
.epc.soon img { filter: grayscale(1) brightness(.5); }
.epc.on { box-shadow: inset 0 0 0 4px var(--acc2); }
a.epc.soon { opacity: .8; }
.epn .soon { height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px dashed var(--line); color: var(--mute); font-weight: 700; }
.epn a.soon { background: none; color: var(--acc); }
.chips button { flex: none; padding: 6px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.chips button:hover { border-color: var(--acc); color: var(--acc); }
.chips button.on { background: var(--text); color: #fff; border-color: var(--text); }
.card .chips button { background: var(--soft); border-color: transparent; }
.card .chips button.on { background: var(--text); color: #fff; }
.eps-body { transition: opacity .2s; }

/* 常见问题 */
.qa { margin-bottom: 14px; }
.qa-i { border-top: 1px solid var(--line); }
.qa-i h3 { margin: 0; font-size: 16px; }
.qa-i h3 button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border: 0; background: none; text-align: right; font-weight: 700; }
.qa-i h3 .i { width: 18px; height: 18px; color: var(--mute); transition: transform .2s; }
.qa-i.on h3 .i { transform: rotate(180deg); color: var(--acc); }
.qa-a p { margin: 0 0 12px; color: var(--mute); }

/* 列表：排序 + 下拉筛选 */
.pick { position: relative; }
.pick summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.pick summary::-webkit-details-marker { display: none; }
.pick summary small { color: var(--mute); font-weight: 500; }
.pick summary .i { width: 15px; height: 15px; }
.pick[open] summary { border-color: var(--acc); color: var(--acc); }
.pick > div { position: absolute; z-index: 25; top: calc(100% + 6px); right: 0; width: 260px; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(30, 10, 70, .45); }
.pick > div a { padding: 4px 12px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 14px; }
.pick > div a.on { background: var(--acc); color: #fff; }
select.go-sel { height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 600; max-width: 100%; }
.pick select.go-sel { width: 100%; margin-top: 4px; }
.pg-gap { display: inline-flex; align-items: center; color: var(--mute); padding: 0 4px; }

/* 首页 */
.comp-s .mk { width: 38px; height: 38px; }
.home .comp h1 { font-size: 22px; }
.stories .st-row { padding: 2px; }
.st .av-st > span { font-size: 26px; }
.about .hot { margin: 10px 0 0; }

/* 播出表（EPG） */
.epg .ftabs { position: static; background: none; }
.stats-card { background: var(--card); margin: 0 0 14px; }
.note-b > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-b b { font-weight: 800; }
.epg-day .more-p { margin: 8px 0 6px; }
.epg-day .muted { text-align: center; font-size: 13px; margin: 6px 0; }

/* 搜索联想 */
.find-f { position: relative; flex-wrap: wrap; height: auto; min-height: 52px; }
.find-f > input { height: 52px; }
.sug { display: none; flex-basis: 100%; margin: 0 -6px 8px -16px; padding: 6px 10px; background: var(--card); border-radius: 18px; }
.sug.on { display: block; }
.sug .acc { padding: 6px 4px; }
.sug .empty { padding: 12px 0; font-size: 14px; }
.sug-all { display: block; padding: 8px 4px 4px; font-weight: 700; color: var(--acc); font-size: 14px; }
.sbig { position: relative; }
.sbig .sug { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; left: 0; margin: 0; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(30, 10, 70, .45); }
.sbig button { flex: none; }

/* 播放器（player.js / sports.js） */
.scr { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #0c0818; overflow: hidden; }
.scr-in { position: absolute; inset: 0; background: #0c0818 center / cover no-repeat; }
.scr-in::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 8, 24, .25), rgba(12, 8, 24, .7)); 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: 82px; height: 82px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 12px rgba(255, 61, 129, .25); transition: transform .15s; }
.scr-play > span .i { width: 32px; height: 32px; margin-left: -4px; fill: #fff; stroke: none; }
.scr-play:hover > span { transform: scale(1.06); }
.scr-play small { padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .5); font-size: 13.5px; font-weight: 700; }
.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: #d8d0ee; }
.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; max-width: calc(100% - 32px); padding: 14px 16px; border-radius: 16px; background: rgba(20, 12, 40, .94); color: #fff; font-size: 14px; }
.nx-cd .nx-m { color: #bdb3d8; }
.nx-cd b.n { font: 700 22px/1 var(--d); color: #ff8fb6; }
.nx-cd .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.srv { display: flex; flex-direction: column; gap: 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: 8px 12px; border-radius: 14px; 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(--soft); 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(--acc); }
.srv-g button.on { border-color: var(--acc); background: #f6f1ff; }
.srv-g button.on i { background: var(--acc); color: #fff; }
.srv-g button.miss, .srv-g button[data-off] { opacity: .5; }
body.dim, body.sp-dim { background: #110b1e; }
body.dim .side, body.dim .rail, body.dim .card, body.dim .crumbs, body.dim .top, body.dim .tabs-m, body.dim .foot, body.dim .sub-h, body.dim .xgrid,
body.sp-dim .side, body.sp-dim .rail, body.sp-dim .card, body.sp-dim .crumbs, body.sp-dim .top, body.sp-dim .tabs-m, body.sp-dim .foot { opacity: .1; transition: opacity .3s; }

/* 记分牌、迷你比分（每页右栏都有） */
.sb strong { display: flex; align-items: center; gap: 10px; }
.sb strong i { font-style: normal; opacity: .5; }
.sb-ev { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sb-ev .i { width: 26px; height: 26px; }
.crest { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--c, #445); color: #fff; font: 800 10px/1 var(--f); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.crest-img { background: transparent; box-shadow: none; border-radius: 0; }
.crest-img img { width: 100%; height: 100%; object-fit: contain; }
.crest-xl { width: 64px; height: 64px; font-size: 16px; }
.sb .crest-img.crest-xl { background: rgba(255, 255, 255, .1); border-radius: 50%; padding: 8px; }
.mm-r .crest { width: 24px; height: 24px; font-size: 8.5px; }
.mm-r .i { width: 18px; height: 18px; color: var(--acc); }
.mm .dot { width: 7px; height: 7px; }
.wg .tvc { padding: 6px 2px; }
.av-logo > span { background: #fff !important; }
.av-logo img { object-fit: contain; padding: 4px; }
.av-ch > span { color: #fff; }

/* 页尾 */
.foot { margin-top: 26px; padding: 18px 6px 0; border-top: 1px solid var(--line); color: var(--mute); font-size: 13.5px; display: flex; flex-direction: column; gap: 8px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot nav a { font-weight: 600; color: var(--text); }
.foot nav a:hover { color: var(--acc); }
.foot .foot-kw a { color: var(--acc); font-weight: 600; }
.foot small { font-size: 12.5px; }
.tmdb-attr b { color: #01b4e4; }

/* 提示、Cookie */
.flash { position: fixed; z-index: 100; bottom: 30px; left: 50%; transform: translate(-50%, 20px); max-width: calc(100% - 28px); padding: 10px 20px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; }
.flash.on { opacity: 1; transform: translate(-50%, 0); }
.cookie-bar { position: fixed; z-index: 70; left: 16px; bottom: 16px; max-width: 520px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 20px; background: var(--text); color: #fff; box-shadow: 0 20px 50px -20px rgba(30, 10, 70, .6); font-size: 14px; }
.cookie-bar a { color: #ffb3cf; }
.cookie-bar .btn { height: 38px; flex: none; }

/* 静态页、404、我的片单 */
.doc .pc h2 { font: 700 19px/1.6 var(--d); margin: 18px 0 6px; }
.doc .pc p, .doc .pc li { margin: 0 0 10px; }
.doc .pc a { color: var(--acc); }
.mail { color: var(--acc); font-weight: 700; }
.lost .xgrid { margin-top: 18px; }
.lost .sbig { max-width: 440px; margin: 0 auto; }
.empty-c .btn { margin: 0 4px; }

@media (max-width: 719px) {
  .crumbs { margin: 0 12px 8px; }
  .crumbs span { max-width: 180px; }
  .qa, .stats-card { border-radius: 0; border-left: 0; border-right: 0; }
  .foot { padding: 16px 14px 0; }
  .cookie-bar { left: 10px; right: 10px; bottom: 80px; flex-direction: column; align-items: stretch; }
  .flash { bottom: 84px; }
  .scr-play > span { width: 64px; height: 64px; }
  .scr-play > span .i { width: 26px; height: 26px; }
  .nx-cd { left: 8px; bottom: 8px; padding: 10px 12px; font-size: 13px; }
  .pick > div { width: min(260px, calc(100vw - 24px)); }
  .sortbar .pick:last-child > div, .sortbar .pick:nth-last-child(2) > div { right: auto; left: 0; }
  .ep-nav .btn { flex: 1; }
  .feed-top, .card > .acc { margin-left: 0; margin-right: 0; }
  .epg .chips, .epg .ftabs { margin-left: 12px; margin-right: 12px; }
  .srv-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crest-xl { width: 50px; height: 50px; }
  .top .brand .mk { width: 32px; height: 32px; }
  .top .brand img { height: var(--logo-h-m); }
}

/* ---------- 中等宽度：导航只剩图标，再窄去掉右侧小部件 ---------- */
@media (max-width: 1279px) {
  .shell { grid-template-columns: 80px minmax(0, 640px) 310px; gap: 20px; }
  .side-l a span, .brand b, .side-f { display: none; }
  .side-l a { justify-content: center; padding: 12px; }
  .brand { justify-content: center; padding: 6px 0 16px; }
  .side-s { font-size: 0; gap: 0; width: 52px; height: 52px; margin: 14px auto 0; }
}
@media (max-width: 1039px) {
  .shell { grid-template-columns: 80px minmax(0, 640px); }
  .rail { display: none; }
}

/* ---------- 手机：顶部条 + 底部标签栏 ---------- */
@media (max-width: 719px) {
  body { font-size: 15.5px; }
  .shell { display: block; padding: 0; }
  .side { display: none; }
  .col { padding: 8px 0 90px; }
  .top { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; height: 58px; padding: 0 10px 0 4px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .top .brand { padding: 0 6px; }
  .top .brand b { font-size: 22px; display: block; }
  .top-x { display: flex; gap: 2px; }
  .ftabs { top: 58px; }
  .tabs-m { display: flex; position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); align-items: center; }
  .tabs-m a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; font-weight: 600; color: var(--mute); }
  .tabs-m a.on { color: var(--acc); }
  .tabs-m a.on .i { stroke-width: 2.4; }
  .tab-plus { flex: none; width: 52px; height: 52px; margin: -24px 6px 0; border: 4px solid var(--bg); border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px #ff3d81; }
  .card, .post, .comp, .stories, .prof, .ptabs, .qa, .facts, .about { border-radius: 0; border-left: 0; border-right: 0; }
  .feed { gap: 8px; }
  .comp, .stories, .card { margin-bottom: 8px; }
  .fh, .chips, .sortbar, .sbig, h1.sr, .hot, .sub-h, .ptabs, .pane, .more-p { margin-left: 12px; margin-right: 12px; }
  .ptabs { border-radius: 16px; border: 1px solid var(--line); }
  .pane > .acc { margin-left: 0; margin-right: 0; }
  .xgrid, .epgrid { border-radius: 0; gap: 2px; }
  .pa { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pa-b span { display: none; }
  .fol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prof-av { width: 104px; height: 146px; margin-top: -74px; }
  .prof-act { position: static; margin-top: 12px; flex-wrap: wrap; }
  .comp h1 { font-size: 21px; }
  .fh h1, .prof h1 { font-size: 22px; }
  .sb strong { font-size: 30px; }
  .sb-t .cr { width: 46px; height: 46px; }
  .layer { padding-top: 3vh; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
