/* --- RESET E BASES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    padding-bottom: 140px; /* Espaço para o player não cobrir o conteúdo */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- GRADE DE PROGRAMAÇÃO --- */
.grade-abas {
    margin-top: 40px;
}

.abas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.abas button {
    flex: 1;
    min-width: 80px;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.abas button.ativo {
    background: #1049a9;
    color: white;
}

.faixas-colunas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grade-linhas {
    display: grid;
    grid-template-columns: 55px 85px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.grade-linhas:hover {
    background: #f8f9fa;
}

.grade-linhas .foto img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1049a9;
}

.grade-linhas .horario {
    font-weight: bold;
    color: #1049a9;
    font-size: 13px;
}

.grade-linhas .programa {
    font-size: 14px;
}

.grade-linhas .locutor {
    display: block;
    font-size: 12px;
    color: #777;
}

/* --- PLAYER CONTAINER --- */
#player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #111;
    color: #ffffff;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

#player {
    position: relative;
    padding: 12px 20px;
    background-size: cover;
    background-position: center;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.conteudo-player {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Colunas do Player */
.coluna-1, .coluna-2, .coluna-3 {
    flex: 1;
}

.bloco-locutor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.foto-locutor {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.toggle {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.programa-atual {
    font-size: 20px;
    font-weight: bold;
}

/* Volume */
.volume {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 160px;
    margin-left: auto;
}

#vol-slider {
    flex: 1;
    height: 5px;
}

/* Player Bottom */
.player-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    font-size: 11px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.led {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.led.green { background: #00ff00; box-shadow: 0 0 5px #00ff00; }
.led.red { background: #ff0000; box-shadow: 0 0 5px #ff0000; }

/* --- FUNDOS DE CLIMA --- */
#player.clear { background-image: url('assets/clear.jpg'); }
#player.clouds { background-image: url('assets/clouds.jpg'); }
#player.rain { background-image: url('assets/rain.jpg'); }
#player.thunderstorm { background-image: url('assets/storm.jpg'); }

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .faixas-colunas { grid-template-columns: 1fr; }
    
    .hide-mobile { display: none; }
    
    #player-container.recolhido .coluna-3, 
    #player-container.recolhido .player-bottom {
        display: none;
    }
}