/* Video Protection */
video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

video::-internal-media-controls-download-button {
    display: none;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px);
}

:root {
    color-scheme: dark;
    --bg-color: #0E0E0E;
    --text-main: #f8f9fa;
    --text-muted: #9ba0aa;
    --primary: #FF1A1A;
    --primary-hover: #CC0000;
    --accent: #FF1A1A;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(14, 14, 14, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-fam: 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure native dropdowns and form elements are visible on dark background */
select option {
    background-color: #1a1a1a;
    color: #fff;
}

body {
    font-family: var(--font-fam);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    animation: preloaderPopIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, preloaderPulse 2.5s infinite;
}

@keyframes preloaderPopIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes preloaderPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 26, 26, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 35px rgba(255, 26, 26, 1));
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.navbar.scrolled {
    background: rgba(14, 14, 14, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 4%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
}

.logo-icon {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
    /* Fallback */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: 0.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--border-color);
}

.nav-links a {
    font-weight: 500;
    color: #ffffff;
    /* Forced white for visibility */
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

body.mobile-menu-open {
    overflow: hidden;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0;
    transition: var(--transition);
    position: relative;
    height: 40px;
    min-width: 40px;
}

.search-container.active {
    overflow: visible;
}

#header-search {
    width: 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-fam);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.4s ease;
    border-radius: 50px;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.search-container.active #header-search {
    width: 220px;
    padding: 8px 15px 8px 45px;
    opacity: 1;
    pointer-events: all;
    border: 1px solid var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.2);
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: min(320px, calc(100vw - 2rem));
    max-height: 320px;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 1100;
    padding: 0.4rem;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-align: left;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.search-suggestion-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-suggestion-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.search-suggestion-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.search-suggestion-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    line-height: 1.2;
}

.search-suggestion-empty {
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.search-btn {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-container.active .search-btn {
    border-color: transparent;
    background: transparent;
    color: var(--primary);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.button-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-nav-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
}

.user-nav-profile>* {
    flex: 0 0 auto;
}

.nav-avatar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 26, 26, 0.75);
}

.nav-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c90f0f, #7c0000);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    border: 2px solid rgba(255, 26, 26, 0.75);
    letter-spacing: 0.4px;
}

.logout-btn {
    font-size: 0.8rem;
    height: 40px;
    white-space: nowrap;
}

.site-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    height: 40px;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    border-radius: 50px;
    color: white;
    font-weight: 600;
}

.sign-in-btn {
    height: 40px;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-family: var(--font-fam);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-glass {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn {
    background: transparent;
    color: white;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.search-container.active .search-btn {
    color: var(--primary);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 0;
    position: relative;
}

.hero-carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.hero-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 4% 4% 8%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg,
            rgba(14, 14, 14, 1) 0%,
            rgba(14, 14, 14, 0.4) 35%,
            rgba(14, 14, 14, 0) 70%,
            rgba(14, 14, 14, 0.5) 100%);
    z-index: 2;
}

/* Feature Badge - Red with Rotating Gold Border */
.badge.featured-gold {
    background: transparent;
    color: white;
    font-weight: 800;
    padding: 7px 20px;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: glowPulse 2s infinite;
}



@keyframes rotateGoldBorder {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes goldGlide {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
    }
}

@keyframes shine {
    0% {
        left: -100%;
        top: -100%;
    }

    20% {
        left: 100%;
        top: 100%;
    }

    100% {
        left: 100%;
        top: 100%;
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 5;
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.hero-slide.active .hero-content {
    transform: translateX(0);
    opacity: 1;
}

.hero-laurels {
    position: absolute;
    top: 15%;
    right: 5%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease 0.6s;
}

.hero-slide.active .hero-laurels {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-dot.active {
    background: var(--primary);
    width: 35px;
    box-shadow: 0 0 15px var(--primary);
}

.meta-dot {
    display: inline-block;
    vertical-align: middle;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0 15px;
}

.badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    z-index: 1;
}

.badge::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--primary);
    border-radius: 50px;
    z-index: -1;
}

.badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: conic-gradient(from 0deg, transparent 60%, rgba(255, 255, 255, 1) 90%, rgba(255, 255, 255, 1) 100%);
    animation: goldGlowRotate 2.5s linear infinite;
    z-index: -2;
}

@keyframes goldGlowRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.laurel-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 10px;
}

.laurel-badge:hover {
    background: rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    transform: translateY(-3px) scale(1.05);
    border-color: #FFD700;
}

