:root {
    --color-bg-peach: rgb(254, 215, 174);
    --color-purple: #C586D8;
    --color-pink: #F4C2C2;
    --color-yellow: #FDD835;
    --color-text-dark: #5D4037;
    --color-text-purple: #8E24AA;
    --color-white: #FFFFFF;
    --font-main: 'Fredoka', sans-serif;
    --font-body: 'Varela Round', sans-serif;
}

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

html {
    margin: 0;
    padding: 0;
    background-color: var(--color-purple);
    /* Garantir que o fim da página seja roxo */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-peach);
    color: var(--color-text-dark);
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
    /* Prevenir rolagem horizontal */
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    /* Usar altura de viewport dinâmica para mobile */
    /* Garantir que o body preencha o viewport */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    /* Empurrar rodapé para o final */
    width: 100%;
}

/* Tela de Carregamento */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-peach);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    max-width: 400px;
    width: 80%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Blobs de Fundo */
.blobs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    /* Alterado de -1 para 0 para ficar acima do fundo do body */
    pointer-events: none;
}

.blob {
    position: absolute;
    /* z-index gerenciado pelo container */
    opacity: 0.8;
    pointer-events: none;
    /* Garantir que não bloqueiem cliques */
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.blob {
    position: absolute;
    /* z-index gerenciado pelo container */
    opacity: 0.8;
    pointer-events: none;
    /* Garantir que não bloqueiem cliques */
    animation: float 12s ease-in-out infinite;
    /* Reduzido de 20s */
}

.blob-1 {
    top: 10%;
    left: 20%;
    width: 500px;
    animation-duration: 15s;
    /* Reduzido de 25s */
    animation-delay: 0s;
}

.blob-2 {
    top: 20%;
    right: 15%;
    width: 600px;
    animation-duration: 18s;
    /* Reduzido de 28s */
    animation-delay: -5s;
}

.blob-3 {
    top: 55%;
    left: 15%;
    width: 550px;
    animation-duration: 20s;
    /* Reduzido de 30s */
    animation-delay: -10s;
}

.blob-4 {
    bottom: 15%;
    right: 20%;
    width: 500px;
    animation-duration: 14s;
    /* Reduzido de 22s */
    animation-delay: -2s;
}

.blob-5 {
    top: 40%;
    right: 35%;
    width: 450px;
    animation-duration: 16s;
    /* Reduzido de 26s */
    animation-delay: -8s;
}

.blob-6 {
    bottom: 30%;
    left: 5%;
    width: 400px;
    animation-duration: 15s;
    /* Reduzido de 24s */
    animation-delay: -15s;
}

.blob-7 {
    top: 75%;
    left: 35%;
    width: 500px;
    animation-duration: 19s;
    /* Reduzido de 29s */
    animation-delay: -4s;
}


.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    width: 100%;
    /* Garantir que não exceda o viewport */
    box-sizing: border-box;
}

/* Cabeçalho */
.main-header {
    text-align: center;
    padding-top: 40px;
    position: relative;
}

.logo-container {
    margin-bottom: -180px;
    /* Aproximar do hero */
}

