﻿:root {
  --bg-main: #07050f;
  --bg-deep: #140817;
  --panel: rgba(14, 10, 25, 0.84);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8f7ff;
  --muted: #bbb7d0;
  --pink: #ff4fa7;
  --pink-strong: #ff2b96;
  --cyan: #3be0ff;
  --lime: #cbff4d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 100dvh;
  position: relative;
  background-color: var(--bg-main);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1300px 840px at -6% -15%, rgba(44, 12, 63, 0.6) 0%, transparent 58%),
    radial-gradient(980px 650px at 110% 8%, rgba(3, 64, 90, 0.56) 0%, transparent 55%),
    linear-gradient(rgba(8, 5, 16, 0.52), rgba(8, 5, 16, 0.52)),
    url("https://media.rockstargames.com/rockstargames/img/global/news/upload/10_gtavpc_03272015.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: screen, screen, multiply, normal;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.13;
  background-image: radial-gradient(rgba(255, 255, 255, 0.36) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
}

.radio-shell {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  padding: 30px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(125deg, rgba(255, 79, 167, 0.08), rgba(59, 224, 255, 0.08)),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 65px rgba(3, 0, 15, 0.7);
  animation: shell-in 520ms cubic-bezier(0.2, 0.7, 0.15, 1) both;
}

.radio-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 79, 167, 0.14), transparent 38%, rgba(59, 224, 255, 0.16));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

@keyframes shell-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.station-head {
  margin-bottom: 20px;
}

.station-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.chip {
  margin: 0;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.15rem, 5.8vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 79, 167, 0.35);
}

h1 span {
  color: var(--lime);
}

.station-title-row h1 {
  flex: 1;
  max-width: 560px;
}

.station-logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.station-logo {
  position: relative;
  z-index: 1;
  width: clamp(78px, 9.5vw, 106px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.live-hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.on-air-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 26, 0.64);
}

.on-air-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d8d6e6;
  background: rgba(255, 255, 255, 0.05);
}

.live-pill[data-live="true"] {
  color: #1a0b12;
  border-color: rgba(255, 43, 150, 0.2);
  background: linear-gradient(120deg, var(--pink), #ff84bf);
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 22px;
}

.equalizer span {
  width: 4px;
  height: 5px;
  border-radius: 999px;
  background: var(--cyan);
  animation: bounce 0.95s ease-in-out infinite;
  animation-play-state: paused;
}

.equalizer span:nth-child(2) { animation-delay: 0.08s; }
.equalizer span:nth-child(3) { animation-delay: 0.16s; }
.equalizer span:nth-child(4) { animation-delay: 0.24s; }
.equalizer span:nth-child(5) { animation-delay: 0.32s; }

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

@keyframes bounce {
  0%, 100% { height: 5px; }
  50% { height: 22px; }
}

.controls {
  display: flex;
  gap: 10px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  min-width: min(318px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 26, 0.64);
  box-shadow: none;
}

.volume-mute {
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.volume-mute:hover {
  background: rgba(255, 255, 255, 0.14);
}

.volume-mute:focus,
.volume-mute:focus-visible {
  outline: none;
  box-shadow: none;
}

.volume-mute[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.18);
}

.volume-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  line-height: 1;
  filter: none;
}

.volume-slider {
  flex: 1;
  min-width: 120px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.75) var(--volume-progress, 100%),
    rgba(255, 255, 255, 0.24) var(--volume-progress, 100%),
    rgba(255, 255, 255, 0.24) 100%
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5f6ff;
  cursor: pointer;
  border: 0;
  box-shadow: none;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5f6ff;
  cursor: pointer;
  border: 0;
  box-shadow: none;
}

.volume-slider::-moz-range-track {
  background: transparent;
  border: 0;
}

.volume-slider:focus,
.volume-slider:focus-visible {
  outline: none;
  box-shadow: none;
}

.volume-value {
  min-width: 42px;
  text-align: right;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(59, 224, 255, 0.35);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  padding: 10px 16px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, filter 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 90%;
  height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px) scale(1.015);
  filter: saturate(1.15);
}

