:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --surface-2: #242424;
  --primary: #f4a300;
  --accent: #c2410c;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --radius: 12px;
  --radius-pill: 999px;

  /* Typography */
  --font-display: 'Tiro Devanagari Hindi', 'Plus Jakarta Sans', serif;
  --font-body: 'Plus Jakarta Sans', 'Hind', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-devanagari: 'Hind', 'Tiro Devanagari Hindi', sans-serif;
  --font-numeric: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Type scale */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;

  --tabbar-h: 64px;
  --mini-h: 64px;
  --topbar-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: 'ss01','cv11','ss03'; }
:lang(hi) { font-family: var(--font-devanagari); }
body { font-size: var(--text-base); line-height: 1.55; letter-spacing: -0.005em; }
body { padding-bottom: calc(var(--tabbar-h) + var(--mini-h) + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }

.icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- Top bar ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--topbar-h); padding: 0 14px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(20px);
}
#topbar .title { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; }

/* Hamburger — circular tap target with subtle saffron tint so it's unmissable */
#topbar .menu-btn {
  width: 42px; height: 42px;
  background: rgba(244,163,0,0.12);
  border: 1px solid rgba(244,163,0,0.28);
  color: var(--primary);
  cursor: pointer; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease, transform .12s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
#topbar .menu-btn:hover { background: rgba(244,163,0,0.22); border-color: rgba(244,163,0,0.5); }
#topbar .menu-btn:active { transform: scale(0.94); }
#topbar .menu-btn svg { width: 22px; height: 22px; display: block; stroke-width: 2.4; }

/* Slide-in drawer */
body.no-scroll { overflow: hidden; }
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 70; opacity: 0; transition: opacity .25s ease;
}
.drawer-backdrop.open { opacity: 1; }

.rrh-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(86vw, 340px);
  background:
    radial-gradient(ellipse at top right, rgba(244,163,0,0.10), transparent 55%),
    var(--surface);
  border-left: 1px solid rgba(255,255,255,0.06);
  z-index: 80;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: -24px 0 48px rgba(0,0,0,0.45);
}
.rrh-drawer.open { transform: translateX(0); }

/* Brand header inside drawer */
.rrh-drawer .drawer-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rrh-drawer .drawer-brand .brand-logo {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  border: 2px solid rgba(244,163,0,0.4);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.rrh-drawer .drawer-brand .brand-meta { flex: 1; min-width: 0; }
.rrh-drawer .drawer-brand .brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.1; }
.rrh-drawer .drawer-brand .brand-tag  { font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 0.4px; text-transform: uppercase; }
.rrh-drawer .drawer-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 0; border-radius: 999px;
  color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rrh-drawer .drawer-close:hover { background: rgba(255,255,255,0.1); }
.rrh-drawer .drawer-close svg { width: 18px; height: 18px; }

.rrh-drawer .drawer-nav { display: flex; flex-direction: column; padding: 10px; gap: 2px; }
.rrh-drawer .drawer-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--text);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rrh-drawer .drawer-nav a:hover,
.rrh-drawer .drawer-nav a:focus-visible { background: rgba(255,255,255,0.05); outline: none; }
.rrh-drawer .drawer-nav a:active { background: rgba(244,163,0,0.10); }
.rrh-drawer .drawer-nav a > svg:first-child {
  width: 38px; height: 38px; padding: 8px; flex: 0 0 38px;
  border-radius: 10px;
  background: rgba(244,163,0,0.10);
  color: var(--primary);
  stroke-width: 2;
}
.rrh-drawer .drawer-nav a .ext { margin-left: auto; opacity: 0.5; width: 16px; height: 16px; }

.rrh-drawer .drawer-footer {
  margin-top: auto;
  padding: 16px 18px 18px;
  font-size: 11px; color: var(--muted);
  text-align: center; letter-spacing: 0.4px; text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ---------- Main view ---------- */
#view { padding: 16px 16px 24px; position: relative; z-index: 2; }

.hero {
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 20%, var(--surface)) 0%, var(--surface) 70%);
  padding: 24px;
  margin-bottom: 24px;
}
.hero-title { font-family: var(--font-display); font-size: 32px; margin: 0 0 8px; font-weight: 500; }
.hero-sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(244,163,0,0.15); color: var(--primary); font-size: 12px; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1 } 50% { transform: scale(1.4); opacity: 0.6 } }

