:root {
    --primary: #B61942; /* Rojo Vino Nuevo */
    --secondary: #9575CE; /* Morado */
    --dark: #000000;
    --glass: rgba(15, 15, 15, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    background: var(--dark);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    overflow: hidden; /* Evita scroll en la app principal */
    height: 100vh;
    width: 100vw;
}

/* =========================================
   1. SWIPER SLIDER (FONDO)
   ========================================= */
.main-slider { 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 1; 
}

.swiper-slide { 
    position: relative; 
    background: #000; 
    overflow: hidden; 
}

/* Imagen de Fondo con Efecto Ken Burns */
.slide-img { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0.55; 
    transition: transform 12s ease-out; 
    transform: scale(1);
}

.swiper-slide-active .slide-img { 
    transform: scale(1.15); 
}

/* --- CONTENIDO DE TEXTO --- */
.slide-content { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    left: 30px; 
    right: 30px; 
    z-index: 5; 
    pointer-events: none; 
}

/* Alineaciones */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Tipografía */
.slide-title { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: var(--secondary); 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    opacity: 0; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.slide-quote { 
    font-size: 1.3rem; 
    font-style: italic; 
    opacity: 0; 
    text-shadow: 0 2px 5px rgba(0,0,0,1); 
    line-height: 1.4;
}

/* Decoración de la Cita */
.text-left .slide-quote { border-left: 4px solid var(--primary); padding-left: 20px; }
.text-right .slide-quote { border-right: 4px solid var(--primary); padding-right: 20px; }
.text-center .slide-quote { border-bottom: 3px solid var(--primary); padding-bottom: 15px; display: inline-block; }


/* =========================================
   2. ANIMACIONES DE TEXTO
   ========================================= */
/* Desde Arriba */
.swiper-slide-active .from-top { animation: slideDown 1s ease forwards 0.5s; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }

/* Desde Abajo */
.swiper-slide-active .from-bottom { animation: slideUp 1s ease forwards 0.5s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* Desde Izquierda */
.swiper-slide-active .from-left { animation: slideLeft 1s ease forwards 0.5s; }
@keyframes slideLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }

/* Desde Derecha */
.swiper-slide-active .from-right { animation: slideRight 1s ease forwards 0.5s; }
@keyframes slideRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }

/* Retardo para la segunda línea */
.swiper-slide-active .delay-1 { animation-delay: 1.2s; }


/* =========================================
   3. HEADER (FLOTANTE)
   ========================================= */
.top-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    padding: 20px; 
    z-index: 50; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.header-logo { 
    height: 45px; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); 
}

.btn-menu { 
    background: none; 
    border: none; 
    color: white; 
    font-size: 24px; 
    cursor: pointer; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); 
}


/* =========================================
   4. REPRODUCTOR DOCK (FIJO ABAJO)
   ========================================= */
.player-container {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 100px;
    background: var(--glass);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 100; 
    padding: 0 15px;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.6);
}

/* Indicador EN VIVO (Flotante sobre el dock) */
.live-indicator {
    position: absolute; 
    top: -14px; 
    right: 20px;
    background: #333; 
    color: #aaa;
    font-size: 10px; 
    font-weight: bold; 
    padding: 4px 12px;
    border-radius: 12px; 
    transition: all 0.3s ease;
    display: flex; 
    align-items: center; 
    gap: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.live-indicator.active { 
    background: #ff0000; 
    color: white; 
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    border-color: #ff0000;
}

.dot { 
    width: 6px; 
    height: 6px; 
    background: currentColor; 
    border-radius: 50%; 
}

.live-indicator.active .dot { 
    animation: blink 1s infinite; 
}
@keyframes blink { 50% { opacity: 0.3; } }


/* Grid interno del reproductor */
.player-grid { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    width: 100%; 
}

/* Botón Play (Pequeño y Elegante) */
.btn-play-pulse {
    width: 50px; 
    height: 50px; 
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #800);
    border: 2px solid rgba(255,255,255,0.15); 
    color: white; 
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(182, 25, 66, 0.4);
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: transform 0.1s;
}

.btn-play-pulse:active { 
    transform: scale(0.95); 
}

/* Carátula Mini */
.mini-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #222;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Info Texto */
.track-info { 
    flex: 1; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.marquee-container { 
    white-space: nowrap; 
    overflow: hidden; 
}
/* Scroll horizontal si el texto es largo (Clase añadida por JS) */
.scroll .marquee-container h3 {
    animation: marquee 10s linear infinite;
    display: inline-block;
    padding-left: 100%;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }


#display-title { 
    font-size: 1rem; 
    color: white; 
    font-weight: bold; 
    margin-bottom: 4px; 
}

#display-artist { 
    font-size: 0.8rem; 
    color: #ccc; 
}

