*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    padding-top: 160px; /* Espaço para compensar o header fixo */
}

@media (max-width: 768px) {
    body {
        padding-top: 130px; /* Altura ajustada para mobile */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
}

img {
    max-width: 810px;
    height: auto;
    display: block;
    object-fit: cover;
}

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

/* Largura da barra de rolagem */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Fundo/trilho da barra de rolagem */
::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius);
}

/* O "cursor" ou ponteiro que você arrasta */
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius);
}

/* Cor da barra ao passar o mouse por cima */
::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* HEADER & NAVEGAÇÃO FIXO NO TOPO (DESKTOP E MOBILE) */
header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition:
        padding 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease,
        box-shadow 0.3s ease;
    will-change: padding;
}

/* Estado "encolhido" ao rolar a página */
header.scrolled {
    padding-top: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 0 auto;
    transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

header.scrolled .top-bar {
    padding: 8px 20px;
}

.brand {
    display: inline-block;
}

.brand img {
    height: 5rem !important;
    width: auto;
    transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

header .menu-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

header.scrolled .brand img {
    height: 2rem !important;
}

.menu-toggle {
    transition: font-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

header.scrolled .menu-toggle {
    font-size: 1.4rem;
}

.nav-scroller {
    border-top: 1px solid var(--border-color);
}

.nav-scroller .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    margin: 0 auto;
    transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

header.scrolled .nav-scroller,
header.scrolled .nav-scroller .container {
    padding: 4px 20px !important;
}

.nav-scroller::-webkit-scrollbar {
    display: none;
}

.nav-scroller a {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    white-space: nowrap;
    padding-bottom: 4px;
    transition: font-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

header.scrolled .nav-scroller a {
    font-size: 0.78rem;
}

.nav-scroller a.active,
.nav-scroller a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

/* HERO - Card destaque com imagem de fundo */
.hero-card {
    background: linear-gradient(
        135deg,
        var(--bg-dark-hero) 0%,
        var(--bg-darker-hero) 100%
    );
    border-radius: var(--radius);
    padding: 40px 35px;
    color: var(--bg-white);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow);
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.hero-tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--bg-dark-hero);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-excerpt {
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-bottom: 15px;
}

.hero-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-meta,
.hero-action a {
    font-size: 0.8rem;
    color: var(--text-meta);
}

/* TITULOS DAS SEÇÕES */
.category-section {
    margin-bottom: 50px;
}

.section-header {
    margin-bottom: 1rem;
}

.category-section .section-header h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 35px 0 10px 0;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* GRIDS DE POSTS */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 50px;
}

.social-card {
    flex: 0 0 50%;
    max-width: 50%;
}

.card-item {
    display: flex;
    flex-direction: column;
}

.posts-grid img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.card-item h2 a,
.card-item h3 a {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-item .post-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-item .meta,
.card-item a {
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.card-item .excerpt {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 12px;
}

/* BANNERS ADS */
.ad-banner-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.ad-slide {
    display: none;
}

.ad-slide.active {
    display: block;
}

.ad-banner-wrapper .ad-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-meta);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}
.ad-banner-wrapper img {
    margin: 0 auto;
    display: block;
    border-radius: var(--radius);
}

.card-ads {
    text-align: center !important;
}

.card-ads img {
    margin: 0 auto;
    display: block;
}

/* =================================================================
   COLUNAS SOCIAIS - NOVO MURAL FIXO (GRID EDITORIAL)
   ================================================================= */
.social-grid-section {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    margin: 45px 0;
}

.social-grid-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.social-grid-section .section-header h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0;
}

.social-grid-section .section-header a {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.social-fixed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.social-card-grid {
    background: var(--bg-white);
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.social-card-grid:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.social-card-grid .author-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.social-card-grid .author-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    flex: 0 0 48px;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.social-card-grid .author-details .author-name-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin: 0;
}

.social-card-grid .author-details span {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
}

.social-card-grid h3 a {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.social-card-grid .img-social-column {
    width: 100%;
    height: 150px;
    border-radius: var(--radius);
    object-fit: cover;
    margin-top: auto;
}

.social-column-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.social-column-action .meta,
.social-column-action a {
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 8px;
}

/* Estilos para a Seção de Edições do Programa */
.program-editions-section {
    margin: 40px 0;
}

.brand-program {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-program img {
    height: 4rem;
    width: auto;
}

.section-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.program-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .program-container {
        grid-template-columns: 1fr;
    }
}

/* Player Principal / Destaque */
.program-player-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eaeaea;
}

.program-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.program-thumb-wrapper img,
.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.program-thumb-wrapper:hover img,
.playlist-thumb:hover img {
    transform: scale(1.03);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    transition:
        background 0.2s,
        transform 0.2s;
}

.program-thumb-wrapper:hover .play-overlay {
    background: #0056b3;
    transform: translate(-50%, -50%) scale(1.1);
}

.program-featured-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.program-featured-info h3 {
    font-size: 1.35rem;
    margin: 10px 0;
    line-height: 1.4;
}

.program-featured-info p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #007bff;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-watch:hover {
    background: #0056b3;
}

.program-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* Playlist Lateral */
.program-playlist {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.program-playlist h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 600px;
    padding-right: 4px;
}

.playlist-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f7f7f7;
}

