/* ================================================================
   Radiostreamers — Design System
   Theme: Dark (#0a0f1a), Accent (#13c8ec), Font: Be Vietnam Pro
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&display=swap');

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  --bg:         #0a0f1a;
  --surface:    #111827;
  --surface-2:  #1a2233;
  --surface-3:  #1f2d42;
  --border:     rgba(255,255,255,0.07);
  --accent:     #13c8ec;
  --accent-dim: rgba(19,200,236,0.15);
  --accent-glow:rgba(19,200,236,0.3);
  --text:       #f0f4f8;
  --text-muted: #8b9db5;
  --text-dim:   #4a5568;
  --red:        #ef4444;
  --green:      #22c55e;
  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.6);
  --player-h:   72px;
  --nav-h:      64px;
  --transition: 0.2s ease;
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --border: rgba(0,0,0,0.08);
  --accent: #0ea5b8;
  --accent-dim: rgba(14,165,184,0.12);
  --accent-glow: rgba(14,165,184,0.28);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 16px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
}
html[data-theme="light"] .nav { background: rgba(255,255,255,0.85); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); margin-left: -10px; }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-link.active { color: var(--accent); }
.nav-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.nav-search input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 16px 8px 40px;
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color var(--transition);
}
.nav-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.nav-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #0a0f1a;
}
.btn-primary:hover {
  background: #0fb8d8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
}
.btn-icon:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

/* ─── User Avatar ───────────────────────────────────────────── */
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  cursor: pointer;
}
.user-menu { position: relative; }
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 6px 0;
  box-shadow: var(--shadow);
  z-index: 200;
}
.user-menu:hover .user-dropdown, .user-dropdown.open { display: block; }
.user-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.user-dropdown a:hover { background: var(--surface-3); color: var(--text); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ─── Page Layout ───────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.page { padding: 32px 0; }
.page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}
.page-header p { color: var(--text-muted); font-size: 0.9rem; }
.page-header .badge {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 2px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}
.card:hover {
  border-color: rgba(19,200,236,0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Station Grid */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.station-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.station-card:hover {
  background: var(--surface-2);
  border-color: rgba(19,200,236,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.station-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.station-logo {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface-2);
  flex-shrink: 0;
}
.station-logo-placeholder {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.station-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.station-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.station-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 500;
}
.tag-accent {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.station-card-play {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.play-btn-small {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.play-btn-small:hover { transform: scale(1.1); box-shadow: 0 0 16px var(--accent-glow); }

/* Station List View */
.stations-list { display: flex; flex-direction: column; gap: 8px; }
.station-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.station-list-item:hover {
  background: var(--surface-2);
  border-color: rgba(19,200,236,0.3);
}
.station-list-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface-2);
  flex-shrink: 0;
}
.station-list-info { flex: 1; min-width: 0; }
.station-list-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-list-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.station-list-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ─── Country Grid ──────────────────────────────────────────── */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.country-card:hover {
  background: var(--surface-2);
  border-color: rgba(19,200,236,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.country-flag { font-size: 2rem; line-height: 1; }
.country-name { font-weight: 600; font-size: 0.875rem; }
.country-count { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f1e35 0%, #0a0f1a 60%);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
html[data-theme="light"] .hero { background: linear-gradient(135deg, #e2f5f9 0%, #f8fafc 60%); }
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(19,200,236,0.08) 0%, transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 28px;
}
.hero-search {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.hero-search input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 20px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.hero-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: rgba(255,255,255,0.08);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.hero-stat span { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Section ───────────────────────────────────────────────── */
.section { margin-bottom: 40px; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .material-icons { color: var(--accent); font-size: 1.2rem; }
.section-link {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 1; }

/* ─── Player Page ───────────────────────────────────────────── */
.player-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}
.player-hero {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.player-hero::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(19,200,236,0.05) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.player-station-logo {
  width: 160px; height: 160px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  background: var(--surface-3);
}
.player-station-logo-placeholder {
  width: 160px; height: 160px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.player-info { display: flex; flex-direction: column; gap: 16px; }
.player-info h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.player-info .country { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.player-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.play-pause-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.play-pause-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--accent-glow);
}
.play-pause-btn .material-icons { font-size: 1.5rem; }
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.volume-slider {
  -webkit-appearance: none;
  width: 100px; height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--green);
  border-radius: var(--radius-xl);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-badge.offline {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.3);
  color: var(--red);
}
.favorite-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.favorite-btn.active, .favorite-btn:hover {
  color: #f87171;
  border-color: #f87171;
  background: rgba(248,113,113,0.08);
}
.favorite-btn.active .material-icons { font-variation-settings: 'FILL' 1; }
.report-modal[hidden] { display: none; }
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 18, 0.72);
}
.report-modal-dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 8vh auto 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xl);
}
.report-modal-dialog textarea {
  resize: vertical;
  min-height: 96px;
}
.report-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Visualizer */
#visualizer-canvas {
  width: 100%;
  height: 80px;
  border-radius: var(--radius);
  background: var(--surface-3);
  display: block;
  margin: 16px 0;
}

/* Player Info Panels */
.player-panels {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.player-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.player-panel h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.social-link:last-child { border-bottom: none; }
.social-link:hover { color: var(--accent); }
.social-link .material-icons { font-size: 1.1rem; width: 20px; }
.claim-box {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.claim-box p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.5; }

/* ─── AdSense Placeholder ───────────────────────────────────── */
.ad-slot {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-label span { color: var(--text-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--surface-2); }

/* ─── Dashboard ─────────────────────────────────────────────── */
.dashboard-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 32px;
}
.claimed-station-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: all var(--transition);
}
.claimed-station-card:hover { border-color: rgba(19,200,236,0.3); }
.claim-status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}
.claim-status-badge.pending { background: rgba(234,179,8,0.1); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.claim-status-badge.approved { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.claim-status-badge.rejected { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.report-filter-active {
  border-color: var(--accent);
  color: var(--accent);
}
.report-status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}
.report-status-badge.new { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.report-status-badge.reviewed { background: rgba(234,179,8,0.1); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.report-status-badge.resolved { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }

/* ─── Search & Browse ───────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-input-wrap .material-icons {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
}
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-toggle button {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.view-toggle button.active, .view-toggle button:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  padding: 0 8px;
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.pagination .current {
  background: var(--accent);
  color: #0a0f1a;
  border-color: var(--accent);
  font-weight: 700;
}
.pagination .dots { border: none; }

/* ─── Sticky Mini Player ────────────────────────────────────── */
.mini-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: rgba(10,15,26,0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
html[data-theme="light"] .mini-player { background: rgba(255,255,255,0.95); }
.mini-player.visible { transform: translateY(0); }
.mini-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.mini-visualizer {
  flex: 2 1 160px;
  min-width: 140px;
  height: 24px;
  border-radius: var(--radius);
  background: var(--surface-3);
  display: block;
}
.mini-player-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--surface);
  flex-shrink: 0;
}
.mini-player-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player-country { font-size: 0.75rem; color: var(--text-muted); }
.mini-player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.mini-play-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px var(--accent-glow); }
.mini-player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.mini-loading {
  display: none;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.mini-player.loading .mini-loading { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-player-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.mini-player-close:hover { color: var(--text); }

/* ─── Alerts & Notices ──────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-info { background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.alert-warn { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.3); color: #eab308; }
.alert .material-icons { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 24px 24px;
  margin-top: 48px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; margin-top: 10px; line-height: 1.6; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ─── Login Page ────────────────────────────────────────────── */
.login-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.login-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.login-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.google-btn:hover { background: #f5f5f5; box-shadow: 0 4px 16px rgba(0,0,0,0.3); transform: translateY(-1px); }
.google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state .material-icons { font-size: 3rem; color: var(--text-dim); display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* ─── Loading Skeleton ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .player-panels { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { max-width: 200px; }
  .hero { padding: 36px 20px; }
  .hero-stats { gap: 20px; }
  .stations-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .countries-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .player-hero { grid-template-columns: 1fr; }
  .player-station-logo, .player-station-logo-placeholder { width: 100%; height: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .container { padding: 0 16px; }
  .mini-player { padding: 0 16px; gap: 10px; }
  .mini-player-volume { display: none; }
  .mini-visualizer { display: block; }
}
@media (max-width: 480px) {
  .stations-grid { grid-template-columns: repeat(2, 1fr); }
  .countries-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { gap: 16px; }
  .hero h1 { font-size: 1.5rem; }
  .mini-visualizer { display: none; }
}

/* ─── Material Icons ────────────────────────────────────────── */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: 'FILL' 0;
  vertical-align: middle;
}

/* ─── Utilities ─────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
