:root {
  --bg-deep: #0a1a33;
  --bg-mid: #0d2247;
  --bg-card: rgba(15, 38, 74, 0.72);
  --line: rgba(102, 194, 255, 0.18);
  --text: #e8f2ff;
  --muted: #95aecd;
  --accent: #3aa0ff;
  --accent-soft: #66c2ff;
  --ok: #35d07f;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(2, 10, 24, 0.55);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, #12356b 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 10%, #0f3d73 0%, transparent 55%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 55%, #081426 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  width: 420px; height: 420px;
  left: -160px; top: 22%;
  background: rgba(58, 160, 255, 0.16);
}
.glow-b {
  width: 520px; height: 520px;
  right: -220px; bottom: -120px;
  background: rgba(102, 194, 255, 0.10);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px 8px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--accent-soft); font-weight: 600; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(9, 26, 51, 0.6);
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5a7290;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.live-badge.is-live .live-dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(53, 208, 127, 0.16);
  animation: pulse 2.2s ease-in-out infinite;
}
.live-badge.is-live { color: #b9f5d7; border-color: rgba(53, 208, 127, 0.35); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.hero {
  text-align: center;
  padding: 56px 0 38px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7.2vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  background: linear-gradient(100deg, #ffffff 8%, #a9d8ff 52%, #3aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.subtitle {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.player {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 49, 94, 0.78), rgba(9, 26, 51, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.wave-wrap {
  position: relative;
  height: 190px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(600px 180px at 50% 120%, rgba(58, 160, 255, 0.18), transparent 70%),
    #091c37;
  border: 1px solid rgba(102, 194, 255, 0.12);
}

#waves {
  display: block;
  width: 100%;
  height: 100%;
}

.play-fab {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #04182e;
  background: linear-gradient(160deg, var(--accent-soft), var(--accent));
  box-shadow: 0 12px 34px rgba(58, 160, 255, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.play-fab:hover { transform: translate(-50%, -50%) scale(1.05); }
.play-fab:active { transform: translate(-50%, -50%) scale(0.97); }
.play-fab:focus-visible { outline: 3px solid #ffffff; outline-offset: 4px; }

.play-fab svg { width: 30px; height: 30px; fill: currentColor; }
.play-fab .icon-pause { display: none; }
.play-fab.is-playing .icon-play { display: none; }
.play-fab.is-playing .icon-pause { display: block; }

.player-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 4px 6px;
}

.meta-label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-value {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #d9ecff;
}

.quality {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  border: 1px solid rgba(102, 194, 255, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

audio {
  width: 100%;
  margin-top: 14px;
  height: 46px;
  border-radius: 12px;
  background: transparent;
  color-scheme: dark;
}
audio::-webkit-media-controls-panel {
  background: rgba(13, 34, 71, 0.95);
}

.hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.hint.is-error { color: #ff9b9b; }

.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}

.info article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 28, 56, 0.55);
}

.info h2 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #cfe7ff;
}

.info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 34px;
  border-top: 1px solid rgba(102, 194, 255, 0.1);
  font-size: 0.8rem;
  color: #6f89a8;
}

@media (max-width: 820px) {
  .info { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; }
  .hero { padding: 38px 0 30px; }
  .player { padding: 16px; border-radius: 16px; }
  .wave-wrap { height: 150px; }
  .play-fab { width: 62px; height: 62px; }
  .play-fab svg { width: 25px; height: 25px; }
}

@media (max-width: 480px) {
  .site-header { padding: 18px 16px 4px; }
  main { padding: 12px 16px 48px; }
  .player-meta { padding: 16px 2px 4px; }
  .quality { display: none; }
  .site-footer { padding: 20px 16px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-badge.is-live .live-dot { animation: none; }
  .play-fab { transition: none; }
}
