:root {
  color-scheme: dark;
  --bg: #09101d;
  --bg-soft: #121d34;
  --card: rgba(10, 16, 29, 0.78);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #f6f8ff;
  --muted: #a7b3ca;
  --accent: #33d1ff;
  --accent-strong: #0fb7f3;
  --accent-soft: rgba(51, 209, 255, 0.2);
  --danger: #ff5f72;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(51, 209, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 95, 114, 0.16), transparent 28%),
    linear-gradient(135deg, #09101d 0%, #0e1729 44%, #162443 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}

.page-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 32px 20px 16px;
}

.hero-card {
  width: min(1120px, 100%);
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.live-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 95, 114, 0.55);
  animation: livePulse 1.8s infinite;
}

.hero-copy h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.player-visual {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  padding: 34px 34px 22px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(4, 7, 18, 0.92) 0%, rgba(10, 16, 29, 0.82) 100%),
    linear-gradient(120deg, rgba(51, 209, 255, 0.12), rgba(255, 95, 114, 0.12));
}

.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.55;
  z-index: -1;
}

.glow-left {
  left: -40px;
  top: -50px;
  background: rgba(51, 209, 255, 0.26);
}

.glow-right {
  right: -50px;
  bottom: -90px;
  background: rgba(255, 95, 114, 0.22);
}

.logo {
  width: min(100%, 440px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
  transform: translateY(0);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.logo.playing {
  animation: floatPulse 3s ease-in-out infinite;
}

.visual-overlay {
  position: absolute;
  inset: auto 34px 18px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  height: 72px;
  pointer-events: none;
}

.visual-overlay span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(51, 209, 255, 0.95), rgba(255, 95, 114, 0.25));
  box-shadow: 0 0 24px rgba(51, 209, 255, 0.18);
  animation: equalizer 1.3s ease-in-out infinite;
  transform-origin: bottom;
  opacity: 0.92;
}

.visual-overlay span:nth-child(1) { height: 22px; animation-delay: 0s; }
.visual-overlay span:nth-child(2) { height: 56px; animation-delay: 0.18s; }
.visual-overlay span:nth-child(3) { height: 34px; animation-delay: 0.06s; }
.visual-overlay span:nth-child(4) { height: 62px; animation-delay: 0.28s; }
.visual-overlay span:nth-child(5) { height: 28px; animation-delay: 0.12s; }

.player-body {
  padding: 28px;
}

.player-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.player-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.status-badge.playing {
  color: var(--text);
  background: rgba(51, 209, 255, 0.12);
  border-color: rgba(51, 209, 255, 0.28);
}

.status-badge.error {
  color: #ffd7dc;
  background: rgba(255, 95, 114, 0.12);
  border-color: rgba(255, 95, 114, 0.3);
}

.controls-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.play-button {
  position: relative;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 32px rgba(15, 183, 243, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 36px rgba(15, 183, 243, 0.38);
}

.play-button:focus-visible,
.volume:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.play-icon,
.play-icon::before,
.play-icon::after {
  position: absolute;
  inset: 0;
  margin: auto;
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #041322;
  transform: translateX(4px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.play-button.is-playing .play-icon {
  width: 22px;
  height: 22px;
  border: 0;
  transform: none;
  background: linear-gradient(
    90deg,
    #041322 0 34%,
    transparent 34% 66%,
    #041322 66% 100%
  );
}

.play-button.is-playing .play-icon::before,
.play-button.is-playing .play-icon::after {
  content: none;
}

.track-meta {
  display: grid;
  gap: 12px;
}

.track-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.track-topline strong {
  font-size: 1.02rem;
}

.track-topline span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-rail {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 18px rgba(51, 209, 255, 0.34);
  transform: translateX(0);
}

.progress-bar.is-animated {
  animation: streamFlow 2.2s linear infinite;
}

.volume-wrap {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
}

.volume {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.support-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding: 16px 20px 22px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 114, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 95, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 114, 0); }
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
  }
  50% {
    transform: translateY(-8px);
    filter: drop-shadow(0 18px 36px rgba(51, 209, 255, 0.24));
  }
}

@keyframes equalizer {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

@keyframes streamFlow {
  from { transform: translateX(-120%); }
  to { transform: translateX(560%); }
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 20px;
  }

  .player-visual {
    min-height: 220px;
    padding: 26px 20px 18px;
  }

  .player-body {
    padding: 22px 18px;
  }

  .controls-row {
    grid-template-columns: 1fr;
  }

  .play-button {
    justify-self: center;
  }

  .track-topline {
    justify-content: center;
  }
}

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