/* GTA VI Radio · gta6.gg */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }

#gta-radio {
  --bg: #0a0710;
  --ink: #f6f2ff;
  --dim: rgba(246, 242, 255, .62);
  --faint: rgba(246, 242, 255, .38);
  --pink: #ff2e88;
  --cyan: #21e6ff;
  --orange: #ff8a3d;
  --violet: #9b5cff;
  --glass: rgba(18, 12, 28, .66);
  --glass-2: rgba(28, 18, 40, .72);
  --line: rgba(255, 255, 255, .1);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pop: cubic-bezier(.2, .9, .25, 1.15);
  --r: 18px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* =====================================================================
   Page + gta6.gg site header (body.gta-radio exists on this page only)
   Layers: app/HUD < start gate (12) < site header (15) < radio wheel (20)
           < toast (40)
   ===================================================================== */
/* Dark color-scheme only when standalone: in an iframe a mismatched scheme
   makes browsers paint an opaque backdrop instead of staying transparent. */
html:not(.embed) { color-scheme: dark; }
body.gta-radio { margin: 0 !important; overflow-x: hidden; overflow-x: clip; }
/* nothing may widen the page on phones (iOS Safari otherwise zooms the whole page out, header included) */
html:has(> body.gta-radio:not(.is-embed)) { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
body.gta-radio:not(.is-embed) { background: #0a0710 !important; }
html.embed, html.embed body.gta-radio { background: transparent !important; }

/* the real Elementor header (template 18), fixed over the full-screen app */
body.gta-radio .elementor-location-header {
  position: fixed !important;
  top: var(--wp-admin--admin-bar--height, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 15 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  pointer-events: none;            /* the empty header box never blocks the app */
}
body.gta-radio .elementor-location-header > * { pointer-events: auto; }
/* transparent bars (desktop/tablet + mobile); the dropdown / off-canvas panels keep their background */
body.gta-radio .elementor-location-header .elementor-element-b46bbaa,
body.gta-radio .elementor-location-header .elementor-element-7b3c97e,
body.gta-radio .elementor-location-header .elementor-element-b46bbaa > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body.gta-radio .elementor-location-header .elementor-element-7b3c97e > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* Elementor Pro "sticky" on the mobile bar: redundant here (whole header is fixed) */
body.gta-radio .elementor-location-header .elementor-element-7b3c97e.elementor-sticky--active {
  position: relative !important;
  top: auto !important;
  width: auto !important;
}
body.gta-radio .elementor-location-header .elementor-sticky__spacer { display: none !important; }
/* Darkify's floating light/dark switch: on this always-dark page it would only flip the header,
   and it sits on top of the station strip / video panel */
body.gta-radio .darkify_switch { display: none !important; }

/* =====================================================================
   Radio app (everything under #gta-radio; the id outranks site/theme CSS)
   ===================================================================== */
/* reset what the theme (Hello reset, Elementor kit, plugins) would leak in */
#gta-radio *,
#gta-radio *::before,
#gta-radio *::after { box-sizing: border-box; }
#gta-radio button {
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: inherit;
  font: inherit; line-height: inherit; letter-spacing: inherit;
  text-align: inherit; text-transform: none; text-decoration: none; white-space: normal;
  box-shadow: none; transition: none; width: auto; min-height: 0;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
#gta-radio input { font: inherit; color: inherit; margin: 0; }
#gta-radio :where(h1, h2, h3, p, ol, ul, li, strong, span, nav, aside, section, main) {
  font-family: inherit; color: inherit; letter-spacing: inherit; text-transform: none;
}
#gta-radio :where(h1, h2, h3, p) { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
#gta-radio a { color: inherit; text-decoration: none; background: none; }
#gta-radio img { max-width: none; border: 0; box-shadow: none; border-radius: 0; }
#gta-radio kbd {
  font: 600 .82em/1 Inter, system-ui, sans-serif;
  padding: .22em .48em;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(255, 255, 255, .14);
}
#gta-radio :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; box-shadow: none; }
#gta-radio .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;
}

