@font-face { font-family: 'Watad'; src: url('/fonts/Watad.otf') format('opentype'); font-display: swap; }
/* theme tokens — dark is the house look; light is a full white edition */
:root, [data-theme=dark], .feed-body, .stage, .tile {
  --bg: #0F0E0C; --surface: #1C1A16; --line: #2A2722; --line2: #3A362F;
  --fg: #F2EDE4; --soft: #CFC7B8; --muted: #B8B0A2; --accent: #FF5A4E; --on-accent: #0F0E0C; --ok: #7FD1B9;
  --ok-bg: #102620; --ok-line: #1f4a3e; --bad: #ff8a80; --bad-bg: #2a1513; --bad-line: #5a2520;
  --scrim: rgba(15,14,12,.6); color-scheme: dark;
}
[data-theme=light] {
  --bg: #FFFFFF; --surface: #F4F1EC; --line: #E8E2D8; --line2: #D3CABB;
  --fg: #14120F; --soft: #3E3830; --muted: #6B6458; --accent: #D93A2E; --on-accent: #FFFFFF; --ok: #1E7A5F;
  --ok-bg: #E6F4EE; --ok-line: #B5DCCB; --bad: #B3261E; --bad-bg: #FCEBEA; --bad-line: #F2C3BF;
  --scrim: rgba(20,18,15,.45); color-scheme: light;
}
[data-theme=light] .feed-body, [data-theme=light] .stage, [data-theme=light] .tile {
  --bg: #0F0E0C; --surface: #1C1A16; --line: #2A2722; --line2: #3A362F;
  --fg: #F2EDE4; --soft: #CFC7B8; --muted: #B8B0A2; --accent: #FF5A4E; --on-accent: #0F0E0C; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Watad', 'Tajawal', 'Noto Kufi Arabic', system-ui, sans-serif; line-height: 1.6; }
h1, h2, h3 { line-height: 1.3; }
body { transition: background-color .25s, color .25s; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
img, video { max-width: 100%; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }
.pad { padding: 40px 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.pill.solid:hover { filter: brightness(1.08); color: var(--on-accent); }
.pill.dark { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.pill.danger { border-color: var(--bad-line); color: var(--bad); }
.pill.block { width: 100%; }

/* top + masthead */
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar .pill { min-height: 40px; font-size: 13px; padding: 8px 14px; }
.masthead { text-align: center; padding: 30px 16px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.masthead .brand svg { width: min(260px, 60vw); height: auto; }
.masthead .club { margin: 0; font-size: clamp(26px, 4vw, 36px); }
.masthead .lic { margin: 0; font-size: 14px; color: var(--muted); }
.sections { border-top: 3px double var(--fg); border-bottom: 1px solid var(--fg); }
.sections .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding-top: 4px; padding-bottom: 4px; }
.sections a { padding: 12px 12px; font-size: 16px; }
.sections a.on { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.sections a.cap-link { color: var(--accent); }
.ticker { background: var(--accent); color: var(--on-accent); }
.ticker .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; overflow: hidden; }
.ticker .badge { background: var(--bg); color: var(--fg); padding: 5px 12px; border-radius: 4px; font-size: 14px; flex: none; }
.ticker .run { display: flex; gap: 14px; white-space: nowrap; overflow: hidden; }
.ticker a { color: var(--on-accent); font-size: 15px; }

/* front */
main.wrap { padding-top: 32px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 52px; }
.front { display: flex; flex-wrap: wrap; gap: 28px; }
.hero { flex: 999 1 620px; min-width: 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; align-self: flex-start; }
.hero-video { align-self: flex-start; flex: 0 0 300px; max-width: 100%; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; position: relative; background: var(--surface); border: 1px solid var(--line2); }
.hero-video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.hero-video .live { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--bg); font-size: 13px; padding: 5px 10px; border-radius: 4px; }
.hero-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; justify-content: center; align-items: flex-start; }
.kicker { color: var(--accent); font-size: 14px; }
.hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.2; }
.hero .by { margin: 0; color: var(--soft); }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis div { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpis span { font-size: 12px; color: var(--muted); }
.kpis b { font-size: 24px; }
.captain { flex: 1 1 320px; min-width: 0; background: var(--fg); color: var(--bg); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.captain a { color: var(--bg); }
.cap-head { display: flex; justify-content: space-between; align-items: center; }
.cap-title { font-size: 32px; }
.chip { background: var(--bg); color: var(--fg); font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.cap-video { display: block; aspect-ratio: 9/14; max-height: 440px; border-radius: 14px; border: 4px solid var(--accent); background: var(--surface) center/cover; position: relative; }
.cap-video .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); }
.cap-video .play::after { content: ''; position: absolute; top: 20px; left: 24px; border: 12px solid transparent; border-left: 18px solid var(--on-accent); border-right: 0; }
.empty-cap { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.captain h3 { margin: 0; font-size: 22px; line-height: 1.4; }
.captain .pill.dark { align-self: flex-start; color: var(--fg); }
.block { display: flex; flex-direction: column; gap: 16px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--fg); padding-bottom: 10px; }
.block-head h2, .section-title { margin: 0; font-size: 30px; }
.block-head a { color: var(--accent); font-size: 14px; }
.reels { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.card { display: flex; flex-direction: column; gap: 8px; }
.card.reel { flex: 0 0 180px; scroll-snap-align: start; }
.card .thumb { display: block; aspect-ratio: 9/16; border-radius: 12px; background: var(--surface) center/cover; border: 1px solid var(--line2); position: relative; }
.card.wide .thumb { aspect-ratio: 16/10; }
.card .tag { position: absolute; top: 8px; right: 8px; background: var(--bg); font-size: 11px; padding: 3px 8px; border-radius: 4px; color: var(--fg); }
.card .len { position: absolute; bottom: 8px; left: 8px; background: rgba(15,14,12,.8); font-size: 12px; padding: 2px 6px; border-radius: 4px; color: var(--accent); }
.card .t { font-size: 15px; line-height: 1.5; }
.card .by { font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 3px double var(--fg); }
.col { padding: 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.col h2 { margin: 0; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.col .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.col ul { margin: 0; padding: 0 18px 0 0; color: var(--soft); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.trio { display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 340px; min-width: 0; border: 1px solid var(--line2); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { margin: 0; font-size: 24px; }
.big { font-size: 54px; line-height: 1.1; }
.big small { font-size: 18px; color: var(--muted); }
.podium { display: flex; gap: 10px; align-items: flex-end; }
.podium a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium .p1 { flex: 1.25; }
.podium .thumb { width: 100%; aspect-ratio: 9/14; border-radius: 10px; background: var(--surface) center/cover; border: 1px solid var(--line2); }
.podium .p1 .thumb { border: 3px solid var(--accent); }
.podium b { font-size: 22px; color: var(--muted); }
.podium .p1 b { color: var(--accent); font-size: 28px; }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rank li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.rank .n { color: var(--muted); width: 20px; font-size: 18px; }
.rank .who { flex: 1; display: flex; flex-direction: column; }
.rank small { color: var(--muted); }
.rank .sc { border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.empty { text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty h2 { margin: 0; font-size: 30px; }
.best-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.best-list li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.best-list .n { position: absolute; z-index: 1; top: -10px; right: -6px; background: var(--accent); color: var(--on-accent); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.best-list .card { flex: none; }
.best-list .score b { font-size: 26px; color: var(--accent); margin-left: 6px; }
.best-list .score small { color: var(--muted); }
.foot { margin-top: 50px; border-top: 3px double var(--fg); padding: 26px 0 40px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.foot-id { display: flex; gap: 14px; align-items: center; }
.foot-id div { display: flex; flex-direction: column; gap: 4px; }
.foot-id strong { color: var(--fg); font-size: 16px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { padding: 10px 2px; }

/* auth + forms */
.auth { max-width: 380px; margin: 60px auto; padding: 0 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.auth form { width: 100%; text-align: right; }
.auth form button[type=submit] { margin-top: 28px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=file] { padding: 10px; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span { display: inline-flex; min-height: 40px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); cursor: pointer; font-size: 14px; }
.chip-radio input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--fg); }
.chip-radio { margin: 0; }
.err { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad-line); padding: 10px 14px; border-radius: 10px; }
.ok { color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 10px 14px; border-radius: 10px; }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 12px 0; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* studio */
.studio-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.studio-top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.studio-top nav a { padding: 10px 14px; border-radius: 999px; }
.studio-top nav a.on { background: var(--fg); color: var(--bg); }
.studio-top form { display: flex; gap: 10px; align-items: center; }
.me { color: var(--muted); font-size: 14px; }
.studio { max-width: 1240px; margin: 0 auto; padding: 24px 16px 60px; display: flex; flex-direction: column; gap: 20px; }
.studio-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.studio h1 { margin: 0; font-size: 28px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.tbl th, .tbl td { text-align: right; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.8; }
.tbl th { color: var(--muted); font-weight: 400; white-space: nowrap; }
.tbl tr.off { opacity: .5; }
.tbl form { display: inline-flex; gap: 6px; margin: 4px 0 4px 6px; }
.tbl form.inline input { width: 150px; padding: 8px 10px; font-size: 14px; }
.tbl .pill { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.note { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.6; }
.st { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); white-space: nowrap; }
.st-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.st-pending { color: #f5c46b; border-color: #5a4720; }
.st-proc { color: #9fb8ff; border-color: #2c3c66; }
.st-bad { color: var(--bad); border-color: var(--bad-line); }
.preview video { width: 100%; max-height: 560px; background: #000; border-radius: 12px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-actions form.inline { display: flex; gap: 8px; flex: 1 1 260px; }
.impact-head { display: flex; justify-content: space-between; align-items: center; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.bars span { width: 120px; }
.bars i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.bars em { position: absolute; top: 0; right: 0; height: 100%; background: var(--accent); }
.bars b { width: 44px; text-align: left; }
.curve { width: 100%; height: 140px; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
h3 { margin: 10px 0 0; font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
h3 small { font-size: 13px; }

/* feed */
.feed-body { overflow: hidden; height: 100dvh; }
.feed-top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: linear-gradient(180deg, rgba(15,14,12,.65), rgba(15,14,12,0)); }
.feed-top { transition: opacity .35s, transform .35s; }
.feed-top.hide { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.feed-top nav { flex: 1; display: flex; gap: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.feed-top nav a { padding: 12px 10px; font-size: 16px; color: #E6DED0; }
.feed-top nav a.on { color: var(--fg); box-shadow: inset 0 -3px 0 var(--accent); }
.feed { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; }
.slide video { height: 100%; width: 100%; max-width: calc(100dvh * 9 / 16); object-fit: cover; background: #000; }
.slide .scrim { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(15,14,12,.9), rgba(15,14,12,0)); pointer-events: none; }
.slide .info { position: absolute; right: 16px; left: 90px; bottom: 74px; display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin-right: max(0px, calc(50% - 50dvh * 9 / 16)); }
.slide .info .tag { align-self: flex-start; background: var(--accent); color: var(--on-accent); font-size: 13px; padding: 4px 10px; border-radius: 4px; }
.slide .info .who { font-size: 16px; font-weight: 700; }
.slide .info .title { font-size: 17px; line-height: 1.6; }
.slide .count { position: absolute; right: 16px; left: 16px; bottom: 34px; display: flex; align-items: center; gap: 10px; max-width: calc(100dvh * 9 / 16 - 32px); margin: 0 auto; }
.slide .count b { min-width: 40px; font-size: 14px; }
.slide .count i { flex: 1; height: 4px; border-radius: 2px; background: rgba(242,237,228,.25); position: relative; overflow: hidden; }
.slide .count em { position: absolute; top: 0; right: 0; height: 100%; width: 0; background: var(--accent); }
.slide .count small { color: var(--soft); font-size: 12px; }
.rail { position: absolute; left: max(10px, calc(50% - 50dvh * 9 / 16 + 10px)); bottom: 120px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rail button { background: none; border: 0; color: var(--fg); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; padding: 0; cursor: pointer; font-size: 12px; }
.rail .ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(15,14,12,.6); display: flex; align-items: center; justify-content: center; position: relative; }
.rail .ic b { position: absolute; font-size: 16px; }
.rail button[aria-pressed=true] .ic { background: var(--accent); }
.rail button[aria-pressed=true] svg { stroke: var(--on-accent); }
.sound { position: fixed; z-index: 6; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-size: 15px; cursor: pointer; }
.sound[aria-pressed=true] { display: none; }
.feed-empty { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.toast { position: fixed; z-index: 9; bottom: 140px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.sheet { position: fixed; inset: 0; z-index: 8; }
.sheet-bg { position: absolute; inset: 0; background: var(--scrim); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--bg); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 14px; max-height: 85dvh; overflow-y: auto; }
.grab { align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--line2); }
.dial { display: flex; justify-content: space-between; align-items: center; }
.dial h2 { margin: 0; font-size: 24px; }
@media (max-width: 640px) {
  .hero-video { flex-basis: 100%; }
  .col { border-left: 0; border-bottom: 1px solid var(--line); }
  .masthead { padding-top: 20px; }
}
.panel .st { align-self: flex-start; }


/* logo + theme */
.logo88 circle { fill: none; stroke-width: 14; }
.logo88 .lg-d { stroke: var(--accent); }
.logo88 .lg-g { stroke: var(--line2); }
.logo88 .lg-a { stroke: var(--accent); stroke-linecap: round; }
.logo88 .lg-dot { fill: var(--fg); stroke: none; }
.logo88 .lg-i { stroke: var(--fg); stroke-width: 9; stroke-linecap: round; }
.logo88.mono .lg-d { stroke: var(--fg); }
.cv-base { stroke: var(--line2); } .cv-line { fill: none; stroke: var(--accent); stroke-width: 3; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--fg); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme=dark] .theme-btn .i-moon, [data-theme=light] .theme-btn .i-sun { display: none; }
.studio-top form .theme-btn { margin-left: 4px; }

/* كابتكس */
.mic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mic.sm { width: 1.05em; height: 1.05em; vertical-align: -.18em; margin-left: .3em; }
.captx-link { color: var(--accent) !important; font-weight: 700; }
.wm { display: inline-block; line-height: 0; color: var(--accent); }
.wm svg { display: block; height: 100%; width: auto; }
.wm-s { height: 34px; } .wm-m { height: 92px; } .wm-xl { height: clamp(120px, 20vw, 260px); }
.wm-stage { height: 15cqw; }
.cx-mark { margin: 0; }
.x-eq { color: var(--accent); font-weight: 700; }
.pod-badge { display: inline-flex; align-items: center; gap: .4em; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: .3em .9em; font-size: 13px; }
.pod-badge .mic { width: 1.1em; height: 1.1em; }
.pod-badge.big { font-size: 15px; }

.captx-band { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; padding: 28px; margin-top: 8px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line2); }
.cb-id { display: flex; flex-direction: column; gap: 10px; }
.cb-id p { margin: 0; color: var(--soft); font-size: 17px; }
.cb-ep { flex: 1 1 380px; display: flex; gap: 20px; align-items: center; min-width: 0; }
.cb-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cb-meta small { color: var(--accent); }
.cb-meta b { font-size: 21px; }
.cb-soon { flex: 1; margin: 0; color: var(--soft); font-size: 18px; }
.play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); }
.play::after { content: ''; position: absolute; top: 16px; left: 20px; border: 11px solid transparent; border-left: 16px solid var(--on-accent); border-right: 0; }

.person { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.person .ring { width: 72px; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--accent); padding: 3px; display: grid; place-items: center; background: var(--surface); overflow: hidden; }
.person .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.person .initial { font-size: 30px; color: var(--accent); }
.person figcaption { display: flex; flex-direction: column; line-height: 1.35; }
.person small { color: var(--muted); font-size: 12px; }
.person b { font-size: 14px; }
.duo { display: flex; gap: 6px; flex: none; }
.duo .person + .person .ring { border-color: var(--fg); }

.stage { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; color: var(--fg); border: 1px solid var(--line2);
  background: radial-gradient(60% 80% at 50% 45%, rgba(255,90,78,.16), transparent 70%), radial-gradient(40% 50% at 85% 10%, rgba(255,90,78,.08), transparent 70%), #0F0E0C;
  display: grid; grid-template-rows: auto 1fr auto; padding: 3.2cqw 4cqw; }
.stage-top { display: flex; justify-content: space-between; align-items: center; }
.stage-top .logo88 { width: 9cqw; height: auto; }
.stage-top .pod-badge { font-size: max(10px, 1.9cqw); }
.stage-mid { display: grid; grid-template-columns: 1fr 2.3fr 1fr; align-items: center; gap: 2cqw; }
.stage .person .ring { width: 19cqw; border-width: .55cqw; padding: .6cqw; }
.stage .person .initial { font-size: 8cqw; }
.stage .person small { font-size: max(10px, 1.7cqw); }
.stage .person b { font-size: max(11px, 2.2cqw); }
.stage-center { display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; }
.stage .viz { width: 100%; height: 7cqw; display: block; }
/* season · episode: one capsule in two halves — outlined season, filled episode */
.stage-ep { display: inline-flex; align-items: stretch; font-size: max(11px, 1.9cqw); border: 1.5px solid var(--accent); border-radius: 999px; overflow: hidden; line-height: 1; }
.stage-ep .se-s { color: var(--accent); padding: .45em .9em; display: flex; align-items: center; }
.stage-ep .se-e { background: var(--accent); color: #0F0E0C; padding: .45em .9em; display: flex; align-items: center; gap: .3em; font-weight: 700; }
.stage-ep b { font-size: 1.12em; }
.stage-tag { margin: 0; text-align: center; font-size: max(11px, 2cqw); color: var(--muted); }
.stage-tag span { color: var(--accent); }
.stage.playing .person .ring { animation: talk 1.6s ease-in-out infinite; }
.stage.playing .person + .person + .person .ring, .stage.playing .stage-mid > .person:last-child .ring { animation-delay: .8s; }
@keyframes talk { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,78,.0); } 50% { box-shadow: 0 0 0 1.2cqw rgba(255,90,78,.18); } }
@media (prefers-reduced-motion: reduce) { .stage.playing .person .ring { animation: none; } }

.aplayer { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line2); }
.aplayer button { font: inherit; cursor: pointer; }
.ap-play { width: 60px; height: 60px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.ap-play svg { width: 28px; height: 28px; fill: currentColor; }
.ap-play .i-pause, .aplayer.on .ap-play .i-play { display: none; }
.aplayer.on .ap-play .i-pause { display: inline; }
.ap-skip, .ap-rate { min-width: 48px; height: 44px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--fg); font-size: 14px; }
.ap-skip:hover, .ap-rate:hover { border-color: var(--accent); color: var(--accent); }
.ap-track { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ap-track input { width: 100%; padding: 0; border: 0; background: none; accent-color: var(--accent); }
.ap-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.captx-body .sections { border-top: 0; }
.cx-hero { position: relative; overflow: hidden; padding: 48px 0 44px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(255,90,78,.12), transparent 55%), var(--bg); }
.cx-hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.cx-tag { margin: 0; font-size: clamp(20px, 3vw, 30px); }
.cx-pillars { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cx-pillars li { border: 1px solid var(--line2); border-radius: 14px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 200px; background: var(--surface); }
.cx-pillars b { font-size: 18px; }
.cx-pillars span { color: var(--muted); font-size: 13px; }
.cx-main { gap: 40px; padding-top: 40px; }
.cx-latest { display: flex; flex-direction: column; gap: 18px; }
.cx-player { border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line2); }
.cx-player video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.cx-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cx-info.center { align-items: center; text-align: center; }
.cx-info h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); }
.cx-info .guest { margin: 0; font-size: 18px; color: var(--soft); }
.cx-back { display: inline-flex; align-items: center; gap: 14px; padding-top: 8px; }
.cx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.cx-ep { display: flex; flex-direction: column; gap: 6px; }
.tile { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 14px; border: 1px solid var(--line2); overflow: hidden; display: grid; place-items: center; color: var(--fg);
  background: radial-gradient(70% 90% at 50% 50%, rgba(255,90,78,.16), transparent 70%), #0F0E0C; }
.tile .vthumb { position: absolute; inset: 0; background: center/cover; }
.tile > b { position: absolute; bottom: 8px; right: 12px; font-size: 30px; line-height: 1; color: #F2EDE4; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.duo.sm .person .ring { width: 64px; }
.duo.sm figcaption { display: none; }
.cx-ep.empty .tile { background: var(--surface); border-style: dashed; }
[data-theme=light] .cx-ep.empty .tile { --fg: #14120F; background: #F4F1EC; border-color: #D3CABB; }
.cx-ep.empty .tile > b { color: var(--line2); text-shadow: none; position: static; font-size: 36px; }
.cx-ep.empty .tile { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.cx-ep .t { font-size: 16px; line-height: 1.5; }
.cx-ep .g { font-size: 13px; color: var(--accent); }
.cx-ep .d { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.episode-box { margin-top: 16px; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; }
.episode-box summary { cursor: pointer; color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; color: var(--fg); }
.check input { width: auto; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px; }
audio { width: 100%; }
@media (max-width: 640px) {
  .cx-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .cx-pillars li { min-width: 0; padding: 10px 8px; border-radius: 12px; gap: 2px; }
  .cx-pillars b { font-size: 13px; }
  .cx-pillars span { font-size: 10.5px; line-height: 1.5; }
  .cx-hero { padding: 32px 0 30px; }
  .cx-hero .wrap { gap: 12px; }
  .cx-tag { font-size: 18px; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .cb-ep { flex-direction: column; align-items: flex-start; }
  .aplayer { flex-wrap: wrap; justify-content: center; }
  .ap-track { flex-basis: 100%; order: 5; }
  .stage { border-radius: 14px; }
}

textarea { resize: vertical; line-height: 1.7; }
.ep-desc { margin: 0; font-size: 17px; line-height: 1.9; color: var(--soft); white-space: pre-line; max-width: 760px; }
.people { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.people li { display: flex; align-items: baseline; gap: 10px; font-size: 18px; }
.people span { color: var(--muted); font-size: 14px; min-width: 52px; }
.ep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.act { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; }
.act:hover { border-color: var(--accent); color: var(--accent); }
.act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.act[aria-pressed=true] svg { fill: currentColor; }
.act.impact { padding-inline-start: 8px; }
.act .dial { width: 32px; height: 32px; }
.act .dial circle { fill: none; stroke-width: 4; }
.act .d-bg { stroke: var(--line2); } .act .d-fg { stroke: var(--accent); stroke-linecap: round; }
.act.impact b { font-size: 18px; }
.card-prev { width: 100%; max-width: 420px; border-radius: 12px; border: 1px solid var(--line2); margin-top: 6px; }
.toast { position: fixed; z-index: 9; bottom: 40px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.dial-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dial-row h2 { margin: 0; }
.sheet-card { color: var(--fg); }

.stage-title { font-size: max(13px, 2.6cqw); color: var(--fg); text-align: center; max-width: 92%; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-ep { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; }
.cb-meta { text-align: center; align-items: center; }
.cb-host .ring, .cb-guest .ring { width: 76px; }
.cb-guest .ring { border-color: var(--fg); }
.full-ep { align-self: flex-start; background: var(--accent); color: var(--on-accent) !important; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.teasers { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.teasers li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
a.act { text-decoration: none; }
@media (max-width: 640px) {
  .cb-ep { grid-template-columns: 1fr 1fr; }
  .cb-meta { grid-column: 1 / -1; grid-row: 2; }
}

/* ===================== راديو 88 ===================== */
.radio, .lbanner, .st-card {
  --bg: #0F0E0C; --surface: #1C1A16; --line: #2A2722; --line2: #3A362F;
  --fg: #F2EDE4; --soft: #CFC7B8; --muted: #B8B0A2; --accent: #FF5A4E; color-scheme: dark; color: var(--fg);
}
.radio { --acc: #FF5A4E; position: relative; background: radial-gradient(120% 140% at 85% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 60%), #0F0E0C; border-bottom: 1px solid var(--line); transition: background .6s; }
.rd-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.radio-page .rd-wrap { padding-top: 40px; padding-bottom: 40px; grid-template-columns: 1fr; max-width: 980px; gap: 26px; }

/* now playing: host and guest, overlapping, breathing with the sound */
.rd-now { display: flex; align-items: center; gap: 18px; min-width: 0; }
.radio-page .rd-now { justify-content: center; flex-direction: column; text-align: center; }
.rd-duo { position: relative; display: flex; flex: none; align-items: center; }
.rd-av { width: 76px; height: 76px; flex: none; border-radius: 50%; background: #1C1A16 center / cover; border: 3px solid var(--acc); display: grid; place-items: center; position: relative; z-index: 1; transition: border-color .5s; }
.rd-av + .rd-av { margin-inline-start: -18px; border-color: var(--fg); z-index: 0; }
.rd-av i { font-style: normal; font-size: 30px; color: var(--acc); }
.radio-page .rd-av { width: 118px; height: 118px; }
.radio-page .rd-av i { font-size: 46px; }
.rd-pulse { position: absolute; inset: -8px; border-radius: 999px; border: 2px solid var(--acc); opacity: 0; pointer-events: none; }
.radio.playing .rd-pulse { animation: rdpulse 2.2s ease-out infinite; }
.radio.playing .rd-av { animation: talk 1.6s ease-in-out infinite; }
.radio.playing .rd-av + .rd-av { animation-delay: .8s; }
@keyframes rdpulse { 0% { opacity: .55; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.18); } }
.rd-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rd-station { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--acc); flex-wrap: wrap; }
.radio-page .rd-station { justify-content: center; }
.rd-onair { display: none; align-items: center; gap: 6px; background: var(--acc); color: #0F0E0C; border-radius: 4px; padding: 1px 8px; font-weight: 700; font-size: 12px; }
.rd-onair::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #0F0E0C; animation: blink 1.2s steps(2) infinite; }
.radio.playing .rd-onair { display: inline-flex; }
.rd-title { font-size: 20px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.radio-page .rd-title { font-size: 28px; }
.rd-sub { font-size: 14px; }
@keyframes blink { 50% { opacity: .2; } }

/* the set: display, dial, keys */
.rd-set { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lcd dial ctl"; gap: 14px; align-items: center; min-width: 0; }
.radio-page .rd-set { grid-template-columns: 1fr; grid-template-areas: "lcd" "dial" "ctl"; justify-items: center; }
.rd-lcd { grid-area: lcd; position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: linear-gradient(#090807, #14120f); box-shadow: inset 0 2px 10px rgba(0,0,0,.7), 0 0 0 1px var(--line2); }
.rd-band { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.rd-f, .rd-in { font: inherit; font-size: 44px; line-height: 1; color: var(--acc); background: none; border: 0; padding: 0; cursor: text; text-shadow: 0 0 18px color-mix(in srgb, var(--acc) 70%, transparent); min-width: 3.2ch; text-align: center; font-variant-numeric: tabular-nums; transition: color .5s; }
.rd-in { width: 3.4ch; outline: none; border-bottom: 2px solid var(--acc); }
.radio-page .rd-f, .radio-page .rd-in { font-size: 84px; }
.radio-page .rd-lcd { padding: 14px 28px; border-radius: 18px; }
.rd-sig { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.rd-sig i { width: 4px; background: var(--line2); border-radius: 1px; transition: background .2s; }
.rd-sig i:nth-child(1) { height: 5px; } .rd-sig i:nth-child(2) { height: 9px; } .rd-sig i:nth-child(3) { height: 13px; } .rd-sig i:nth-child(4) { height: 18px; }
.rd-sig i.on { background: var(--acc); }

.rd-dial { grid-area: dial; position: relative; height: 82px; width: 100%; overflow: hidden; border-radius: 12px; cursor: grab; touch-action: none; user-select: none;
  background: linear-gradient(#151310, #0b0a09); box-shadow: inset 0 2px 12px rgba(0,0,0,.75), 0 0 0 1px var(--line2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.radio-page .rd-dial { height: 110px; }
.rd-dial.grab { cursor: grabbing; }
.rd-dial:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.rd-scale { position: absolute; top: 0; bottom: 0; left: 0; will-change: transform; }
.rd-t { position: absolute; bottom: 0; width: 1px; height: 10px; background: rgba(242,237,228,.38); }
.rd-t.h { height: 16px; background: rgba(242,237,228,.6); }
.rd-t.M { height: 26px; width: 2px; margin-left: -.5px; background: rgba(242,237,228,.9); }
.rd-zone { position: absolute; bottom: 0; height: 100%; background: linear-gradient(transparent 20%, rgba(255,90,78,.07)); border-bottom: 2px solid rgba(255,90,78,.5); }
.rd-zone em { position: absolute; bottom: 4px; right: 8px; font-style: normal; font-size: 10px; color: rgba(255,90,78,.75); white-space: nowrap; }
.rd-mhz { position: absolute; bottom: 28px; transform: translateX(-50%); font-size: 13px; color: var(--soft); }
.rd-mhz.sm { font-size: 9px; color: var(--muted); bottom: 18px; }
.rd-mark { position: absolute; top: 6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 0 2px; color: var(--fg); font: inherit; cursor: pointer; }
.rd-mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.rd-mark span { font-size: 11px; white-space: nowrap; color: var(--soft); max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.rd-mark.rd-mother i { width: 14px; height: 14px; }
.rd-mark.on span { color: var(--acc); }
.rd-needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--acc); box-shadow: 0 0 12px var(--acc); pointer-events: none; transition: background .5s; }
.rd-needle::before { content: ''; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top-color: var(--acc); }

.rd-ctl { grid-area: ctl; display: flex; gap: 8px; align-items: center; }
.rd-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: #1C1A16; color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.rd-ctl svg { width: 20px; height: 20px; fill: currentColor; }
.rd-ctl .rd-play { width: 58px; height: 58px; background: var(--acc); border-color: var(--acc); color: #0F0E0C; transition: background .5s; }
.rd-ctl .rd-play svg { width: 26px; height: 26px; }
.radio .rd-play .i-pause, .radio.on .rd-play .i-play { display: none; }
.radio.on .rd-play .i-pause { display: inline; }
.radio:not(.on) .rd-play { animation: invite 2.4s ease-in-out infinite; }
@keyframes invite { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 50%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.radio-page .rd-ctl button { width: 54px; height: 54px; }
.radio-page .rd-ctl .rd-play { width: 76px; height: 76px; }

/* station cards */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.stc { --acc: #FF5A4E; position: relative; text-align: right; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); border-top: 4px solid var(--acc); background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; }
.stc:hover, .stc.on { border-color: var(--acc); }
.stc-f { font-size: 30px; line-height: 1.1; color: var(--acc); text-align: left; }
.stc-n { font-weight: 700; }
.stc-s { font-size: 13px; color: var(--muted); }
.stc-live { position: absolute; top: 12px; right: 14px; font-size: 11px; background: var(--acc); color: #0F0E0C; border-radius: 4px; padding: 0 6px; }
.stc-mother { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 18%, var(--surface)), var(--surface)); }

/* nav link */
.radio-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.rl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(2) infinite; }

/* masthead: small mark right, living banner left */
.mh2 { text-align: initial; padding: 16px 0; display: block; }
.mh-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mh2 .brand { display: flex; align-items: center; gap: 14px; color: var(--fg); }
.mh2 .brand svg { width: 128px; height: auto; flex: none; }
.mh-id { display: flex; flex-direction: column; line-height: 1.35; }
.mh-id b { font-size: 22px; }
.mh-id small { font-size: 12px; color: var(--muted); max-width: 300px; }

.lbanner { position: relative; flex: 1; max-width: 600px; height: 92px; border-radius: 999px; background: #0F0E0C; border: 1px solid #3A362F; overflow: hidden; isolation: isolate; }
.lbanner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sweep 3.2s linear infinite; }
@keyframes sweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.lb-item { --acc: #FF5A4E; position: absolute; inset: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 0 10px 0 16px; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; pointer-events: none;
  background: radial-gradient(70% 160% at 100% 50%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%); }
.lb-item.on { opacity: 1; transform: none; pointer-events: auto; }
.lb-duo { display: flex; padding-inline-start: 6px; }
.lb-duo .person .ring { width: 60px; border-width: 2px; padding: 2px; }
.lb-duo .person + .person { margin-inline-start: -16px; }
.lb-duo .person + .person .ring { border-color: var(--fg); }
.lb-duo .person .initial { font-size: 22px; }
.lb-duo figcaption { display: none; }
.lb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.lb-txt small { color: var(--acc); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.lb-live { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: blink 1.2s steps(2) infinite; }
.lb-txt b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-txt em { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-acts { display: flex; align-items: center; gap: 8px; }
.lb-play { --p: 0; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--acc); color: #0F0E0C; display: grid; place-items: center; cursor: pointer; }
.lb-play svg { width: 20px; height: 20px; fill: currentColor; position: relative; z-index: 1; }
.lb-play .i-pause, .lb-item.playing .lb-play .i-play { display: none; }
.lb-item.playing .lb-play .i-pause { display: inline; }
.lb-ring { position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(var(--fg) calc(var(--p) * 1turn), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 90%); mask: radial-gradient(closest-side, transparent 88%, #000 90%); }
.lb-tune { font-size: 13px; color: var(--fg); border: 1px solid #3A362F; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.lb-tune:hover { border-color: var(--acc); color: var(--acc); }
.lb-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; }
.lb-dots i { width: 5px; height: 5px; border-radius: 50%; background: #3A362F; }
.lb-dots i.on { background: var(--accent); }

/* show marks */
.sm-ch { --acc: #FF5A4E; display: inline-block; color: var(--acc); border: 1.5px solid var(--acc); border-radius: 999px; padding: .15em .9em; font-size: 18px; line-height: 1.4; margin-top: 6px; }
.stage .sm-ch { font-size: max(11px, 2.2cqw); margin-top: 0; }
.cx-mark .sm-ch { font-size: clamp(18px, 2.6vw, 30px); display: table; margin: 10px auto 0; }
.cx-back .sm-ch { font-size: 14px; margin: 0; }
.sm-logo img { display: block; max-height: 100%; width: auto; margin: 0 auto; }
.sm-logo.sm-stage { height: 15cqw; } .sm-logo.sm-xl { height: clamp(110px, 16vw, 200px); } .sm-logo.sm-m { height: 150px; }
.sm-name { color: var(--acc, var(--accent)); font-weight: 700; line-height: 1.15; text-align: center; }
.sm-name.sm-stage { font-size: 7cqw; } .sm-name.sm-xl { font-size: clamp(48px, 8vw, 110px); } .sm-name.sm-m { font-size: 72px; }
.stage .pod-badge { border-color: var(--acc, var(--accent)); color: var(--acc, var(--accent)); }
.cx-hero .pod-badge { border-color: var(--acc, var(--accent)); color: var(--acc, var(--accent)); }
.cx-desc { max-width: 640px; margin: 0; color: var(--soft); }
.ch-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ch-strip a { --acc: #FF5A4E; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; }
.ch-strip a bdi { color: var(--acc); font-weight: 700; }
.ch-strip a:hover, .ch-strip a.on { border-color: var(--acc); }
.ch-strip a.on { background: var(--acc); color: #0F0E0C; }
.ch-strip a.on bdi { color: #0F0E0C; }
.tune-pill { border-color: var(--acc, var(--accent)); color: var(--acc, var(--accent)); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.logo-prev { display: block; max-height: 60px; margin-bottom: 6px; background: #0F0E0C; padding: 6px; border-radius: 8px; }
select { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--fg); font: inherit; padding: 8px 12px; }

/* station share card 1200×675 */
.st-card { --acc: #FF5A4E; width: 1200px; height: 675px; padding: 50px 64px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(90% 120% at 15% 50%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 60%), #0F0E0C; }
.sc-top { display: flex; justify-content: space-between; align-items: center; }
.sc-top .pod-badge { font-size: 22px; border-color: var(--acc); color: var(--acc); }
.sc-mid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; flex: 1; }
.sc-mark { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sc-mark .wm-m { height: 170px; }
.sc-mark .sm-ch { font-size: 30px; }
.sc-name { font-size: 46px; line-height: 1.2; }
.sc-sub { font-size: 24px; color: var(--muted); }
.sc-lcd { display: flex; flex-direction: column; align-items: center; padding: 26px 30px 34px; border-radius: 28px; background: linear-gradient(#090807, #14120f); box-shadow: inset 0 3px 16px rgba(0,0,0,.8), 0 0 0 2px #3A362F; position: relative; overflow: hidden; }
.sc-lcd small { font-size: 26px; color: var(--muted); }
.sc-lcd span { font-size: 170px; line-height: 1; color: var(--acc); text-shadow: 0 0 40px color-mix(in srgb, var(--acc) 70%, transparent); }
.sc-scale { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, rgba(242,237,228,.5) 0 1px, transparent 1px 14px); }
.sc-scale::after { content: ''; position: absolute; left: 50%; top: -60px; bottom: 0; width: 3px; background: var(--acc); box-shadow: 0 0 12px var(--acc); }

@media (max-width: 900px) {
  .rd-wrap { grid-template-columns: 1fr; gap: 16px; }
  .rd-set { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lcd ctl" "dial dial"; }
  .rd-ctl { justify-content: flex-end; }
  .radio-page .rd-set { grid-template-columns: 1fr; grid-template-areas: "lcd" "dial" "ctl"; }
  .radio-page .rd-ctl { justify-content: center; }
  .mh-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .mh2 .brand { justify-content: flex-start; }
  .lbanner { max-width: none; }
}
@media (max-width: 640px) {
  .rd-av { width: 60px; height: 60px; } .rd-av i { font-size: 24px; }
  .radio-page .rd-av { width: 92px; height: 92px; }
  .rd-title { font-size: 17px; } .radio-page .rd-title { font-size: 22px; }
  .rd-f, .rd-in { font-size: 36px; } .radio-page .rd-f, .radio-page .rd-in { font-size: 64px; }
  .rd-ctl button { width: 40px; height: 40px; } .rd-ctl .rd-play { width: 52px; height: 52px; }
  .mh2 .brand svg { width: 96px; } .mh-id b { font-size: 18px; } .mh-id small { font-size: 11px; }
  .lbanner { height: 78px; }
  .lb-item { gap: 10px; padding: 0 8px 0 10px; }
  .lb-duo .person .ring { width: 48px; }
  .lb-tune { display: none; }
  .lb-txt b { font-size: 14px; }
  .stc-mother { grid-column: auto; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .radio.playing .rd-pulse, .radio.playing .rd-av, .radio:not(.on) .rd-play, .lbanner::after, .rl-dot, .lb-live { animation: none; }
}
input[type=color] { height: 46px; padding: 4px 6px; cursor: pointer; }
/* radio page: a quiet top instead of the newspaper's sections */
.rtop { border-bottom: 1px solid var(--line); background: var(--bg); }
.rtop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.rtop-back { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.rtop-back svg { width: 64px; height: auto; }
.rtop-t { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 18px; }
.sc-q { width: 170px; height: 170px; color: var(--acc); }
.stc-quran { background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 16%, var(--surface)), var(--surface)); }
.rd-mark.rd-quran i { box-shadow: 0 0 12px var(--acc); }
.radio.is-stream .rd-guest { display: none; }
.rd-qi { width: 62%; height: 62%; color: var(--acc); display: block; margin: auto; }
.rd-av i { display: grid; place-items: center; width: 100%; height: 100%; }
.radio.armed .rd-onair { display: inline-flex; background: transparent; color: var(--acc); border: 1px solid var(--acc); }
.radio.armed .rd-onair::after { content: ' · المس الشاشة للاستماع'; font-weight: 400; }
/* legal pages */
.legal { max-width: 860px; gap: 28px !important; }
.lg-head { display: flex; flex-direction: column; gap: 6px; border-bottom: 3px double var(--fg); padding-bottom: 18px; }
.lg-head h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); }
.lg-head p { margin: 0; }
.lg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lg-tabs a { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 16px; font-size: 14px; }
.lg-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lg-lead { font-size: 18px; line-height: 1.9; margin: 0; color: var(--soft); }
.lg-toc { columns: 2; gap: 24px; margin: 0; padding: 18px 22px 18px 18px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); }
.lg-toc li { margin: 4px 0; break-inside: avoid; }
.lg-sec h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; margin: 0 0 8px; }
.lg-sec h2 span { color: var(--accent); font-size: 16px; }
.lg-sec p, .lg-sec li { line-height: 1.9; color: var(--soft); }
.lg-sec li { margin: 6px 0; }
.lg-sec b { color: var(--fg); }
.lg-sec table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.lg-sec th, .lg-sec td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: right; vertical-align: top; }
.lg-sec code { background: var(--surface); padding: 1px 6px; border-radius: 4px; }
.lg-contact { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-right: 4px solid var(--accent); background: var(--surface); border-radius: 10px; }
.lg-contact a { color: var(--accent); width: fit-content; }
.foot-links { flex-wrap: wrap; }
@media (max-width: 640px) { .lg-toc { columns: 1; } }
.lg-lead, .lg-sec p, .lg-sec li { text-align: justify; text-align-last: right; }
