@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Premium Cinematic Theme - Film Site */
    --primary-color: #0a0a0a;
    --secondary-color: #141414;
    --tertiary-color: #1a1a1a;

    /* Cinema Red & Gold Accent */
    --accent-primary: #e50914;
    --accent-secondary: #b20710;
    --accent-gradient: linear-gradient(135deg, #e50914 0%, #b20710 50%, #8a0509 100%);
    --accent-glow: rgba(229, 9, 20, 0.5);

    /* Gold Premium Accent */
    --gold-color: #f5c518;
    --gold-gradient: linear-gradient(135deg, #f5c518 0%, #e6b800 100%);
    --gold-glow: rgba(245, 197, 24, 0.4);

    /* Text Colors */
    --text-color: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #999999;
    --text-dim: #666666;

    /* Glass Morphism */
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

    /* Shadows & Effects */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    --card-shadow-hover: 0 20px 50px rgba(229, 9, 20, 0.4);
    --neon-glow: 0 0 25px rgba(229, 9, 20, 0.7);
    --gold-shadow: 0 0 20px var(--gold-glow);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --header-height: 70px;
}

body {
    /* Sinhala Cinema Background Theme */
    background: #0a0a0a url('../images/backgrounds/sinhala-cinema-bg.jpg') center/cover fixed;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Dark Overlay for Better Content Readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(10, 10, 10, 0.85) 0%,
            rgba(20, 20, 20, 0.70) 50%,
            rgba(10, 10, 10, 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Film Grain Overlay for Authentic Cinema Feel */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backgrounds/film-overlay.png');
    opacity: 0.06;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
    animation: filmGrain 0.5s steps(1) infinite;
}

@keyframes filmGrain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-1%, -1%);
    }

    20% {
        transform: translate(-2%, 0);
    }

    30% {
        transform: translate(1%, 2%);
    }

    40% {
        transform: translate(1%, 1%);
    }

    50% {
        transform: translate(-1%, 0);
    }

    60% {
        transform: translate(-2%, 1%);
    }

    70% {
        transform: translate(2%, 1%);
    }

    80% {
        transform: translate(-1%, -1%);
    }

    90% {
        transform: translate(1%, 2%);
    }
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0) 70%);
    animation: float 20s infinite ease-in-out;
    opacity: 0.4;
    filter: blur(60px);
}

.bg-sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 50%;
    animation: sparkle 3s infinite ease-in-out;
    box-shadow: 0 0 10px var(--gold-color);
    opacity: 0;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.4;
    }

    33% {
        transform: translateY(-30px) translateX(20px) rotate(120deg);
        opacity: 0.6;
    }

    66% {
        transform: translateY(-15px) translateX(-20px) rotate(240deg);
        opacity: 0.5;
    }

    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
        opacity: 0.4;
    }
}

@keyframes sparkle {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Header Styles */
header {
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.85) 100%);
    color: var(--text-color);
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
    background-size: 300% 300%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    position: relative;
}

.logo::before {
    content: '🎬';
    font-size: 1.8rem;
    margin-right: 0.3rem;
    filter: drop-shadow(0 0 10px var(--gold-color));
}

.logo-icon {
    width: 1.5rem;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0 2rem;
    height: 100%;
}

.nav-menu li {
    margin: 0 0.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0 1.2rem;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--text-color);
}

.nav-menu a.active::after {
    width: 80%;
}

.nav-menu a i {
    font-size: 0.9rem;
}

/* Search Bar Styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.search-icon:hover {
    color: var(--accent-primary);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1100;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 0 2rem;
}

.search-overlay-bar {
    position: relative;
    width: 100%;
}

.search-overlay-bar input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 4rem;
    border: none;
    border-radius: 50px;
    background-color: rgba(31, 31, 31, 0.8);
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 77, 77, 0.3);
    backdrop-filter: blur(10px);
}

.search-overlay-bar input:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
    border-color: var(--accent-color);
}

.search-overlay-bar i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.search-overlay-bar input:focus+i {
    color: var(--accent-color);
}

.close-search {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-search:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
    background-color: rgba(255, 77, 77, 0.1);
}

.message {
    background-color: #2d1b1b;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 10px 0;
    color: #ff6b6b;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
    max-width: 400px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.message.warning {
    background-color: #2d261b;
    border-color: #ffc107;
    color: #ffd93d;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}

.auth-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.login-btn {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--glass-border);
}

.login-btn:hover {
    background: var(--glass-bg);
    transform: translateY(-2px);
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

.register-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
    filter: brightness(1.1);
}

/* Mobile Header */
.mobile-header {
    display: none;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.85) 100%);
    padding: 0 1.5rem;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100;
    position: relative;
    transition: var(--transition);
}

