/* ================= RYDIO — Apple Music-style theming (light + dark) ================= */
@font-face {
  font-family: "Figtree";
  src: url("figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand accent — TuneIn blue + navy */
  --accent: #2a9df4;
  --accent2: #1877d1;
  --navy: #1c203c;
  --red: #fa233b;         /* kept for LIVE badge + favourite hearts */
  --red-deep: #e01030;
  --org: #2a9df4;
  --gold: #f5a623;
  --grad: linear-gradient(135deg, #2a9df4 0%, #1877d1 100%);
  --grad-soft: linear-gradient(135deg, rgba(42,157,244,.16), rgba(24,119,209,.16));
  --spring: cubic-bezier(0.32, 0.72, 0.28, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

/* ---- DARK (default) — true-black like Apple Music ---- */
:root, :root[data-theme="dark"] {
  --bg: #000000;          /* pure black (AMOLED) — pehle navy #0b0e1a tha */
  --bg2: #0a0a0a;
  --card: #121212;
  --card2: #1c1c1e;
  --bord: rgba(255,255,255,.09);
  --tx: #ffffff;
  --mut: #9a9aa0;
  --faint: #636366;
  --seg-track: rgba(120,120,128,.24);
  --sheet-bg: rgba(18,18,18,.94);
  --knob-track: rgba(120,120,128,.32);
  --toast-bg: rgba(30,30,32,.97);
  --hero-shadow: 0 18px 44px -18px rgba(0,0,0,.7), 0 6px 22px rgba(0,0,0,.5);
  --card-shadow: none;
  --aurora-op: .15;       /* kaale par neeli roshni kam — sirf halki gehrai */
  color-scheme: dark;
}

/* ---- LIGHT — TuneIn grey + navy ---- */
:root[data-theme="light"] {
  --bg: #f1f2f3;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #ffffff;
  --bord: rgba(28,32,60,.08);
  --tx: #1c203c;
  --mut: #6b7189;
  --faint: #a6abbd;
  --seg-track: rgba(28,32,60,.08);
  --sheet-bg: rgba(248,249,251,.94);
  --knob-track: rgba(28,32,60,.14);
  --toast-bg: rgba(28,32,60,.97);
  --hero-shadow: 0 10px 34px -12px rgba(28,32,60,.18), 0 2px 10px rgba(28,32,60,.06);
  --card-shadow: 0 1px 3px rgba(28,32,60,.06), 0 6px 20px -12px rgba(28,32,60,.12);
  --aurora-op: .22;
  color-scheme: light;
}

/* auto-follow the system when the user hasn't picked a theme */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f1f2f3; --bg2: #ffffff; --card: #ffffff; --card2: #ffffff;
    --bord: rgba(28,32,60,.08); --tx: #1c203c; --mut: #6b7189; --faint: #a6abbd;
    --seg-track: rgba(28,32,60,.08); --sheet-bg: rgba(248,249,251,.94);
    --knob-track: rgba(28,32,60,.14); --toast-bg: rgba(28,32,60,.97);
    --hero-shadow: 0 10px 34px -12px rgba(28,32,60,.18), 0 2px 10px rgba(28,32,60,.06);
    --card-shadow: 0 1px 3px rgba(28,32,60,.06), 0 6px 20px -12px rgba(28,32,60,.12);
    --aurora-op: .22; color-scheme: light;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior: none; }
/* #app par hamesha will-change NAHI: lambi home screen ek GPU texture me bandh kar Android WebView ki texture-had
   (4096/8192px) paar karti thi → neeche ke card adhe paint (Education icon / Devotional text gayab, 26/10).
   Rubber-band khinchte waqt hi JS will-change lagata hai. */
.sh-body { overscroll-behavior: contain; }
body {
  font-family: "Figtree", -apple-system, "SF Pro Text", Roboto, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--tx);
  font-size: 15px;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
input { font: inherit; }
svg { display: block; }
use { pointer-events: none; }

/* icon defaults */
button svg, .np-song svg, .vol-ic, .chip svg, .rw-play svg, .sh-back svg,
.search-row svg, .eq-title svg, .cat-ic svg, .fmchip svg {
  width: 22px; height: 22px; fill: currentColor;
  stroke: currentColor; stroke-width: 0;
}

/* ---------------- aurora background ---------------- */
.aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: var(--aurora-op); transition: opacity .4s; }
.aurora i { position: absolute; border-radius: 50%; opacity: .5; will-change: transform; }
.aurora .a1 { width: 55vw; height: 55vw; left: -10vw; top: -6vh; background: radial-gradient(circle, rgba(42,157,244,.5), transparent 65%); animation: fl1 21s ease-in-out infinite alternate; }
.aurora .a2 { width: 48vw; height: 48vw; right: -12vw; top: 16vh; background: radial-gradient(circle, rgba(24,119,209,.4), transparent 65%); animation: fl2 26s ease-in-out infinite alternate; }
.aurora .a3 { width: 42vw; height: 42vw; left: 18vw; top: 46vh; background: radial-gradient(circle, rgba(40,60,150,.3), transparent 65%); animation: fl3 31s ease-in-out infinite alternate; }
@keyframes fl1 { to { transform: translate3d(16vw, 12vh, 0) scale(1.25); } }
@keyframes fl2 { to { transform: translate3d(-14vw, 20vh, 0) scale(0.85); } }
@keyframes fl3 { to { transform: translate3d(10vw, -14vh, 0) scale(1.3); } }

#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: 12px 14px calc(84px + env(safe-area-inset-bottom, 0px)); }

/* entrance */
.reveal { animation: rise .65s var(--spring) both; }
.reveal:nth-child(2) { animation-delay: .06s; }
.reveal:nth-child(3) { animation-delay: .12s; }
.reveal:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }

.glass {
  background: var(--card);
  border: 1px solid var(--bord);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
}
body { transition: background .35s ease, color .35s ease; }

/* ---------------- top bar ---------------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px 16px; }
.logo { display: flex; align-items: center; }
@font-face {
  font-family: "RyBrand";
  src: url("nunito-900i.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  /* U+0131 = dotless i of the wordmark; the latin woff2 carries this glyph */
  unicode-range: U+0000-00FF, U+0131;
}
.word {
  font-family: "RyBrand", -apple-system, Roboto, sans-serif;
  font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: -0.5px;
  color: var(--tx); line-height: 1;
  filter: drop-shadow(0 2px 10px rgba(250,35,59,.28));
}
/* header icon buttons (theme toggle) */
.iconchip {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card2); border: 1px solid var(--bord); color: var(--tx);
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--pop), background .2s;
}
.iconchip:active { transform: scale(.88); }
.iconchip svg { width: 19px; height: 19px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.wi { position: relative; }
.wbolt { position: absolute; width: 11px; height: 17px; left: 50%; transform: translateX(-30%); top: -11px; }
/* TuneIn-style boxed wordmark */
.ti-logo {
  display: inline-flex; align-items: center;
  font-family: "Figtree", sans-serif; font-weight: 900; font-size: 27px;
  letter-spacing: -0.5px; color: var(--tx); line-height: 1;
}
.ti-logo .io {
  background: var(--grad); color: #fff; padding: 2px 8px 3px; border-radius: 8px;
  margin-left: 3px; box-shadow: 0 3px 10px -2px rgba(42,157,244,.5);
}
.fmchip {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px;
  border-radius: 999px; background: var(--card2); border: 1px solid var(--bord);
  font-size: 13px; font-weight: 700; color: var(--tx);
  transition: transform .18s var(--pop), background .2s;
}
.fmchip:active { transform: scale(.93); background: var(--grad-soft); }
.fmchip svg { width: 17px; height: 17px; color: var(--gold); }

/* ---------------- hero player ---------------- */
.hero { position: relative; overflow: hidden; box-shadow: var(--hero-shadow); border: 2px solid transparent; }
.hero::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--wave-angle, 0deg), transparent 40%, #22c55e 50%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 4;
}
.playing .hero::before { opacity: 1; animation: herowave 2.5s linear infinite; }
@keyframes herowave { to { --wave-angle: 360deg; } }
@property --wave-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hero::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 60px; height: 60px;
  border-radius: 50%; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(34,197,94,.25) 0%, rgba(34,197,94,0) 70%);
  opacity: 0; pointer-events: none; z-index: 1;
}
.playing .hero::after { animation: heropulse 2.5s ease-out infinite; }
@keyframes heropulse {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: .5; }
  100% { transform: translate(-50%, -50%) scale(12); opacity: 0; }
}
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card2); border: 1px solid var(--bord);
  transition: transform .15s var(--pop);
}
.fav-btn:active { transform: scale(.85); }
.fav-btn svg { position: absolute; width: 20px; height: 20px; }
.fav-btn .ho { color: var(--mut); transition: opacity .2s; }
.fav-btn .hf { color: var(--red); opacity: 0; transform: scale(.4); transition: all .3s var(--pop); filter: drop-shadow(0 0 8px rgba(255,45,58,.7)); }
.fav-btn.on .hf { opacity: 1; transform: scale(1); }
.fav-btn.on .ho { opacity: 0; }
.fav-btn.burst .hf { animation: favburst .5s var(--pop); }
@keyframes favburst { 0% { transform: scale(.3); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }
.rw-fav { width: 36px; height: 44px; flex: none; display: grid; place-items: center; color: var(--faint); }
.rw-fav svg { width: 19px; height: 19px; }
.rw-fav.on { color: var(--red); }
.rw-fav.on svg { filter: drop-shadow(0 0 6px rgba(250,35,59,.5)); }
#viz { display: none; }
.hero-in { position: relative; padding: 2px 18px 14px; }

.np-row { display: flex; align-items: center; }
.disc {
  position: relative; width: 62px; height: 62px; border-radius: 50%; flex: none;
  /* vinyl grooves */
  background: repeating-radial-gradient(circle at 50% 50%,
    #17171b 0px, #17171b 1.6px, #0b0b0f 1.6px, #0b0b0f 3.2px);
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.disc .sheen {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg,
    rgba(255,255,255,.14), transparent 22%, transparent 46%,
    rgba(255,255,255,.08) 55%, transparent 68%, transparent 100%);
}
.disc .label {
  position: relative; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red-deep); display: grid; place-items: center;
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 2px 8px rgba(232,30,37,.5);
}
.disc .label svg { width: 9px; height: 14px; }
.disc .label::after {
  content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #0b0b0f;
}
.disc .ring {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(var(--red), var(--org), var(--gold), var(--red));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3px));
  opacity: .35; transition: opacity .4s;
}
.playing .disc { animation: spin 9s linear infinite; }
.playing .disc .ring { opacity: 1; }
.disc.pop { animation: discpop .5s var(--pop); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes discpop { 0% { transform: scale(.7) rotate(-14deg); } 100% { transform: scale(1); } }

.np-info { min-width: 0; flex: 1; text-align: center; }
.badges { display: flex; gap: 7px; align-items: center; justify-content: center; margin-top: 15px; margin-bottom: 5px; min-height: 20px; }
.live {
  display: none; align-items: center; gap: 5px; padding: 2.5px 9px; border-radius: 999px;
  background: rgba(232,30,37,.16); border: 1px solid rgba(255,45,58,.5);
  color: #ff5560; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px;
}
.live i { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-out infinite; }
.on-air .live { display: inline-flex; }
/* playing = vibrant green capsule; paused/stopped = red (default above) */
body.playing .live { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.5); color: #10b981; }
body.playing .live i { background: #10b981; animation-name: pulseb; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,45,58,.7); } 100% { box-shadow: 0 0 0 8px rgba(255,45,58,0); } }
@keyframes pulseb { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); } 100% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }
/* list-row bitrate tag (learn-as-you-play / audit-seed) */
.rw-br {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .3px;
  background: var(--chip); color: var(--mut); vertical-align: 1.5px;
}
.rw-br.hv { background: rgba(250,35,59,.13); color: var(--red); }
.row.heavy { opacity: .55; }

