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

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #07070a; color: #fff; font-family: 'Poppins', sans-serif; overflow-x: hidden; }

/* FUNDO */
#bg-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
#video-bg, #img-bg { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, #07070a 100%); z-index: -1; }

/* TOP PLAYER FIXO */
#top-player { 
    position: fixed; top: 0; width: 100%; height: 80px; z-index: 1001;
    background: rgba(10, 10, 20, 0.9); backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary);
}
.player-container { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; margin: auto; height: 100%; padding: 0 20px; }

.musica-box { display: flex; align-items: center; gap: 15px; width: 300px; }
#capa-musica { width: 55px; height: 55px; border-radius: 10px; border: 2px solid var(--primary); object-fit: cover; box-shadow: 0 0 15px var(--primary); }
.txt span { display: block; color: var(--primary); font-weight: 700; font-size: 15px; }
.txt small { color: #aaa; font-size: 12px; }

/* ALINHAMENTO DO PLAYER */
.controles { display: flex; align-items: center; gap: 15px; }
#btn-play-premium { 
    width: 45px; height: 45px; border-radius: 50%; background: var(--primary); 
    border: none; cursor: pointer; color: #000; font-size: 20px; 
    display: flex; align-items: center; justify-content: center;
}
#live-badge { 
    display: flex; align-items: center; gap: 8px; color: #ff4444; font-size: 12px; 
    font-weight: bold; background: rgba(255,0,0,0.1); padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(255,0,0,0.3);
}
.dot { width: 8px; height: 8px; background: #ff4444; border-radius: 50%; animation: pulse 1s infinite; }

.menu-premium a { color: #fff; text-decoration: none; margin-left: 20px; font-weight: 600; font-size: 13px; text-transform: uppercase; transition: 0.3s; }
.menu-premium a:hover { color: var(--primary); }

/* LOGO 3D E CARROSSEL */
#master-header { margin-top: 100px; padding: 20px; }
.master-container-full { display: flex; align-items: center; gap: 40px; max-width: 1300px; margin: auto; }
.logo-3d { max-height: 160px; filter: drop-shadow(0 0 20px var(--primary)); animation: float 3s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* CARDS DA HOME */
.grid-home { display: grid; grid-template-columns: 1fr 350px; gap: 25px; margin-top: 30px; }
.card-premium { 
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 25px; backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.card-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }

/* ESTILO DE LISTA NOS CARDS */
.recado-item { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 10px; margin-bottom: 10px; border-left: 3px solid var(--primary); }
.recado-item strong { color: var(--primary); display: block; font-size: 13px; }
.recado-item p { font-size: 13px; color: #ccc; }

#content { padding: 20px; max-width: 1300px; margin: auto; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* RODAPÉ EM COLUNAS PREMIUM */
#footer-premium {
    background: rgba(10, 10, 20, 0.98);
    border-top: 3px solid var(--primary);
    padding: 60px 20px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: left;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 25px;
    letter-spacing: 1px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.footer-col p { color: #aaa; font-size: 14px; line-height: 1.6; }

.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col a:hover { color: var(--primary); padding-left: 5px; }

.footer-social-links a {
    display: inline-block !important;
    margin-right: 15px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    text-align: center;
    color: #555;
    font-size: 12px;
}

/* BOTÃO WHATSAPP FLUTUANTE */
.wa-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .footer-grid { text-align: center; }
    .footer-col h4 { border-left: none; padding-left: 0; }
}

/* CORRIGINDO FUNDO DO RODAPÉ COM A COR DO ADMIN */
#footer-premium {
    background: var(--secondary) !important; /* Usa a cor do painel/rodapé do Admin */
    border-top: 3px solid var(--primary);
    padding: 60px 20px 20px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
    width: 100%;
}

.footer-col h4 {
    color: var(--primary);
}

/* COMPACTANDO O RODAPÉ */
#footer-premium {
    padding: 30px 20px 15px !important;
    margin-top: 50px;
}
.footer-grid {
    gap: 20px !important;
    margin-bottom: 20px !important;
}
.footer-col h4 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
}
.footer-col p {
    font-size: 13px !important;
    line-height: 1.4 !important;
}
.footer-col a {
    margin-bottom: 6px !important;
    font-size: 13px !important;
}
.footer-col img {
    max-width: 100px !important;
    margin-bottom: 10px !important;
}
.footer-social-links a {
    font-size: 16px !important;
    margin-right: 10px !important;
}
.footer-bottom {
    padding-top: 15px !important;
    font-size: 11px !important;
}

/* AJUSTE FINAL: RODAPÉ ULTRA COMPACTO */
#footer-premium {
    padding: 15px 20px 10px !important; /* Espaço mínimo */
    margin-top: 30px !important;
}

.footer-grid {
    margin-bottom: 10px !important;
    gap: 15px !important;
}