.row { margin-bottom: 28px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.row-title { font-size: 20px; font-weight: 700; margin: 0; }
.row-more { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.row-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px;
  transition: background 0.15s, transform 0.15s;
}
.card:hover { background: var(--surface-2); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; display: block; background: #000; }
.card-title { font-size: 14px; font-weight: 600; margin: 10px 0 2px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { font-size: 12px; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  border-radius: var(--radius); padding: 16px; min-height: 88px;
  font-weight: 700; font-size: 16px;
  color: var(--bg);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.cat-tile:nth-child(4n+1) { background: #8b2e13; color: #fff8e7; }
.cat-tile:nth-child(4n+2) { background: #f4a300; }
.cat-tile:nth-child(4n+3) { background: #1db954; color: #0a0a0a; }
.cat-tile:nth-child(4n)   { background: #6d28d9; color: #fff; }

.list-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius); background: var(--surface);
  margin-bottom: 8px;
}
.list-card .list-icon {
  width: 48px; height: 48px; border-radius: 8px; background: var(--surface-2);
  display: grid; place-items: center; color: var(--primary);
}
.list-card .list-title { flex: 1; font-weight: 600; font-size: 15px; }
.list-card .list-sub { font-size: 12px; color: var(--muted); }

.ann { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.ann h3 { margin: 0 0 6px; font-size: 16px; }
.ann div { font-size: 14px; color: var(--muted); }

/* ---------- Mini player ---------- */
.mini-player {
  position: fixed;
  left: 8px; right: 8px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
  height: var(--mini-h); padding: 8px 10px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 30; cursor: pointer;
}
.mini-art { width: 48px; height: 48px; border-radius: 8px; background: var(--surface-2); object-fit: cover; flex: 0 0 48px; }
.mini-meta { flex: 1; min-width: 0; }
.mini-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  background: transparent; border: 0; color: var(--text);
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
}
.icon-btn:hover { background: rgba(255,255,255,0.06); }
.icon-btn.primary { background: var(--primary); color: var(--bg); }
.icon-btn.primary:hover { filter: brightness(1.06); }
.icon-btn.heart.liked { color: var(--primary); }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0;
  bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 25;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--muted); font-size: 11px; font-weight: 500;
}
.tabbar a.active { color: var(--text); }
.tabbar a.active .icon { color: var(--primary); }

/* ---------- Full screen player modal ---------- */
.player-modal {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(180deg, #1a1313 0%, #0a0a0a 60%);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom);
}
.player-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.player-modal-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.player-art {
  flex: 1; display: grid; place-items: center;
  position: relative; margin: 16px 0;
}
.player-art-inner {
  width: min(80vw, 360px); aspect-ratio: 1/1;
  border-radius: 16px; background: var(--surface);
  display: grid; place-items: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 120px rgba(244,163,0,.08);
  overflow: hidden;
  position: relative;
}
.player-art-inner img { width: 60%; height: 60%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.player-art-inner canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; mix-blend-mode: screen; }
.player-meta { text-align: center; }
.player-meta .title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.player-meta .sub { font-size: 15px; color: var(--muted); }
.player-live { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 8px; color: var(--primary); font-size: 13px; }
.player-controls {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 24px 0 16px;
}
.play-big {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--bg);
  display: grid; place-items: center; border: 0;
  box-shadow: 0 10px 30px rgba(244,163,0,.35);
}
.play-big .icon { width: 32px; height: 32px; stroke-width: 2.4; }
.secondary-controls {
  display: flex; align-items: center; justify-content: space-around; gap: 8px;
  margin-bottom: 16px;
}

/* ---------- Intro overlay ---------- */
.intro-overlay.hidden { display: none; }

/* ---------- Toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--mini-h) + 30px); transform: translateX(-50%); z-index: 80; background: var(--surface-2); color: var(--text); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; }

/* ---------- Song request sheet ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 95; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 16px 16px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; }
.sheet h3 { margin: 0 0 12px; font-size: 18px; }
.sheet form { display: flex; flex-direction: column; gap: 10px; }
.sheet input, .sheet textarea { background: var(--surface-2); color: var(--text); border: 0; border-radius: 10px; padding: 12px; font-size: 15px; font-family: inherit; }
.sheet button[type=submit], .sheet button:not([type]) { background: var(--primary); color: var(--bg); padding: 12px; border: 0; border-radius: 999px; font-weight: 700; font-size: 15px; }

/* ---------- Search ---------- */
.search-field { width: 100%; background: var(--surface); color: var(--text); border: 0; border-radius: 10px; padding: 14px 16px; font-size: 15px; margin-bottom: 16px; font-family: inherit; }
.search-field::placeholder { color: var(--muted); }
.search-empty { text-align: center; color: var(--muted); padding: 32px 0; font-size: 14px; }

/* ---------- Contact form on Library ---------- */
.form { display: flex; flex-direction: column; gap: 10px; }
.form input, .form textarea { background: var(--surface-2); color: var(--text); border: 0; border-radius: 10px; padding: 12px; font-family: inherit; }
.form button { background: var(--primary); color: var(--bg); padding: 12px; border: 0; border-radius: 999px; font-weight: 700; font-family: inherit; }

/* ---------- Push prompt card ---------- */
.push-card { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + var(--mini-h) + 20px); background: var(--surface); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 12px; z-index: 75; border: 1px solid rgba(244,163,0,0.3); }
.push-card-text { font-size: 14px; flex: 1; }
.push-card-actions { display: flex; gap: 8px; }
.push-card-actions button { padding: 8px 14px; border-radius: 999px; border: 0; font-weight: 600; font-size: 13px; font-family: inherit; }
.push-card-actions #push-yes { background: var(--primary); color: var(--bg); }
.push-card-actions #push-no { background: transparent; color: var(--muted); border: 1px solid var(--muted); }

/* ---------- Radio-first Home hero ---------- */
.radio-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 32px 20px 36px;
  text-align: center;
  margin-bottom: 24px;
  isolation: isolate;
}
.radio-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  filter: blur(2px) brightness(0.55) saturate(1.1);
  transform: scale(1.08);
}
.radio-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(244,163,0,0.22) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.85) 85%, var(--bg) 100%);
}
.radio-hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
/* --- Vinyl record thumbnail --- */
.radio-hero-art {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 1/1;
  margin: 8px auto 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow:
    0 30px 80px rgba(0,0,0,.7),
    0 0 100px rgba(244,163,0,.18),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  /* black vinyl disc with radial grooves */
  background:
    radial-gradient(circle at center,
      #000 0%, #0a0a0a 20%, #050505 22%, #0a0a0a 24%, #050505 26%, #0a0a0a 28%,
      #050505 30%, #0a0a0a 32%, #050505 34%, #0a0a0a 36%, #050505 38%, #0a0a0a 40%,
      #050505 42%, #0a0a0a 44%, #050505 46%, #0a0a0a 48%, #050505 50%, #0a0a0a 52%,
      #050505 54%, #0a0a0a 56%, #050505 58%, #0a0a0a 60%, #050505 62%, #0a0a0a 64%,
      #050505 66%, #0a0a0a 68%, #050505 70%, #0a0a0a 72%, #050505 74%, #0a0a0a 76%,
      #050505 78%, #0a0a0a 80%, #050505 82%, #0a0a0a 84%, #050505 86%, #0a0a0a 88%,
      #050505 90%, #0a0a0a 92%, #050505 94%, #0a0a0a 96%, #0a0a0a 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Light-sheen highlight; spins with the disc when playing (see vinyl-spin section) */
.radio-hero-art::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 220deg at 50% 50%,
      rgba(255,255,255,0.08) 0deg,
      rgba(255,255,255,0) 90deg,
      rgba(255,255,255,0.06) 150deg,
      rgba(255,255,255,0) 210deg,
      rgba(255,255,255,0.04) 280deg,
      rgba(255,255,255,0) 360deg);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 3;
}
.radio-hero-art img {
  width: 52%; height: 52%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.7));
  background: var(--accent-1, var(--primary));
  border: 3px solid rgba(0,0,0,0.8);
  box-shadow:
    0 0 0 1px rgba(244,163,0,0.35),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  z-index: 1;
  position: relative;
}
/* Spindle hole in the center */
.radio-hero-art .radio-hero-spindle {
  position: absolute;
  width: 10px; height: 10px; border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.9),
    inset 0 0 3px rgba(255,255,255,0.2);
  z-index: 4;
}
.radio-hero-live {
  position: relative;
  margin: -16px auto 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(244,163,0,0.22); color: var(--primary);
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  backdrop-filter: blur(8px);
}
.radio-hero-name {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}
.radio-hero-sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; max-width: 320px; line-height: 1.5; }
.radio-hero-nowplaying { margin-bottom: 24px; }
.radio-hero-nowplaying .np-song   { font-size: 18px; font-weight: 600; color: var(--text); }
.radio-hero-nowplaying .np-artist { font-size: 14px; color: var(--muted); margin-top: 4px; letter-spacing: 0.3px; }
.radio-hero-controls { display: flex; justify-content: center; margin-bottom: 18px; }
.radio-hero-controls .play-big {
  width: 84px; height: 84px;
  transition: transform .18s ease;
}
.radio-hero-controls .play-big:active { transform: scale(0.96); }
.radio-hero-controls .play-big .icon { width: 36px; height: 36px; stroke-width: 2.6; }
.radio-hero-listeners {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(244,163,0,0.14);
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}
.request-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  margin-top: 6px;
  backdrop-filter: blur(10px);
  font-family: inherit;
}
.request-cta:hover { background: rgba(255,255,255,0.1); }
.request-cta .icon { width: 18px; height: 18px; }