.br-chip {
  display: inline-flex; align-items: center; padding: 2.5px 9px; border-radius: 999px;
  background: var(--grad-soft); color: var(--accent);
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px;
}
.br-chip[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 2.5px 9px; border-radius: 999px;
  background: var(--card2); border: 1px solid var(--bord);
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: var(--tx);
}
.chip svg { width: 13px; height: 13px; }
.mode-chip { transition: transform .25s var(--pop); }
.mode-chip.dolby { background: var(--grad-soft); border-color: rgba(255,122,24,.55); color: #ffc38a; }
.mode-chip.hd { background: rgba(255,176,32,.14); border-color: rgba(255,209,102,.6); color: #ffd166; }
.eq-hd .eq-bands, .eq-hd .eq-presets { opacity: .35; pointer-events: none; filter: saturate(.3); }
.mode-chip.flash { transform: scale(1.15); }
.np-name { font-size: 18px; font-weight: 800; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buffering .np-name { animation: shimmer 1.1s linear infinite; background: linear-gradient(90deg, var(--tx) 30%, var(--accent) 50%, var(--tx) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes shimmer { to { background-position: -200% 0; } }
.np-song { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3px; color: var(--mut); font-size: 12.5px; }
.marq { text-align: center; }
.np-song .note { width: 14px; height: 14px; flex: none; color: var(--org); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
.marq { overflow: hidden; white-space: nowrap; min-width: 0; flex: 1; }
.marq span { display: inline-block; white-space: nowrap; }
.marq.scroll span { animation: marq var(--marq-t, 12s) linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }

/* controls */
.controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 18px 0 4px; }
.ctl {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card2); border: 1px solid var(--bord); color: var(--tx);
  transition: transform .15s var(--pop), background .2s;
}
.ctl:active { transform: scale(.88); background: var(--grad-soft); }
.ctl svg { width: 24px; height: 24px; }

.fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #fa233b, #ff2f5a);   /* stopped/paused = red */
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 34px -6px rgba(255,45,58,.55);
  transition: transform .18s var(--pop), background .25s, box-shadow .25s;
}
body.playing .fab {                                        /* playing = green */
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 12px 34px -6px rgba(34,197,94,.5);
}
.fab:active { transform: scale(.9); }
.fab .ic { position: absolute; width: 26px; height: 26px; transition: transform .28s var(--pop), opacity .2s; }
.fab .ic-pause { transform: scale(.3) rotate(90deg); opacity: 0; }
.playing .fab .ic-play { transform: scale(.3) rotate(-90deg); opacity: 0; }
.playing .fab .ic-pause { transform: scale(1) rotate(0); opacity: 1; }
.fab-pulse, .fab-pulse2, .fab-pulse3 { position: absolute; inset: 0; border-radius: 50%; opacity: 0; z-index: -1; }
.fab-pulse { background: radial-gradient(circle, rgba(34,197,94,.7) 0%, rgba(34,197,94,.3) 30%, rgba(34,197,94,0) 70%); }
.playing .fab-pulse { animation: fabpulse 2.4s ease-out infinite; }
.fab-pulse2 { background: radial-gradient(circle, rgba(34,197,94,.6) 0%, rgba(34,197,94,.25) 30%, rgba(34,197,94,0) 70%); }
.playing .fab-pulse2 { animation: fabpulse 2.4s ease-out .5s infinite; }
.fab-pulse3 { background: radial-gradient(circle, rgba(34,197,94,.5) 0%, rgba(34,197,94,.2) 30%, rgba(34,197,94,0) 70%); }
.playing .fab-pulse3 { animation: fabpulse 2.4s ease-out 1s infinite; }
@keyframes fabpulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(8); opacity: 0; } }
.fab-ring { position: absolute; inset: -5px; border-radius: 50%; }
.spinner {
  position: absolute; inset: -5px; border-radius: 50%; opacity: 0;
  /* theme-aware: dark me white (pehle jaisa), light me navy — dono me dikhta hai */
  border: 3px solid transparent; border-top-color: var(--tx); border-right-color: var(--mut);
  transition: opacity .2s;
}
.buffering .spinner { opacity: 1; animation: rot .8s linear infinite; }
.buffering .fab .ic { opacity: .9; }   /* spinner hi buffering dikhata hai — icon poora visible rahe */
@keyframes rot { to { transform: rotate(360deg); } }

/* volume */
.vol-row { display: none; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 26px; background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2) var(--fill, 70%), var(--seg-track) var(--fill, 70%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.04);
  transition: transform .15s var(--pop);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }

/* mode segmented */
.mode-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.seg {
  position: relative; flex: 0 1 auto; display: inline-flex; background: var(--seg-track);
  border: 1px solid var(--bord); border-radius: 13px; padding: 0; height: 34px;
  overflow: hidden;
}
.seg button {
  position: relative; z-index: 1; flex: 1; display: flex; width: 52px;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: .2px; color: var(--mut);
  transition: color .25s;
}
.seg button.on { color: #fff; }
.seg-thumb {
  position: absolute; top: 0; bottom: 0; left: 0; width: 25%;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);   /* Stereo/Dolby/HD = green */
  box-shadow: 0 4px 14px -2px rgba(34,197,94,.5);
  transition: transform .35s var(--pop), background .25s, box-shadow .25s;
}
.seg.mode-off .seg-thumb {                                  /* OFF = red */
  background: linear-gradient(135deg, #fa233b, #ff2f5a);
  box-shadow: 0 4px 14px -2px rgba(255,45,58,.5);
}
.eq-btn {
  width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center;
  background: var(--card2); border: 1px solid var(--bord); color: var(--tx);
  transition: transform .15s var(--pop), background .2s, color .2s;
}
.eq-btn svg { width: 19px; height: 19px; }
.eq-btn:active { transform: scale(.9); }
.eq-btn.on { background: var(--grad-soft); color: var(--accent); border-color: rgba(250,35,59,.4); }

/* ---------------- categories ---------------- */
.sec-title { display: none; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cat {
  position: relative; overflow: hidden; border-radius: 18px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--bord); box-shadow: var(--card-shadow);
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  height: 86px;   /* globally same height = purane Music/Aapke-aas-paas wide card jitna */
  transition: transform .18s var(--pop), border-color .2s;
  animation: rise .6s var(--spring) both; animation-delay: calc(var(--d) * 60ms + 200ms);
}
.cat:active { transform: scale(.955); }
.cat.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 86px; }
.cat::before { display: none; }
.cat::after { display: none; }
.cat-ic {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  background: none;   /* no box — just the symbol, tinted with the card's colour */
}
.cat-ic svg { width: 30px; height: 30px; color: var(--c1, var(--accent)); }
.cat-tx { position: relative; min-width: 0; flex: 1; text-align: left; }
.cat-name { font-size: 13.5px; font-weight: 800; letter-spacing: -.2px; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-sub { font-size: 11px; color: var(--mut); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.cat-go { display: none; }   /* half-width cards: chevron crowds the text */
.foot { text-align: center; color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 2px; margin: 26px 0 8px; }
.foot-note { text-align: center; color: var(--faint); font-size: 11px; line-height: 1.5; margin: 0 12px 8px; opacity: .85; }
.dev-by { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--bord); }
.dev-by-t { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.dev-logo { display: block; height: 40px; width: auto; }

/* ---------------- sheets ---------------- */
.sheet {
  position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  transform: translateY(104%); transition: transform .5s var(--spring);
  visibility: hidden;
}
.sheet.open { transform: translateY(0); visibility: visible; }
.sh-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
.sh-back {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--card2); border: 1px solid var(--bord);
  transition: transform .15s var(--pop);
}
.sh-back:active { transform: scale(.88); }
.sh-title { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.sh-sub { font-size: 12px; color: var(--mut); margin-top: 1px; }
.sh-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 14px calc(40px + env(safe-area-inset-bottom, 0px)); }

.search-row {
  display: flex; align-items: center; gap: 10px; margin: 4px 14px 10px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--bord); border-radius: 16px; height: 46px;
}
.search-row svg { width: 18px; height: 18px; color: var(--mut); flex: none; }
.search-row input { flex: 1; background: none; border: 0; outline: 0; color: var(--tx); height: 100%; }
.search-row input::placeholder { color: var(--mut); }

.ava.fmv { font-size: 12.5px; letter-spacing: 0; font-variant-numeric: tabular-nums; font-style: italic; }

/* ---------------- location line (operator + city, Nokia-style) ---------------- */
.loc-bar {
  display: flex; align-items: center; gap: 6px; width: 100%;
  margin: -6px 0 12px; padding: 3px 2px; background: none;
  color: var(--mut); font-size: 12.5px; font-weight: 600; text-align: left;
}
.loc-bar:active { opacity: .6; }
.loc-bar .loc-ic { width: 15px; height: 15px; flex: none; color: var(--accent); }
/* place wraps to max 2 lines; operator stays pinned right, never clipped */
.loc-bar #locTxt { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.loc-op-wrap { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.loc-bar .loc-op { white-space: nowrap; color: var(--mut); font-weight: 600; }
/* signal dots: sirf 2 rang — jitna network utne GREEN, baaki RED; smooth color change */
.loc-sig { display: flex; gap: 3px; }
.loc-sig i { width: 5px; height: 5px; border-radius: 50%; background: #fa233b; transition: background .5s, transform .3s; }
.loc-sig i.f { background: #22c55e; }
.loc-bar.has { color: var(--tx); font-weight: 700; }

/* ---------------- No-Buffer mode bar ---------------- */
.nobuf-bar {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  margin: 0 0 14px; padding: 11px 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--bord); box-shadow: var(--card-shadow);
  color: var(--tx); transition: transform .15s var(--pop), border-color .25s;
  animation: rise .6s var(--spring) both; animation-delay: .1s;
}
.nobuf-bar:active { transform: scale(.99); }
.nobuf-bar.on { border-color: var(--bord); }
.nb-ic { width: 22px; height: 22px; flex: none; color: var(--mut); transition: color .25s; }
.nobuf-bar.on .nb-ic { color: #e8222a; }
.nb-tx { flex: 1; min-width: 0; overflow: hidden; }
.nb-tx b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-tx small { color: var(--mut); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-switch { position: relative; width: 46px; height: 28px; border-radius: 999px; flex: none; background: var(--knob-track); transition: background .25s; }
.nb-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .3s var(--pop); }
.nobuf-bar.on .nb-switch { background: var(--grad); }
.nobuf-bar.on .nb-switch i { transform: translateX(18px); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--card); border: 1px solid var(--bord); color: var(--mut);
  transition: all .2s;
}
.chips button.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px -3px rgba(255,45,58,.5); }

