:root {
  color-scheme: dark;
  --ink: #f5f3ed;
  --muted: #b0afa9;
  --accent: #ff9a6b;
  --panel: rgba(15, 15, 18, 0.68);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #08080b;
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
}

.radio-shell {
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  position: relative;
  padding: 25px clamp(22px, 5vw, 76px) 24px;
}

.art-background, .art-background::after, .grain { position: absolute; inset: -40px; }
.art-background { z-index: -3; background: radial-gradient(circle at 50% 40%, #34402b 0, #15171a 43%, #08080b 78%); background-size: cover; background-position: center; filter: blur(24px) saturate(1.25); transform: scale(1.08); opacity: .7; transition: background-image .7s ease, opacity .5s; }
.art-background::after { content: ""; background: linear-gradient(180deg, rgba(8,8,11,.48), rgba(8,8,11,.82) 72%, #08080b); }
.grain { pointer-events: none; z-index: -1; opacity: .18; 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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.topbar, footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.logo { display: block; object-fit: contain; }
.logo-header { width: 120px; height: 33px; }
.logo-main { width: min(620px, 82vw); height: clamp(82px, 13vw, 150px); margin: 0 0 clamp(25px, 5vh, 50px); }
.status, footer, .on-air { font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.status.offline i { background: #f7765f; box-shadow: 0 0 12px #f7765f; }

.player { display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; padding: 32px 0; }
.cover-wrap { height: min(38vh, 330px); width: min(38vh, 330px); min-height: 185px; min-width: 185px; position: relative; border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #202127; }
#coverArt, #coverArtNext, .cover-fallback { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
#coverArt, #coverArtNext { z-index: 1; object-fit: cover; opacity: 0; transition: opacity .7s ease-in-out; }
#coverArt.ready, #coverArtNext.ready { opacity: 1; }
.cover-fallback { z-index: 0; display: grid; place-items: center; background: radial-gradient(circle at 68% 25%, #efff67, #849a31 20%, #16181a 68%); color: #131510; font-size: clamp(90px, 20vw, 190px); font-weight: 700; letter-spacing: -.15em; transition: opacity .45s ease; }
.cover-wrap.has-art .cover-fallback { opacity: 0; }

.track-info { margin-top: clamp(22px, 4vh, 36px); max-width: min(550px, 88vw); }
.on-air { color: var(--ink); margin: 0 0 8px; }
h2 { font-size: clamp(24px, 4vw, 38px); line-height: 1.04; letter-spacing: -.055em; margin: 0; }
.track-info > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.control-deck { width: min(390px, 88vw); margin-top: 28px; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(12,12,15,.58); box-shadow: 0 12px 35px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.play-button { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: #8f8f94; cursor: pointer; }
.play-button:hover, .play-button:focus-visible { color: #fff; outline: none; }
.play-button i { font-size: 19px; line-height: 1; }
.volume-control { display: flex; align-items: center; gap: 11px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.volume-control svg { width: 18px; height: 18px; flex: 0 0 auto; fill: var(--muted); }
#volumeSlider { width: 155px; height: 4px; margin: 0; appearance: none; border-radius: 99px; outline: none; cursor: pointer; background: linear-gradient(to right, var(--accent) 0%, var(--accent) 80%, rgba(255,255,255,.2) 80%, rgba(255,255,255,.2) 100%); }
#volumeSlider::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border: 2px solid #18181b; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
#volumeSlider::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #18181b; border-radius: 50%; background: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

footer { color: var(--muted); }.topbar + .player + footer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }

@media (max-width: 600px) {
  .radio-shell { min-height: 100dvh; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .topbar { display: none; }
  .player { justify-content: center; padding: clamp(12px, 3vh, 24px) 0; }
  .logo-main { width: min(82vw, 430px); height: clamp(56px, 17vw, 98px); margin-bottom: clamp(16px, 3.5vh, 32px); }
  .cover-wrap { width: min(66vw, 300px); height: min(66vw, 300px); min-width: 0; min-height: 0; }
  .track-info { margin-top: clamp(18px, 3.5vh, 30px); }
  h2 { font-size: clamp(22px, 7vw, 32px); }
  .track-info > p:last-child { max-width: 86vw; margin-inline: auto; font-size: clamp(13px, 3.8vw, 15px); }
  .control-deck { width: min(390px, 88vw); }
  .volume-control { padding-left: 12px; }
  #volumeSlider { width: clamp(105px, 35vw, 155px); }
  footer { flex-wrap: wrap; justify-content: center; font-size: 9px; }
  footer span:first-child { display: none; }
}

@media (max-width: 360px) {
  .logo-main { height: 52px; margin-bottom: 14px; }
  .cover-wrap { width: min(64vw, 230px); height: min(64vw, 230px); }
  .control-deck { width: 92vw; padding-inline: 10px; }
  #volumeSlider { width: 92px; }
  .volume-control { gap: 7px; padding-left: 9px; }
  footer { gap: 10px; }
}

@media (max-height: 620px) and (max-width: 900px) {
  .radio-shell { padding-block: 12px; }
  .topbar { display: none; }
  .player { padding: 8px 0; }
  .logo-main { height: clamp(42px, 11vh, 66px); margin-bottom: 12px; }
  .cover-wrap { width: min(32vh, 220px); height: min(32vh, 220px); min-width: 0; min-height: 0; }
  .track-info { margin-top: 14px; }
  .control-deck { margin-top: 16px; }
  footer { padding-top: 10px; }
}