/* ---------- Videos tab ---------- */
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  white-space: nowrap;
}
.cat-pill.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }

.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.vid-grid .card { flex: initial; }

/* ---------- Flyout FAB ---------- */
#flyout-root {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + var(--mini-h) + 20px + env(safe-area-inset-bottom));
  z-index: 35;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.flyout-fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--bg);
  border: 0; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(244,163,0,.35), 0 4px 10px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), filter 0.15s;
}
.flyout-fab:hover { filter: brightness(1.06); }
.flyout-fab.open { transform: rotate(45deg); }
.flyout-fab .icon { width: 24px; height: 24px; stroke-width: 2.6; }

.flyout-actions {
  display: none;
  flex-direction: column; align-items: flex-end; gap: 8px;
  margin-bottom: 4px;
}
.flyout-actions.open { display: flex; }
.flyout-item {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 10px 16px 10px 18px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.flyout-item:hover { background: var(--surface-2); }
.flyout-item-icon {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(244,163,0,0.18); color: var(--primary);
}
.flyout-item-icon .icon { width: 16px; height: 16px; }

/* ---------- Pro category tiles (Unsplash backgrounds) ---------- */
.cat-grid-pro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.cat-tile-pro {
  position: relative;
  display: block;
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  overflow: hidden;
  transition: transform .2s ease;
  isolation: isolate;
  cursor: pointer;
}
.cat-tile-pro::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.75) 100%);
}
.cat-tile-pro:hover { transform: translateY(-2px); }
.cat-tile-pro-name {
  position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 1;
  color: #fff; font-weight: 700; font-size: 17px;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* ---------- Empty state with imagery ---------- */
.empty-state { text-align: center; padding: 48px 24px 16px; }
.empty-state-img {
  width: min(80vw, 260px); aspect-ratio: 1/1;
  border-radius: 24px; object-fit: cover;
  margin-bottom: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.empty-state-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.empty-state-sub   { color: var(--muted); margin: 0; font-size: 14px; max-width: 280px; margin: 0 auto; line-height: 1.5; }

/* ---------- Page banner (About/Contact) ---------- */
.page-banner {
  position: relative;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  margin: -16px -16px 20px;
  height: 180px;
  display: flex; align-items: flex-end;
  padding: 20px;
  isolation: isolate;
}
.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.85) 100%);
  z-index: -1;
  border-radius: inherit;
}
.page-banner-title {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 500; margin: 0; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.prose { line-height: 1.65; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose h2 { font-size: 22px; margin: 20px 0 8px; }

/* ---------- Polish pass: typography + glassmorphism + motion ---------- */

/* Tighter, more refined type */
body { font-feature-settings: 'cv02','cv03','cv04','cv11'; letter-spacing: -0.005em; }
h1, h2, h3, h4 { letter-spacing: -0.022em; font-family: var(--font-body); font-weight: 700; line-height: 1.2; margin: 0; }
.font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
.tabular { font-variant-numeric: tabular-nums; }

/* Topbar glassmorphism */
#topbar {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#topbar .title { letter-spacing: -0.01em; }

/* Mini-player glassmorphism + subtle glow when playing */
.mini-player {
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 60px rgba(244,163,0,.04);
  transition: box-shadow .3s ease;
}
.mini-player:hover { box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 80px rgba(244,163,0,.1); }

/* Tabbar refinement */
.tabbar {
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tabbar a { transition: color .15s ease; }
.tabbar a .icon { transition: transform .2s ease; }
.tabbar a.active .icon { transform: translateY(-1px) scale(1.06); }

/* Card hover (desktop) */
@media (hover: hover) {
  .card { transition: transform .2s ease, background .15s ease; }
  .card:hover { transform: translateY(-2px); background: var(--surface-2); }
  .card img { transition: transform .3s ease; }
  .card:hover img { transform: scale(1.03); }
}

/* Play-big motion polish */
.play-big { transition: transform .15s ease, box-shadow .2s ease; }
.play-big:hover { transform: scale(1.04); box-shadow: 0 14px 40px rgba(244,163,0,.45); }
.play-big:active { transform: scale(0.96); }

/* Smooth icon-btn hover */
.icon-btn { transition: background .15s ease, transform .15s ease; }
.icon-btn:active { transform: scale(0.92); }

/* Section titles refinement */
.row-title { letter-spacing: -0.02em; }
.row-more { transition: color .15s; }
.row-more:hover { color: var(--primary); }

/* Subtle scrollbar for content (desktop) */
@media (hover: hover) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }
}

/* Focus states for accessibility */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Library list cards refinement */
.list-card {
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background .15s ease, transform .15s ease;
}
.list-card:hover { background: var(--surface-2); transform: translateX(2px); }
.list-card .list-icon { background: rgba(244,163,0,0.12); color: var(--primary); }

/* ---------- Skeleton loaders ---------- */
.card-skel { background: var(--surface); padding: 12px; border-radius: var(--radius); }
.card-skel-img { aspect-ratio: 1/1; background: linear-gradient(90deg, var(--surface-2) 0%, #2a2a2a 50%, var(--surface-2) 100%); background-size: 200% 100%; border-radius: 8px; animation: shimmer 1.6s linear infinite; }
.card-skel-line { margin-top: 10px; height: 10px; border-radius: 4px; background: var(--surface-2); }
.card-skel-line.short { width: 60%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Pro forms ---------- */
.pro-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.field-hint {
  font-weight: 500;
  color: rgba(167,167,167,0.6);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}
.field-input {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field-input::placeholder { color: rgba(167,167,167,0.6); }
.field-input:focus {
  outline: none;
  border-color: var(--primary);
  background: color-mix(in oklab, var(--surface-2) 80%, transparent);
  box-shadow: 0 0 0 3px rgba(244,163,0,0.18);
}
.field-input:invalid:not(:placeholder-shown) {
  border-color: rgba(239,68,68,0.5);
}
textarea.field-input { resize: vertical; min-height: 80px; line-height: 1.5; }

.btn-primary {
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--primary); color: var(--bg);
  border: 0; border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(244,163,0,.28);
  letter-spacing: 0.2px;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(244,163,0,.38); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: 0.7; cursor: default; }
.btn-primary-icon { display: grid; place-items: center; }
.btn-primary-icon .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.btn-primary.loading .btn-primary-label::after {
  content: '…';
  display: inline-block; animation: dotflash 1.2s infinite;
}
@keyframes dotflash { 0%,100% { opacity: 0.4 } 50% { opacity: 1 } }

/* ---------- Sheet polish ---------- */
.sheet {
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 90vh;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
}
.sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto 16px;
}
.sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.sheet-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.sheet-close { width: 36px; height: 36px; }
.sheet-close .icon { width: 20px; height: 20px; }
.sheet-sub { color: var(--muted); font-size: 14px; margin: 0 0 8px; line-height: 1.5; }

/* ---------- Typography polish (global) ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-head { margin-bottom: 16px; }
.section-title { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.022em; margin: 0 0 4px; }
.section-sub   { color: var(--muted); font-size: var(--text-sm); margin: 0; line-height: 1.55; }

/* ---------- Contact page ---------- */
.contact-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: -16px -16px 24px;
  padding: 56px 24px 44px;
  isolation: isolate;
}
.contact-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  filter: brightness(0.45) saturate(1.15);
}
.contact-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(244,163,0,0.25) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.9) 100%);
}
.contact-hero-inner { max-width: 520px; }
.contact-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl); font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.contact-hero-sub {
  color: rgba(245,245,245,0.86);
  font-size: var(--text-md);
  line-height: 1.6;
  margin: 0;
  max-width: 460px;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 520px) {
  .contact-methods { grid-template-columns: 1fr 1fr; }
}
.contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  min-height: 68px;
}
.contact-method:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
  border-color: rgba(244,163,0,0.3);
}
.contact-method-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(244,163,0,0.14);
  color: var(--primary);
  display: grid; place-items: center;
}
.contact-method-icon .icon { width: 20px; height: 20px; }
.contact-method-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-method-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-method-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.contact-method-chev { color: var(--muted); width: 18px; height: 18px; }

