/* Topbar */
.topbar {
    background-color: var(--color-primary);
    color: var(--color-white);
    height: var(--topbar-height);
    font-size: 0.85rem;
}

.topbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.8rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.info-item:not(:last-child)::after {
    content: '|';
    margin-left: var(--spacing-md);
    opacity: 0.5;
}

.financial-item .currency-label {
    opacity: 0.8;
    font-weight: 400;
}

.financial-item .value {
    font-weight: 700;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: bold;
}

/* Login Dropdown Header */
.login-dropdown-header, .user-actions-dropdown {
    position: relative;
    display: inline-block;
}

/* login UI removed: styling for Google dev button and logout handled by WP plugin */

.login-btn-circle {
    background-color: #ff0000; /* Vermelho */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.18);
    border: 2px solid white; /* Destaque opcional */
    cursor: pointer;
}

.login-btn-circle:hover {
    transform: scale(1.1);
    background-color: #cc0000;
}

.login-btn-circle.logged-in {
    background-color: #28a745; /* Verde para logado */
}

.dropdown-content-header {
    /* usar opacity/visibility para permitir transição suave */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0; /* encosta no botão para não ter "buraco" de hover */
    transform: translateY(-6px);
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 20px rgba(0,0,0,0.12);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
}

/* Seta do dropdown */
.dropdown-content-header::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

.dropdown-content-header a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content-header a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.login-dropdown-header:hover .dropdown-content-header,
.dropdown-content-header:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Open when toggled programmatically (mobile / click) */
.dropdown-content-header.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content-header i {
    width: 20px;
    text-align: center;
}

.fa-apple { color: #000000; }
.fa-apple { color: #000000; }

/* Topbar Links */

/* Topbar Links */
.topbar-links {
    display: flex;
    gap: var(--spacing-md);
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.topbar-links a {
    margin-left: var(--spacing-md);
    opacity: 0.9;
}

.topbar-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Header */
.header-main {
    padding: var(--spacing-md) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
}

/* Categories automatic menu */
.nav-categories {
    display:flex;
    gap: 1rem;
    align-items:center;
    list-style:none;
    padding:0;
    margin:0;
}

.nav-categories li { list-style:none; }
.nav-categories a { color: var(--color-primary); font-weight:600; text-decoration:none; padding:6px 8px; border-radius:6px; position:relative; }
.nav-categories a:hover { background: transparent; }
.nav-categories a::after { content:''; position:absolute; bottom:0; left:8px; right:8px; height:2px; background:var(--color-primary); transform:scaleX(0); transition:transform 0.25s ease; }
.nav-categories a:hover::after { transform:scaleX(1); }

.cat-more { position:relative; }
.cat-more .cat-more-toggle { background:transparent; border:1px solid transparent; padding:6px 10px; border-radius:6px; cursor:pointer; font-weight:700; }
.cat-more .cat-more-toggle[aria-expanded="true"] { box-shadow: 0 6px 18px rgba(0,0,0,0.08); }

/* Dropdown list: hidden by default, shown by hover (only on hover-capable devices)
   or when the toggle button has aria-expanded="true". Layout uses CSS Grid
   to show categories in columns for better aesthetics. */
.more-list {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--color-white);
    color: var(--color-text);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 12px;
    padding-top: 8px;
    z-index: 9999;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 8px;
}

.more-list li { 
    margin: 0; 
    list-style: none; 
}

.more-list a { 
    display: block; 
    padding: 6px 8px; 
    color: var(--color-text); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    border-radius: 4px;
    position: relative;
    transition: color 0.15s ease;
}

.more-list a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.more-list a:hover {
    color: var(--color-primary);
}

.more-list a:hover::after {
    transform: scaleX(1);
}

/* Show when the toggle button has aria-expanded (accessible toggle) */
.cat-more .cat-more-toggle[aria-expanded="true"] + .more-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
}

/* Hover-based reveal only for devices that support hover */
@media (hover: hover) {
    .cat-more:hover .more-list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(130px, 1fr));
    }
}

