@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

/* --- 1. RESET Y FONDO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(-45deg, #0f0f11, #1a1a1e, #0f0f11, #251c0a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    min-height: 100vh;
}
@keyframes gradientBG { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

/* --- 2. ESTRUCTURA --- */
.wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    padding: 20px; 
    padding-top: 80px; /* Espacio para que el clima no tape el logo en móviles */
}

.desktop-layout { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
    width: 100%; 
    max-width: 500px; 
}

.side-panel { display: none; } /* Por defecto oculto en celular */

/* --- 3. REPRODUCTOR --- */
.main-card { 
    background: #1c1c1e; 
    border-radius: 40px; 
    padding: 40px 25px; 
    text-align: center; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.6); 
    width: 100%; 
    position: relative;
    z-index: 10;
}

.logo { width: 160px; margin-bottom: 15px; }
.brand-name { font-size: 2rem; font-weight: 900; letter-spacing: 3px; line-height: 1; margin-bottom: 10px; }
.brand-name span { color: #f39c12; }

/* --- 4. ESTILO ON AIR (RECUPERADO) --- */
.live-tag {
    display: inline-block;
    background: rgba(231, 76, 60, 0.15); /* Fondo rojo suave */
    border: 1px solid #e74c3c; /* Borde rojo */
    color: #e74c3c;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-top: 5px;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
    animation: pulse-red 2s infinite; /* Animación de respiración */
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); transform: scale(1); }
}

/* --- 5. BOTÓN PLAY --- */
.play-button { 
    width: 90px; height: 90px; 
    border-radius: 50%; 
    background: #d00000; 
    border: none; 
    cursor: pointer; 
    margin: 25px auto; 
    display: flex; justify-content: center; align-items: center; 
    box-shadow: 0 10px 30px rgba(208,0,0,0.4); 
    transition: transform 0.2s;
}
.play-button:active { transform: scale(0.95); }
.icon-play { border-left: 25px solid white; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 5px; }
.play-button.playing .icon-play { border: none; width: 25px; height: 30px; border-left: 8px solid white; border-right: 8px solid white; margin-left: 0; }

/* --- 6. VISUALIZADOR --- */
.visualizer-container { 
    height: 60px; /* Un poco más alto para que luzca */
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    gap: 4px; 
    margin: 20px 0; 
    opacity: 0.3; /* Más tenue cuando está apagado */
    transition: opacity 0.5s ease;
}

.visualizer-container.active { 
    opacity: 1; 
}

#visualizer span { 
    width: 6px; 
    height: 5px; /* Altura base */
    background: #f39c12; 
    border-radius: 3px; 
    /* Esta transición es clave para que no se vea "saltón" */
    transition: height 0.15s ease-out; 
    display: inline-block;
}

/* Efecto opcional: que las barras centrales sean un poco más brillantes */
#visualizer span:nth-child(n+5):nth-child(-n+12) {
    background: #ffb339;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
}