/* channel rows */
.row {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px;
  border-radius: 18px; margin-bottom: 4px;
  transition: background .2s, transform .12s var(--pop);
  animation: rowin .45s var(--spring) both;
}
@keyframes rowin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.row:active { transform: scale(.97); background: var(--card); }
.row.cur { background: var(--grad-soft); border: 1px solid rgba(250,35,59,.32); }
.ava {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff; background: var(--ag);
  text-transform: uppercase; letter-spacing: .5px;
}
.rw-num { width: 36px; flex: none; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.rw-in { flex: 1; min-width: 0; }
.rw-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-sub { font-size: 11.5px; color: var(--mut); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-play { color: var(--mut); flex: none; width: 30px; display: grid; place-items: center; }
.rw-play svg { width: 20px; height: 20px; }
.row.cur .rw-play { color: var(--accent); }

.empty { text-align: center; color: var(--mut); font-size: 13.5px; padding: 46px 20px; line-height: 1.6; }

/* playing bars icon */
.bars { display: flex; align-items: flex-end; gap: 2.5px; height: 18px; }
.bars i { width: 3.5px; border-radius: 2px; background: var(--grad); animation: beq .9s ease-in-out infinite; }
.bars i:nth-child(1) { animation-delay: 0s; } .bars i:nth-child(2) { animation-delay: .22s; }
.bars i:nth-child(3) { animation-delay: .44s; } .bars i:nth-child(4) { animation-delay: .11s; }
@keyframes beq { 0%,100% { height: 5px; } 50% { height: 17px; } }

/* states grid */
.state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 6px; }
.state {
  padding: 15px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--bord);
  transition: transform .15s var(--pop), background .2s;
  animation: rowin .4s var(--spring) both; animation-delay: calc(var(--d) * 22ms);
}
.state:active { transform: scale(.94); background: var(--grad-soft); }
.state .sn { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.state .sc { font-size: 11px; color: var(--mut); margin-top: 2px; }

/* ---------------- EQ sheet ---------------- */
.eq-wrap { position: fixed; inset: 0; z-index: 40; visibility: hidden; pointer-events: none; }
.eq-wrap.open { visibility: visible; pointer-events: auto; }
.eq-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .35s; }
.eq-wrap.open .eq-scrim { opacity: 1; }
.eq-card {
  position: absolute; left: 0; right: 0; bottom: 0; border-radius: 28px 28px 0 0;
  background: var(--sheet-bg); padding: 10px 18px calc(30px + env(safe-area-inset-bottom, 0px));
  -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4);
  border-top: 1px solid var(--bord);
  transform: translateY(105%); transition: transform .45s var(--spring);
  max-width: 520px; margin: 0 auto;
  max-height: 86vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.eq-wrap.open .eq-card { transform: translateY(0); }
.eq-grip { width: 42px; height: 4.5px; border-radius: 3px; background: var(--knob-track); margin: 4px auto 12px; }
.eq-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.eq-head-r { display: flex; align-items: center; gap: 12px; }
.eq-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; }
.eq-title svg { width: 20px; height: 20px; color: var(--accent); }
.tm-row b { display: inline-flex; align-items: center; gap: 7px; }
.tm-ic { width: 17px; height: 17px; color: var(--accent); flex: none; }
.switch { position: relative; width: 52px; height: 30px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--knob-track);
  transition: background .25s;
}
.switch span::after {
  content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  top: 3px; left: 3px; background: #fff; transition: transform .3s var(--pop);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.switch input:checked + span { background: var(--grad); }
.switch input:checked + span::after { transform: translateX(22px); }
.eq-presets { padding: 0 0 14px; }
.eq-bands { display: flex; justify-content: space-between; gap: 6px; padding: 6px 2px 2px; }
.band { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.band .slot { position: relative; height: 158px; width: 100%; display: grid; place-items: center; }
.band input[type="range"] {
  position: absolute; width: 150px; height: 26px; transform: rotate(-90deg);
}
.band .hz { font-size: 10.5px; font-weight: 700; color: var(--mut); letter-spacing: .3px; }
.band .db { font-size: 10px; color: var(--accent); font-weight: 800; height: 13px; }
.eq-note { text-align: center; color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: .6px; margin-top: 14px; }
.eq-off .tone { opacity: .35; pointer-events: none; filter: saturate(.3); transition: opacity .3s; }

/* 3-band tone (Bass / Vocal / Treble) */
.tone { padding: 8px 2px 2px; display: flex; flex-direction: column; gap: 16px; }
.tone-row { display: flex; align-items: center; gap: 14px; }
.tone-lbl { width: 56px; font-size: 14px; font-weight: 800; flex: none; }
.tone-s { flex: 1; }
.tone-s::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2) var(--fill, 50%), var(--seg-track) var(--fill, 50%));
}
.tone-val { width: 34px; text-align: right; font-size: 12.5px; font-weight: 800; color: var(--accent); flex: none; }

