:root {
    --bg-color: #0f0f12;
    --accent: #3b82f6;
    --text: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.hidden { display: none !important; }
.error { color: #ff4d4d; font-size: 0.9rem; margin-top: 10px; }

/* Branding */
.brand-title {
    font-size: 3rem;
    margin: 0 0 10px 0;
    background: linear-gradient(90deg, #fff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}
.brand-title-small {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.subtitle { color: #888; margin-bottom: 30px; }

/* Containers */
#login-container, #security-gate {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.gate-box {
    background: #1a1a1e;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}
input {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #222;
    color: white;
    font-size: 16px;
    outline: none;
    width: 200px;
    text-align: center;
}
button {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.2s;
    width: 100%;
}
button:hover { background: #2563eb; }

/* Video Player */
#video-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
}

.video-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background: #000;
}

#youtube-player {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Click Shield & Pause Screen */
#click-shield {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
    background: transparent;
}

#pause-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    z-index: 15;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* Spinner */
.spinner-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}
.spinner-s {
    font-family: sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: pulse-spin 1.5s infinite ease-in-out;
}
@keyframes pulse-spin {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 1; text-shadow: 0 0 40px var(--accent); }
    100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
}

/* Controls */
.controls {
    position: absolute;
    bottom: 20px; left: 20px; right: 20px;
    display: flex; align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 20;
}
.video-wrapper:hover .controls { opacity: 1; }
.btn-icon {
    background: none; margin: 0; padding: 0;
    font-size: 1.2rem; width: auto;
}
.btn-icon:hover { background: none; color: var(--accent); }
.progress-bar-container {
    flex-grow: 1; height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer; position: relative;
}
.progress-bar { width: 100%; height: 100%; }
.progress-fill {
    width: 0%; height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}
.watermark {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: bold;
    text-transform: uppercase;
}

/* Breach */
body.breached > *:not(#breach-overlay) {
    filter: blur(20px) grayscale(100%);
    pointer-events: none;
}
#breach-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    color: red; text-shadow: 0 0 10px black;
    background: rgba(0,0,0,0.8);
    text-align: center;
}
@media print {
    body * { display: none !important; }
    body:after { content: "Protected."; display: block; font-size: 24pt; padding-top: 50px; text-align: center; }
}
