:root {
    --bg: #0f1115;
    --bg-elevated: #171a21;
    --bg-elevated-2: #1e222b;
    --border: #2a2f3a;
    --text: #eef0f4;
    --text-muted: #9aa1b1;
    --primary: #ff2d55;
    --secondary: #1c1c1e;
    --on-primary: #ffffff;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --header-h: 68px;
}

:root[data-tema="claro"] {
    --bg: #f7f7fa;
    --bg-elevated: #ffffff;
    --bg-elevated-2: #f0f1f5;
    --border: #e3e4ea;
    --text: #17181c;
    --text-muted: #666a76;
    --shadow: 0 10px 30px rgba(20, 20, 30, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.brand .brand-dot {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--primary);
    color: var(--on-primary, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: var(--on-primary, #fff);
    border: none;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.92;
}

.btn:active {
    transform: scale(0.97);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    font-size: 1.2rem;
    cursor: pointer;
}

.install-pill {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.install-pill.show {
    display: inline-flex;
}

.install-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 560px) {
    .install-pill-label {
        display: none;
    }

    .install-pill.show {
        padding: 0.55rem;
    }

    .brand .brand-label {
        display: none;
    }

    .header-actions .btn .btn-label {
        display: none;
    }

    .header-actions .btn {
        padding: 0.6rem 0.75rem;
    }
}

/* Hero */
.hero {
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px 320px at 15% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
        radial-gradient(650px 340px at 95% 100%, color-mix(in srgb, var(--secondary) 40%, transparent), transparent 72%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: saturate(1.1) brightness(0.4) blur(1px);
    transform: scale(1.08);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, var(--bg) 96%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.hero p.lead {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0 0 1.5rem;
    max-width: 46ch;
}

/* .hero-bg (a capa da emissora) é sempre escurecida pra legibilidade, em qualquer tema —
   então o texto do hero precisa ficar claro sempre que ela existir, independente do tema do site. */
.hero:has(.hero-bg) h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero:has(.hero-bg) p.lead {
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.player-embed {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.player-embed img.logo {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    object-fit: cover;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.player-embed .radio-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.player-embed .radio-genre {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title h2 {
    font-size: 1.4rem;
    margin: 0;
}

.section-title .see-all {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
}

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--secondary) 45%, transparent);
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card .no-image {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--bg-elevated-2);
    color: var(--text-muted);
}

.card .no-image svg {
    font-size: 1.8rem;
}

.card .no-image span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-body {
    padding: 1.1rem 1.2rem 1.3rem;
}

.card-body .categoria {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-body h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Publicidade dividindo espaço com a programação (home) */
.programacao-ad-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}

.ad-slot {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background: var(--bg-elevated-2);
}

.ad-slot-img {
    position: absolute;
    inset: 0;
    display: block;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.ad-slot-img.visible {
    opacity: 1;
}

.ad-slot-tag {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.85rem 1rem 1.75rem;
}

.ad-slot-tag::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
}

.ad-slot .ad-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
}

.ad-slot .ad-nome {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

@media (max-width: 860px) {
    .programacao-ad-grid {
        grid-template-columns: 1fr;
    }
}

/* Programação */
.grade-semana {
    display: grid;
    gap: 0.6rem;
}

.grade-dia {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.grade-dia .horario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--on-primary, #fff);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    min-width: 110px;
    flex-shrink: 0;
}

.grade-dia .info strong {
    display: block;
    font-size: 0.95rem;
}

.grade-dia .info span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Redes / contato */
.social-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bg-elevated-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
    transition: background 0.15s ease, transform 0.12s ease;
}

.social-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-btn svg {
    display: block;
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 320px;
}

/* Mapa em formato "hero": largura total, sem os limites do .container */
.map-hero-section {
    position: relative;
    width: 100%;
}

.map-hero {
    width: 100%;
    height: clamp(280px, 42vh, 480px);
}

.map-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 22%, transparent 78%, var(--bg) 100%),
        linear-gradient(90deg, color-mix(in srgb, var(--bg) 45%, transparent) 0%, transparent 18%, transparent 82%, color-mix(in srgb, var(--bg) 45%, transparent) 100%),
        radial-gradient(500px 260px at 0% 0%, color-mix(in srgb, var(--secondary) 55%, transparent), transparent 70%);
}

.map-hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    z-index: 401;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.map-hero-caption span {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    transition: transform 0.15s ease;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

.whatsapp-float-ping {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 50%;
    background: #25d366;
    animation: whatsapp-pulse 2.2s ease-out infinite;
}

.whatsapp-float svg {
    position: relative;
    z-index: 1;
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.9); opacity: 0; }
}

@media (max-width: 760px) {
    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}

/* Footer */
.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    margin-top: 2rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--secondary) 12%, transparent) 0%, transparent 55%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--primary);
    color: var(--on-primary, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.footer-grid h4 {
    font-size: 0.9rem;
    margin: 0 0 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-grid a:not(.social-btn) {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-grid a:not(.social-btn):hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin: 0 0 0.5rem;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.article-capa {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.75rem;
}

.article-body {
    font-size: 1.02rem;
    max-width: 72ch;
}

.article-body img {
    border-radius: var(--radius-sm);
    margin: 1.25rem 0;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

.article-gallery img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: none;
}

/* Mobile */
@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 1.25rem 1rem;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.18s ease;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 0.6rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .menu-toggle {
        display: inline-flex;
    }
}