.award-laurel-icon {
    color: #FFD700;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.7));
}

.video-card:hover .award-laurel-icon {
    animation: laurelPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes laurelPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3) rotate(15deg);
    }

    100% {
        transform: scale(1.2) rotate(10deg);
    }
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    /* Regular font weight */
}

.dot {
    opacity: 0.7;
}

.tag {
    padding: 0.2rem 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .video-card:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .video-card:active {
        transform: scale(0.98);
    }

    /* On mobile, show info on cards by default or with a simpler trigger */
    .card-info {
        padding: 0.8rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-author {
        font-size: 0.75rem;
    }

    .video-grid {
        gap: 1.2rem;
        padding-bottom: 1rem;
    }

    .video-card {
        flex: 0 0 220px;
    }

    /* Fixed header on mobile */
    .navbar {
        height: 70px;
    }

    /* Mobile-specific hero adjustments */
    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.95rem;
    }

    /* Ensure upcoming films logline is visible on mobile hover/tap */
    .video-card:hover .play-overlay {
        opacity: 1;
    }
}

/* Ensure smooth scrolling on mobile */
.video-grid {
    -webkit-overflow-scrolling: touch;
}

/* Main Content */
.main-content {
    padding: 2rem 4% 6rem;
}

.row {
    margin-bottom: 4rem;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.row-controls {
    display: flex;
    gap: 12px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    user-select: none;
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: var(--font-fam);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.filter-select:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.2);
}

.row-scroll-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    width: 36px;
    height: 36px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.row-scroll-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.video-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll for Safari/iOS */
}

.video-grid::-webkit-scrollbar {
    display: none;
}

/* Video Card */
.video-card {
    flex: 0 0 clamp(250px, 20vw, 300px);
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
}

.video-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    background: rgba(25, 25, 25, 1);
    z-index: 100;
}

.card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    overflow: hidden;
    background: #0e0e0e;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .card-thumb img {
    transform: scale(1.15);
    opacity: 0.4;
    filter: blur(2px);
}

