:root {
  color-scheme: dark;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

body[data-theme="himalayan"] {
  --bg: #0f1215;
  --bg-rgb: 15, 18, 21;
  --surface: #1a1f24;
  --surface-rgb: 26, 31, 36;
  --surface-raised: #22292f;
  --accent: #bf2734;
  --accent-rgb: 191, 39, 52;
  --accent-contrast: #fff7f4;
  --accent-2: #8f1c26;
  --text: #f5f1e8;
  --muted: #abaea9;
  --line: rgba(255, 255, 255, .11);
  --heading-font: "Playfair Display", Georgia, serif;
}

body[data-theme="bollywood"] {
  --bg: #120b18;
  --bg-rgb: 18, 11, 24;
  --surface: #1e1228;
  --surface-rgb: 30, 18, 40;
  --surface-raised: #2b1738;
  --accent: #e11d48;
  --accent-rgb: 225, 29, 72;
  --accent-contrast: #fff7ed;
  --accent-2: #f59e0b;
  --text: #fff5ed;
  --muted: #bcaebf;
  --line: rgba(255, 255, 255, .12);
  --heading-font: "Cinzel", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  transition: background-color .5s var(--ease), color .4s var(--ease);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(var(--accent-rgb), .06), transparent 28%),
    radial-gradient(circle at 84% 70%, rgba(var(--accent-rgb), .04), transparent 25%);
}

::selection {
  color: var(--accent-contrast);
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: -60px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  color: var(--accent-contrast);
  background: var(--accent);
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* The page is a single non-scrolling screen: artwork behind, three stacked
   rows (top bar, station identity, player) in front. */
.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}

.stage-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
}

.brand-logo {
  flex-shrink: 0;
  width: auto;
  height: 52px;
  object-fit: contain;
  /* The wordmark is printed in its own red, so a subtle lift keeps it legible
     over the artwork without recoloring it. */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .55));
}

.station-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), .42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .6);
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  70%,
  100% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); }
}

.stage-links {
  justify-self: end;
  display: flex;
  gap: 9px;
}

.stage-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--bg-rgb), .42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 700;
  transition: color .25s, border-color .25s, background .25s;
}

.stage-links a:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), .55);
  background: rgba(var(--surface-rgb), .72);
}

.stage-links svg {
  width: 14px;
  color: var(--accent);
}

.stage-main {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.station-title {
  margin: 0;
  display: grid;
  gap: 10px;
}

.station-name {
  color: rgba(255, 255, 255, .58);
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
}

.station-kind {
  font: 700 clamp(44px, 7vw, 104px)/1 var(--heading-font);
  letter-spacing: -.03em;
  text-shadow: 0 3px 34px rgba(0, 0, 0, .55);
  transition: font-family .2s;
}

body[data-theme="bollywood"] .station-kind {
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.station-tagline {
  max-width: 30ch;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: .02em;
}

.station-kind.text-switching,
.station-tagline.text-switching {
  opacity: 0;
  transform: translateY(8px);
}

.station-kind,
.station-tagline {
  transition: opacity .25s, transform .4s var(--ease), font-family .2s;
}

.theme-switch {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(var(--surface-rgb), .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color .3s, background .4s;
}

.theme-switch:hover {
  border-color: rgba(var(--accent-rgb), .55);
}

/* Brief on-load spotlight so visitors notice the dual-theme control. */
.theme-switch--spotlight {
  z-index: 2;
  border-color: rgba(var(--accent-rgb), .85);
  background: rgba(var(--surface-rgb), .92);
  --thumb-nudge: 7px;
  animation: themeSpotlight 1.1s ease-in-out 3;
}

body[data-theme="bollywood"] .theme-switch--spotlight {
  --thumb-nudge: -7px;
}

.theme-switch--spotlight .switch-thumb {
  animation: themeThumbNudge .9s ease-in-out 3;
}

@keyframes themeSpotlight {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(var(--accent-rgb), .15),
      0 8px 24px rgba(0, 0, 0, .28);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(var(--accent-rgb), 0),
      0 14px 36px rgba(var(--accent-rgb), .28);
    transform: scale(1.04);
  }
}

@keyframes themeThumbNudge {
  0%,
  100% { transform: translateX(var(--thumb-x)); }
  40% { transform: translateX(calc(var(--thumb-x) + var(--thumb-nudge))); }
  70% { transform: translateX(calc(var(--thumb-x) + var(--thumb-nudge) * .4)); }
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .3s, opacity .3s;
}

body[data-theme="himalayan"] .theme-himalayan,
body[data-theme="bollywood"] .theme-bollywood {
  color: var(--text);
}

.theme-label-short {
  display: none;
}

.switch-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .14);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  --thumb-x: 0px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), .55);
  transform: translateX(var(--thumb-x));
  transition: transform .4s var(--ease), background .4s;
}

