* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: #030712;
    color: #ffffff;
    overflow-x: hidden;
}

.navbar {
    background: linear-gradient(to bottom, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.7));
    padding: 20px 50px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo {
    font-size: 1.9rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo .plus {
    color: #2b39d2;
    font-weight: 700;
}

.categories {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 6px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Container de fundo escuro com desfoque */
#vipModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

/* Caixa principal do Modal */
#vipModal .modal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    position: relative;
    color: #ffffff;
    animation: modalFadeIn 0.3s ease-out;
}

/* Botão de Fechar (X) */
#vipModal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

#vipModal .close:hover {
    color: #ffffff;
}

/* Cartão do Plano */
#vipModal .plan-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

#vipModal .plan-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* Botão Principal de Ativação */
#btnUpgradeVIP {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

#btnUpgradeVIP:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.6);
}

#btnUpgradeVIP:active {
    transform: translateY(0);
}

/* Animação de Entrada */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.cat-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    color: #ffffff;
}

.cat-btn.active {
    color: #fff;
    background: #2b39d2;
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-btn {
    background-color: #e50914;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-weight: bold;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    transition: background 0.3s, transform 0.2s;
}

.live-btn:hover {
    background-color: #b20710;
    transform: scale(1.02);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.nav-right input {
    background-color: rgba(255, 255, 255, 0.155);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 11px 18px;
    border-radius: 17px;
    outline: none;
    font-size: 0.85rem;
    transition: width 0.3s;
}

.nav-right input:focus {
    border-color: #38bdf8;
}

.btn-auth-trigger {
    background-color: #2b39d2;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    font-size: 0.85rem;
    border-radius: 17px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-auth-trigger:hover {
    background-color: #1e289f;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 95vh;
    max-height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0 50px 60px 50px;
    box-shadow: inset 0 -120px 80px #030712;
    transition: background-image 0.5s ease-in-out;
}

.hero-content {
    max-width: 540px;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.badge {
    background-color: #2b39d2;
    display: inline-block;
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.hero h2 {
    font-size: 3.2rem;
    margin: 12px 0;
    font-weight: 700;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero p {
    color: #cbd5e1;
    font-size: 1.01rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    gap: 11px;
    align-items: center;
}

.btn-primary {
    background-color: #2b39d2;
    color: #fff;
    border: none;
    padding: 13px 24px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1e289f;
    transform: scale(1.03);
}

.container {
    padding: 30px 50px 60px 50px;
    position: relative;
    z-index: 3;
    margin-top: 0;
}

.section-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background-color: #0b1329;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(16, 6, 94, 0.933);
}

.card:hover {
    transform: translateY(-9px);
    border-color: hsla(246, 75%, 41%, 0.947);
}

.card img {
    width: 100%;
    height: 331.1px;
    object-fit: cover;
}

.card-info {
    padding: 10px 12px;
}

.card-title {
    font-size: 1.0rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-category {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 2px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-clean {
    position: relative;
    width: 100%;
    max-width: 820px;
    background-color: #0b0f19;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #e50914;
}

.iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.iframe-container iframe,
.iframe-container video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Camada bloqueadora de cliques do Google Drive */
.video-overlay-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: transparent;
    pointer-events: none;
}

/* Botão de Sair / Fechar do Vídeo */
.btn-sair-video {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-sair-video:hover {
    background-color: #e50914;
    transform: scale(1.05);
}

.modal-info-body {
    padding: 24px 28px;
    text-align: left;
}

.video-info-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.video-meta-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.badge-category {
    background-color: #2b39d2;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.meta-item {
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
}

.meta-divider {
    color: #475569;
}

.video-info-desc {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
}

.auth-container {
    position: relative;
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
    color: #ffffff;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #94a3b8;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #2b39d2;
    color: #ffffff;
}

.auth-form h2 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: #ffffff;
}

.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
}

.input-group input:focus {
    border-color: #2b39d2;
}

.avatar-options {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.avatar-option {
    cursor: pointer;
    position: relative;
}

.avatar-option input[type="radio"] {
    display: none;
}

.avatar-option img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    transition: transform 0.2s, border-color 0.2s;
    object-fit: cover;
}

.avatar-option input[type="radio"]:checked + img {
    border-color: #2b39d2;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(43, 57, 210, 0.5);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px 4px 6px;
    border-radius: 20px;
    cursor: pointer;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-profile-btn img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-submit {
    width: 100%;
    background-color: #2b39d2;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background-color: #1e289f;
}

.feedback {
    margin-top: 12px;
    font-size: 0.85rem;
    text-align: center;
}


@media screen and (max-width: 768px) {
    .navbar {
        padding: 8px 10px;
        gap: 6px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .logo {
        font-size: 1rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .categories {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; 
        -webkit-overflow-scrolling: touch;
        padding: 3px 6px;
        gap: 4px;
        background: rgba(255, 255, 255, 0.12); 
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        max-width: 140px;
    }

    .categories::-webkit-scrollbar {
        display: none;
    }

    .cat-btn {
        flex-shrink: 0;
        padding: 4px 10px; 
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 12px;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }

    .live-btn {
        padding: 4px 6px;
        font-size: 0.65rem;
        gap: 3px;
    }

    .live-dot {
        width: 5px;
        height: 5px;
    }

    .nav-right input {
        width: 55px;
        padding: 5px 6px;
        font-size: 0.7rem;
        border-radius: 10px;
    }

    .nav-right input:focus {
        width: 85px;
    }

    .user-profile-btn {
        padding: 0;
        background: transparent;
        border: none;
    }

    .user-profile-btn span {
        display: none !important;
    }

    .user-profile-btn img, .btn-auth-trigger {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 2px solid #2b39d2; 
        box-shadow: 0 0 6px rgba(43, 57, 210, 0.6);
        object-fit: cover;
    }

    .btn-auth-trigger {
        padding: 4px 8px;
        font-size: 0.7rem;
        width: auto;
        border-radius: 12px;
    }

    .hero {
        padding: 0 20px 40px 20px;
        min-height: 400px;
        height: 75vh;
    }

    .hero h2 {
        font-size: 2.1rem;
    }

    .container {
        padding: 0 20px 40px 20px;
    }

    .card img {
        width: 100%;
        height: 331.1px;
        object-fit: cover;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .modal {
        padding: 15px;
        align-items: center;
        justify-content: center;
    }

    .modal-clean {
        max-height: 85vh;
        overflow-y: auto;
    }

    .avatar-options {
        display: flex;
        flex-wrap: wrap; 
        gap: 8px;
        justify-content: center;
    }

    .avatar-option img {
        width: 40px;
        height: 40px;
    }

    .auth-container {
        max-height: 85vh; 
        overflow-y: auto;  
        padding: 20px 16px;
    }
}
