:root {
    /* Colores Base (Cambiables con Bias Mode) */
    --neon-pink: #FF006E;
    --neon-purple: #8338EC;
    --neon-cyan: #00F5FF;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --dark-bg: #050508;
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--dark-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* --- ✨ EFECTOS DE FONDO --- */
#particleCanvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.cyber-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 10% 20%, rgba(var(--neon-pink-rgb), 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(var(--neon-cyan-rgb), 0.15) 0%, transparent 40%);
    transition: all 0.8s ease;
}

/* --- 🖱️ ANIMACIÓN DE CLIC (RIPPLE) --- */
.click-ripple {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    z-index: 9999;
}

@keyframes rippleAnim {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* --- 💖 FANCHANT (CORAZONES FLOTANTES) --- */
.floating-heart {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: 9998;
    animation: floatUp 2s linear forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-150px) scale(1.5) rotate(20deg); opacity: 0; }
}

/* --- ACCIONES SUPERIORES E IDIOMA --- */
.top-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.top-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
}

.specials-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    width: 180px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.specials-menu.show { display: flex; }

.special-item {
    padding: 12px;
    font-size: 13px;
    color: #fff;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
}
.special-item:hover { background: rgba(255,255,255,0.1); }
.special-item:last-child { border-bottom: none; }
.special-item b { color: var(--neon-cyan); display: block; margin-bottom: 3px; font-family: 'Outfit', sans-serif;}

.main-wrapper {
    flex: 1;
    padding: 80px 20px 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* --- 🎨 BIAS MODE SELECTOR --- */
.bias-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.bias-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-right: 10px;
}