body[data-theme="bollywood"] .switch-thumb {
  --thumb-x: 16px;
}

/* Sits behind every stage row. `isolation` keeps the scene's own negative
   z-index layers (art, vignette, grain) trapped inside this element. */
.hero {
  position: fixed;
  z-index: -1;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  /* Backstop for aspect ratios where the cropped scene cannot reach an edge. */
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 55%, var(--bg) 100%);
  --parallax-x: 0px;
  --parallax-y: 0px;
}

.hero-scene {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
  transition: opacity .9s var(--ease), transform 1.4s var(--ease), visibility .9s;
}

body[data-theme="himalayan"] .hero-scene--himalayan,
body[data-theme="bollywood"] .hero-scene--bollywood {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

body[data-theme="bollywood"] .hero-scene--himalayan *,
body[data-theme="himalayan"] .hero-scene--bollywood * {
  animation-play-state: paused;
}

.art-parallax {
  transform: translate3d(calc(var(--parallax-x) * var(--depth)), calc(var(--parallax-y) * var(--depth)), 0);
  transition: transform .9s var(--ease);
  will-change: transform;
}

.art-star {
  fill: #fdf6e6;
  animation: artTwinkle var(--duration, 4s) ease-in-out var(--delay, 0s) infinite alternate;
}

.art-star--spark {
  filter: drop-shadow(0 0 4px rgba(255, 247, 232, .85));
}

.art-moon {
  transform-box: fill-box;
  transform-origin: center;
  animation: artBreathe 8s ease-in-out infinite alternate;
}

@keyframes artTwinkle {
  from { opacity: .12; }
  to { opacity: var(--peak, .85); }
}

.art-aurora {
  filter: blur(26px);
  animation: artAurora 22s ease-in-out infinite alternate;
}

@keyframes artAurora {
  from { transform: translate3d(-3%, 8px, 0) scaleY(1); opacity: .7; }
  to { transform: translate3d(3%, -14px, 0) scaleY(1.35); opacity: 1; }
}

.art-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: artBreathe 9s ease-in-out infinite alternate;
}

@keyframes artBreathe {
  from { transform: scale(1); opacity: .88; }
  to { transform: scale(1.07); opacity: 1; }
}

.art-clouds,
.art-mist {
  filter: blur(14px);
}

.art-cloud {
  animation: artDrift var(--duration, 44s) linear infinite;
}

.art-mist ellipse {
  animation: artDrift 66s linear infinite reverse;
}

@keyframes artDrift {
  from { transform: translate3d(-14%, 0, 0); }
  to { transform: translate3d(14%, 0, 0); }
}

.art-flagline #himFlagLine {
  animation: artFlagLine 7s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes artFlagLine {
  from { transform: translateY(-3px) scaleY(.995); }
  to { transform: translateY(4px) scaleY(1.008); }
}

.art-flag-cloth {
  transform-box: fill-box;
  transform-origin: top center;
  animation: artFlagSway var(--duration, 3.4s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes artFlagSway {
  from { transform: rotate(-7deg) skewX(4deg) scaleY(.96); }
  to { transform: rotate(8deg) skewX(-5deg) scaleY(1.03); }
}

.art-snowflake {
  animation: artSnowFall var(--duration, 14s) linear var(--delay, 0s) infinite;
}

.art-crystal {
  transform-box: fill-box;
  transform-origin: center;
  animation: artCrystalSpin 7s linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .45));
}

@keyframes artCrystalSpin {
  to { transform: rotate(360deg); }
}

@keyframes artSnowFall {
  0% { transform: translate3d(0, -60px, 0); opacity: 0; }
  12% { opacity: var(--peak, .7); }
  88% { opacity: var(--peak, .7); }
  100% { transform: translate3d(var(--drift, 60px), 1150px, 0); opacity: 0; }
}

.art-fire {
  transform-box: fill-box;
  transform-origin: center;
  animation: artBreathe 1.6s ease-in-out infinite alternate;
}

.art-trekker {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: artTrekBob 1.35s ease-in-out infinite alternate;
}

.art-trekker--delay {
  animation-delay: -.45s;
}