.footer-bottom {
    border-top: none !important; /* Remove a linha antes do copyright */
    padding-top: 5px !important; /* Sobe o texto do copyright */
    margin-top: 0 !important;
}

.footer-col h4 {
    margin-bottom: 8px !important;
}

/* ==========================================
   RESPONSIVIDADE (MOBILE FIRST)
   ========================================== */

@media (max-width: 900px) {
    /* Top Player Mobile */
    .player-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 10px;
    }
    .musica-box {
        width: 100%;
        justify-content: center;
    }
    #top-player {
        height: auto;
    }
    #content {
        margin-top: 250px; /* Aumenta espaço porque o player ficou mais alto */
    }

    /* Master Header (Logo e Carrossel) */
    .master-container-full {
        flex-direction: column;
        text-align: center;
    }
    .logo-3d {
        max-height: 100px;
    }

    /* Grid da Home (Main + Sidebar) */
    .grid-home {
        grid-template-columns: 1fr; /* Transforma em uma única coluna */
    }
}

@media (max-width: 600px) {
    /* Menu Mobile - Faz os links quebrarem linha ou rolarem */
    .menu-premium {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .menu-premium a {
        margin: 5px;
        font-size: 11px;
    }

    /* Rodapé Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4 {
        border-left: none;
        padding-left: 0;
    }
    
    /* Botão Play menor no mobile */
    #btn-play-premium {
        width: 40px;
        height: 40px;
    }

    /* Ajuste de Margem do Conteúdo */
    #content {
        margin-top: 280px; 
        padding: 10px;
    }
    
    .pagina-interna {
        padding: 15px;
    }
}

/* ESTILO MENU HAMBURGUER E SIDEBAR MOBILE */
#hamburger-menu {
    display: none; /* Escondido no PC */
    font-size: 25px;
    color: var(--primary);
    cursor: pointer;
}

#mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px; /* Escondido para fora da tela */
    width: 280px;
    height: 100vh;
    background: var(--secondary);
    z-index: 2000;
    transition: 0.4s;
    padding: 60px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    border-left: 2px solid var(--primary);
}

#mobile-sidebar.active {
    right: 0; /* Mostra o menu */
}

#mobile-sidebar nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.close-menu {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 25px;
    color: var(--primary);
    cursor: pointer;
}

/* MEDIA QUERY PARA CELULAR */
@media (max-width: 900px) {
    .menu-premium { display: none !important; } /* Esconde menu de texto no celular */
    #hamburger-menu { display: block; } /* Mostra o ícone hambúrguer */
    
    .controles { margin-right: 20px; }
    .live-txt { display: none; } /* Esconde texto "AO VIVO" no celular para sobrar espaço */
}

/* AJUSTE PARA TUDO EM UMA LINHA NO MOBILE */
@media (max-width: 900px) {
    .player-container {
        flex-direction: row !important; /* Força ficar em linha */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
        height: 80px !important;
    }

    .musica-box {
        width: auto !important; /* Deixa o logo ocupar apenas o espaço necessário */
        gap: 8px !important;
    }

    #capa-musica {
        width: 40px !important;
        height: 40px !important;
    }

    /* Esconde o texto da música no celular se o espaço for muito pequeno */
    .txt {
        display: none; 
    }

    .controles {
        gap: 10px !important;
    }

    #live-badge {
        padding: 4px 8px !important;
    }

    .live-txt {
        display: none; /* Mantém apenas o ponto pulsando no celular */
    }

    #btn-play-premium {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }

    #hamburger-menu {
        margin-left: 10px;
    }

    /* Ajuste do conteúdo para não subir demais */
    #content {
        margin-top: 100px !important; 
    }
}