/* background layer (a real element, so body styles from other plugins can't cover it) */
#gta-radio .bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(110% 70% at 50% 118%, rgba(255, 138, 61, .34), transparent 58%),
    radial-gradient(70% 55% at 92% -8%, rgba(255, 46, 136, .26), transparent 62%),
    radial-gradient(60% 50% at -5% 8%, rgba(33, 230, 255, .16), transparent 60%),
    linear-gradient(180deg, #0b0713 0%, #120a1f 55%, #1c0b1f 100%);
}
/* retro horizon grid */
#gta-radio .bg::after {
  content: "";
  position: absolute;
  left: -50%; right: -50%; bottom: 0;
  height: 42vh;
  background:
    repeating-linear-gradient(90deg, rgba(255, 46, 136, .22) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 46, 136, .22) 0 1px, transparent 1px 48px);
  transform: perspective(320px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  opacity: .55;
}
html.embed #gta-radio .bg { display: none; }
#gta-radio .app, #gta-radio .about { position: relative; }   /* paint above .bg */

/* Embedded: page stays transparent, the app draws on its own rounded neon panel so it
   reads on light pages too. ?embed=1&panel=0 drops the panel (for dark sections). */
html.embed:not(.no-panel) #gta-radio .app {
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(110% 70% at 50% 118%, rgba(255, 138, 61, .34), transparent 58%),
    radial-gradient(70% 55% at 92% -8%, rgba(255, 46, 136, .26), transparent 62%),
    radial-gradient(60% 50% at -5% 8%, rgba(33, 230, 255, .16), transparent 60%),
    linear-gradient(180deg, #0b0713 0%, #120a1f 55%, #1c0b1f 100%);
}
html.embed:not(.no-panel) #gta-radio .gate,
html.embed:not(.no-panel) #gta-radio .wheel { border-radius: 20px; }

/* ---------- app shell ---------- */
#gta-radio .app {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--hdr, 55px);           /* room for the fixed site header */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#gta-radio .stage { grid-row: 1; }
#gta-radio .strip { grid-row: 2; }
html.embed #gta-radio .app { height: 100vh; height: 100dvh; min-height: 0; padding-top: 0; }
html.embed #gta-radio .about { display: none; }

#gta-radio .hud { transition: opacity 140ms var(--ease); }
#gta-radio.wheel-open .hud { opacity: 0; }

/* ---------- stage ----------
   One centred column, in the order art, Now playing card, player bar, hint (< 1100px);
   two centred columns [art, hint, bar | card] from 1100px (see "wide screens" below).
   The .app grid (1fr / strip) keeps it vertically centred between the header and the strip. */
#gta-radio .stage {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  grid-template-areas: "art" "card" "bar" "hint" "donate";
  justify-content: center;
  align-content: center;
  justify-items: center;
  gap: clamp(12px, 2.2vh, 20px);
  width: 100%;
  padding: 16px;
  min-height: 0;
}
#gta-radio .art { grid-area: art; }
#gta-radio .np-card { grid-area: card; }
#gta-radio .bar { grid-area: bar; }
#gta-radio .hint { grid-area: hint; }
#gta-radio .donate { grid-area: donate; }
html.embed #gta-radio .stage { overflow: auto; scrollbar-width: none; }

/* Round logo spots (big art, card art): the logo is fitted inside the circle by the same rule as
   the wheel (bounding-box diagonal = 86% of the diameter); --fw / --fh are set per logo by app.js. */
#gta-radio .art img,
#gta-radio .npc-art img {
  grid-area: 1 / 1;
  width: calc(var(--fw, .6) * 100%);
  height: auto;
  max-height: calc(var(--fh, .6) * 100%);
  object-fit: contain;
  -webkit-user-drag: none;
}

/* now-playing art: a circle like the wheel slots, with the neon glow */
#gta-radio .art {
  position: relative;
  width: clamp(112px, min(40vw, 30vh), 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(46, 46, 50, .9), rgba(12, 12, 14, .92) 70%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    0 0 0 1px rgba(255, 46, 136, .3),
    0 18px 50px rgba(0, 0, 0, .5),
    0 0 60px rgba(255, 46, 136, .2);
}
#gta-radio .art-text {
  grid-area: 1 / 1;
  padding: 0 14%;
  text-align: center;
  font-weight: 700;
  font-size: clamp(16px, 2.6vh + 1vw, 30px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 0 18px rgba(255, 46, 136, .55), 0 2px 10px rgba(0, 0, 0, .5);
}
#gta-radio .art.has-logo .art-text { display: none; }
#gta-radio .art.is-off .art-text { color: var(--faint); text-shadow: none; }
#gta-radio #static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 160ms var(--ease);
}
#gta-radio #static.on { opacity: .85; transition-duration: 40ms; }

