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

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --text-dark: #0f172a;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--blue-100);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.5);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.3rem;
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.6);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -8px rgba(37, 99, 235, 0.75);
}

/* ==================== MAIN ==================== */
.main-container {
    flex: 1;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==================== VIDEO (FIX HEIGHT) ==================== */
.video-section {
    width: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    /* Pakai aspect-ratio supaya height otomatis pas 16:9 */
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.25);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Plyr accent color */
:root {
    --plyr-color-main: #2563eb;
    --plyr-video-background: #000;
    --plyr-control-radius: 8px;
}

/* ==================== INFO BOX ==================== */
.info-box {
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
}

.info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--blue-700);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.info-title i {
    color: var(--blue-500);
    font-size: 1rem;
}

.info-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-mid);
    font-weight: 400;
}

/* ==================== INFO IKLAN (di bawah tombol download) ==================== */
.info-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: #92400e;
    text-align: center;
    animation: pulseAd 1.8s ease-in-out infinite;
}

.info-ad i {
    color: #d97706;
    font-size: 1rem;
}

@keyframes pulseAd {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.99); }
}

/* ==================== GROUP BOX ==================== */
.group-box {
    border: 2px solid var(--blue-400);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    background: white;
    transition: all 0.25s ease;
}

.group-box:hover {
    border-color: var(--blue-600);
    box-shadow: 0 12px 28px -12px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

.group-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.group-link-text {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-700);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.group-link-text:hover {
    color: var(--blue-500);
    text-decoration: underline;
}

/* ==================== DOWNLOAD BUTTON ==================== */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    color: white;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.65);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px -10px rgba(37, 99, 235, 0.8);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn i {
    font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--blue-100);
    font-size: 0.85rem;
    color: var(--text-light);
    background: white;
}

.footer strong {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
    .main-container {
        padding: 1.2rem 1rem 2rem;
        gap: 1.2rem;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .btn-upload span {
        display: none;
    }

    .btn-upload {
        padding: 0.7rem;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .info-box {
        padding: 1rem 1.1rem;
    }

    .info-text {
        font-size: 0.82rem;
    }

    .download-btn {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .group-box {
        padding: 1rem 1.1rem;
    }

    .info-ad {
        font-size: 0.82rem;
        padding: 0.75rem 1rem;
    }
}

/* ==================== REDIRECT COUNTDOWN ==================== */
.redirect-countdown {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-right: 0.3rem;
}

.redirect-countdown span {
    font-size: 0.78rem;
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ==================== LABEL IKLAN (A / B) ==================== */
.info-shopee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    color: #1a1a1a;
}

.info-shopee i {
    color: #64748b;
    font-size: 0.8rem;
}

/* ==================== VIDEO GATE OVERLAY ==================== */
.video-gate-overlay {
    position: absolute;
    inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);   /* transparan */
    cursor: pointer;
    z-index: 10;              /* di atas video, tapi di bawah kontrol Plyr kalau perlu */
    border-radius: var(--radius-md);
}

/* Pastikan Plyr di bawah overlay supaya klik pertama ketangkep overlay */
.video-wrapper .plyr {
    position: relative;
    z-index: 1;
}
/* ==================== UPLOAD BUTTON (TEXT ONLY, BLUE BG) ==================== */
.btn {
    border: none;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    padding: 0.65rem 1.3rem;
    border-radius: 100px;
    transition: all 0.25s ease;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.6);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -8px rgba(37, 99, 235, 0.75);
}

.btn:active {
    transform: translateY(0);
}
