/* ============================================================
   RadioWave - Main Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --accent:       #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow:  rgba(99,102,241,.25);
  --success:      #10b981;
  --danger:       #ef4444;
  --warn:         #f59e0b;

  /* Light */
  --bg:           #f8fafc;
  --bg-card:      #ffffff;
  --bg-card2:     #f1f5f9;
  --bg-nav:       #ffffffee;
  --border:       rgba(0,0,0,.08);
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-inv:     #ffffff;

  --player-h:     72px;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
  --transition:   .2s ease;
}

.dark-mode {
  --bg:         #0d0f1a;
  --bg-card:    #161929;
  --bg-card2:   #1e2236;
  --bg-nav:     #0d0f1aee;
  --border:     rgba(255,255,255,.07);
  --text:       #e2e8f0;
  --text-muted: #64748b;
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  padding-bottom: var(--player-h);
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar-main {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: .6rem 0;
  transition: background var(--transition);
}

.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.brand-icon .material-icons-round { font-size: 20px; }
.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.brand-name strong { color: var(--accent); }

.nav-search { position: relative; max-width: 480px; }
.search-icon-nav {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 18px; pointer-events: none; z-index: 2;
}
.nav-search-input {
  padding-left: 40px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text);
  height: 40px;
  font-size: .875rem;
}
.nav-search-input:focus {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  color: var(--text);
}

.btn-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  position: relative;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg-card2); color: var(--accent); border-color: var(--accent); }
.badge-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.navbar-toggler { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; }
.navbar-toggler .material-icons-round { font-size: 22px; color: var(--text-muted); }

.nav-link {
  color: var(--text-muted) !important;
  font-size: .875rem; font-weight: 500;
  border-radius: 8px;
  padding: .4rem .75rem !important;
  display: flex; align-items: center;
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text) !important; background: var(--bg-card2); }
.nav-link .material-icons-round { font-size: 16px; opacity: .7; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  padding: .45rem 0;
}
.breadcrumb { margin: 0; font-size: .8rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border); }

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-card2) 0%, var(--bg) 100%);
}

.hero-bg-animation {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.wave {
  position: absolute; border-radius: 50%;
  opacity: .06; animation: pulse 8s ease-in-out infinite;
}
.wave1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; }
.wave2 { width: 400px; height: 400px; background: #818cf8; bottom: -150px; right: -100px; animation-delay: -3s; }
.wave3 { width: 300px; height: 300px; background: #06b6d4; top: 50%; left: 50%; animation-delay: -5s; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--accent);
  padding: .35rem .9rem;
  border-radius: 30px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.hero-badge .material-icons-round { font-size: 14px; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent), #818cf8, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* Hero search */
.hero-search-wrapper { max-width: 640px; margin: 0 auto; }
.hero-search-box {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .25rem .25rem .25rem 1rem;
  box-shadow: var(--shadow-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.hero-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-lg);
}
.hero-search-icon { color: var(--text-muted); margin-right: .5rem; }
.hero-search-input {
  flex: 1; border: none; background: transparent; color: var(--text);
  font-size: 1rem; outline: none; padding: .5rem 0;
}
.hero-search-input::placeholder { color: var(--text-muted); }
.hero-search-btn {
  border-radius: 40px;
  padding: .55rem 1.5rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Quick tags */
.quick-tags { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.quick-tag {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .2rem .75rem;
  border-radius: 20px;
  font-size: .8rem;
  transition: all var(--transition);
}
.quick-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Hero stats */
.hero-stats { flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--text); }
.hero-stat span { font-size: .8rem; color: var(--text-muted); }
.hero-stat-divider { width: 1px; background: var(--border); height: 40px; }

/* ── Search Suggestions ─────────────────────────────────── */
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1000; overflow: hidden;
  display: none;
}
.search-suggestions.show { display: block; }
.suggestion-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1rem; cursor: pointer;
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--bg-card2); }
.suggestion-item img {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover;
  background: var(--bg-card2);
}
.suggestion-name { font-size: .875rem; font-weight: 500; color: var(--text); }
.suggestion-sub { font-size: .75rem; color: var(--text-muted); }

/* ── Section ────────────────────────────────────────────── */
.section-block { padding: 2.5rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: .5rem; margin: 0;
}
.section-title .material-icons-round { color: var(--accent); font-size: 1.4rem; }
.section-more {
  display: flex; align-items: center; gap: .2rem;
  font-size: .8rem; color: var(--text-muted); font-weight: 500;
  transition: color var(--transition);
}
.section-more:hover { color: var(--accent); }
.section-more .material-icons-round { font-size: 16px; }

