/* Container Principal da Barra */
#radio-player-bar {
    display: none; /* Oculto por padrão, aparece via JS */
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6b3201 0%, #512201 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Layout Flexível */
.radio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Informações da Música */
.music-info {
    flex: 1;
    min-width: 200px;
}

.music-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #fb8906;
    margin-bottom: 5px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-remaining {
    font-size: 0.9em;
    color: #ccc;
    font-variant-numeric: tabular-nums;
}

/* Área de Votação */
.vote-area {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 20px;
}

.vote-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s, color 0.2s;
}

.vote-btn:hover { transform: scale(1.1); }
.vote-btn.like-btn:hover, .vote-btn.active-like { color: #4caf50; }
.vote-btn.deslike-btn:hover, .vote-btn.active-deslike { color: #f44336; }

.vote-count { font-size: 0.8em; font-weight: bold; }

/* Dropdown de Usuários */
.user-list-toggle {
    cursor: pointer;
    margin-left: 5px;
    color: #aaa;
    transition: color 0.2s;
}
.user-list-toggle:hover { color: #fff; }

.voters-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #1f2a48;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
}

.voters-dropdown.active { display: block; }

.voter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85em;
}

.voter-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.voto-icon-small { font-size: 12px; }

/* Botão Top 5 */
.btn-top5 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    transition: transform 0.2s;
}
.btn-top5:hover { transform: translateY(-2px); }

/* Barra de Progresso */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e1852f, #f7ab06);
    width: 0%;
    transition: width 0.2s linear;
}

/* Modal Top 5 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #16213e;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    border: 1px solid #00d2ff;
    color: white;
}
.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}
.top5-list { list-style: none; padding: 0; margin-top: 15px; }
.top5-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}
.top5-rank { color: #FFD700; font-weight: bold; margin-right: 10px; }

/* --- Estilo da Janela de Login Necessário --- */
.modal-warning-style {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b0e 100%); /* Fundo escuro com toque marrom/laranja */
    border: 2px solid #f77810; /* Borda Laranja da identidade visual */
    text-align: center;
    padding: 35px 25px;
    box-shadow: 0 0 20px rgba(247, 120, 16, 0.2); /* Brilho laranja suave */
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.btn-modal-action {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* Botão Login */
.btn-login-modal {
    background: #f77810;
    color: #fff;
    box-shadow: 0 4px 10px rgba(247, 120, 16, 0.4);
}
.btn-login-modal:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* Botão Cadastrar */
.btn-register-modal {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-register-modal:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-2px);
}