/* --- 7. INFO Y METADATA --- */
.info-panel { 
    background: rgba(255,255,255,0.03); 
    padding: 20px; 
    border-radius: 20px; 
    margin-bottom: 25px; 
    border: 1px solid rgba(255,255,255,0.05);
}
.label { color: #f39c12; font-size: 0.7rem; font-weight: 900; letter-spacing: 1px; }
.song-title { font-size: 1.1rem; font-weight: 800; margin-top: 8px; line-height: 1.4; }

/* --- 8. BOTONES DE ACCIÓN (ESTILO MÓVIL) --- */
/* IMPORTANTE: Ahora NO se ocultan en PC */
.mobile-actions { 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    width: 100%; 
    margin-top: 15px;
}

.secondary-btn { 
    flex: 1; 
    background: rgba(255,255,255,0.08); 
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff; 
    padding: 12px 5px; 
    border-radius: 15px; 
    font-weight: 800; 
    font-size: 0.7rem; 
    cursor: pointer; 
    text-transform: uppercase; 
    transition: 0.2s;
}
.secondary-btn:hover { background: rgba(255,255,255,0.15); }

/* --- 9. CLIMA BONITO (CÁPSULA) --- */
.weather-top-right { 
    position: fixed; 
    top: 25px; 
    right: 25px; 
    background: rgba(28, 28, 30, 0.85); /* Fondo oscuro semi-transparente */
    backdrop-filter: blur(10px); /* Efecto vidrio */
    padding: 12px 25px; 
    border-radius: 30px; /* Forma de cápsula */
    border: 1px solid rgba(255,255,255,0.1);
    color: #f39c12; 
    font-weight: 800; 
    font-size: 0.9rem;
    z-index: 2000; /* Siempre arriba */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- 10. PC LAYOUT (MEDIA QUERIES) --- */
@media (min-width: 1024px) {
    .desktop-layout { 
        display: grid; 
        grid-template-columns: 320px 480px 320px; 
        gap: 40px; 
        max-width: 1300px; 
        align-items: start;
    }
    .side-panel { 
        display: block; 
        background: rgba(255,255,255,0.02); 
        border-radius: 35px; 
        padding: 30px; 
        height: 620px; 
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    /* Nota: Ya NO ocultamos .mobile-actions para que los veas también en PC si querés */
}

/* --- 11. FOOTER --- */
.footer-description { 
    width: 100%;
    background: rgba(0,0,0,0.4); 
    padding: 40px 20px; 
    text-align: center; 
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content h2 { color: #f39c12; margin-bottom: 10px; font-weight: 900; }
.footer-content p { color: #999; font-size: 0.9rem; }

/* --- 12. MENÚ LATERAL --- */
.menu-trigger { 
    position: fixed; 
    top: 25px; 
    left: 25px; 
    background: rgba(0,0,0,0.5); /* Fondo para que se vea siempre */
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; 
    font-size: 1.5rem; 
    cursor: pointer; 
    z-index: 2000; 
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.side-nav { position: fixed; left: -350px; top: 0; width: 320px; height: 100%; background: #151517; z-index: 3000; transition: 0.4s; padding: 40px; box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
.side-nav.active { left: 0; }
.close-btn { background: none; border: none; color: #fff; font-size: 2rem; position: absolute; right: 20px; top: 20px; cursor: pointer; }
.menu-content a { display: block; color: #fff; text-decoration: none; padding: 20px 0; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.1rem; }
.menu-logo { width: 120px; margin-bottom: 40px; display: block; }

/* --- 13. MODALES Y LISTAS --- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 5000; display: flex; align-items: flex-end; }
.modal-content { background: #1c1c1e; width: 100%; padding: 30px; border-radius: 30px 30px 0 0; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.modal-header h3 { color: #f39c12; font-weight: 900; font-size: 1.5rem; }
.hidden { display: none !important; }
.close-modal-btn { background: rgba(255,255,255,0.1); border:none; color:white; width: 30px; height:30px; border-radius:50%; cursor: pointer;}

.search-box input { width: 100%; padding: 15px; border-radius: 15px; background: #111; color: #fff; border: 1px solid #333; margin-bottom: 20px; font-family: 'Montserrat'; font-weight: bold; }

/* Listas */
.scroll-list, .scroll-list-requests { overflow-y: auto; height: 450px; padding-right: 5px; }
.scroll-list::-webkit-scrollbar { width: 5px; }
.scroll-list::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.history-item, .request-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.history-art { width: 55px; height: 55px; border-radius: 10px; object-fit: cover; }
.h-song {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    display: block;
    white-space: nowrap;      /* No deja que baje de renglón */
    overflow: hidden;         /* Esconde lo que sobra */
    text-overflow: ellipsis;  /* Pone los "..." */
    max-width: 200px;         /* Ajustá este ancho a tu gusto */
}
.h-artist { font-size: 0.75rem; color: #aaa; font-weight: 700; margin-top: 3px; }

/* Botones PC Panel Derecho */
.request-btn-main { width: 100%; padding: 20px; border-radius: 20px; background: #fff; color: #000; font-weight: 900; border: none; margin-bottom: 15px; cursor: pointer; transition: 0.3s; }
.request-btn-main:hover { transform: scale(1.02); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }

.big-action-btn { width: 100%; padding: 20px; border-radius: 20px; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid rgba(255,255,255,0.1); font-weight: 900; cursor: pointer; transition: 0.3s; }
.big-action-btn:hover { background: rgba(255,255,255,0.1); }

.instagram-btn-pc { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 15px; color: #fff; background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045); padding: 20px; border-radius: 20px; font-weight: 800; text-decoration: none; transition: 0.3s; }
.instagram-btn-pc:hover { filter: brightness(1.1); }
.mini-req-btn { background: #27ae60; color: #fff; border: none; padding: 8px 15px; border-radius: 8px; font-weight: 800; margin-left: auto; cursor: pointer; }

.secondary-btn#install-button {
    background: #f39c12;
    color: #000;
    border: none;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.vote-container { margin-top: 15px; }
.like-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.like-btn.voted {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: scale(1.05);
}
.like-btn:disabled { cursor: default; opacity: 0.8; }

.floating-install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f39c12;
    color: #000;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    animation: pulse-orange 2s infinite;
    z-index: 1000;
}

/* FUERZA BRUTA PARA OCULTAR BOTONES DE PEDIDO */
#request-btn, 
.mini-req-btn, 
.request-btn,
button[onclick*="request"], /* Oculta cualquier botón que llame a request */
#btn-request-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}