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

:root {
    --primary: #e11d48; /* Red Premium */
    --primary-hover: #be123c;
    --bg-dark: #020617; /* Deep Navy/Black */
    --card-bg: rgba(15, 23, 42, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Landing Page Wrapper */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Executive */
header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.logo span { color: var(--primary); }

.user-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-locked {
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary);
    border-color: rgba(225, 29, 72, 0.2);
}

.reset-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.reset-btn:hover { color: #fff; }

/* Main Content Area */
main {
    flex: 1;
    margin-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Video Central UI */
.central-view {
    width: 100%;
    max-width: 1000px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Video Container Style */
.video-frame {
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    aspect-ratio: 16/9;
}

/* Paywall Overlay */
.paywall-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Verification Card */
.unlock-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.unlock-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.unlock-card p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

/* Form Styles */
.form-section { margin-bottom: 1.5rem; }
.form-section label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.btn-unlock {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
}

.btn-unlock:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(225, 29, 72, 0.4);
}

.error-hint {
    color: #f43f5e;
    font-size: 0.75rem;
    margin-top: 0.4rem;
}

.secure-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #475569;
}

/* Video Player UI */
#videoPlayer {
    width: 100%;
    height: 100%;
}

.video-info-footer {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.v-meta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.v-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Grid hidden in Single Video mode */
.hidden { display: none !important; }

/* Custom Modal Replacement */
#cardModal { display: none; } /* We will use the overlay instead */

/* Responsive */
@media (max-width: 768px) {
    .unlock-card { padding: 2rem 1.5rem; }
    .unlock-card h2 { font-size: 1.5rem; }
    .video-info-footer { flex-direction: column; gap: 1rem; }
}