@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    background: #26392f;
    color: #333;
    overflow-x: hidden;
}

header { 
    background: #333; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    position: relative; 
}
.header-video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

main {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 380px);
}

.noticias-area {
    flex: 3;
    max-width: 1000px;
    width: 100%;
    background-color: #fff;
    color: #000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.noticias-topo { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px; 
}
.noticias-topo h2 { 
    font-size: 24px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #153524; 
    margin: 0; 
}
.noticias-topo h2 i { 
    color: #eed705; 
}
.noticias-topo h2 span { 
    font-size: 16px; 
    color: #999; 
    font-weight: normal; 
}
.noticias-topo .paginacao { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.noticias-topo .paginacao button { 
    background: #153524; 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    color: white; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease;
}
.noticias-topo .paginacao button:hover { 
    background: #1e4b34; 
    transform: scale(1.05); 
}
.noticias-topo .paginacao button:disabled { 
    background: #ccc; 
    cursor: not-allowed; 
}
.noticias-topo .paginacao span { 
    font-weight: bold; 
    margin: 0 10px; 
    color: #153524; 
}

.noticias-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* Fixo em 3 colunas */
    justify-content: center; 
    gap: 20px; 
}
.noticia { 
    background: #fff; 
    color: #000; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); 
    transition: 0.3s; 
    position: relative;
}
.noticia:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
}
.noticia-imagem { 
    height: 180px; 
    overflow: hidden; 
    position: relative;
}
.noticia-imagem img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: all 0.5s ease; 
}
.noticia:hover .noticia-imagem img {
    filter: blur(3px) brightness(0.7);
    transform: scale(1.05);
}
.noticia-conteudo { 
    padding: 15px; 
    position: relative;
    z-index: 2;
    background: white;
}
.noticia h3 { 
    font-size: 18px; 
    margin: 0 0 10px; 
    color: #153524; 
    font-weight: 600; 
}
.noticia p { 
    font-size: 14px; 
    color: #666; 
    margin: 0 0 15px; 
    line-height: 1.5; 
}
.noticia-meta { 
    display: flex; 
    justify-content: space-between; 
    font-size: 12px; 
    color: #888; 
    padding-top: 10px; 
    border-top: 1px solid #eee; 
}
.noticia-meta span { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}
.noticia-link { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    opacity: 0; 
    background: #eed705;
    padding: 12px 24px; 
    color: #153524; 
    border-radius: 25px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    text-decoration: none;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.noticia-link:hover {
    background: #153524;
    color: #eed705;
}
.noticia:hover .noticia-link { 
    opacity: 1; 
}
/* Player fixo (amarelo) */
.player-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffeb3b;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    z-index: 999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    height: 70px;
}

.radio-status { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    width: 100%;
}
.dj-box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.dj-avatar-bg { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    overflow: hidden; 
    border: 2px solid #000; 
    background: #000;
}
.dj-avatar-bg img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.dj-nome p { 
    margin: 0; 
    font-weight: 600; 
    color: #000;
    font-size: 16px;
}
.dj-nome span { 
    font-size: 12px; 
    color: #555; 
}

.player-controls {
    position: absolute; /* Coloca os controles no lado direito */
    right: 20px; /* Define o espaço a partir da borda direita */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.player-controls button { 
    background: #000; 
    color: #ffeb3b; 
    border: none; 
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}
.player-controls button:hover { 
    background: #ffeb3b; 
    color: #000;
    border: 2px solid #000;
    transform: scale(1.1);
}
.player-controls .listeners { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    color: #000;
    font-weight: 600;
    white-space: nowrap;
}

/* Custom range input */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-control i {
    color: #000;
}

input[type="range"].volume-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, #000 0%, #000 var(--volume-percent, 100%), #666 var(--volume-percent, 100%), #666 100%);
    border-radius: 5px;
    outline: none;
    margin: 0;
    transition: background 0.1s ease;
}

input[type="range"].volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffeb3b;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"].volume-slider::-webkit-slider-thumb:hover {
    background: #000;
    border-color: #ffeb3b;
    transform: scale(1.2);
}

input[type="range"].volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffeb3b;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"].volume-slider::-moz-range-thumb:hover {
    background: #000;
    border-color: #ffeb3b;
    transform: scale(1.2);
}

/* Footer (laranja) - NÃO FIXO */
footer {
     margin-bottom: 70px; 
    background: #eed705;
    padding: 15px 20px;
    color: #000;
    text-align: center;
    width: 100%;
    font-weight: 600;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

/* Remover scroll horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Media Queries para responsividade */
@media (max-width: 1024px) {
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }
    
    main { 
        flex-direction: column; 
        align-items: center; 
        padding-bottom: 20px;
    }
    
    .noticias-area { 
        width: 95%; 
        padding: 15px; 
        margin-bottom: 80px; /* Espaço para o player */
    }
    
    .player-box {
        padding: 10px 15px;
        height: auto;
    }
    
    .radio-status { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center;
    }
    
    .player-controls { 
        justify-content: center; 
    }
}

@media (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr; /* 1 coluna em mobile */
    }
    
    .noticias-topo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .noticias-topo .paginacao {
        align-self: center;
        margin-top: 10px;
    }
    
    .radio-status {
        flex-direction: column;
    }
    
    .player-box {
        height: auto;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .player-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .dj-box {
        flex-direction: column;
        text-align: center;
    }
    
    .volume-control {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
    
    input[type="range"].volume-slider {
        width: 120px;
    }
    
    .footer-content p {
        font-size: 12px;
    }
}