/* hint button */
#gta-radio .hint {
  border: 0;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--dim);
  letter-spacing: .02em;
  touch-action: none;
  -webkit-touch-callout: none;
  transition: background 120ms var(--ease), color 120ms var(--ease), opacity 140ms var(--ease);
}
#gta-radio .hint:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }

/* donate: the hint pill's twin under the bar; on phones a plain text link in the bar's free bottom-left
   cell instead (opposite mute + copy link). Opens a new tab so the radio keeps playing. */
#gta-radio .donate,
#gta-radio .donate-inline { color: var(--dim); text-decoration: none; -webkit-tap-highlight-color: transparent; }
#gta-radio .donate {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background 120ms var(--ease), color 120ms var(--ease), opacity 140ms var(--ease);
}
#gta-radio .donate:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
#gta-radio .donate:focus-visible,
#gta-radio .donate-inline:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
#gta-radio .donate-inline { display: none; }
#gta-radio .hint kbd { margin: 0 .2em; color: var(--ink); }

/* now-playing bar: [LIVE + station | prev play next | volume]. The equal 1fr side columns keep the
   play button exactly centred in the bar whatever the station name's length. */
#gta-radio .bar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "np ctrls volume";
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
#gta-radio .np { grid-area: np; display: flex; align-items: center; gap: 12px; min-width: 0; justify-self: stretch; }
#gta-radio .np-text { display: grid; min-width: 0; }
#gta-radio .np-state {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
#gta-radio .np-name {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#gta-radio .live {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  position: relative;
}
#gta-radio .live[data-state="live"] { background: var(--pink); box-shadow: 0 0 10px var(--pink), 0 0 2px #fff inset; }
#gta-radio .live[data-state="live"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  animation: ping 1.6s var(--ease) infinite;
}
#gta-radio .live[data-state="tuning"] { background: var(--orange); animation: blink .7s steps(2, jump-none) infinite; }
#gta-radio .live[data-state="paused"] { background: var(--cyan); opacity: .7; }
#gta-radio .live[data-state="error"] { background: #ff5050; }
#gta-radio .live[data-state="blocked"] { background: var(--orange); }
#gta-radio .live[data-state="buffering"] {
  background: transparent;
  border: 2px solid rgba(255, 138, 61, .3);
  border-top-color: var(--orange);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }

#gta-radio .ctrls { grid-area: ctrls; display: flex; align-items: center; gap: 6px; }
#gta-radio .volume { grid-area: volume; display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
#gta-radio .ib {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 120ms var(--ease), color 120ms var(--ease), transform 120ms var(--ease);
}
#gta-radio .ib svg { width: 20px; height: 20px; fill: currentColor; }
#gta-radio .ib:hover { background: rgba(255, 255, 255, .1); }
#gta-radio .ib:active { transform: scale(.94); }
#gta-radio .ib-main {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 0 18px rgba(255, 46, 136, .45);
  color: #160616;
}
#gta-radio .ib-main:hover { background: linear-gradient(135deg, #ff4b98, #ff9b57); }
#gta-radio .share .i-check,
#gta-radio .share.is-copied .i-link { display: none; }
#gta-radio .share.is-copied .i-check { display: block; }
#gta-radio .share.is-copied { color: var(--cyan); }
#gta-radio .ib-main .i-pause,
#gta-radio .ib-main.is-playing .i-play { display: none; }
#gta-radio .ib-main.is-playing .i-pause { display: block; }
#gta-radio .ib-main.needs-tap { animation: tapPulse 1.2s var(--ease) infinite; }
@keyframes tapPulse { 50% { box-shadow: 0 0 0 8px rgba(255, 138, 61, .25), 0 0 28px rgba(255, 138, 61, .7); } }
#gta-radio #mute .i-mute,
#gta-radio #mute.is-muted .i-vol { display: none; }
#gta-radio #mute.is-muted .i-mute { display: block; }
#gta-radio #mute.is-muted { color: var(--faint); }

#gta-radio .vol {
  --fill: 70%;
  width: clamp(64px, 10vw, 110px);
  min-width: 0;
  height: 28px;
  margin: 0 2px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}
#gta-radio .vol::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan) var(--fill), rgba(255, 255, 255, .18) var(--fill));
}
#gta-radio .vol::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
#gta-radio .vol::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--cyan); }
#gta-radio .vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; border: 0;
  background: #fff;
  box-shadow: 0 0 10px rgba(33, 230, 255, .8);
}
#gta-radio .vol::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 0 10px rgba(33, 230, 255, .8);
}

