:root {
  --forest: #0b1930;
  --forest-soft: #142a4d;
  --amber: #0b1930;
  --amber-soft: #ffffff;
  --bg: #f4f5f7;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #0a0e16;
  --muted: #4c5566;
  --border: rgba(10, 14, 22, 0.14);
  --shadow-lg: 0 30px 90px rgba(10, 14, 22, 0.28);
  --shadow-md: 0 14px 36px rgba(10, 14, 22, 0.14);
  --focus-ring: 0 0 0 4px rgba(10, 14, 22, 0.25);
}

*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(224, 138, 62, 0.12), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(11, 61, 46, 0.14), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 1000;
  background: #fff; color: var(--forest); padding: 0.75rem 1rem;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.2rem 0 1rem;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.site-logo { height: 46px; width: auto; }

.social-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: flex-end; }
.social-link {
  width: 2.5rem; height: 2.5rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--forest);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(11, 61, 46, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.social-link:hover { transform: translateY(-2px); background: var(--forest); color: #fff; }

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1rem 0;
}

.hero-block { text-align: center; max-width: 640px; }
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.main-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--forest);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  text-wrap: balance;
}

.player-card {
  width: min(100%, 440px);
  border-radius: 2.2rem;
  background: linear-gradient(160deg, var(--forest) 0%, #030711 100%);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 68%);
  pointer-events: none;
}

.live-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--amber-soft);
}

.live-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: pulseDot 1.8s infinite;
}

.track-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.track-name {
  margin: 0.6rem 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
}

.player-status {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.divider {
  width: 100%; height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 1rem 0 0.9rem;
}

.equalizer {
  display: flex; justify-content: center; align-items: end;
  gap: 0.35rem; height: 34px; margin-bottom: 1rem; opacity: 0.5;
  transition: opacity 0.25s ease;
}
.eq-bar {
  width: 5px; height: 10px; border-radius: 999px;
  background: var(--amber-soft);
  animation: equalizerIdle 1.6s ease-in-out infinite;
}
.eq-bar:nth-child(2) { animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-delay: 0.3s; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; }
.eq-bar:nth-child(6) { animation-delay: 0.5s; }
.eq-bar:nth-child(7) { animation-delay: 0.6s; }

.player-card.is-playing .equalizer { opacity: 1; }
.player-card.is-playing .eq-bar { animation: equalizerLive 0.9s ease-in-out infinite; }

.controls { display: flex; justify-content: center; align-items: center; }
.play-btn {
  width: 4.6rem; height: 4.6rem; border: 0; border-radius: 999px;
  background: #ffffff; color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 16px 34px rgba(10, 14, 22, 0.35);
  transition: transform 0.2s ease;
}
.play-btn:hover { transform: scale(1.04); }
.play-btn:active { transform: scale(0.98); }
.play-btn.is-loading { opacity: 0.85; cursor: progress; }

.volume-control {
  width: min(100%, 220px);
  margin: 0.9rem auto 0;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.volume-control i { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
#volumeSlider {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.7); outline: none; cursor: pointer;
}
#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--amber); border: 2px solid #fff; margin-top: -4.5px; cursor: pointer;
}
#volumeSlider::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--amber); border: 2px solid #fff; cursor: pointer;
}

.install-wrap { display: flex; justify-content: center; margin-top: 0.2rem; }
.install-btn {
  border: 0; border-radius: 999px;
  background: var(--surface); color: var(--forest);
  padding: 0.8rem 1.1rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; box-shadow: var(--shadow-md);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes equalizerIdle {
  0%, 100% { height: 10px; opacity: 0.45; }
  50% { height: 17px; opacity: 0.7; }
}
@keyframes equalizerLive {
  0% { height: 10px; } 20% { height: 34px; } 40% { height: 16px; }
  60% { height: 40px; } 80% { height: 20px; } 100% { height: 28px; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 1rem, 100%); }
  .site-header { flex-direction: column; gap: 0.8rem; }
  .social-nav { justify-content: center; }
  .player-card { width: 100%; padding: 1.2rem 1rem 1.3rem; }
}

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