@charset "UTF-8";
/* viharitv.css — FULLY RESPONSIVE - Preserving all working desktop styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ROOT VARIABLES FOR RESPONSIVE DESIGN ===== */
:root {
    /* Fluid spacing */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.5vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2rem);
    --space-xl: clamp(2rem, 4vw, 3rem);
    --space-xxl: clamp(3rem, 6vw, 4rem);
    
    /* Responsive containers */
    --container-padding: clamp(16px, 3vw, 5%);
    --mobile-padding: 16px;
    --tablet-padding: 24px;
    
    /* Safe areas for modern devices */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 14px var(--container-padding);
    border-bottom: 1px solid #222;
    padding-top: calc(14px + var(--safe-area-top));
    padding-left: calc(var(--container-padding) + var(--safe-area-left));
    padding-right: calc(var(--container-padding) + var(--safe-area-right));
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: var(--space-md);
}

.logo-img {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Desktop User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.user-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 36px;
}

.buy-btn {
    background: rgba(229, 9, 20, 0.15);
    color: #e50914 !important;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.buy-btn:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: rgba(229, 9, 20, 0.5);
    transform: translateY(-1px);
}

.login-btn {
    background: rgba(255, 255, 255, 0.07);
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links {
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    transition: all 0.3s ease;
    flex-wrap: nowrap; /* FIXED: Changed from wrap */
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 1vw, 1rem);
    transition: color .3s;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: #e50914;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative;
    margin-left: 20px;
    flex: 0 1 auto;
    display: inline-block;
    width: 280px;
}

.search-bar form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: #2a2a2a;
    border: 1px solid transparent;
    border-radius: 24px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.search-bar input[type="text"]:hover {
    background: #333;
}

.search-bar input[type="text"]:focus {
    outline: none;
    border: 1px solid #e50914;
    background: #1f1f1f;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
    width: 100%;
}

.search-bar input[type="text"]::placeholder {
    color: #888;
    font-weight: 400;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar button:hover {
    color: #e50914;
    background: rgba(255, 255, 255, 0.05);
}

/* ===== HERO SECTIONS ===== */
.hero {
    position: relative;
    height: clamp(500px, 80vh, 800px);
    min-height: 400px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    margin-top: 70px;
    cursor: pointer;
    width: 100%;
}

.about-hero, .team-hero {
    position: relative;
    height: clamp(400px, 70vh, 600px);
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/seed/ladakh/50/30?blur=5') center/cover;
    filter: blur(10px);
    transform: scale(1.1);
    z-index: 1;
}

.hero-bg-image, .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity .8s;
}

.hero-bg-image.loaded, .hero-bg {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(229,9,20,0.3));
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: var(--container-padding);
    max-width: 900px;
    width: calc(100% - 2 * var(--container-padding));
    z-index: 3;
    text-align: left;
}

.about-hero .hero-content, .team-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 var(--container-padding);
    text-align: center;
}

.hero h1, .about-hero h1, .team-hero h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    color: white;
}

.hero .desc, .tagline {
    font-size: clamp(1rem, 2.5vw, 1.45rem);
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero .meta {
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 28px;
    color: #aaa;
    flex-wrap: wrap;
}

.play-btn {
    background: #e50914;
    color: white;
    border: none;
    padding: clamp(12px, 2vw, 18px) clamp(24px, 4vw, 48px);
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .3s;
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.5);
    min-height: 44px;
}

.play-btn:hover {
    transform: scale(1.08);
    background: #c20710;
}

.hero-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(3rem, 8vw, 5rem);
    color: rgba(255, 255, 255, 0.85);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 3;
}

.hero:hover .hero-play-overlay {
    opacity: 1;
}

/* ===== PAGE HEADERS ===== */
.page-header {
    padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 8vh, 80px);
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.03), transparent 60%),
                linear-gradient(to bottom, #111 0%, #0a0a0a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #222;
    margin-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://picsum.photos/seed/pages/1920/800') center/cover;
    opacity: 0.06;
    z-index: 0;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-xl) var(--container-padding);
}

.section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: #fff;
    border-left: 4px solid #e50914;
    padding-left: 14px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    border-left: 5px solid #e50914;
    padding-left: 16px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #aaa;
    margin-bottom: 40px;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

/* ===== VIDEO GRIDS ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: var(--space-md);
    width: 100%;
}

.video-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--space-md);
    padding: 10px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: #e50914 transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 10px var(--container-padding) 25px;
}

.video-card {
    flex: 0 0 auto;
    width: min(300px, 80vw);
    background: #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
    scroll-snap-align: start;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.video-card:hover .thumb-wrapper img {
    transform: scale(1.08);
}

.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.video-card h3 {
    padding: 14px 14px 8px;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.video-card .desc {
    padding: 0 14px;
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    color: #aaa;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.video-card .meta {
    padding: 8px 14px 14px;
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
    color: #888;
}

/* ===== HOMEPAGE HORIZONTAL SCROLL FIX ===== */
#category-sections-container .carousel-section .carousel-container .video-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 20px !important;
    padding: 10px 0 25px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #e50914 transparent !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    margin: 0 !important;
}

#category-sections-container .carousel-section .carousel-container .video-row .video-card {
    flex: 0 0 auto !important;
    width: 280px !important;
    min-width: 280px !important;
    margin: 0 !important;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: #1a1a1a;
    border-radius: 14px;
    overflow: hidden;
}

.skeleton .thumb-wrapper {
    background: #2a2a2a;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton h3 {
    height: 16px;
    background: #2a2a2a;
    border-radius: 4px;
    margin: 12px 14px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton .desc {
    height: 32px;
    background: #2a2a2a;
    border-radius: 4px;
    margin: 8px 14px 12px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton .meta {
    height: 14px;
    background: #2a2a2a;
    border-radius: 4px;
    margin: 0 14px 14px;
    width: 70%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== ABOUT PAGE STYLES ===== */
.mission-section, .team-intro-section {
    background: #111;
    padding: var(--space-xxl) 0;
}

.mission-text, .intro-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.8;
    color: #ddd;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-top: 50px;
    text-align: center;
}

.stat h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #e50914;
    margin-bottom: 8px;
}

.stat p {
    color: #aaa;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.founder-section, .team-grid-section {
    padding: var(--space-xxl) 0;
    background: #0a0a0a;
}

.founder-card {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    max-width: 1000px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.founder-img {
    width: clamp(150px, 20vw, 300px);
    height: clamp(150px, 20vw, 300px);
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #e50914;
    flex-shrink: 0;
}

.founder-info {
    padding: clamp(20px, 3vw, 30px);
    flex: 1;
}

.founder-info h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 8px;
}

.role {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: #e50914;
    font-weight: 600;
    margin-bottom: 16px;
}

.bio {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    width: clamp(35px, 3vw, 40px);
    height: clamp(35px, 3vw, 40px);
    background: #2a2a2a;
    color: #aaa;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #e50914;
    color: white;
    transform: translateY(-3px);
}

.team-preview {
    padding: var(--space-xxl) 0;
    background: #111;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: clamp(20px, 3vw, 30px);
    margin-bottom: 40px;
}

.team-member {
    text-align: center;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: clamp(80px, 10vw, 100px);
    height: clamp(80px, 10vw, 100px);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid #333;
}

.team-member h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
    margin-bottom: 8px;
}