/* ---------- Now playing card (station logo, artist / title, track progress, up next) ---------- */
#gta-radio .np-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px 14px 14px;
  border-radius: var(--r);
  background: var(--glass);
  box-shadow:
    inset 0 0 0 1px rgba(33, 230, 255, .28),
    0 0 26px rgba(33, 230, 255, .12),
    0 0 60px rgba(255, 46, 136, .12),
    0 16px 40px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: opacity 140ms var(--ease), box-shadow 200ms var(--ease);
}
#gta-radio .np-card.is-off { opacity: .72; }
#gta-radio .np-card[data-state="blocked"],
#gta-radio .np-card[data-state="paused"] { cursor: pointer; }
#gta-radio .np-card[data-state="blocked"] {
  box-shadow: inset 0 0 0 2px var(--orange), 0 0 30px rgba(255, 138, 61, .4), 0 16px 40px rgba(0, 0, 0, .45);
}
#gta-radio .npc-art {
  position: relative;
  width: clamp(76px, 20vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(46, 46, 50, .9), rgba(12, 12, 14, .92) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 0 0 1px rgba(33, 230, 255, .22), 0 8px 22px rgba(0, 0, 0, .4);
}
#gta-radio .npc-fallback {
  grid-area: 1 / 1;
  padding: 0 10%;
  text-align: center;
  font-size: clamp(12px, 1vw + 8px, 15px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 0 14px rgba(255, 46, 136, .55);
}
#gta-radio .np-card.has-logo .npc-fallback { display: none; }
#gta-radio .npc-body { display: grid; gap: 3px; min-width: 0; }
#gta-radio .npc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
#gta-radio .npc-live { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--dim); }
#gta-radio .npc-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); flex: none; }
#gta-radio .np-card[data-state="live"] .npc-dot { background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: npcPulse 1.6s var(--ease) infinite; }
#gta-radio .np-card[data-state="live"] .npc-live { color: var(--ink); }
#gta-radio .np-card[data-state="tuning"] .npc-dot,
#gta-radio .np-card[data-state="buffering"] .npc-dot,
#gta-radio .np-card[data-state="blocked"] .npc-dot { background: var(--orange); animation: blink .7s steps(2, jump-none) infinite; }
#gta-radio .np-card[data-state="paused"] .npc-dot { background: var(--cyan); }
#gta-radio .np-card[data-state="error"] .npc-dot { background: #ff5050; }
#gta-radio .np-card[data-state="blocked"] .npc-live { color: var(--orange); }
@keyframes npcPulse { 50% { box-shadow: 0 0 2px var(--pink); opacity: .65; } }
#gta-radio .npc-station { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#gta-radio .npc-station::before { content: "·"; margin-right: 8px; color: var(--faint); }
#gta-radio .np-card.no-song .npc-station { display: none; }
#gta-radio .npc-artist {
  font-size: clamp(17px, .9vw + 11px, 21px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#gta-radio .npc-title {
  min-height: 1.35em;
  font-size: 14.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#gta-radio .np-card.is-dim .npc-artist { color: var(--faint); font-weight: 600; }
#gta-radio .np-card.no-song .npc-title,
#gta-radio .np-card.is-dim .npc-title { display: none; }
#gta-radio .npc-progress {
  height: 3px;
  margin-top: 7px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
}
#gta-radio .npc-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s linear;
}
#gta-radio .npc-next {
  margin-top: 3px;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#gta-radio .np-card:not(.has-tracks) .npc-progress,
#gta-radio .np-card:not(.has-tracks) .npc-next,
#gta-radio .np-card:not([data-state="live"]):not([data-state="buffering"]) .npc-progress { display: none; }

/* bar: "Station · Artist — Title" */
#gta-radio .np-track { color: var(--dim); font-weight: 500; }
#gta-radio .np-track.is-dim { color: var(--faint); }

/* ---------- station strip: logo tiles ----------
   The logo is the tile's background (::before, contain, so wide wordmarks aren't cropped), the name a
   caption over a bottom gradient. --logo is set by app.js once the logo has loaded (same ?v=). */
