:root {
  color-scheme: dark;
  --bg: #28040b;
  --surface: #0c1422;
  --surface-raised: #121e31;
  --blue: #2456d9;
  --blue-light: #83adff;
  --red: #ff344f;
  --gold: #ffc878;
  --white: #f4f7ff;
  --muted: #93a2bc;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input { font: inherit; }
button { cursor: pointer; }
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 4px;
}

.radio-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 22px);
  padding: clamp(18px, 3.5vw, 48px);
  background:
    radial-gradient(ellipse at 18% 24%, rgba(255, 46, 68, .58), transparent 46%),
    radial-gradient(ellipse at 82% 72%, rgba(222, 10, 45, .7), transparent 42%),
    radial-gradient(ellipse at 60% 5%, rgba(255, 130, 130, .3), transparent 32%),
    linear-gradient(145deg, #ad1028 0%, #610a1c 52%, #c91429 100%);
  background-size: 150% 150%, 170% 170%, 140% 140%, 100% 100%;
  animation: page-red-flow 22s ease-in-out infinite alternate;
}

.player-row {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-player {
  position: relative;
  width: 100%;
  aspect-ratio: 2.05 / 1;
  min-height: 400px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(160, 190, 245, .22);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 24% 48%, rgba(255, 62, 79, .42), transparent 42%),
    radial-gradient(ellipse at 83% 80%, rgba(255, 28, 56, .46), transparent 38%),
    linear-gradient(118deg, #d21b36 0%, #a9132a 44%, #cf1a34 100%);
  background-size: 145% 145%, 165% 165%, 100% 100%;
  animation: radio-red-flow 17s ease-in-out infinite alternate;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .56),
    0 0 0 7px rgba(54, 99, 191, .035),
    inset 0 1px rgba(255, 255, 255, .09);
}

.radio-player::before {
  position: absolute;
  z-index: 10;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, .045);
  border-radius: 25px;
  content: "";
  pointer-events: none;
}


.console-noise {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(144, 176, 232, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 176, 232, .12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  pointer-events: none;
}

.console-light {
  position: absolute;
  z-index: 0;
  width: 54%;
  height: 90%;
  filter: blur(64px);
  opacity: .2;
  pointer-events: none;
}

.light-blue {
  top: -36%;
  left: -17%;
  background: radial-gradient(ellipse, rgba(255, 76, 94, .9), transparent 68%);
  transform: rotate(-18deg);
}

.light-red {
  right: -24%;
  bottom: -47%;
  background: radial-gradient(ellipse, rgba(255, 38, 67, .98), transparent 68%);
  transform: rotate(-19deg);
  animation: red-aura-drift 10s ease-in-out infinite alternate;
}

.console-top-mark {
  position: absolute;
  z-index: 3;
  top: 8%;
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  opacity: .78;
  transform: translateX(-50%);
}

.console-top-mark i {
  width: 3px;
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(var(--gold), var(--blue-light));
  box-shadow: 0 0 10px rgba(108, 156, 255, .72);
  animation: topSignal 1.1s ease-in-out infinite alternate;
}

.console-top-mark i:nth-child(2n) { height: 14px; animation-delay: -.22s; }
.console-top-mark i:nth-child(3n) { height: 19px; animation-delay: -.47s; }
.console-top-mark i:nth-child(4n) { height: 11px; animation-delay: -.7s; }

.glass-rail {
  position: absolute;
  z-index: 2;
  height: 1px;
  border-radius: 10px;
  background: linear-gradient(90deg, transparent, rgba(153, 194, 255, .44), rgba(255, 200, 120, .2), transparent);
  opacity: .66;
}

.rail-top { top: 20%; left: 7%; width: 86%; }
.rail-bottom { bottom: 25%; left: 7%; width: 86%; opacity: .26; }

.logo-stage {
  position: absolute;
  z-index: 4;
  top: 52%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1.36 / 1;
  transform: translate(-50%, -50%) rotate(-2.5deg);
}

.logo-aura {
  position: absolute;
  inset: -19%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(57, 112, 241, .29), rgba(57, 112, 241, .07) 47%, transparent 70%);
  filter: blur(20px);
  animation: aura 4s ease-in-out infinite alternate;
}

.logo-card {
  position: absolute;
  inset: 7%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 18px;
  background: #e7e7e7;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, .48),
    0 0 0 6px rgba(111, 158, 248, .075),
    0 0 42px rgba(47, 101, 231, .2);
  transform: perspective(900px) rotateY(6deg);
}