.team-member p {
    color: #aaa;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

/* ===== TEAM PAGE GRID ===== */
.team-grid-section .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(25px, 3vw, 40px);
}

.team-grid-section .team-member {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #222;
    text-align: left;
}

.team-grid-section .team-member:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.member-img {
    width: 100%;
    height: clamp(200px, 25vw, 260px);
    object-fit: cover;
}

.member-info {
    padding: clamp(20px, 2.5vw, 24px);
    text-align: center;
}

.member-info h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 8px;
    color: #fff;
}

.member-info .role {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: #e50914;
    font-weight: 600;
    margin-bottom: 16px;
}

.member-info .bio {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 20px;
}

.member-info .social-links a {
    display: inline-flex;
    width: clamp(35px, 3vw, 40px);
    height: clamp(35px, 3vw, 40px);
    background: #2a2a2a;
    color: #aaa;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 6px;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    transition: all 0.3s;
}

/* ===== PROGRAMMES PAGE ===== */
.categories-section {
    background: #0a0a0a;
    padding: var(--space-xxl) 0;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: clamp(20px, 2.5vw, 32px);
    margin-top: 50px;
}

.category-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(15, 15, 15, 0.9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 20px;
    padding: clamp(25px, 3vw, 36px) clamp(20px, 2vw, 24px);
    text-decoration: none;
    color: #eee;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.category-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 20px 50px rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.5);
    background: linear-gradient(145deg, rgba(30, 10, 10, 0.6), rgba(20, 5, 10, 0.8));
}

.card-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #e50914;
    margin-bottom: 18px;
    filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.3));
    position: relative;
    z-index: 1;
}

.category-card h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #e50914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.category-card p {
    position: relative;
    z-index: 1;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #ddd;
    line-height: 1.7;
}

.featured-section {
    background: #111;
    padding: var(--space-xxl) 0;
}

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(25px, 3vw, 40px);
    margin-top: 50px;
}

.programme-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(15, 15, 15, 0.9));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.programme-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 20px 50px rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.5);
}

.programme-card img {
    width: 100%;
    height: clamp(180px, 20vw, 220px);
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    filter: brightness(0.95);
    transition: filter 0.3s;
    position: relative;
    z-index: 1;
}

.card-info {
    padding: clamp(20px, 2.5vw, 24px);
    position: relative;
    z-index: 1;
}