@keyframes artTrekBob {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.art-beams {
  filter: blur(24px);
  mix-blend-mode: screen;
}

.art-beam {
  transform-box: fill-box;
  transform-origin: top center;
}

.art-beam--left {
  animation: artSweepLeft 13s ease-in-out infinite alternate;
}

.art-beam--right {
  animation: artSweepRight 17s ease-in-out infinite alternate;
}

@keyframes artSweepLeft {
  from { transform: rotate(-9deg); opacity: .75; }
  to { transform: rotate(7deg); opacity: 1; }
}

@keyframes artSweepRight {
  from { transform: rotate(8deg); opacity: 1; }
  to { transform: rotate(-6deg); opacity: .7; }
}

.art-film {
  opacity: .75;
}

.art-film-track {
  animation: artFilmScroll 26s linear infinite;
}

@keyframes artFilmScroll {
  to { transform: translateX(-800px); }
}

.art-vinyl {
  transform-box: fill-box;
  transform-origin: center;
  animation: artSpin 11s linear infinite;
  filter: drop-shadow(0 0 30px rgba(225, 29, 72, .28));
}

@keyframes artSpin {
  to { transform: rotate(360deg); }
}

.art-deco {
  filter: drop-shadow(0 0 16px rgba(225, 29, 72, .35));
  animation: artNeonPulse 6s ease-in-out infinite alternate;
}

@keyframes artNeonPulse {
  from { opacity: .72; }
  to { opacity: 1; }
}

.art-bulb {
  fill: #fde3a7;
  animation: artBulbBlink var(--duration, 2.6s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes artBulbBlink {
  from { opacity: .22; r: 5; }
  to { opacity: 1; r: 8; }
}

.art-curtain {
  transform-box: view-box;
  transform-origin: 0 0;
}

.art-curtain--left {
  animation: artCurtainSway 12s ease-in-out infinite alternate;
}

.art-curtain--right {
  animation: artCurtainSway 15s ease-in-out infinite alternate-reverse;
}

@keyframes artCurtainSway {
  from { transform: skewX(0deg); }
  to { transform: skewX(1.3deg); }
}

.art-lamps circle {
  filter: blur(16px);
  animation: artBreathe 5s ease-in-out infinite alternate;
}

.art-bokeh {
  filter: blur(9px);
  mix-blend-mode: screen;
}

.art-bokeh circle {
  animation: artBokehFloat var(--duration, 18s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes artBokehFloat {
  from { transform: translate3d(0, 24px, 0) scale(.85); opacity: .25; }
  to { transform: translate3d(var(--drift, 40px), -46px, 0) scale(1.15); opacity: var(--peak, .7); }
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 54% at 50% 50%, rgba(var(--bg-rgb), .66), transparent 72%),
    linear-gradient(90deg, rgba(var(--bg-rgb), .66), rgba(var(--bg-rgb), .18) 54%, rgba(var(--bg-rgb), .52)),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), .1) 26%, rgba(var(--bg-rgb), .26) 100%);
  transition: background .5s;
}

.hero-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.player-dock {
  position: relative;
  width: min(760px, 100%);
  justify-self: center;
  margin-inline: auto;
}

.player-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px 18px;
  padding: 14px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background: rgba(var(--surface-rgb), .74);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
  transition: background .4s, border-color .4s;
}

.player-art {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(var(--bg-rgb), .6);
}

.player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
}

.playlist-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  left: 0;
  max-height: min(430px, 58vh);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(var(--surface-rgb), .97);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .56);
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.985);
  transform-origin: bottom center;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}

.playlist-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 15px;
  border-bottom: 1px solid var(--line);
}

.playlist-head small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .15em;
}

.playlist-head strong {
  font: 700 16px var(--heading-font);
}

.playlist-head button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.playlist-head button:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), .4);
}

.playlist-head svg {
  width: 15px;
}

.playlist-tracks {
  max-height: min(340px, 46vh);
  padding-top: 8px;
  overflow-y: auto;
  scrollbar-color: rgba(var(--accent-rgb), .35) transparent;
  scrollbar-width: thin;
}

.playlist-track {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 11px;
  padding: 10px 9px;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.playlist-track:hover,
.playlist-track.active {
  background: rgba(var(--accent-rgb), .1);
}

.playlist-track.active {
  color: var(--accent);
}

.playlist-index {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.playlist-track-copy {
  min-width: 0;
}

.playlist-track-copy strong,
.playlist-track-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-track-copy strong {
  font-size: 10px;
}

.playlist-track-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.playlist-track time {
  color: var(--muted);
  font-size: 8px;
}

.playlist-track > svg {
  width: 13px;
  opacity: 0;
  fill: currentColor;
}

.playlist-track:hover > svg,
.playlist-track.active > svg {
  opacity: 1;
}

.playlist-loading {
  padding: 28px 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

#soundcloudWidget {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: .01;
  pointer-events: none;
}

.player-play {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--accent-contrast);
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), .24);
  transition: transform .2s, background .4s, color .4s;
}

.player-play:hover {
  transform: scale(1.04);
}

.player-play svg {
  width: 18px;
  fill: currentColor;
}

