/* ══════════════════════════════════════════════
   RADIOPLIX — Premium Dark Theme
   Tune into the world
   ══════════════════════════════════════════════ */

:root {
  /* Backgrounds - Dark (default) */
  --bg-0: #020617;
  --bg-1: #0B0F1A;
  --bg-2: #0F172A;
  --bg-3: #1E293B;
  --bg-4: #334155;

  /* Brand palette */
  --pink:   #FF2D95;
  --purple: #7B2DFF;
  --cyan:   #00E5FF;
  --green:  #00FF88;
  --gold:   #FFB800;

  /* Gradient */
  --grad: linear-gradient(90deg, #FF2D95, #7B2DFF, #00E5FF, #00FF88, #FFB800);
  --grad-v: linear-gradient(180deg, #FF2D95, #7B2DFF, #00E5FF, #00FF88, #FFB800);
  --grad-45: linear-gradient(135deg, #FF2D95, #7B2DFF, #00E5FF, #00FF88, #FFB800);

  /* Text */
  --t1: #FFFFFF;
  --t2: #94A3B8;
  --t3: #64748B;

  /* Borders */
  --b1: #1F2937;
  --b2: #334155;

  /* Glows */
  --glow-pink:   0 0 20px rgba(255,45,149,.45);
  --glow-purple: 0 0 20px rgba(123,45,255,.45);
  --glow-cyan:   0 0 20px rgba(0,229,255,.4);
  --glow-green:  0 0 20px rgba(0,255,136,.4);
  --glow-gold:   0 0 20px rgba(255,184,0,.4);

  /* Radius */
  --r1: 8px;
  --r2: 12px;
  --r3: 16px;
  --r4: 24px;

  --ease: all .3s cubic-bezier(.4,0,.2,1);

  /* Layout admin */
  --admin-sidebar: #0F172A;
  --admin-header: #0F172A;
  --admin-accent: #FF2D95;
}

/* Light theme */
[data-theme="light"] {
  --bg-0: #F8FAFC;
  --bg-1: #FFFFFF;
  --bg-2: #F1F5F9;
  --bg-3: #E2E8F0;
  --bg-4: #CBD5E1;

  --t1: #0F172A;
  --t2: #475569;
  --t3: #64748B;

  --b1: #E2E8F0;
  --b2: #CBD5E1;

  --admin-sidebar: #FFFFFF;
  --admin-header: #FFFFFF;
  --admin-accent: #7B2DFF;
}

/* ── Reset & Base ───────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--t1);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── Animated background ────────────────────── */
.page-wrapper {
  position: relative;
  min-height: 100vh;
}

.page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%, rgba(123,45,255,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(255,45,149,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0,229,255,.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Grid lines */
.page-wrapper::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* ── Typography ─────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }

h1 { font-size: clamp(2.2rem,5vw,4rem); }
h2 { font-size: clamp(1.75rem,3.5vw,2.75rem); }
h3 { font-size: clamp(1.25rem,2.5vw,1.75rem); }
h4 { font-size: 1.125rem; }

.gradient-text {
  background: var(--grad);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s ease infinite;
}

@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Layout ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Loader ─────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .6s ease, visibility .6s;
}

.loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  animation: loaderPulse 2s ease-in-out infinite;
  margin-bottom: 24px;
}

.loader-logo svg { filter: drop-shadow(0 0 20px rgba(0,229,255,.6)); }

@keyframes loaderPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.1); opacity: .8; }
}

.loader-text {
  color: var(--t2);
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: .9375rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--r2);
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}
.btn:hover::before { background: rgba(255,255,255,.07); }

.btn-primary {
  background: var(--grad);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: var(--glow-pink);
  animation: btnGrad 4s ease infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255,45,149,.6), 0 8px 30px rgba(0,0,0,.3);
}

@keyframes btnGrad {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--t1);
  border: 1px solid var(--b2);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--b1);
}
.btn-ghost:hover {
  color: var(--t1);
  border-color: var(--b2);
  background: var(--bg-3);
}

.btn-danger {
  background: rgba(255,45,149,.15);
  color: var(--pink);
  border: 1px solid rgba(255,45,149,.3);
}
.btn-danger:hover {
  background: rgba(255,45,149,.25);
  box-shadow: var(--glow-pink);
}

.btn-sm  { padding: 9px 18px; font-size: .8125rem; border-radius: var(--r1); }
.btn-xs  { padding: 6px 12px; font-size: .75rem; border-radius: 6px; }
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Inputs ──────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-size: .875rem; font-weight: 500; color: var(--t2); }