.card-info h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #e50914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.episodes {
    color: #e50914;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 600;
    margin-bottom: 12px;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    background: #0a0a0a;
    padding: var(--space-xxl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(30px, 4vw, 60px);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-form {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(18, 18, 18, 0.95));
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: clamp(25px, 3vw, 40px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: clamp(0.9rem, 1vw, 0.95rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(12px, 1.5vw, 14px) 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    outline: none;
    transition: all 0.3s;
    backdrop-filter: blur(6px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info h3 {
    font-size: clamp(1.4rem, 2vw, 1.6rem);
    margin-bottom: 24px;
    color: #fff;
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.5vw, 16px);
    margin-bottom: 24px;
}

.info-item i {
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    color: #aaa;
    margin-top: 4px;
}

.info-item p {
    margin: 0;
    color: #ccc;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.1vw, 0.98rem);
}

.contact-info .social-links {
    display: flex;
    gap: clamp(10px, 1.5vw, 14px);
    margin-top: 20px;
    flex-wrap: wrap;
}

.contact-info .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 3vw, 42px);
    height: clamp(38px, 3vw, 42px);
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border-radius: 50%;
    font-size: clamp(1.1rem, 1.3vw, 1.2rem);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-section {
    background: #111;
    padding: clamp(50px, 6vw, 80px) 0;
}

.map-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: clamp(300px, 40vw, 460px);
    border: none;
}

/* ===== FAQ PAGE ===== */
.faq-section {
    background: #0a0a0a;
    padding: var(--space-xxl) 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 1.5vw, 16px);
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(18, 18, 18, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: clamp(18px, 2vw, 20px) clamp(20px, 2.5vw, 24px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.toggle-icon {
    font-size: clamp(1rem, 1.1vw, 1.1rem);
    color: #aaa;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
    color: #e50914;
}

.faq-answer {
    padding: 0 clamp(20px, 2.5vw, 24px);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active .faq-answer {
    padding: clamp(18px, 2vw, 20px) clamp(20px, 2.5vw, 24px);
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    color: #ddd;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    line-height: 1.7;
}

/* ===== BLOG PAGES ===== */
.blog-list-section {
    background: #0a0a0a;
    padding: var(--space-xxl) 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(24px, 2.5vw, 32px);
    margin-top: 40px;
}

.blog-card {
    background: linear-gradient(145deg, rgba(26,26,26,0.9), rgba(18,18,18,0.95));
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.blog-card img {
    width: 100%;
    height: clamp(180px, 20vw, 200px);
    object-fit: cover;
}

.blog-info {
    padding: clamp(18px, 2vw, 20px);
}

.category {
    display: inline-block;
    background: rgba(229,9,20,0.15);
    color: #e50914;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: clamp(0.75rem, 0.9vw, 0.8rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-info h3 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 1.5vw, 1.4rem);
}

.blog-info h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.meta {
    color: #aaa;
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    margin-bottom: 10px;
}

.excerpt {
    color: #ccc;
    font-size: clamp(0.9rem, 1.1vw, 0.95rem);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-single-section {
    background: #0a0a0a;
    padding: clamp(50px, 6vw, 80px) 0;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 32px;
}

.post-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin: 16px 0;
    color: #fff;
}

.post-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
}

.post-content {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.9;
    color: #ddd;
}

/* ===== TIMELINE STYLES ===== */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 clamp(15px, 2vw, 20px);
}

.timeline-event {
    position: relative;
    margin-bottom: clamp(40px, 5vw, 80px);
    display: flex;
    width: 100%;
}

.timeline-content {
    width: 100%;
    background: linear-gradient(145deg, rgba(26,26,26,0.9), rgba(18,18,18,0.95));
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: 20px;
    padding: clamp(20px, 2.5vw, 24px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    gap: clamp(20px, 2.5vw, 30px);
    align-items: flex-start;
}

.event-image {
    width: clamp(200px, 25vw, 300px);
    height: clamp(150px, 18vw, 200px);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-details {
    flex: 1;
}

.event-date {
    color: #e50914;
    font-weight: 600;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-title {
    color: #fff;
    font-size: clamp(1.2rem, 1.5vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-content {
    color: #ddd;
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
}

.article-description {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: #ccc;
    line-height: 1.6;
    margin-top: 16px;
    text-align: center;
    font-style: italic;
}

/* ===== VIDEO PAGE STYLES ===== */
#video-page {
    background: #0a0a0a;
    min-height: 100vh;
}

#video-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}

#video-meta {
    color: #aaa;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

#video-desc {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 40px;
    padding: clamp(20px, 2.5vw, 24px);
    background: rgba(26, 26, 26, 0.6);
    border-radius: 12px;
    border-left: 4px solid #e50914;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background: #e50914;
    color: white;
    padding: clamp(12px, 1.5vw, 14px) clamp(24px, 3vw, 32px);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    min-height: 44px;
    min-width: 44px;
}

.btn-secondary {
    display: inline-block;
    background: rgba(229,9,20,0.15);
    color: #e50914;
    border: 1px solid rgba(229,9,20,0.4);
    padding: clamp(10px, 1.5vw, 12px) clamp(20px, 2.5vw, 28px);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 20px);
    opacity: 0;
    transition: opacity .3s;
}

.modal-content {
    background: #111;
    border-radius: 16px;
    max-width: min(960px, 95vw);
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: clamp(2rem, 3vw, 2.4rem);
    color: white;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: clamp(40px, 5vw, 50px);
    height: clamp(40px, 5vw, 50px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background: #111;
    padding: clamp(40px, 6vw, 70px) var(--container-padding) clamp(20px, 3vw, 40px);
    margin-top: 100px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-brand img {
    height: 80px;
    width: auto;
}

.footer-brand p {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links a {
    color: #aaa !important;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e50914 !important;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-social h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    color: #aaa;
    border-radius: 50%;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #e50914;
    color: white;
    transform: translateY(-3px);
}

.footer-apps {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-apps h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 160px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.app-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-text .small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
}

.app-text .large {
    font-size: 0.9rem;
    font-weight: 600;
}

.ios-btn {
    background: #000 !important;
    color: white !important;
}

.android-btn {
    background: linear-gradient(135deg, #3ddc84, #0f9d58) !important;
    color: white !important;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
}

.cta-section {
    background: #0a0a0a;
    padding: var(--space-xxl) 0;
    text-align: center;
    border-top: 1px solid #222;
}

.cta-section .section-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 16px;
}

.cta-section .section-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ===== INFO PAGE STYLES ===== */
.info-page-content {
    background: #0a0a0a;
    padding: clamp(50px, 6vw, 80px) 0;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
    margin-bottom: clamp(60px, 8vw, 100px);
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-image img {
    width: 100%;
    height: clamp(250px, 30vw, 400px);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.info-content h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.2;
}

.info-text {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: #ddd;
}

/* ===== SECTION HEADERS WITH VIEW MORE ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    color: #fff;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(8px, 1.2vw, 10px) clamp(16px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    min-height: 44px;
    min-width: 44px;
}

/* ===== CAROUSEL CONTAINER ===== */
.carousel-container {
    position: relative;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(40px, 5vw, 48px);
    height: clamp(40px, 5vw, 48px);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-nav.prev {
    left: clamp(10px, 2vw, 20px);
}

.carousel-nav.next {
    right: clamp(10px, 2vw, 20px);
}

/* ===== SEARCH PAGE STYLES ===== */
.search-summary p {
    color: #ccc;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 10px);
    margin-top: 15px;
}

.suggestion-tags a.tag {
    display: inline-block;
    padding: clamp(6px, 1vw, 8px) clamp(12px, 1.5vw, 16px);
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 20px;
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    font-weight: 500;
    transition: all 0.3s ease;
}

/* ===== LEGAL PAGES STYLES ===== */
.legal-content {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 20px;
    padding: clamp(25px, 3vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: clamp(40px, 5vw, 60px);
}

.legal-section h2 {
    color: #e50914;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid #e50914;
    padding-left: 15px;
}

.legal-text p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: clamp(1rem, 1.1vw, 1.05rem);
}

/* ===== GLOBAL LINK OVERRIDE ===== */
a {
    color: #e50914 !important;
    text-decoration: none !important;
}

.nav-links a,
.footer-links a,
.blog-info h3 a,
.video-card h3 {
    color: inherit !important;
}

a:hover {
    color: #ff3d3d !important;
}

/* ===== UTILITY CLASSES ===== */
.hide-on-mobile {
    display: block;
}

.show-on-mobile {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
    
    .hero h1, .about-hero h1, .team-hero h1 {
        font-size: 3.5rem;
    }
    
    .video-card {
        width: min(280px, 45vw);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .footer-brand {
        grid-column: 1;
        grid-row: 1;
    }
    
    .footer-links {
        grid-column: 2;
        grid-row: 1;
    }
    
    .footer-social {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-apps {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Mobile (up to 768px) - CRITICAL FIXES */
@media (max-width: 768px) {
    /* Container adjustments */
    :root {
        --container-padding: var(--mobile-padding);
    }
    
    /* Navbar mobile menu - FIXED */
    .menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
    }
    
    .logo {
        order: 1;
    }
    
    /* Hide desktop elements on mobile */
    .nav-links,
    .user-actions {
        display: none !important;
    }
    
    /* Original mobile nav-links that works with your JS */
    .nav-links.mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(280px, 85vw);
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        padding: calc(80px + var(--safe-area-top)) 30px 40px;
        transition: left .4s;
        z-index: 999;
        border-right: 1px solid #222;
        padding-bottom: calc(40px + var(--safe-area-bottom));
        display: flex !important;
    }
    
    .nav-links.mobile-menu.active {
        left: 0;
    }
    
    .nav-links.mobile-menu a {
        font-size: 1.1rem;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #222;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #e0e0e0 !important;
    }
    
    .nav-links.mobile-menu a i {
        width: 20px;
        text-align: center;
    }
    
    /* Mobile user actions in menu */
    .mobile-user-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #222;
    }
    
    .mobile-user-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 12px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        color: #e0e0e0 !important;
    }
    
    .mobile-user-actions .buy-btn {
        background: rgba(229, 9, 20, 0.2);
        color: #e50914 !important;
        border: none;
    }
    
    .mobile-user-actions .login-btn {
        background: rgba(255, 255, 255, 0.08);
        color: #e0e0e0 !important;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* Search bar mobile */
    .search-bar {
        position: static;
        margin: 0;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }
    
    .search-bar form {
        width: 100%;
    }
    
    .search-bar input[type="text"] {
        width: 100%;
        padding: 12px 45px 12px 20px;
        border-radius: 28px;
        font-size: 1rem;
    }
    
    .search-bar button {
        right: 12px;
        padding: 10px;
        font-size: 1.1rem;
        width: 36px;
        height: 36px;
    }
    
    /* Hero adjustments */
    .hero {
        height: clamp(400px, 70vh, 600px);
        margin-top: calc(60px + var(--safe-area-top));
    }
    
    .hero-content {
        bottom: 30px;
    }
    
    .hero h1, .about-hero h1, .team-hero h1 {
        font-size: 2.5rem;
        -webkit-line-clamp: 3;
    }
    
    .hero .desc {
        -webkit-line-clamp: 3;
        font-size: 1.1rem;
    }
    
    /* Video cards on mobile */
    .video-card {
        width: min(260px, 85vw);
    }
    
    /* Footer mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand,
    .footer-links,
    .footer-social,
    .footer-apps {
        grid-column: 1;
        align-items: center;
    }
    
    .footer-brand {
        grid-row: 1;
    }
    
    .footer-links {
        grid-row: 2;
    }
    
    .footer-social {
        grid-row: 3;
    }
    
    .footer-apps {
        grid-row: 4;
    }
    
    .app-buttons {
        align-items: center;
    }
    
    .app-btn {
        max-width: 220px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer {
        margin-top: 60px;
        padding-bottom: calc(20px + var(--safe-area-bottom));
    }
    
    /* Section headers stack on mobile */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .view-more-btn {
        align-self: flex-start;
    }
    
    /* Hide carousel arrows on mobile */
    .carousel-nav {
        display: none;
    }
    
    /* Homepage mobile fix */
    #category-sections-container .carousel-section .carousel-container .video-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 16px !important;
        padding: 0 var(--mobile-padding) !important;
        margin: 0 calc(-1 * var(--mobile-padding)) !important;
        width: calc(100% + 2 * var(--mobile-padding)) !important;
        padding-left: calc(var(--mobile-padding) + 8px) !important;
        padding-right: calc(var(--mobile-padding) + 8px) !important;
    }
    
    #category-sections-container .carousel-section .carousel-container .video-row .video-card {
        width: 90vw !important;
        min-width: 90vw !important;
        flex: 0 0 auto !important;
        scroll-snap-align: center !important;
        margin: 0 !important;
    }
    
    #category-sections-container .carousel-section .carousel-container .video-row .video-card .thumb-wrapper {
        height: 200px !important;
        aspect-ratio: 16/9 !important;
    }
    
    #category-sections-container .carousel-section .carousel-container .video-row::-webkit-scrollbar {
        display: none !important;
    }
    
    #category-sections-container .carousel-section .carousel-container .video-row {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    
    /* Hide search results description on mobile */
    #search-results .video-card .desc,
    .search-results-grid .video-card .desc {
        display: none;
    }
    
    /* Utility classes for mobile */
    .hide-on-mobile {
        display: none !important;
    }
    
    .show-on-mobile {
        display: block !important;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    /* Typography */
    .hero h1, .about-hero h1, .team-hero h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Video cards smaller */
    .video-card {
        width: min(220px, 80vw);
    }
    
    .thumb-wrapper {
        aspect-ratio: 16/9;
    }
    
    /* Search Bar small mobile */
    .search-bar input[type="text"] {
        padding: 14px 48px 14px 20px;
        font-size: 1.05rem;
    }
    
    .search-bar button {
        right: 15px;
        padding: 11px;
        font-size: 1.2rem;
        width: 38px;
        height: 38px;
    }
    
    /* Homepage cards smaller */
    #category-sections-container .carousel-section .carousel-container .video-row .video-card {
        width: 92vw !important;
        min-width: 92vw !important;
    }
    
    #category-sections-container .carousel-section .carousel-container .video-row .video-card .thumb-wrapper {
        height: 180px !important;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 40px 20px 20px;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .app-btn {
        max-width: 260px;
        width: 100%;
    }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .video-card {
        width: min(200px, 85vw);
    }
    
    .hero h1, .about-hero h1, .team-hero h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: clamp(350px, 90vh, 500px);
    }
    
    .nav-links.mobile-menu {
        padding-top: 70px;
        height: 100vh;
        overflow-y: auto;
    }
    
    .video-row {
        padding-bottom: 15px;
    }
}

/* High-DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .hero-bg-image,
    .thumb-wrapper img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .menu-toggle,
    .search-bar,
    .play-btn,
    .hero-play-overlay,
    .video-row,
    .carousel-nav {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .hero, .page-header {
        height: auto !important;
        min-height: auto !important;
        margin-top: 0 !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .video-card:hover {
        transform: none;
    }
    
    .carousel-container:hover .carousel-nav {
        opacity: 1;
    }
    
    .hero:hover .hero-play-overlay {
        opacity: 0;
    }
}

/* Accessibility focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== FINAL RESPONSIVE TWEAKS ===== */
/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    .container, .nav-container, .footer-container {
        width: 100%;
        max-width: 100%;
    }
}

/* Ensure images don't overflow */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Smooth scrolling for iOS */
.video-row {
    -webkit-overflow-scrolling: touch;
}







/* ===== CRITICAL NAVBAR FIXES - RESTORE ORIGINAL ===== */

/* REMOVE conflicting styles that break mobile menu */
.mobile-menu,
.menu-backdrop,
.mobile-nav-links {
    display: none !important;
}

/* Ensure original nav-links work */
.nav-links {
    display: flex !important;
    gap: clamp(16px, 2vw, 28px) !important;
    transition: all 0.3s ease !important;
    /* flex-wrap: wrap !important; */
}

/* Restore original mobile menu behavior */
@media (max-width: 768px) {
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: min(280px, 85vw) !important;
        height: 100vh !important;
        background: #0a0a0a !important;
        flex-direction: column !important;
        padding: calc(80px + var(--safe-area-top)) 30px 40px !important;
        transition: left .4s !important;
        z-index: 999 !important;
        border-right: 1px solid #222 !important;
        padding-bottom: calc(40px + var(--safe-area-bottom)) !important;
    }
    
    .nav-links.active {
        left: 0 !important;
    }
    
    .nav-links a {
        font-size: 1.1rem !important;
        padding: 15px 0 !important;
        width: 100% !important;
        border-bottom: 1px solid #222 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    .nav-links a i {
        width: 20px !important;
        text-align: center !important;
    }
}

/* ===== ADD USER ACTIONS ===== */
.user-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: 10px !important;
}

.user-actions a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    height: 36px !important;
}

.buy-btn {
    background: rgba(229, 9, 20, 0.15) !important;
    color: #e50914 !important;
    border: 1px solid rgba(229, 9, 20, 0.3) !important;
}

.buy-btn:hover {
    background: rgba(229, 9, 20, 0.25) !important;
    border-color: rgba(229, 9, 20, 0.5) !important;
    transform: translateY(-1px) !important;
}

.login-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* Hide user actions on mobile (they'll be in menu) */
@media (max-width: 768px) {
    .user-actions {
        display: none !important;
    }
}

/* ===== ADD MOBILE USER ACTIONS TO MENU ===== */
.mobile-user-actions {
    display: none !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #222 !important;
}

@media (max-width: 768px) {
    .mobile-user-actions {
        display: flex !important;
    }
}

.mobile-user-actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    color: #e0e0e0 !important;
}

.mobile-user-actions .buy-btn {
    background: rgba(229, 9, 20, 0.2) !important;
    color: #e50914 !important;
    border: none !important;
}

.mobile-user-actions .login-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e0e0e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* ===== FOOTER APP BUTTONS ===== */
.footer-apps {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer-apps h4 {
    color: #fff !important;
    font-size: 1rem !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.app-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.app-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 160px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.app-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.app-btn i {
    font-size: 1.2rem !important;
    width: 24px !important;
    text-align: center !important;
}

.app-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
}

.app-text .small {
    font-size: 0.7rem !important;
    font-weight: 400 !important;
    opacity: 0.9 !important;
}

.app-text .large {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.ios-btn {
    background: #000 !important;
    color: white !important;
}

.android-btn {
    background: linear-gradient(135deg, #3ddc84, #0f9d58) !important;
    color: white !important;
}

/* ===== FOOTER LAYOUT FIXES ===== */
.footer-container {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    align-items: start !important;
}

.footer-bottom {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding-top: 30px !important;
    margin-top: 30px !important;
    border-top: 1px solid #333 !important;
    color: #666 !important;
    font-size: 0.85rem !important;
}

/* Tablet footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 30px !important;
    }
    
    .footer-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    .footer-links {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
    
    .footer-social {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
    
    .footer-apps {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    
    .footer-brand,
    .footer-links,
    .footer-social,
    .footer-apps {
        grid-column: 1 !important;
        align-items: center !important;
    }
    
    .footer-brand {
        grid-row: 1 !important;
    }
    
    .footer-links {
        grid-row: 2 !important;
    }
    
    .footer-social {
        grid-row: 3 !important;
    }
    
    .footer-apps {
        grid-row: 4 !important;
    }
    
    .app-buttons {
        align-items: center !important;
    }
    
    .app-btn {
        max-width: 220px !important;
    }
}

/* ===== SEARCH BAR POSITION FIX ===== */
@media (max-width: 768px) {
    .search-bar {
        position: static !important;
        margin: 0 !important;
        width: 100% !important;
        order: 3 !important;
        margin-top: 10px !important;
    }
    
    .search-bar form {
        width: 100% !important;
    }
    
    .search-bar input[type="text"] {
        width: 100% !important;
        padding: 12px 45px 12px 20px !important;
        border-radius: 28px !important;
        font-size: 1rem !important;
    }
    
    .nav-container {
        flex-wrap: wrap !important;
        padding: 10px 0 !important;
    }
    
    .logo {
        order: 1 !important;
    }
    
    .menu-toggle {
        order: 2 !important;
        margin-left: auto !important;
    }
}


/* ===== MOBILE NAVBAR LAYOUT FIX ===== */
@media (max-width: 768px) {
    /* Keep logo, menu toggle, and search bar in one row */
    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        padding: 10px 0 !important;
    }
    
    /* Logo on the left */
    .logo {
        order: 1 !important;
        flex: 0 0 auto !important;
        margin-right: auto !important;
    }
    
    /* Menu toggle on the right */
    .menu-toggle {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }
    
    /* Search bar should NOT be on its own row */
    .search-bar {
        order: 3 !important;
        flex: 1 !important;
        min-width: 0 !important;
        margin: 0 0 0 10px !important;
        width: auto !important;
        max-width: 200px !important;
    }
    
    /* Fix search input on mobile */
    .search-bar input[type="text"] {
        width: 100% !important;
        padding: 10px 40px 10px 15px !important;
        font-size: 0.9rem !important;
        height: 40px !important;
    }
    
    /* Fix search button position */
    .search-bar button {
        right: 8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 32px !important;
        padding: 6px !important;
        font-size: 1rem !important;
    }
}

/* ===== SMALL MOBILE ADJUSTMENT ===== */
@media (max-width: 480px) {
    .search-bar {
        max-width: 150px !important;
    }
    
    .search-bar input[type="text"] {
        padding: 8px 36px 8px 12px !important;
        font-size: 0.85rem !important;
        height: 36px !important;
    }
    
    .search-bar button {
        right: 6px !important;
        width: 30px !important;
        height: 30px !important;
        padding: 5px !important;
    }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width: 360px) {
    .search-bar {
        max-width: 130px !important;
    }
    
    .logo-img {
        height: 35px !important;
    }
}




/* ===== MOBILE NAVBAR LAYOUT OPTIMIZED ===== */
@media (max-width: 768px) {
    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 10px 0 !important;
        width: 100% !important;
    }
    
    .logo {
        order: 1 !important;
        flex: 0 0 auto !important;
        min-width: 80px !important;
    }
    
    .search-bar {
        order: 2 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 10px !important;
        width: auto !important;
        max-width: none !important;
    }
    
    .menu-toggle {
        order: 3 !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
    }
    
    .search-bar input[type="text"] {
        width: 100% !important;
        padding: 12px 42px 12px 16px !important;
        font-size: 0.95rem !important;
        height: 42px !important;
        border-radius: 25px !important;
    }
    
    .search-bar button {
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 34px !important;
        height: 34px !important;
        padding: 7px !important;
        font-size: 1.1rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 50% !important;
    }
    
    .search-bar button:hover {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    .logo-img {
        height: 38px !important;
        width: auto !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .search-bar input[type="text"] {
        padding: 13px 44px 13px 18px !important;
        font-size: 1rem !important;
        height: 44px !important;
    }
    
    .search-bar button {
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
    }
    
    .logo-img {
        height: 40px !important;
    }
}

@media (max-width: 360px) {
    .logo {
        min-width: 70px !important;
    }
    
    .logo-img {
        height: 34px !important;
    }
    
    .search-bar {
        margin: 0 8px !important;
    }
    
    .search-bar input[type="text"] {
        padding: 10px 38px 10px 14px !important;
        font-size: 0.9rem !important;
        height: 40px !important;
    }
    
    .search-bar button {
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .nav-container {
        padding: 8px 0 !important;
    }
    
    .search-bar input[type="text"] {
        height: 38px !important;
        padding: 10px 40px 10px 14px !important;
    }
    
    .logo-img {
        height: 35px !important;
    }
}




/* ===== FIX SEARCH BAR ICON POSITION ===== */
@media (max-width: 768px) {
    /* Fix search bar container */
    .search-bar {
        position: relative !important;
        display: block !important;
        overflow: hidden !important;
    }
    
    /* Ensure search form is contained */
    .search-bar form {
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Keep search button INSIDE the search bar */
    .search-bar button {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 34px !important;
        height: 34px !important;
        padding: 7px !important;
        font-size: 1.1rem !important;
        background: transparent !important;
        border: none !important;
        z-index: 2 !important;
        margin: 0 !important;
    }
    
    /* Add more right padding to input so text doesn't overlap icon */
    .search-bar input[type="text"] {
        padding: 12px 42px 12px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure hamburger menu is separate */
    .menu-toggle {
        position: relative !important;
        z-index: 1 !important;
        margin-left: 0 !important;
    }
}

/* ===== TABLET ADJUSTMENT ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .search-bar button {
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
    }
    
    .search-bar input[type="text"] {
        padding: 13px 44px 13px 18px !important;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 360px) {
    .search-bar button {
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .search-bar input[type="text"] {
        padding: 10px 38px 10px 14px !important;
    }
}




/* ===== FIX 1: RELATED VIDEOS MOBILE VIEW ===== */
@media (max-width: 768px) {
    /* Fix related videos grid to be 100% width */
    #related-grid.video-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Make each video card 100% width */
    #related-grid .video-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: none !important;
    }
    
    /* Ensure thumbnails are properly sized */
    #related-grid .video-card .thumb-wrapper {
        width: 100% !important;
        height: 200px !important;
        aspect-ratio: 16/9 !important;
    }
    
    /* Preserve original text styles */
    #related-grid .video-card h3 {
        font-size: 1.1rem !important;
        padding: 14px 14px 8px !important;
    }
    
    #related-grid .video-card .desc {
        display: block !important;
        font-size: 0.9rem !important;
        padding: 0 14px !important;
    }
    
    #related-grid .video-card .meta {
        padding: 8px 14px 14px !important;
        font-size: 0.85rem !important;
    }
}

/* ===== FIX 2: DESKTOP NAVBAR CATEGORIES NO WRAP ===== */
@media (min-width: 769px) {
    /* Nav container adjustments */
    .nav-container {
        flex-wrap: nowrap !important;
        gap: 15px !important;
    }
    
    /* Logo fixed width */
    .logo {
        flex: 0 0 auto !important;
        min-width: 120px !important;
    }
    
    /* Nav links container - no wrap, scroll if needed */
    .nav-links {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        padding-bottom: 5px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        scrollbar-color: #e50914 transparent !important;
    }
    
    /* Hide scrollbar but keep functionality */
    .nav-links::-webkit-scrollbar {
        height: 4px !important;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: transparent !important;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: #e50914 !important;
        border-radius: 2px !important;
    }
    
    /* Category links - tighter spacing */
    .nav-links a {
        flex: 0 0 auto !important;
        font-size: 0.9rem !important;
        padding: 8px 10px !important;
        margin: 0 2px !important;
    }
    
    /* User actions fixed width */
    .user-actions {
        flex: 0 0 auto !important;
        min-width: 140px !important;
        justify-content: flex-end !important;
        margin-left: 5px !important;
    }
    
    /* Search bar fixed width */
    .search-bar {
        flex: 0 0 auto !important;
        min-width: 200px !important;
        max-width: 280px !important;
        margin-left: 10px !important;
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links a {
        font-size: 0.85rem !important;
        padding: 8px 8px !important;
    }
    
    .user-actions {
        min-width: 130px !important;
    }
    
    .search-bar {
        min-width: 180px !important;
    }
}

/* ===== FIX 3: MOBILE BUY/LOGIN BUTTONS INSIDE MENU ===== */
@media (max-width: 768px) {
    /* Ensure mobile user actions are properly placed */
    .mobile-user-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid #222 !important;
        width: 100% !important;
        position: static !important;
        transform: none !important;
    }
    
    /* Make sure buttons are inside the menu */
    .nav-links {
        overflow-y: auto !important;
        padding-bottom: 20px !important;
    }
    
    /* Style the buttons properly */
    .mobile-user-actions a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 14px !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .mobile-user-actions .buy-btn {
        background: rgba(229, 9, 20, 0.2) !important;
        color: #e50914 !important;
        border: 1px solid rgba(229, 9, 20, 0.3) !important;
    }
    
    .mobile-user-actions .login-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #e0e0e0 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Ensure the menu closes properly when clicking buttons */
    .mobile-user-actions a:active {
        transform: scale(0.98) !important;
    }
}

/* ===== FIX FOR NAVBAR CATEGORIES WITH MANY ITEMS ===== */
/* If you have more than 10 categories, consider this alternative approach */
@media (min-width: 1200px) {
    .nav-links {
        gap: 10px !important;
    }
    
    .nav-links a {
        font-size: 0.88rem !important;
        padding: 8px 8px !important;
    }
}

/* ===== ENSURE DESKTOP USER ACTIONS ARE VISIBLE ===== */
@media (min-width: 769px) {
    .user-actions {
        display: flex !important;
    }
}




/* ===== COMPREHENSIVE FIXES FOR ALL ISSUES ===== */

/* FIX 1: RELATED VIDEOS & VIDEOS GRID MOBILE VIEW */
@media (max-width: 768px) {
    /* Target both related videos and main videos grid */
    #related-grid,
    #videos-grid,
    #search-results {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    /* Make all video cards inside both grids 100% width */
    #related-grid .video-card,
    #videos-grid .video-card,
    #search-results .video-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: none !important;
        float: none !important;
    }
    
    /* Fix thumbnails for both grids */
    #related-grid .video-card .thumb-wrapper,
    #videos-grid .video-card .thumb-wrapper,
    #search-results .video-card .thumb-wrapper {
        width: 100% !important;
        height: 200px !important;
        aspect-ratio: 16/9 !important;
    }
    
    /* Ensure consistent text styling */
    #related-grid .video-card h3,
    #videos-grid .video-card h3,
    #search-results .video-card h3 {
        font-size: 1.1rem !important;
        padding: 14px 14px 8px !important;
    }
    
    #related-grid .video-card .desc,
    #videos-grid .video-card .desc,
    #search-results .video-card .desc {
        font-size: 0.9rem !important;
        padding: 0 14px !important;
        display: block !important;
    }
    
    #related-grid .video-card .meta,
    #videos-grid .video-card .meta,
    #search-results .video-card .meta {
        padding: 8px 14px 14px !important;
        font-size: 0.85rem !important;
    }
}