/* Sits over the artwork thumbnail so the card shows playback at a glance. */
.equalizer {
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 6px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.equalizer span {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  animation: equalize .75s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.equalizer.playing {
  opacity: 1;
}

.equalizer.playing span {
  animation-play-state: running;
}

.equalizer span:nth-child(2) { animation-duration: .5s; animation-delay: -.3s; }
.equalizer span:nth-child(3) { animation-duration: .9s; animation-delay: -.5s; }
.equalizer span:nth-child(4) { animation-duration: .6s; animation-delay: -.15s; }

@keyframes equalize {
  from { height: 4px; }
  to { height: 18px; }
}

.track-info {
  min-width: 0;
  line-height: 1.25;
}

.track-info strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-info > span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-controls button,
.playlist-toggle,
.volume-wrap button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}

.player-controls button:hover,
.playlist-toggle:hover,
.volume-wrap button:hover,
.playlist-toggle[aria-expanded="true"] {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .12);
}

.player-controls svg,
.playlist-toggle svg,
.volume-wrap svg {
  width: 16px;
}

.player-play {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--accent-contrast);
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), .28);
  transition: transform .2s, background .4s, color .4s;
}

.player-controls .player-play:hover {
  color: var(--accent-contrast);
  background: var(--accent);
  transform: scale(1.05);
}

.player-play svg {
  width: 19px;
  fill: currentColor;
}

.player-extras {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-wrap input {
  width: 78px;
  height: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.seek-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.seek-row time {
  min-width: 38px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.seek-row time:last-child {
  text-align: right;
}

#seekBar {
  flex: 1;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (min-width: 1600px) {
  .brand-logo { height: 62px; }
  .player-dock { width: min(860px, 100%); }
  .track-info strong { font-size: 16px; }
  .track-info > span { font-size: 12px; }
  .station-tagline { font-size: 18px; }
}

@media (max-width: 850px) {
  .stage { gap: 12px; }
  .stage-top { grid-template-columns: auto 1fr; row-gap: 8px; }
  .station-badge { justify-self: end; }
  .stage-links { grid-column: 1 / -1; justify-self: center; }
  .station-kind { font-size: clamp(28px, 7vw, 48px); }
  .player-card { grid-template-columns: auto minmax(0, 1fr) auto; }
  .player-extras { grid-row: 2; grid-column: 3; justify-self: end; }
  .seek-row { grid-row: 3; }
  .playlist-panel { max-height: min(380px, 48vh); }
}

@media (max-width: 600px) {
  .stage { gap: 10px; }
  .brand-logo { height: 36px; }
  .station-badge { padding: 6px 10px; font-size: 8px; letter-spacing: .12em; }
  .stage-links a { padding: 8px 12px; font-size: 10px; }
  .stage-main { gap: 10px; align-content: end; padding-bottom: 8px; }
  .station-name { letter-spacing: .28em; font-size: 9px; }
  .station-kind { font-size: clamp(24px, 8vw, 34px); }
  .station-tagline { font-size: 12px; max-width: 26ch; }
  .theme-label-wide { display: none; }
  .theme-label-short { display: inline; }
  .theme-switch { gap: 6px; padding: 6px 8px; }
  .player-card { gap: 8px 10px; padding: 11px 12px 12px; border-radius: 18px; }
  .player-art { width: 44px; height: 44px; border-radius: 10px; }
  .player-controls { grid-row: 2; grid-column: 1 / 3; gap: 0; }
  .player-controls button { width: 34px; height: 34px; }
  .player-play { width: 44px; height: 44px; }
  #rewindBtn,
  #forwardBtn { display: none; }
  .volume-wrap input { display: none; }
  .seek-row { gap: 8px; }
  .seek-row time { min-width: 30px; font-size: 9px; }
  .playlist-panel { padding: 12px; border-radius: 16px; max-height: min(320px, 42vh); }
  .playlist-track { grid-template-columns: 26px minmax(0, 1fr) auto 18px; gap: 8px; }
}

@media (max-width: 430px) {
  .stage-top { gap: 8px; }
  .stage-links a { padding: 7px 10px; font-size: 9px; }
  .track-info strong { font-size: 12px; }
  .track-info > span { font-size: 10px; }
}

@media (max-width: 350px) {
  .stage-links span { display: none; }
  .station-name { display: none; }
}

/* Short viewports (landscape phones) need the page to scroll rather than crush. */
@media (max-height: 620px) {
  .stage { min-height: auto; gap: 10px; }
  .station-kind { font-size: clamp(22px, 7vw, 36px); }
  .stage-main { padding-block: 8px; align-content: center; }
  .station-tagline { display: none; }
}

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