.contact-intro {
  margin-bottom: 28px;
  padding: 20px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border: 1px solid rgba(255,255,255,0.04);
}

.contact-form-section { margin-top: 12px; }

.card-form {
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}
@media (min-width: 480px) {
  .form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.form-footer-sub {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.5;
  margin: 0;
  max-width: 260px;
}
.form-footer .btn-primary { margin: 0; white-space: nowrap; }

/* Tightened input family — subtler than pro-form baseline */
.pro-form .field-input { font-family: var(--font-body); }

/* Tabular numerals for listener count etc */
#home-listeners, #player-listeners { font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }

/* ---------- Polish pass ---------- */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Section rhythm */
.row { margin-bottom: 32px; }

/* Link underline-grow */
@media (hover: hover) {
  .row-more {
    position: relative;
    display: inline-block;
  }
  .row-more::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 1px; background: currentColor;
    transition: width .2s ease;
  }
  .row-more:hover::after { width: 100%; }
}

/* Stronger card elevation on hover (desktop) */
@media (hover: hover) {
  .card {
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
    transition: transform .22s cubic-bezier(.2,.8,.2,1), background .15s ease, box-shadow .22s ease;
  }
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(244,163,0,0.18);
  }
}

/* Hero artwork ring — pulses saffron while playing */
.radio-hero-art { position: relative; }
.radio-hero-ring {
  position: absolute; inset: -10px;
  border-radius: inherit;
  pointer-events: none;
  background:
    conic-gradient(from 140deg, rgba(244,163,0,0) 0deg, rgba(244,163,0,0.45) 80deg, rgba(244,163,0,0) 220deg, rgba(244,163,0,0.28) 320deg, rgba(244,163,0,0) 360deg);
  filter: blur(14px);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.radio-hero-art.playing .radio-hero-ring {
  opacity: 1;
  animation: ringSpin 10s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Mini-player: live bars glyph */
.mini-art-wrap { position: relative; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; overflow: hidden; }
.mini-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-bars {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 2px; padding: 6px;
  background: rgba(0,0,0,0.55);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.mini-bars i {
  display: block; width: 3px; border-radius: 2px;
  background: var(--primary);
  height: 30%;
  transform-origin: bottom;
}
.mini-player.playing .mini-bars { opacity: 1; }
.mini-player.playing .mini-bars i:nth-child(1) { animation: barA 1.1s ease-in-out infinite; }
.mini-player.playing .mini-bars i:nth-child(2) { animation: barB 1.3s ease-in-out infinite; }
.mini-player.playing .mini-bars i:nth-child(3) { animation: barC 0.9s ease-in-out infinite; }
@keyframes barA { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes barB { 0%,100% { transform: scaleY(0.6); }  50% { transform: scaleY(0.25); } }
@keyframes barC { 0%,100% { transform: scaleY(0.8); }  50% { transform: scaleY(0.45); } }

/* Full-screen player polish */
.player-sheet-handle {
  width: 48px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.25);
  margin: 10px auto 6px;
}
.player-art-inner {
  position: relative;
  width: min(78vw, 340px); aspect-ratio: 1/1;
  border-radius: 24px;
  background: var(--surface);
  display: grid; place-items: center;
  overflow: hidden;
  transition: box-shadow .4s ease;
  box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 80px rgba(244,163,0,.05);
}
.player-art-inner::before {
  content: '';
  position: absolute; inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(244,163,0,0.35) 0%, rgba(244,163,0,0) 65%);
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
  z-index: -1;
}
.player-art-inner.playing { box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 120px rgba(244,163,0,.3); }
.player-art-inner.playing::before { opacity: 1; animation: glowPulse 3.2s ease-in-out infinite; }
@keyframes glowPulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(1.08); opacity: 1; }
}