/* ── Station Cards ──────────────────────────────────────── */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.station-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

.station-card__thumb {
  position: relative; aspect-ratio: 1;
  background: var(--bg-card2);
  border: none; padding: 0; cursor: pointer; overflow: hidden; width: 100%;
}
.station-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.station-card:hover .station-card__thumb img { transform: scale(1.05); }
.play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.play-overlay .material-icons-round { font-size: 3rem; color: #fff; }
.station-card:hover .play-overlay,
.station-card__thumb:focus .play-overlay { opacity: 1; }

.station-card__body { padding: .75rem; flex: 1; }
.station-name {
  display: block; font-weight: 600; font-size: .875rem;
  color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.station-name:hover { color: var(--accent); }
.station-meta { font-size: .75rem; color: var(--text-muted); }
.station-tags { font-size: .7rem; color: var(--text-muted); margin-top: .2rem; }

.btn-fav {
  position: absolute; top: .5rem; right: .5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50%; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  opacity: 0;
}
.btn-fav .material-icons-round { font-size: 16px; color: var(--text-muted); }
.station-card:hover .btn-fav { opacity: 1; }
.btn-fav:hover, .btn-fav.active { background: var(--danger); border-color: var(--danger); }
.btn-fav:hover .material-icons-round,
.btn-fav.active .material-icons-round { color: #fff; }

/* Mini cards (recently played row) */
.stations-row { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.stations-row::-webkit-scrollbar { display: none; }
.station-card-mini {
  flex: 0 0 100px; text-align: center;
}
.station-card-mini button {
  display: block; width: 80px; height: 80px; margin: 0 auto .4rem;
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  border: none; background: var(--bg-card2); cursor: pointer;
}
.station-card-mini button img { width: 100%; height: 100%; object-fit: cover; }
.station-card-mini .mini-play {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity var(--transition);
}
.station-card-mini button:hover .mini-play { opacity: 1; }
.station-card-mini .mini-play .material-icons-round { color: #fff; font-size: 24px; }
.mini-name {
  font-size: .7rem; color: var(--text-muted); display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100px;
}

/* ── Featured / Glassmorphism ───────────────────────────── */
.glassmorphism {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.dark-mode .glassmorphism { background: rgba(22,25,41,.8); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.featured-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem; text-align: center; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  overflow: hidden; position: relative; border: none;
  background: var(--bg-card2); cursor: pointer; margin-bottom: .75rem;
}
.featured-play-btn img { width: 100%; height: 100%; object-fit: cover; }
.featured-play-icon {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity var(--transition);
}
.featured-card:hover .featured-play-icon { opacity: 1; }
.featured-play-icon .material-icons-round { color: #fff; font-size: 2rem; }
.featured-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.featured-country { font-size: .75rem; color: var(--text-muted); }
.featured-badge {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: #f59e0b; font-size: .65rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 20px;
}

/* ── Country Grid ───────────────────────────────────────── */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}
.country-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .25rem;
  color: var(--text); font-size: .875rem; font-weight: 500;
  transition: all var(--transition);
}
.country-card:hover { border-color: var(--accent); background: var(--bg-card2); transform: translateY(-2px); color: var(--text); }
.country-flag { font-size: 1.75rem; line-height: 1; }
.country-name { font-size: .8rem; font-weight: 600; }
.country-count { font-size: .7rem; color: var(--text-muted); }
.continent-heading { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: .75rem; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }

/* ── Genre Grid ─────────────────────────────────────────── */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .75rem;
}
.genres-grid--large { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.genre-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem .75rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .35rem; color: var(--text);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.genre-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--genre-color); opacity: 0;
  transition: opacity var(--transition);
}
.genre-card:hover { border-color: var(--genre-color); transform: translateY(-2px); color: var(--text); }
.genre-card:hover::before { opacity: .06; }
.genre-icon { font-size: 1.75rem; color: var(--genre-color); position: relative; }
.genre-name { font-size: .85rem; font-weight: 600; position: relative; }
.genre-count { font-size: .7rem; color: var(--text-muted); position: relative; }

/* ── Language ───────────────────────────────────────────── */
.languages-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.lang-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: .35rem .9rem; border-radius: 30px; font-size: .85rem;
  transition: all var(--transition);
}
.lang-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.lang-pill .material-icons-round { font-size: 14px; }
.lang-count { font-size: .7rem; background: var(--bg-card2); padding: .1rem .4rem; border-radius: 10px; color: var(--text-muted); }

.languages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.lang-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .25rem; color: var(--text); transition: all var(--transition);
}
.lang-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.lang-card .material-icons-round { color: var(--accent); font-size: 1.5rem; }
.lang-card-name { font-weight: 600; font-size: .875rem; }
.lang-native { font-size: .75rem; color: var(--text-muted); }

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  padding: 1.75rem;
  border-radius: var(--radius);
}
.page-header-title { font-size: 1.75rem; font-weight: 800; margin: 0 0 .25rem; display: flex; align-items: center; gap: .5rem; }
.page-header-title .material-icons-round { color: var(--accent); }
.page-header-sub { color: var(--text-muted); font-size: .9rem; }
.page-header-flag { font-size: 3.5rem; line-height: 1; }
.page-header-native { color: var(--text-muted); font-size: .9rem; }