/* ---------------- timer & alarm sheet ---------------- */
.tm-sec { padding: 4px 0; border-top: 1px solid var(--bord); margin-top: 12px; }
.tm-sec:first-of-type { border-top: 0; margin-top: 2px; }
.tm-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.tm-row b { font-size: 15px; font-weight: 800; }
.tm-remain { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.tm-chips { padding: 0 0 4px; }
.tm-note { font-size: 11px; color: var(--faint); margin: 6px 2px 2px; }
/* settings sheet */
.set-in { margin-top: 8px; }
.set-save {
  margin-top: 10px; width: 100%; font-size: 13.5px; font-weight: 800; color: #fff;
  padding: 11px; border-radius: 11px; background: var(--grad);
  transition: transform .15s var(--pop);
}
.set-save:active { transform: scale(.97); }
.g-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  margin: 4px 0 8px; padding: 11px; border-radius: 12px; background: #fff; color: #1f1f1f;
  font-size: 14px; font-weight: 800; border: 1px solid rgba(0,0,0,.12);
  transition: transform .15s var(--pop);
}
.g-btn:active { transform: scale(.97); }
.g-btn[hidden] { display: none; }
.g-btn[disabled] { opacity: .6; }
.g-card {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; padding: 10px 12px;
  border-radius: 12px; background: var(--card2); border: 1px solid var(--bord);
}
.g-card[hidden] { display: none; }
.g-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--chip); flex: 0 0 auto; }
.g-who { flex: 1; min-width: 0; }
.g-name { font-size: 14px; font-weight: 800; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-mail { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-out { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--red); padding: 8px 12px; border-radius: 10px; background: var(--chip); border: 1px solid var(--line); }

.aq { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.aq-lbl { font-size: 12px; font-weight: 800; color: var(--mut); margin: 0 2px 8px; }
.aq-row { display: flex; gap: 8px; }
.aq-chip { flex: 1; font-size: 12.5px; font-weight: 800; color: var(--tx); padding: 9px 2px; border-radius: 10px; background: var(--chip); border: 1px solid var(--line); transition: transform .15s var(--pop); }
.aq-chip span { display: block; font-size: 10px; font-weight: 700; color: var(--faint); margin-top: 2px; }
.aq-chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.aq-chip.on span { color: rgba(255,255,255,.75); }
.aq-chip:active { transform: scale(.95); }
.aq-note { font-size: 11px; color: var(--faint); margin: 8px 2px 0; }
.sched-warn { margin: 12px 2px 2px; padding: 11px 12px; border-radius: 12px; background: rgba(250,35,59,.08); border: 1px solid rgba(250,35,59,.28); }
.sched-warn-t { font-size: 12px; line-height: 1.45; color: var(--tx); }
.sched-warn-t b { color: var(--red); }
.sched-warn-row { display: flex; gap: 8px; margin-top: 9px; }
.sched-warn-btn { flex: 1; font-size: 13px; font-weight: 800; color: #fff; padding: 10px; border-radius: 10px; background: linear-gradient(135deg,#fa233b,#ff2f5a); transition: transform .15s var(--pop); }
.sched-warn-done { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--tx); padding: 10px 14px; border-radius: 10px; background: var(--chip); border: 1px solid var(--line); transition: transform .15s var(--pop); }
.sched-warn-btn:active, .sched-warn-done:active { transform: scale(.96); }
.tm-alarm { display: flex; align-items: center; gap: 14px; margin: 2px 0 4px; }
.tm-alarm input[type="time"] {
  font-size: 21px; font-weight: 800; color: var(--tx);
  background: var(--card2); border: 1px solid var(--bord); border-radius: 12px;
  padding: 8px 12px; color-scheme: light dark;
}
.tm-st { flex: 1; min-width: 0; font-size: 13px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-input {
  width: 100%; background: var(--card2); border: 1px solid var(--bord); border-radius: 12px;
  padding: 11px 14px; color: var(--tx); font-size: 15px; margin: 2px 0 8px; outline: none;
}
.tm-input::placeholder { color: var(--mut); }
.tm-input:focus { border-color: rgba(250,35,59,.45); }

/* scheduled channels */
.tm-add { font-size: 13px; font-weight: 800; color: var(--accent); padding: 6px 13px; border-radius: 999px; background: var(--grad-soft); transition: transform .15s var(--pop); }
.tm-add:active { transform: scale(.92); }
.sched-empty { text-align: center; color: var(--faint); font-size: 12.5px; padding: 24px 12px; line-height: 1.6; }
.sched { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--bord); animation: rowin .35s var(--spring) both; }
.sched:last-of-type { border-bottom: 0; }
.sched-time { background: var(--card2); border: 1px solid var(--bord); border-radius: 10px; padding: 6px 9px; color: var(--tx); font-size: 15px; font-weight: 800; color-scheme: light dark; flex: none; }
.sched-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-del { width: 30px; height: 30px; display: grid; place-items: center; color: var(--faint); flex: none; }
.sched-del svg { width: 16px; height: 16px; }
.sw-sm { position: relative; width: 42px; height: 25px; flex: none; display: inline-block; }
.sw-sm input { opacity: 0; width: 0; height: 0; }
.sw-sm span { position: absolute; inset: 0; border-radius: 999px; background: var(--knob-track); transition: background .25s; }
.sw-sm span::after { content: ""; position: absolute; width: 19px; height: 19px; border-radius: 50%; top: 3px; left: 3px; background: #fff; transition: transform .3s var(--pop); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.sw-sm input:checked + span { background: var(--grad); }
.sw-sm input:checked + span::after { transform: translateX(17px); }

/* app update */
.upd-info { font-size: 13px; color: var(--mut); padding: 4px 0 8px; }

/* ---------------- mini player ---------------- */
.mini {
  position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 18px; box-shadow: var(--hero-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  transform: translateY(130%); transition: transform .45s var(--spring);
}
.mini.show { transform: translateY(0); }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; width: 24px; flex: none; }
.mini-bars i { width: 4px; border-radius: 2px; background: var(--grad); animation: beq 1s ease-in-out infinite; }
.mini-bars i:nth-child(2) { animation-delay: .25s; } .mini-bars i:nth-child(3) { animation-delay: .5s; }
.mini-bars i:nth-child(4) { animation-delay: .12s; }
.mini-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-play {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; flex: none; position: relative;
  transition: transform .15s var(--pop);
}
.mini-play:active { transform: scale(.88); }
.mini-play svg { position: absolute; width: 20px; height: 20px; transition: opacity .2s, transform .25s var(--pop); }
.mini-play .ic-pause { opacity: 0; transform: scale(.4); }
body.playing .mini-play .ic-pause { opacity: 1; transform: scale(1); }
body.playing .mini-play .ic-play { opacity: 0; transform: scale(.4); }

/* ---------------- toast ---------------- */
#toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 60; transform: translateX(-50%) translateY(24px);
  background: var(--toast-bg); border: 1px solid rgba(255,255,255,.08); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .35s var(--pop);
  box-shadow: 0 10px 34px rgba(0,0,0,.4); white-space: nowrap; max-width: 88vw;
  overflow: hidden; text-overflow: ellipsis;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 350px) {
  .controls { gap: 20px; }
  .word { font-size: 21px; }
}

/* ---------------- tablet / large screens (v4.9.11) ----------------
   Phone: wrappers are transparent (display: contents) so the single column is unchanged.
   >= 720px: player column left (sticky), Browse right; sheets become a centred panel. */
.col-l, .col-r { display: contents; }
@media (min-width: 720px) {
  #app {
    max-width: 1200px; padding: 16px 24px calc(112px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; column-gap: 24px; align-items: start;
  }
  .topbar { grid-column: 1 / -1; }
  .col-l, .col-r { display: block; min-width: 0; }
  .col-l { position: sticky; top: 16px; }
  .grid { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
  .state-grid { grid-template-columns: repeat(3, 1fr); }
  .sh-head, .sh-body, .search-row { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
  .search-row { width: calc(100% - 28px); }
  .mini { max-width: 560px; }
}
@media (min-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .state-grid { grid-template-columns: repeat(4, 1fr); }
  .sh-head, .sh-body, .search-row { max-width: 960px; }
}
/* short landscape (phone sideways / small tablets): keep the player compact */
@media (min-width: 720px) and (max-height: 560px) {
  .col-l { position: static; }
}

/* ---------------- TV remote / keyboard focus ---------------- */
html.kbd :focus { outline: 3px solid var(--accent); outline-offset: 3px; }
html.kbd .row:focus { outline-offset: -3px; background: var(--card2); }
html.kbd .rw-fav:focus, html.kbd .switch:focus { border-radius: 999px; }
html.kbd .cat:focus, html.kbd .state:focus { transform: scale(1.03); }
/* TV: keep content inside the ~5% overscan-safe area; no GPS/SIM so the location bar is useless */
html.tv body { padding: 3vh 4vw; }
html.tv .sheet { padding: 3vh 4vw; }
html.tv .eq-card { bottom: 3vh; }
html.tv #locBar { display: none; }

/* Poppins (OFL, Latin subset) — subscription + launch banner ka professional font; Ryolite Digital logo ke "digital" se mel */
@font-face { font-family: "Poppins"; src: url("poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Poppins"; src: url("poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Poppins"; src: url("poppins-semibold.woff2") format("woff2"); font-weight: 600; font-display: block; }
@font-face { font-family: "Poppins"; src: url("poppins-bold.woff2") format("woff2"); font-weight: 700; font-display: block; }
.sub-gate, .splash, .sub-gate button, .sub-gate input { font-family: "Poppins", "Figtree", sans-serif; }
/* ---------- subscription / activation code screen (theme-aware, paywall layout) ---------- */
.rd-d { display: none !important; }
:root[data-theme="dark"] .rd-l { display: none !important; }
:root[data-theme="dark"] .rd-d { display: block !important; }
.sub-gate {
  position: fixed; inset: 0; z-index: 58; display: flex; justify-content: center;
  padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(100% 40% at 50% 0%, rgba(42,157,244,.14), rgba(42,157,244,0)), var(--bg); color: var(--tx);
  visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .3s, visibility 0s .3s; overflow-y: auto;
}
.sub-gate.open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .3s; }
.sub-box { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; align-items: stretch; }
.sub-logo { display: block; width: 44%; max-width: 168px; height: auto; margin: 0 auto 24px; }
.sub-h { margin: 0; text-align: center; font-size: 22px; font-weight: 400; letter-spacing: 4px; text-transform: uppercase; line-height: 1.25; }
.sub-p { margin: 8px 0 24px; text-align: center; font-size: 14px; font-weight: 400; color: var(--mut); }
.sub-ben { list-style: none; margin: 0 0 24px; padding: 0 4px; display: grid; gap: 12px; }
.sub-ben li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.sub-ben span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent); }
.sub-ben svg { width: 14px; height: 14px; }
.sub-form { display: grid; gap: 12px; }
.sub-plan {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; text-align: left;
  border-radius: 16px; border: 1.5px solid var(--bord); background: var(--card); color: var(--tx); font: inherit;
  box-shadow: var(--card-shadow); transition: border-color .2s, background .2s, transform .15s;
}
.sub-plan:active { transform: scale(.985); }
.sub-plan.on { border-color: var(--accent); background: var(--grad-soft), var(--card); }
.sub-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--faint); position: relative; transition: border-color .2s; }
.sub-plan.on .sub-radio { border-color: var(--accent); }
.sub-plan.on .sub-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.sub-plan-t { flex: 1; min-width: 0; }
.sub-plan-t b { display: block; font-size: 15px; font-weight: 600; }
.sub-plan-t small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--mut); }
.sub-plan-p { flex: none; text-align: right; }
.sub-plan-p b { display: block; font-size: 15px; font-weight: 600; }
.sub-plan-p em { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1px; background: rgba(22,163,74,.14); color: #16a34a; }
.sub-codewrap[hidden] { display: none; }
.sub-in {
  width: 100%; height: 52px; border-radius: 16px; border: 1.5px solid var(--bord); background: var(--card);
  color: var(--tx); font: inherit; font-size: 16px; font-weight: 600; letter-spacing: 3px; text-align: center;
  text-transform: uppercase; outline: none; transition: border-color .2s, box-shadow .2s;
}
.sub-in::placeholder { color: var(--faint); font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sub-in:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(42,157,244,.15); }
.sub-in.bad { border-color: var(--red); animation: subShake .35s; }
@keyframes subShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sub-err { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 8px; text-align: center; }
.sub-go { width: 100%; height: 52px; border: 0; border-radius: 16px; background: var(--grad); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .2px; box-shadow: 0 10px 24px -10px rgba(42,157,244,.6); transition: transform .15s; }
.sub-go:active { transform: scale(.97); }
.sub-trial { padding: 12px; border-radius: 12px; background: var(--grad-soft); color: var(--tx); font-size: 13px; font-weight: 500; text-align: center; }
.sub-trial b { color: var(--accent); }
.sub-done { text-align: center; padding: 24px 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--bord); }
.sub-ok { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; }
.sub-ok svg { width: 28px; height: 28px; }
.sub-done-t { font-size: 20px; font-weight: 700; }
.sub-till { font-size: 14px; color: var(--mut); margin: 4px 0 16px; }
.sub-mail { margin-top: 24px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--mut); }
.sub-mail a { display: block; color: var(--accent); font-weight: 600; text-decoration: none; }
.sub-skip { align-self: center; margin-top: 12px; padding: 8px 16px; border: 0; background: none; color: var(--faint); font: inherit; font-size: 14px; font-weight: 500; }

