:root {
  color-scheme: dark;
  --bg: #111314;
  --panel: #1b2024;
  --panel-strong: #22282d;
  --text: #f5f1e8;
  --muted: #aeb7bb;
  --accent: #ff2f92;
  --accent-2: #32d4ff;
  --accent-3: #8d5cff;
  --line: rgba(245, 241, 232, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 24% 12%, rgba(50, 212, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(255, 47, 146, 0.2), transparent 30%),
    linear-gradient(135deg, #111314 0%, #182024 48%, #151716 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: center;
  padding: clamp(18px, 4vw, 56px);
}

.player-panel,
.equalizer-panel {
  background: rgba(27, 32, 36, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.station-strip {
  grid-column: 1 / -1;
  background: rgba(16, 19, 28, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.strip-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.station-card {
  position: relative;
  min-height: 124px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.14);
  background: #10131c;
}

.station-card img {
  width: 100%;
  height: 100%;
  min-height: 124px;
  display: block;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.88);
  transition: transform 220ms ease, filter 220ms ease;
}

.station-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.station-card span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.station-card.is-active {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(50, 212, 255, 0.15), 0 0 34px rgba(50, 212, 255, 0.22);
}

.station-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.2) brightness(1);
}

.player-panel {
  min-height: 620px;
  padding: clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.player-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 68%);
  pointer-events: none;
}

.brand-copy,
.hero-photo,
.controls,
.status-line,
.equalizer-panel > *,
.vu-meters {
  position: relative;
  z-index: 1;
}

.brand-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 5.6vw, 4.7rem);
  line-height: 0.96;
  text-transform: none;
}

h2 {
  font-size: 1.35rem;
}

.hero-photo {
  margin: 10px 0 4px;
}

.hero-photo img {
  width: 100%;
  height: clamp(190px, 28vw, 320px);
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.vu-meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
  margin: 8px 0 18px;
}

.vu-meter {
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    radial-gradient(circle at 50% 112%, rgba(255, 47, 146, 0.35), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(180deg, #27313b 0%, #111821 42%, #070a0f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -28px 42px rgba(0, 0, 0, 0.65),
    0 14px 32px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(50, 212, 255, 0.16);
}

.vu-meter::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 24px;
  height: 108px;
  border-radius: 50% 50% 0 0;
  background:
    conic-gradient(from 235deg at 50% 100%, #1df28d 0deg, #1df28d 38deg, #ffe45c 62deg, #ff2f92 88deg, transparent 90deg),
    radial-gradient(circle at 50% 100%, transparent 0 63%, rgba(255, 255, 255, 0.9) 64% 66%, transparent 67%);
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 0 56%, #000 57% 69%, transparent 70%);
  mask: radial-gradient(circle at 50% 100%, transparent 0 56%, #000 57% 69%, transparent 70%);
  filter: drop-shadow(0 0 16px rgba(29, 242, 141, 0.35));
}

.vu-meter::after {
  content: "VU";
  position: absolute;
  left: 14px;
  bottom: 10px;
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.vu-scale {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 22px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(50, 212, 255, 0.45);
}

.vu-needle {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 3px;
  height: 112px;
  background: linear-gradient(180deg, #ff2f92 0%, #fff 18%, #ff2f92 100%);
  border-radius: 999px;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(var(--needle-angle, -36deg));
  transition: transform 80ms ease-out;
  box-shadow: 0 0 14px rgba(255, 47, 146, 0.78);
}

.vu-pivot {
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #fff 0%, #32d4ff 24%, #13263d 64%, #05070a 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 18px rgba(50, 212, 255, 0.52);
}

.vu-meter strong {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(255, 47, 146, 0.7);
}

.status-line {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6a7378;
}

.live-dot.is-live {
  background: var(--accent-2);
  box-shadow: 0 0 0 7px rgba(47, 191, 143, 0.14);
}

.controls {
  display: grid;
  grid-template-columns: 86px 56px minmax(160px, 1fr);
  gap: 16px;
  align-items: center;
}

.native-player {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 18px;
  accent-color: var(--accent-2);
}

.play-button,
.icon-button,
form button {
  border: 0;
  color: #101313;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.play-button {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
}

.icon-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f5f1e8;
  display: grid;
  place-items: center;
}

.play-button:hover,
.icon-button:hover,
form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.play-symbol {
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 23px solid #fff;
  margin-left: 5px;
}

.play-button.is-playing .play-symbol {
  width: 24px;
  height: 30px;
  border: 0;
  margin-left: 0;
  display: grid;
  grid-template-columns: 8px 8px;
  gap: 8px;
}

.play-button.is-playing .play-symbol::before,
.play-button.is-playing .play-symbol::after {
  content: "";
  background: #fff;
  border-radius: 2px;
}

.speaker-symbol {
  width: 28px;
  height: 24px;
  position: relative;
  display: block;
}

.speaker-symbol::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 9px;
  height: 10px;
  background: #101313;
  border-radius: 2px;
  box-shadow: 9px -5px 0 -2px #101313, 9px 5px 0 -2px #101313;
}

.speaker-symbol::after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 11px;
  height: 18px;
  border: 3px solid #101313;
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

.speaker-symbol.is-muted::after {
  width: 27px;
  height: 3px;
  top: 10px;
  right: -2px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  transform: rotate(-42deg);
}

.volume-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

input[type="range"] {
  accent-color: var(--accent-2);
}

.equalizer-panel {
  padding: 26px;
  min-height: 620px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  overflow: hidden;
  position: relative;
}

.equalizer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(50, 212, 255, 0.13), transparent 38%),
    linear-gradient(0deg, rgba(255, 47, 146, 0.16), transparent 44%);
  pointer-events: none;
}

.equalizer-header {
  text-align: right;
}

.equalizer-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.social-row {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.dancing-girl {
  width: min(100%, 310px);
  height: 180px;
  margin: 16px 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.22);
  background: #10131c;
  box-shadow: 0 12px 26px rgba(50, 212, 255, 0.2);
  perspective: 700px;
}

.dancing-girl img {
  width: 132%;
  height: 116%;
  object-fit: cover;
  object-position: 45% 45%;
  transform-origin: 46% 46%;
  transform: translateX(-11%) translateY(-5%) scale(0.92);
  filter: saturate(1.15) contrast(1.05);
  animation: popForward 2.2s ease-in-out infinite;
}

.facebook-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: #1877f2;
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.24);
  transition: transform 180ms ease, filter 180ms ease;
}

