/* ============================================================
   UWEZO RADIO - Main Stylesheet
   Brand: Light Green (#4CAF50) + Orange (#FF6B35)
   Font: Poppins (headings) + Inter (body)
   ============================================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --green-50:  #f0faf0;
  --green-100: #d4edda;
  --green-200: #a8dbb3;
  --green-400: #5ac465;
  --green-500: #4CAF50;
  --green-600: #3d9140;
  --green-700: #2e7031;
  --green-800: #1e4f22;

  --orange-50:  #fff5f0;
  --orange-100: #fde3d4;
  --orange-300: #ffaa80;
  --orange-400: #ff8555;
  --orange-500: #FF6B35;
  --orange-600: #e55520;
  --orange-700: #c44018;

  --teal-400: #26C6DA;
  --teal-500: #00ACC1;
  --teal-600: #00838F;

  /* Neutrals */
  --gray-50:  #f8faf8;
  --gray-100: #f0f4f0;
  --gray-200: #e2e8e2;
  --gray-300: #c8d3c8;
  --gray-400: #9aaa9a;
  --gray-500: #6b7c6b;
  --gray-600: #4a5a4a;
  --gray-700: #2d3d2d;
  --gray-800: #1a2a1a;
  --gray-900: #0d170d;

  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-green: 0 8px 24px rgba(76,175,80,0.30);
  --shadow-orange: 0 8px 24px rgba(255,107,53,0.30);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2rem);
  --nav-height: 72px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
}

/* ── Accessibility ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--green-500);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Typography Utilities ── */
.text-gradient {
  background: linear-gradient(135deg, var(--green-500), var(--orange-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-link {
  color: var(--green-600);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}
.text-link:hover {
  color: var(--orange-500);
}

/* ── Live Dot ── */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  flex-shrink: 0;
}
.live-dot--pulse {
  box-shadow: 0 0 0 0 rgba(255,59,48,0);
  background: rgba(255,59,48,0.35);
  transition: background 0.3s;
}

body.playing .live-dot--pulse {
  background: #ff3b30;
  animation: pulse-dot 1.8s infinite;
}

body.playing .live-dot {
  background: #ff3b30;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(255,59,48,0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(255,59,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    transform var(--transition-fast),
    box-shadow var(--transition-normal);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  box-shadow: 0 10px 28px rgba(76,175,80,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--green-600);
  border-color: var(--green-600);
}
.btn-outline:hover {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
}

.btn-white {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--green-50);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Section Shared Styles ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12);
}

.section-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.section-tag--light {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.section-subtitle--light {
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar {
  position: relative;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-4);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.logo-wave {
  display: block;
  width: 5px;
  border-radius: var(--radius-full);
  background: var(--green-500);
}

.logo-mark .logo-wave:nth-child(1) { height: 16px; animation: wave-logo 1.4s ease-in-out infinite; }
.logo-mark .logo-wave:nth-child(2) { height: 26px; background: var(--orange-500); animation: wave-logo 1.4s ease-in-out 0.2s infinite; }
.logo-mark .logo-wave:nth-child(3) { height: 20px; animation: wave-logo 1.4s ease-in-out 0.4s infinite; }

.logo-mark--small .logo-wave:nth-child(1) { height: 12px; }
.logo-mark--small .logo-wave:nth-child(2) { height: 20px; }
.logo-mark--small .logo-wave:nth-child(3) { height: 15px; }

@keyframes wave-logo {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(1.35); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--green-500);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-600);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
}

.nav-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  padding: var(--space-2);
}

.hamburger:hover {
  background: var(--gray-100);
}

.hamburger-line {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-4) var(--container-pad);
  box-shadow: var(--shadow-md);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover {
  background: var(--green-50);
  color: var(--green-600);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--green-800) 0%, var(--green-700) 40%, var(--green-600) 100%);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--orange-500);
  top: -200px;
  right: -100px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--green-400);
  bottom: -150px;
  left: -80px;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-16);
  padding-top: var(--space-16);
  padding-bottom: calc(var(--space-20) + 60px);
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  width: fit-content;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-heading .text-gradient {
  background: linear-gradient(135deg, #a8ff80, var(--orange-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.80);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero-actions .btn-primary {
  background: var(--orange-500);
  border-color: var(--orange-500);
  box-shadow: var(--shadow-orange);
}
.hero-actions .btn-primary:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  box-shadow: 0 10px 28px rgba(255,107,53,0.45);
}

.hero-actions .btn-outline {
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.35);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.60);
  color: var(--white);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* Radio illustration */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-illustration {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sonar rings — static at rest, expand outward when playing */
.sonar-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
}

.sonar-ring-1 { width: 130px; height: 130px; }
.sonar-ring-2 { width: 200px; height: 200px; }
.sonar-ring-3 { width: 280px; height: 280px; }