.main-logo {
    max-width: 600px;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image-container {
    position: relative;
    z-index: 2;
    margin-left: 550px;
    /* Mover mais para a direita */
}

.hero-image {
    max-width: 450px;
    display: block;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Gap aumentado */
    position: absolute;
    left: 100px;
    /* Ajustar posição à esquerda */
    top: 55%;
    transform: translateY(-50%);
    z-index: 3;
}

.social-link {
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.5rem;
    /* Increased font size */
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.social-link:hover {
    transform: scale(1.05);
}

.social-link img {
    width: 40px;
    /* Tamanho de ícone aumentado */
    height: 40px;
    display: block;
}

.social-link span {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.social-link-tiktok {
    margin-left: -20px;
    /* Mover link TikTok para a esquerda */
}

/* Divisor de Onda Superior - Oculto, substituído por main_bg.png */
.wave-divider-top {
    display: none;
}


/* Conteúdo Principal */
main {
    position: relative;
    z-index: 10;
}

.white-section-wrapper {
    background-color: #FFFFFF;
    padding: 60px 0 300px 0;
    /* Padding inferior aumentado para acomodar nova seção de TV */
    position: relative;
    margin-top: -100px;
    /* Margem negativa reduzida para mostrar link do Instagram */
}

/* Padrão de onda no topo da seção branca */
.white-section-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background:
        radial-gradient(circle at 15px 15px, #FFFFFF 15px, transparent 15px);
    background-size: 30px 30px;
    background-repeat: repeat-x;
    background-position: 0 0;
}

/* Padrão de onda na parte inferior da seção branca */
.white-section-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background:
        radial-gradient(circle at 15px 0px, #FFFFFF 15px, transparent 15px);
    background-size: 30px 30px;
    background-repeat: repeat-x;
    background-position: 0 0;
    z-index: 1;
}

/* Seções */
section {
    margin-bottom: 60px;
}

.section-show {
    margin-top: -180px;
    /* Puxar significativamente para cima para sobrepor a parte inferior da seção branca */
    position: relative;
    z-index: 2;
    /* Garantir que fique sobre a onda */
}

/* Seção de Vídeo com TV */
.section-video {
    margin: 80px 0;
    display: none;
    /* Temporariamente oculta */
}

.tv-frame-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 1024 / 820;
}

.tv-frame-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    pointer-events: none;
    /* Permitir cliques através da frame para o player */
}

.tv-screen {
    position: absolute;
    top: 11%;
    left: 7.5%;
    width: 85%;
    height: 73%;
    z-index: 0;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
}

.tv-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.card {
    background-color: var(--color-white);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 900px;
    margin: 40px auto 40px calc(45% - 500px);
    /* Deslocado para a esquerda */
    position: relative;
    padding: 0 20px;
    /* Adicionar padding para telas menores */
}

.about-image {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    /* Imagem acima da caixa de texto */
}

.about-image img {
    max-width: 510px;
    /* Tamanho aumentado */
    display: block;
}

.about-text-box {
    position: absolute;
    right: -50px;
    top: -50px;
    /* Movido mais alto */
    max-width: 380px;
    border: 3px dashed #B8E6E6;
    /* Borda tracejada ciano/turquesa */
    border-radius: 25px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    /* Abaixo da imagem */
}

.about-text-box h2 {
    color: #BB84DD;
    /* Cor roxa combinando com referência */
    font-family: var(--font-main);
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: left;
}

.about-text-box p {
    color: #5DBFBF;
    /* Cor de texto ciano/turquesa */
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* Show Section */
.show-card-wrapper {
    background-image: url('assets/card_show.png');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    position: relative;
    max-width: 1000px;
    /* Ajustar baseado na proporção da imagem */
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    /* Manter proporção da imagem */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Alinhar conteúdo à esquerda */
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: visible;
    /* Permitir que o conteúdo se estenda para fora */
    z-index: 1;
    /* Garantir contexto de empilhamento */
}

.show-content-card {
    background-color: var(--color-purple);
    color: var(--color-white);
    padding: 40px;
    border-radius: 30px;
    /* Cantos arredondados */
    height: 100%;
    /* Altura total do fundo */
    max-height: 500px;
    /* Limitar altura máxima para Safari */
    width: auto;
    /* Deixar a proporção determinar a largura */
    max-width: 500px;
    /* Limitar largura máxima para Safari */
    aspect-ratio: 1 / 1;
    /* Torná-lo quadrado */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0%;
    /* Espaçamento da borda esquerda */
    align-self: flex-start;
    /* Alinhar ao topo */
    position: relative;
    top: 0%;
    /* Mover para cima para se estender acima do fundo */
    -webkit-transform: translateY(-20%);
    transform: translateY(-20%);
    /* Offset adicional para Safari */
    z-index: 2;
    /* Ficar acima do fundo */
}

.show-content-card h2 {
    color: #FFD8FF;
    font-family: var(--font-main);
    font-size: 2rem;
    margin-bottom: 5px;
}

.show-content-card .subtitle {
    color: var(--color-white);
    /* Texto branco */
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.show-content-card .mundo-bita-logo {
    height: 2em;
    /* Escalar com tamanho do texto */
    vertical-align: middle;
    margin-left: 5px;
    display: inline-block;
    position: relative;
    top: -0.3em;
    /* Ajustar alinhamento vertical */
}

.show-content-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-white);
}

.subtitle {
    display: block;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Seção de Assistir */
.card-watch {
    flex-direction: column;
    text-align: center;
    background-color: #FFF8E1;
    /* Tinta amarela clara */
    border: 2px solid #FFE082;
    position: relative;
    /* Para posicionamento absoluto dos botões */
    overflow: visible;
    /* Permitir que botões fiquem do lado de fora */
    width: fit-content;
    /* Ajustado ao conteúdo */
    margin: 0 auto;
    /* Centralizar horizontalmente */
    padding: 40px 60px;
    /* Adicionar padding horizontal para espaço respiratório */
}

/* ... (outros estilos) ... */

.video-thumbnail img {
    max-width: 300px;
    /* Imagem maior */
    width: 100%;
    height: auto;
    -webkit-transition: opacity 0.6s ease-in-out;
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
    will-change: opacity;
}

.card-watch .card-header h2 {
    color: var(--color-purple);
    font-size: 2.5rem;
    /* Título maior */
}

.dashed-line {
    border-bottom: 5px dashed #FFD54F;
    width: 80%;
    /* Linha mais larga */
    margin: 10px auto;
}

.card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.nav-btn {
    background: none;
    /* Remover fundo */
    border: none;
    width: 50px;
    /* Ajustar tamanho para imagem */
    height: 50px;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 0.8;
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
    opacity: 1;
}

.nav-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.nav-btn.prev {
    left: -70px;
    /* Ajustar posição para botão maior */
}

.nav-btn.next {
    right: -70px;
    /* Ajustar posição para botão maior */
}

.card-footer p {
    font-size: 1.2rem;
    /* Descrição maior */
    max-width: 500px;
    /* Bloco de texto mais largo */
    margin: 0 auto;
    line-height: 1.5;
    -webkit-transition: opacity 0.6s ease-in-out;
    transition: opacity 0.6s ease-in-out;
    /* Transição de fade */
    opacity: 1;
    color: #BF93DA;
    will-change: opacity;
    /* Otimizar transição para Safari */
}

.fade-out {
    opacity: 0 !important;
}

/* Footer */
.main-footer {
    background-color: var(--color-purple);
    color: var(--color-white);
    text-align: center;
    padding: 0 0 60px 0;
    /* Padding inferior aumentado */
    position: relative;
    margin-top: 80px;
    margin-bottom: 0;
    /* Garantir que não haja espaço abaixo */
    z-index: 10;
    /* Garantir que rodapé fique acima dos blobs */
}

.wave-divider-bottom {
    height: 20px;
    background-image: radial-gradient(circle at 15px 20px, var(--color-purple) 15px, transparent 16px);
    background-size: 30px 20px;
    background-repeat: repeat-x;
    position: absolute;
    top: -20px;
    width: 100%;
}

.footer-logos img {
    max-width: 150px;
    margin: 30px 40px;
    vertical-align: middle;
}

.copyright {
    font-size: 1rem;
    opacity: 0.7;
}

/* Responsivo */
@media (max-width: 768px) {

    /* Cabeçalho e Hero */
    .main-header {
        padding-top: 70px;
        /* Resetar para padrão */
        /* Empurrar logo para baixo para os links sociais */
    }

    /* ... */

    .social-links {
        position: absolute !important;
        top: -40px !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row;
        justify-content: center !important;
        align-items: center;
        transform: none;
        gap: 15px;
        margin: 0 !important;
        padding: 0;
        z-index: 100 !important;
    }

    .main-header .container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        justify-content: space-between;
        text-align: center;
        /* Help center inline content */
    }

    .logo-container {
        margin-bottom: 0;
        flex: 0 0 60%;
        /* Bigger logo - 60% */
        order: 1;
        text-align: left;
        /* Align logo to left */
    }

    .main-logo {
        max-width: 100%;
        width: 100%;
    }

    .hero-section {
        flex-direction: column;
        flex: 0 0 35%;
        /* Hero menor - 35% */
        max-width: 35%;
        margin: 0;
        margin-left: auto;
        /* Push to right */
        gap: 10px;
        order: 2;
        align-items: flex-end;
        /* Alinhar conteúdo à direita */
        position: static;
        /* Allow image to position relative to container */
    }

    .hero-image-container {
        position: absolute;
        top: 0;
        right: 0;
        bottom: -30px;
        /* Sobrepor onda */
        margin-left: 0 !important;
        margin-top: 0;
        z-index: 10;
        /* Garantir ficar acima da onda */
        width: 45%;
        /* Largura aumentada */
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom right;
    }

    .social-links {
        position: absolute !important;
        top: -50px !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row;
        justify-content: center !important;
        align-items: center;
        transform: none;
        gap: 15px;
        margin: 0 !important;
        padding: 0;
        z-index: 100 !important;
    }

    .social-link {
        font-size: 1.0rem;
        /* Texto um pouco menor */
    }

    .social-link img {
        width: 35px;
        /* Ícones um pouco menores */
        height: 35px;
    }

    .social-link-tiktok {
        margin-left: 0 !important;
        /* Corrigir sobreposição */
    }

    /* Seção Branca */
    .white-section-wrapper {
        margin-top: 0 !important;
        /* Remover sobreposição no mobile para prevenir oclusão da onda */
        padding: 40px 0 200px 0;
        /* Aumentado para acomodar seção de TV */
    }

    /* Ajustar posição da onda no topo para mobile */
    .white-section-wrapper::before {
        top: -10px;
        /* Mover um pouco para baixo em relação ao padrão de -15px */
    }

    /* TV Frame Mobile */
    .section-video {
        margin: 40px 0;
    }

    .tv-frame-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }

    /* Seção Sobre */
    .about-wrapper {
        flex-direction: column;
        align-items: center;
        margin: 20px auto !important;
        /* Sobrescrever margem calc */
        padding: 0 20px;
        max-width: 100% !important;
    }

    .about-image img {
        max-width: 100%;
        width: 300px;
    }

    .about-text-box {
        position: static;
        max-width: 100%;
        width: 90%;
        margin-top: 20px;
        right: auto;
        top: auto;
    }

    /* Seção do Show */
    .section-show {
        margin-top: -100px;
    }

    .show-card-wrapper {
        flex-direction: column;
        aspect-ratio: auto;
        min-height: 500px;
        padding: 20px;
        background-size: cover;
        background-position: center;
        max-width: 100% !important;
        margin: 0 auto;
    }

    .show-content-card {
        height: auto;
        width: 90%;
        max-width: none;
        aspect-ratio: auto;
        margin-left: 0;
        margin: 0 auto;
        top: 0;
        padding: 30px;
    }

    .show-content-card h2 {
        font-size: 1.5rem;
    }

    .show-content-card p {
        font-size: 0.9rem;
    }

    /* Cartões */
    .card {
        flex-direction: column;
        text-align: center;
    }

    .card.reverse {
        flex-direction: column;
    }

    .card-content.purple-bg {
        margin: 0;
        border-radius: 20px;
    }

    /* Seção de Assistir Mobile */
    .card-watch {
        width: 90% !important;
        /* Mesma largura da seção do show */
        margin: 0 auto;
        padding: 40px 60px 80px 60px !important;
        /* Padding horizontal similar ao show + espaço para botões */
    }

    .card-watch .card-header h2 {
        font-size: 1.5rem;
        /* Título menor no mobile */
    }

    .nav-btn.prev {
        left: 50%;
        top: auto;
        bottom: -70px;
        transform: translateX(-60px);
        /* Posicionar à esquerda do centro */
    }

    .nav-btn.next {
        right: 50%;
        top: auto;
        bottom: -70px;
        transform: translateX(60px);
        /* Posicionar à direita do centro */
    }

    /* Blobs */
    .blob {
        width: 200px !important;
    }

    .blob-1 {
        top: 5%;
        left: -10%;
    }

    .blob-2 {
        top: 25%;
        right: -10%;
    }

    .blob-3 {
        top: 60%;
        left: -15%;
    }

    .blob-4 {
        bottom: 5%;
        right: -10%;
    }

    /* Rodapé */
    .footer-logos img {
        max-width: 90px;
        /* Menor no mobile */
        margin: 20px 10px;
        /* Menos espaçamento */
    }
}