/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #141414;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e50914;
    cursor: pointer;
    transition: transform 0.3s ease;
    letter-spacing: -0.5px;
}

.logo h1:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e50914;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e50914;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.search-input {
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.5rem;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #e50914;
}

/* Profile Container */
.profile-container {
    position: relative;
    margin-left: 1rem;
}

.profile-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

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

.dropdown-item svg {
    opacity: 0.7;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Mobile Search Icon */
.mobile-search-icon {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.mobile-search-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-search-icon svg {
    width: 20px;
    height: 20px;
}

/* Mobile Search Dropdown */
.mobile-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.mobile-search-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 1rem;
    padding: 0.8rem 1rem;
}

.mobile-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-search-btn {
    background: rgba(229, 9, 20, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-search-btn:hover {
    background: rgba(229, 9, 20, 1);
    transform: scale(1.05);
}

/* Hero Section - Premium Full-Screen Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #000000 0%, #1a0000 25%, #2d0a0a 50%, #1a0000 75%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(229, 9, 20, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 0, 139, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><style>.particle{fill:rgba(255,255,255,0.03);animation:float 6s ease-in-out infinite}</style></defs><circle class="particle" cx="100" cy="200" r="2"/><circle class="particle" cx="300" cy="100" r="1.5"/><circle class="particle" cx="500" cy="300" r="2.5"/><circle class="particle" cx="700" cy="150" r="1"/><circle class="particle" cx="900" cy="250" r="2"/><circle class="particle" cx="200" cy="400" r="1.5"/><circle class="particle" cx="600" cy="500" r="2"/><circle class="particle" cx="800" cy="450" r="1"/><circle class="particle" cx="150" cy="600" r="2.5"/><circle class="particle" cx="450" cy="700" r="1.5"/><circle class="particle" cx="750" cy="650" r="2"/><circle class="particle" cx="350" cy="800" r="1"/></svg>') repeat;
    animation: particleFloat 20s linear infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    animation: slideInLeft 1s ease-out;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.fire-emoji {
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-weight: 400;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #ff1744 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    border: none;
}

.hero-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #ff1744 0%, #e50914 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6);
}

.hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(229, 9, 20, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Hero Styles */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
        min-height: 90vh;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-features {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-box {
        max-width: 100%;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .feature-box {
        min-width: 260px;
        padding: 1.2rem;
    }
    
    .feature-box .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: left;
    color: #ffffff;
    padding-left: 20px;
}

.featured, .movies-grid, .tv-series {
    padding: 80px 0;
    position: relative;
}

.featured {
    background: #141414;
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #222222;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.featured-card.large {
    grid-row: span 2;
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image img.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.featured-card.large .card-image {
    height: 100%;
    min-height: 400px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e50914, #831010);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.card-image:hover .card-overlay {
    opacity: 1;
}

.play-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Movies Grid */
/* Videos Grid - Responsive Layout */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 2rem;
    padding: 2rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #222222;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.6s ease-out;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.movie-card .card-image {
    height: 200px;
}

.movie-card .play-btn {
    width: 50px;
    height: 50px;
}

.rating {
    color: #e50914;
    font-weight: 600;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Netflix-style badges */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e50914;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 5;
}

.card-likes-display {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.likes-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.likes-count {
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.card-dislikes-display {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.dislikes-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.dislikes-count {
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


/* Netflix-style progress bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #e50914;
    border-radius: 0 0 8px 8px;
    transition: width 0.3s ease;
}

/* Pagination Controls */
.pagination-section {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
}

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

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

#page-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

#videos-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Search Results - No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 3rem;
}

.no-results-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
}

.no-results-content svg {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.no-results-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.no-results-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}


/* Enhanced card content */
.card-content {
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

/* Netflix-style hover overlay */
.movie-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.featured-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.8);
}

/* Footer */
.footer {
    background: #000000;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e50914;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e50914;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop search, show mobile search icon */
    .search-container {
        display: none;
    }
    
    .mobile-search-icon {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .search-container {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-video-placeholder {
        height: 250px;
    }

    .play-button {
        width: 80px;
        height: 80px;
    }

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

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card.large {
        grid-row: span 1;
    }

    .featured-card.large .card-image {
        height: 300px;
        min-height: auto;
    }

    /* Tablet: 2 columns for videos grid */
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .profile-container {
        margin-left: 0.5rem;
    }

    .profile-btn {
        width: 40px;
        height: 40px;
    }

    .profile-dropdown {
        right: -10px;
        min-width: 160px;
    }

    .auth-container, .profile-container-modal {
        padding: 2rem;
        max-width: 400px;
    }

    .auth-header h2, .profile-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Mobile: 1 column for videos grid */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Mobile Video Card Fixes */
    .movie-card, .video-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    
    /* 🔹 Thumbnail Fix - Perfect 16:9 aspect ratio */
    .movie-card .card-image, 
    .video-card .card-image,
    .card-image {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        position: relative;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
    }
    
    .card-image img.video-thumbnail,
    .card-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Never stretch or squash */
        z-index: 1;
    }
    
    /* 🔹 Card Content Fix - Equal heights */
    .movie-card .card-content,
    .video-card .card-content,
    .card-content {
        padding: 1rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100px;
        background: rgba(20, 20, 20, 0.95);
        border-radius: 0 0 8px 8px;
    }
    
    /* 🔹 Title Fix - Max 2 lines with ellipsis */
    .card-content h3,
    .movie-card .card-content h3,
    .video-card .card-content h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        /* Text ellipsis for long titles */
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2; /* Standard property for compatibility */
        -webkit-box-orient: vertical;
        max-height: 2.6em; /* 2 lines max */
    }
    
    /* Mobile card description */
    .card-content p,
    .movie-card .card-content p,
    .video-card .card-content p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.4;
        margin: 0;
        /* Limit description to 1 line on mobile */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Mobile rating */
    .card-content .rating,
    .movie-card .card-content .rating,
    .video-card .card-content .rating {
        font-size: 0.8rem;
        color: #ffd700;
        margin-top: 0.5rem;
    }
    
    /* Mobile hover effects - reduced for touch */
    .movie-card:hover,
    .video-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    }
    
    /* Mobile overlay adjustments */
    .card-overlay {
        border-radius: 8px 8px 0 0;
    }
    
    /* Mobile play button */
    .play-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile pagination controls */
    .pagination-controls {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .pagination-info {
        order: -1;
    }

    .nav-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Authentication Modal */
.auth-modal, .profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.show, .profile-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.auth-container, .profile-container-modal {
    background: #141414;
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideInUp 0.4s ease-out;
}

.auth-header, .profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-header h2, .profile-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
}

.close-auth-btn, .close-profile-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.close-auth-btn:hover, .close-profile-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    transform: rotate(90deg);
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: #e50914;
    color: #ffffff;
    transform: scale(1.02);
}

.auth-forms {
    position: relative;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: #e50914;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.auth-link {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.auth-link a {
    color: #e50914;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #f40612;
}

.skip-auth {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skip-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Profile Modal */
.profile-content {
    text-align: center;
}

.profile-avatar {
    margin-bottom: 2rem;
    color: #e50914;
}

.profile-info {
    text-align: left;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.info-item span {
    color: #ffffff;
    font-weight: 500;
}

/* Additional Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Notification Styles */
.notification {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f40612;
}

/* Trending Now Section */
.trending-now {
    padding: 80px 0;
    background: #141414;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

/* Video Player Page */
.video-player-page {
    background: #141414;
    min-height: 100vh;
    padding: 80px 0 40px;
}

.video-player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.video-player {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-video {
    width: 100%;
    height: auto;
    min-height: 400px;
    background: #000000;
}

.video-info {
    margin-bottom: 3rem;
}

.video-title {
    font-size: 2.8rem; /* Larger font size */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem; /* Increased spacing */
    line-height: 1.2;
    text-align: center; /* Centered title */
}

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

.video-rating {
    color: #e50914;
    font-weight: 600;
    font-size: 1.1rem;
}

.video-category {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.video-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.video-tags {
    margin: 1.5rem 0;
    text-align: center; /* Centered tags */
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.video-tag {
    display: inline-block;
    background: rgba(40, 40, 40, 0.8); /* Consistent color */
    color: #ffffff;
    padding: 0.5rem 1rem; /* Increased padding */
    margin: 0.25rem;
    border-radius: 20px; /* Pill shape */
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.video-tag:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(229, 9, 20, 1), rgba(229, 9, 20, 0.8));
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.no-tags {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem 0;
}


.video-actions {
    display: flex;
    justify-content: center; /* Centered buttons */
    align-items: center;
    gap: 1rem; /* Reduced gap */
    margin: 2rem 0;
}

.like-btn, .dislike-btn, .share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 30, 30, 0.8); /* Darker background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px; /* Fully rounded */
    padding: 0.8rem 1.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Added shadow */
}

.like-btn:hover, .dislike-btn:hover, .share-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.like-btn:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
}

.dislike-btn:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

.like-btn.liked {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.8), rgba(229, 9, 20, 0.6));
    border-color: rgba(229, 9, 20, 0.5);
    color: #ffffff;
}

.like-btn.liked:hover {
    background: linear-gradient(135deg, rgba(229, 9, 20, 1), rgba(229, 9, 20, 0.8));
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.dislike-btn.disliked {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.8), rgba(255, 165, 0, 0.6));
    border-color: rgba(255, 165, 0, 0.5);
    color: #ffffff;
}

.dislike-btn.disliked:hover {
    background: linear-gradient(135deg, rgba(255, 165, 0, 1), rgba(255, 165, 0, 0.8));
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
}

.like-btn.animate-like {
    animation: likeAnimation 0.3s ease;
}

.like-btn.animate-unlike {
    animation: unlikeAnimation 0.3s ease;
}

.dislike-btn.animate-dislike {
    animation: dislikeAnimation 0.3s ease;
}

.dislike-btn.animate-unlike {
    animation: unlikeAnimation 0.3s ease;
}

.share-btn.animate-share {
    animation: shareAnimation 0.3s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.8)); }
    100% { transform: scale(1); }
}

@keyframes dislikeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.8)); }
    100% { transform: scale(1); }
}