.logo-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, .24), transparent 30%, transparent 76%, rgba(255, 255, 255, .1));
  content: "";
  pointer-events: none;
}

.logo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-reflection {
  position: absolute;
  right: 12%;
  bottom: -6%;
  left: 15%;
  height: 13%;
  background: linear-gradient(180deg, rgba(82, 142, 244, .2), transparent);
  filter: blur(12px);
  opacity: .5;
  transform: skewX(-16deg);
}

.air-lamp {
  position: absolute;
  z-index: 6;
  top: 11%;
  left: 51%;
  width: 10px;
  height: 10px;
  border: 2px solid #ffb6b6;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(244, 90, 99, .09), 0 0 24px rgba(244, 90, 99, .82);
  animation: pulse 1.65s ease-in-out infinite;
}

.air-lamp span {
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(244, 90, 99, .28);
  border-radius: 50%;
  animation: lampRing 1.65s ease-in-out infinite;
}

.live-badge {
  position: absolute;
  z-index: 8;
  top: 7%;
  right: 6%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #ffdede;
  border: 1px solid rgba(244, 90, 99, .32);
  border-radius: 999px;
  background: rgba(54, 16, 24, .58);
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  backdrop-filter: blur(10px);
}

.live-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(244, 90, 99, .12), 0 0 13px rgba(244, 90, 99, .8);
  animation: pulseDot 1.5s ease-in-out infinite;
}

.is-playing .live-badge {
  color: #fff;
  border-color: rgba(255, 120, 128, .56);
  background: rgba(101, 17, 28, .68);
  box-shadow: 0 0 22px rgba(244, 90, 99, .1), inset 0 1px rgba(255, 255, 255, .08);
}

.wave-panel {
  position: absolute;
  z-index: 3;
  top: 28%;
  right: 6%;
  width: 88%;
  height: 35%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  opacity: .46;
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 90%, transparent);
  transition: opacity .25s ease;
}

.is-playing .wave-panel { opacity: .9; }

.wave-line {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.wave-line i {
  display: block;
  width: 4px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--gold), var(--blue-light) 48%, var(--blue));
  box-shadow: 0 0 10px rgba(88, 139, 250, .62);
  animation: wave .8s ease-in-out infinite alternate;
}

.wave-line i:nth-child(2n) { height: 26px; animation-delay: -.19s; }
.wave-line i:nth-child(3n) { height: 42px; animation-delay: -.38s; }
.wave-line i:nth-child(4n) { height: 19px; animation-delay: -.52s; }
.wave-line i:nth-child(5n) { height: 34px; animation-delay: -.68s; }
.wave-line-two { opacity: .46; transform: translateX(-18px) scale(.8); }
.wave-line-three { opacity: .22; transform: translateX(-34px) scale(.62); }
.is-playing .wave-line i,
.is-playing .console-top-mark i { animation-duration: .4s; }

.player-now-playing {
  position: absolute;
  z-index: 6;
  top: 20%;
  left: 50%;
  width: min(360px, 42%);
  padding: 12px 15px 13px;
  overflow: hidden;
  border: 1px solid rgba(130, 171, 247, .2);
  border-left: 2px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(100deg, rgba(8, 17, 32, .89), rgba(8, 17, 32, .57));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .06);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(9px);
}

