/* assets/css/style.css */
/* Songs From Our Soul - Modern Radio Streaming Theme (Dark & Saturated Light Modes) */

:root {
  /* Common Brand Colors */
  --primary-color: #8a2be2;
  --primary-hover: #7b1fa2;
  --accent-color: #00d2ff;
  --accent-glow: rgba(0, 210, 255, 0.4);
  --player-height: 88px;

  /* Dark Mode Palette (Default) */
  --bg-dark: #080d1a;
  --bg-card: #111827;
  --bg-card-hover: #1a2234;
  --bg-player: rgba(11, 15, 25, 0.95);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --heading-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 210, 255, 0.35);
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.2);

  /* Navbar */
  --nav-bg: rgba(8, 13, 26, 0.9);
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-text: #cbd5e1;
  --nav-active: #00d2ff;
  --nav-search-bg: #111827;
  --nav-search-border: rgba(255, 255, 255, 0.15);
  --nav-search-text: #f8fafc;

  /* Hero Section */
  --hero-bg: radial-gradient(circle at 85% 20%, rgba(138, 43, 226, 0.28), transparent 50%),
             radial-gradient(circle at 15% 85%, rgba(0, 210, 255, 0.22), transparent 50%),
             #111827;
  --hero-border: rgba(255, 255, 255, 0.1);
  --hero-title-grad: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #00d2ff 100%);
  --hero-subtext: #cbd5e1;
  --hero-stats-bg: rgba(0, 0, 0, 0.4);
  --hero-stats-border: rgba(255, 255, 255, 0.1);
  --hero-stats-text: #ffffff;

  /* Elements */
  --row-bg: rgba(255, 255, 255, 0.02);
  --row-hover: rgba(255, 255, 255, 0.06);
  --row-active: rgba(138, 43, 226, 0.2);
  --play-btn-bg: rgba(255, 255, 255, 0.08);
  --play-btn-text: #ffffff;
  --lyrics-bg: rgba(0, 0, 0, 0.3);
}

/* ======================================================== */
/* LIGHT MODE: VIBRANT & SATURATED COLOURS (Request 2)       */
/* ======================================================== */
[data-bs-theme="light"] {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --accent-color: #0284c7;
  --accent-glow: rgba(99, 102, 241, 0.25);

  --bg-dark: #f0f4f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-player: rgba(255, 255, 255, 0.96);
  --text-main: #0f172a;
  --text-muted: #475569;
  --heading-color: #0f172a;
  --border-color: rgba(99, 102, 241, 0.16);
  --border-hover: rgba(99, 102, 241, 0.45);
  --card-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.05);
  --card-shadow-hover: 0 20px 35px -5px rgba(99, 102, 241, 0.2), 0 10px 15px -5px rgba(99, 102, 241, 0.1);

  /* Navbar in Saturated Light Mode */
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-border: rgba(99, 102, 241, 0.16);
  --nav-text: #1e293b;
  --nav-active: #4f46e5;
  --nav-search-bg: #f8fafc;
  --nav-search-border: rgba(99, 102, 241, 0.25);
  --nav-search-text: #0f172a;

  /* Hero Section in Saturated Light Mode */
  --hero-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.08) 50%, rgba(6, 182, 212, 0.1) 100%), #ffffff;
  --hero-border: rgba(99, 102, 241, 0.25);
  --hero-title-grad: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #0284c7 100%);
  --hero-subtext: #334155;
  --hero-stats-bg: #ffffff;
  --hero-stats-border: rgba(99, 102, 241, 0.22);
  --hero-stats-text: #0f172a;

  /* Elements */
  --row-bg: #ffffff;
  --row-hover: rgba(99, 102, 241, 0.06);
  --row-active: rgba(99, 102, 241, 0.14);
  --play-btn-bg: rgba(99, 102, 241, 0.1);
  --play-btn-text: #4f46e5;
  --lyrics-bg: #f8fafc;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  min-height: 100vh;
  padding-bottom: calc(var(--player-height) + 24px);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Adaptive Typography & Headings */
.theme-title {
  color: var(--heading-color) !important;
}

.theme-subtext {
  color: var(--text-muted) !important;
}

/* Adaptive Logos for Dark and Light Themes */
.logo-dark-mode { display: inline-block; }
.logo-light-mode { display: none; }

[data-bs-theme="light"] .logo-dark-mode { display: none !important; }
[data-bs-theme="light"] .logo-light-mode { display: inline-block !important; }