#gta-radio .strip {
  padding: 2px 0 max(10px, env(safe-area-inset-bottom));
  min-width: 0;
}
#gta-radio .strip-track {
  --chip-w: 120px;
  --chip-h: 76px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 16px 12px;            /* room for the hover lift and the active glow */
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
#gta-radio .strip-track::-webkit-scrollbar { display: none; }
#gta-radio .chip {
  position: relative;
  flex: none;
  width: var(--chip-w);
  height: var(--chip-h);
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--dim);
  scroll-snap-align: center;
  transition: transform 140ms var(--ease), background 120ms var(--ease), color 120ms var(--ease), box-shadow 140ms var(--ease);
}
#gta-radio .chip::before {
  content: "";
  position: absolute;
  inset: 8px 10px 24px;
  background: var(--logo, none) center / contain no-repeat;
  opacity: .65;
  transition: opacity 140ms var(--ease);
}
#gta-radio .chip-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 8px 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(to top, rgba(8, 5, 14, .82) 30%, rgba(8, 5, 14, 0));
}
/* no logo (missing / failed): the name fills the tile instead */
#gta-radio .chip:not(.has-logo) .chip-name {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: 13px;
  white-space: normal;
  text-wrap: balance;
  background: none;
}
#gta-radio .chip:hover:not(:disabled),
#gta-radio .chip:focus-visible { transform: translateY(-2px); background: var(--glass-2); color: var(--ink); }
#gta-radio .chip:hover:not(:disabled)::before,
#gta-radio .chip:focus-visible::before,
#gta-radio .chip.on::before { opacity: 1; }
#gta-radio .chip.on {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 46, 136, .32), rgba(255, 138, 61, .2));
  box-shadow: inset 0 0 0 1.5px rgba(255, 46, 136, .8), 0 0 18px rgba(255, 46, 136, .3);
}
#gta-radio .chip:disabled { opacity: .35; cursor: not-allowed; }
#gta-radio .chip:disabled .chip-name { text-decoration: line-through; }
#gta-radio .chip-num {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  background: rgba(0, 0, 0, .45);
  color: var(--faint);
}
#gta-radio .chip.on .chip-num { background: rgba(255, 255, 255, .2); color: var(--ink); }
#gta-radio.is-touch .chip-num { display: none; }      /* no number keys on touch devices */
@media (max-width: 600px) {
  #gta-radio .strip-track { --chip-w: 96px; --chip-h: 64px; gap: 8px; }
  #gta-radio .chip::before { inset: 6px 8px 21px; }
  #gta-radio .chip-name { font-size: 11px; padding: 10px 6px 4px; }
}

/* ---------- start gate ---------- */
#gta-radio .gate {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: radial-gradient(80% 60% at 50% 50%, rgba(10, 7, 16, .55), rgba(10, 7, 16, .86));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 320ms var(--ease), visibility 0s linear 320ms;
  user-select: none;
  -webkit-user-select: none;
}
#gta-radio .gate.gone { opacity: 0; visibility: hidden; pointer-events: none; }
#gta-radio .gate-title {
  margin: 0;
  font-size: clamp(26px, 5.4vmin, 54px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 46, 136, .9), 0 0 40px rgba(255, 46, 136, .5), 0 0 80px rgba(255, 138, 61, .35);
  animation: flicker 4.5s linear infinite;
}
#gta-radio .gate-next { margin: 14px 0 0; font-size: 15px; color: var(--cyan); letter-spacing: .04em; min-height: 1.4em; }
@keyframes flicker {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: .55; }
}

/* ---------- toast ---------- */
#gta-radio .toast {
  position: fixed;
  left: 50%;
  top: calc(var(--hdr, 55px) + 12px);
  z-index: 40;
  max-width: min(92vw, 460px);
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(20, 12, 30, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .5), 0 10px 30px rgba(0, 0, 0, .45);
  font-size: 14px;
  text-align: center;
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
#gta-radio .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- SEO / about section (standalone only) ---------- */
#gta-radio .about {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 20px max(56px, env(safe-area-inset-bottom));
  color: var(--dim);
}
#gta-radio .about h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
#gta-radio .about p { margin: 0 0 18px; max-width: 68ch; }
#gta-radio .station-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 16px;
  margin: 0 0 24px;
  padding-left: 1.4em;
}
#gta-radio .station-list a { color: var(--ink); text-decoration: none; }
#gta-radio .station-list a:hover { color: var(--pink); }
#gta-radio .station-list li::marker { color: var(--faint); font-size: .85em; }
#gta-radio .station-list li.off a { color: var(--faint); text-decoration: line-through; pointer-events: none; }
#gta-radio .fine { font-size: 12.5px; color: var(--faint); }
#gta-radio .noscript { text-align: center; padding: 40px 20px 0; }