.secondary-group {
  display: flex; flex-direction: column; gap: 10px;
  margin: 8px 0 20px;
}
.secondary-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.secondary-controls {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 6px;
  justify-content: space-around;
  display: flex; gap: 4px;
  max-width: 420px; margin: 0 auto;
}
.secondary-controls .icon-btn {
  width: 44px; height: 44px;
}
.secondary-controls .icon-btn .icon { width: 20px; height: 20px; }

/* Reveal utility (GSAP target) */
[data-reveal] { will-change: transform, opacity; }

/* Wider view on larger screens */
@media (min-width: 720px) {
  #view { padding: 20px 24px 40px; max-width: 900px; margin: 0 auto; }
  .contact-hero { margin-left: -24px; margin-right: -24px; }
  .card { flex: 0 0 176px; }
}

/* Softer section bg behind recently played */
#history-row { position: relative; }
#history-row::before {
  content: '';
  position: absolute; left: -16px; right: -16px; top: -6px; bottom: -6px;
  background: radial-gradient(ellipse at 20% 0%, rgba(244,163,0,0.05), transparent 55%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Welcome screen (first launch) ---------- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(244,163,0,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(194,65,12,0.18) 0%, transparent 50%),
    linear-gradient(180deg, #141218 0%, var(--bg) 70%);
}
.welcome {
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 28px;
}
.welcome-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.welcome-logo {
  position: relative; width: 120px; height: 120px;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 80px rgba(244,163,0,0.18);
  margin-bottom: 10px;
  isolation: isolate;
}
.welcome-logo img { width: 100%; height: 100%; object-fit: cover; }
.welcome-logo-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle at center, rgba(244,163,0,0.35) 0%, transparent 65%);
  z-index: -1;
  animation: welcomePulse 3s ease-in-out infinite;
}
@keyframes welcomePulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.welcome-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--primary); margin-top: 4px;
}
.welcome-title {
  font-family: var(--font-display);
  font-size: 42px; font-weight: 500; letter-spacing: 0.5px;
  margin: 2px 0 0; color: var(--text);
}
.welcome-sub { color: var(--muted); font-size: var(--text-md); margin: 4px 0 0; }