.video-card:hover .content-rating-badge,
.video-card:hover .top-badge {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.card-synopsis {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 40%;
    padding: 2rem 1rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.card-synopsis-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.video-card:hover .card-synopsis {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(255, 26, 26, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card:hover .play-btn {
    transform: scale(1);
}

.duration {
    position: absolute;
    bottom: 0.3rem;
    right: 0.3rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-author {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}

.major-tag {
    color: var(--primary);
    background: rgba(255, 26, 26, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.upcoming-badge,
.top-badge {
    position: absolute;
    top: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.upcoming-badge {
    left: 0.8rem;
    background: var(--primary);
    color: white;
}

.top-badge {
    right: 0.8rem;
    background: rgba(0, 0, 0, 0.85);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.content-rating-badge {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 5;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.duration {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    background: rgba(0, 0, 0, 0.85);
    color: white;
}

/* Promo section */
.promo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 26, 26, 0.05), rgba(255, 51, 51, 0.05));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 4rem;
    margin-top: 6rem;
    gap: 4rem;
}

.promo-content {
    flex: 1;
}

.promo-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.promo-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.promo-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    gap: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 4% 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.footer-logo {
    flex: 1;
    min-width: min(300px, 100%);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    font-size: 2rem;
    font-weight: 800;
}

.sdca-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.footer-contact-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-contact-info h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 2rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-grid {
    display: flex;
    gap: clamp(1rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.contact-section {
    flex: 1 1 180px;
    min-width: 0;
}

.footer-contact-info h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-contact-info p {
    margin-bottom: 0.2rem;
}

.footer-contact-info .address {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: clamp(1.5rem, 5vw, 4rem);
    flex-wrap: wrap;
}

.link-group h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .promo-section {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .glass-card {
        padding: 2rem;
        width: 100%;
        justify-content: space-around;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

/* --- MOBILE NAVIGATION --- */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2005;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform var(--transition);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a.active {
    color: var(--primary);
}

.mobile-nav .btn {
    width: 100%;
    justify-content: center;
}

.mobile-nav-cta {
    margin-top: 0.5rem;
}

.mobile-nav-logout,
.mobile-nav-signin {
    margin-top: 0.25rem;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2004;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* --- MOBILE OVERRIDES --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 4%;
        gap: 1rem;
        left: 0;
        right: 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .nav-actions {
        margin-left: auto;
        gap: 0.75rem;
        flex: 0 0 auto;
    }

    .nav-actions .button-group {
        display: none;
    }

    .search-container.active #header-search {
        width: min(240px, calc(100vw - 8rem));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .logo {
        min-width: 0;
        flex: 1 1 auto;
    }

    .logo > a {
        min-width: 0;
        display: block;
    }

    .logo-text {
        font-size: 1.2rem;
        display: inline-block;
        max-width: min(58vw, 220px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo > a > div > span:last-child {
        display: none;
    }

    .search-suggestions {
        width: min(82vw, 320px);
    }

    .search-container.active #header-search {
        width: min(200px, calc(100vw - 7rem));
        padding: 8px 14px 8px 42px;
    }

    .hero {
        min-height: clamp(520px, 78dvh, 760px);
    }

    .hero-slide {
        align-items: flex-start;
        padding: 98px 4.5% 72px;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        padding-bottom: 0;
    }

    .hero-title-container {
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .hero-title {
        font-size: clamp(1.95rem, 7.2vw, 2.5rem);
        letter-spacing: -1px;
        line-height: 1.05;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-desc {
        max-width: 100%;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hero-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.85rem;
        margin-bottom: 1rem;
        font-size: 0.88rem;
    }

    .hero-meta .meta-dot {
        display: none;
    }

    .hero-meta > span {
        line-height: 1.3;
    }

    .hero-meta > div {
        grid-column: 1 / -1;
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
    }

    .hero-meta .tag {
        font-size: 0.72rem;
        padding: 0.15rem 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
    }

    .hero-laurels {
        display: none;
        /* Too cluttered on mobile */
    }

    .main-content {
        padding-top: 1rem;
    }

    .row-header h2 {
        font-size: 1.5rem;
    }

    .video-grid {
        gap: 1rem;
    }

    .video-card {
        flex: 0 0 250px;
    }

    .carousel-dots {
        bottom: 14px;
    }

    .modal-window {
        width: min(94vw, 600px);
        max-height: 88vh;
        border-radius: 18px;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem 1.2rem;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .footer-content {
        margin-bottom: 2.5rem;
    }

    .footer-logo,
    .footer-links,
    .link-group,
    .contact-section {
        width: 100%;
    }

    .logo-container {
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .navbar {
        padding: 0.9rem 4%;
    }

    .search-container.active #header-search {
        width: min(170px, calc(100vw - 7.5rem));
    }

    .mobile-nav {
        width: min(88vw, 320px);
        padding: 5.5rem 1.25rem 1.5rem;
    }

    footer {
        padding-inline: 5%;
    }

    .contact-grid {
        gap: 1rem;
    }
}

/* Auth Transitions (Login & Logout) */
.login-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.login-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.transition-logo {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.user-anim {
    animation: preloaderPopIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, preloaderPulse 2.5s infinite;
}

.user-logout-anim {
    animation: preloaderPulse 2s infinite alternate, popOut 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.admin-anim {
    color: white;
    text-align: center;
}

.admin-icon {
    color: #00ffcc;
    margin-bottom: 20px;
    animation: unlockSpin 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.admin-badge-anim {
    display: inline-block;
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    border: 1px solid #00ffcc;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    animation: adminGlow 1.5s infinite alternate;
    opacity: 0;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
}

@keyframes adminGlow {
    0% {
        transform: scale(0.95);
        opacity: 1;
        box-shadow: 0 0 5px rgba(0, 255, 204, 0.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 25px rgba(0, 255, 204, 0.8);
    }
}

@keyframes unlockSpin {
    0% {
        transform: scale(0) rotateY(180deg);
    }

    100% {
        transform: scale(1.5) rotateY(0deg);
    }
}

/* Modal System (Terms & Conditions) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-window {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: min(90%, 600px);
    max-width: 600px;
    max-height: min(80vh, 860px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
}

.modal-body h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* --- Admin Specific Premium Components --- */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.danger-action {
    transition: all 0.3s ease;
}

.danger-action:hover {
    background: rgba(255, 51, 51, 0.1) !important;
    border-color: #ff3333 !important;
    color: #ff3333 !important;
    transform: translateX(5px);
}

.danger-action.hard-reset:hover {
    background: #ff3333 !important;
    color: white !important;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 560px;
    }

    .hero-slide {
        padding: 88px 4% 54px;
    }

    .badge {
        margin-bottom: 0.75rem;
    }

    .hero-title {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .laurel-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-left: 0;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        font-size: 0.84rem;
    }

    .hero-meta > div {
        display: none;
    }

    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .carousel-dots {
        bottom: 8px;
    }

    .carousel-dot.active {
        width: 24px;
    }
}