/* ═══════════════════════════════════════════════════════════════════════════
   Siyatha FM — main stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* The page "mood" follows the radio (set on <html data-mood> by speed.js):
   idle = cool & calm · tune = white-hot while connecting · live = brand red + gold · error = muted.
   Header line, mini-bar, equaliser and the backdrop all read these two colours. */
@property --mood-a { syntax: '<color>'; inherits: true; initial-value: #6f8cff; }
@property --mood-b { syntax: '<color>'; inherits: true; initial-value: #ffc600; }

:root {
  --mood-a: #6f8cff; --mood-b: #ffc600;
  transition: --mood-a 1.2s ease, --mood-b 1.2s ease;
  --navy-950: #00001f;
  --navy:     #000055;
  --royal:    #0a12c8;
  --blue:     #2026a0;
  --gold:     #ffc600;
  --red:      #cc0621;
  --ink:      #0c0d1c;
  --off:      #f4f5fb;
  --dim:      rgba(12, 13, 28, .55);
  --sdim:     rgba(12, 13, 28, .10);
  --header-h: 72px;
  --mini-h:   68px;
  --r:        14px;
  --ease:     cubic-bezier(.22, 1, .36, 1);

  --f-body:   'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif:  'Cormorant Garamond', Georgia, serif;
  --f-disp:   'Bebas Neue', Impact, sans-serif;
  --f-si:     'Noto Sans Sinhala', 'Iskoola Pota', 'Nirmala UI', sans-serif;
}

:root[data-mood="tune"]  { --mood-a: #dbeaff; --mood-b: #8fd8ff; }
:root[data-mood="live"]  { --mood-a: #ff4a63; --mood-b: #ffc600; }
:root[data-mood="error"] { --mood-a: #8a8fb5; --mood-b: #6a6f99; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
/* Scrollbars: slim, rounded, brand navy on a soft track (Firefox + new Chrome/Edge use scrollbar-color, Safari/older Chromium the ::-webkit rules) */
html { scrollbar-width: thin; scrollbar-color: #2026a0 #eceef7; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eceef7; }
::-webkit-scrollbar-thumb { background: #2026a0; border-radius: 10px; border: 2px solid #eceef7; }
::-webkit-scrollbar-thumb:hover { background: #000055; }
::-webkit-scrollbar-corner { background: transparent; }
/* scroll areas on dark panels get a light, see-through thumb instead */
.mnav, .lb { scrollbar-color: rgba(255,255,255,.28) transparent; }
.mnav::-webkit-scrollbar-track, .lb::-webkit-scrollbar-track { background: transparent; }
.mnav::-webkit-scrollbar-thumb, .lb::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-color: transparent; }
/* Screen-size tiers. Phones and FHD (1536px+ wide) stay at 100 %; laptops / older
   monitors (1280–1535 wide, or short screens like 1366×768) get a slightly smaller page. */
@media (min-width: 900px) and (max-width: 1535.98px) { html { zoom: .9; } }
@media (min-width: 900px) and (max-width: 1279.98px) { html { zoom: .85; } }
@media (min-width: 900px) and (max-height: 800px)    { html { zoom: .85; } }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible, .app :focus-visible, .mini :focus-visible, .footer :focus-visible, .pop :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:lang(si), [lang="si"] { font-family: var(--f-si); line-height: 1.65; }
.container { width: min(1200px, 100% - 2 * clamp(18px, 5vw, 56px)); margin-inline: auto; }
body.has-mini { padding-bottom: calc(var(--mini-h) + env(safe-area-inset-bottom)); }
body.lb-open { overflow: hidden; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .875rem; letter-spacing: .02em; text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s, background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #e9ecff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.btn--outline { color: var(--blue); border-color: rgba(32,38,160,.3); background: transparent; }
.btn--outline:hover { background: rgba(32,38,160,.06); border-color: rgba(32,38,160,.5); }

/* ═════════ HEADER (logo hangs below the bar, like siyathatv.lk) ═════════ */
.site-header {
  --logo-w: 72px;
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  background: var(--navy); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 4px 16px rgba(0,0,20,.22); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 28px rgba(0,0,20,.4); }
.hdr { height: 100%; display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); }
.brand { align-self: flex-start; flex-shrink: 0; position: relative; z-index: 2; margin-top: 10px; border-radius: 10px; text-decoration: none; }
.brand img { width: var(--logo-w); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,20,.45)); transition: transform .22s var(--ease), filter .22s; }
.brand:hover img { transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(0,0,20,.55)); }

.nav { display: none; align-items: center; gap: 2px; margin-left: 8px; flex: 1; }
.nav a {
  padding: 8px 13px; border-radius: 6px; font-size: .875rem; font-weight: 500;
  color: rgba(255,255,255,.7); text-decoration: none; transition: color .15s, background .15s;
}
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.hdr__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* red "live" buttons — same family as Siyatha TV's Watch Live */
.live-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 0; border-radius: 6px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .03em; color: #fff; background: var(--red); white-space: nowrap;
  transition: transform .18s var(--ease), background .18s;
}
.live-btn:hover { transform: translateY(-1px); background: #e0082a; }
.live-btn .live-dot { width: 7px; height: 7px; background: #fff; animation: ldot 1.5s ease-out infinite; }
@keyframes ldot { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.9); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.live-btn--sm { padding: 9px 13px; font-size: .78rem; }
.hdr__listen { display: none; }
.hdr__mob { display: contents; }
.hdr__mob .lb-on, .hdr__mob[data-state="playing"] .lb-idle, .hdr__mob[data-state="loading"] .lb-idle, .hdr__mob[data-state="reconnecting"] .lb-idle { display: none; }
.hdr__mob[data-state="playing"] .lb-on, .hdr__mob[data-state="loading"] .lb-on, .hdr__mob[data-state="reconnecting"] .lb-on { display: inline; }

.ham {
  width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; padding: 0 10px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 6px;
}
.ham i { display: block; width: 100%; height: 1.6px; background: rgba(255,255,255,.85); border-radius: 2px; transition: transform .25s, opacity .2s, width .25s; }
.ham i:nth-child(3) { width: 65%; }
.ham[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.ham[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.ham[aria-expanded="true"] i:nth-child(3) { width: 100%; transform: translateY(-6.6px) rotate(-45deg); }

/* mobile menu: full-height panel that drops out of the header, styled like the desktop bar */
.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.08);
  padding: 34px clamp(18px, 5vw, 56px) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 22px;
  transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform .28s var(--ease), opacity .2s, visibility 0s .28s;
}
.mnav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .28s var(--ease), opacity .2s; }
.mnav__links { display: flex; flex-direction: column; gap: 2px; }
.mnav__links a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 6px;
  font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,.75); text-decoration: none; transition: color .15s, background .15s;
}
.mnav__links a:hover, .mnav__links a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.mnav__links a::after { content: '→'; opacity: .35; }
.mnav__net { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mnav__card { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.mnav__card b { display: block; font-size: .85rem; color: #fff; }
.mnav__card span { font-size: .72rem; color: rgba(255,255,255,.5); }
body.menu-open { overflow: hidden; }

@media (max-width: 899px) {
  :root { --header-h: 62px; }
  .site-header { --logo-w: 52px; }
  .brand { margin-top: 8px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .ham, .mnav { display: none; }
  .hdr__listen { display: inline-flex; }
  .hdr__mob { display: none; }
}
/* touch screens: no pop-out window; the header button plays here instead */
@media (hover: none) and (pointer: coarse) { .hdr__mob { display: contents; } }
/* Touch devices never get the pop-out (phones open popups as tabs). */
@media (hover: none) and (pointer: coarse) { .hdr__popout, [data-popout] { display: none !important; } }

/* ═════════ BACKDROP (WebGL canvas; the section's own gradient is the fallback) ═ */
.fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.1s ease; }
.fx.has-gl canvas { opacity: 1; }

/* ═════════ HERO ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  padding: calc(var(--header-h) + clamp(56px, 8vh, 88px)) 0 clamp(44px, 8vh, 96px);
  min-height: min(880px, 100svh);
  display: flex; align-items: center;
  background:
    radial-gradient(1000px 640px at 72% 46%, #0d14b0 0%, transparent 70%),
    linear-gradient(165deg, #00002a 0%, #00005c 60%, #050582 100%);
}
/* keep the copy readable over the moving lights */
.hero .fx::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,30,.8) 0%, rgba(0,0,30,.4) 46%, rgba(0,0,30,0) 78%); }

.hero__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
@media (max-width: 899px) {
  .hero { min-height: auto; align-items: flex-start; padding-top: calc(var(--header-h) + 40px); padding-bottom: 44px; }
  .hero .fx::after { background: linear-gradient(180deg, rgba(0,0,30,.7), rgba(0,0,30,.5) 55%, rgba(0,0,30,.62)); }
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.72);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-out infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,60,80,.8); } 70% { box-shadow: 0 0 0 9px rgba(255,60,80,0); } 100% { box-shadow: 0 0 0 0 rgba(255,60,80,0); } }

