/* Neon & holographic inspired theme */
:root {
  --bg: #0a0a14;
  --glass: rgba(255,255,255,0.06);
  --primary: #00e0ff;
  --secondary: #ff00cc;
  --text: #e8f3ff;
  --muted: #9aa8b2;
}
* { box-sizing: border-box; }
body.theme-neon { background: radial-gradient(1200px at 20% -10%, #1a1a2f 0%, #0a0a14 60%), #0a0a14; color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif; }

.header-glow { display:flex; justify-content:space-between; align-items:center; padding:14px 20px; border-bottom:1px solid rgba(255,255,255,0.08); background: linear-gradient(90deg, rgba(0,224,255,0.08), rgba(255,0,204,0.08)); backdrop-filter: blur(8px); }
.brand { display:flex; gap:10px; align-items:center; }
.logo { filter: drop-shadow(0 0 8px var(--primary)); }
.name { font-weight:700; letter-spacing:0.5px; }
.logo-img { width:34px; height:34px; object-fit:contain; filter: drop-shadow(0 0 10px rgba(0,224,255,0.4)); }
.user-info, .header-actions { display:flex; gap:12px; align-items:center; }
.now-text { color: var(--muted); max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { color: var(--text); padding:8px 12px; border-radius:8px; text-decoration:none; background: linear-gradient(135deg, rgba(0,224,255,0.2), rgba(255,0,204,0.2)); border:1px solid rgba(255,255,255,0.15); box-shadow: 0 0 12px rgba(0,224,255,0.25); }
.btn:hover { filter: brightness(1.15) saturate(1.15); }
.btn-primary { background: linear-gradient(135deg, rgba(0,224,255,0.45), rgba(255,0,204,0.35)); border-color: rgba(255,255,255,0.25); }

.nav-glass { display:flex; gap:14px; padding:12px 20px; position:sticky; top:0; background: var(--glass); backdrop-filter: blur(8px); border-bottom:1px solid rgba(255,255,255,0.08); }
.nav-glass a { color: var(--text); text-decoration:none; padding:8px 10px; border-radius:8px; }
.nav-glass a:hover { background: rgba(255,255,255,0.06); }

.container { max-width: 1280px; margin: 20px auto; padding: 0 20px; }
.card { background: var(--glass); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px; margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 25px rgba(0,0,0,0.3); }
.card h2 { margin-top: 0; }
.card h3 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { text-align: left; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="password"], input[type="file"], select, textarea { width: 100%; padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: var(--text); }
label { display:block; margin: 12px 0 6px; color: var(--muted); }
form .actions { display:flex; gap: 10px; margin-top: 12px; }

/* Resaltado de canción en reproducción en la biblioteca */
.row-playing { background: rgba(0,224,255,0.14); box-shadow: inset 0 0 0 2px rgba(0,224,255,0.35); }
.row-playing td { color: #fff; }

.footer-glow { padding: 16px 20px; text-align:center; color: var(--muted); border-top:1px solid rgba(255,255,255,0.08); background: linear-gradient(90deg, rgba(255,0,204,0.08), rgba(0,224,255,0.08)); }

/* Player public */
.player { display:flex; flex-direction:column; gap:14px; align-items:center; padding: 20px; }
.player .now, .player .next, .player .meta { color: var(--muted); }
.led { width: 10px; height: 10px; border-radius: 50%; background: #c00; box-shadow: 0 0 10px #c00; display:inline-block; margin-right: 6px; }
.led.live { background: #0f0; box-shadow: 0 0 10px #0f0; }

/* Hero */
.hero { display:grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items:center; background: radial-gradient(900px at 80% -40%, rgba(255,0,204,0.12), transparent), radial-gradient(900px at -20% 140%, rgba(0,224,255,0.12), transparent), var(--glass); }
.hero-content h1 { font-size: 28px; margin: 0 0 6px; }
.hero-content p { color: var(--muted); margin: 0 0 12px; }
.hero .cta { display:flex; gap:10px; align-items:center; }
.hero-player .badge { display:inline-block; margin-top: 8px; }

/* Chat */
.chat-box { max-width: 700px; width: 100%; }
.chat-messages { height: 260px; overflow-y: auto; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px; }
.chat-message { margin-bottom: 8px; }
.chat-message .author { font-weight: 600; color: var(--primary); }
.chat-message .time { margin-left: 8px; opacity: 0.7; font-size: 0.85em; }
.chat-input { display:flex; gap:8px; margin-top:10px; }
.chat-input input { flex: 1; }

/* Chat flotante (oyente) */
.chat-floating { position: fixed; right: 16px; bottom: 16px; width: 360px; max-height: 70vh; z-index: 1000; }
.chat-floating .chat-messages { height: calc(70vh - 120px); min-height: 180px; }
.chat-floating { box-shadow: 0 10px 40px rgba(0,0,0,0.45); }

.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* Variantes de grid para admin */
.grid-wide { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-span-full { grid-column: 1 / -1; }
.grid-span-2 { grid-column: span 2; }
.service { min-height: 120px; }
.social-links .btn { display:inline-block; margin-right:8px; }
.badge { display:inline-block; padding:6px 8px; border-radius: 10px; border:1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.08); }

/* Utilidades */
.muted { color: var(--muted); }

/* Cuadrícula de programación (oyente) */
#schedule-grid { width:100%; border-collapse: collapse; }
#schedule-grid th, #schedule-grid td { padding:8px; border-bottom:1px solid rgba(255,255,255,0.08); }
#schedule-grid th { font-size:12px; color: var(--muted); }
#schedule-grid td { font-size:12px; vertical-align: top; }
#schedule-grid td .small { font-size:12px; color: var(--text); }
#schedule-grid td .cell-meta { font-size:11px; color: var(--muted); }

/* Header social buttons */
.social-btns { display:flex; gap:8px; align-items:center; }
.btn-icon { padding:6px; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; }
.btn-icon .icon { width:18px; height:18px; fill: var(--text); display:block; }
.btn-icon.facebook .icon { fill: #1877F2; }
.btn-icon.twitter .icon { fill: #1DA1F2; }
.btn-icon.whatsapp .icon { fill: #25D366; }
.btn-icon.telegram .icon { fill: #24A1DE; }

/* Ecualizador en Configuración: barras verticales en una sola fila */
.eq-row { display:flex; gap:10px; align-items:flex-end; justify-content:center; overflow-x:auto; max-width:100%; padding-bottom:6px; }
.eq-grid { background: transparent; border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding: 10px 8px; }
.eq-band { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:6px 0; gap:8px; height:300px; width:48px; flex: 0 0 48px; }
.eq-scale { position:absolute; inset: 18px 8px 30px 8px; border-radius:6px; background: repeating-linear-gradient(to top, rgba(255,255,255,0.15) 0 1px, transparent 1px 24px); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.eq-zero { position:absolute; left:8px; right:8px; height:2px; bottom: calc(50% - 1px); background: rgba(0,224,255,0.85); box-shadow: 0 0 10px rgba(0,224,255,0.45); border-radius:2px; }
.eq-value { min-width: 40px; text-align:center; }
.eq-label { min-width: 40px; text-align:center; }
.eq-vertical { position:relative; z-index:2; display:block; width:28px; height:240px; transform: rotate(180deg); transform-origin: center; writing-mode: vertical-lr; -webkit-appearance: slider-vertical; }
.eq-vertical::-webkit-slider-runnable-track { width:6px; height:100%; background: rgba(255,255,255,0.25); border-radius:3px; }
.eq-vertical::-webkit-slider-thumb { -webkit-appearance: none; width:18px; height:18px; background: #e6e6e6; border: 1px solid rgba(0,0,0,0.15); border-radius:50%; box-shadow: none; }
.eq-vertical::-moz-range-track { width:6px; height:240px; background: rgba(255,255,255,0.25); border-radius:3px; }
.eq-vertical::-moz-range-thumb { width:16px; height:16px; background: #e6e6e6; border: 1px solid rgba(0,0,0,0.15); border-radius:50%; box-shadow: none; }
.eq-toolbar { display:flex; justify-content:flex-end; gap:8px; margin: 8px 0; }
.eq-preset { padding:8px 10px; border-radius:8px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.12); color: var(--text); }
.badge.small { font-size:13px; }
.eq-toolbar { display:flex; justify-content:flex-end; gap:8px; margin: 8px 0; }
.btn-sm { padding:6px 10px; font-size: 14px; }
.badge.small { font-size:12px; color: var(--muted); }

/* Natural labels for EQ values and frequencies */
.eq-value-text { display:block; min-width:40px; text-align:center; font-size:13px; color: rgba(255,255,255,0.9); }
.eq-label-text { display:block; min-width:40px; text-align:center; font-size:12px; color: var(--muted); }

/* (removido) Menú de compartir: ya no se usa */

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .now-text { max-width: 40vw; }
}
@media (max-width: 640px) {
  .nav-glass { flex-wrap: wrap; gap:8px; }
  .now-text { display:none; }
  .grid, .grid-wide, .grid-2 { grid-template-columns: 1fr; }
  .chat-box { max-width: 100%; }
  .chat-floating { left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 60vh; }
  .chat-floating .chat-messages { height: calc(60vh - 120px); }
}
@media (max-width: 1024px) {
  .grid-wide { grid-template-columns: 1fr 1fr; }
}