* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b1120;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

.audio-player-container {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2), inset 0 0 20px rgba(14, 165, 233, 0.05);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.player-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
}

.player-header h2 {
    color: #38bdf8;
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.player-header p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.player-content {
    display: flex;
    flex-wrap: wrap;
}

/* Panel Izquierdo */
.player-left {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(56, 189, 248, 0.2);
}

.album-cover-container {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-title {
    color: #38bdf8;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 1.2rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: #38bdf8;
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 10px #38bdf8;
}

.time-displays {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: #94a3b8;
    transition: fill 0.2s ease;
}

.control-btn:hover svg {
    fill: #38bdf8;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.play-btn svg {
    fill: #38bdf8;
}

.play-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Panel Derecho */
.player-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.playlist-title {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    color: #fcd34d;
    font-weight: 500;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.playlist-list {
    list-style: none;
    overflow-y: auto;
    max-height: 450px;
    flex-grow: 1;
}

/* Scrollbar personalizada */
.playlist-list::-webkit-scrollbar {
    width: 8px;
}
.playlist-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.playlist-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
.playlist-list::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

.playlist-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.playlist-item:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.playlist-item.playing {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-left: 3px solid #38bdf8;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .audio-player-container {
        border-radius: 8px;
    }
    
    .player-left {
        border-right: none;
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
        padding: 20px 15px;
    }
    
    .playlist-list {
        max-height: 300px;
    }

    .player-header h2 {
        font-size: 1.1rem;
        letter-spacing: 2px;
        text-align: center;
    }

    .promo-text {
        font-size: 0.9rem !important;
        padding: 0 10px;
        text-align: center;
    }

    .voting-panel {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 15px;
    }

    .btn-vote-submit {
        width: 100%;
    }
}
/* Sistema de Votacion */
.vote-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6); /* Más visible por defecto */
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s;
    flex-shrink: 0; /* Evita que el botón se encoja y desaparezca en pantallas móviles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vote-btn:hover {
    color: #fcd34d;
    transform: scale(1.1);
}
.vote-btn.selected {
    color: #fcd34d;
    opacity: 1;
}
.track-name {
    flex-grow: 1;
}

/* Panel Flotante de Votos */
.voting-panel {
    background: linear-gradient(90deg, #1e3a8a, #0f172a);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #38bdf8;
}
.btn-vote-submit {
    background: #f59e0b;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-vote-submit:not(:disabled):hover {
    background: #fbbf24;
    transform: scale(1.05);
}
.btn-vote-submit:disabled {
    background: #64748b;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Modal de Créditos */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.hidden {
    display: none;
}
.modal-content {
    background: #0f172a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #38bdf8;
    max-width: 400px;
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-content h3 {
    color: #fcd34d;
    margin-bottom: 15px;
}
.modal-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.modal-incentive {
    color: #38bdf8;
    font-weight: bold;
}
#voter-name {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid #38bdf8;
    color: white;
    border-radius: 5px;
}
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
}
.promo-header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-bottom: 2px solid #f59e0b;
}
.promo-text {
    font-size: 1.05rem !important;
    color: #e2e8f0 !important;
    line-height: 1.5;
    margin-top: 10px;
    padding: 0 20px;
}
.promo-text strong {
    color: #fcd34d;
}