/* Controles Extra (Volumen, EQ) */
.extra-controls { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.btn-icon { 
    background: none; 
    border: none; 
    color: #ccc; 
    font-size: 18px; 
    cursor: pointer; 
    padding: 5px; 
}
.btn-icon:hover { color: white; }

.volume-box { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}
.volume-box i { font-size: 14px; color: #888; }

#vol-slider { 
    width: 60px; 
    height: 4px; 
    accent-color: var(--secondary); 
    cursor: pointer;
}

/* Ocultar volumen en móviles muy estrechos */
@media (max-width: 380px) { 
    .volume-box { display: none; } 
    .slide-title { font-size: 1.8rem; }
}


/* =========================================
   5. MODAL ECUALIZADOR (NUEVO)
   ========================================= */
.eq-modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 200; 
    display: flex; 
    align-items: flex-end; 
    transition: opacity 0.3s; 
    backdrop-filter: blur(4px);
}

.eq-modal-overlay.hidden { 
    opacity: 0; 
    pointer-events: none; 
}

.eq-panel { 
    width: 100%; 
    background: #1a1a1a; 
    border-radius: 20px 20px 0 0; 
    padding: 25px 20px; 
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.eq-modal-overlay.hidden .eq-panel { 
    transform: translateY(100%); 
}

.eq-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 20px; 
    color: white; 
    align-items: center;
}
.eq-header h3 { font-size: 1.1rem; }

/* Visualizador en el Panel EQ */
.eq-visualizer { 
    display: flex; 
    justify-content: center; 
    gap: 5px; 
    height: 60px; 
    align-items: flex-end; 
    margin-bottom: 25px; 
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px;
}

.band-vis { 
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--secondary)); 
    border-radius: 4px 4px 0 0; 
    transition: height 0.1s; 
    height: 10%; 
    max-width: 30px;
}

/* Contenedor de Botones Presets */
.eq-presets-container {
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    padding-bottom: 15px; 
    margin-bottom: 15px;
    scrollbar-width: none; /* Firefox */
}
.eq-presets-container::-webkit-scrollbar { display: none; }

.preset-btn {
    background: #2a2a2a; 
    color: #ccc; 
    border: 1px solid #444; 
    padding: 10px 18px; 
    border-radius: 25px; 
    font-size: 13px; 
    white-space: nowrap; 
    cursor: pointer; 
    transition: all 0.2s;
}

.preset-btn:hover { 
    background: #444; 
    color: white; 
}

.preset-btn.active { 
    background: var(--secondary); 
    color: white; 
    border-color: var(--secondary); 
    font-weight: bold; 
    box-shadow: 0 4px 10px rgba(149, 117, 206, 0.4);
}

/* Sliders Verticales */
.eq-sliders-container { 
    display: flex; 
    justify-content: space-between; 
    height: 180px; 
    padding: 10px 0;
}

.eq-group { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    flex: 1; 
}

/* Input Range Vertical (Compatibilidad) */
.eq-range { 
    writing-mode: vertical-lr; 
    direction: rtl; 
    -webkit-appearance: slider-vertical; /* Chrome/Safari */
    appearance: slider-vertical;
    width: 25px; 
    height: 140px; 
    background: transparent; 
    cursor: pointer; 
}

.eq-label { 
    font-size: 10px; 
    color: #888; 
    margin-top: 10px; 
    font-weight: 500;
}