/* FIX 2: DESKTOP NAVBAR CATEGORIES NO WRAP */
@media (min-width: 769px) {
    .nav-container {
        flex-wrap: nowrap !important;
        gap: 15px !important;
    }
    
    .nav-links {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 5px !important;
        scrollbar-width: thin !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Hide scrollbar but keep functionality */
    .nav-links::-webkit-scrollbar {
        height: 3px !important;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: #e50914 !important;
        border-radius: 2px !important;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: transparent !important;
    }
    
    /* Category links - tight spacing */
    .nav-links a {
        flex: 0 0 auto !important;
        padding: 8px 12px !important;
        margin: 0 2px !important;
    }
    
    /* Keep user actions and search bar fixed */
    .user-actions {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        margin-left: 5px !important;
    }
    
    .search-bar {
        flex: 0 0 auto !important;
        min-width: 200px !important;
        margin-left: 10px !important;
    }
}

/* FIX 3: MOBILE BUY/LOGIN BUTTONS INSIDE MENU */
@media (max-width: 768px) {
    /* Ensure mobile user actions are properly inside the menu */
    .nav-links .mobile-user-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid #222 !important;
        width: calc(100% - 60px) !important;
        position: static !important;
        transform: none !important;
    }
    
    /* Style the buttons */
    .mobile-user-actions a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 14px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
    }
    
    .mobile-user-actions .buy-btn {
        background: rgba(229, 9, 20, 0.2) !important;
        color: #e50914 !important;
        border: 1px solid rgba(229, 9, 20, 0.3) !important;
    }
    
    .mobile-user-actions .login-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #e0e0e0 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Make sure the menu scrolls properly */
    .nav-links {
        overflow-y: auto !important;
        padding-bottom: 30px !important;
    }
}