@keyframes unlikeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
    100% { transform: scale(1); }
}

@keyframes shareAnimation {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)); }
    100% { transform: scale(1) rotate(0deg); }
}

.like-icon, .dislike-icon, .share-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.like-btn:hover .like-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.6));
}

.dislike-btn:hover .dislike-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.6));
}

.share-btn:hover .share-icon {
    transform: rotate(15deg);
}

.like-count, .dislike-count, .share-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.video-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7; /* Improved readability */
    max-width: 800px;
    margin: 2rem auto 0; /* Centered with spacing */
    text-align: center;
}

.related-videos {
    margin-top: 3rem;
}

/* Share Popup */
.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.share-popup-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.share-popup-content h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.share-url {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-url input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.copy-btn, .close-popup {
    background: linear-gradient(135deg, #e50914, #f40612);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover, .close-popup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Share Tooltip */
.share-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1001;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.share-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}


.related-videos h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #222222;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.related-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-info {
    padding: 1rem;
}

.related-info h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-info p {
    color: #e50914;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design for Video Player */
@media (max-width: 768px) {
    .video-player-page {
        padding: 100px 0 20px;
    }
    
    .video-title {
        font-size: 2rem;
    }
    
    .video-meta {
        gap: 1rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .related-card img {
        height: 100px;
    }
    
    .back-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .video-tags {
        margin: 1rem 0;
    }
    
    .video-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        margin: 0.2rem 0.3rem 0.2rem 0;
    }
    
    .video-actions {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .like-btn, .dislike-btn, .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-likes-display, .card-dislikes-display {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }
    
    .share-popup-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .share-url {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/* Age Verification Popup */
#age-verification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none; /* Initially hidden, shown via JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.verification-box {
    background: #141414;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease-out;
}

.verification-box h2 {
    color: #e50914;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.verification-box p {
    color: #e5e5e5;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.verify-btn {
    background: #e50914;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 250px;
}

.verify-btn:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.verify-btn:active {
    transform: translateY(0);
}

/* Prevent scrolling when popup is active */
body.verification-active {
    overflow: hidden;
    height: 100vh;
}

/* Ad Container Styles */
.main-wrapper {
    position: relative;
    max-width: 1400px; /* Corresponds to container + sidebar width */
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

main {
    width: 100%;
    max-width: 1200px; /* Main content width */
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.ad-top {
    padding: 1rem 0;
    background: #000;
}

.ad-sidebar {
    display: none; /* Hidden by default */
    width: 160px;
    flex-shrink: 0;
    margin-left: 2rem; /* Spacing between content and ad */
    position: sticky;
    top: 100px; /* Aligns below the header */
    height: 600px; /* Set height for sticky positioning */
}

.ad-video-bottom {
    margin: 2rem 0;
}

/* Desktop Styles */
@media (min-width: 1400px) { /* Activate when there's enough space */
    .ad-sidebar {
        display: block; /* Show on desktop */
    }
}

/* Mobile Styles */
@media (max-width: 1399px) {
    .main-wrapper {
        flex-direction: column;
    }

    .ad-sidebar {
        display: none; /* Ensure it's hidden on smaller screens */
    }
}

/* Native Ad Styles */
.native-ad-video, .native-ad-homepage {
    margin: 2rem auto;
    padding: 1rem;
    max-width: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .native-ad-video, .native-ad-homepage {
        padding: 0;
    }

    .verification-box {
        padding: 25px 20px;
    }

    .verification-box h2 {
        font-size: 24px;
    }

    .verification-box p {
        font-size: 16px;
    }

    .verify-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}