/* Desktop-only, mobile will show categories inside mobile menu overlay */
@media (max-width: 992px) {
    .nav-categories { display:none; }
    .mobile-categories-wrapper .nav-categories { display:flex; flex-direction:column; gap:6px; margin-top:12px; }
    .more-list { position:static; box-shadow:none; max-height:none; display:block; grid-template-columns: 1fr; gap:6px; padding:8px 0; opacity:1; visibility:visible; pointer-events:auto; transform:none; }
    .mobile-categories-wrapper .more-list { display:block; position:static; box-shadow:none; max-height:none; grid-template-columns: 1fr; opacity:1; visibility:visible; pointer-events:auto; transform:none; }
}

.btn-participar {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-participar:hover {
    background-color: #a00000;
    color: var(--color-white);
}

/* Botão Assistir TV (Player Fixo) */
.btn-assistir-tv {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a00000 100%);
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
    transition: all 0.3s;
}

.btn-assistir-tv:hover {
    background: linear-gradient(135deg, #a00000 0%, var(--color-primary) 100%);
    box-shadow: 0 6px 16px rgba(204, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Botão Participar ao Vivo (Seção Live) */
.btn-live-participate {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a00000 100%);
    color: var(--color-white);
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-live-participate::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-live-participate:hover::before {
    width: 300px;
    height: 300px;
}

.btn-live-participate:hover {
    box-shadow: 0 8px 30px rgba(204, 0, 0, 0.6);
    transform: translateY(-3px) scale(1.05);
}

/* Botões de Ação ao Vivo (Secundários) */
.live-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-live-action {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-live-action:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Player Fixo (Barra Inferior) */
.fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark-gray);
    color: var(--color-white);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    border-top: 4px solid var(--color-primary);
    padding-top: 4px;
}

.fixed-player.visible {
    transform: translateY(0);
}

.player-content {
    display: flex;
    align-items: center;
    height: 60px;
    gap: var(--spacing-md);
}

.player-thumb {
    width: 80px;
    max-height: 56px;
    height: auto;
    object-fit: contain;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-play {
    background: none;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.btn-play:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-play i { color: #fff; font-size: 14px; }

.player-info {
    flex-grow: 1;
}

.program-title {
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
}

.program-time {
    font-size: 0.8rem;
    opacity: 0.8;
}

.audio-visualizer {
    display: flex;
    gap: 2px;
    height: 20px;
    align-items: flex-end;
}

.bar {
    width: 3px;
    background-color: var(--color-white);
    animation: equalize 1s infinite;
}

@keyframes equalize {
    0%, 100% { height: 5px; }
    50% { height: 20px; }
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: var(--spacing-md);
}

.volume-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 4px;
}

.volume-btn:hover {
    opacity: 0.7;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--color-secondary);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--color-secondary);
}

/* Player: ajustes responsivos */
@media (max-width: 576px) {
    .fixed-player .player-content {
        height: 52px;
        gap: 8px;
        padding: 6px 10px;
    }

    .fixed-player .player-thumb {
        width: 56px;
        max-height: 48px;
    }

    .fixed-player .program-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
        display: block;
    }

    .fixed-player .program-time { font-size: 0.75rem; }

    .volume-slider { width: 60px; }
}

/* Breaking News */
.breaking-news-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-ticker {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 90s linear infinite;
    font-weight: 500;
}

/* Pausar rolagem ao passar o mouse */
.breaking-ticker:hover .ticker-content,
.breaking-ticker:focus-within .ticker-content {
    animation-play-state: paused !important;
}

/* Estilização dos itens do ticker (agora links) */
.ticker-content .ticker-item {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 0 0.75rem;
}
.ticker-content .ticker-item:hover,
.ticker-content .ticker-item:focus {
    text-decoration: underline;
}

.ticker-content::after {
    content: attr(data-content);
    padding-left: 100%;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Cards */
.card-destaque-grande {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card-destaque-grande:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(-4px);
}

.card-destaque-grande img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-destaque-grande:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: var(--spacing-lg);
    color: var(--color-white);
}

.card-overlay h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.card-sub {
    display: flex;
    gap: var(--spacing-sm);
    background: var(--color-white);
    padding: var(--spacing-sm);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.card-sub:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-sub img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.card-sub-content h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
    transition: color 0.2s;
}

.card-sub:hover .card-sub-content h3 {
    color: var(--color-primary);
}

/* Ver mais link */
.ver-mais {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}
.ver-mais:hover {
    text-decoration: underline;
}

/* === NOVO LAYOUT DE CATEGORIAS (2x linha, 4 notícias em grid 2x2) === */
.category-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Quando houver banners inline entre os blocos, usar 3 colunas: bloco | banners | bloco */
.category-row.has-inline-banners {
    grid-template-columns: 1fr 220px 1fr;
    align-items: start;
    gap: 2rem 1.5rem;
}

/* Banners entre linhas: estilo para a nova wrapper .banner-between-rows */
.banner-between-rows {
    padding: 0 1rem;
}
.banner-between-rows img { border-radius: 8px; display: block; }
.banner-between-rows a { display: block; }

.category-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-block {
    display: flex;
    flex-direction: column;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 1.25rem 0;
    padding: 0;
}

/* Títulos das categorias na página inicial (ex: "Brasil +", "+ Notícias Recentes", "+ Mais Notícias") */
.category-title,
.category-title a {
    color: #c62828; /* vermelho escuro */
}
.category-title a:hover {
    color: #9b1f1f;
}

.category-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.card-category {
    display: flex;
    flex-direction: column;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}

.card-category:hover {
    transform: translateY(-2px);
}

.card-category a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #ffffff !important;
}