.burger-line {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--accent-gradient);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--accent-gradient);
}

/* Sidebar Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.98) 0%, rgba(13, 13, 13, 0.98) 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 900;
    transition: var(--transition-smooth);
    padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid var(--glass-border);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-menu {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-menu li {
    margin-bottom: 0.5rem;
}

.mobile-nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.mobile-nav-menu a.active {
    color: var(--text-color);
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.15), transparent);
    border-left: 3px solid var(--accent-primary);
}

.mobile-nav-menu a:hover {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.1), transparent);
    color: var(--accent-primary);
    transform: translateX(5px);
}

.mobile-nav-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.mobile-search-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.mobile-search-btn:hover {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.2), transparent);
    color: var(--accent-primary);
    transform: translateX(5px);
}

.mobile-search-btn i {
    font-size: 1rem;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

/* Main Content */
main {
    padding: 3rem 2rem;
    max-width: 1450px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h1 {
    margin-bottom: 3rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 800;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 5px;
    background: var(--accent-gradient);
    border-radius: 5px;
    box-shadow: var(--neon-glow);
}

h1::before {
    content: '★';
    position: absolute;
    left: -40px;
    color: var(--gold-color);
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

h1.has-before::after {
    content: '★';
    position: absolute;
    right: -40px;
    left: auto;
    transform: none;
    color: var(--gold-color);
    filter: drop-shadow(0 0 10px var(--gold-glow));
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    bottom: auto;
}

/* Hero Featured Section */
.hero-featured {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    margin-bottom: 3rem;
    overflow: hidden;
    border-radius: 16px;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(10, 10, 10, 1) 0%,
            rgba(10, 10, 10, 0.8) 30%,
            rgba(10, 10, 10, 0.4) 60%,
            transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(229, 9, 20, 0.8);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.hero-meta i {
    color: var(--accent-primary);
}

.hero-quality {
    background: rgba(229, 9, 20, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--accent-primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-play,
.btn-hero-info {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-hero-play {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.5);
}

.btn-hero-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.7);
}

.btn-hero-info {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-hero-info:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Videos Section */
.videos-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: var(--accent-primary);
    animation: fireFlicker 2s infinite;
}

@keyframes fireFlicker {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.view-all-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.view-all-link:hover {
    color: var(--accent-primary);
    gap: 0.8rem;
}

.view-all-link i {
    transition: var(--transition-fast);
}

.view-all-link:hover i {
    transform: translateX(5px);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.video-card {
    background: var(--glass-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    position: relative;
    cursor: pointer;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.video-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--card-shadow-hover);
    border: 1px solid rgba(229, 9, 20, 0.6);
    z-index: 10;
}

.thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.video-card:hover .thumbnail {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    opacity: 0;
    transition: var(--transition-bounce);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
    }

    50% {
        box-shadow: 0 0 50px rgba(229, 9, 20, 1);
    }
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-quality {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold-gradient);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: var(--gold-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold-gradient);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: var(--gold-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: vipGlow 2s ease-in-out infinite;
}

@keyframes vipGlow {

    0%,
    100% {
        box-shadow: 0 0 15px var(--gold-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--gold-glow), 0 0 35px var(--gold-glow);
    }
}

.vip-badge i {
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.video-info {
    padding: 1.3rem;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.5), rgba(10, 10, 10, 0.8));
}

.video-title {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    letter-spacing: 0.3px;
}

.video-title:hover {
    color: var(--accent-primary);
    text-decoration: none;
    text-shadow: 0 0 10px var(--accent-glow);
}


.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-views {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.video-views i {
    font-size: 0.7rem;
    color: var(--gold-color);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--tertiary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    text-align: center;
    padding: 3.5rem 2rem;
    margin-top: 4rem;
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding: 0.3rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    color: white;
    background: var(--accent-gradient);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--neon-glow);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Ad Banner Styles */
.ad-banner {
    width: 320px;
    height: 50px;
    margin: 1rem auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-banner iframe,
.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Scrollbar - Cinematic Style */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
    border-left: 1px solid var(--glass-border);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff1a24 0%, #e50914 50%, #b20710 100%);
    box-shadow: var(--neon-glow);
}

/* Responsive Styles - Mobile First Approach */
@media (max-width: 1200px) {
    .nav-menu {
        margin: 0 1rem;
    }

    .nav-menu li {
        margin: 0 0.3rem;
    }

    .nav-menu a {
        padding: 0 0.8rem;
        font-size: 0.9rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .auth-buttons {
        margin-left: 1rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.8rem;
    }

    main {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .search-overlay-bar input {
        padding: 1rem 1.5rem 1rem 3.5rem;
        font-size: 1rem;
    }

    /* Hero Section Mobile */
    .hero-featured {
        height: 50vh;
        min-height: 400px;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-play,
    .btn-hero-info {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    /* Section Header Mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 1.5rem;
    }

    main {
        padding: 2rem 1.2rem;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    h1::before {
        left: -30px;
        font-size: 1.5rem;
    }

    .ad-banner {
        width: 100%;
        max-width: 320px;
    }

    .video-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

@media (max-width: 480px) {

    /* Hero Section Extra Small */
    .hero-featured {
        height: 45vh;
        min-height: 350px;
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-meta {
        gap: 0.8rem;
        font-size: 0.8rem;
    }

    .hero-meta span {
        font-size: 0.85rem;
    }

    .btn-hero-play,
    .btn-hero-info {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Section Mobile */
    .section-title {
        font-size: 1.3rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .mobile-nav {
        width: 85%;
        right: -85%;
    }

    main {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    h1::before {
        left: -25px;
        font-size: 1.2rem;
    }

    .search-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .video-card {
        border-radius: 10px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .video-info {
        padding: 1rem;
    }

    .video-title {
        font-size: 0.95rem;
    }
}
}
}

/* Delay animations for cards */
.video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.video-card:nth-child(3) {
    animation-delay: 0.3s;
}

.video-card:nth-child(4) {
    animation-delay: 0.4s;
}

.video-card:nth-child(5) {
    animation-delay: 0.5s;
}

.video-card:nth-child(6) {
    animation-delay: 0.6s;
}

.video-card:nth-child(7) {
    animation-delay: 0.7s;
}

.video-card:nth-child(8) {
    animation-delay: 0.8s;
}

.video-card:nth-child(9) {
    animation-delay: 0.9s;
}

.video-card:nth-child(10) {
    animation-delay: 1.0s;
}

.video-card:nth-child(11) {
    animation-delay: 1.1s;
}

.video-card:nth-child(12) {
    animation-delay: 1.2s;
}

.video-card:nth-child(13) {
    animation-delay: 1.3s;
}

.video-card:nth-child(14) {
    animation-delay: 1.4s;
}

.video-card:nth-child(15) {
    animation-delay: 1.5s;
}

.video-card:nth-child(16) {
    animation-delay: 1.6s;
}

.video-card:nth-child(17) {
    animation-delay: 1.7s;
}

.video-card:nth-child(18) {
    animation-delay: 1.8s;
}

.video-card:nth-child(19) {
    animation-delay: 1.9s;
}

.video-card:nth-child(20) {
    animation-delay: 2.0s;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gradient);
    border-radius: 6px;
    border: 2px solid var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: pageLoad 0.6s ease-out;
}

/* Hover Brightness for Links */
a {
    transition: var(--transition-fast);
}

a:hover {
    filter: brightness(1.1);
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Skeleton Loading (Optional for future) */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}