.hero__title { margin: 0; font-family: var(--f-disp); font-weight: 400; line-height: .86; letter-spacing: .01em; display: flex; align-items: baseline; flex-wrap: nowrap; column-gap: .14em; }
.freq { font-size: clamp(3.6rem, 15.5vw, 10rem); color: #fff; }
.sep { font-size: clamp(2.4rem, 8vw, 5.6rem); color: rgba(255,255,255,.3); align-self: center; font-weight: 400; margin: 0 -.02em; }
/* 98.4 takes the live mood colours: cool blue at rest, red → gold on air */
.freq--alt { color: #fff; background: linear-gradient(100deg, var(--mood-a) 10%, #fff 50%, var(--mood-b) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fm { font-size: clamp(1.4rem, 4vw, 3rem); color: rgba(255,255,255,.55); letter-spacing: .08em; }
.hero__si { margin: 14px 0 0; font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; color: rgba(255,255,255,.92); }
.hero__sub { margin: 6px 0 26px; max-width: 34ch; color: rgba(255,255,255,.66); font-size: clamp(.95rem, 1.6vw, 1.05rem); font-weight: 300; }

/* ── Player card ─────────────────────────────────────────────────────────── */
.player {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: center;
  padding: clamp(16px, 2.4vw, 22px); max-width: 520px; border-radius: 18px;
  background: rgba(3,5,44,.5); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pbtn {
  position: relative; width: clamp(72px, 11vw, 92px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; color: var(--navy); flex-shrink: 0; background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.14);
  transition: transform .2s var(--ease), box-shadow .3s;
}
.pbtn:hover { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(255,255,255,.2); }
.pbtn:active { transform: scale(.97); }
.pbtn svg { width: 38%; height: 38%; grid-area: 1 / 1; transition: opacity .15s, transform .2s var(--ease); }
.pbtn .i-play { margin-left: 5%; }
.pbtn .i-pause, .pbtn .i-load { opacity: 0; transform: scale(.6); }
.pbtn .i-load { width: 58%; height: 58%; animation: spin .9s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
[data-state="playing"] .pbtn .i-play, [data-state="loading"] .pbtn .i-play, [data-state="reconnecting"] .pbtn .i-play { opacity: 0; transform: scale(.6); }
[data-state="playing"] .pbtn .i-pause { opacity: 1; transform: none; }
[data-state="loading"] .pbtn .i-load, [data-state="reconnecting"] .pbtn .i-load { opacity: 1; transform: none; }
[data-state="playing"] .pbtn { box-shadow: 0 0 0 6px rgba(255,255,255,.22); }

.player__meta { min-width: 0; }
.player__status { margin: 0 0 8px; font-weight: 600; font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.player__status .live-dot { display: none; }
[data-state="playing"] .player__status .live-dot { display: inline-block; }
[data-state="error"] .player__status { color: #ff9aa8; }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
/* 7 plain white bars; viz.js scales them from the real audio (or a gentle rhythm) */
.eq i { width: 4px; height: 100%; border-radius: 2px; background: #fff; opacity: .45; transform: scaleY(.12); transform-origin: 50% 100%; transition: opacity .3s; will-change: transform; }
[data-state="playing"] .eq i { opacity: .95; }

.player__tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.vol { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 150px; color: rgba(255,255,255,.75); }
.mute { flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: rgba(255,255,255,.8); transition: background .15s, color .15s; }
.mute:hover { background: rgba(255,255,255,.1); color: #fff; }
.mute svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.mute .i-muted, [data-muted="true"] .mute .i-vol { display: none; }
[data-muted="true"] .mute .i-muted { display: block; }
[data-muted="true"] .mute { color: #ff9aa8; }
[data-muted="true"] input[type=range] { opacity: .45; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.25); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.player__hint { grid-column: 1 / -1; margin: 0; font-size: .8125rem; color: rgba(255,255,255,.6); }
/* On touch screens the volume slider is pointless (hardware buttons) */
@media (hover: none) and (pointer: coarse) { .vol { display: none; } .player__tools { display: none; } }


/* ── Presenters cut-out (stands on the bottom edge of the hero) ─────────── */
.hero__hosts { position: relative; justify-self: end; width: min(260px, 66vw); margin: 10px calc(-1 * clamp(18px, 5vw, 56px)) -44px 0; }
.hero__hosts img { width: 100%; height: auto; filter: drop-shadow(0 14px 30px rgba(0,0,30,.45));  }
.hero__tag {
  position: absolute; left: -10%; bottom: 14%; margin: 0; padding: 7px 13px; border-radius: 999px;
  background: rgba(3,5,44,.72); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.9); white-space: nowrap;
}
.hero__tag b { color: var(--gold); font-weight: 700; margin-right: 4px; }
/* "හඬෙත් අහන No.1 රේඩියෝ ඩබල" — even the moon listens (hence the space suits) */
.moon {
  position: absolute; left: -44%; top: 8%; width: clamp(108px, 40%, 176px); aspect-ratio: 1; border-radius: 50%;
  container-type: inline-size; display: grid; place-items: center; text-align: center; color: #0d1170;
  background:
    radial-gradient(13% 13% at 27% 31%, rgba(95,110,160,.22), transparent 70%),
    radial-gradient(9% 9% at 71% 21%, rgba(95,110,160,.2), transparent 70%),
    radial-gradient(16% 16% at 74% 70%, rgba(95,110,160,.16), transparent 70%),
    radial-gradient(8% 8% at 31% 78%, rgba(95,110,160,.2), transparent 70%),
    radial-gradient(6% 6% at 52% 50%, rgba(95,110,160,.12), transparent 70%),
    radial-gradient(circle at 36% 30%, #ffffff 0%, #e9eef8 50%, #c6cfe6 100%);
  box-shadow: inset -10px -14px 26px rgba(30,40,110,.28), 0 14px 30px rgba(0,0,30,.4);
  animation: moonfloat 7s ease-in-out infinite; will-change: transform, translate;
}
.moon p { margin: 0; position: relative; line-height: 1.05; }
.moon span { display: block; font-size: 11cqi; font-weight: 700; }
.moon b { display: block; font-family: var(--f-body); font-size: 27cqi; font-weight: 800; letter-spacing: -.02em; line-height: .95; color: var(--red); }
.moon p::before, .moon p::after { position: absolute; font-family: Georgia, serif; font-size: 26cqi; line-height: 1; color: var(--gold); font-weight: 700; }
.moon p::before { content: '\201C'; left: -14cqi; top: -9cqi; }
.moon p::after  { content: '\201D'; right: -12cqi; bottom: -20cqi; }
@keyframes moonfloat { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (min-width: 900px) {
  .moon { left: -24%; top: -4%; width: clamp(104px, 34%, 176px); }
  .hero__hosts { position: absolute; bottom: 0; right: 0; margin: 0; width: min(500px, 37vw, calc((100svh - var(--header-h) - 60px) * 1.04)); }
}

/* ═════════ SECTIONS ═══════════════════════════════════════════════════════ */
.section { padding: clamp(52px, 8vw, 100px) 0; scroll-margin-top: calc(var(--header-h) - 8px); }
.section--off { background: var(--off); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 10px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--dim);
}
.sec-kicker::before { content: ''; width: 34px; height: 2px; background: var(--red); }
.sec-title { margin: 0; font-family: var(--f-serif); font-weight: 700; line-height: 1; font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--ink); }
.sec-title em { font-style: normal; color: var(--blue); }
.sec-link { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.sec-link:hover { gap: 12px; }

/* ── Card grid (news + morning) ──────────────────────────────────────────── */
.grid { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; text-decoration: none; background: #fff; text-align: left; padding: 0;
  border: 1.5px solid var(--sdim); border-radius: var(--r); overflow: hidden;
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
  animation: rise .5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .card:hover { border-color: rgba(32,38,160,.28); box-shadow: 0 14px 40px rgba(32,38,160,.13); transform: translateY(-4px); }
  .card:hover .card__img img { transform: scale(1.06); }
}
.card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #e6e9fb, #d4d9f5); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--royal)); }
.card__fallback img { width: 34%; height: auto; object-fit: contain; opacity: .9; border-radius: 10px; }
.card__play {
  position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(0,0,40,.55), rgba(0,0,40,.05) 60%);
}
.card__play span {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(0,0,50,.45); border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s var(--ease), background .2s;
}
.card__play svg { width: 22px; height: 22px; margin-left: 2px; }
@media (hover: hover) { .card:hover .card__play span { transform: scale(1.12); background: var(--red); border-color: var(--red); } }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.card__title {
  margin: 0; font-family: var(--f-si); font-size: 1.0625rem; font-weight: 600; line-height: 1.55; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Skeletons */
.sk { background: linear-gradient(90deg, rgba(12,13,28,.06) 25%, rgba(12,13,28,.11) 37%, rgba(12,13,28,.06) 63%); background-size: 600px 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 4px; }
@keyframes shimmer { from { background-position: -600px 0; } to { background-position: 600px 0; } }
.card--sk { pointer-events: none; animation: none; }
.card--sk .card__img { background: none; }
.card--sk .card__img.sk { border-radius: 0; }
.sk-line { height: 13px; }

.state { grid-column: 1 / -1; text-align: center; padding: 44px 16px; color: var(--dim); }
.state p { margin: 0 0 14px; }
.more { display: flex; justify-content: center; margin-top: clamp(24px, 4vw, 40px); }
.more .btn { min-width: 180px; }
.btn.is-busy { opacity: .6; pointer-events: none; }

/* ── Siyatha News headline list ──────────────────────────────────────────── */
.heads { margin-top: clamp(36px, 6vw, 64px); padding-top: clamp(24px, 4vw, 36px); border-top: 1px solid var(--sdim); }
.heads__top { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; }
.heads__top h3 { margin: 0; font-family: var(--f-serif); font-size: 1.7rem; }
.heads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 36px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .heads ul { grid-template-columns: 1fr 1fr; } }
.heads li a {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; padding: 14px 0; text-decoration: none;
  border-bottom: 1px solid var(--sdim); font-family: var(--f-si); font-weight: 500; line-height: 1.55; transition: color .15s;
}
.heads li a:hover { color: var(--blue); }
.heads time { font-family: var(--f-body); font-size: .75rem; color: var(--dim); white-space: nowrap; }
.heads .sk-line { margin: 18px 0; }

/* ── App section ─────────────────────────────────────────────────────────── */
.app {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(800px 480px at 88% 20%, #0d14b0 0%, transparent 70%), linear-gradient(155deg, #00002e, #000062);
}
.app__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .app__grid { grid-template-columns: 1.2fr .8fr; } }
.app .sec-kicker { color: rgba(255,255,255,.7); }
.app .sec-kicker::before { background: var(--mood-b); }
.app .sec-title { color: #fff; }
.app .sec-title em { color: transparent; background: linear-gradient(100deg, var(--mood-a), var(--mood-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.app p { color: rgba(255,255,255,.74); max-width: 46ch; font-weight: 300; font-size: 1.05rem; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 12px; text-decoration: none;
  background: #fff; color: #0c0d1c; transition: transform .2s var(--ease), background .2s;
}
.store:hover { transform: translateY(-2px); background: #e9ecff; }
.store svg { width: 28px; height: 28px; flex-shrink: 0; }
.store small { display: block; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; line-height: 1.2; }
.store b { display: block; font-size: 1.05rem; line-height: 1.2; }

/* phone mock-up: a lock-screen that reacts to the radio like everything else */
.app__art { justify-self: center; }
.phone {
  position: relative; width: min(236px, 62vw); aspect-ratio: 9 / 18.4; padding: 8px; border-radius: 38px;
  background: #090b30; border: 1px solid rgba(255,255,255,.24); transform: rotate(3deg);
}
.phone__scr {
  position: relative; height: 100%; overflow: hidden; isolation: isolate; border-radius: 30px; text-align: center;
  background: linear-gradient(180deg, #02032c, #000048);
  display: flex; flex-direction: column; align-items: center; padding: 34px 14px 14px;
}
.phone .fx::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,30,.55) 0%, rgba(0,0,30,.1) 38%, rgba(0,0,30,0) 60%, rgba(0,0,30,.35) 100%); }
.phone__scr::after { content: ''; position: absolute; top: 9px; left: 50%; width: 62px; height: 16px; margin-left: -31px; border-radius: 10px; background: #000; }
.phone__clock { font-family: var(--f-disp); font-size: 3.4rem; line-height: 1; letter-spacing: .02em; margin-top: 18px; }
.phone__date { margin-top: 4px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.phone__card {
  margin-top: auto; width: 100%; padding: 10px; border-radius: 16px; text-align: left;
  background: rgba(2,4,50,.72); border: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center;
}
.phone__card img { width: 30px; border-radius: 5px; }
.phone__card b { display: block; font-size: .8rem; line-height: 1.2; }
.phone__card small { display: block; font-size: .66rem; color: rgba(255,255,255,.65); }
.phone__card .pbtn { width: 38px; box-shadow: none; }
.phone__card .pbtn:hover { transform: none; box-shadow: none; }
.phone__card .eq { grid-column: 1 / -1; height: 18px; }
.phone__card .eq { gap: 3px; }
.phone__card .eq i { width: 3px; }

/* ── About ───────────────────────────────────────────────────────────────── */
.about { display: grid; gap: 28px; }
@media (min-width: 820px) { .about { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.about p { margin: 0 0 16px; color: rgba(12,13,28,.72); font-size: 1.0625rem; }
.about strong { color: var(--ink); }

/* ═════════ FOOTER ═════════════════════════════════════════════════════════ */
.footer { background: var(--navy); color: #fff; }
.footer::before { content: ''; display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--mood-a) 30%, var(--mood-b) 70%, transparent); }
.footer__grid { display: grid; gap: 36px; padding: clamp(36px, 6vw, 64px) 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer h3 { margin: 0 0 16px; font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.footer p { margin: 0; color: rgba(255,255,255,.6); font-size: .9375rem; max-width: 34ch; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .9375rem; transition: color .15s; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.social a:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .8125rem; color: rgba(255,255,255,.45); }
.footer__bar .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer__bar a { font-size: inherit; color: inherit; }

/* ═════════ MINI PLAYER (sticky) ═══════════════════════════════════════════ */
.mini {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; overflow: hidden; isolation: isolate;
  padding-bottom: env(safe-area-inset-bottom);
  background: #02033a; color: #fff; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 -6px 24px rgba(0,0,20,.25);
  transform: translateY(105%); transition: transform .4s var(--ease);
}
body.has-mini .mini { transform: none; }
.mini__in { position: relative; height: var(--mini-h); display: flex; align-items: center; gap: 14px; }
.mini__logo { width: 36px; border-radius: 6px; flex-shrink: 0; }
.mini__txt { min-width: 0; flex: 1; line-height: 1.25; }
.mini__txt b { display: block; font-size: .9375rem; }
.mini__txt span { display: block; font-size: .75rem; color: rgba(255,255,255,.66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .pbtn { width: 46px; box-shadow: none; }
.mini .pbtn:hover { transform: scale(1.06); box-shadow: none; }
.mini .pbtn::after { display: none; }
.mini .btn { padding: 8px 14px; font-size: .8125rem; }
.mini__vol { flex: none; width: 120px; min-width: 0; }
.mini__mute { width: 40px; height: 40px; }

/* ═════════ ADS ════════════════════════════════════════════════════════════ */
.ad { padding: clamp(20px, 3vw, 32px) 0; text-align: center; }
.ad__label { margin: 0 0 6px; font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.ad ins { min-height: 100px; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ═════════ LIGHTBOX + TOAST ═══════════════════════════════════════════════ */
.lb {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(0,0,30,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.lb.is-open { opacity: 1; pointer-events: auto; }
.lb__box { width: min(960px, 100%); }
.lb__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lb__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb__title { margin: 14px 2px 0; color: rgba(255,255,255,.85); font-size: .9375rem; }
.lb__close {
  position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.lb__close:hover { background: rgba(255,255,255,.25); }
.lb__close svg { width: 18px; height: 18px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120; max-width: min(92vw, 420px);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 10px;
  background: #101235; color: #fff; font-size: .875rem; box-shadow: 0 14px 40px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15);
  transition: transform .35s var(--ease), opacity .25s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
body.has-mini .toast { bottom: calc(var(--mini-h) + 20px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}