.welcome-langs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%;
}
.welcome-lang {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px 14px;
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  backdrop-filter: blur(10px);
}
.welcome-lang:hover { border-color: rgba(244,163,0,0.35); background: color-mix(in oklab, var(--surface) 92%, transparent); }
.welcome-lang:active { transform: scale(0.98); }
.welcome-lang.selected {
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 14%, var(--surface));
  box-shadow: 0 0 0 3px rgba(244,163,0,0.25);
}
.welcome-lang-script {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(244,163,0,0.14); color: var(--primary);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px;
  margin-bottom: 6px;
}
.welcome-lang.selected .welcome-lang-script { background: var(--primary); color: var(--bg); }
.welcome-lang-name { font-size: var(--text-lg); font-weight: 700; }
.welcome-lang-meta { font-size: var(--text-xs); color: var(--muted); letter-spacing: 0.6px; }

.welcome-cta {
  width: 100%;
  background: var(--primary); color: var(--bg);
  padding: 16px 20px; border: 0; border-radius: 14px;
  font-weight: 800; font-size: var(--text-md);
  cursor: pointer; font-family: inherit;
  box-shadow: 0 12px 30px rgba(244,163,0,0.3);
  transition: filter .15s ease, transform .15s ease, opacity .15s ease;
}
.welcome-cta:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.welcome-cta:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.welcome-cta:disabled { opacity: 0.35; cursor: default; box-shadow: none; }

.welcome-footer {
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.3px;
}

/* ---------- UI polish ---------- */
#topbar { transition: transform .22s ease, opacity .2s ease; }
#topbar.collapsed { transform: translateY(-100%); opacity: 0; }

.tabbar { padding: 6px 6px env(safe-area-inset-bottom); gap: 0; }
.tabbar a {
  padding: 8px 4px 6px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.tabbar a:active { transform: scale(0.94); }
.tabbar a.active {
  background: color-mix(in oklab, var(--primary) 14%, transparent);
}
.tabbar a.active .icon { color: var(--primary); transform: translateY(-1px) scale(1.08); }
.tabbar a span:not(.icon) { line-height: 1.1; }

.mini-player { transition: background .15s ease, box-shadow .25s ease, transform .15s ease; }
.mini-player:active { transform: scale(0.99); }
.mini-player::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, transparent 0%, rgba(244,163,0,0.06) 100%);
  pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
.mini-player.playing::before { opacity: 1; }

.row-scroll {
  mask-image: linear-gradient(to right, transparent 0%, #000 8px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8px, #000 calc(100% - 24px), transparent 100%);
}

.card img { border-radius: 10px; }
.card-title { margin-top: 12px; }

.empty-state { animation: fadeUp .5s ease-out both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) {
  .btn-primary { transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .15s ease, box-shadow .25s ease; }
}

/* ---------- Vinyl-spin artwork while playing ----------
   The disc spins via its sheen overlay (::before). The logo <img>
   stays stationary so it remains readable. */
.radio-hero-art::before { will-change: transform; }
.radio-hero-art.playing::before { animation: vinylSpin 18s linear infinite; }
.radio-hero-art::after {
  content: '';
  position: absolute;
  inset: 44%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0) 75%);
  pointer-events: none;
  z-index: 1;
  opacity: 0; transition: opacity .35s ease;
}
.radio-hero-art.playing::after { opacity: 1; }
@keyframes vinylSpin { to { transform: rotate(360deg); } }