/* ---------- launch banner (Ryolite Digital presents Rydio, theme-aware) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; text-align: center; color: var(--tx); background: var(--bg);
  transition: opacity .45s ease, visibility 0s .45s;
}
.splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-center { display: flex; flex-direction: column; align-items: center; }
.splash-center > * { animation: splashIn .7s var(--spring) both; }
.splash-logo { width: 62%; max-width: 248px; height: auto; }
.splash-pre { margin-top: 32px; font-size: 11px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase; color: var(--faint); animation-delay: .15s !important; }
.splash-app { margin-top: 12px; animation-delay: .25s !important; }
.splash-app .ti-logo { font-size: 50px; letter-spacing: -1px; }
.splash-app .ti-logo .io { padding: 3px 14px 5px; border-radius: 14px; margin-left: 5px; }
.splash-tag { margin-top: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--mut); animation-delay: .35s !important; }
.splash-bar { position: absolute; left: 50%; bottom: calc(48px + env(safe-area-inset-bottom, 0px)); width: 96px; height: 3px; margin-left: -48px;
  border-radius: 3px; background: var(--seg-track); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--grad); transform-origin: left; animation: splashBar 1.7s ease-out both; }
@keyframes splashIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes splashBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ================= motion pack: launch banner, subscription screen, home cards ================= */
/* home par entrance tab tak ruki rahe jab tak banner hai — warna banner ke peeche hi khatam ho jaati */
body.splashing .reveal, body.splashing .cat, body.splashing .cat::after { animation-play-state: paused; }

/* --- launch banner --- */
.splash::before {
  content: ""; position: absolute; left: 50%; top: 44%; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,196,81,.32) 0%, rgba(245,196,81,0) 65%);   /* sunehri roshni */
  animation: splashGlow 1.8s ease-out both; pointer-events: none;
}
@keyframes splashGlow { 0% { opacity: 0; transform: scale(.35); } 45% { opacity: 1; } 100% { opacity: .55; transform: scale(1.15); } }
.splash-center > .splash-logo { animation: splashLogo .9s var(--spring) both; }
@keyframes splashLogo { from { opacity: 0; transform: scale(.82); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.splash-app .ti-logo .io { display: inline-block; animation: ioPop .6s var(--pop) .55s both; }
@keyframes ioPop { from { opacity: 0; transform: scale(.2) rotate(-14deg); } to { opacity: 1; transform: none; } }

/* --- subscription screen (class .anim JS lagata hai jab screen sach me dikhti hai) --- */
.sub-gate.anim .sub-box > *, .sub-gate.anim .sub-form > *, .sub-gate.anim .sub-ben li { animation: subRise .55s var(--spring) both; }
.sub-gate.anim .sub-box > :nth-child(3) { animation-delay: .08s; }
.sub-gate.anim .sub-box > :nth-child(4) { animation-delay: .14s; }
.sub-gate.anim .sub-ben li:nth-child(1) { animation-delay: .2s; }
.sub-gate.anim .sub-ben li:nth-child(2) { animation-delay: .27s; }
.sub-gate.anim .sub-ben li:nth-child(3) { animation-delay: .34s; }
.sub-gate.anim .sub-form > :nth-child(1) { animation-delay: .38s; }
.sub-gate.anim .sub-form > :nth-child(2) { animation-delay: .44s; }
.sub-gate.anim .sub-form > :nth-child(3) { animation-delay: .5s; }
.sub-gate.anim .sub-form > :nth-child(4) { animation-delay: .56s; }
.sub-gate.anim .sub-form > :nth-child(5) { animation-delay: .62s; }
.sub-gate.anim .sub-box > .sub-mail { animation-delay: .7s; }
.sub-gate.anim .sub-ben span { animation: chkPop .45s var(--pop) both; }
.sub-gate.anim .sub-ben li:nth-child(1) span { animation-delay: .4s; }
.sub-gate.anim .sub-ben li:nth-child(2) span { animation-delay: .5s; }
.sub-gate.anim .sub-ben li:nth-child(3) span { animation-delay: .6s; }
@keyframes subRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes chkPop { from { transform: scale(0); } to { transform: none; } }
.sub-plan.on .sub-radio::after { animation: dotPop .3s var(--pop) both; }
@keyframes dotPop { from { transform: scale(0); } to { transform: none; } }
.sub-go { position: relative; overflow: hidden; }
.sub-go::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); animation: btnShine 3.4s ease-in-out 1.2s infinite;
}
@keyframes btnShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.sub-ok { animation: chkPop .5s var(--pop) both; }