.playlist-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.playlist-thumb {
    position: relative;
    width: 110px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.playlist-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.playlist-thumb:hover i {
    opacity: 1;
}

.playlist-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-details h5 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-details .meta {
    font-size: 0.75rem;
    color: #888;
}

@media (max-width: 576px) {
    .social-fixed-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   FOOTER MODERNO E ESSENCIAL - REVISTA ENTRE
   ============================================================== */
.site-footer {
    background-color: var(--bg-footer, #0b0f19);
    color: var(--text-light-gray, #94a3b8);
    font-family: 'Inter', sans-serif;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.site-footer .footer-col h4 {
    color: var(--bg-white, #ffffff);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.site-footer .footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 28px;
    height: 2px;
    background-color: var(--primary, #003399);
}

.site-footer .footer-brand-img {
    max-width: 150px;
    margin-bottom: 15px;
    display: block;
    filter: brightness(0) invert(1);
}

.site-footer .footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-light-gray, #94a3b8);
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 12px;
}

.site-footer .footer-links a {
    color: var(--text-light-gray, #94a3b8);
    text-decoration: none;
    font-size: 0.9rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
    display: inline-block;
}

.site-footer .footer-links a:hover {
    color: var(--bg-white, #ffffff);
    transform: translateX(4px);
}

.site-footer .footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.site-footer .footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--bg-white, #ffffff);
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-footer .footer-socials a:hover {
    background-color: var(--primary, #003399);
}

.site-footer .footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .site-footer .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* BOTÃO VOLTAR AO TOPO */
#btnTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--primary, #003399);
    color: var(--bg-white, #ffffff);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

#btnTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btnTop:hover {
    background-color: var(--primary-hover, #002266);
    transform: translateY(-3px);
}

#btnTop svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* =================================================================
   AJUSTES GLOBAIS E MOBILE EXPERIENCE
   ================================================================= */
body,
html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .top-bar {
        padding: 12px 16px;
    }

    .brand img {
        height: 4rem;
    }

    header.scrolled .brand img {
        height: 2.5rem;
    }

    .nav-scroller .container {
        gap: 12px;
        padding: 8px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 992px) {
    .hero-card {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 20px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .social-fixed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .social-grid-section {
        padding: 20px 15px;
        margin: 30px 0;
    }
}

@media (max-width: 576px) {
    .social-fixed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .program-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .playlist-items {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
    }

    .site-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .site-footer .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .site-footer .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #btnTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* =================================================================
   REVISÃO MOBILE (UX / LAYOUT)
   ================================================================= */

/* Títulos dos cards: tamanho/entrelinha aplicados no bloco (h2/h3),
   não só no <a> inline — antes a linha herdava a fonte maior do h3
   e os títulos ficavam com espaçamento exagerado entre linhas. */
.card-item h2,
.card-item h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 8px;
}

/* Cabeçalho de seção: título e "Ver Mais" na mesma linha */
.category-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}

.category-section .section-header > a {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    padding: 8px 0 18px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    /* O "5rem !important" da regra base anulava o tamanho mobile:
       o logo ocupava ~110px de altura fixa no topo do celular. */
    .brand img {
        height: 3.25rem !important;
    }

    header.scrolled .brand img {
        height: 2.25rem !important;
    }

    .menu-toggle,
    header .menu-right > a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    /* HERO: imagem antes do texto para a manchete visual aparecer
       acima da dobra; título menor para não ocupar a tela toda. */
    .hero-card {
        padding: 16px 16px 20px;
        gap: 14px;
    }

    .hero-card > a {
        order: -1;
    }

    .hero-img {
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .hero-title {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .hero-meta,
    .hero-action a {
        color: var(--text-subtle);
    }

    .hero-action a {
        padding: 8px 0;
    }

    .category-section {
        margin-bottom: 30px;
    }

    .category-section .section-header h2 {
        margin-top: 20px;
    }

    .posts-grid {
        margin-bottom: 30px;
    }

    /* CARDS COMPACTOS: o primeiro card de cada bloco continua em
       destaque; os demais viram lista (miniatura + título). Reduz a
       home de ~23.000px para menos da metade e facilita escanear. */
    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) {
        display: grid;
        grid-template-columns: 116px 1fr;
        grid-template-areas:
            'thumb tag'
            'thumb title'
            'thumb action';
        grid-template-rows: auto auto 1fr;
        column-gap: 12px;
        align-items: start;
        padding-top: 1.25rem;
        border-top: 1px solid var(--border-color);
    }

    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) > a:first-child {
        grid-area: thumb;
        margin: 0;
    }

    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) img {
        width: 116px;
        height: 87px;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        margin: 0;
    }

    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) .tag {
        grid-area: tag;
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        margin-bottom: 4px;
    }

    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) > :is(h2, h3) {
        grid-area: title;
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) > :is(h2, h3) a {
        font-size: inherit;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }

    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) .post-action {
        grid-area: action;
    }

    /* imagem e título já são links; o "Ler matéria" não cabe ao lado */
    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) .post-action a {
        display: none;
    }

    :is(.posts-grid > .card-item:not(:first-child), .category-section .posts-grid ~ .posts-grid > .card-item):is(:has(> h2), :has(> h3)) .meta {
        font-size: 0.75rem;
        margin: 0;
    }

    .posts-grid:has(> .card-item > :is(h2, h3)) {
        gap: 1.25rem;
    }

    /* Colunas sociais */
    .social-card-grid .img-social-column {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* ENTRE TV */
    .brand-program img {
        height: 2.75rem;
    }

    .program-featured-info {
        padding: 16px;
    }

    .program-featured-info h3 {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .program-action {
        flex-wrap: wrap;
        gap: 12px;
    }

    .btn-watch {
        white-space: nowrap;
        min-height: 44px;
        padding: 10px 16px;
    }

    .program-playlist {
        padding: 16px;
    }

    .playlist-items > .btn-watch {
        justify-content: center;
        margin-top: 4px;
    }
}

@media (max-width: 992px) {
    /* Sem rolagem interna (scroll dentro de scroll) no celular/tablet:
       o último episódio ficava cortado e o "Ver Todos" escondido. */
    .playlist-items {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .site-footer .footer-brand-img {
        margin-left: auto;
        margin-right: auto;
    }

    .site-footer .footer-links li {
        margin-bottom: 4px;
    }

    .site-footer .footer-links a {
        padding: 10px 8px;
    }

    .site-footer .footer-socials a {
        width: 44px;
        height: 44px;
    }

    /* botões flutuantes (acessibilidade / voltar ao topo) ocultos no
       mobile: cobriam o texto das matérias. A acessibilidade continua
       acessível pelo link "Acessibilidade" no rodapé. */
    .a11y-fab,
    #btnTop {
        display: none !important;
    }

    .site-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}