/* ---------- wide screens: one centred group, [art, hint, bar | Now playing card] ---------- */
@media (min-width: 1100px) {
  #gta-radio .stage {
    grid-template-columns: minmax(0, 560px) minmax(0, 400px);
    grid-template-areas: "art card" "hint card" "bar card" "donate card";
    column-gap: clamp(40px, 5vw, 88px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
  }
  #gta-radio .np-card { align-self: center; padding: 18px 20px 18px 18px; gap: 18px; }
  #gta-radio .npc-art { width: 124px; }
}

/* phones: the bar becomes two rows, station on top, controls centred below (mute stays; the slider
   goes: iOS ignores page volume and phones have hardware buttons) */
@media (max-width: 560px) {
  #gta-radio .bar {
    grid-template-areas: "np np np" ". ctrls volume";
    padding: 10px 12px;
  }
  #gta-radio .vol { display: none; }
  #gta-radio .donate { display: none; }
  #gta-radio .donate-inline {
    grid-area: 2 / 1;
    justify-self: start;
    display: grid;
    align-content: center;
    min-height: 40px;
    padding: 0 0 0 2px;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: nowrap;          /* one line each; may run into the empty column gap, never onto ⏮ */
  }
  #gta-radio .donate-inline span { color: var(--ink); font-weight: 600; }
  #gta-radio .donate-inline small { font-size: clamp(9.5px, 2.75vw, 11px); color: var(--faint); }
  #gta-radio .donate-inline:active span { color: var(--pink); }
}
/* narrow phones: no room for one line, so the small text wraps inside its cell */
@media (max-width: 374px) {
  #gta-radio .donate-inline { white-space: normal; max-width: 100%; }
  /* station line: 25px inner padding top/bottom; the live dot stays pinned top-left and the text sits
     below it, centred over the full bar width, never wider than the bar (long lines scroll, see below) */
  #gta-radio .bar { position: relative; padding-top: 25px; padding-bottom: 25px; }
  #gta-radio .live { position: absolute; top: 24px; left: 11px; }
  #gta-radio .np { justify-content: center; width: 100%; }
  #gta-radio .np-text { width: 100%; justify-items: stretch; text-align: center; }
  #gta-radio .np-name { display: block; max-width: 100%; text-overflow: clip; }
  #gta-radio .np-name.is-marquee {
    text-align: left;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  }
  #gta-radio .np-name.is-marquee .np-marq {
    display: inline-block;
    padding: 0 10px;
    animation: npMarquee var(--marq-dur, 10s) linear infinite;
  }
}
/* back and forth like a car radio display: hold, slide left, hold, slide back */
@keyframes npMarquee {
  0%, 12% { transform: translateX(0); }
  42%, 58% { transform: translateX(calc(-1 * var(--marq, 0px) - 20px)); }
  88%, 100% { transform: translateX(0); }
}
@media (max-width: 560px) and (prefers-reduced-motion: reduce) {
  #gta-radio .np-name.is-marquee { text-overflow: ellipsis; -webkit-mask-image: none; mask-image: none; }
  #gta-radio .np-name.is-marquee .np-marq { display: inline; animation: none; padding: 0; }
}

/* short viewports (e.g. 600px embeds) */
@media (max-height: 640px) {
  #gta-radio .stage { gap: 10px; }
  #gta-radio .art { width: clamp(88px, min(34vw, 26vh), 200px); }
  #gta-radio .np-card { padding: 10px 14px 10px 10px; }
  #gta-radio .npc-art { width: clamp(64px, 18vw, 84px); }
}

/* =====================================================================
   Radio wheel (neutral dark glass, like the in-game one)
   ===================================================================== */
#gta-radio .wheel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .4);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 120ms var(--ease),
    -webkit-backdrop-filter 120ms var(--ease),
    backdrop-filter 120ms var(--ease),
    visibility 0s linear 120ms;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