.input {
  width: 100%;
  padding: 13px 16px;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--t1);
  background: var(--bg-3);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  transition: var(--ease);
  outline: none;
  appearance: none;
}

.input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,45,255,.2);
}

.input::placeholder { color: var(--t3); }

textarea.input { resize: vertical; min-height: 100px; }

select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── Cards ───────────────────────────────────── */
.card {
  background: rgba(15,23,42,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  padding: 24px;
  transition: var(--ease);
}

.card:hover {
  border-color: var(--b2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.card-glow:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
}

/* ── Alerts ──────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--r2);
  font-size: .875rem;
  margin-bottom: 20px;
}
.alert-error {
  background: rgba(255,45,149,.08);
  border: 1px solid rgba(255,45,149,.3);
  color: #ff7db8;
}
.alert-success {
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.3);
  color: #5dffa8;
}
.alert p { margin-bottom: 4px; }
.alert p:last-child { margin-bottom: 0; }

/* ── Badge ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-pending  { background: rgba(255,184,0,.12); border: 1px solid rgba(255,184,0,.4); color: var(--gold); }
.badge-approved { background: rgba(0,255,136,.12); border: 1px solid rgba(0,255,136,.4); color: var(--green); }
.badge-rejected { background: rgba(255,45,149,.12); border: 1px solid rgba(255,45,149,.4); color: var(--pink); }
.badge-live     { background: rgba(0,255,136,.12); border: 1px solid rgba(0,255,136,.4); color: var(--green); }
.badge-admin    { background: rgba(123,45,255,.12); border: 1px solid rgba(123,45,255,.4); color: #a78bfa; }
.badge-owner    { background: rgba(0,229,255,.12); border: 1px solid rgba(0,229,255,.4); color: var(--cyan); }

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge-approved::before { animation: livePulse 1.5s infinite; }

@keyframes livePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.4); }
}

/* ── Navbar ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 900;
  background: rgba(2,6,23,.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--b1);
  transition: var(--ease);
}

.navbar.scrolled {
  background: rgba(2,6,23,.97);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--t1);
  text-decoration: none;
  letter-spacing: -.03em;
}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--grad);
  border-radius: var(--r1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-pink);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--t2);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-radius: var(--r1);
  transition: var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--t1);
  background: rgba(30,41,59,.6);
}

.nav-menu a.active {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* User dropdown */
.user-dropdown { position: relative; }

.user-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-3);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  color: var(--t1);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ease);
}
.user-dropdown-trigger:hover { border-color: var(--b2); }

.user-avatar {
  width: 26px; height: 26px;
  background: var(--grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
}

.user-avatar-lg {
  width: 40px; height: 40px;
  background: var(--grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  flex-shrink: 0;
}

.chevron { transition: transform .2s; }
.user-dropdown.open .chevron { transform: rotate(180deg); }

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-2);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top right;
  transition: var(--ease);
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.user-dropdown.open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 4px;
}

.user-menu-name  { font-weight: 600; font-size: .875rem; }
.user-menu-role  { font-size: .75rem; color: var(--t3); }

.user-menu-divider { height: 1px; background: var(--b1); margin: 4px 0; }

.user-menu a,
.user-menu-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  color: var(--t2);
  font-size: .8375rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--r1);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  text-align: left;
}
.user-menu a:hover, .user-menu-logout:hover {
  background: var(--bg-3);
  color: var(--t1);
}
.user-menu-logout { color: var(--pink); }
.user-menu-logout:hover { background: rgba(255,45,149,.08); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: var(--ease);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,45,255,.12) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--t2);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

/* Hero search */
.hero-search {
  position: relative;
  margin-bottom: 20px;
}

.hero-search .input {
  padding: 18px 160px 18px 20px;
  font-size: 1rem;
  background: rgba(15,23,42,.9);
  border-color: var(--b2);
  border-radius: var(--r3);
  height: 60px;
}

.hero-search .input:focus { border-color: var(--cyan); }

.hero-search .btn {
  position: absolute;
  right: 6px; top: 6px; bottom: 6px;
  border-radius: var(--r2);
  padding: 0 24px;
}

/* Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.tag {
  padding: 7px 16px;
  background: rgba(30,41,59,.5);
  border: 1px solid var(--b1);
  border-radius: 100px;
  font-size: .8125rem;
  color: var(--t2);
  cursor: pointer;
  transition: var(--ease);
  font-weight: 500;
}
.tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,.06);
  transform: translateY(-1px);
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 12px;
  border-top: 1px solid var(--b1);
}

.stat-item { }

.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: .75rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}

/* Hero map */
.hero-visual {
  position: relative;
  height: 520px;
  background: var(--bg-1);
  border-radius: var(--r4);
  border: 1px solid var(--b1);
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(123,45,255,.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0,229,255,.1) 0%, transparent 50%);
}

/* World map SVG */
.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.world-map-svg path {
  fill: rgba(30,41,59,.7);
  stroke: rgba(51,65,85,.8);
  stroke-width: .5;
  transition: fill .3s;
}

.world-map-svg path:hover { fill: rgba(123,45,255,.3); }

/* Map dots */
.map-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: .3;
  animation: mapPing 2s ease-out infinite;
}

.map-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: inherit;
  opacity: .1;
  animation: mapPing 2s ease-out .5s infinite;
}

@keyframes mapPing {
  0%  { transform: scale(1); opacity: .4; }
  100%{ transform: scale(2.5); opacity: 0; }
}

.map-dot-pink   { background: var(--pink);   box-shadow: 0 0 10px var(--pink); }
.map-dot-cyan   { background: var(--cyan);   box-shadow: 0 0 10px var(--cyan); }
.map-dot-green  { background: var(--green);  box-shadow: 0 0 10px var(--green); }
.map-dot-purple { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.map-dot-gold   { background: var(--gold);   box-shadow: 0 0 10px var(--gold); }

.map-tooltip {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--b2);
  border-radius: var(--r1);
  padding: 6px 12px;
  font-size: .8125rem;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  transform: translate(-50%, -120%);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* Floating card on map */
.map-now-playing {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(15,23,42,.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--b2);
  border-radius: var(--r3);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.map-station-logo {
  width: 40px; height: 40px;
  background: var(--bg-3);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.map-station-name  { font-weight: 600; font-size: .875rem; }
.map-station-meta  { font-size: .75rem; color: var(--t2); }

/* ── Section ─────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 44px;
}

.section-title { font-size: 1.625rem; }

.section-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-link {
  color: var(--t2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--ease);
}
.section-link:hover { color: var(--cyan); }

/* ── Station Cards ───────────────────────────── */
.stations-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.station-card {
  position: relative;
  background: rgba(15,23,42,.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  padding: 22px 18px 18px;
  text-align: center;
  transition: var(--ease);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: var(--t1);
}

.station-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .4s;
}

.station-card:hover {
  border-color: rgba(0,229,255,.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35), var(--glow-cyan);
}
.station-card:hover::before { opacity: .04; }

.station-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 10px;
  background: rgba(0,255,136,.12);
  border: 1px solid rgba(0,255,136,.4);
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .08em;
}

.station-logo {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  background: var(--bg-3);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--b1);
  position: relative;
  z-index: 1;
}

.station-logo img { width: 100%; height: 100%; object-fit: cover; }

.station-logo-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.station-name {
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative; z-index: 1;
}

.station-location {
  font-size: .8rem;
  color: var(--t3);
  margin-bottom: 14px;
  position: relative; z-index: 1;
}

.station-play-btn {
  width: 100%;
  position: relative; z-index: 1;
}

/* Station list item */
.stations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.station-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(15,23,42,.7);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  transition: var(--ease);
  cursor: pointer;
}

.station-item:hover {
  border-color: rgba(0,229,255,.3);
  background: rgba(15,23,42,.95);
  transform: translateX(4px);
}

.station-item-thumb {
  width: 52px; height: 52px;
  background: var(--bg-3);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--b1);
  font-size: 1.25rem;
}

.station-item-thumb img { width:100%; height:100%; object-fit:cover; }

.station-item-info { flex: 1; min-width: 0; }

.station-item-name {
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.station-item-meta { font-size: .8rem; color: var(--t3); }

.station-item-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.genre-pill {
  padding: 2px 8px;
  background: rgba(123,45,255,.12);
  border: 1px solid rgba(123,45,255,.2);
  border-radius: 100px;
  font-size: .7rem;
  color: #a78bfa;
  font-weight: 500;
}

.station-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fav-btn { transition: var(--ease); }
.fav-btn.active svg { fill: var(--pink); color: var(--pink); }
.fav-btn:hover { color: var(--pink); }

/* ── Genre Grid ──────────────────────────────── */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background: rgba(15,23,42,.8);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  text-decoration: none;
  text-align: center;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: var(--t1);
}

.genre-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .4s;
}

