/* =============================================================================
   RADIO LAKE VICTORIA (92.1 FM) - DESIGN SYSTEM & CSS TOKENS
   Branding: Dunga Beach, Kisumu • "Duond Jokanyanam" • rlv.co.ke
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Brand Palette (Aligned with rlv.co.ke & Lake Victoria) */
  --primary-red: #D40000;
  --primary-red-dark: #B30000;
  --primary-navy: #0F2A6E;
  --primary-blue: #1A3A8F;
  --primary-blue-light: #E8EEF8;
  --accent-teal: #00B4D8;
  --accent-cyan: #90E0EF;
  --accent-gold: #F59E0B;
  --accent-sunset: #D40000;
  --accent-green: #10B981;
  
  /* Neutral Palette */
  --bg-dark: #070B14;
  --surface-dark: #0C1220;
  --surface-card: #111A2E;
  --surface-elevated: #16243E;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(212, 0, 0, 0.5);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(0, 180, 216, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

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

/* =============================================================================
   1. TOP ANNOUNCEMENT & HOTLINE BAR
   ============================================================================= */
.top-announcement-bar {
  background: #060D18;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.top-bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-left a, .top-bar-right a {
  color: var(--accent-cyan);
  font-weight: 600;
}

.whatsapp-badge {
  background: #25D366;
  color: #000 !important;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
}

/* =============================================================================
   2. NAVBAR & FUNCTIONAL TABS
   ============================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 16, 30, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  padding: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text h1 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-tab {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.nav-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.12);
  border-bottom: 2px solid var(--accent-teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(231, 111, 81, 0.15);
  border: 1px solid rgba(231, 111, 81, 0.4);
  color: #FF7B54;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #FF5722;
  border-radius: 50%;
  box-shadow: 0 0 10px #FF5722;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* =============================================================================
   3. HERO MASTER AUDIO PLAYER
   ============================================================================= */
.hero-player-section {
  background: linear-gradient(180deg, rgba(12, 33, 61, 0.45) 0%, var(--bg-dark) 100%);
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.player-card {
  max-width: 1150px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold), var(--accent-sunset));
}

.album-cover-box {
  width: 190px;
  height: 190px;
  border-radius: var(--radius-md);
  background: #070E1A;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.vinyl-record {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 0%, #000 70%, #222 100%);
  box-shadow: 0 0 15px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinVinyl 12s linear infinite;
  animation-play-state: paused;
}

.vinyl-center {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 4px solid #111;
}

.is-playing .vinyl-record {
  animation-play-state: running;
}

@keyframes spinVinyl {
  100% { transform: rotate(360deg); }
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.station-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.freq-tag {
  background: var(--primary-blue);
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.show-title-badge {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.stream-source-tag {
  font-size: 0.72rem;
  background: rgba(0,180,216,0.15);
  color: var(--accent-teal);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.track-name {
  font-size: 1.85rem;
  color: #FFFFFF;
  margin-top: 0.2rem;
}

.artist-name {
  font-size: 1.15rem;
  color: var(--accent-teal);
  font-weight: 600;
}

.presenter-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.player-controls-cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.btn-play-master {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-teal), #0077B6);
  border: none;
  color: #FFFFFF;
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-play-master:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.6);
}

.bitrate-selector {
  display: flex;
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem;
  gap: 0.2rem;
}

.bitrate-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bitrate-btn.active {
  background: var(--accent-teal);
  color: #05101E;
}

.stream-active-status {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* =============================================================================
   4. CONTENT GRIDS, TABS & CARDS
   ============================================================================= */
.main-content-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
}

.content-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
}

/* Schedule Day Filters & Items */
.day-filter-bar {
  display: flex;
  gap: 0.4rem;
  background: var(--surface-dark);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.day-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
}

.day-btn.active {
  background: var(--accent-teal);
  color: #000;
}

.schedule-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  min-width: 110px;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.88rem;
}

.schedule-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.schedule-host {
  color: var(--accent-teal);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.schedule-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.schedule-item.current-show {
  background: rgba(0, 180, 216, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 4px solid var(--accent-teal);
}

/* News Filter Pills */
.news-category-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill-btn {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.pill-btn.active {
  background: var(--accent-teal);
  color: #000;
  border-color: var(--accent-teal);
}

/* =============================================================================
   5. REVISED PRICING CARDS
   ============================================================================= */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-pricing {
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--accent-teal);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.package-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0.6rem 0;
  font-family: var(--font-heading);
}

.pricing-price .currency {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #CBD5E1;
  flex: 1;
}

/* =============================================================================
   6. BUTTONS & MODALS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal), #0077B6);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #48CAE4, var(--accent-teal));
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--surface-elevated);
  border-color: var(--border-subtle);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #1F3A5E;
  color: #FFFFFF;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-sunset));
  color: #0A192F;
  font-weight: 700;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-info { background: rgba(0, 180, 216, 0.15); color: #00B4D8; }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 13, 24, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.simulated-phone-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  display: none;
}

.phone-screen-mockup {
  width: 340px;
  background: #000000;
  border: 8px solid #222222;
  border-radius: 36px;
  padding: 1.5rem;
  color: #FFFFFF;
  box-shadow: 0 0 40px rgba(42, 157, 143, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mpesa-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00A859;
  font-weight: 800;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .player-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .album-cover-box {
    margin: 0 auto;
  }
  .player-controls-cluster {
    align-items: center;
  }
  .nav-links {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
}