/* ===== TABLET OPTIMIZATION FOR NAVBAR ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links a {
        font-size: 0.85rem !important;
        padding: 8px 8px !important;
    }
    
    .user-actions a {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .search-bar {
        min-width: 180px !important;
    }
}



/* 
category page css
*/
/* Remove complex hierarchy styles, keep only basic: */
.category-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    color: white;
    padding: 120px 5% 50px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.category-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.category-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

#videos-grid {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 5%;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .category-header {
        padding-top: 100px;
        padding-left: 16px;
        padding-right: 16px;
        margin-top: 0;
    }
    
    #videos-grid {
        padding: 0 16px !important;
    }
}




/* top menu scrollable */
/* ===== PRO MOBILE MENU WITH PROPER BUTTONS ===== */
@media (max-width: 768px) {
    /* Fix container width to prevent cutting off */
    .nav-links {
        width: 85vw !important;
        max-width: 320px !important;
        padding: 90px 20px 30px !important;
    }
    
    /* Let menu items expand naturally */
    .nav-links a {
        padding: 14px 20px !important;
        margin: 6px 0 !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        font-size: 1.05rem !important;
        white-space: normal !important; /* Allow text to wrap */
        word-break: break-word !important;
        min-height: 52px !important;
        align-items: center !important;
    }
    
    /* Make sure text isn't cut off */
    .nav-links a span {
        flex: 1 !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    
    /* Icon with proper spacing */
    .nav-links a i {
        width: 22px !important;
        margin-right: 15px !important;
        flex-shrink: 0 !important;
    }
    
    /* Active state */
    .nav-links a.active {
        background: linear-gradient(135deg, rgba(229, 9, 20, 0.15), rgba(229, 9, 20, 0.08)) !important;
        color: #e50914 !important;
        border-left: 4px solid #e50914 !important;
    }
    
    /* Mobile buttons - full width and visible */
    .mobile-user-actions {
        padding: 20px 0 10px !important;
        margin-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }
    
    /* Buy/Login buttons - full width, visible text */
    .mobile-user-actions a {
        width: 100% !important;
        padding: 16px 24px !important;
        margin: 8px 0 !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        justify-content: center !important;
        white-space: nowrap !important; /* Keep button text on one line */
    }
    
    /* Buy button styling */
    .mobile-user-actions .buy-btn {
        background: linear-gradient(135deg, rgba(229, 9, 20, 0.25), rgba(229, 9, 20, 0.15)) !important;
        color: #e50914 !important;
        border: 1px solid rgba(229, 9, 20, 0.3) !important;
    }
    
    /* Login button styling */
    .mobile-user-actions .login-btn {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #e0e0e0 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Subtle hover effect */
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.07) !important;
        transform: translateX(4px) !important;
        transition: all 0.2s ease !important;
    }
}