/* --- home cards --- */
.cat::after {
  display: block; content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 50%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.14), transparent); transform: skewX(-18deg);
  animation: catShine 1.1s ease-out both; animation-delay: calc(var(--d) * 90ms + 650ms);
}
:root[data-theme="light"] .cat::after { background: linear-gradient(105deg, transparent, rgba(42,157,244,.10), transparent); }
@keyframes catShine { from { left: -70%; } to { left: 130%; } }
.cat-ic svg { animation: icFloat 3.6s ease-in-out infinite; animation-delay: calc(var(--d) * -450ms); }
@keyframes icFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.cat-ic { transition: transform .25s var(--pop); }
.cat:active .cat-ic { transform: scale(1.2) rotate(-8deg); }

@media (prefers-reduced-motion: reduce) {
  .splash::before, .splash-center > *, .splash-app .ti-logo .io, .splash-bar i,
  .sub-gate.anim *, .sub-go::after, .cat, .cat::after, .cat-ic svg, .reveal { animation: none !important; }
}

/* ---------- channel logo (admin panel `i`) ---------- */
.rw-logo { width: 36px; height: 36px; flex: none; border-radius: 10px; overflow: hidden; background: var(--card2); border: 1px solid var(--bord); }
.rw-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-title { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
.np-logo { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: cover; background: var(--card2); border: 1px solid var(--bord); }
.np-logo[hidden] { display: none; }

/* ---------- header logo = app icon wala RYDIO wordmark (O = radio chhalle, • LIVE) ---------- */
.app-wordmark { display: block; height: 42px; width: auto; color: var(--tx); overflow: visible; }
/* laal dot: pehle "pop" (0 → bada → apni jagah), phir har 2s peeche se ring zoom-out hokar gaayab (live signal) */
.app-wordmark .aw-dot, .app-wordmark .aw-ping { transform-box: fill-box; transform-origin: center; }
.app-wordmark .aw-dot { animation: awPop .7s cubic-bezier(.34,1.56,.64,1) .2s both; }
.app-wordmark .aw-ping { opacity: 0; animation: awPing 2s ease-out 1s infinite; }
@keyframes awPop { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes awPing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
.splash-wm { height: 64px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .app-wordmark .aw-dot, .app-wordmark .aw-ping { animation: none; } .app-wordmark .aw-ping { display: none; } }
/* header ka dot banner hatne ke baad pop kare; banner wala dot logo aane ke baad */
body.splashing .topbar .app-wordmark .aw-dot, body.splashing .topbar .app-wordmark .aw-ping { animation-play-state: paused; }
.splash-wm .aw-dot { animation-delay: .7s; }
.splash-wm .aw-ping { animation-delay: 1.3s; }
/* header: logo beech me, settings daayen (3-column grid; khaali baayaan column barabari ke liye) */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.topbar .logo { grid-column: 2; justify-content: center; }
.topbar .topbar-actions { grid-column: 3; justify-self: end; }
/* Slow Internet Mode ab player ke neeche */
.nobuf-bar { margin: 14px 0 0; }

/* ---------- header: sunehra PREMIUM badge (baayen) ---------- */
.topbar-l { grid-column: 1; justify-self: start; display: flex; align-items: center; }
.prem-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #ffe7a3 0%, #f5c451 50%, #c98a16 100%); color: #3a2500; font: inherit;
  box-shadow: 0 4px 14px -4px rgba(201,138,22,.55), inset 0 1px 0 rgba(255,255,255,.55);
  animation: rise .6s var(--spring) both; transition: transform .15s var(--pop);
}
.prem-badge[hidden] { display: none; }
.prem-badge:active { transform: scale(.95); }
.prem-badge svg { width: 16px; height: 16px; flex: none; }
.pb-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.pb-tx b { font-size: 11px; font-weight: 900; letter-spacing: .8px; }
.pb-tx small { font-size: 9px; font-weight: 800; letter-spacing: .6px; opacity: .8; }
/* PREMIUM badge — chhota (compact chip) */
.prem-badge { gap: 4px; padding: 3px 7px 3px 5px; border-radius: 8px; box-shadow: 0 2px 8px -3px rgba(201,138,22,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.prem-badge svg { width: 11px; height: 11px; }
.pb-tx b { font-size: 8.5px; letter-spacing: .6px; }
.pb-tx small { font-size: 7px; letter-spacing: .4px; }
/* PREMIUM badge — sirf sunehra "PREMIUM" shabd (na patti, na taj, na term) */
.prem-badge { padding: 4px 0; background: none; box-shadow: none; border-radius: 0; gap: 0; }
.prem-badge svg, .pb-tx small { display: none; }
.pb-tx b {
  font-size: 12px; font-weight: 900; letter-spacing: 1.6px;
  background: linear-gradient(180deg, #ffe7a3 0%, #f5c451 45%, #c98a16 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .pb-tx b { background: linear-gradient(180deg, #e0a92c 0%, #b8862a 55%, #8c6418 100%); -webkit-background-clip: text; background-clip: text; }
/* PREMIUM — sunehre capsule (pill) me: patli gold border + halki sunehri chamak, andar wahi gold text */
.prem-badge {
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(245,196,81,.16), rgba(201,138,22,.06));
  border: 1px solid rgba(245,196,81,.75);
  box-shadow: 0 0 12px -4px rgba(245,196,81,.55), inset 0 1px 0 rgba(255,231,163,.18);
}
.pb-tx b { font-size: 11px; letter-spacing: 1.2px; line-height: 1; }
:root[data-theme="light"] .prem-badge { background: linear-gradient(180deg, #fff6dc, #fbe8b6); border-color: #c99a2e; box-shadow: 0 2px 8px -4px rgba(140,100,24,.5); }

/* ---------- player card: Signal (baayen), network naam nahi ---------- */
.loc-op-wrap[hidden] { display: none; }
.sig-box {
  position: absolute; top: 12px; left: 12px; z-index: 3; height: 42px; padding: 0 10px;
  display: flex; align-items: center; gap: 7px; border-radius: 21px;
  background: var(--card2); border: 1px solid var(--bord); color: var(--mut);
}
.sig-box[hidden] { display: none; }
.sig-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.sig-bars i { width: 3.5px; border-radius: 1.5px; background: var(--seg-track); transition: background .5s; }
.sig-bars i:nth-child(1) { height: 5px; } .sig-bars i:nth-child(2) { height: 7.5px; } .sig-bars i:nth-child(3) { height: 10px; }
.sig-bars i:nth-child(4) { height: 13px; } .sig-bars i:nth-child(5) { height: 16px; }
.sig-box[data-lv="good"] .sig-bars i.f { background: #22c55e; }
.sig-box[data-lv="mid"] .sig-bars i.f { background: #f5a623; }
.sig-box[data-lv="low"] .sig-bars i.f { background: #fa233b; }
.sig-tx { font-size: 11.5px; font-weight: 700; letter-spacing: .2px; }
/* location patti app me nahi dikhti — location peeche chalti rahti hai ("Aapke aas-paas" card ke liye) */
#locBar { display: none !important; }
/* Signal box compact — LIVE badge se takkar na ho */
.sig-box { height: 32px; top: 17px; padding: 0 8px; gap: 5px; border-radius: 16px; }
.sig-bars { height: 13px; gap: 1.5px; }
.sig-bars i { width: 3px; }
.sig-bars i:nth-child(1) { height: 4px; } .sig-bars i:nth-child(2) { height: 6px; } .sig-bars i:nth-child(3) { height: 8.5px; }
.sig-bars i:nth-child(4) { height: 11px; } .sig-bars i:nth-child(5) { height: 13px; }
.sig-tx { font-size: 10.5px; }
/* welcome screen loading bar — sunehri */
.splash-bar i { background: linear-gradient(90deg, #c98a16 0%, #f5c451 55%, #ffe7a3 100%); }
.splash-bar { background: rgba(245,196,81,.18); }

/* ---------- welcome: 3 scene transition (Ryolite Digital → PRESENTS → RYDIO • LIVE), ~3.3s ---------- */
.splash-center { display: grid; place-items: center; }
.splash-center > .sc { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; opacity: 0; }
.splash-center > .sc1 { animation: sc1 1.25s ease both !important; }
.splash-center > .sc2 { animation: sc2 .95s ease 1.1s both !important; }
.splash-center > .sc3 { animation: sc3 1.4s var(--spring) 1.95s both !important; }
.sc1 .splash-logo { width: 57.6vw; max-width: 224px; }
.sc2 .splash-pre { margin: 0; font-size: 16px; letter-spacing: 10px; color: #f5c451; animation: preSpread .95s ease 1.1s both !important; }
.sc3 .splash-app, .sc3 .splash-tag { margin-top: 0; animation: none !important; }
.sc3 .splash-tag { margin-top: 14px; }
.sc3 .splash-wm { height: 78px; }
.sc3 .splash-wm .aw-dot { animation-delay: 2.45s; }
.sc3 .splash-wm .aw-ping { animation-delay: 2.9s; }
@keyframes sc1 {
  0% { opacity: 0; transform: scale(.82); filter: blur(10px); }
  35% { opacity: 1; transform: scale(1); filter: blur(0); }
  78% { opacity: 1; transform: scale(1.02); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.12); filter: blur(6px); }
}
@keyframes sc2 { 0% { opacity: 0; } 25%, 72% { opacity: 1; } 100% { opacity: 0; } }
@keyframes preSpread { 0% { letter-spacing: 2px; } 100% { letter-spacing: 12px; } }
@keyframes sc3 {
  0% { opacity: 0; transform: scale(.8); filter: blur(8px); }
  45% { opacity: 1; transform: scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.splash-bar i { animation-duration: 3.2s !important; }
@media (prefers-reduced-motion: reduce) { .sc1, .sc2 { display: none !important; } .sc3 { opacity: 1 !important; animation: none !important; } }
/* merge: welcome ka RYDIO • LIVE udkar header logo ban jaata hai */
.splash.merging { background: transparent; transition: background-color .6s ease; pointer-events: none; }
.splash.merging::before, .splash.merging .splash-bar, .splash.merging .sc3 .splash-tag { opacity: 0; transition: opacity .35s ease; }
body.wm-merge .topbar .app-wordmark { opacity: 0; }
.topbar .app-wordmark { transition: opacity .15s; }
.topbar .app-wordmark .aw-dot { animation: none; }   /* dot welcome se udkar aata hai — alag pop nahi */
/* scene 2 = PRESENTS (upar) + RYDIO • LIVE (neeche) ek hi screen par */
.splash-center > .sc3 { animation: sc2show .4s ease 1.1s both !important; }
@keyframes sc2show { from { opacity: 0; } to { opacity: 1; } }
.sc3 .splash-pre { margin: 0 0 18px; font-size: 14px; color: #f5c451; animation: preIn .8s ease 1.15s both !important; }
@keyframes preIn { from { opacity: 0; letter-spacing: 2px; } to { opacity: 1; letter-spacing: 10px; } }
.sc3 .splash-app { animation: appIn .9s var(--spring) 1.55s both !important; }
@keyframes appIn { from { opacity: 0; transform: scale(.78); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.sc3 .splash-tag { animation: tagIn .5s ease 2.05s both !important; }
@keyframes tagIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sc3 .splash-wm .aw-dot { animation-delay: 2.2s; }
.sc3 .splash-wm .aw-ping { animation-delay: 2.7s; }
.splash.merging .sc3 .splash-pre { opacity: 0; transition: opacity .35s ease; }
/* merge par: entrance animation ko fade-out animation se badlo (animation saadharan opacity ko jeet leti hai) */
.splash.merging .sc3 .splash-pre, .splash.merging .sc3 .splash-tag { animation: mergeFade .35s ease forwards !important; }
@keyframes mergeFade { to { opacity: 0; } }
/* merge smooth: kaala bg alag layer (opacity = GPU), header logo ka fade nahi (turant swap) */
.splash { background: transparent !important; }
.splash-bgl { position: absolute; inset: 0; z-index: -1; background: var(--bg); transition: opacity .55s ease; }
.splash.merging .splash-bgl { opacity: 0; }
.splash.merging { transition: none; }
.topbar .app-wordmark { transition: none; }

/* ---------------- Language picker (main screen ke neeche) ---------------- */
.lang-bar {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  margin: 16px 0 0; padding: 12px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--bord); box-shadow: var(--card-shadow);
  color: var(--tx); transition: transform .15s var(--pop);
}
.lang-bar:active { transform: scale(.99); }
.lb-ic { width: 22px; height: 22px; flex: none; color: #f5c451; }
.lb-tx { flex: 1; min-width: 0; }
.lb-tx b { font-size: 14px; display: block; }
.lb-tx small { color: var(--mut); font-size: 12px; display: block; }
.lb-chev { width: 18px; height: 18px; flex: none; color: var(--mut); }
.lang-list { display: grid; gap: 8px; margin-top: 8px; }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--bord); color: var(--tx);
}
.lang-opt b { font-size: 16px; }
.lang-opt small { color: var(--mut); font-size: 12px; }
.lang-opt.on { border-color: #f5c451; box-shadow: 0 0 0 1px #f5c451 inset; }
.lang-opt.on small { color: #f5c451; }
/* Devanagari/Gujarati/Telugu me letter-spacing se matra aur sanyukt akshar toot jaate hain */
html:not([data-lang="en"]) body * { letter-spacing: 0 !important; }
/* header ka RYDIO LIVE logo 10% bada: 42 -> 46px (Ansar 25/10) */
.topbar .app-wordmark { height: 46px; }

/* ROOT FIX (26/10): header (PREMIUM / अ / gear) kabhi gayab — header ki entrance animation (.reveal rise, paused
   during splash, merge par finish) WebView me header ko alag GPU layer bana deti thi; merge ke baad sirf logo
   repaint hota tha, side buttons khaali reh jaate. Splash header ko dhak leta hai, to animation dikhti hi nahi —
   hata di: koi layer nahi, header hamesha seedha paint. */
.topbar.reveal, .topbar .prem-badge, .topbar .iconchip { animation: none !important; opacity: 1 !important; will-change: auto !important; }
/* Important note (Play policy: affiliation / trademark / removal contact) */
.foot-imp { margin-top: 8px; font-size: 10.5px; }
