:root {
    --brand-yellow: #ffcf07;
    --dark-bg: #0d1117;
    --dark-card: #161b22;
    --light-bg: #ffffff;
    --light-card: #f6f8fa;
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

/* TEMAS */
body.theme-dark { background-color: var(--dark-bg); color: #fff; }
body.theme-light { background-color: var(--light-bg); color: #1f2328; }
body.theme-light .plan-card, body.theme-light .faq-item { background: var(--light-card); border-color: #d0d7de; }
body.theme-light .mobile-nav { background: rgba(255, 255, 255, 0.9); border-top: 1px solid #d0d7de; }
body.theme-light .logo-box { background: #000; color: #fff; }
body.theme-light .logo-play { color: #000; border-color: #000; }

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    padding-bottom: 70px; /* Espaço para a barra mobile */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: var(--transition); padding: 15px 0;
}

.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; font-weight: 800; gap: 4px; font-size: 1.2rem; }
.logo-box { background: #fff; color: #000; padding: 4px 10px; border-radius: 4px; transition: 0.3s; }
.logo-play { color: #fff; border: 1px solid #fff; padding: 3px 8px; border-radius: 4px; transition: 0.3s; }

.header-actions { display: flex; gap: 12px; align-items: center; }
.btn-theme-toggle { background: transparent; border: none; color: inherit; cursor: pointer; font-size: 1.2rem; }
.btn-login { background: var(--brand-yellow); border: none; padding: 8px 18px; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* MOBILE NAV */
.mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(22, 27, 34, 0.95); backdrop-filter: blur(12px);
    display: flex; justify-content: space-around; padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1); z-index: 1001;
}

.mobile-nav-link {
    text-decoration: none; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1;
}

.mobile-nav-link i { font-size: 1.2rem; }
.mobile-nav-link span { font-size: 10px; font-weight: 500; }
.mobile-nav-link.active { color: var(--brand-yellow); }

/* HERO */
.hero-section {
    height: 90vh; position: relative; display: flex; align-items: center; text-align: center;
}

.media-grid-bg {
    position: absolute; inset: 0; display: grid; 
    grid-template-columns: repeat(2, 1fr); gap: 5px; z-index: 1; opacity: 0.2;
}

.media-item img { width: 100%; height: 100%; object-fit: cover; }

.hero-section::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle, transparent, var(--dark-bg) 95%);
    z-index: 2;
}
body.theme-light .hero-section::after {
    background: radial-gradient(circle, transparent, var(--light-bg) 95%);
}

.hero-content { position: relative; z-index: 10; width: 100%; }
.hero-content h1 { font-size: 2.8rem; line-height: 1.1; margin: 15px 0; font-weight: 900; }
.badge { background: var(--brand-yellow); color: #000; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 11px; display: inline-block; }

.hero-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 25px; max-width: 300px; margin-left: auto; margin-right: auto; }
.cta-button { 
    text-decoration: none; padding: 16px; border-radius: 8px; font-weight: bold; text-align: center; transition: var(--transition);
}
.cta-button.primary { background: var(--brand-yellow); color: #000; }
.cta-button.secondary { background: rgba(255,255,255,0.1); color: inherit; border: 1px solid rgba(255,255,255,0.2); }

/* CATEGORIES */
.content-showcase { padding: 60px 20px; }
.section-header { text-align: center; margin-bottom: 30px; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.cat-card { background: var(--dark-card); padding: 20px; border-radius: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.cat-card i { font-size: 1.5rem; color: var(--brand-yellow); margin-bottom: 10px; display: block; }

/* PLANOS */
.plans-grid { display: flex; flex-direction: column; gap: 20px; }
.plan-card { 
    background: var(--dark-card); padding: 30px; border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.05); text-align: center; position: relative;
}
.plan-card.featured { border: 2px solid var(--brand-yellow); }
.popular-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-yellow); color: #000; padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 800; }
.price { font-size: 3rem; font-weight: 800; margin: 15px 0; }
.price span { font-size: 1rem; opacity: 0.5; }
.plan-features { list-style: none; margin: 20px 0; text-align: left; }
.plan-features li { margin-bottom: 10px; font-size: 0.9rem; }
.plan-features i { color: var(--brand-yellow); margin-right: 8px; }
.plan-btn { width: 100%; padding: 15px; border-radius: 10px; border: none; background: var(--brand-yellow); font-weight: 800; cursor: pointer; }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--dark-card); margin-bottom: 10px; border-radius: 12px; padding: 18px; border: 1px solid rgba(255,255,255,0.05); }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-weight: bold; cursor: pointer; }
.faq-answer { margin-top: 15px; font-size: 0.9rem; color: var(--text-muted); display: none; line-height: 1.5; }

.main-footer { text-align: center; padding: 40px 0; opacity: 0.6; font-size: 0.8rem; }

/* DESKTOP */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .desktop-only { display: block; }
    .nav-links { display: flex; gap: 25px; list-style: none; }
    .nav-links a { text-decoration: none; color: inherit; font-weight: 500; font-size: 0.9rem; }
    .mobile-nav { display: none; }
    .hero-btns { flex-direction: row; max-width: none; justify-content: center; }
    .hero-content h1 { font-size: 4.5rem; }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .plans-grid { flex-direction: row; justify-content: center; }
    .plan-card { width: 340px; }
    .media-grid-bg { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
    .desktop-only { display: none; }
}

/* --- CARROSSEL DE PLANOS --- */
.carousel-container {
    position: relative;
    margin: 0 -20px; /* Expande para as bordas no mobile */
    padding: 20px;
}

.plans-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Esconder barra de scroll mas manter funcionalidade */
.plans-carousel::-webkit-scrollbar { display: none; }

.plan-card {
    min-width: 85%; /* No mobile, mostra quase um cartão inteiro */
    scroll-snap-align: center;
    background: var(--dark-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

body.theme-light .plan-card { background: #f6f8fa; border-color: #d0d7de; }

.plan-card.featured {
    border: 2px solid var(--brand-yellow);
    box-shadow: 0 10px 30px rgba(255, 207, 7, 0.1);
}

.popular-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand-yellow); color: #000; padding: 4px 15px;
    border-radius: 20px; font-size: 11px; font-weight: 800;
}

.price { font-size: 3rem; font-weight: 800; margin: 15px 0; }
.price span { font-size: 1.2rem; opacity: 0.5; }
.plan-features { list-style: none; margin: 25px 0; text-align: left; }
.plan-features li { margin-bottom: 12px; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.plan-features i { color: var(--brand-yellow); }

.plan-btn {
    width: 100%; padding: 16px; border-radius: 12px; border: none;
    background: var(--brand-yellow); font-weight: 800; cursor: pointer;
}

/* --- RESPONSIVIDADE DESKTOP --- */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .plans-carousel {
        overflow: visible; /* Remove o scroll */
        justify-content: center;
        scroll-snap-type: none;
	}
    .plan-card {
        min-width: 320px;
        flex: 1;
	}
    .plan-card:hover { transform: translateY(-10px); }
    .carousel-container { margin: 0; padding: 0; }
}

/* --- CONTAINER DO SHOWCASE --- */
.infinite-showcase {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre as duas linhas */
    padding: 40px 0;
    background: #000;
    overflow: hidden;
    /* Efeito de Gradiente nas bordas (Realismo Extra) */
    mask-image: linear-gradient(to right, 
	transparent, 
	black 10%, 
	black 90%, 
	transparent);
    -webkit-mask-image: linear-gradient(to right, 
	transparent, 
	black 10%, 
	black 90%, 
	transparent);
}

.marquee {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 15px;
    padding-right: 15px;
}

.marquee-content img {
    width: 220px;
    height: 140px; /* Mais horizontal para parecer cinema 21:9 */
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.6);
    transition: 0.4s ease;
}

.marquee-content img:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* --- ANIMAÇÕES --- */

/* Linha 1: Esquerda (40 segundos) */
.row-left .marquee-content {
    animation: scroll-left 40s linear infinite;
}

/* Linha 2: Direita (50 segundos - mais lenta gera mais profundidade) */
.row-right .marquee-content {
    animation: scroll-right 50s linear infinite;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes scroll-right {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Pausa ambas as linhas quando o usuário interage */
.infinite-showcase:hover .marquee-content {
    animation-play-state: paused;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .marquee-content img {
        width: 150px;
        height: 100px;
	}
    .row-left .marquee-content { animation-duration: 25s; }
    .row-right .marquee-content { animation-duration: 30s; }
}

/* --- CORREÇÃO DO BLOCO PARALLAX NO TEMA CLARO --- */

/* Fundo padrão do bloco (escuro) */
.infinite-showcase {
    background: var(--dark-bg); /* Use a variável em vez de #000 */
    transition: background-color 0.3s ease;
}

/* Overlay de máscara lateral (o efeito de desaparecer nas bordas) */
.infinite-showcase {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

/* AJUSTES PARA TEMA CLARO */
body.theme-light .infinite-showcase {
    background: var(--light-bg); /* Muda o fundo para branco/cinza claro */
}

/* Melhora o contraste das imagens no tema claro */
body.theme-light .marquee-content img {
    filter: brightness(0.9); /* Imagens um pouco mais vivas no fundo claro */
    border: 1px solid rgba(0,0,0,0.1); /* Adiciona uma borda sutil */
}

body.theme-light .marquee-content img:hover {
    filter: brightness(1.1);
}

/* Se você usou um pseudo-elemento ::after para escurecer o bloco, adicione: */
body.theme-light .hero-section::after {
    background: linear-gradient(to bottom, 
	rgba(240, 242, 245, 0.9) 0%, 
	rgba(240, 242, 245, 0.4) 50%, 
	var(--light-bg) 100%);
}

/* --- SEÇÃO DE CANAIS --- */
.channels-section {
    padding: 60px 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.channels-grid {
    display: grid;
    /* No mobile: 4 colunas | Desktop: 8 colunas */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
}

.channel-card {
    background: var(--dark-card);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

/* Ajuste para o Tema Claro */
body.theme-light .channel-card {
    background: #ffffff;
    border-color: #d0d7de;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.channel-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* No modo escuro, alguns logos escuros precisam de brilho para aparecer */
    filter: grayscale(1) brightness(1.5); 
    opacity: 0.7;
    transition: var(--transition);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-yellow);
}

.channel-card:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* Responsividade para Telas Maiores */
@media (min-width: 768px) {
    .channels-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 25px;
	}
    
    .channel-card {
        width: 100px;
        height: 100px;
        padding: 15px;
	}
}

/* --- FOOTER PROFISSIONAL --- */
.main-footer {
    background-color: var(--dark-card);
    padding: 60px 0 20px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Adaptação para Tema Claro */
body.theme-light .main-footer {
    background-color: #ffffff; 
    border-top: 1px solid #e1e4e8; /* Linha de divisão nítida */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03); /* Sombra suave para dar elevação */
}

/* Ajuste das cores dos textos no modo claro */
body.theme-light .footer-column h3 {
    color: #1a1d21;
}

body.theme-light .footer-column ul li a,
body.theme-light .footer-about p,
body.theme-light .footer-bottom p {
    color: #57606a; /* Cinza escuro para melhor leitura no fundo branco */
}

/* Destaque no Hover para o tema claro */
body.theme-light .footer-column ul li a:hover {
    color: var(--brand-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--brand-yellow);
}

.footer-about p {
    margin: 20px 0;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--brand-yellow);
    padding-left: 5px;
}

/* Redes Sociais e Pagamento */
.social-links, .payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--brand-yellow);
    transform: translateY(-3px);
}

.payment-methods i {
    opacity: 0.6;
    font-size: 1.8rem;
}

/* Rodapé Final */
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

body.theme-light .footer-bottom {
    border-top: 1px solid #d0d7de;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.legal-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.legal-links a {
    text-decoration: none;
    color: var(--text-muted);
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
        justify-items: center;
	}
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
	}
    .social-links, .payment-methods {
        justify-content: center;
	}
    .bottom-flex {
        flex-direction: column;
	}
}

/* --- ESTILO DOS ÍCONES DE DISPOSITIVOS --- */
.plan-devices {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-devices i {
    font-size: 1.1rem;
    color: var(--text-muted); /* Cor padrão discreta */
    opacity: 0.6;
    transition: all 0.2s ease; /* Transição rápida para o toque/mouse */
    cursor: help; /* Indica que há uma informação (o title) ao parar o mouse */
}

/* MUDANÇA APENAS NO ÍCONE ESPECÍFICO (HOVER INDIVIDUAL) */
.plan-devices i:hover {
    color: var(--brand-yellow); /* A cor muda só aqui */
    opacity: 1;
    transform: scale(1.3); /* Dá um leve destaque ao ícone selecionado */
}

/* Ajuste para o Tema Claro */
body.theme-light .plan-devices {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-light .plan-devices i {
    color: #57606a;
}

/* No tema claro, a cor de destaque continua sendo o amarelo da marca */
body.theme-light .plan-devices i:hover {
    color: var(--brand-yellow);
}