/* RESPONSIVIDADE PÁGINA DE CONTATO */
@media (max-width: 800px) {
    .grid-contato {
        grid-template-columns: 1fr !important; /* Transforma as 2 colunas em 1 */
        gap: 30px !important;
    }

    .form-contato, .info-contato {
        width: 100% !important;
    }

    /* Garante que o Iframe do Google Maps seja responsivo */
    .info-contato iframe {
        width: 100% !important;
        height: 250px !important;
        border-radius: 15px;
    }

    .redes-botoes {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .redes-botoes a {
        background: rgba(255,255,255,0.1);
        padding: 10px;
        border-radius: 8px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* CONFIGURAÇÃO DA GRADE DE CONTATO */
.grid-contato {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Lado a lado no PC */
    gap: 40px;
}

.mapa-wrapper iframe {
    width: 100% !important;
    height: 300px;
    border: 0;
    border-radius: 15px;
}

/* RESPONSIVIDADE PARA CONTATO */
@media (max-width: 900px) {
    .grid-contato {
        grid-template-columns: 1fr !important; /* EMPILHADO NO CELULAR */
        gap: 20px;
    }
}

/* LOCUTORES EM LINHA (SUAVE) */
.locutor-row-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.locutor-row-card:hover { background: rgba(255,255,255,0.1); transform: translateX(10px); }
.locutor-row-card img { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.locutor-info h3 { font-size: 18px; color: var(--primary); margin-bottom: 5px; }
.locutor-info p { font-size: 13px; color: #ccc; }

/* GRADE EM ACORDEÃO */
.dia-grade {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.dia-header {
    background: rgba(255,255,255,0.07);
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--primary);
}
.dia-header:hover { background: rgba(255,255,255,0.15); }
.dia-corpo { display: none; padding: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
.dia-corpo.active { display: block; }

/* FORÇAR VISIBILIDADE DO MASTER HEADER */
#master-header {
    display: block !important;
    visibility: visible !important;
    margin-top: 100px !important; /* Logo abaixo do player de 80px */
    padding: 20px 0;
    width: 100%;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.master-container-full {
    display: flex !important;
    align-items: center;
    max-width: 1300px;
    margin: auto;
    gap: 30px;
}

.slider-top {
    flex: 1;
    height: 100px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-list {
    display: flex;
    gap: 30px;
    animation: scroll-left 25s linear infinite;
}

.p-item {
    min-width: 220px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    padding: 10px;
}

.p-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


#master-header {
    margin-top: 85px !important;
    padding: 10px 0 !important;
}

.master-container-full {
    display: flex !important;
    flex-direction: row !important; /* FORÇA LINHA NO MOBILE */
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: auto;
    padding: 0 15px;
    gap: 15px !important;
}

.logo-efeito-box {
    flex: 0 0 150px;
    text-align: center;
}

.logo-3d {
    max-height: 150px !important; /* Logo menor para sobrar espaço */
    width: auto;
}

.slider-top {
    flex: 1; /* Ocupa todo o resto da tela */
    height: 100px !important;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    overflow: hidden;
}

.p-item {
    padding: 0 !important;
}

.p-item img {
    width: 100% !important;
    height: 100px !important;
    object-fit: contain !important; /* Garante que a imagem apareça inteira e grande */
}

/* AJUSTE ESPECÍFICO PARA CELULARES PEQUENOS */
@media (max-width: 600px) {
    .logo-efeito-box {
        flex: 0 0 60px;
    }
    .logo-3d {
        max-height: 60px !important;
    }
    .slider-top {
        height: 80px !important;
    }
    .p-item img {
        height: 80px !important;
    }
    #content {
        margin-top: 20px !important; /* Cola o conteúdo no carrossel */
    }
}

/* CORREÇÃO DO SLIDER PARA UMA POR VEZ (NOMES NEUTROS) */
.slider-top {
    flex: 1;
    height: 100px !important;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-list {
    display: block; 
    width: 100%;
    height: 100%;
    animation: none !important;
}

.p-item {
    display: none; /* Esconde todas */
    width: 100%;
    height: 100%;
    text-align: center;
}

.p-item.active {
    display: flex; /* Mostra apenas a ativa */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-in-out;
}

.p-item img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    border-radius: 8px;
}

/* AJUSTE FINAL CARROSSEL: REMOVENDO FUNDO E MAXIMIZANDO IMAGEM */
.slider-top {
    background: transparent !important;
    border: none !important;
}

.p-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.p-item img {
    background: transparent !important; /* Remove fundo branco da imagem */
    width: 100% !important;
    height: 100% !important;
    max-height: 100px !important;
    object-fit: contain !important; /* Mantém a proporção da arte sem cortar nada */
    filter: none !important;
}

.master-container-full {
    background: rgba(0,0,0,0.2) !important; /* Fundo escuro sutil apenas no container geral */
    border-radius: 15px;
}

/* Grid de Notícias */
.noticias-container { padding: 20px; margin-top: 20px; }
.section-title { font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; border-left: 4px solid var(--primary); padding-left: 15px; }

.noticias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

/* News Card Glassmorphism */
.news-card { position: relative; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; overflow: hidden; cursor: pointer; transition: all 0.4s ease; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); }

.news-badge { position: absolute; top: 15px; left: 15px; background: var(--primary); color: #000; padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: bold; z-index: 2; text-transform: uppercase; }

.news-card img { width: 100%; height: 180px; object-fit: cover; transition: 0.5s; }
.news-card:hover img { transform: scale(1.1); }

.news-content { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.news-content h3 { font-size: 1.1rem; color: #fff; margin-bottom: 10px; line-height: 1.3; height: 2.6em; overflow: hidden; }
.news-content p { font-size: 0.9rem; color: #aaa; margin-bottom: 15px; height: 3em; overflow: hidden; }
.news-date { font-size: 0.8rem; color: var(--primary); margin-top: auto; }

/* Responsividade News */
@media (max-width: 768px) {
    .noticias-grid { grid-template-columns: 1fr; }
}

/* Relógio no Player */
#player-relogio {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 1px;
}
#player-relogio i {
    color: #e91e8c;
}