.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  border-color: var(--purple);
}
.genre-card:hover::after { opacity: .06; }

.genre-icon {
  width: 56px; height: 56px;
  background: var(--bg-3);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  position: relative; z-index: 1;
  border: 1px solid var(--b1);
  transition: var(--ease);
}

.genre-card:hover .genre-icon {
  background: rgba(123,45,255,.15);
  border-color: rgba(123,45,255,.4);
  box-shadow: var(--glow-purple);
}

.genre-icon svg { color: var(--purple); transition: var(--ease); }
.genre-card:hover .genre-icon svg { color: #c4b5fd; }

.genre-name {
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}

.genre-count {
  font-size: .75rem;
  color: var(--t3);
  position: relative; z-index: 1;
}

/* ── Floating Player — estilos en src/Views/partials/player.php ── */

/* ── Auth Pages ──────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  background: var(--bg-0) !important;
  position: relative;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(123,45,255,.15) 0%, transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(255,45,149,.1) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-1);
  border: 1px solid var(--b1);
  border-radius: var(--r4);
  padding: 44px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo { margin-bottom: 20px; }

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-header p { color: var(--t2); }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--b1);
  font-size: .9375rem;
  color: var(--t2);
}
.auth-footer a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Dashboard ───────────────────────────────── */
.dashboard-layout {
  padding: 100px 0 80px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 90px;
  background: rgba(15,23,42,.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  overflow: hidden;
}

.sidebar-user {
  padding: 24px;
  border-bottom: 1px solid var(--b1);
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-avatar {
  width: 46px; height: 46px;
  background: var(--grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-name { font-weight: 700; font-size: .9375rem; }
.sidebar-role { font-size: .75rem; color: var(--t3); margin-top: 2px; }

.sidebar-nav { padding: 12px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--t2);
  text-decoration: none;
  border-radius: var(--r1);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--ease);
  margin-bottom: 2px;
}

.sidebar-nav a:hover {
  color: var(--t1);
  background: var(--bg-3);
}

.sidebar-nav a.active {
  color: var(--t1);
  background: rgba(0,229,255,.08);
  border-left: 3px solid var(--cyan);
  color: var(--cyan);
}

.sidebar-nav a svg { flex-shrink: 0; }

/* Dashboard main */
.dashboard-main { min-width: 0; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dashboard-title { font-size: 1.625rem; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(15,23,42,.8);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  padding: 22px;
  transition: var(--ease);
  cursor: default;
}

.stat-card:hover {
  border-color: var(--b2);
  transform: translateY(-2px);
}

.stat-card-icon {
  width: 44px; height: 44px;
  background: var(--bg-3);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 4px;
}

.stat-card-label { font-size: .8rem; color: var(--t3); text-transform: uppercase; letter-spacing: .06em; }

/* ── Tables ──────────────────────────────────── */
.table-container {
  background: var(--bg-2);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.table thead tr {
  background: var(--bg-3);
}

.table th {
  padding: 14px 20px;
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--b1);
  white-space: nowrap;
}

.table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--b1);
  vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }

.table tbody tr:hover { background: var(--bg-3); }

/* ── Forms (station) ─────────────────────────── */
.form-card {
  background: rgba(15,23,42,.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .span-2 { grid-column: 1/-1; }

.form-section-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--b1);
}

/* Genres checkboxes */
.genres-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-checkbox {
  display: none;
}

.genre-label {
  padding: 8px 16px;
  background: var(--bg-3);
  border: 1px solid var(--b1);
  border-radius: 100px;
  font-size: .8125rem;
  color: var(--t2);
  cursor: pointer;
  transition: var(--ease);
  font-weight: 500;
}

.genre-checkbox:checked + .genre-label {
  background: rgba(123,45,255,.15);
  border-color: var(--purple);
  color: #c4b5fd;
}

.genre-label:hover {
  border-color: var(--b2);
  color: var(--t1);
}

/* ── Admin Layout ────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; padding-top: 70px; }

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--admin-sidebar);
  border-right: 1px solid var(--b1);
  position: fixed;
  top: 70px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}

.admin-sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--b1);
}

.admin-sidebar-title {
  font-size: .7rem;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.admin-nav { padding: 12px; }

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--t2);
  text-decoration: none;
  border-radius: var(--r1);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--ease);
  margin-bottom: 3px;
}

.admin-nav a:hover {
  color: var(--t1);
  background: var(--bg-3);
}

.admin-nav a.active {
  background: rgba(255,45,149,.08);
  color: var(--admin-accent);
  border-left: 3px solid var(--admin-accent);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 36px 40px;
  min-width: 0;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--b1);
}

.admin-page-title { font-size: 1.75rem; }
.admin-page-sub   { color: var(--t2); font-size: .875rem; margin-top: 4px; }

/* Admin stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

/* ── Filters bar ─────────────────────────────── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
}

.filter-select {
  padding: 9px 14px;
  background: var(--bg-3);
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  color: var(--t1);
  font-size: .8375rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  transition: var(--ease);
}

.filter-select:focus { border-color: var(--cyan); }

.search-bar {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.search-bar .input {
  border-radius: var(--r1) 0 0 var(--r1);
  border-right: none;
}

.search-bar .btn {
  border-radius: 0 var(--r1) var(--r1) 0;
  flex-shrink: 0;
}

/* ── Empty State ─────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-icon {
  width: 80px; height: 80px;
  background: var(--bg-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  border: 1px solid var(--b1);
}

.empty-state h3 { margin-bottom: 10px; }
.empty-state p  { color: var(--t2); margin-bottom: 24px; }

/* ── Notification ────────────────────────────── */
.notification {
  position: fixed;
  top: 90px; right: 24px;
  padding: 14px 22px;
  border-radius: var(--r2);
  font-weight: 600;
  font-size: .875rem;
  z-index: 9000;
  transform: translateX(calc(100% + 40px));
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  max-width: 320px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.show { transform: translateX(0); }

.notification-success {
  background: rgba(0,255,136,.1);
  border: 1px solid rgba(0,255,136,.4);
  color: var(--green);
}
.notification-error {
  background: rgba(255,45,149,.1);
  border: 1px solid rgba(255,45,149,.4);
  color: var(--pink);
}
.notification-info {
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.4);
  color: var(--cyan);
}

/* ── Station View Page ───────────────────────── */
.station-hero {
  padding: 120px 0 60px;
  background: radial-gradient(ellipse at center top, rgba(123,45,255,.1) 0%, transparent 60%);
}

.station-hero-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: start;
}

.station-hero-logo {
  width: 120px; height: 120px;
  background: var(--bg-3);
  border-radius: var(--r3);
  border: 1px solid var(--b2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 3rem;
}

.station-hero-logo img { width:100%; height:100%; object-fit:cover; }

.station-hero-name { font-size: 2.5rem; font-weight: 900; letter-spacing: -.04em; margin-bottom: 8px; }

.station-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--t2);
  font-size: .875rem;
  margin-bottom: 16px;
}