#gta-radio .wheel.open {
  visibility: visible;
  opacity: 1;
  -webkit-backdrop-filter: blur(16px) brightness(.6) saturate(.75);
  backdrop-filter: blur(16px) brightness(.6) saturate(.75);
  transition:
    opacity 100ms var(--ease),
    -webkit-backdrop-filter 100ms var(--ease),
    backdrop-filter 100ms var(--ease),
    visibility 0s;
}
#gta-radio .wheel-ring {
  position: relative;
  width: min(78dvmin, 760px);
  aspect-ratio: 1;
  transform: scale(.94);
  transition: transform 180ms var(--pop);
}
#gta-radio .wheel.open .wheel-ring { transform: scale(1); }
@media (max-width: 860px) { #gta-radio .wheel-ring { width: min(92dvmin, 560px); } }

#gta-radio .wheel-slot,
#gta-radio .wheel-sel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--slot);
  height: var(--slot);
  margin: calc(var(--slot) / -2) 0 0 calc(var(--slot) / -2);
  border-radius: 50%;
}
#gta-radio .wheel-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(46, 46, 50, .9), rgba(12, 12, 14, .92) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), 0 8px 22px rgba(0, 0, 0, .45);
  transform: translate(var(--x), var(--y));
  transition: transform 120ms var(--ease), background 120ms var(--ease);
  cursor: pointer;
}
/* --lw / --lh (wheel.js): fitted so the logo's bounding box sits fully inside the circle */
#gta-radio .wheel-slot img {
  grid-area: 1 / 1;
  width: var(--lw, 60%);
  height: var(--lh, 60%);
  object-fit: contain;
  opacity: .72;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: opacity 120ms var(--ease);
}
#gta-radio .wheel-slot .t {
  grid-area: 1 / 1;
  /* spec: --slot × .12. wheel.js nudges it up a little on small rings (--slot-font) */
  font-size: var(--slot-font, calc(var(--slot) * .12));
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  color: rgba(255, 255, 255, .75);
  padding: 0 9%;
  overflow-wrap: break-word;
}
#gta-radio .wheel-slot.has-logo .t { display: none; }
#gta-radio .wheel-slot.power svg { width: 42%; height: 42%; color: rgba(255, 255, 255, .75); }
#gta-radio .wheel-slot.on {
  transform: translate(var(--x), var(--y)) scale(1.14);
  background: radial-gradient(circle at 50% 35%, rgba(60, 60, 64, .95), rgba(16, 16, 18, .95) 70%);
}
#gta-radio .wheel-slot.on img { opacity: 1; }
#gta-radio .wheel-slot.on .t,
#gta-radio .wheel-slot.on.power svg { color: #fff; }
#gta-radio .wheel-slot.disabled { opacity: .35; }

#gta-radio .wheel-sel {
  transform: translate(var(--x, 0), var(--y, 0)) scale(1.14);
  box-shadow: inset 0 0 0 2.5px #fff, 0 0 22px rgba(255, 255, 255, .5), 0 0 64px rgba(255, 255, 255, .2);
  pointer-events: none;
  transition: transform 90ms var(--ease);
}
#gta-radio .wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--inner, 50%);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 4px;
  text-align: center;
  pointer-events: none;
}
#gta-radio .wheel-name {
  font-size: clamp(18px, 2.7vmin, 28px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6), 0 0 2px rgba(0, 0, 0, .4);
  text-wrap: balance;
}
#gta-radio .wheel-sub {
  font-size: clamp(11px, 1.45vmin, 13.5px);
  color: rgba(255, 255, 255, .62);
  letter-spacing: .04em;
}

/* =====================================================================
   Background modes (scene.js): notch on the left [slideshow / visualizer / off]
   ===================================================================== */
#gta-radio .modes {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 7px 8px 6px;
  border-radius: 0 18px 18px 0;
  background: var(--glass);
  box-shadow: inset -1px 0 0 var(--line), inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line), 0 12px 40px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
#gta-radio .mode {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease), box-shadow 200ms var(--ease), transform 120ms var(--ease);
}
#gta-radio .mode svg { width: 19px; height: 19px; }
#gta-radio .mode:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
#gta-radio .mode:active { transform: scale(.92); }
#gta-radio .mode[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 0 16px rgba(255, 46, 136, .5);
}
/* labels to the right on hover (mouse) / keyboard focus */
#gta-radio .mode::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(20, 12, 30, .94);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, .4);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}
@media (hover: hover) {
  #gta-radio .mode:hover::after { opacity: 1; transform: translate(0, -50%); }
}
#gta-radio .mode:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
/* narrow layouts: the player column is (nearly) full width, so sit beside the art at the top */
@media (max-width: 700px) {
  #gta-radio .modes { top: calc(var(--hdr, 55px) + 18px); transform: none; gap: 4px; padding: 6px 6px 6px 5px; }
  #gta-radio .mode { width: 34px; height: 34px; }
  #gta-radio .mode svg { width: 17px; height: 17px; }
  html.embed #gta-radio .modes { top: 12px; }
}

