﻿/* CSS Version: 2025-02-04-008 - SIDE PANEL FIX */
/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'UOLText';
    src: url('../fonts/uol-text-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UOLText';
    src: url('../fonts/uol-text-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'UOLText';
    src: url('../fonts/uol-text-bold.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Cores */
    --primary: #2563eb;
    --secondary: #64748b;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f8fafc;
    --border: #e2e8f0;
    --destructive: #ef4444;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #0f172a;
    --radius: 8px;
    --card-bg: #ffffff;
    --news-card-radius: 12px;
    --news-columns: 3;
    --news-columns-expanded: 4;
    --footer-bg: var(--header-bg, #f1f5f9);
    --footer-text: #64748b;
    --footer-text-auto: #64748b;
    --header-top-strip-bg: #1c2737;
    --header-top-strip-bg: color-mix(in srgb, var(--header-bg, #1c2737) 90%, #000 10%);
    --header-top-strip-text: var(--header-text, #ffffff);
    --header-menu-icon-color: #ffffff;
    --font-news: 'Roboto Condensed', 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
    --font-uol: 'UOLText', Arial, sans-serif;
    --mobile-top-strip-height: 34px;
    --mobile-header-height: 62px;
    --sidebar-banner-width: 200px;
    --sidebar-banner-offset-right: 1rem;
    --sidebar-banner-gap: 0.45rem;

    /* Espaçamentos */
    --container-max: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

body {
    font-family: var(--font-news);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--header-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-top-strip {
    width: 100%;
    background: var(--header-top-strip-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0.26rem;
    padding-bottom: 0.26rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-height: var(--mobile-top-strip-height);
}

.header-top-strip-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.header-top-strip-title {
    display: inline-block;
    width: auto;
    font-family: var(--font-uol);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--header-top-strip-text, var(--header-text, #ffffff));
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
    max-width: none;
    order: 2;
}

.header-top-strip-subtitle {
    display: inline-block;
    width: auto;
    font-family: var(--font-uol);
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--header-top-strip-text, var(--header-text, #ffffff));
    opacity: 0.95;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
    order: 1;
}

.header>.container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 74px;
    position: relative;
    padding-right: 3.75rem;
}

.header-content-brand {
    justify-content: flex-start;
    padding-left: 3.75rem;
}

/* Transição suave do body quando filtra categoria */
body {
    transition: opacity 0.1s ease;
}

.main {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.app-shell-loading .main {
    opacity: 0.84;
    transform: translateY(8px);
}

body.app-shell-ready .main {
    opacity: 1;
    transform: translateY(0);
}

body.app-shell-ready .stories-section,
body.app-shell-ready .top-banners-section,
body.app-shell-ready .news-section {
    animation: appSectionReveal 0.34s ease both;
}

@keyframes appSectionReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skeletonShimmer {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(100deg,
            rgba(148, 163, 184, 0.18) 15%,
            rgba(148, 163, 184, 0.32) 40%,
            rgba(148, 163, 184, 0.18) 65%);
    background-size: 220% 100%;
    animation: skeletonShimmer 1.3s linear infinite;
}

.news-grid.is-loading-skeleton {
    align-items: stretch;
}

.news-skeleton-card {
    background: var(--card-bg, #ffffff);
    border-radius: var(--news-card-radius, 12px);
    border: 1px solid var(--border);
    overflow: hidden;
    min-height: 228px;
    display: flex;
    flex-direction: column;
}

.news-skeleton-media {
    width: 100%;
    height: 148px;
}

.news-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem;
    margin-top: auto;
}

.news-skeleton-pill {
    width: 42%;
    height: 0.72rem;
    border-radius: 999px;
}

.news-skeleton-line {
    width: 92%;
    height: 0.66rem;
    border-radius: 999px;
}

.news-skeleton-line.is-short {
    width: 64%;
}

.stories-scroll .story-skeleton-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.story-skeleton-avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.story-skeleton-title {
    display: block;
    width: 62px;
    height: 0.7rem;
    border-radius: 999px;
}

.mobile-nav.is-loading-skeleton,
.side-panel-nav.is-loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-skeleton-link {
    pointer-events: none;
    cursor: default;
}

.mobile-nav .nav-skeleton-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.side-panel-nav .nav-skeleton-link {
    pointer-events: none;
}

.nav-skeleton-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.nav-skeleton-text {
    display: inline-flex;
    width: 88px;
    max-width: 70%;
    height: 0.62rem;
    border-radius: 999px;
}

.instagram-news-grid.is-loading-skeleton,
.instagram-news-grid.instagram-news-grid-full.is-loading-skeleton {
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow: visible;
}

.instagram-skeleton-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--news-card-radius, 12px);
    overflow: hidden;
}

.instagram-skeleton-media {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.instagram-skeleton-footer {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    padding: 0.6rem 0.65rem 0.7rem;
}

.instagram-skeleton-line {
    width: 88%;
    height: 0.62rem;
    border-radius: 999px;
}

.instagram-skeleton-line.is-short {
    width: 58%;
}

@media (max-width: 768px) {
    .news-skeleton-card {
        border-radius: var(--news-card-radius, 12px);
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer {
        animation: none;
    }

    body.app-shell-ready .stories-section,
    body.app-shell-ready .top-banners-section,
    body.app-shell-ready .news-section {
        animation: none;
    }
}

/* Botão Início no header */
.btn-inicio-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    margin-right: 1rem;
    color: var(--home-btn-color, var(--header-text, #ffffff));
    text-decoration: none;
    font-family: var(--font-uol);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    transition: transform 0.2s ease;
    white-space: nowrap;
    background: transparent;
    border: none;
    transform-origin: center center;
}



.btn-inicio-header svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Ícone da casa - escondido no desktop */
.btn-inicio-header .home-icon {
    display: none;
}

/* Texto "Início" - visível no desktop */
.btn-inicio-header .home-text {
    display: inline;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-uol);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--header-text, #ffffff);
    text-decoration: none;
    letter-spacing: 0.01em;
    max-width: min(100%, 960px);
}

.nav-desktop {
    display: none;
    gap: 0.25rem;
}

/* Classe para forçar visibilidade quando tem conteúdo */
.nav-desktop.has-categories {
    display: flex !important;
}

.nav-desktop a {
    padding: 0.35rem 0.4rem;
    color: var(--header-text, #ffffff);
    text-decoration: none;
    font-family: var(--font-uol) !important;
    font-size: 0.74rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.05em !important;
    line-height: 1.2;
    opacity: 0.95;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-desktop a:hover {
    color: var(--primary);
    background: var(--accent);
}

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

.btn-search,
.btn-menu-mobile {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-search:hover,
.btn-menu-mobile:hover {
    background: var(--accent);
    color: var(--foreground);
}

.btn-menu-mobile {
    color: var(--header-menu-icon-color, #ffffff);
    display: flex;
}

.btn-menu-mobile:hover {
    color: var(--header-menu-icon-color, #ffffff);
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    max-width: 600px;
    width: 90%;
    position: relative;
}

.search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted-foreground);
}

.search-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-results {
    margin-top: var(--spacing-md);
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--accent);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.search-result-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.search-no-results {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--muted-foreground);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: right 0.3s;
    padding: var(--spacing-lg);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-nav a {
    padding: 0.4rem 0.625rem;
    color: var(--foreground);
    text-decoration: none;
    font-family: var(--font-uol);
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav a:hover {
    background: var(--accent);
}

/* Indicador de cor das categorias */
.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.side-panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
    margin-right: 0.75rem;
}

/* Side Panel (Categories Menu) - Fixed Right Sidebar Style */
.btn-side-menu-fixed {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--header-menu-icon-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: opacity 0.2s;
}

.btn-side-menu-fixed:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .header-content {
        min-height: 66px;
        padding-right: 3.25rem;
    }

    .logo {
        gap: 0.6rem;
    }

    .btn-side-menu-fixed {
        right: 0.35rem;
    }

    .btn-inicio-header {
        padding: 0.3rem;
        margin-right: 0.5rem;
        font-size: 0;
    }

    /* No mobile: mostrar ícone, esconder texto */
    .btn-inicio-header .home-icon {
        display: block;
        width: 24px;
        height: 24px;
    }

    .btn-inicio-header .home-text {
        display: none;
    }
}

/* Side Panel Backdrop - escurece o site */
.side-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.side-panel.active {
    right: 0;
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #3d1a4a;
    color: white;
}

.side-panel-title {
    font-size: 0.875rem;
    font-family: var(--font-uol);
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-panel-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.side-panel-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.side-panel-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.side-panel-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.4rem 1rem;
    color: #333;
    text-decoration: none;
    font-family: var(--font-uol);
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.side-panel-link:hover {
    background: #f8f8f8;
    padding-left: 1.25rem;
}

.side-panel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Main */
.main {
    flex: 1;
    padding: 0 0 var(--spacing-xl);
}

/* Sections */
.hero-section,
.news-section {
    margin-bottom: var(--spacing-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-uol);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--foreground);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Stories Section */
.stories-section {
    padding: 1rem 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.stories-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.story-item-title {
    font-size: 0.75rem;
    color: var(--foreground);
    max-width: 72px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Top Banners */
.top-banners-section {
    padding: 0.2rem 0 1rem;
    background: var(--background);
}

.top-banners-grid {
    display: grid;
    grid-template-columns: repeat(var(--top-banner-columns, 2), minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.top-banner-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: var(--radius, 8px);
    border: 1px solid var(--border);
    overflow: hidden;
    aspect-ratio: 1080 / 200;
    background: transparent;
}

.top-banner-card.is-empty {
    display: none;
}

.top-banner-track {
    position: absolute;
    inset: 0;
}

.top-banner-image,
.top-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    background: transparent;
}

.top-banner-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.top-banner-card.transition-fade .top-banner-slide,
.top-banner-card.transition-zoom .top-banner-slide {
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.top-banner-card.transition-fade .top-banner-slide.active,
.top-banner-card.transition-zoom .top-banner-slide.active {
    opacity: 1;
}

.top-banner-card.transition-zoom .top-banner-slide {
    transform: scale(1);
}

.top-banner-card.transition-zoom .top-banner-slide.active {
    transform: scale(1);
}

.top-banner-card.transition-slide .top-banner-slide {
    opacity: 1;
    transform: translateX(calc(var(--offset, 1) * 100%));
    transition: transform 0.7s ease;
}

@media (max-width: 980px) {
    .top-banner-card {
        min-width: 0;
    }
}

/* Sidebar Banner (Desktop Only) */
.sidebar-banner-aside {
    position: absolute;
    right: var(--sidebar-banner-offset-right);
    width: var(--sidebar-banner-width);
    z-index: 50;
    display: none !important;
}

.sidebar-banner-sticky {
    width: var(--sidebar-banner-width);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-banner-card {
    position: relative;
    width: var(--sidebar-banner-width);
    overflow: hidden;
    background: transparent;
}

.sidebar-banner-card.is-empty {
    display: none;
}

.sidebar-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.sidebar-banner-image {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.sidebar-banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.sidebar-banner-card.transition-fade .sidebar-banner-slide,
.sidebar-banner-card.transition-zoom .sidebar-banner-slide {
    opacity: 0;
    transition: opacity 0.75s ease;
}

.sidebar-banner-card.transition-fade .sidebar-banner-slide.active,
.sidebar-banner-card.transition-zoom .sidebar-banner-slide.active {
    opacity: 1;
}

.sidebar-banner-card.transition-slide .sidebar-banner-slide {
    opacity: 1;
    transform: translateY(calc(var(--offset, 1) * 100%));
    transition: transform 0.7s ease;
}

@media (min-width: 1200px) {
    .sidebar-banner-aside {
        display: none !important;
    }

    body.has-sidebar-banner .top-banners-section .container,
    body.has-sidebar-banner .stories-section .container,
    .news-section.with-sidebar-gap .container,
    .news-section.after-sidebar .container {
        max-width: var(--container-max);
        margin-left: auto;
        margin-right: auto;
        padding-right: var(--spacing-md);
    }
}

@media (max-width: 1199px) {
    .sidebar-banner-aside {
        display: none !important;
    }
}

/* Story Modal */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.story-modal.active {
    display: flex;
}

.story-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.story-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 2001;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}

.story-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.story-viewer {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 750px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.story-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.story-progress-bar {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    padding-top: 1.5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 5;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.story-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.story-author span {
    font-weight: 600;
    font-size: 0.9375rem;
}

.story-time {
    font-weight: 400 !important;
    opacity: 0.7;
    font-size: 0.8125rem !important;
}

.story-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.story-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-caption {
    position: absolute;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.story-actions {
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
}

.story-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.story-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.story-nav-prev {
    left: -60px;
}

.story-nav-next {
    right: -60px;
}

@media (max-width: 600px) {
    .story-viewer {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .story-nav-prev {
        left: 1rem;
    }

    .story-nav-next {
        right: 1rem;
    }

    .story-modal-close {
        top: 1rem;
        right: 1rem;
    }
}

/* Instagram Video Modal */
.instagram-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2300;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding:
        calc(var(--instagram-modal-viewport-top, 0px) + 0.55rem + env(safe-area-inset-top))
        calc(0.55rem + env(safe-area-inset-right))
        calc(max(0.55rem, var(--instagram-modal-viewport-bottom-gap, 0px)) + env(safe-area-inset-bottom))
        calc(0.55rem + env(safe-area-inset-left));
    --instagram-player-accent-a: var(--header-top-strip-bg, #2e0f49);
    --instagram-player-accent-b: color-mix(in srgb, var(--header-bg, #18223a) 78%, #05080f 22%);
    --instagram-player-accent-c: color-mix(in srgb, var(--header-text, #ffffff) 16%, var(--instagram-player-accent-a) 84%);
    --instagram-modal-viewport-height: 100dvh;
    --instagram-modal-viewport-width: 100vw;
    --instagram-modal-viewport-top: 0px;
    --instagram-modal-viewport-left: 0px;
    --instagram-modal-viewport-bottom-gap: 0px;
    --instagram-modal-stage-max-height: calc(var(--instagram-modal-viewport-height, 100dvh) - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

.instagram-video-modal.active {
    display: flex;
}

.instagram-video-modal.is-fullscreen-pending {
    opacity: 0;
    pointer-events: none;
}

.instagram-video-modal.is-fullscreen-pending .instagram-video-modal-backdrop,
.instagram-video-modal.is-fullscreen-pending .instagram-video-modal-dialog {
    opacity: 0;
}

.instagram-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--instagram-player-accent-a) 72%, #ffffff 28%) 0%, transparent 42%),
        radial-gradient(circle at 86% 84%, color-mix(in srgb, var(--instagram-player-accent-b) 68%, #ffffff 32%) 0%, transparent 46%),
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--instagram-player-accent-a) 82%, #030712 18%) 0%,
            color-mix(in srgb, var(--instagram-player-accent-b) 86%, #000000 14%) 58%,
            #02040b 100%
        );
    backdrop-filter: blur(8px) saturate(1.2);
}

.instagram-video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 620px);
    max-width: min(620px, calc(var(--instagram-modal-viewport-width, 100vw) - 1.1rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height: calc(var(--instagram-modal-viewport-height, 100dvh) - 1.1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    border: 1px solid rgba(248, 250, 252, 0.16);
    background: color-mix(in srgb, var(--instagram-player-accent-a) 78%, #030712 22%);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
    isolation: isolate;
}

.instagram-video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: var(--instagram-video-aspect, 9 / 16);
    max-height: var(--instagram-modal-stage-max-height, calc(100dvh - 2rem));
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(248, 250, 252, 0.1);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.42);
}

.instagram-video-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: inherit;
    object-fit: contain;
    -webkit-tap-highlight-color: transparent;
}

.instagram-video-stage:fullscreen,
.instagram-video-stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #000;
}

.instagram-video-stage:fullscreen .instagram-video-player,
.instagram-video-stage:-webkit-full-screen .instagram-video-player,
.instagram-video-player:fullscreen,
.instagram-video-player:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    object-fit: contain;
    background: #000;
}

.instagram-video-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: radial-gradient(circle at center, rgba(10, 14, 26, 0.58) 0%, rgba(3, 5, 10, 0.9) 72%);
    color: rgba(248, 250, 252, 0.92);
    font-family: var(--font-uol, 'Arial', sans-serif);
    letter-spacing: 0.01em;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.instagram-video-modal.is-loading .instagram-video-loader {
    opacity: 1;
}

.instagram-video-modal.is-error .instagram-video-loader {
    opacity: 0;
}

.instagram-video-loader-ring {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 3px solid rgba(248, 250, 252, 0.22);
    border-top-color: var(--header-bg, #2563eb);
    border-right-color: var(--header-bg, #2563eb);
    animation: instagramVideoLoaderSpin 0.9s linear infinite;
}

.instagram-video-feedback {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    width: 84px;
    height: 84px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.26);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22) 0%, rgba(6, 10, 21, 0.88) 72%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.instagram-video-feedback-icon {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.instagram-video-feedback.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.instagram-video-error {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 5;
    padding: 0.95rem 0.9rem calc(0.9rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.86) 60%, rgba(2, 6, 23, 0.1) 100%);
    display: none;
    flex-direction: column;
    gap: 0.55rem;
    align-items: stretch;
}

.instagram-video-modal.is-error .instagram-video-error {
    display: flex;
}

.instagram-video-error-text {
    margin: 0;
    color: #f8fafc;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: center;
}

.instagram-video-error-debug {
    margin: 0;
    padding: 0.5rem 0.56rem;
    border-radius: 8px;
    border: 1px solid rgba(248, 250, 252, 0.18);
    background: rgba(15, 23, 42, 0.72);
    color: rgba(241, 245, 249, 0.94);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.66rem;
    line-height: 1.35;
    max-height: 128px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

.instagram-video-error-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.instagram-video-error-action {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: color-mix(in srgb, var(--header-top-strip-bg, #2e0f49) 70%, #ffffff 12%);
    color: #fff;
    border-radius: 999px;
    min-height: 36px;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-uol, 'Arial', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.instagram-video-error-action.is-secondary {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(248, 250, 252, 0.24);
}

.instagram-video-error-action:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.instagram-video-error-action#instagramVideoErrorAction {
    grid-column: 1 / -1;
}

@keyframes instagramVideoLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

.instagram-video-player::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
}

.instagram-video-modal-chrome {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    padding: calc(max(0.42rem, env(safe-area-inset-top))) 0.52rem 0.32rem;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--instagram-player-accent-a) 82%, #020617 18%) 0%,
        rgba(2, 6, 23, 0.34) 52%,
        rgba(2, 6, 23, 0) 100%
    );
}

.instagram-video-modal-close {
    align-self: flex-end;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--instagram-player-accent-a) 84%, #ffffff 16%) 0%,
        color-mix(in srgb, var(--instagram-player-accent-c) 86%, #020617 14%) 100%
    );
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    min-height: 32px;
    min-width: 32px;
    padding: 0.34rem 0.56rem;
    font-family: var(--font-uol, 'Arial', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 7px 18px rgba(3, 7, 18, 0.24);
}

.instagram-video-close-icon-instagram,
.instagram-video-modal-close-text-mobile {
    display: none;
}

.instagram-video-modal-close:hover {
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--instagram-player-accent-a) 88%, #ffffff 12%) 0%,
        color-mix(in srgb, var(--instagram-player-accent-c) 90%, #020617 10%) 100%
    );
    border-color: rgba(255, 255, 255, 0.44);
    transform: translateY(-1px);
}

.instagram-video-progress-track {
    position: absolute;
    left: 0.62rem;
    right: 0.62rem;
    bottom: calc(0.62rem + env(safe-area-inset-bottom));
    z-index: 4;
    width: auto;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    overflow: hidden;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.instagram-video-progress-buffer {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.18s linear;
}

.instagram-video-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--instagram-player-accent-a) 88%, #ffffff 12%) 0%,
        color-mix(in srgb, var(--instagram-player-accent-c) 82%, #ffffff 18%) 100%
    );
    transition: width 0.12s linear;
}

.instagram-video-modal.is-error .instagram-video-progress-track {
    opacity: 0;
}

@media (max-width: 768px) {
    .instagram-video-modal {
        padding:
            calc(var(--instagram-modal-viewport-top, 0px) + 0.4rem + env(safe-area-inset-top))
            calc(0.4rem + env(safe-area-inset-right))
            calc(max(0.4rem, var(--instagram-modal-viewport-bottom-gap, 0px)) + env(safe-area-inset-bottom))
            calc(0.4rem + env(safe-area-inset-left));
        --instagram-modal-stage-max-height: calc(var(--instagram-modal-viewport-height, 100dvh) - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .instagram-video-modal-backdrop {
        backdrop-filter: blur(10px) saturate(1.15);
    }

    .instagram-video-modal-dialog {
        width: 100%;
        max-width: min(430px, calc(var(--instagram-modal-viewport-width, 100vw) - 0.8rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
        max-height: calc(var(--instagram-modal-viewport-height, 100dvh) - 0.8rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        padding: 0.52rem;
        border-radius: 16px;
    }

    .instagram-video-stage {
        width: min(100%, calc(var(--instagram-modal-stage-max-height, 100dvh) * var(--instagram-video-aspect-number, 0.5625)));
        max-width: 100%;
        max-height: var(--instagram-modal-stage-max-height, calc(100dvh - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
        margin: 0 auto;
        border-radius: 12px;
    }

    .instagram-video-modal-chrome {
        padding: calc(max(0.4rem, env(safe-area-inset-top))) 0.42rem 0.42rem;
    }

    .instagram-video-progress-track {
        left: 0.44rem;
        right: 0.44rem;
        bottom: calc(0.48rem + env(safe-area-inset-bottom));
    }

    .instagram-video-modal-close {
        align-self: flex-end;
        justify-content: center;
        min-height: 34px;
        min-width: 34px;
        padding: 0.34rem 0.58rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        font-size: 0.78rem;
        gap: 0.42rem;
    }

    .instagram-video-modal-close:hover {
        transform: none;
    }

    .instagram-video-close-icon-x,
    .instagram-video-modal-close-text-desktop {
        display: none;
    }

    .instagram-video-close-icon-instagram {
        display: inline-flex;
        width: 17px;
        height: 17px;
    }

    .instagram-video-modal-close-text-mobile {
        display: inline-flex;
        align-items: center;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    body.instagram-video-modal-open #whatsappGroupPopup,
    body.instagram-video-modal-open .whatsapp-popup {
        display: none !important;
    }
}

/* Instagram News Section - Layout tipo feed do Instagram */
.instagram-news-section {
    background: var(--background);
    border-top: none;
    padding-top: 0;
}

.instagram-news-section>.container {
    border-top: 0;
    padding-top: 0;
}

.instagram-news-section>.container>.instagram-section-header {
    border-top: 3px solid #E4405F;
    padding-top: 1.1rem;
}

.instagram-news-section .section-title {
    color: #E4405F;
}

.instagram-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.instagram-section-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    body.instagram-post-focus-mode #topBannersSection {
        display: none !important;
    }

    body.instagram-post-focus-mode .instagram-news-section .instagram-section-header,
    body.instagram-post-focus-mode #instagramFeedSection .instagram-section-header {
        display: none !important;
    }

    body.instagram-post-focus-mode main>.news-section:not(.instagram-news-section):not(#instagramFeedSection),
    body.instagram-post-focus-mode footer.footer {
        display: none !important;
    }
}

.instagram-carousel-shell {
    position: relative;
    --instagram-swipe-hint-top: 50%;
}

.instagram-carousel-shell::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.5rem;
    background: linear-gradient(270deg, var(--background) 15%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.instagram-swipe-hint {
    position: absolute;
    top: var(--instagram-swipe-hint-top);
    right: 0.4rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    display: none;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 4;
}

.instagram-swipe-hint svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

@keyframes instagramSwipeHintNudge {

    0%,
    100% {
        transform: translateY(-50%) translateX(0) scale(1);
    }

    50% {
        transform: translateY(-50%) translateX(-2px) scale(1);
    }
}

.instagram-mobile-next-btn {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(228, 64, 95, 0.35);
    background: #fff;
    color: #E4405F;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.instagram-mobile-next-btn:hover {
    background: #fff1f5;
    border-color: rgba(228, 64, 95, 0.6);
}

/* Card "Ver Todos" */
.instagram-view-all-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.instagram-view-all-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(228, 64, 95, 0.25);
}

/* Grid de posts do Instagram - 4 colunas compactas */
.instagram-news-grid {
    display: grid;
    grid-template-columns: repeat(var(--instagram-columns, 4), 1fr);
    grid-template-rows: 1fr;
    grid-auto-rows: 0;
    gap: 1rem;
    width: 100%;
    position: relative;
    grid-auto-flow: dense;
    align-items: start;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .instagram-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .instagram-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .instagram-news-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .instagram-card.expanded {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .instagram-card.expanded .instagram-card-image-wrapper {
        min-height: 240px;
        max-height: none;
    }

    .instagram-card.expanded .instagram-card-content {
        max-height: none;
    }
}

/* Card do Instagram - Layout vertical compacto */
.instagram-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--news-card-radius, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
    height: auto;
    max-width: 100%;
    position: relative;
}

.instagram-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Card expandido no grid - ocupa 2 colunas sem quebrar fileira */
.instagram-card.expanded {
    grid-column: span 2;
    grid-row: span 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    cursor: default;
    background: white;
    z-index: 10;
}

.instagram-card.expanded .instagram-card-image-wrapper {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
    max-height: 400px;
    background: #f0f0f0;
}

.instagram-card.expanded .instagram-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instagram-card.expanded .instagram-card-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
}

.instagram-card.expanded .instagram-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: 400px;
    background: white;
}

.instagram-card.expanded .instagram-card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #efefef;
    flex-shrink: 0;
}

.instagram-card.expanded .instagram-card-caption-full {
    display: block !important;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #262626;
    white-space: pre-wrap;
    margin-bottom: 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.instagram-card.expanded .instagram-card-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 34px;
    min-width: 34px;
    padding: 0.4rem 0.78rem;
    background: linear-gradient(180deg, #f9fbff 0%, #eef3f8 100%);
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    color: #32465f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.instagram-card.expanded .instagram-card-close:hover {
    background: linear-gradient(180deg, #f4f8fd 0%, #e8eef6 100%);
    border-color: #cdd8e5;
    color: #24384f;
}

.instagram-card.expanded .instagram-card-close svg {
    width: 13px;
    height: 13px;
}

.instagram-card.expanded .instagram-card-close span {
    line-height: 1;
    white-space: nowrap;
    text-transform: none;
}

@media (max-width: 640px) {
    .instagram-card.expanded .instagram-card-close {
        width: auto;
        min-height: 32px;
        min-width: 32px;
        padding: 0.34rem 0.62rem;
        border-radius: 8px;
        gap: 0.32rem;
    }

    .instagram-card.expanded .instagram-card-close span {
        display: inline;
        font-size: 0.72rem;
        line-height: 1;
    }
}

.instagram-card.expanded .instagram-card-title-preview,
.instagram-card.expanded .instagram-card-time {
    display: none;
}

.instagram-card.expanded .instagram-card-actions {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #efefef;
    flex-shrink: 0;
}

/* Esconder elementos no modo expandido */
.instagram-card .instagram-card-caption-full,
.instagram-card .instagram-card-close {
    display: none !important;
}

/* Garantir que legenda completa nunca apareça no card fechado */
.instagram-card:not(.expanded) .instagram-card-caption-full {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .instagram-card.expanded {
        grid-column: span 2;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }

    .instagram-card.expanded .instagram-card-image-wrapper {
        min-height: 200px;
    }

    .instagram-card.expanded .instagram-card-content {
        max-height: 320px;
    }
}

/* Imagem do card - Mostrar imagem completa sem cortar */
.instagram-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
}

.instagram-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f0f0f0;
}

.instagram-card-image-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f0f0f0;
}

/* Zoom global configuravel para preencher todo o card */
.instagram-media-zoom-enabled .instagram-card-image-wrapper img,
.instagram-media-zoom-enabled .instagram-card-image-wrapper video,
.instagram-media-zoom-enabled .instagram-gallery-container img,
.instagram-media-zoom-enabled .instagram-gallery-container video {
    object-fit: cover !important;
}

.instagram-card-image-wrapper.is-video {
    cursor: pointer;
}

.instagram-card-image-wrapper.is-video video {
    cursor: pointer;
}

.instagram-video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 7;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.instagram-video-play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.06);
    filter: brightness(1.08);
}

.instagram-video-play-overlay svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.instagram-video-play-overlay.is-indicator {
    cursor: default;
}

.instagram-video-play-overlay.is-indicator:hover {
    transform: translate(-50%, -50%);
    filter: none;
}

.instagram-card:not(.expanded) .instagram-video-play-overlay {
    opacity: 0.78;
    pointer-events: auto;
}

.instagram-card.expanded .instagram-video-play-overlay {
    opacity: 0.94;
    pointer-events: auto;
}

.instagram-card:not(.expanded) .instagram-video-play-overlay.is-indicator,
.instagram-card.expanded .instagram-video-play-overlay.is-indicator {
    opacity: 0.76;
    pointer-events: none;
}

/* Indicador de galeria no card fechado */
.instagram-gallery-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.56);
    color: white;
    padding: 3px 7px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 8;
}

.instagram-gallery-indicator svg {
    display: none !important;
}

.instagram-gallery-indicator span {
    display: inline-block;
}

/* Setas da galeria removidas: navegacao agora e por swipe */
.instagram-gallery-controls {
    display: none !important;
}

/* Dots indicadores da galeria */
.instagram-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.instagram-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.instagram-gallery-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Container da galeria */
.instagram-gallery-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.instagram-gallery-container::-webkit-scrollbar {
    display: none;
}

.instagram-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    scroll-snap-align: start;
}

.instagram-gallery-container img,
.instagram-gallery-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
}

.instagram-gallery-container video {
    background: #f0f0f0;
}

/* Conteúdo do card - Compacto */
.instagram-card-content {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 0.75rem;
}

/* Header do card - Avatar e nome - Compacto */
.instagram-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.instagram-card-user {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.instagram-card-avatar {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 2px;
    flex: 0 0 28px;
    overflow: hidden;
}

.instagram-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.instagram-card-username {
    display: block;
    flex: 1 1 auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #262626;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.instagram-card-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0095f6;
    margin-left: 0.25rem;
    flex-shrink: 0;
}

/* Corpo do card - Legenda - Escondido em cards compactos */
.instagram-card-body {
    display: none;
}

.instagram-card-caption-mobile {
    display: none;
}

.instagram-card-caption {
    font-size: 0.8125rem;
    color: #262626;
    line-height: 1.4;
}

.instagram-card-caption strong {
    font-weight: 600;
}

.instagram-card-hashtags {
    color: #00376b;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.instagram-card-time {
    font-size: 0.6875rem;
    color: #8e8e8e;
    margin-top: 0.25rem;
}

/* Ações do card - Compacto */
.instagram-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #efefef;
}

.instagram-card-actions-left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 0.75rem;
}

.instagram-card-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #262626;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.instagram-card-action-btn:hover {
    color: #8e8e8e;
}

.instagram-card-action-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.instagram-card-action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #262626;
    line-height: 1;
    white-space: nowrap;
}

.instagram-card-action-btn.instagram-save-btn {
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.instagram-card-action-btn.liked svg {
    fill: #ed4956;
    color: #ed4956;
}

@media (max-width: 768px) {
    .instagram-card-actions {
        gap: 0.3rem;
    }

    .instagram-card-actions-left {
        gap: 0.35rem;
    }

    .instagram-card-action-btn {
        padding: 0.14rem;
        gap: 0.14rem;
    }

    .instagram-card-action-btn svg {
        width: 18px;
        height: 18px;
        stroke-width: 1.85;
    }

    .instagram-card-action-btn span {
        font-size: 0.68rem;
        max-width: 2.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .instagram-card-action-btn.instagram-save-btn {
        margin-left: 0.08rem;
    }

    /* No mobile, ocultar o ícone de abrir no Instagram quando o card está fechado */
    .instagram-card:not(.expanded) .instagram-card-action-btn.instagram-save-btn {
        display: none;
    }

    /* No mobile, manter o ícone de abrir no Instagram no card expandido */
    .instagram-card.expanded .instagram-card-action-btn.instagram-save-btn {
        display: flex;
    }

    /* Com 1 ícone a menos, distribuir melhor os botões do card fechado */
    .instagram-card:not(.expanded) .instagram-card-actions-left {
        width: 100%;
        justify-content: space-between;
        gap: 0.24rem;
    }

    .instagram-card:not(.expanded) .instagram-card-action-btn span {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }

    /* Card aberto: dar mais respiro entre curtir/comentar/compartilhar */
    .instagram-card.expanded .instagram-card-actions-left {
        flex: 0 1 auto;
        justify-content: flex-start;
        gap: 0.72rem;
    }

    .instagram-card.expanded .instagram-card-action-btn {
        padding: 0.2rem;
        gap: 0.2rem;
    }

    .instagram-card.expanded .instagram-card-action-btn span {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        font-size: 0.74rem;
    }
}

@media (max-width: 390px) {
    .instagram-card-actions-left {
        gap: 0.28rem;
    }

    .instagram-card-action-btn {
        padding: 0.1rem;
        gap: 0.1rem;
    }

    .instagram-card-action-btn svg {
        width: 17px;
        height: 17px;
    }

    .instagram-card-action-btn span {
        max-width: 2.5rem;
        font-size: 0.66rem;
    }

    .instagram-card:not(.expanded) .instagram-card-actions-left {
        gap: 0.18rem;
    }

    .instagram-card:not(.expanded) .instagram-card-action-btn span {
        max-width: none;
    }

    .instagram-card.expanded .instagram-card-actions-left {
        gap: 0.56rem;
    }

    .instagram-card.expanded .instagram-card-action-btn {
        padding: 0.16rem;
        gap: 0.16rem;
    }

    .instagram-card.expanded .instagram-card-action-btn span {
        max-width: none;
        font-size: 0.7rem;
    }
}

/* Stats do card - Stats inline com ícones */
.instagram-card-stats {
    display: none;
}

/* Footer antigo (mantido para compatibilidade) */
.instagram-card-footer {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.instagram-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.instagram-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.instagram-card-category {
    font-family: var(--font-uol);
    font-size: 0.6875rem;
    font-weight: 900;
    color: #E4405F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instagram-card-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.instagram-card-logo svg {
    width: 14px;
    height: 14px;
}

/* Category Sections */
.category-section {
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border);
}

.category-section:first-of-type {
    border-top: 3px solid var(--primary);
}

.category-section .section-title {
    font-size: 1.75rem;
    position: relative;
    padding-left: 1rem;
}

.category-section .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary);
    border-radius: 2px;
}

/* Cores diferentes para cada categoria */
.category-section[data-category="esportes"] .section-title::before {
    background: #059669;
}

.category-section[data-category="politica"] .section-title::before {
    background: #dc2626;
}

.category-section[data-category="policia"] .section-title::before {
    background: #7c3aed;
}

.category-section[data-category="regiao"] .section-title::before {
    background: #ea580c;
}

.category-section[data-category="mirador"] .section-title::before {
    background: #0891b2;
}

.category-section[data-category="brasil"] .section-title::before {
    background: #2563eb;
}

.category-section[data-category="instagram"] .section-title::before {
    background: #E4405F;
}

.category-section[data-category="instagram"] .section-title {
    color: #E4405F;
}

/* News Grid - Layout compacto estilo G1 */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    align-items: start;
    position: relative;
}

.news-grid>* {
    min-width: 0;
}

.news-grid.news-grid-split {
    display: block;
}

.news-grid.news-grid-split .news-grid-part {
    display: grid;
    grid-template-columns: repeat(var(--news-columns, 3), 1fr);
    gap: 1rem;
    align-items: start;
}

.news-grid.news-grid-split .news-grid-part+.news-grid-part {
    margin-top: 1rem;
}

.news-grid.news-grid-split .news-grid-part.news-grid-part-expanded {
    grid-template-columns: repeat(var(--news-columns-expanded, var(--news-columns, 3)), 1fr);
    margin-right: 0;
}

/* Container da fileira horizontal deve expandir */
.news-grid .news-row-horizontal {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.news-mobile-item {
    min-width: 0;
}

.news-mobile-wide {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .news-grid .news-row-horizontal {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card de notícia - Design compacto */
.news-card {
    background: var(--card-bg, white);
    border-radius: var(--news-card-radius, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 230px;
    position: relative;
    margin-bottom: 0;
}

.news-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 20;
    transform: translateY(-8px) scale(1.02);
}

.news-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card:hover .news-card-image-wrapper {
    height: 170px;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--muted);
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.08);
}

.news-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.2) 80%,
            transparent 100%);
    transition: all 0.3s ease;
}

.news-card:hover .news-card-gradient {
    height: 90%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.65) 50%,
            rgba(0, 0, 0, 0.3) 80%,
            transparent 100%);
}

.news-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    color: white;
    font-family: var(--font-uol);
    font-size: 0.625rem;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 1.25rem);
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.875rem;
    color: white;
    z-index: 2;
}

.news-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.news-card:hover .news-card-title {
    -webkit-line-clamp: 4;
    font-size: 0.95rem;
}

/* Conteúdo expandível no hover - DESATIVADO */
.news-card-excerpt {
    display: none;
}

.news-card-footer {
    padding: 0.25rem 0.5rem 0.375rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    background: var(--card-bg, white);
    border-top: 1px solid var(--border);
    margin-top: auto;
    min-height: auto;
}

.news-card-meta {
    display: contents;
}

.news-card-category-text {
    font-family: var(--font-uol);
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--primary);
    background: var(--info-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    align-self: flex-start;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.news-card-datetime {
    font-size: 0.6875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

.news-card-datetime svg {
    width: 12px;
    height: 12px;
}

.news-card-source {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-top: 0.125rem;
    margin-top: 0.125rem;
    width: 100%;
    min-width: 0;
}

.news-card-source-logo-img {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: contain;
    background: white;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.news-card-source-logo-img.is-site-logo {
    width: auto;
    max-width: 84px;
    height: 16px;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Linha com source e botão de compartilhar */
.news-card-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.news-card-source-row .news-card-source {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
}

/* Botão de compartilhar no card de notícia */
.news-card-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.news-card-share-btn:hover {
    background: var(--primary-light);
    color: white;
}

.news-card-share-btn svg {
    width: 14px;
    height: 14px;
}

.news-card-source-name {
    font-size: 0.625rem;
    color: var(--text-muted);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ========================================
   FILEIRA HORIZONTAL ESPECIAL
   ======================================== */
.news-row-horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .news-row-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .news-row-horizontal {
        grid-template-columns: repeat(4, 1fr);
    }
}

.news-card-horizontal {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 120px;
    height: 120px;
    background: var(--card-bg, white);
    border-radius: var(--news-card-radius, 12px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card-horizontal-image {
    width: 110px;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.instagram-card-avatar.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.instagram-card-avatar.is-empty::before {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
}

.news-card-horizontal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-horizontal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.5rem;
    background: var(--bg-card);
    min-width: 0;
}

.news-card-horizontal-title {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-news-grid.instagram-news-grid-full {
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow: visible;
}

.news-card-horizontal-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: auto;
    min-width: 0;
    width: 100%;
}

.news-card-horizontal-category {
    font-family: var(--font-uol);
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--info-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    align-self: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.news-card-horizontal-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    min-width: 0;
}

.news-card-horizontal-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card-horizontal-source {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
}

.news-card-horizontal-source-logo-img {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    object-fit: contain;
    background: white;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.news-card-horizontal-source-logo-img.is-site-logo {
    width: auto;
    max-width: 72px;
    height: 14px;
    border: none;
    border-radius: 0;
    background: transparent;
}

/* Linha com source e botão de compartilhar no card horizontal */
.news-card-horizontal-source-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
    width: auto;
    margin-left: auto;
}

.news-card-horizontal-source-row .news-card-horizontal-source {
    flex: 0 0 auto;
}

/* Botão de compartilhar no card horizontal */
.news-card-horizontal-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.news-card-horizontal-share-btn:hover {
    background: var(--primary-light);
    color: white;
}

.news-card-horizontal-share-btn svg {
    width: 12px;
    height: 12px;
}

/* Footer */
.footer {
    margin-top: auto;
    background: var(--footer-bg, var(--header-bg, var(--muted)));
    border-top: 1px solid var(--border);
    border-top-color: color-mix(in srgb, currentColor 24%, transparent);
    padding: 1.35rem 0 0.85rem;
    color: var(--footer-text, var(--footer-text-auto));
}

.footer.footer-collapsible {
    padding: 0;
}

.footer-disclosure {
    width: 100%;
}

.footer-disclosure>summary {
    list-style: none;
}

.footer-disclosure>summary::-webkit-details-marker {
    display: none;
}

.footer-disclosure>summary::marker {
    display: none;
}

.footer-disclosure-summary {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.footer-disclosure[open]>.footer-disclosure-summary {
    border-bottom-color: color-mix(in srgb, currentColor 28%, transparent);
}

.footer-disclosure-label {
    color: var(--footer-text, var(--footer-text-auto));
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-disclosure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--footer-text, var(--footer-text-auto));
    transition: transform 0.28s ease;
}

.footer-disclosure-icon svg {
    width: 16px;
    height: 16px;
}

.footer-disclosure[open] .footer-disclosure-icon {
    transform: rotate(180deg);
}

.footer-disclosure-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.34s ease, opacity 0.24s ease;
}

.footer-disclosure[open] .footer-disclosure-content {
    max-height: 2400px;
    opacity: 1;
}

.footer.footer-collapsible .footer-disclosure-content>.container {
    padding-top: 1.15rem;
    padding-bottom: 0.85rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem 1rem;
    margin-bottom: 0.75rem;
    justify-items: center;
    text-align: center;
}

.footer-col {
    width: min(100%, 760px);
}

.footer-col-brand {
    width: min(100%, 860px);
}

.footer-title {
    font-family: 'Outfit', 'Source Sans 3', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
    color: var(--footer-text, var(--footer-text-auto));
    text-align: center;
}

.footer-text {
    font-family: 'Outfit', 'Source Sans 3', sans-serif;
    color: var(--footer-text, var(--footer-text-auto));
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

.footer-heading {
    font-family: 'Outfit', 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    margin-bottom: 0.55rem;
    color: var(--footer-text, var(--footer-text-auto));
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.42rem 0.9rem;
    padding: 0;
}

.footer-links.footer-links-inline {
    justify-content: center;
}

.footer-links li {
    display: inline-flex;
}

.footer-links a {
    color: var(--footer-text, var(--footer-text-auto));
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.3;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-contact-block {
    margin-top: 0.35rem;
    padding-top: 0.25rem;
    border-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
}

.footer-contact-text {
    color: var(--footer-text, var(--footer-text-auto));
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0;
    text-align: center;
}

.footer-contact-phone {
    display: flex;
    color: var(--footer-text, var(--footer-text-auto));
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    word-break: break-word;
}

.footer-contact-phone:hover {
    text-decoration: underline;
}

.footer-contact-email {
    color: var(--footer-text, var(--footer-text-auto));
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    word-break: break-all;
    text-align: center;
}

.footer-contact-email:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--footer-text, var(--footer-text-auto));
    border: 1px solid currentColor;
    border-radius: 50%;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a.social-link-with-label {
    width: auto;
    min-height: 34px;
    padding: 0.3rem 0.72rem;
    border-radius: 999px;
    gap: 0.42rem;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.social-links a.social-link-with-label svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.social-links a.social-link-with-label span {
    line-height: 1;
    white-space: nowrap;
}

.social-links a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
    border-top-color: color-mix(in srgb, currentColor 24%, transparent);
    color: var(--footer-text, var(--footer-text-auto));
    font-size: 0.8rem;
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
}

.footer-title,
.footer-heading,
.footer-text,
.footer-links a,
.footer-contact-text,
.footer-contact-phone,
.footer-contact-email {
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
}

/* WhatsApp group popup */
.whatsapp-popup {
    position: fixed;
    left: 14px;
    bottom: 14px;
    width: min(360px, calc(100vw - 28px));
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    z-index: 2600;
    pointer-events: none;
}

.whatsapp-popup-launcher,
.whatsapp-popup-card {
    pointer-events: auto;
}

.whatsapp-popup-launcher {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 3px solid #ffffff;
    background: #25d366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 22px rgba(4, 60, 30, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-popup-launcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 26px rgba(4, 60, 30, 0.34);
}

.whatsapp-popup-launcher svg {
    width: 32px;
    height: 32px;
}

.whatsapp-popup-card {
    width: min(340px, calc(100vw - 90px));
    margin: 0 0 12px 12px;
    background: #ffffff;
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    box-shadow: 0 22px 34px rgba(15, 23, 42, 0.2);
    padding: 1rem 1rem 0.95rem;
    position: relative;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.whatsapp-popup-card.is-hidden {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    visibility: hidden;
    pointer-events: none;
}

.whatsapp-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #f3f6fb;
    color: #4a5e78;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.whatsapp-popup-close:hover {
    background: #e4edf7;
    color: #26354a;
}

.whatsapp-popup-title {
    margin: 0 2rem 0.45rem 0;
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1.04rem;
    line-height: 1.28;
    color: #0f172a;
}

.whatsapp-popup-message {
    margin: 0 0 0.92rem;
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.92rem;
    line-height: 1.46;
    color: #2f425b;
}

.whatsapp-popup-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    background: #17c486;
    transition: filter 0.2s ease;
}

.whatsapp-popup-action:hover {
    filter: brightness(0.93);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--muted-foreground);
}

/* Responsive */
@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(var(--news-columns, 3), 1fr);
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-col-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }

    .btn-menu-mobile {
        display: none;
    }

    .news-grid {
        grid-template-columns: repeat(var(--news-columns, 3), 1fr);
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.95fr);
        gap: 0;
        justify-items: stretch;
        text-align: left;
        margin-bottom: 1rem;
    }

    .footer-col-brand {
        grid-column: auto;
        border-left: none;
    }

    .footer-col-brand .footer-title,
    .footer-col-brand .footer-text {
        text-align: left;
    }

    .footer-col {
        width: 100%;
        min-height: 220px;
        padding: 0.2rem 1.8rem 0 1.8rem;
        border-left: 1px solid color-mix(in srgb, var(--footer-text, var(--footer-text-auto)) 18%, transparent);
    }

    .footer-grid>.footer-col:first-child {
        border-left: 0;
    }

    .footer-col-brand,
    .footer-col-links,
    .footer-col-social {
        justify-self: stretch;
    }

    .footer-title,
    .footer-heading {
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 700;
    }

    .footer-title {
        font-size: 1.04rem;
        margin-bottom: 0.65rem;
    }

    .footer-text {
        font-size: 0.96rem;
        line-height: 1.45;
    }

    .footer-heading {
        font-size: 1.02rem;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.48rem;
    }

    .footer-links.footer-links-inline {
        justify-content: flex-start;
    }

    .footer-links a {
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .footer-contact-block {
        align-items: flex-start;
        gap: 0.4rem;
        margin-top: 0.7rem;
    }

    .footer-contact-text,
    .footer-contact-phone,
    .footer-contact-email {
        font-size: 0.96rem;
        line-height: 1.35;
        text-align: left;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-col-social {
        text-align: center;
    }

    .footer-col-social .social-links {
        justify-content: center;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .footer {
        padding: 1.1rem 0 0.78rem;
    }

    .footer.footer-collapsible {
        padding: 0;
    }

    .footer-disclosure-summary {
        min-height: 56px;
        padding: 0.78rem 0.7rem;
    }

    .footer-disclosure-label {
        font-size: 0.75rem;
    }

    .footer.footer-collapsible .footer-disclosure-content>.container {
        padding-top: 0.95rem;
        padding-bottom: 0.75rem;
    }

    .footer .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem 0.8rem;
        margin-bottom: 0.75rem;
    }

    .footer-col {
        min-width: 0;
    }

    .footer-col-brand {
        grid-column: auto;
        padding-bottom: 0.32rem;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border);
        border-bottom-color: color-mix(in srgb, currentColor 24%, transparent);
    }

    .footer-title {
        font-size: 0.98rem;
        margin-bottom: 0.35rem;
    }

    .footer-text {
        font-size: 0.76rem;
        line-height: 1.4;
    }

    .footer-heading {
        margin-bottom: 0.45rem;
        font-size: 0.84rem;
    }

    .footer-links {
        gap: 0.35rem 0.65rem;
    }

    .footer-links a {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .footer-contact-text {
        font-size: 0.79rem;
    }

    .footer-contact-phone {
        font-size: 0.79rem;
    }

    .footer-contact-email {
        font-size: 0.76rem;
    }

    .social-links {
        gap: 0.5rem;
        justify-content: center;
    }

    .social-links a {
        width: 30px;
        height: 30px;
    }

    .social-links a.social-link-with-label {
        width: auto;
        min-height: 30px;
        padding: 0.26rem 0.62rem;
        font-size: 0.76rem;
    }

    .footer-bottom {
        padding-top: 0.65rem;
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .whatsapp-popup {
        left: 10px;
        bottom: 10px;
        width: min(340px, calc(100vw - 20px));
    }

    .whatsapp-popup-launcher {
        width: 54px;
        height: 54px;
    }

    .whatsapp-popup-launcher svg {
        width: 30px;
        height: 30px;
    }

    .whatsapp-popup-card {
        width: min(310px, calc(100vw - 78px));
        margin: 0 0 10px 10px;
        padding: 0.9rem 0.9rem 0.85rem;
        border-radius: 14px;
    }

    .whatsapp-popup-title {
        font-size: 0.98rem;
    }

    .whatsapp-popup-message {
        font-size: 0.86rem;
        margin-bottom: 0.8rem;
    }

    .whatsapp-popup-action {
        min-height: 40px;
        font-size: 0.94rem;
    }

    .header-content {
        min-height: var(--mobile-header-height);
        justify-content: space-between;
        padding-right: 2.8rem;
        padding-left: 0.5rem;
    }

    .header-content-brand,
    .header-content {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-left: 0.5rem;
        width: 100%;
        position: relative;
    }

    /* Botão Início no mobile - posicionado à esquerda */
    .btn-inicio-header {
        order: 0;
        margin-right: auto;
        position: relative;
        z-index: 2;
    }

    /* Logo centralizada no mobile */
    .site-brand-logo,
    .site-brand-text-wrap,
    .header-content .logo {
        order: 1;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    /* Esconder nav-desktop no mobile, mesmo com has-categories */
    .nav-desktop,
    .nav-desktop.has-categories {
        display: none !important;
    }

    .header-top-strip .container {
        min-height: var(--mobile-top-strip-height);
    }

    .header-top-strip-title {
        font-size: 0.76rem;
    }

    .header-top-strip-subtitle {
        font-size: 0.64rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .news-grid.news-grid-split .news-grid-part,
    .news-grid.news-grid-split .news-grid-part.news-grid-part-expanded {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-right: 0;
    }

    .main {
        padding-bottom: 1.6rem;
    }

    .hero-section,
    .news-section {
        margin-bottom: 1.35rem;
    }

    .section-header {
        margin-bottom: 0.8rem;
        gap: 0.6rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .section-title {
        font-size: 1.9rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .view-all,
    .mobile-nav a,
    .side-panel-link {
        white-space: nowrap;
    }

    .top-banners-section {
        position: sticky;
        top: calc(var(--mobile-top-strip-height) + var(--mobile-header-height));
        z-index: 480;
        padding: 0.2rem 0 0.5rem;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .top-banners-grid {
        gap: 0.4rem;
    }

    .top-banner-card {
        border-radius: 0;
        border: 0;
        aspect-ratio: 1080 / 200;
    }

    .top-banner-image,
    .top-banner-slide {
        object-fit: contain;
    }

    .top-banner-slide {
        background-size: contain;
    }

    .news-grid .news-row-horizontal {
        display: none;
    }

    .news-card {
        height: auto;
        min-height: 220px;
        border-radius: var(--news-card-radius, 12px);
    }

    .news-card-image-wrapper,
    .news-card-horizontal-image,
    .news-card-horizontal {
        border-radius: var(--news-card-radius, 12px);
    }

    .news-card-category-text,
    .news-card-horizontal-category,
    .news-card-source-name,
    .news-card-datetime,
    .news-card-horizontal-time {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-card-datetime {
        max-width: 100%;
    }

    .news-mobile-wide {
        grid-column: 1 / -1;
    }

    .news-mobile-wide .news-card {
        min-height: 258px;
    }

    .news-mobile-wide .news-card-image-wrapper {
        height: 188px;
    }

    .instagram-mobile-next-btn {
        display: inline-flex;
    }

    .instagram-carousel-shell.is-hint-visible::after {
        opacity: 1;
    }

    .instagram-carousel-shell.is-hint-visible .instagram-swipe-hint {
        display: inline-flex;
        opacity: 0.9;
        transform: translateY(-50%) scale(1);
        animation: instagramSwipeHintNudge 2.1s ease-in-out infinite;
    }

    .instagram-carousel-shell.is-scroll-end::after,
    .instagram-carousel-shell.is-scroll-end .instagram-swipe-hint {
        opacity: 0;
        animation: none;
    }

    .instagram-news-grid.instagram-mobile-carousel {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        --instagram-mobile-visible-count: 1;
        --instagram-mobile-carousel-gap: 0.75rem;
        gap: var(--instagram-mobile-carousel-gap);
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        grid-template-columns: none;
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .instagram-news-grid.instagram-mobile-carousel.has-expanded-card {
        overflow-x: hidden;
        gap: 0;
        scroll-snap-type: none;
    }

    .instagram-news-grid.instagram-mobile-carousel.has-expanded-card .instagram-card:not(.expanded) {
        display: none !important;
    }

    .instagram-news-grid.instagram-mobile-carousel.has-expanded-card .instagram-card.expanded {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .instagram-news-grid.instagram-mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .instagram-news-grid.instagram-mobile-carousel {
        scrollbar-width: none;
    }

    .instagram-news-grid.instagram-mobile-carousel .instagram-card {
        flex: 0 0 calc((100% - (var(--instagram-mobile-visible-count) - 1) * var(--instagram-mobile-carousel-gap)) / var(--instagram-mobile-visible-count));
        width: calc((100% - (var(--instagram-mobile-visible-count) - 1) * var(--instagram-mobile-carousel-gap)) / var(--instagram-mobile-visible-count));
        max-width: calc((100% - (var(--instagram-mobile-visible-count) - 1) * var(--instagram-mobile-carousel-gap)) / var(--instagram-mobile-visible-count));
        scroll-snap-align: start;
    }

    .instagram-news-grid.instagram-mobile-carousel .instagram-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .instagram-news-grid.instagram-mobile-carousel .instagram-card.expanded {
        grid-column: auto;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .instagram-news-grid.instagram-mobile-carousel .instagram-card.expanded .instagram-card-image-wrapper {
        min-height: 240px;
        max-height: none;
    }

    .instagram-news-grid.instagram-mobile-carousel .instagram-card.expanded .instagram-card-content {
        max-height: none;
        overflow: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-disclosure-icon,
    .footer-disclosure-content {
        transition: none;
    }
}

/* ============================================
   YOUTUBE EMBED - PLAYER CLEAN
   ============================================ */

/* Container do embed do YouTube */
.youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    margin: 1.5rem 0;
    background: #000;
    border-radius: var(--radius-sm, 4px);
}

/* Iframe do YouTube - ocupa 100% do container */
.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    border: none;
    border-radius: var(--radius-sm, 4px);
}

/* =====================================================
   YOUTUBE EMBED - VERSÃO CLEAN (SEM LOGO/TÍTULO)
   ===================================================== */

/* Container com overflow hidden para cortar elementos indesejados */
.youtube-embed-clean {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    margin: 1.5rem 0;
    background: #000;
    border-radius: var(--radius-sm, 4px);
}

/* Iframe ampliado e reposicionado para esconder logo/título */
.youtube-embed-clean iframe {
    position: absolute;
    top: -75px;           /* Corta 75px do topo (título) */
    left: -75px;          /* Corta 75px da esquerda (logo) */
    width: calc(100% + 150px) !important;
    height: calc(100% + 150px) !important;
    border: none;
    /* Foco no centro do vídeo */
    object-fit: cover;
}

/* Overlay para bloquear cliques nos elementos do YouTube */
.youtube-embed-clean::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Permite clique passar para o iframe */
    z-index: 1;
}

/* =====================================================
   YOUTUBE THUMBNAIL FACADE (Lazy Load)
   ===================================================== */

/* Container da thumbnail */
.youtube-facade {
    position: relative !important;
    padding-bottom: 56.25% !important; /* 16:9 ratio */
    height: 0 !important;
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 1.5rem 0 !important;
    background: #000 !important;
    border-radius: var(--radius-sm, 4px) !important;
    cursor: pointer !important;
    display: block !important;
}

/* Imagem da thumbnail */
.youtube-facade .youtube-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
}

/* Botão play customizado */
.youtube-facade .youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease;
}

.youtube-facade:hover .youtube-play-btn {
    background: #ff0000;
}

/* Ícone play (triângulo) */
.youtube-facade .youtube-play-btn::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

/* Iframe (inicialmente escondido) */
.youtube-facade iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Forçar proporção 16:9 */
    aspect-ratio: 16 / 9;
}

.youtube-facade.playing iframe {
    opacity: 1;
    /* Garantir que o iframe ocupe todo o espaço quando playing */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.youtube-facade .youtube-thumb,
.youtube-facade .youtube-play-btn {
    transition: opacity 0.3s ease;
}

.youtube-facade.playing .youtube-thumb,
.youtube-facade.playing .youtube-play-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    display: none !important;
}

/* Quando playing, garantir que o container mantenha a proporção */
.youtube-facade.playing {
    padding-bottom: 56.25% !important;
    height: 0 !important;
}

/* Modo editor - wrapper adicional */
.editor-content .youtube-embed {
    margin: 1rem 0;
}

/* Artigo - espaçamento adequado */
.article-body .youtube-embed {
    margin: 1.5rem 0;
}

/* Mobile - ajuste de margem */
@media (max-width: 768px) {
    .youtube-embed {
        margin: 1rem 0;
        border-radius: 0;
    }
    
    .youtube-embed iframe {
        border-radius: 0;
    }
}

/* ============================================
   YOUTUBE EMBED - FIXES ADICIONAIS
   ============================================ */

/* Forçar proporção 16:9 em todos os vídeos */
.youtube-facade,
.youtube-embed {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 */
    height: 0 !important;
    overflow: hidden !important;
    background: #000 !important;
}

/* Garantir que o iframe ocupe 100% do container */
.youtube-facade iframe,
.youtube-embed iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border: none !important;
}

/* Quando playing, garantir que ainda ocupe todo espaço */
.youtube-facade.playing,
.youtube-embed.playing {
    padding-bottom: 56.25% !important;
    height: 0 !important;
}

.youtube-facade.playing iframe,
.youtube-embed.playing iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* ============================================
   YOUTUBE FIX - OVERRIDE YOUTUBE DEFAULTS
   ============================================ */

/* Forçar o iframe do YouTube a ocupar todo o espaço */
.youtube-facade iframe[src*="youtube.com"],
.youtube-embed iframe[src*="youtube.com"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Override para qualquer estilo inline do YouTube */
.youtube-facade iframe[style],
.youtube-embed iframe[style] {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}