.bias-btn {
    width: 25px; height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.bias-btn:hover, .bias-btn.active { transform: scale(1.2); border-color: #fff; }
.theme-original { background: linear-gradient(45deg, #FF006E, #00F5FF); }
.theme-army { background: linear-gradient(45deg, #8A2BE2, #DDA0DD); }
.theme-astro { background: linear-gradient(45deg, #8F1D78, #411370); } 
.theme-treasure { background: linear-gradient(45deg, #00BFFF, #E0FFFF); }

/* Glass Player Card */
.glass-player {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    position: relative;
    transition: all 0.5s ease;
}

.glass-player:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3), 0 40px 100px rgba(0,0,0,0.6);
}

.visual-side { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

.logo-sphere {
    width: 200px; height: 200px;
    border-radius: 50%; padding: 8px; 
    background: transparent; border: 2px solid var(--neon-pink);
    box-shadow: 0 0 60px var(--neon-pink), inset 0 0 20px var(--neon-purple);
    margin-bottom: 10px; position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.logo-sphere img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
    border: 3px solid var(--neon-cyan); box-shadow: 0 0 15px var(--neon-cyan);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.is-playing .logo-sphere { animation: pulseLogo 2s infinite ease-in-out; }

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* --- ✨ ANIMACIÓN DEL ECUALIZADOR --- */
.wave-container { height: 40px; display: flex; align-items: flex-end; gap: 6px; margin-top: 20px; opacity: 0; transition: opacity 0.5s ease; }
.is-playing .wave-container { opacity: 1; }
.wave-bar {
    width: 6px; height: 10px;
    background: linear-gradient(to top, var(--neon-cyan), var(--neon-purple));
    border-radius: 10px; 
    box-shadow: 0 0 10px var(--neon-cyan);
}
.is-playing .wave-bar { animation: bounceWave 1s infinite ease-in-out alternate; }
.wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-bar:nth-child(2) { animation-delay: 0.4s; }
.wave-bar:nth-child(3) { animation-delay: 0.0s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes bounceWave {
    0% { height: 10px; }
    100% { height: 40px; }
}

.info-side { display: flex; flex-direction: column; justify-content: center; }

.live-tag { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--neon-cyan); text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; transition: color 0.5s ease; }
.live-dot { width: 8px; height: 8px; background: var(--neon-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--neon-cyan); animation: blink 1.5s infinite; transition: background 0.5s ease, box-shadow 0.5s ease; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

#songTitle { font-family: 'Outfit', sans-serif; font-size: 38px; font-weight: 800; margin: 0; line-height: 1.1; background: linear-gradient(to right, #fff, #b0b0b0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
#songArtist { color: var(--text-dim); margin-top: 10px; font-size: 18px; transition: color 0.3s ease; }

.status-warning { color: var(--neon-pink) !important; font-weight: 600; animation: flashText 1s infinite; }
@keyframes flashText { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- 🎛️ CONTROLES PREMIUM RESTAURADOS --- */
.controls-row { margin-top: 40px; display: flex; align-items: center; gap: 15px; }

.play-btn-main {
    width: 80px; height: 80px; border-radius: 50%; border: none;
    background: #fff; color: var(--dark-bg); font-size: 28px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 0 30px rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.play-btn-main:hover { transform: scale(1.1); background: var(--neon-cyan); box-shadow: 0 0 40px var(--neon-cyan); }

.volume-box { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 10px 20px; border-radius: 100px; flex: 1; }
input[type="range"] { flex: 1; accent-color: var(--neon-cyan); height: 4px; cursor: pointer; }

.fanchant-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--neon-pink);
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease; font-size: 18px;
    flex-shrink: 0;
}
.fanchant-btn:hover { background: rgba(255,0,110,0.1); border-color: var(--neon-pink); transform: scale(1.1); box-shadow: 0 0 15px rgba(255,0,110,0.3); }

.messages-mini { margin-top: 40px; border-top: 1px solid var(--glass-border); padding-top: 20px; height: 80px; }
.messages-mini h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); margin-bottom: 15px; }
.message-box { font-size: 13px; color: #fff; display: flex; align-items: center; gap: 10px; transition: opacity 0.5s ease, transform 0.5s ease; opacity: 1; transform: translateY(0); }
.message-fade-out { opacity: 0; transform: translateY(-5px); }
.message-icon { color: var(--neon-pink); font-size: 14px; transition: color 0.5s ease; }

.grid-title { text-align: center; margin-top: 80px; font-family: 'Outfit'; font-size: 24px; letter-spacing: 4px; text-transform: uppercase; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; justify-content: center; }
.program-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; transition: all 0.4s ease; max-width: 300px; margin: 0 auto; width: 100%;}
.program-card:hover { transform: translateY(-10px); border-color: var(--neon-pink); background: rgba(255, 255, 255, 0.05); }
.program-card img { width: 100%; height: 200px; object-fit: cover; }
.program-info { padding: 15px; }
.program-time { font-size: 10px; color: var(--neon-cyan); font-weight: 700; text-transform: uppercase; transition: color 0.5s ease;}
.program-name { font-weight: 700; display: block; margin-top: 5px; }

/* --- BANNER FLOTANTE COUNTDOWN ESPECIALES --- */
.countdown-banner {
    position: fixed; bottom: 30px; right: 30px; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 20px 30px; z-index: 1000; box-shadow: 0 10px 40px rgba(0,0,0,0.6); display: flex; flex-direction: column; align-items: center; transition: all 0.5s ease;
}
.countdown-close { position: absolute; top: 10px; right: 15px; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; transition: color 0.3s ease; }
.countdown-close:hover { color: var(--neon-pink); }
.countdown-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px; color: var(--neon-cyan); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 2px; text-align: center; transition: color 0.5s ease; }
.time-blocks { display: flex; gap: 15px; }
.time-box { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 12px; min-width: 55px; }
.time-num { font-size: 24px; font-weight: 800; color: #fff; font-family: 'Outfit', sans-serif; }
.time-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* --- 📱 BOTÓN FLOTANTE "PEDIR CANCIÓN" --- */
.fab-request {
    position: fixed; bottom: 30px; left: 30px; background: var(--neon-cyan); color: var(--dark-bg); border: none; padding: 15px 25px; border-radius: 30px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; gap: 10px; transition: all 0.3s ease;
}
.fab-request:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 40px var(--neon-cyan); }

/* --- 💬 MODAL DE PEDIDOS --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-content { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 30px; padding: 40px; text-align: center; max-width: 400px; width: 90%; transform: translateY(30px); transition: transform 0.3s ease; position: relative; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
.modal-title { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; color: var(--neon-cyan); margin-bottom: 20px; transition: color 0.5s ease; }
.modal-btn { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 15px; text-decoration: none; font-weight: 700; font-size: 16px; transition: all 0.3s ease; }
.btn-twitter { background: #000; color: #fff; border: 1px solid #333; }
.btn-twitter:hover { background: #111; border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.btn-email { background: var(--neon-pink); color: #fff; transition: background 0.5s ease, box-shadow 0.5s ease; }
.btn-email:hover { background: #fff; color: var(--neon-pink); box-shadow: 0 0 20px var(--neon-pink); }

/* Footers */
.action-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-bg); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none; transition: all 0.3s ease; flex-shrink: 0; margin: 0 8px; }
.action-btn:hover { background: #fff; color: #000; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255,255,255,0.1); border-color: #fff; }
.action-btn img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); transition: all 0.3s ease;}
.action-btn:hover img { filter: brightness(0); }

footer { padding: 80px 20px; text-align: center; opacity: 0.8; display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 50px; border-radius: 50%; margin-bottom: 20px; filter: grayscale(1); }
.footer-socials { display: flex; justify-content: center; margin-top: 20px; }

@media (max-width: 800px) {
    .glass-player { grid-template-columns: 1fr; padding: 30px; }
    .info-side { text-align: center; }
    .live-tag { justify-content: center; }
    .controls-row { flex-wrap: wrap; justify-content: center; }
    .volume-box { min-width: 200px; }
    .countdown-banner { bottom: 80px; right: 20px; left: 20px; padding: 15px; }
    .fab-request { bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; justify-content: center;}
    .fab-request:hover { transform: translateX(-50%) translateY(-5px); }
}