.station-hero-meta svg { color: var(--t3); }

.station-hero-desc { color: var(--t2); max-width: 600px; line-height: 1.7; }

.station-hero-actions { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }

/* ── Footer ──────────────────────────────────── */
.footer {
  padding: 70px 0 30px;
  background: var(--bg-1);
  border-top: 1px solid var(--b1);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--t2);
  font-size: .875rem;
  margin-top: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  font-size: .75rem;
  color: var(--t3);
}

.footer-title {
  font-size: .75rem;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: var(--t2);
  text-decoration: none;
  font-size: .875rem;
  transition: var(--ease);
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--b1);
}
.footer-bottom p { color: var(--t3); font-size: .8125rem; }

/* ── 404 ─────────────────────────────────────── */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.page-404-code {
  font-size: 8rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.06em;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1200px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 24px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-tags { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { height: 380px; order: -1; }

  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .station-hero-inner { grid-template-columns: auto 1fr; }
  .station-hero-actions { grid-column: 1/-1; flex-direction: row; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(2,6,23,.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--b1);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
    z-index: 890;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; }

  .nav-hamburger { display: flex; }

  .hero-search .input { padding-right: 20px; }
  .hero-search .btn {
    position: static;
    width: 100%;
    margin-top: 10px;
    border-radius: var(--r2);
  }

  .hero-search { flex-direction: column; }

  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* floating player responsive — en player.php */

  .table { font-size: .8rem; }
  .table th, .table td { padding: 10px 14px; }

  .admin-stats { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }

  .auth-card { padding: 30px 24px; }

  .station-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .station-hero-logo { margin: 0 auto; }
  .station-hero-meta { justify-content: center; }
  .station-hero-desc { margin: 0 auto; }
  .station-hero-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .stations-carousel { grid-template-columns: repeat(2, 1fr); }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ── Utilities ───────────────────────────────── */
.text-gradient { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted { color: var(--t3); }
.text-secondary { color: var(--t2); }
.mt-0  { margin-top: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