/* Navigation Bar */
.navbar-radio {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

.navbar-radio .nav-link {
  color: var(--nav-text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.navbar-radio .nav-link:hover {
  color: var(--nav-active);
  background: rgba(99, 102, 241, 0.08);
}

.navbar-radio .nav-link.active {
  color: var(--nav-active) !important;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.12);
}

.nav-toggler-icon {
  color: var(--text-main);
  font-size: 1.25rem;
}

.nav-search-input {
  background-color: var(--nav-search-bg) !important;
  border-color: var(--nav-search-border) !important;
  color: var(--nav-search-text) !important;
  border-radius: 0 20px 20px 0 !important;
  font-size: 0.88rem;
}

.nav-search-icon {
  background-color: var(--nav-search-bg) !important;
  border-color: var(--nav-search-border) !important;
  color: var(--text-muted) !important;
  border-radius: 20px 0 0 20px !important;
}

.btn-play-radio-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play-radio-header:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Live On Air Badge with Radar Pulse Animation */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: pulse-radar 1.6s ease-out infinite;
}

@keyframes pulse-radar {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* =================================================== */
/* HERO SECTION: MODERN & SATURATED                    */
/* =================================================== */
.hero-radio {
  background: var(--hero-bg);
  border: 1px solid var(--hero-border);
  border-radius: 28px;
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.hero-title-gradient {
  background: var(--hero-title-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.hero-subtext-para {
  color: var(--hero-subtext);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-stats-box {
  background: var(--hero-stats-bg);
  border: 1px solid var(--hero-stats-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-stats-box h3 {
  font-weight: 800;
  font-size: 1.75rem;
}

/* =================================================== */
/* CARDS & GLASSMORPHISM                               */
/* =================================================== */
.radio-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.radio-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* =================================================== */
/* CATEGORY CARDS: RICH SATURATED GRADIENTS            */
/* =================================================== */
.category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  text-decoration: none !important;
  color: #ffffff !important;
}

.category-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 2;
  transition: background 0.3s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.category-card:hover .category-card-bg {
  transform: scale(1.08);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.category-card-content {
  position: relative;
  z-index: 3;
}

.category-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #ffffff);
  color: #0b0f19;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  cursor: pointer;
}

.category-play-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

/* =================================================== */
/* VARIATION ITEM ROWS & ANIMATED EQUALIZER INDICATOR  */
/* =================================================== */
.variation-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--row-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  transition: all 0.22s ease;
}

.variation-row:hover {
  background: var(--row-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.variation-row.active-track {
  background: var(--row-active);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-play-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--play-btn-bg);
  color: var(--play-btn-text);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-play-sm:hover, .variation-row.active-track .btn-play-sm {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.08);
}

/* Like Button */
.btn-like {
  background: transparent;
  border: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
  padding: 4px 8px;
  cursor: pointer;
}

.btn-like:hover {
  color: #f43f5e;
  transform: scale(1.2);
}

.btn-like.liked {
  color: #f43f5e;
}

/* =================================================== */
/* PERSISTENT AUDIO PLAYER BAR (Fixed Bottom)          */
/* =================================================== */
#radio-persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: var(--bg-player);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1040;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 28%;
  min-width: 220px;
}

.player-album-art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.player-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-album-art.spinning img {
  border-radius: 50%;
  animation: vinyl-spin 9s linear infinite;
}

@keyframes vinyl-spin {
  100% { transform: rotate(360deg); }
}

.player-info-text {
  overflow: hidden;
  white-space: nowrap;
}

.player-track-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--heading-color);
  text-overflow: ellipsis;
  overflow: hidden;
}

.player-track-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Center Controls */
.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 580px;
  margin: 0 auto;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 4px;
}

.player-ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-ctrl-btn:hover {
  color: var(--accent-color);
  transform: scale(1.15);
}

.player-ctrl-btn.active {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.player-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 18px var(--accent-glow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  cursor: pointer;
}

.player-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 25px var(--accent-glow);
}

/* Scrubber / Progress Bar */
.player-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.player-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}

.player-scrubber-bar {
  flex: 1;
  height: 6px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.player-scrubber-bar:hover {
  height: 8px;
}

.player-scrubber-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
  width: 0%;
  position: relative;
}

.player-scrubber-handle {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s ease;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.player-scrubber-bar:hover .player-scrubber-handle {
  transform: translateY(-50%) scale(1);
}

/* Player Right Section */
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 28%;
  min-width: 200px;
}

/* Sound Waves Equalizer Visualizer */
.player-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  padding: 0 4px;
}

.eq-bar {
  width: 3px;
  background: linear-gradient(180deg, var(--accent-color), var(--primary-color));
  border-radius: 2px;
  height: 4px;
  transition: height 0.15s ease;
}

.player-equalizer.playing .eq-bar:nth-child(1) { animation: eq-wave 0.7s ease-in-out infinite alternate; }
.player-equalizer.playing .eq-bar:nth-child(2) { animation: eq-wave 0.45s ease-in-out infinite alternate 0.1s; }
.player-equalizer.playing .eq-bar:nth-child(3) { animation: eq-wave 0.85s ease-in-out infinite alternate 0.2s; }
.player-equalizer.playing .eq-bar:nth-child(4) { animation: eq-wave 0.55s ease-in-out infinite alternate 0.15s; }

@keyframes eq-wave {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Volume Control */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 80px;
  height: 5px;
  -webkit-appearance: none;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
}

/* Saturated Badges */
.badge-genre {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-color);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

[data-bs-theme="light"] .badge-genre {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.3);
}

.badge-premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* Site Footer */
.site-footer {
  background: var(--bg-card);
  border-color: var(--border-color) !important;
  transition: all 0.3s ease;
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* =================================================== */
/* RESPONSIVE DESIGN (Request 5)                       */
/* =================================================== */
@media (max-width: 991px) {
  .player-right { display: none; }
  .player-left { width: 45%; }
  .player-center { width: 55%; }
  .hero-radio { padding: 32px 24px; }
}

@media (max-width: 576px) {
  :root { --player-height: 82px; }
  
  #radio-persistent-player {
    padding: 6px 12px;
    height: var(--player-height);
  }
  
  .player-left {
    width: 60%;
    min-width: 0;
    gap: 10px;
  }
  
  .player-album-art {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  
  .player-track-title {
    font-size: 0.85rem;
  }
  
  .player-track-subtitle {
    font-size: 0.72rem;
  }
  
  .player-center {
    width: 40%;
    max-width: none;
    align-items: flex-end;
  }
  
  .player-progress-container {
    display: none;
  }
  
  .player-controls-row {
    margin-bottom: 0;
    gap: 12px;
  }
  
  .player-ctrl-btn {
    font-size: 0.95rem;
    padding: 4px;
  }
  
  #player-btn-shuffle, #player-btn-repeat {
    display: none;
  }
  
  .player-play-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  
  .hero-radio {
    padding: 24px 16px;
    border-radius: 20px;
  }
}