/* ── Station Hero (station page) ────────────────────────── */
.station-hero { padding: 2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.station-hero-logo {
  width: 120px; height: 120px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--bg-card2);
  box-shadow: var(--shadow);
}
.station-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.station-live-badge {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  background: rgba(239,68,68,.9); color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 20px;
  display: flex; align-items: center; gap: .3rem;
}
.live-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }

.station-hero-name { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.meta-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 20px; padding: .2rem .75rem; font-size: .8rem; color: var(--text-muted);
}
.meta-pill a { color: var(--text-muted); }
.meta-pill a:hover { color: var(--accent); }
.meta-pill .material-icons-round { font-size: 14px; }
.meta-pill--green { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.1); color: var(--success); }

.station-tags-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-badge {
  background: var(--accent-glow); border: 1px solid rgba(99,102,241,.3);
  color: var(--accent); padding: .2rem .6rem; border-radius: 20px;
  font-size: .75rem; font-weight: 500; transition: all var(--transition);
}
.tag-badge:hover { background: var(--accent); color: #fff; }

.btn-play-main {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff; border: none; border-radius: 50px;
  padding: .75rem 2rem; font-size: 1rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all var(--transition); box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-play-main:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); color: #fff; }
.btn-play-main .material-icons-round { font-size: 1.75rem; }

.btn-icon-action {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 50px; padding: .5rem 1.25rem;
  font-size: .875rem; font-weight: 500;
}
.station-player-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.station-description { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }

/* Station details table */
.station-details-table th { font-size: .8rem; color: var(--text-muted); width: 35%; padding: .6rem 1rem; }
.station-details-table td { font-size: .85rem; word-break: break-all; padding: .6rem 1rem; }

/* ── Station List (sidebar) ─────────────────────────────── */
.station-list { list-style: none; margin: 0; padding: 0; }
.station-list-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem 1rem; border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.station-list-item:last-child { border-bottom: none; }
.station-list-item:hover { background: var(--bg-card2); }
.station-list-thumb {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; border: none; background: var(--bg-card2);
  cursor: pointer; position: relative;
}
.station-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-play {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity var(--transition);
}
.station-list-thumb:hover .list-play { opacity: 1; }
.list-play .material-icons-round { color: #fff; font-size: 18px; }
.station-list-name { font-size: .85rem; font-weight: 600; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.station-list-name:hover { color: var(--accent); }
.station-list-meta { font-size: .72rem; color: var(--text-muted); }
.btn-fav-sm { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .25rem; flex-shrink: 0; }
.btn-fav-sm:hover { color: var(--danger); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.card-header {
  background: transparent; border-bottom: 1px solid var(--border);
  padding: .875rem 1.1rem; font-weight: 600; font-size: .9rem; color: var(--text);
}
.card-title-sm { font-size: .9rem; font-weight: 700; margin: 0; }
.card-body { padding: 1rem; }

/* ── Sidebar Lists ──────────────────────────────────────── */
.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .25rem; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a { color: var(--text-muted); display: flex; align-items: center; gap: .5rem; transition: color var(--transition); }
.sidebar-list li a:hover { color: var(--accent); }
.sidebar-list li a .material-icons-round { font-size: 14px; }
.sidebar-count { font-size: .72rem; color: var(--text-muted); background: var(--bg-card2); padding: .1rem .4rem; border-radius: 8px; }

/* ── SEO Content ────────────────────────────────────────── */
.seo-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.seo-content h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.seo-content p { color: var(--text-muted); line-height: 1.8; }
.seo-feature {
  padding: 1.25rem; background: var(--bg-card2); border-radius: var(--radius-sm);
  text-align: center;
}
.seo-feature .material-icons-round { font-size: 2rem; color: var(--accent); margin-bottom: .5rem; }
.seo-feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.seo-feature p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.static-content h1, .static-content h2 { font-weight: 700; color: var(--text); }
.static-content p, .static-content li { color: var(--text-muted); line-height: 1.8; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-section { background: var(--bg-card2); }
.accordion-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm) !important; margin-bottom: .5rem; overflow: hidden; }
.accordion-button {
  background: var(--bg-card); color: var(--text); font-weight: 600; font-size: .9rem;
  border: none; padding: 1rem 1.1rem;
}
.accordion-button:not(.collapsed) { background: var(--bg-card2); color: var(--accent); box-shadow: none; }
.accordion-button::after { filter: invert(40%) sepia(100%) saturate(300%) hue-rotate(215deg); }
.accordion-body { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Player Bar ─────────────────────────────────────────── */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  height: var(--player-h);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(20px);
}
.player-inner {
  height: 100%;
  display: flex; align-items: center; gap: 1rem;
}
.player-station { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.player-artwork {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; flex-shrink: 0; background: var(--bg-card2);
}
.player-artwork img { width: 100%; height: 100%; object-fit: cover; }
.player-equalizer {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
  gap: 2px; padding: 6px 8px; opacity: 0; transition: opacity var(--transition);
}
.player-equalizer.playing { opacity: 1; }
.player-equalizer span {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: eq 0.8s ease-in-out infinite alternate;
}
.player-equalizer span:nth-child(1) { height: 60%; animation-delay: 0s; }
.player-equalizer span:nth-child(2) { height: 100%; animation-delay: .15s; }
.player-equalizer span:nth-child(3) { height: 40%; animation-delay: .3s; }
.player-equalizer span:nth-child(4) { height: 80%; animation-delay: .45s; }
@keyframes eq { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

.player-name { font-size: .875rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-country { font-size: .72rem; color: var(--text-muted); }

.player-controls { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.btn-player {
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: all var(--transition);
}
.btn-player:hover { background: var(--bg-card2); color: var(--accent); border-color: var(--accent); }
.btn-play {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border: none; color: #fff;
}
.btn-play:hover { transform: scale(1.08); color: #fff; }
.btn-play .material-icons-round { font-size: 1.6rem; }
.spinner-ring {
  width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.volume-slider {
  width: 90px; height: 4px; accent-color: var(--accent); cursor: pointer;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card2); border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-brand { color: var(--text); }
.footer-heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .875rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--text-muted); font-size: .85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-divider { border-color: var(--border); margin: 2rem 0 1.25rem; }

/* ── Offcanvas (Favorites) ──────────────────────────────── */
.offcanvas {
  background: var(--bg-card);
  border-left: 1px solid var(--border) !important;
}
.offcanvas-header { border-bottom: 1px solid var(--border); }
.offcanvas-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination .page-link {
  background: var(--bg-card); border-color: var(--border); color: var(--text-muted);
  border-radius: var(--radius-sm) !important; margin: 0 2px;
  font-size: .875rem;
}
.pagination .page-link:hover { background: var(--bg-card2); color: var(--accent); border-color: var(--accent); }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Search page ────────────────────────────────────────── */
.search-page-bar .form-control { border-radius: 0; }
.search-page-bar .input-group-text { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; }
.search-page-bar .form-control { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.search-page-bar .form-control:focus { border-color: var(--accent); box-shadow: none; }
.search-page-bar { position: relative; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-section { padding: 3rem 0 2.5rem; }
  .hero-search-btn span.d-none.d-sm-inline { display: none !important; }
  .stations-grid { grid-template-columns: repeat(2, 1fr); }
  .countries-grid { grid-template-columns: repeat(3, 1fr); }
  .genres-grid { grid-template-columns: repeat(3, 1fr); }
  .player-inner { gap: .5rem; }
  .volume-slider, .btn-player:not(.btn-play):not(#btnClose) { display: none !important; }
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Utilities ──────────────────────────────────────────── */
.min-w-0 { min-width: 0; }
.fw-500 { font-weight: 500; }