.sonar-ring-1 { animation: sonar-expand 2.4s ease-out infinite 0s; }
.sonar-ring-2 { animation: sonar-expand 2.4s ease-out infinite 0.8s; }
.sonar-ring-3 { animation: sonar-expand 2.4s ease-out infinite 1.6s; }

@keyframes sonar-expand {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Play / Pause button */
.radio-icon-btn {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.35);
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(4px);
}

.radio-icon-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.06);
}

.radio-icon-btn:active {
  transform: scale(0.97);
}

.radio-icon-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 4px;
}

.radio-icon-btn svg {
  width: 56px;
  height: 56px;
  display: block;
}

.sound-bars {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.sound-bar {
  display: block;
  width: 7px;
  background: rgba(255,255,255,0.55);
  border-radius: 4px 4px 2px 2px;
  transform-origin: bottom center;
  transform: scaleY(0.3);
  opacity: 0.4;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.sound-bar:nth-child(1) { height: 16px; }
.sound-bar:nth-child(2) { height: 26px; }
.sound-bar:nth-child(3) { height: 36px; }
.sound-bar:nth-child(4) { height: 22px; }
.sound-bar:nth-child(5) { height: 38px; }
.sound-bar:nth-child(6) { height: 20px; }
.sound-bar:nth-child(7) { height: 14px; }

body.playing .sound-bar {
  animation: sound-wave 1.0s ease-in-out infinite;
  opacity: 0.9;
}
body.playing .sound-bar:nth-child(1) { animation-delay: 0.00s; }
body.playing .sound-bar:nth-child(2) { animation-delay: 0.12s; }
body.playing .sound-bar:nth-child(3) { animation-delay: 0.24s; }
body.playing .sound-bar:nth-child(4) { animation-delay: 0.08s; }
body.playing .sound-bar:nth-child(5) { animation-delay: 0.36s; }
body.playing .sound-bar:nth-child(6) { animation-delay: 0.18s; }
body.playing .sound-bar:nth-child(7) { animation-delay: 0.30s; }

@keyframes sound-wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1);   opacity: 1;   }
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* ============================================================
   LIVE PLAYER SECTION
   ============================================================ */
.player-section {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--gray-50);
}

.player-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  max-width: 780px;
  margin: 0 auto;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  gap: var(--space-4);
}

.player-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(255,59,48,0.15);
  border: 1px solid rgba(255,59,48,0.35);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff6b6b;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.player-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.player-subtitle {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* Waveform animation */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.waveform-bar {
  display: block;
  width: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-full);
  transform-origin: bottom center;
}

.waveform-bar:nth-child(1)  { height: 12px; }
.waveform-bar:nth-child(2)  { height: 20px; }
.waveform-bar:nth-child(3)  { height: 16px; }
.waveform-bar:nth-child(4)  { height: 28px; }
.waveform-bar:nth-child(5)  { height: 14px; }
.waveform-bar:nth-child(6)  { height: 22px; }
.waveform-bar:nth-child(7)  { height: 32px; }
.waveform-bar:nth-child(8)  { height: 18px; }
.waveform-bar:nth-child(9)  { height: 26px; }
.waveform-bar:nth-child(10) { height: 10px; }
.waveform-bar:nth-child(11) { height: 24px; }
.waveform-bar:nth-child(12) { height: 16px; }

/* Playing animation - applied via JS */
.waveform.is-playing .waveform-bar {
  animation: waveform-anim 1s ease-in-out infinite;
}
.waveform.is-playing .waveform-bar:nth-child(1)  { animation-delay: 0.0s; }
.waveform.is-playing .waveform-bar:nth-child(2)  { animation-delay: 0.1s; }
.waveform.is-playing .waveform-bar:nth-child(3)  { animation-delay: 0.2s; }
.waveform.is-playing .waveform-bar:nth-child(4)  { animation-delay: 0.3s; }
.waveform.is-playing .waveform-bar:nth-child(5)  { animation-delay: 0.4s; }
.waveform.is-playing .waveform-bar:nth-child(6)  { animation-delay: 0.5s; }
.waveform.is-playing .waveform-bar:nth-child(7)  { animation-delay: 0.6s; }
.waveform.is-playing .waveform-bar:nth-child(8)  { animation-delay: 0.45s; }
.waveform.is-playing .waveform-bar:nth-child(9)  { animation-delay: 0.25s; }
.waveform.is-playing .waveform-bar:nth-child(10) { animation-delay: 0.15s; }
.waveform.is-playing .waveform-bar:nth-child(11) { animation-delay: 0.35s; }
.waveform.is-playing .waveform-bar:nth-child(12) { animation-delay: 0.05s; }

@keyframes waveform-anim {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%       { transform: scaleY(1.5); opacity: 1; }
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--gray-100);
}

/* Play Button */
.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-green);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-normal),
    background var(--transition-normal);
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(76,175,80,0.45);
}

.play-btn:active {
  transform: scale(0.96);
}

.play-btn svg {
  width: 28px;
  height: 28px;
}