.player-art-inner img { transition: transform .35s ease; }
.player-art-inner::after {
  content: '';
  position: absolute; inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 45%, rgba(0,0,0,0) 80%);
  z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .4s ease;
}
.player-art-inner.playing::after { opacity: 1; }

/* ---------- Dynamic accent gradient from artwork ---------- */
.radio-hero { --accent-1: rgba(244,163,0,0.3); --accent-2: rgba(194,65,12,0.2); }
.radio-hero-bg { background-image: none; }
.radio-hero-bg::after { background: none; }
.radio-hero {
  background:
    radial-gradient(ellipse at 30% 0%, color-mix(in oklab, var(--accent-1) 55%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, color-mix(in oklab, var(--accent-2) 45%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.player-modal { --accent-1: rgba(244,163,0,0.3); --accent-2: rgba(194,65,12,0.15); }
.player-modal {
  background:
    radial-gradient(ellipse at 30% 0%, color-mix(in oklab, var(--accent-1) 80%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 100%, color-mix(in oklab, var(--accent-2) 60%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #1a1313 0%, #0a0a0a 60%);
}

@media (prefers-reduced-motion: reduce) {
  .radio-hero-art.playing::before { animation: none !important; }
}

/* ---------- Greeting on home ---------- */
.hero-greeting { margin: -4px 0 14px; }
.hero-greet-primary { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; color: var(--muted); letter-spacing: 0.3px; }
.hero-greet-secondary { font-size: var(--text-sm); color: var(--primary); font-weight: 700; letter-spacing: 0.5px; margin-top: 2px; }

/* ---------- View Transitions API morph ---------- */
.mini-art { view-transition-name: player-art; }
.player-art-inner img { view-transition-name: player-art; }
body.player-open .mini-art { view-transition-name: none; }
::view-transition-old(player-art),
::view-transition-new(player-art) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}

/* ---------- Heart-burst particle ---------- */
.heart-particle {
  position: fixed; z-index: 100; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(244,163,0,0.65);
}

/* ---------- Play button ripple + elastic press ---------- */
.play-big { position: relative; overflow: hidden; transition: transform .2s cubic-bezier(.4,1.6,.5,.9), box-shadow .25s ease, filter .15s ease; }
.play-big::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, transparent 70%);
  opacity: 0; transform: scale(0);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.play-big:active::before { opacity: 1; transform: scale(1); transition: none; }
.play-big:active { transform: scale(0.93); }

/* ---------- Now-playing peek ---------- */
.np-peek {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--mini-h) + 90px + env(safe-area-inset-bottom));
  z-index: 82;
  background: color-mix(in oklab, var(--surface) 95%, transparent);
  border: 1px solid rgba(244,163,0,0.28);
  border-radius: 14px;
  padding: 10px 16px;
  min-width: 220px; max-width: 80vw;
  text-align: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.np-peek-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 4px;
}
.np-peek-song { font-size: var(--text-base); font-weight: 600; color: var(--text); line-height: 1.25; }
.np-peek-artist { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }

/* ---------- Premium depth tokens ---------- */
:root {
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.02);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.3),  0 24px 60px rgba(0,0,0,0.5);
  --shadow-xl: 0 8px 16px rgba(0,0,0,0.35), 0 40px 80px rgba(0,0,0,0.55);
  --shadow-glow-primary: 0 0 0 1px rgba(244,163,0,0.28), 0 20px 48px rgba(244,163,0,0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Noise overlay for premium depth */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* Apply new shadow tokens */
.card { box-shadow: var(--shadow-sm); }
@media (hover: hover) { .card:hover { box-shadow: var(--shadow-md), var(--shadow-glow-primary); } }
.mini-player { box-shadow: var(--shadow-lg); }
.list-card, .contact-method, .ann { box-shadow: var(--shadow-sm); }
.sheet { box-shadow: 0 -30px 80px rgba(0,0,0,0.55); }
.welcome-logo { box-shadow: var(--shadow-xl), 0 0 80px rgba(244,163,0,0.22); }
.btn-primary { box-shadow: var(--shadow-md), 0 8px 22px rgba(244,163,0,0.3); }
.play-big   { box-shadow: var(--shadow-md), 0 10px 30px rgba(244,163,0,0.35); }

/* Unify radius */
.card, .list-card, .contact-method, .ann { border-radius: var(--radius-md); }
.welcome-logo { border-radius: var(--radius-xl); }
.btn-primary, .request-cta, .cat-pill, .icon-btn, .flyout-item, .flyout-fab { border-radius: 999px; }

/* ---------- Reduced-motion support ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .live-dot { animation: none !important; }
  .radio-hero-art.playing::before { animation: none !important; }
  .welcome-logo-glow { animation: none !important; }
  .mini-bars i { animation: none !important; }
  body::before { display: none; }
}

/* --- Pull-to-refresh --- */
.ptr-indicator {
  position: absolute; top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: transform .15s ease, opacity .15s ease;
}
.ptr-spin {
  width: 18px; height: 18px;
  border: 2px solid rgba(244,163,0,0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
}
.ptr-indicator.spinning .ptr-spin {
  animation: ptrSpin 0.8s linear infinite;
}
@keyframes ptrSpin { to { transform: rotate(360deg); } }
#view { position: relative; }

/* --- Offline overlay --- */
.offline-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(16px);
  display: grid; place-items: center;
  padding: 24px;
}
.offline-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.offline-icon { color: var(--primary); margin-bottom: 16px; display: flex; justify-content: center; }
.off-title { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.off-sub { color: var(--muted); font-size: var(--text-sm); margin-bottom: 20px; line-height: 1.5; }
.offline-retry {
  background: var(--primary); color: var(--bg);
  border: 0; border-radius: 999px;
  padding: 12px 32px; font-weight: 700; font-size: var(--text-md);
  font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 24px rgba(244,163,0,0.3);
  transition: transform .15s ease, filter .15s ease;
}
.offline-retry:hover { filter: brightness(1.05); }
.offline-retry:active { transform: scale(0.96); }

/* --- Screen-reader only (aria-live region) --- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Light theme override (per-user mode) --- */
body.theme-mode-light {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3efe7;
  --text: #1a1612;
  --muted: #6b6357;
  /* Keep saffron accent */
}
body.theme-mode-light .mini-player,
body.theme-mode-light .tabbar,
body.theme-mode-light #topbar {
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border-color: rgba(0,0,0,0.06);
}
body.theme-mode-light .card,
body.theme-mode-light .list-card,
body.theme-mode-light .ann,
body.theme-mode-light .contact-method {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
}
body.theme-mode-light .field-input {
  background: var(--surface-2);
  color: var(--text);
  border-color: rgba(0,0,0,0.1);
}
body.theme-mode-light .field-input::placeholder { color: rgba(0,0,0,0.4); }
body.theme-mode-light .mini-player.playing .mini-bars { background: rgba(255,255,255,0.85); }
body.theme-mode-light body::before,
body.theme-mode-light.noise-off::before { display: none; }
body.theme-mode-light .radio-hero-bg { filter: brightness(1.1) saturate(0.95); }
body.theme-mode-light .offline-overlay { background: color-mix(in oklab, var(--bg) 60%, transparent); }
body.theme-mode-light .player-modal {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(244,163,0,0.18) 0%, transparent 60%),
    linear-gradient(180deg, #fff5ea 0%, var(--bg) 60%);
  color: var(--text);
}

/* --- Settings view groups/pills --- */
.settings-group {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.settings-row:last-child { border-bottom: 0; }
.settings-row-col {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.settings-row-title { font-weight: 600; font-size: var(--text-md); }
.settings-row-sub   { color: var(--muted); font-size: var(--text-sm); margin-top: 2px; }

.theme-mode-pills {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.theme-mode-pill {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 999px;
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
  text-transform: capitalize; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.theme-mode-pill.active { background: var(--primary); color: var(--bg); }
body.theme-mode-light .settings-group { border-color: rgba(0,0,0,0.08); }
body.theme-mode-light .settings-row { border-bottom-color: rgba(0,0,0,0.06); }

/* ---------- Mobile: home hero fits in first viewport ----------
   Available height = 100dvh − topbar − mini player − tabbar − safe areas.
   The play button is the focal point — disc + name shrink so it leads. */
@media (max-width: 768px) {
  .radio-hero {
    min-height: calc(100dvh - var(--topbar-h) - var(--mini-h) - var(--tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    display: flex; flex-direction: column; justify-content: center;
    padding: 8px 16px 14px;
    margin-bottom: 14px;
  }
  .radio-hero-art { width: min(48vw, 200px); margin: 2px auto 12px; }
  .radio-hero-live { margin: -8px auto 6px; padding: 3px 9px; font-size: 10px; letter-spacing: 1.2px; }
  .hero-greeting { display: none; }
  .radio-hero-name { font-size: 18px; font-weight: 500; margin: 2px 0 2px; letter-spacing: 0.3px; }
  .radio-hero-sub { display: none; }
  .radio-hero-nowplaying { margin-bottom: 14px; min-height: 18px; }
  .radio-hero-nowplaying .np-song   { font-size: 13px; font-weight: 400; color: var(--muted); }
  .radio-hero-nowplaying .np-artist { display: none; }
  .radio-hero-controls { margin-bottom: 8px; }
  .radio-hero-controls .play-big {
    width: 84px; height: 84px;
    box-shadow: 0 16px 40px rgba(244,163,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.1);
  }
  .radio-hero-controls .play-big .icon { width: 36px; height: 36px; }
  .radio-hero-listeners { font-size: 11px; }
  .request-cta { padding: 9px 14px; font-size: 12px; }
}

/* Very short phones (e.g. iPhone SE 1st gen): shrink further */
@media (max-width: 768px) and (max-height: 640px) {
  .radio-hero-art { width: min(40vw, 170px); margin: 0 auto 8px; }
  .radio-hero-name { font-size: 16px; }
  .radio-hero-controls .play-big { width: 76px; height: 76px; }
  .radio-hero-controls .play-big .icon { width: 32px; height: 32px; }
}