/* ===== GRACEFUL DESKTOP NAVBAR HORIZONTAL SCROLL ===== */
@media (min-width: 769px) {
    /* Nav container adjustments for scroll */
    .nav-container {
        min-width: 0; /* Allow shrinking */
        gap: 15px; /* Consistent spacing */
    }
    
    /* Navigation links - horizontal scroll container */
    .nav-links {
        flex: 1;
        min-width: 0; /* Critical for flex shrinking */
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 0 2px 6px; /* Bottom padding for scrollbar */
        margin: 0 5px;
        
        /* Hide scrollbar by default */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    /* Hide scrollbar for Chrome/Safari */
    .nav-links::-webkit-scrollbar {
        display: none;
        height: 0;
    }
    
    /* Show subtle scrollbar on hover */
    .nav-links:hover {
        scrollbar-width: thin;
        scrollbar-color: #e50914 transparent;
    }
    
    .nav-links:hover::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    
    .nav-links:hover::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-links:hover::-webkit-scrollbar-thumb {
        background: #e50914;
        border-radius: 2px;
    }
    
    /* Individual category links */
    .nav-links a {
        flex: 0 0 auto; /* Don't grow or shrink */
        padding: 8px 14px;
        font-size: 0.95rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    /* Active state styling */
    .nav-links a.active {
        background: rgba(229, 9, 20, 0.15);
        color: #e50914 !important;
        font-weight: 600;
    }
    
    /* Hover effect */
    .nav-links a:hover:not(.active) {
        background: rgba(255, 255, 255, 0.05);
    }
    
    /* Right side elements - keep their space */
    .user-actions {
        flex-shrink: 0;
        margin-left: 5px;
    }
    
    .search-bar {
        flex-shrink: 0;
        min-width: 200px;
    }
}





/* ===== FACEBOOK COMMENTS PLUGIN DARK THEME STYLES ===== */

/* Comments section container */
.comments-section {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(18, 18, 18, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: clamp(30px, 4vw, 40px);
    margin: clamp(40px, 6vw, 60px) 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient overlay */
.comments-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e50914, #ff3d3d, #e50914);
    opacity: 0.8;
}

/* Comments section title */
.comments-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title i {
    color: #e50914;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.comments-count {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #888;
    font-weight: 400;
    margin-left: 8px;
}

/* Facebook comments wrapper */
.fb-comments-wrapper {
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
}

/* Override Facebook iframe styles for dark theme */
.fb-comments,
.fb-comments iframe,
.fb-comments span,
.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
}

/* Dark theme color scheme */
.fb-comments {
    background: transparent !important;
    color-scheme: dark;
}

/* Loading state */
.comments-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #aaa;
    gap: 16px;
}

.comments-loading i {
    font-size: 2.5rem;
    color: #e50914;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.comments-loading p {
    font-size: 1rem;
    color: #888;
}

/* Empty state message */
.comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.comments-empty i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 16px;
    display: block;
}