.play-btn.is-playing {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: var(--shadow-orange);
}

.play-btn.is-loading {
  background: var(--gray-300);
}

.play-btn.is-loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.volume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray-500);
  transition: color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.volume-btn:hover {
  color: var(--green-600);
  background: var(--green-50);
}

.volume-btn svg {
  width: 22px;
  height: 22px;
}

/* Range Slider */
.volume-slider {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  cursor: pointer;
  min-width: 80px;
  /* Webkit track */
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-500);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(76,175,80,0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(76,175,80,0.5);
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-500);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(76,175,80,0.4);
}

.volume-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Stream Info Bar */
.stream-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-8);
  background: var(--gray-50);
  flex-wrap: wrap;
}

.stream-url,
.stream-quality {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
}

.stream-url svg,
.stream-quality svg {
  width: 16px;
  height: 16px;
  color: var(--green-400);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: var(--space-20) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.about-cta {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.about-cta svg {
  width: 18px;
  height: 18px;
}

/* Value Cards */
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.value-card {
  padding: var(--space-5);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.value-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green-600);
}

.value-title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
}

.value-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================================
   PROGRAMS SECTION
   ============================================================ */
.programs-section {
  padding: var(--space-20) 0;
  background: var(--gray-50);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.show-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.show-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.show-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-4);
  position: relative;
  overflow: hidden;
}

.show-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.show-card-header--green { background: linear-gradient(135deg, var(--green-600), var(--green-500)); }
.show-card-header--orange { background: linear-gradient(135deg, var(--orange-600), var(--orange-500)); }
.show-card-header--teal  { background: linear-gradient(135deg, var(--teal-600),  var(--teal-500)); }

.show-time-badge {
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.show-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.show-icon svg {
  width: 24px;
  height: 24px;
  color: rgba(255,255,255,0.9);
}

.show-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.show-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}

.show-host {
  font-size: 0.8125rem;
  color: var(--green-600);
  font-weight: 600;
}

.show-description {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
  margin-top: var(--space-1);
}

.show-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.show-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.programs-cta {
  text-align: center;
}

.programs-cta-text {
  margin-bottom: var(--space-4);
  color: var(--gray-500);
  font-size: 1rem;
}

/* ============================================================
   CONNECT SECTION
   ============================================================ */
.connect-section {
  position: relative;
  padding: var(--space-20) 0;
  overflow: hidden;
}

.connect-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--green-700) 0%, var(--green-600) 50%, var(--teal-600) 100%);
  z-index: 0;
}

.connect-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.connect-section .container {
  position: relative;
  z-index: 1;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* Connect Cards */
.connect-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-normal), transform var(--transition-normal);
}

.connect-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.connect-card--featured {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.connect-card-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-500);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-orange);
}

.connect-card--listen .connect-card-icon {
  background: var(--green-500);
  box-shadow: var(--shadow-green);
}

.connect-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.connect-card-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-3);
}

.connect-card-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.connect-cta {
  margin-top: auto;
}

/* Social Links */
.social-connect {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.social-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.social-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.social-link:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.30);
  transform: translateX(3px);
}

.social-link-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-link-icon svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.social-link-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}

.social-link-arrow {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray-800);
  padding: var(--space-16) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-logo .logo-title {
  color: var(--white);
}

.footer-logo .logo-sub {
  color: rgba(255,255,255,0.4);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.footer-org {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
}

.footer-link {
  color: var(--green-400);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--orange-400);
}

.footer-nav-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}

.footer-nav-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--green-400);
}

.footer-mission-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-badge {
  padding: var(--space-1) var(--space-3);
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-400);
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  flex-wrap: wrap;
}

.footer-copyright,
.footer-made {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE - TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .connect-card--featured {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE - MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    font-size: 0.8125rem;
    padding: 0.4375rem 0.875rem;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
  }

  .hero-container {
    padding-top: var(--space-10);
    padding-bottom: calc(var(--space-12) + 60px);
  }

  .hero-heading {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  /* Player */
  .player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
  }

  .waveform {
    align-self: flex-end;
    width: 100%;
    justify-content: flex-end;
  }

  .player-controls {
    flex-wrap: wrap;
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .volume-control {
    width: 100%;
    flex: unset;
  }

  .stream-info-bar {
    padding: var(--space-3) var(--space-5);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* About */
  .about-values {
    grid-template-columns: 1fr;
  }

  /* Programs */
  .programs-grid {
    grid-template-columns: 1fr;
  }

  /* Connect */
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .connect-card--featured {
    grid-column: auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   RESPONSIVE - SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }

  .hero-stats {
    gap: var(--space-4);
  }

  .stat-divider {
    height: 24px;
  }

  .play-btn {
    width: 58px;
    height: 58px;
  }

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

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .live-dot--pulse {
    animation: none;
  }

  .logo-wave {
    animation: none;
  }

  .sound-bar {
    animation: none;
  }

  .sonar-ring {
    animation: none !important;
  }
}