.player-now-playing small {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.player-now-playing strong {
  display: block;
  overflow: hidden;
  color: #f5f8ff;
  font: 700 16px/1.15 "Space Grotesk", Inter, ui-sans-serif, sans-serif;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-now-playing span {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-dots {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 24px;
  display: flex;
  gap: 5px;
}

.console-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #334563;
}

.is-playing .console-dots i:nth-child(-n+4) {
  background: var(--blue-light);
  box-shadow: 0 0 9px rgba(109, 154, 255, .88);
}

.is-playing .console-dots i:last-child {
  background: var(--red);
  box-shadow: 0 0 9px rgba(244, 90, 99, .82);
}

.control-dock {
  position: absolute;
  z-index: 7;
  bottom: 6%;
  left: 50%;
  width: min(360px, 44%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(160, 195, 255, .2);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(7, 16, 31, .78), rgba(23, 40, 68, .9), rgba(7, 16, 31, .78));
  box-shadow: 0 15px 34px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .09);
  transform: translateX(-50%);
  transition: width .22s ease;
  backdrop-filter: blur(14px);
}

.control-dock.volume-collapsed { width: min(240px, 44%); }

.dock-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #e4edff;
  border: 1px solid rgba(175, 204, 255, .22);
  border-radius: 50%;
  background: rgba(7, 18, 37, .82);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.dock-button { width: 36px; height: 36px; }
.volume-panel-toggle[aria-expanded="false"] { color: var(--blue-light); border-color: rgba(125, 169, 255, .55); background: rgba(54, 100, 207, .24); }

.dock-button:hover {
  color: #fff;
  border-color: rgba(210, 228, 255, .58);
  background: #4779ea;
  transform: scale(1.06);
}

.play-dock {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(205, 225, 255, .5);
  border-radius: 50%;
  background: linear-gradient(145deg, #5689f7, #2453ce);
  box-shadow: 0 8px 24px rgba(38, 91, 218, .48), inset 0 1px rgba(255, 255, 255, .3);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.play-dock:hover { border-color: rgba(210, 228, 255, .72); background: #4779ea; transform: scale(1.06); }
.dock-button svg { width: 17px; height: 17px; }
.play-dock svg { width: 22px; height: 22px; }
.play-dock .icon-play { margin-left: 3px; }
.icon-pause,
.icon-muted { display: none; }

.control-dock input {
  width: clamp(64px, 12vw, 132px);
  height: 4px;
  flex: 1 1 auto;
  appearance: none;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue-light) var(--progress, 82%), rgba(178, 204, 247, .23) var(--progress, 82%));
  cursor: pointer;
}

.control-dock input::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  appearance: none;
  border: 2px solid #d5e2ff;
  border-radius: 50%;
  background: var(--blue);
}

.control-dock input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 2px solid #d5e2ff;
  border-radius: 50%;
  background: var(--blue);
}

.volume-control {
  min-width: 0;
  flex: 1 1 auto;
}

.volume-control input { width: 100%; min-width: 0; }

.is-playing .logo-card {
  box-shadow: 0 24px 48px rgba(0, 0, 0, .48), 0 0 0 6px rgba(111, 158, 248, .11), 0 0 58px rgba(47, 101, 231, .38);
}

.is-playing .logo-aura { opacity: 1; }
.is-muted .icon-volume { display: none; }
.is-muted .icon-muted { display: block; }
.is-loading .logo-aura { animation: aura .8s ease-in-out infinite alternate; }

.station-brand {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
  padding: 0 5px;
}

.station-name {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  color: #e1eaff;
  font: 700 clamp(15px, 1.7vw, 20px)/1.1 "Space Grotesk", Inter, ui-sans-serif, sans-serif;
  letter-spacing: .2em;
  text-shadow: 0 0 18px rgba(92, 143, 255, .2);
}

.station-slogan {
  grid-column: 2;
  grid-row: 2;
  width: min(180px, 70vw);
  justify-self: center;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 231, 235, .92);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
}

.station-slogan-window {
  display: block;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  white-space: nowrap;
}

.station-slogan-track {
  display: flex;
  width: max-content;
  animation: stationSloganRoll 16s linear infinite;
}

.station-slogan-track > span {
  display: block;
  flex: 0 0 auto;
  padding-right: 28px;
}

.station-slogan:hover .station-slogan-track { animation-play-state: paused; }

