:root {
  --ink: #fff;
  --muted: rgba(255, 255, 255, .68);
  --pink: #ff297f;
  --cyan: #20dcff;
  --violet: #6e23ff;
  --night: #10052d;
  --glass: rgba(15, 7, 51, .66);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #090615;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  overflow-x: hidden;
}

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

.radio-shell {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 46px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 34px 220px;
  background:
    linear-gradient(115deg, rgba(10, 4, 36, .8), rgba(27, 7, 76, .36)),
    radial-gradient(circle at 50% 100%, #ee1379 0, #6723e8 34%, #122bc4 65%, #09051f 100%);
}

.radio-shell::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: -10%;
  background: url("logo-radio-nova-siao.png") center / min(74vw, 900px) no-repeat;
  opacity: .12;
  filter: blur(13px) saturate(1.4);
  transform: scale(1.12);
}

.radio-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  opacity: .1;
}

.ambient {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .75;
  animation: drift 10s ease-in-out infinite alternate;
}

.ambient-one {
  width: 420px;
  height: 260px;
  left: 9%;
  top: 3%;
  background: #ff1685;
}

.ambient-two {
  width: 340px;
  height: 340px;
  right: 2%;
  bottom: -8%;
  background: #025cff;
  animation-delay: -4s;
}

@keyframes drift {
  to { transform: translate3d(45px, 24px, 0) scale(1.08); }
}

.quick-links {
  position: absolute;
  left: 24px;
  top: 50%;
  width: 178px;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
}

.menu-toggle { display: none; }

