/* ===========================================
   MASALA69 - Main.css
   =========================================== */

/* 1. CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 2. Color Variables (Modern Theme) */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #f87171;
    --primary-extra-light: #fef2f2;
    --white: #ffffff;
    --black: #111827;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
    --bg-modal: rgba(0, 0, 0, 0.85);
    --border-color: #e5e7eb;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
    --container-max-width: 1280px;
    --container-padding: 1rem;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: 2rem; letter-spacing: -0.025em; }
h2 { font-size: 1.8rem; letter-spacing: -0.025em; }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.45rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    color: var(--gray-600);
    font-family: var(--font-body);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* 4. Layout & Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* 5. Header & Navigation - MODERN REDESIGN */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

h1>span {
    color: #dc2626;
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 0.6rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-image {
    height: 40px;
    width: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-text .brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
    font-family: var(--font-heading);
}

.nav-logo-text .tagline {
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

button.search-btn {
    background: transparent;
    border: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-extra-light);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-extra-light);
}

.nav-link.active::before {
    width: 80%;
    background: var(--primary);
}

.nav-link i {
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-search {
    position: relative;
    width: 280px;
}

.search-container {
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    font-family: var(--font-body);
    color: var(--gray-700);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.search-container .fa-search {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.9rem;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    display: none;
}

.search-container input:not(:placeholder-shown) + .search-clear {
    display: block;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.user-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius);
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.5rem;
    transition: all var(--transition-fast);
    align-items: center;
    justify-content: center;
}

.nav-mobile-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.nav-mobile-toggle i {
    font-size: 1.25rem;
}

/* 6. Hero Section - MODERN REDESIGN */
.hero-section {
    position: relative;
    padding: 7rem 0 6rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(220, 38, 38, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(220, 38, 38, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--black);
    line-height: 1.1;
    font-weight: 700;
}

.hero-title span {
    position: relative;
    color: var(--primary);
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(220, 38, 38, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--gray-600);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    font-family: var(--font-body);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.hero-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.hero-feature i {
    color: var(--primary);
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    background: var(--primary-extra-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.feature-description {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 7. Button Styles - Modern Update */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 0.7rem;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
}

/* 8. Video Cards & Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.trending-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 7/9;
    overflow: hidden;
    background: var(--gray-100);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.trending-card .video-thumbnail img {
    transition: transform var(--transition-slow);
}

.trending-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(193 193 193 / 80%), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.75rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.video-card:hover .video-overlay,
.trending-card:hover .video-overlay {
    opacity: 1;
}

.overlay-video-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-size: 0.75rem;
    opacity: 0.9;
}

.video-duration,
.video-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.video-new-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--success);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-trending-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info-extended {
    padding: 1rem;
}

.trending-card .video-info-extended {
    padding: 0.7rem;
}

.video-title {
    text-transform: capitalize;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--gray-800);
}

.trending-card .video-title {
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    -webkit-line-clamp: 3;
}

.video-meta-extended {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.trending-card .video-meta-extended {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    justify-content: space-between;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.videos-t-c-g {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.video-tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.video-tag:hover {
    background: var(--primary-light);
    color: var(--white);
}

.video-tag.category {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.video-tag.genre {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* 9. Section Styles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--primary-extra-light);
}

.view-all:hover {
    background: var(--primary);
    color: white;
    gap: 0.75rem;
    transform: translateX(4px);
}

.refresh-btn {
    background: var(--gray-100);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all var(--transition-fast);
}

.refresh-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.refresh-btn.loading .fa-sync-alt {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 10. Carousel */
.trending-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    padding-bottom: 1rem;
}

.trending-carousel::-webkit-scrollbar {
    height: 6px;
}

.trending-carousel::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.trending-carousel::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

/* 11. Filter System */
.filter-sidebar {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.filter-option:hover {
    background: var(--gray-100);
}

.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.filter-option label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.filter-count {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.75rem;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.filter-apply-btn,
.filter-reset-btn {
    flex: 1;
}

/* 12. Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0 1rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--gray-800);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-card);
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination-page:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-page.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

/* 13. Player Styles */
.player-container {
    background: var(--black);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: var(--shadow-xl);
}

.video-wrapper {
    position: relative;
    padding-bottom: 60%;
    height: 0;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.parts-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-900);
    border-top: 1px solid var(--gray-800);
}

.part-tab {
    background: var(--gray-800);
    border: none;
    color: var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.part-tab:hover {
    background: var(--gray-700);
}

.part-tab.active {
    background: var(--primary);
    color: var(--white);
}

/* 14. Gallery */
.gallery-section {
    margin: 2rem 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-slide {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.gallery-slide:hover {
    transform: scale(1.05);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 15. Footer */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-logo h2 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-compliance {
    margin-top: 1rem;
}

.compliance-badges {
    display: flex;
    gap: 0.5rem;
}

.compliance-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.compliance-badge.age-restricted {
    background: var(--primary);
    color: var(--white);
}

.compliance-badge.ssl-secure {
    background: var(--success);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.age-warning {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.age-warning i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.warning-content p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.warning-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.5rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* 16. Age Verification Modal */
.age-verification-modal {
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.verification-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.verification-logo h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.verification-text h2 {
    color: var(--black);
    margin-bottom: 1rem;
}

.verification-text p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.verification-buttons {
    margin-bottom: 2rem;
}

.verification-warning {
    background: var(--primary-extra-light);
    border-radius: var(--border-radius);
    padding: 1rem;
    border-left: 4px solid var(--primary);
}

.verification-warning p {
    margin-bottom: 0;
    color: var(--gray-700);
}

/* 17. Search & Filter Section */
.search-filter-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.search-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
}

.search-actions {
    display: flex;
    gap: 0.75rem;
}

/* 18. Stats & Info Cards */
.genres-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.stat-item i {
    color: var(--primary);
}

.popular-genres-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.popular-genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.popular-genre-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius);
    padding: 1rem;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popular-genre-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.popular-genre-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popular-genre-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.popular-genre-count {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* 19. No Content State */
.no-content {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--border-color);
}

.no-content i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.no-content h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.no-content p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.no-content-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 20. Age Verification Styles */
.age-verification-blocked {
    overflow: hidden !important;
    height: 100vh !important;
}

.temp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.temp-notification.show {
    transform: translateX(0);
}

.temp-notification.error {
    background: #ef4444;
}

.temp-notification.warning {
    background: #f59e0b;
}

.temp-notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 21. Contact Form Styles */
.form-group {
    transition: all 0.3s ease;
}

.form-feedback {
    transition: all 0.3s ease;
}

.btn-loading {
    transition: all 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    animation: shake 0.5s ease;
}

/* 22. FAQ Styles */
.search-highlight {
    background: linear-gradient(120deg, #8be9fd, #50fa7b);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    font-weight: 600;
    color: #fff;
    padding: 0.1em 0;
}

.faq-item.animating .faq-answer {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

/* 23. Global Notifications */
.global-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.global-notification.show {
    transform: translateX(0);
}

.global-notification.error {
    background: #ef4444;
}

.global-notification.warning {
    background: #f59e0b;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

/* 24. Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

.search-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
}

.search-suggestion:hover {
    background: var(--primary-extra-light);
    color: var(--primary);
}

.search-suggestion:last-child {
    border-bottom: none;
}

/* 25. Newsletter Modal */
.newsletter-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.newsletter-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.newsletter-close:hover {
    color: var(--gray-700);
}

.newsletter-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.newsletter-options {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* 26. Form Message Styles */
.form-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-message-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.form-message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.field-error {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* 27. Video Error Styles */
.video-error {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    text-align: center;
    gap: 1rem;
}

.video-error i {
    font-size: 3rem;
    color: var(--warning);
}

.retry-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.retry-btn:hover {
    background: var(--primary-dark);
}

/* 28. Gallery Modal */
#galleryModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background var(--transition-fast);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

.modal-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

/* 29. Gallery Controls */
.gallery-track {
    display: flex;
    transition: transform 0.3s ease;
}

.gallery-slide {
    flex: 0 0 auto;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast);
}

.gallery-dot.active {
    background: var(--primary);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--transition-fast);
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

/* 30. Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-xl { border-radius: var(--border-radius-xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.bg-white { background: var(--white); }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.bg-gray-200 { background: var(--gray-200); }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* 31. Responsive Design - UPDATED FOR MOBILE */
@media (max-width: 1060px) {
    html {
        font-size: 15px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .trending-carousel {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .trending-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .nav-search {
        width: 250px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Mobile Navigation */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: var(--z-dropdown);
        border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: var(--border-radius);
        justify-content: flex-start;
        width: 100%;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-search {
        order: -1;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .user-actions {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 4rem 0 3rem;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-features {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-feature {
        padding: 0.875rem 1.25rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 170px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    /* Show 2 video cards on tablet */
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .trending-carousel {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .section-header {
        align-items: flex-start;
    }
    
    .pagination {
        gap: 1rem;
    }
    
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--z-modal);
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .filter-sidebar.active {
        transform: translateX(0);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Show video duration and views always on mobile */
    .video-overlay {
        opacity: 1 !important;
    }
    
    .overlay-video-content {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.5;
        width: 170px;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        max-width: 110px;
    }

    .btn-large {
        padding: 0.6rem;
        font-size: 0.6rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Show 2 video cards on mobile */
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .trending-carousel {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .video-card,
    .trending-card {
        max-width: 100%;
    }
    
    .video-info-extended {
        padding: 0.75rem;
    }
    
    .video-title {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
        -webkit-line-clamp: 3;
    }
    
    .video-meta-extended {
        display: flex !important;
        justify-content: space-between;
        font-size: 0.6rem;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .meta-item {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .search-actions {
        width: 100%;
    }
    
    .search-actions .btn {
        flex: 1;
    }
    
    .popular-genres-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Ensure video stats are always visible on mobile */
    .trending-card .video-info-extended {
        padding: 0.5rem;
    }
    
    .trending-card .video-title {
        font-size: 0.8rem;
    }
    
    .trending-card .video-meta-extended {
        font-size: 0.7rem;
        gap: 0.5rem;
    }
    
    /* Mobile Navigation Adjustments */
    .nav-logo-text .brand-name {
        font-size: 1.25rem;
    }
    
    .nav-logo-text .tagline {
        font-size: 0.6rem;
    }
    
    .nav-logo-image {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /*pagination*/
    .pagination{
        font-size: 0.7rem;
    }
    
    .pagination-page{
        width: 25px;
        height: 25px;
    }
    
}

/* 32. Print Styles */
@media print {
    .main-nav,
    .footer,
    .age-verification-modal,
    .hero-section,
    .refresh-btn,
    .search-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* 33. Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-2:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 34. Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 35. Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 36. Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 37. Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* 38. SEO Optimization */
.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.structured-data {
    display: none;
}

/* 39. Hover Effects */
.hover-lift {
    transition: transform var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-glow {
    transition: box-shadow var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

/* 40. Grid System */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* 41. Video Stats Mobile Optimization */
.video-stats-mobile {
    display: none;
}

@media (max-width: 768px) {
    .video-stats-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0.75rem;
        background: var(--gray-50);
        border-top: 1px solid var(--border-color);
        font-size: 0.75rem;
        color: var(--gray-600);
    }
    
    .video-stats-mobile .meta-item {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    .video-trending-badge, .video-new-badge, .video-tag{
        font-size: 0.55rem;
    }
    
    .section-title {
    font-size: 1.5rem;
    }
    
    .btn-outline{
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
    
    /* Ensure video overlay stats are visible on mobile */
    .video-overlay {
        display: flex;
        opacity: 1;
    }
    
    .overlay-video-content {
        font-size: 0.55rem;
        opacity: 1;
    }
}

/* 42. Modern Enhancements */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-soft {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* 43. Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform-origin: 0%;
    z-index: var(--z-fixed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-progress.show {
    opacity: 1;
}

/* 44. for ads */
.ads-center, .ads{
    display: flex;
    align-items: center;
    justify-content: center;
} 

.ads-center {
    width: 100%;
    height: 150px;
    margin: 2rem 0;
    padding: 1rem;
}

.ads {
    background: var(--gray-300);
    width: 100%;
    height: 100%;
    border-radius: 5px;
}


/* ===========================================
   END OF STYLES
   =========================================== */