* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #4caf50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== HEADER BARRA TOPO ===== */
.main-header {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    padding: 14px 25px;
    display: flex;
    align-items: center;
    min-height: 55px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-icon {
    height: 48px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.12);
    padding: 2px;
}

.header-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== HERO - OCUPA TUDO ===== */
.hero-section {
    flex: 1;
    background: linear-gradient(160deg, #b9e4b0 0%, #7bc67e 20%, #4caf50 40%, #388e3c 65%, #2e7d32 85%, #1b5e20 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 100px;
}

.hero-section.hero-with-bg {
    /* fundo definido em style inline (index.php) — caminho absoluto */
    background-color: #2e7d32;
}

.hero-section.hero-with-bg::before {
    opacity: 0.4;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 60%, rgba(255,255,255,0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.08) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(0,0,0,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    padding: 30px;
}

/* ===== REDES SOCIAIS — ÍCONES QUADRADOS / MODERNOS ===== */
.social-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.social-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.social-btn i {
    font-size: 2.25rem;
    line-height: 1;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent !important;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.social-btn.instagram {
    background: linear-gradient(145deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
}

.social-btn.facebook {
    background: linear-gradient(180deg, #1877f2 0%, #0d5dbf 100%);
}

.social-btn.whatsapp {
    background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
}

.social-bar {
    display: none;
}

/* ===== LOGO CENTRAL ===== */
.center-logo {
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.center-logo-img {
    max-height: 374px;
    max-width: min(95vw, 680px);
    width: auto;
    height: auto;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.3));
}

.logo-text-top {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 4.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.35);
    line-height: 1;
}

.logo-fm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: -8px;
}

.logo-fm i {
    font-size: 5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.35);
    animation: pulse 2s infinite;
}

.logo-fm span {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.35);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slogan {
    font-size: 2.2rem;
    color: white;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    margin-top: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== MENU DIREITA — ESTILO PINCEL / MODELO ===== */
.nav-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.nav-btn {
    display: block;
    position: relative;
    padding: 14px 34px 16px;
    min-width: 178px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-family: 'Kalam', 'Segoe Script', 'Brush Script MT', cursive;
    font-weight: 700;
    font-size: 1.08rem;
    font-style: normal;
    letter-spacing: 0.03em;
    line-height: 1.15;
    border: none;
    background: linear-gradient(165deg, #1b5e20 0%, #2e7d32 38%, #1b4724 100%);
    border-radius: 255px 28px 225px 28px / 28px 200px 22px 235px;
    box-shadow:
        0 4px 0 #0d3310,
        0 8px 16px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.18);
    text-shadow: 1px 2px 2px rgba(0,0,0,0.35);
    transform: rotate(-0.8deg);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.nav-column .nav-btn:nth-child(2n) {
    transform: rotate(0.6deg);
    border-radius: 32px 240px 32px 200px / 200px 28px 220px 24px;
}

.nav-column .nav-btn:nth-child(3n) {
    transform: rotate(-0.3deg);
}

.nav-btn:hover {
    filter: brightness(1.08);
    transform: rotate(0deg) translateX(-6px) scale(1.03);
    box-shadow:
        0 5px 0 #0d3310,
        0 12px 22px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.22);
}

.nav-column .nav-btn:nth-child(2n):hover {
    transform: translateX(-6px) scale(1.03);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-noticia {
    width: 95%;
    max-width: 900px;
    height: 80vh;
    padding: 10px;
}

.modal-noticia iframe {
    width: 100%;
    height: calc(100% - 40px);
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: #e53935;
    color: white;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { background: #b71c1c; }

/* ===== SEÇÕES POPUP ===== */
.section-data h2 {
    color: #2e7d32;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a5d6a7;
}

.section-data h2 i { margin-right: 10px; }

.programacao-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prog-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: #f1f8e9;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.prog-horario {
    font-weight: bold;
    color: #2e7d32;
    min-width: 120px;
    font-size: 0.9rem;
}

.prog-info strong { color: #1b5e20; }
.prog-info small { color: #666; }
.prog-info em { color: #888; font-size: 0.8rem; }

.locutores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.locutor-card {
    text-align: center;
    padding: 20px;
    background: #f1f8e9;
    border-radius: 12px;
    transition: transform 0.3s;
}

.locutor-card:hover { transform: translateY(-3px); }
.locutor-avatar { font-size: 3rem; color: #4caf50; margin-bottom: 10px; }
.locutor-card h3 { color: #2e7d32; font-size: 1rem; }
.locutor-card p { color: #666; font-size: 0.85rem; margin-top: 5px; }

/* ===== NOTÍCIAS COM SCROLL ===== */
.noticias-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.noticias-scroll::-webkit-scrollbar { width: 8px; }
.noticias-scroll::-webkit-scrollbar-track { background: #f1f8e9; border-radius: 4px; }
.noticias-scroll::-webkit-scrollbar-thumb { background: #4caf50; border-radius: 4px; }
.noticias-scroll::-webkit-scrollbar-thumb:hover { background: #2e7d32; }

.noticia-item {
    padding: 14px;
    background: #f9fbe7;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid #8bc34a;
}

.noticia-item:hover {
    background: #f1f8e9;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.noticia-item h3 { color: #2e7d32; font-size: 0.95rem; margin-bottom: 4px; }
.noticia-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.noticia-fonte { color: #888; font-style: italic; font-size: 0.8rem; }
.noticia-data { color: #aaa; font-size: 0.75rem; }
.noticia-item p { color: #555; font-size: 0.83rem; margin-top: 4px; line-height: 1.4; }

/* ===== PLAYER RODAPÉ (MAIOR) ===== */
.radio-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 18px 30px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    transition: box-shadow 0.35s ease, background 0.35s ease;
    overflow: hidden;
}

/* Fundo verde + modulador (barras) enquanto toca */
.radio-player.is-playing {
    background: linear-gradient(180deg, #0c1810 0%, #12261a 40%, #163222 100%);
    box-shadow:
        0 -5px 0 #4caf50,
        0 -12px 36px rgba(76, 175, 80, 0.45),
        inset 0 1px 0 rgba(129, 199, 132, 0.15);
}

/* Modulador: uma só onda (subir/desce); velocidade original por barra */
.player-mod-mini {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    height: 28px;
    padding-bottom: 2px;
    pointer-events: none;
    opacity: 0.28;
    transition: opacity 0.35s ease;
    flex: 1 1 auto;
    min-width: 0;
}

.radio-player.is-playing .player-mod-mini {
    opacity: 1;
}

.player-mod-bar-mini {
    flex: 0 0 3px;
    width: 3px;
    height: 22px;
    border-radius: 1px;
    transform-origin: bottom center;
    transform: scaleY(0.15);
    background: linear-gradient(
        to top,
        rgba(27, 94, 32, 0.35) 0%,
        rgba(76, 175, 80, 0.65) 50%,
        rgba(165, 214, 167, 0.95) 100%
    );
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.22);
    animation: none;
}

.radio-player.is-playing .player-mod-bar-mini {
    animation: playerModBarMini var(--mod-dur, 0.48s) ease-in-out infinite alternate;
    animation-delay: var(--mod-delay, 0s);
}

@keyframes playerModBarMini {
    0% {
        transform: scaleY(0.12);
        opacity: 0.5;
        filter: brightness(0.9);
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
        filter: brightness(1.08);
    }
}

.radio-player.is-playing .player-info i {
    color: #a5d6a7;
    animation: none;
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.4));
}

.radio-player.is-playing .player-status {
    color: #e8f5e9;
    background: rgba(76, 175, 80, 0.35);
    border-color: rgba(129, 199, 132, 0.6);
    animation: none;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.22);
}

.radio-player.is-playing .play-btn {
    animation: none;
    box-shadow: 0 3px 18px rgba(76, 175, 80, 0.48);
}

.player-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Colunas laterais iguais: o play fica no centro geométrico da barra */
.player-side--left {
    justify-self: start;
    min-width: 0;
    display: flex;
    align-items: center;
}

.player-side--right {
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
    min-width: 0;
    width: 100%;
}

.player-volume {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.player-center {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    min-width: 0;
}

.player-info i {
    font-size: 1.8rem;
    color: #4caf50;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.player-station {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-status {
    font-size: 0.85rem;
    color: #4caf50;
    padding: 4px 12px;
    background: rgba(76,175,80,0.15);
    border-radius: 12px;
    border: 1px solid rgba(76,175,80,0.3);
}

.play-btn {
    width: 62px; height: 62px;
    border-radius: 50%;
    border: none;
    background: #4caf50;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(76,175,80,0.4);
}

.play-btn:hover { background: #43a047; transform: scale(1.1); }
.play-btn.playing { background: #388e3c; }

.player-volume input[type="range"] {
    width: 140px;
    height: 6px;
    flex: 0 0 auto;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #4caf50;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(76,175,80,0.5);
}

.player-volume input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #4caf50;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(76,175,80,0.5);
}

.player-volume input[type="range"]::-moz-range-track {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .hero-content { flex-direction: column; gap: 25px; padding: 25px 15px 10px; }
    .social-column { flex-direction: row; justify-content: center; order: 2; gap: 14px; flex-wrap: wrap; }
    .social-btn { width: 64px; height: 64px; border-radius: 16px; }
    .social-btn i { font-size: 2rem; }
    .center-logo { order: 1; }
    .nav-column {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        padding-bottom: 12px;
        margin-bottom: 8px;
    }
    .nav-btn { min-width: auto; padding: 10px 18px 12px; font-size: 0.85rem; transform: none !important; }
    .nav-column .nav-btn:nth-child(2n),
    .nav-column .nav-btn:nth-child(3n) { transform: none !important; }
    .center-logo-img { max-height: 260px; max-width: 92vw; }
    .logo-text-top { font-size: 3rem; }
    .logo-fm i { font-size: 3.5rem; }
    .slogan { font-size: 1.5rem; }
    .player-container {
        grid-template-columns: 1fr auto auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 10px;
        justify-items: stretch;
        align-items: center;
    }
    .player-side--left {
        grid-column: 1 / -1;
        justify-self: center;
    }
    .player-center {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
    .player-side--right {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
    }
    .player-volume {
        display: none;
    }
    /* Muitas barras finas: corta suavemente se a linha for estreita */
    .player-mod-mini {
        max-width: min(100%, calc(100vw - 108px));
        overflow: hidden;
    }
    /* Espaço extra para o player fixo (2ª linha de botões Anuncie/Promoções não ficar por baixo) */
    .hero-section {
        min-height: auto;
        padding-bottom: calc(155px + env(safe-area-inset-bottom, 0px));
    }
    .modal-content { width: 95%; padding: 20px; max-height: 85vh; }
}