.quick-link {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 99px;
  color: #160927;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(7, 0, 29, .18);
  font-size: .87rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.quick-link:hover, .quick-link:focus-visible {
  transform: translateX(6px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(255, 27, 126, .25);
  outline: none;
}

.social-placeholder { width: 100%; }

.link-icon {
  width: 22px;
  color: #ef174f;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
}

.station {
  width: min(100%, 520px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: enter .8s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
}

.logo-wrap {
  position: relative;
  width: clamp(220px, 19vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.station-logo {
  width: 89%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(9, 0, 58, .46));
  animation: float 5s ease-in-out infinite;
}

.artist-art {
  position: absolute;
  z-index: 2;
  width: 82%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 7px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(9,0,58,.5), 0 0 0 2px rgba(32,220,255,.5);
  animation: coverIn .55s cubic-bezier(.2,.8,.2,1) both;
}

.logo-wrap.has-art .station-logo {
  opacity: 0;
  transform: scale(.88);
}

@keyframes coverIn {
  from { opacity: 0; transform: scale(.86) rotate(-4deg); }
}

@keyframes float {
  50% { transform: translateY(-6px); }
}

.orbit {
  position: absolute;
  inset: 2%;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  animation: spin 11s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 10%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.orbit-two {
  inset: 9%;
  border-style: dashed;
  animation-duration: 17s;
  animation-direction: reverse;
}

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

.station-copy { margin-bottom: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.76);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow i, .connection i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #45ffbb;
  box-shadow: 0 0 10px #45ffbb;
}

h1 {
  margin: 7px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 3px 14px rgba(5, 0, 30, .35);
}

.station-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .87rem;
}

.player-card {
  position: relative;
  width: 100%;
  padding: 6px 22px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.now-playing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.now-playing strong, .now-playing small { display: block; }
.now-playing strong { font-size: .9rem; }
.now-playing small { margin-top: 2px; color: var(--muted); font-size: .7rem; }

.equalizer {
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 0;
  background: transparent;
}

.equalizer span {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--cyan);
  transform-origin: bottom;
}

.is-playing .equalizer span { animation: bars .75s ease-in-out infinite alternate; }
.is-playing .equalizer span:nth-child(2) { animation-delay: -.4s; }
.is-playing .equalizer span:nth-child(3) { animation-delay: -.2s; }
.is-playing .equalizer span:nth-child(4) { animation-delay: -.55s; }

@keyframes bars { to { height: 24px; } }

.live-badge {
  padding: 6px 9px;
  border-radius: 99px;
  color: white;
  background: linear-gradient(90deg, #f51d62, #ff4a3c);
  box-shadow: 0 6px 18px rgba(245, 29, 98, .32);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.control-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin: 15px 0 8px;
}

.round-button, .play-button {
  border: 0;
  display: grid;
  place-items: center;
  color: white;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.round-button {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.round-button svg { width: 21px; fill: currentColor; }

.play-button {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #e51b59;
  background: white;
  box-shadow: 0 10px 30px rgba(4, 0, 37, .28), 0 0 0 9px rgba(255,255,255,.09);
}

.play-button::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: inherit;
}

.play-button svg { width: 31px; fill: currentColor; }
.play-button .play-icon { transform: translateX(2px); }
.pause-icon { display: none; }
.is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }

.round-button:hover, .round-button:focus-visible { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.play-button:hover, .play-button:focus-visible { transform: scale(1.05); box-shadow: 0 13px 35px rgba(4,0,37,.35), 0 0 0 11px rgba(255,255,255,.1); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.vu-meter {
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: 13px 1fr;
  align-items: center;
  gap: 5px 8px;
  margin: 8px auto 5px;
}

.vu-label {
  color: rgba(255,255,255,.52);
  font: 700 .58rem/1 monospace;
}

.vu-track {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 4px;
}

.vu-led {
  height: 8px;
  border-radius: 2px;
  background: rgba(41,255,159,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: background .06s, box-shadow .06s, opacity .06s;
}

.vu-led:nth-child(n+11) { background: rgba(255,211,55,.12); }
.vu-led:nth-child(n+15) { background: rgba(255,49,92,.14); }
.vu-led.active { background: #2dffa6; box-shadow: 0 0 8px rgba(45,255,166,.85); }
.vu-led.active:nth-child(n+11) { background: #ffd33a; box-shadow: 0 0 8px rgba(255,211,58,.85); }
.vu-led.active:nth-child(n+15) { background: #ff315c; box-shadow: 0 0 9px rgba(255,49,92,.9); }

.volume-panel {
  display: grid;
  grid-template-columns: auto 1fr 40px;
  align-items: center;
  gap: 11px;
  height: 0;
  padding: 0 10px;
  overflow: hidden;
  opacity: 0;
  transition: height .25s, opacity .25s;
  color: var(--muted);
  font-size: .7rem;
}

.volume-panel.open { height: 34px; opacity: 1; }
.volume-panel output { color: white; font-variant-numeric: tabular-nums; }

input[type="range"] {
  height: 4px;
  accent-color: var(--pink);
  cursor: pointer;
}

.player-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 9px;
  border-top: 0;
  color: rgba(255,255,255,.54);
  font-size: .65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.connection { display: inline-flex; align-items: center; gap: 6px; }
.connection i { width: 5px; height: 5px; }

.footer {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .28em;
  color: rgba(255,255,255,.58);
  background: #111016;
  font-size: .72rem;
}

@media (max-width: 900px) {
  .radio-shell {
    min-height: calc(100vh - 42px);
    align-content: center;
    padding: 28px 24px 32px;
  }

  .menu-toggle {
    position: absolute;
    z-index: 8;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 15px;
    color: white;
    background: rgba(15,7,51,.62);
    box-shadow: 0 12px 30px rgba(4,0,39,.28);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s, opacity .25s;
  }

  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .quick-links {
    z-index: 7;
    left: auto;
    right: 18px;
    top: 72px;
    width: min(240px, calc(100vw - 36px));
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(13,5,44,.88);
    box-shadow: 0 22px 50px rgba(3,0,28,.42);
    backdrop-filter: blur(22px);
    transform: translateY(-8px) scale(.96);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s, transform .22s, visibility .22s;
  }

  .quick-links.open { opacity: 1; visibility: visible; transform: none; }
  .quick-link { width: 100%; min-height: 40px; padding: 7px 13px; font-size: .8rem; }
}

@media (max-width: 560px) {
  .radio-shell { padding: 22px 16px 28px; }
  .logo-wrap { width: clamp(168px, 51vw, 225px); margin-bottom: 4px; }
  .station-copy { margin-bottom: 13px; }
  .station-copy p { font-size: .78rem; }
  .player-card { padding: 15px 16px 13px; border-radius: 23px; }
  .control-row { margin-top: 13px; gap: 20px; }
  .play-button { width: 70px; height: 70px; }
  .round-button { width: 40px; height: 40px; }
  .footer { height: 42px; }
}

@media (max-height: 720px) and (min-width: 901px) {
  .radio-shell { padding-top: 20px; padding-bottom: 20px; }
  .logo-wrap { width: 190px; }
  .station-copy { margin-bottom: 12px; }
  .player-card { padding-top: 13px; padding-bottom: 11px; }
  .play-button { width: 68px; height: 68px; }
}

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