/* the layers: fixed over .bg, under the app; each one fades in with its mode */
#gta-radio .scene { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
#gta-radio .scene > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 0s linear 600ms;
}
#gta-radio[data-scene="viz"] .scene > .viz,
#gta-radio[data-scene="slides"] .scene > .slides { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease); }
#gta-radio .viz { display: block; background: #0a0712; }
/* embedded: the scene replaces the rounded panel's own background */
html.embed:not(.no-panel) #gta-radio .scene { border-radius: 20px; }
html.embed:not(.no-panel) #gta-radio[data-scene="viz"] .app,
html.embed:not(.no-panel) #gta-radio[data-scene="slides"] .app { background: transparent; }
/* the about text stays readable over a photo */
#gta-radio[data-scene="slides"] .about,
#gta-radio[data-scene="viz"] .about { background: linear-gradient(rgba(10, 7, 16, 0), rgba(10, 7, 16, .9) 120px); }

/* the hint pill has no panel of its own: give it one over a busy background */
#gta-radio[data-scene="viz"] .hint,
#gta-radio[data-scene="slides"] .hint,
#gta-radio[data-scene="viz"] .donate,
#gta-radio[data-scene="slides"] .donate {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
/* visualizer: the station art breathes with the kick (--beat 0..1, set per frame) */
#gta-radio[data-scene="viz"] .art {
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    0 0 0 1px rgba(255, 46, 136, calc(.3 + var(--beat, 0) * .5)),
    0 18px 50px rgba(0, 0, 0, .5),
    0 0 calc(60px + var(--beat, 0) * 50px) rgba(255, 46, 136, calc(.22 + var(--beat, 0) * .38));
}

/* slideshow */
#gta-radio .slides { --fade: 1400ms; background: #0a0710; }
#gta-radio .slides::after {          /* scrim: keeps the HUD (and the site header) readable on bright photos */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(rgba(10, 7, 16, .6), rgba(10, 7, 16, 0) calc(var(--hdr, 55px) + 70px)),
    radial-gradient(120% 90% at 50% 45%, rgba(10, 7, 16, .1), rgba(10, 7, 16, .62)),
    linear-gradient(rgba(10, 7, 16, .28), rgba(10, 7, 16, .28));
}
#gta-radio .slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--fade) var(--ease), transform var(--fade) var(--ease);
}
#gta-radio .slide.in { opacity: 1; transform: none; }
#gta-radio .slide.fx-slide { transform: translateX(7%); }
#gta-radio .slide.fx-zoom { transform: scale(1.14); }
#gta-radio .slide.in.out { opacity: 0; }
#gta-radio .slide.fx-slide.in.out { transform: translateX(-7%); }
#gta-radio .slide.fx-zoom.in.out { transform: scale(.94); }
#gta-radio .slide-media { position: absolute; inset: 0; width: 100%; height: 100%; }
#gta-radio .slide-media.is-cover { object-fit: cover; }
#gta-radio .slide-media.is-contain { object-fit: contain; }
#gta-radio .slide-bd {                /* blurred copy behind a photo whose shape doesn't fit the screen */
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(36px) saturate(1.3) brightness(.55);
}
#gta-radio .slide-media.kb { animation: kenBurns var(--kb, 10s) linear forwards; }
@keyframes kenBurns {
  from { transform: scale(1.12) translate(var(--kx, 0), var(--ky, 0)); }
  to { transform: scale(1.01) translate(0, 0); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #gta-radio *,
#gta-radio *::before,
#gta-radio *::after { animation: none !important; }
  #gta-radio .wheel,
#gta-radio .wheel.open,
#gta-radio .wheel-ring,
#gta-radio .wheel-slot,
#gta-radio .wheel-sel,
#gta-radio .hud,
#gta-radio .toast,
#gta-radio .gate { transition-duration: 0s !important; }
  #gta-radio .wheel-ring { transform: none; }
  #gta-radio #static { display: none; }
  #gta-radio .slide, #gta-radio .slide.in, #gta-radio .slide.in.out { transform: none !important; }
}