.facebook-link span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.facebook-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.ad-panel {
  display: grid;
  gap: 10px;
}

.ad-panel h3 {
  margin: 0;
  color: var(--accent-3);
  text-align: right;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.ad-frame {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.ad-frame img {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
  transition: opacity 220ms ease, transform 220ms ease;
}

.ad-frame img.is-changing {
  opacity: 0;
  transform: scale(0.98);
}

.equalizer-caption {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.side-equalizer {
  height: 100%;
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(18, minmax(7px, 1fr));
  align-items: end;
  gap: 8px;
  padding: 18px 2px 6px;
}

.eq-bar {
  min-height: 24px;
  height: var(--bar-height, 30%);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bar-color, var(--accent-2)) 38%, #101323 100%);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--bar-color, var(--accent-2)) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: height 120ms ease;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes danceMove {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg) scale(1);
  }
  35% {
    transform: translateY(-5px) rotate(3deg) scale(1.03);
  }
  65% {
    transform: translateY(1px) rotate(-4deg) scale(1.01);
  }
}

@keyframes popForward {
  0%,
  100% {
    transform: translateX(-11%) translateY(-5%) scale(0.9);
    filter: saturate(1.05) contrast(1);
  }
  45% {
    transform: translateX(-11%) translateY(-5%) scale(1.12);
    filter: saturate(1.24) contrast(1.08) brightness(1.08);
  }
  62% {
    transform: translateX(-11%) translateY(-5%) scale(1.04);
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .player-panel,
  .equalizer-panel {
    min-height: 600px;
  }

  .controls {
    grid-template-columns: 76px 52px 1fr;
  }

  .play-button {
    width: 76px;
    height: 76px;
  }

  .vu-meters {
    grid-template-columns: 1fr;
  }

  .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 14px;
    gap: 14px;
  }

  .player-panel,
  .equalizer-panel {
    padding: 20px;
  }

  .brand-copy {
    text-align: center;
  }

  .controls {
    grid-template-columns: 72px 52px;
  }

  .volume-control {
    grid-column: 1 / -1;
  }

  .side-equalizer {
    min-height: 240px;
  }

  .strip-heading {
    display: grid;
  }

  .station-grid {
    grid-template-columns: 1fr;
  }
}