.comments-empty p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 8px;
}

.comments-empty small {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .comments-section {
        padding: 20px 16px;
        margin: 30px 0;
        border-radius: 16px;
    }
    
    .comments-title {
        font-size: 1.4rem;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
    
    .fb-comments-wrapper {
        padding: 16px;
    }
    
    /* Ensure Facebook plugin is responsive */
    .fb-comments {
        overflow-x: hidden !important;
    }
    
    .fb-comments iframe {
        min-width: 100% !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .comments-section {
        padding: 16px 12px;
        margin: 20px -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .comments-title {
        font-size: 1.3rem;
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .fb-comments-wrapper {
        padding: 12px;
        border-radius: 8px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .comments-section {
        padding: 32px 24px;
    }
    
    .comments-title {
        font-size: 1.7rem;
    }
}

/* Extra wide screens */
@media (min-width: 1400px) {
    .comments-section {
        padding: 50px;
    }
    
    .fb-comments-wrapper {
        padding: 24px;
    }
}

/* Dark mode enhancements - force dark backgrounds */
@media (prefers-color-scheme: dark) {
    .fb-comments-wrapper {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Loading skeleton animation */
.comments-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.skeleton-item {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-text {
    height: 16px;
    margin: 8px 0;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.long {
    width: 90%;
}

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

/* Accessibility improvements */
.comments-section:focus-within {
    outline: 2px solid #e50914;
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .comments-section {
        display: none !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .comments-loading i,
    .skeleton-item {
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .comments-section {
        border: 2px solid #fff;
    }
    
    .comments-title {
        border-bottom: 2px solid #fff;
    }
}





/* User dropdown styles */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 180px;
  display: none;
  z-index: 1000;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: rgba(229, 9, 20, 0.1);
  color: #fff;
}

.dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.user-logged-in {
  background: rgba(229, 9, 20, 0.1) !important;
  border: 1px solid rgba(229, 9, 20, 0.3) !important;
}

/* Mobile specific */
@media (max-width: 768px) {
  .user-dropdown .dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
  }
  
  .mobile-user-actions .login-btn span {
    font-size: 12px;
  }
}

/* Premium text (when logged in) */
.premium-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.premium-text i {
    font-size: 1rem;
}

/* Mobile premium text */
.mobile-user-actions .premium-text {
    padding: 6px 12px;
    font-size: 0.8rem;
}




/* Fix for navbar buttons on login/register pages */
.login-page .navbar .user-actions,
.register-page .navbar .user-actions {
    display: none;
}

.login-page .navbar .mobile-user-actions,
.register-page .navbar .mobile-user-actions {
    display: none;
}

/* Make navbar login button distinct from form buttons */
.navbar .login-btn {
    background: transparent;
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.navbar .login-btn:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: #e50914;
}

/* Make form login button more prominent */
.login-button {
    background: #e50914 !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 16px !important;
}



/* Simple border for subscribe button */
.navbar .premium-badge {
    border: 1px solid #e50914;
}

/* Also for premium text when logged in */
.navbar .premium-text {
    border: 1px solid #e50914;
}



/* SHIMMER */
/* ===== LOADING ANIMATIONS - Added for enhanced UX ===== */
/* ===== ENHANCED LOADING STATES - Add these to existing viharitv.css ===== */

/* Hero Loading States */
.hero-loading-skeleton {
    animation: pulse 1.5s ease-in-out infinite;
}

.hero-actual-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth fade-in for hero background */
.hero-bg-image {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg-image.loaded {
    opacity: 1;
}

/* Enhanced skeleton shimmer effect */
.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

/* Loading message with spinner */
.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading-message i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #e50914;
}

.loading-message p {
    color: #aaa;
    font-size: 1rem;
}

/* Staggered fade-in for video cards */
.video-card {
    animation: slideUp 0.4s ease-out backwards;
}

.video-row .video-card:nth-child(1) { animation-delay: 0s; }
.video-row .video-card:nth-child(2) { animation-delay: 0.1s; }
.video-row .video-card:nth-child(3) { animation-delay: 0.15s; }
.video-row .video-card:nth-child(4) { animation-delay: 0.2s; }
.video-row .video-card:nth-child(5) { animation-delay: 0.25s; }

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

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

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

/* Smooth transition for section content */
.section {
    animation: fadeIn 0.5s ease-out;
}

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

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Apply spin to loading icons */
.fa-circle-notch,
.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-loading-skeleton,
    .skeleton::after,
    .video-card,
    .section,
    .hero-bg-image,
    .loading-message i {
        animation: none !important;
        transition: none !important;
    }
    
    .hero-actual-content {
        animation: none !important;
    }
}

/* Mobile optimization for loading states */
@media (max-width: 768px) {
    .loading-message {
        padding: 30px 15px;
    }
    
    .loading-message i {
        font-size: 2rem;
    }
    
    /* Reduce animation delays on mobile for faster perceived load */
    .video-row .video-card:nth-child(n) {
        animation-delay: 0s !important;
    }
}




/* ===== PROFESSIONAL COMPACT MOBILE MENU ===== */
@media (max-width: 768px) {
    /* Compact menu container */
    .nav-links {
        width: 85vw !important;
        max-width: 300px !important;
        padding: 80px 16px 20px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Compact menu items with reduced spacing */
    .nav-links a {
        padding: 10px 16px !important;
        margin: 2px 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        font-size: 0.95rem !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: all 0.2s ease !important;
    }
    
    /* Remove bottom border from last item */
    .nav-links a:last-of-type {
        border-bottom: none !important;
    }
    
    /* Compact icon spacing */
    .nav-links a i {
        width: 20px !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
        font-size: 0.9rem !important;
        color: #aaa !important;
    }
    
    /* Active state - more subtle */
    .nav-links a.active {
        background: rgba(229, 9, 20, 0.1) !important;
        color: #e50914 !important;
        border-left: 3px solid #e50914 !important;
        padding-left: 13px !important;
    }
    
    .nav-links a.active i {
        color: #e50914 !important;
    }
    
    /* Hover effect */
    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        padding-left: 18px !important;
    }
    
    /* Compact mobile buttons section */
    .mobile-user-actions {
        padding: 12px 0 8px !important;
        margin-top: 12px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }
    
    /* Compact action buttons */
    .mobile-user-actions a,
    .mobile-user-actions .premium-text {
        width: 100% !important;
        padding: 11px 16px !important;
        margin: 4px 0 !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        justify-content: center !important;
        white-space: nowrap !important;
        min-height: 40px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    /* Subscribe/Premium badge styling */
    .mobile-user-actions .premium-badge {
        background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.1)) !important;
        color: #e50914 !important;
        border: 1px solid rgba(229, 9, 20, 0.3) !important;
    }
    
    .mobile-user-actions .premium-text {
        background: linear-gradient(90deg, #ffd700, #ffed4e) !important;
        color: #000 !important;
        border: none !important;
    }
    
    /* Login button styling */
    .mobile-user-actions .login-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #e0e0e0 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    /* Reduce icon size in buttons */
    .mobile-user-actions a i,
    .mobile-user-actions .premium-text i {
        font-size: 0.9rem !important;
    }
    
    /* Active/pressed state for touch feedback */
    .nav-links a:active,
    .mobile-user-actions a:active {
        transform: scale(0.98) !important;
        opacity: 0.8 !important;
    }
}