.social-links {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #a9bcde;
  border: 1px solid rgba(131, 164, 222, .2);
  border-radius: 50%;
  background: rgba(14, 29, 54, .46);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.social-links a:hover {
  color: #fff;
  border-color: rgba(119, 164, 255, .68);
  background: rgba(48, 100, 224, .4);
  transform: translateY(-2px);
}

.social-links svg { width: 15px; height: 15px; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@keyframes page-red-flow {
  0% { background-position: 0% 0%, 100% 100%, 75% 0%, 0% 0%; }
  50% { background-position: 55% 40%, 40% 70%, 30% 55%, 0% 0%; }
  100% { background-position: 100% 75%, 0% 25%, 88% 100%, 0% 0%; }
}

@keyframes radio-red-flow {
  0% { background-position: 0% 45%, 100% 100%, 0% 0%; }
  50% { background-position: 70% 30%, 34% 65%, 0% 0%; }
  100% { background-position: 100% 75%, 0% 20%, 0% 0%; }
}

@keyframes red-aura-drift {
  from { transform: translate3d(-2%, 2%, 0) rotate(-19deg) scale(.92); opacity: .14; }
  to { transform: translate3d(3%, -4%, 0) rotate(-10deg) scale(1.12); opacity: .28; }
}


@keyframes pulse {
  0%, 100% { opacity: .62; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes pulseDot {
  0%, 100% { opacity: .58; transform: scale(.84); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes lampRing {
  0%, 100% { opacity: .18; transform: scale(.64); }
  50% { opacity: .72; transform: scale(1.16); }
}

@keyframes wave {
  from { transform: scaleY(.28); }
  to { transform: scaleY(1); }
}

@keyframes topSignal {
  from { opacity: .32; }
  to { opacity: 1; }
}

@keyframes aura {
  from { transform: scale(.92); opacity: .58; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes stationSloganRoll {
  to { transform: translateX(-50%); }
}

@media (max-width: 820px) {
  .radio-page { padding-right: 24px; padding-left: 24px; }
  .radio-player { min-height: 390px; }
  .logo-stage { top: 51%; left: 50%; width: 30%; transform: translate(-50%, -50%) rotate(-2.5deg); }
  .wave-panel { top: 28%; right: 5%; width: 90%; height: 35%; }
  .player-now-playing { top: 20%; left: 50%; width: min(350px, 48%); padding-right: 11px; padding-left: 12px; transform: translate(-50%, -50%); }
  .control-dock { width: min(360px, 54%); }
  .control-dock.volume-collapsed { width: min(240px, 54%); }
}

@media (max-width: 700px) {
  .radio-page {
    min-height: 100svh;
    justify-content: center;
    gap: 0;
    padding: 0 0 max(10px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .player-row { width: 100%; flex: 0 0 auto; }

  .radio-player {
    width: 100vw;
    height: clamp(380px, calc(100svh - 132px), 700px);
    min-height: 0;
    aspect-ratio: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 22px 22px;
  }

  .radio-player::before { border-radius: 0 0 21px 21px; }
  .console-noise { background-size: 44px 44px; }
  .console-top-mark { top: 7%; }
  .air-lamp { top: 8%; left: 10%; }
  .live-badge { top: 5%; right: 6%; padding: 7px 10px; font-size: 8px; }
  .rail-top { top: 19%; }
  .rail-bottom { bottom: 28%; }

  .logo-stage {
    top: 60%;
    left: 50%;
    width: min(72vw, 350px);
    aspect-ratio: 1.35 / 1;
    transform: translate(-50%, -50%) rotate(-2deg);
  }

  .logo-card { border-radius: 16px; }
  .wave-panel { top: 30%; right: 5%; width: 90%; height: 32%; opacity: .42; }
  .is-playing .wave-panel { opacity: .78; }
  .wave-line-two,
  .wave-line-three { display: none; }

  .player-now-playing {
    top: 29%;
    left: 50%;
    width: min(330px, 82%);
    padding: 9px 11px 10px;
    transform: translate(-50%, -50%);
  }

  .player-now-playing small { font-size: 7px; }
  .player-now-playing strong { font-size: 14px; }
  .player-now-playing span { font-size: 8px; }
  .control-dock { bottom: 7%; width: min(360px, 86%); gap: 10px; }
  .control-dock.volume-collapsed { width: min(240px, 86%); }
  .console-dots { right: 17px; bottom: 18px; }

  .station-brand {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 17px 14px 5px;
    text-align: center;
  }

  .station-name { grid-column: 1; grid-row: 1; justify-self: center; font-size: 14px; letter-spacing: .17em; }
  .station-slogan { grid-column: 1; grid-row: 2; width: min(180px, 70vw); }
  .social-links { grid-column: 1; grid-row: 3; justify-content: center; gap: 8px; margin-top: 5px; }
  .social-links a { width: 28px; height: 28px; }
  .social-links svg { width: 14px; height: 14px; }
}

@media (max-width: 360px) {
  .radio-player { height: clamp(360px, calc(100svh - 124px), 700px); }
  .control-dock { width: min(360px, 90%); gap: 8px; padding: 8px 10px; }
  .control-dock.volume-collapsed { width: min(240px, 90%); }
  .dock-button { width: 34px; height: 34px; }
  .play-dock { width: 46px; height: 46px; }
  .station-name { font-size: 12px; letter-spacing: .14em; }
}

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

  .station-slogan { width: auto; max-width: 100%; }
  .station-slogan-window { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .station-slogan-track { animation: none; }
  .station-slogan-track > span + span { display: none; }
}