.btn:hover::before {
  left: 145%;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn:focus-visible,
.track-picker-btn:focus-visible,
#enterLiveBtn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.btn-main {
  color: #f9faff;
  background: linear-gradient(135deg, #2e3d66, #151f3b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-live {
  color: #1e0712;
  background: linear-gradient(135deg, var(--pink-strong), #ff7ac4);
  box-shadow: 0 8px 22px rgba(255, 43, 150, 0.35);
}

.btn-live.is-live {
  box-shadow: 0 0 20px rgba(255, 79, 167, 0.55), 0 0 40px rgba(255, 79, 167, 0.28);
  animation: live-pulse 1.45s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.now-playing {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 26, 0.45);
}

.np-label {
  margin: 0 0 3px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.np-title,
.np-next {
  margin: 0;
}

.np-title {
  font-weight: 700;
}

.np-next {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
}

.jump-track {
  margin-top: 18px;
}

.jump-track label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.station-picker {
  position: relative;
}

.track-picker-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: linear-gradient(125deg, rgba(255, 79, 167, 0.12), rgba(59, 224, 255, 0.14));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s ease, box-shadow 0.24s ease, background 0.28s ease, transform 0.2s ease;
}

.track-picker-btn:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: linear-gradient(125deg, rgba(255, 79, 167, 0.2), rgba(59, 224, 255, 0.2));
  transform: translateY(-1px);
}

.track-picker-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.station-picker.is-open .track-picker-btn {
  border-color: rgba(59, 224, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(59, 224, 255, 0.24);
}

.picker-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.station-picker.is-open .picker-chevron {
  transform: rotate(-135deg);
}

.picker-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 15;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 9, 21, 0.96);
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: dropdown-in 180ms ease;
}

.station-picker.drop-up .picker-dropdown {
  top: auto;
  bottom: calc(100% + 8px);
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.track-list {
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: min(210px, 34vh);
  overflow-y: auto;
}

.track-list::-webkit-scrollbar {
  width: 10px;
}

.track-list::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink), var(--cyan));
  border-radius: 999px;
  border: 2px solid rgba(10, 9, 21, 0.96);
}

.track-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e9e6ff;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.17s ease, color 0.17s ease, transform 0.17s ease;
}

.track-option:hover,
.track-option.is-active {
  background: linear-gradient(120deg, rgba(255, 79, 167, 0.26), rgba(59, 224, 255, 0.2));
  color: #fff;
  transform: translateX(2px);
}

.track-option.is-selected {
  box-shadow: inset 0 0 0 1px rgba(203, 255, 77, 0.45);
}

.legal-footer {
  margin-top: 14px;
  padding: 11px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  font-size: 0.84rem;
  color: #b8b2cd;
  display: grid;
  gap: 8px;
}

.legal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.legal-identity {
  display: grid;
  gap: 4px;
}

.legal-station {
  margin: 0;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9a3bf;
}

.legal-author {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.1rem;
  line-height: 1;
  color: #f6f4ff;
}

.legal-disclaimer {
  margin: 0;
  max-width: 56ch;
  line-height: 1.45;
  color: #bbb5cf;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 0 auto;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  color: #d1f8ff;
  text-decoration: none;
  border: 1px solid rgba(59, 224, 255, 0.35);
  background: rgba(59, 224, 255, 0.1);
  border-radius: 999px;
  padding: 5px 10px;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.legal-nav a:hover {
  color: #f2fcff;
  border-color: rgba(141, 238, 255, 0.9);
  background: rgba(141, 238, 255, 0.22);
  transform: translateY(-1px);
}

.legal-note {
  margin: 0;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9f99b5;
}

.live-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(2, 1, 8, 0.76);
  backdrop-filter: blur(6px);
}

.live-gate.hidden {
  display: none;
}

.live-gate-card {
  width: min(460px, 100%);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 10, 24, 0.94);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.live-gate-card h2 {
  margin: 10px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.gate-text {
  margin: 0 0 16px;
  color: var(--muted);
}

.projects-prompt {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: min(440px, calc(100% - 28px));
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(140deg, rgba(8, 13, 30, 0.95), rgba(12, 9, 26, 0.95));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52);
  animation: prompt-in 260ms ease-out both;
}

.projects-prompt h2 {
  margin: 6px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #8dff6a;
  text-transform: uppercase;
}

.projects-prompt p {
  margin: 0;
  color: #dcdef1;
}

.projects-prompt-chip {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ced2ea;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.projects-prompt-actions .btn {
  text-decoration: none;
  text-align: center;
  min-width: 0;
  flex: 1;
}

.projects-prompt-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  color: #e5e8f8;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.projects-prompt-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.projects-prompt-close:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

@keyframes prompt-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .radio-shell {
    max-height: calc(100dvh - 28px);
    padding: 20px;
  }

  .on-air-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .volume-slider {
    min-width: 100px;
  }

  .station-logo {
    width: clamp(56px, 16vw, 82px);
  }

  .picker-dropdown {
    top: calc(100% + 6px);
  }

  .station-picker.drop-up .picker-dropdown {
    top: auto;
    bottom: calc(100% + 6px);
  }

  .track-list {
    max-height: min(170px, 32vh);
    padding: 5px;
  }

  .track-option {
    padding: 8px 9px;
    font-size: 0.9rem;
  }

  .legal-footer {
    margin-top: 16px;
    padding: 12px;
  }

  .legal-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legal-nav {
    margin: 0;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
  }

  .legal-nav a {
    min-width: 0;
  }

  .projects-prompt {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 16px 14px 14px;
  }

  .projects-prompt h2 {
    font-size: 1.65rem;
  }

  .projects-prompt-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