.card-category img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    background: #ffffff;
}

.card-category .card-category-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 0 0.25rem 0;
}

.card-category h3 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-category:hover h3 {
    color: var(--color-primary);
}

/* Responsivo */
@media (max-width: 992px) {
    .category-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Ajuste para casos com banners inline: empilhar banners entre blocos em mobile */
@media (max-width: 992px) {
    .category-row.has-inline-banners {
        grid-template-columns: 1fr;
    }
    .inline-banners {
        width: 100% !important;
        margin: 0 !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
        justify-content: center;
    }
    .inline-banners .banner-small img {
        border-radius: 6px;
    }
}

@media (max-width: 576px) {
    .category-grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
}

/* Remove estilos antigos */
.category-col { display: none; }
.category-col .card-sub { display: none; }

.card-news {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card-news:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-news img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.card-news:hover img {
    transform: scale(1.05);
}

.card-news-content {
    padding: var(--spacing-md);
}

.card-category {
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
    background: rgba(204, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.card-news h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    transition: color 0.2s;
}

.card-news:hover h3 {
    color: var(--color-primary);
}

.card-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Vídeo Vertical */
.card-video-vertical {
    min-width: 180px;
    height: 320px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.card-video-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--color-white);
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--color-white);
    opacity: 0.8;
}

/* Fullscreen: preservar vídeo vertical com 'pillarbox' (barras pretas) */
.vertical-video-item:fullscreen,
.vertical-video-item:-webkit-full-screen,
.vertical-video-item:-ms-fullscreen {
    object-fit: contain !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
}

/* Garantir que o container fullscreen também fique com fundo preto */
.video-card:fullscreen,
.video-card:-webkit-full-screen,
.video-card:-ms-fullscreen {
    background: #000;
}

/* Ao Vivo Agora */
.live-now-section {
    background: #000000;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.live-now-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(204, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(204, 0, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.live-now-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    background-size: 60px 60px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.live-now-section .container {
    position: relative;
    z-index: 2;
}

.live-now-container {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.live-video-wrapper {
    flex: 2;
}

.live-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.live-sponsors-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.sponsor-label {
    display: none; /* hidden by default; label removed per request */
}

.sponsor-placeholder {
    width: 400px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
}

.sponsor-placeholder img {
    width: 100%;
}

.original-img-width {
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Efeito de hover suave para banners: sombra apenas, sem movimento */
.sponsor-placeholder a,
.banner-full a {
    display: inline-block;
    outline: none;
}

.sponsor-placeholder img,
.banner-full img {
    transition: box-shadow 200ms cubic-bezier(.2,.9,.2,1), filter 200ms ease;
    will-change: box-shadow, filter;
    border-radius: 8px; /* bordas arredondadas nas imagens */
}

/* Sombra sutil ao passar o mouse (sem translate/zoom) */
.sponsor-placeholder a:hover img,
.sponsor-placeholder a:focus-visible img,
.sponsor-placeholder img:hover,
.banner-full a:hover img,
.banner-full a:focus-visible img,
.banner-full img:hover {
    box-shadow: 0 18px 35px rgba(0,0,0,0.14);
}

/* Acessibilidade: foco visível no teclado (sombra leve) */
.sponsor-placeholder a:focus-visible,
.banner-full a:focus-visible {
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .live-now-container {
        flex-direction: column;
    }
    
    .live-sponsors-sidebar {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

.live-tag {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: var(--color-white);
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 4px 20px rgba(255, 0, 0, 0.6);
    }
}

/* Footer */
.main-footer {
    background-color: #1a1a1a; /* Fallback */
    background-color: var(--color-dark-gray); /* Fundo escuro para melhor contraste */
    color: #ffffff;
    color: var(--color-white);
    padding: var(--spacing-xxl) 0;
    margin-top: var(--spacing-xxl);
    min-height: 300px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-editorias-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-editorias-col ul li {
    margin-bottom: var(--spacing-xs);
}

/* Estilos para formulário e lista de comentários */
.comments-wrapper {
    margin-top: 2rem;
}
.comment-respond {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 1rem 1.25rem;
    border-radius: 8px;
}
.comment-reply-title {
    font-family: var(--font-heading);
    color: #c62828; /* mesmo vermelho usado nos títulos */
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
}
.comment-form p { margin-bottom: 0.75rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; color: var(--color-text); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-size: 0.95rem;
    color: var(--color-text);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 4px 14px rgba(198,40,40,0.08);
    background: #fff;
}
.comment-form .form-submit {
    margin-top: 0.75rem;
}
.comment-form .submit {
    background: #c62828;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}
.comment-form .submit:hover { background: #9b1f1f; }

.comment-list {
    margin-top: 1.25rem;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}
.comment-list .comment {
    background: #fff;
    border: 1px solid #eee;
    padding: 0.85rem;
    border-radius: 8px;
}
.comment-list .comment .comment-author {
    font-weight: 700;
    color: var(--color-text);
}
.comment-list .comment .comment-meta {
    font-size: 0.85rem;
    color: #777;
}

/* Responsivo: reduzir padding em telas pequenas */
@media (max-width: 576px) {
    .comment-respond { padding: 0.75rem; }
}

.footer-col .logo {
    min-height: 40px;
    display: flex;
    align-items: center;
}

.footer-col:first-child p {
    font-size: 0.8rem !important;
    line-height: 1.4;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
    width: 100%;
    font-size: 0.85rem;
}

.category-group {
    min-width: 0;
}

.category-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-group ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col .d-flex {
    display: flex;
    gap: 0.5rem;
}

.footer-col .d-flex.social-icons {
    flex-direction: row;
    gap: 15px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    padding-bottom: 80px; /* Espaço para o player fixo */
}

/* Botões de Scroll */
.btn-scroll {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-scroll:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.scroll-controls {
    display: flex;
    gap: var(--spacing-sm);
}

/* Destaques em grids (Brasil / Internacional) */
.news-grid .card-news img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card hover effect */
.card-category a {
    transition: transform 0.3s ease;
    display: block;
}

.card-category:hover a {
    transform: translateY(-5px);
}

/* Estilo para link 'Ver mais' nas categorias */
.ver-mais {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(204, 0, 0, 0.06);
    border: 1px solid rgba(204, 0, 0, 0.08);
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.ver-mais:hover {
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Botão custom de login via Google (Nextend) - Opção 3 */
.btn-login-google {
    background: #4285F4;
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}
.btn-login-google:hover,
.btn-login-google:focus {
    opacity: 0.95;
    text-decoration: none;
}

/* Estado quando o usuário está logado */
.user-welcome {
    gap: 10px;
    align-items: center;
}
.welcome-text {
    color: var(--color-text);
    font-weight: 700;
    margin-right: 8px;
}
.btn-logout {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(16,24,40,0.06);
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.btn-logout:hover,
.btn-logout:focus {
    background: rgba(16,24,40,0.04);
}

/* Visual polish: rounded thumbnails, card backgrounds, shadows and spacing */
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(16, 24, 40, 0.04);
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}
.news-card a { color: inherit; text-decoration: none; }
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(16,24,40,0.09);
}

.news-thumb, .hero-sub-img, .hero-image, .card-category img, .video-card {
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.news-thumb img, .hero-sub-img img, .hero-image img, .card-category img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Destaques menores (lado direito): aumentar altura para evitar corte excessivo */
.hero-sub-item .news-thumb {
    height: 160px;
}

.news-content {
    padding: 12px 14px 16px 14px;
}

.news-title {
    font-size: 1.03rem;
    line-height: 1.35;
    margin: 0 0 6px 0;
    color: var(--color-text);
    font-weight: 700;
    transition: color 0.25s ease;
}

.news-card:hover .news-title {
    color: var(--color-primary);
}

.news-excerpt {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--color-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-tag, .post-tag-small {
    display: inline-block;
    background: rgba(204,0,0,0.06);
    color: var(--color-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.news-card:hover .post-tag,
.news-card:hover .post-tag-small {
    background-color: var(--color-primary);
    color: #fff;
}

.hero-image { border-radius: 12px; overflow: hidden; }
.hero-image img { width:100%; height:100%; object-fit: cover; }
.hero-overlay { position:absolute; left:0; right:0; bottom:0; height:45%; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0)); }

/* Mobile tweaks */
@media (max-width: 576px) {
    .news-card { border-radius: 8px; box-shadow: 0 6px 18px rgba(16,24,40,0.05); }
    .news-thumb, .hero-sub-img, .hero-image { border-radius: 8px; }
    .news-content { padding: 10px; }

    .hero-sub-item .news-thumb {
        height: 130px;
    }
}

/* Equalizar alturas dos subdestaques e permitir que o conteúdo ocupe o espaço disponível */
.hero-sub {
    grid-auto-rows: 1fr;
}
.hero-sub-item {
    display: flex;
    flex-direction: column;
}
.hero-sub-item .news-content {
    flex: 1 1 auto;
}

/* Garantir que cada subdestaque ocupe 100% da altura da linha do grid */
.hero-sub-item {
    height: 100%;
}

/* Forçar layout interno dos cards para distribuir espaço (imagem + conteúdo) */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news-card .news-thumb {
    flex: 0 0 auto;
}
.news-card .news-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Limitar título dos subdestaques a 2 linhas (ellipsis) */
.hero-sub-item .news-title,
.hero-sub-item h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.5rem 0;
}

/* Evitar que a descrição dos subdestaques aumente demais o card */
.hero-sub-item .news-excerpt {
    margin-top: auto;
    color: var(--color-muted, #666);
}

/* Garantir que o destaque principal preencha a altura disponível */
.hero-main {
    display: flex;
    flex-direction: column;
}
.hero-main .news-content {
    flex: 1 1 auto;
}

/* Ajustes para que o destaque principal fique centralizado verticalmente
   quando a coluna lateral for mais alta */
.hero-main {
    display: flex;
    flex-direction: column;
}

/* Fazer a miniatura do destaque principal ocupar o espaço disponível
   mas deixando espaço para título/descrição */
.hero-main .news-thumb,
.hero-main .loading-placeholder {
    flex: 1 1 auto;
    min-height: 260px;
    display: block;
}
.hero-main .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-main .news-content {
    flex: 0 0 auto;
    display: block;
}

/* Raffles Modal Styles */
#raffles-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.raffle-item {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: var(--spacing-md);
    margin-bottom: 15px;
    background: var(--color-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.raffle-item-inner {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.raffle-item-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    min-width: 0;
    flex: 1 1 auto;
}

.raffle-item-text {
    min-width: 0;
}

.raffle-item-meta {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 2px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.raffle-item .raffle-thumb {
    flex: 0 0 140px;
    width: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-light-gray);
    border: 1px solid var(--color-border);
}

.raffle-item .raffle-thumb img {
    width: 100%;
    height: 105px;
    display: block;
    object-fit: cover;
}

.raffle-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.raffle-item h4 {
    margin: 0 0 6px 0;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.25;
}

.raffle-item p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

/* Corte da descrição (até 3 linhas) */
.raffle-item .raffle-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    /* fallback para browsers sem line-clamp */
    max-height: calc(1.4em * 3);
}

.raffle-item .raffle-desc:empty {
    display: none;
}

.raffle-item-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.raffle-item .btn-participate {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.raffle-item .btn-participate:hover {
    background: var(--color-accent);
}

.raffle-item .btn-participating {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: not-allowed;
    font-size: 14px;
    font-weight: 600;
    opacity: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.raffle-item .btn-participating i {
    font-size: 16px;
}

.empty-msg, .error-msg {
    text-align: center;
    padding: 30px;
    color: #888;
    font-style: italic;
}

.empty-msg-small {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    font-style: italic;
}

.error-msg {
    color: #e30613;
}

/* UI Dividida - Participando vs Disponíveis */
.raffles-split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.raffles-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0; /* Permite que o conteúdo encolha se necessário */
}

.raffles-column h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participating-column h3 {
    color: #28a745;
    border-bottom-color: #28a745;
}

.participating-column h3 i {
    color: #28a745;
}

.available-column h3 {
    color: #e30613;
    border-bottom-color: #e30613;
}

.available-column h3 i {
    color: #e30613;
}

/* Responsivo - Empilhar colunas em telas menores */
@media (max-width: 992px) {
    .raffles-split-view {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .raffles-column h3 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 98% !important;
        max-width: 100% !important;
        padding: 15px !important;
    }
    
    .raffle-item {
        padding: 12px;
    }

    .raffle-item-inner {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .raffle-item .raffle-thumb {
        width: 100%;
        flex: 0 0 auto;
    }

    .raffle-item .raffle-thumb img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .raffle-item h4 {
        font-size: 1rem;
    }
}

.raffle-form-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.raffle-form-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.raffle-form-meta {
    font-size: 12px;
    color: var(--color-text-light);
    line-height: 1.2;
}

.raffle-form-header button {
    background: none;
    border: none;
    color: #e30613;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.raffle-form-header button:hover {
    color: #b0000f;
    transform: translateX(-3px);
}

.user-info-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
}

.user-info-section h5 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#raffle-participation-form .form-group {
    margin-bottom: 15px;
}

#raffle-participation-form .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

#raffle-participation-form input,
#raffle-participation-form select,
#raffle-participation-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s;
}

#raffle-participation-form input:focus,
#raffle-participation-form select:focus,
#raffle-participation-form textarea:focus {
    border-color: #e30613;
    outline: none;
}

#raffle-participation-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    cursor: pointer;
    line-height: 1.4;
}

#raffle-participation-form .checkbox-label input {
    width: auto;
    margin-top: 3px;
}

#raffle-participation-form .btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e30613;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: background 0.2s;
}

#raffle-participation-form .btn-submit:hover {
    background: #b0000f;
}
