/*
Theme Name: TMDB Movies & Series - Ultimate Glassy Edition
Theme URI: https://example.com
Author: Hezu
Author URI: https://example.com
Description: Premium glassmorphism theme with mobile-first design
Version: 3.1.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tmdb-theme
*/

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	scroll-behavior: auto !important;
}
html {
    scroll-behavior: smooth;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 50%, #0f0f0f 100%);
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
	 -webkit-overflow-scrolling: touch;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 21, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 153, 16, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 21, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(251, 153, 16, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Global link styles */
a {
    color: white;          /* link color */
    text-decoration: none;   /* remove underline */
    font-weight: 500;        /* semi-bold */
    transition: all 0.2s ease;
}

a:hover,
a:focus {
    color: white;          /* hover color */
   
}


.site-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Header Styles - Premium Glass */
.site-header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
	border-radius: 10px;
}

.site-title {
    font-size: 20px;
    font-weight: 900;

  
    text-decoration: none;
    letter-spacing: -0.5px;
    
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 12px;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-navigation a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Content Area */
.site-content {
    padding: 12px 10px;
}

/* Movie/Series Card - Ultimate Glass with 2:3 Aspect Ratio */
.media-card {
    width: 100%;
    flex-shrink: 0;
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
   
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-card:hover {
   
    box-shadow: 
        0 20px 50px rgba(31, 38, 135, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.media-card .card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.media-card:hover .card-poster {
    filter: brightness(0.8);
}

.media-card .card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-card .card-rating {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #342927;
   
    color: #ffd700;
    padding: 2px 8px;
    
    font-weight: 800;
    font-size: 11px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.media-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000a1;
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.media-card .card-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.media-card .card-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
	
}

/* Carousel Section - Glass */
.carousel-section {
    margin-bottom: 25px;
}

.carousel-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
    
    padding-left: 5px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-wrapper {
    position: relative;
}

.carousel-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.carousel-container .media-card {
    width: 180px;
    flex-shrink: 0;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 3px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 3px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Hero Banner - Premium Glass */
.hero-banner {
    position: relative;
    height: 400px;
    margin-bottom: 25px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 20px 60px rgba(31, 38, 135, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 25px;
    padding: 25px;
    height: 100%;
    align-items: center;
}

.hero-poster {
    width: 250px;
    flex-shrink: 0;
}

.hero-poster img {
    width: 100%;
	height: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rating-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.hero-overview {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 550px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.genre-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Cast Section - Glass Grid */
.cast-section {
    margin-bottom: 25px;
    padding: 0 5px;
}

.cast-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.cast-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
   
    padding: 10px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cast-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 50px rgba(31, 38, 135, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.cast-card img {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cast-card h3 {
    font-size: 13px;
    margin-bottom: 2px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cast-card p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.cast-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Episodes Section - Ultra Glass */
.episodes-section {
    margin-bottom: 25px;
    padding: 0 5px;
}

.episodes-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.episode-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.episode-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 50px rgba(31, 38, 135, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.episode-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.episode-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 500/281;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

.episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.episode-card:hover .episode-poster img {
    transform: scale(1.08);
}

.episode-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rating-star {
    color: #ffd700;
    font-size: 10px;
}

.episode-number-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 13px;
    min-width: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.episode-info {
    padding: 12px;
   
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.episode-num {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.episode-rating-mobile {
    display: none;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #ffd700;
    font-weight: 700;
}

.episode-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.episode-overview {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trailers Section - Glass */
.trailers-section {
    margin-bottom: 25px;
    padding: 0 5px;
}

.trailers-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.trailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.trailer-card {
    background: rgba(255, 255, 255, 0.1);

    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.trailer-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 50px rgba(31, 38, 135, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.trailer-card iframe {
    width: 100%;
    height: 180px;
    border: none;
}

.trailer-info {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.trailer-info h3 {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Archive/Grid Layout - Glass with 2:3 Aspect Ratio */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
    padding: 0 5px;
}

.archive-header {
    margin-bottom: 20px;
    padding: 0 5px;
}

.archive-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.archive-header .term-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* Pagination - Premium Glass */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
   
    color: #fff;
    text-decoration: none;
    border-radius: 0px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 13px;
    box-shadow: 
        0 4px 15px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pagination a:hover,
.pagination .current {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Footer - Glass */
.site-footer {
    background: rgba(255, 255, 255, 0.08);
   
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    box-shadow: 
        0 -8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Lazy Load */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Mobile First - Priority Responsive */
@media (max-width: 768px) {
    .site-container {
        max-width: 100%;
    }
    
    .site-header {
        padding: 10px 12px;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .main-navigation ul {
        gap: 8px;
    }
    
    .main-navigation a {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .site-content {
        padding: 10px 8px;
    }
    
    .hero-banner {
        height: auto;
        min-height: 300px;
        border-radius: 16px;
    }
    
    .hero-content {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .hero-poster {
        width: 150px;
    }
    
    .hero-info h1 {
        font-size: 24px;
    }
    
    .hero-overview {
        font-size: 13px;
    }
    
    .carousel-container .media-card {
        width: 140px;
    }
    
    /* Mobile archive - 3 columns exactly like carousel, no overflow */
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 8px;
    }
    
    .archive-grid .media-card {
        width: 100%;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
    
    .cast-card {
        padding: 8px;
    }
    
    .cast-card h3 {
        font-size: 12px;
    }
    
    .cast-card p {
        font-size: 10px;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .episode-card {
        max-width: 100%;
    }
    
    .episode-info {
        padding: 10px;
    }
    
    .trailers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .carousel-section,
    .cast-section,
    .episodes-section,
    .trailers-section {
        margin-bottom: 20px;
    }
    
    .carousel-section h2,
    .cast-section h2,
    .episodes-section h2,
    .trailers-section h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 8px 10px;
    }
    
    .site-title {
        font-size: 16px;
    }
    
    .main-navigation ul {
        gap: 6px;
    }
    
    .main-navigation a {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .site-content {
        padding: 8px 6px;
    }
    
    .hero-banner {
        min-height: 250px;
        border-radius: 14px;
    }
    
    .hero-content {
        padding: 12px;
    }
    
    .hero-poster {
        width: 120px;
    }
    
    .hero-info h1 {
        font-size: 20px;
    }
    
    .hero-overview {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .meta-item {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .carousel-container .media-card {
        width: 120px;
    }
    
    .carousel-container {
        gap: 8px;
    }
    
    /* Mobile archive - 3 columns like carousel */
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 6px;
    }
    
    .archive-grid .media-card {
        width: 100%;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .cast-card {
        padding: 6px;
    }
    
    .episode-rating {
        display: none;
    }
    
    .episode-rating-mobile {
        display: flex;
    }
    
    .episode-title {
        font-size: 13px;
    }
    
    .episode-overview {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .episode-number-badge {
        font-size: 11px;
        padding: 4px 8px;
        min-width: 40px;
    }
    
    .episode-info {
        padding: 8px;
    }
    
    .trailer-card iframe {
        height: 160px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .site-header {
        padding: 6px 8px;
    }
    
    .site-content {
        padding: 6px 4px;
    }
    
    .carousel-section,
    .cast-section,
    .episodes-section {
        padding: 0 2px;
        margin-bottom: 15px;
    }
    
    .episode-info {
        padding: 6px;
    }
    
    .cast-card {
        padding: 4px;
    }
    
    .carousel-container {
        gap: 6px;
    }
    
    .carousel-container .media-card {
        width: 110px;
    }
    
    /* Mobile archive - 3 columns maintained like carousel */
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 3px;
    }
}





/* ------------------------------------- */
/* Desktop Header Visibility */
.site-header {
    display: block; /* visible by default */
}

/* Hide desktop header on tablet and mobile */
@media (max-width: 1024px) {
    .site-header {
        display: none !important;
    }
}

/* ------------------------------------- */
/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none; /* hide by default */
    background: #111;
    border-top: 1px solid #222;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    justify-content: space-around;
    padding: 5px 0;
}

/* Show on tablets and mobile only */
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #aaa;
        text-decoration: none;
        flex: 1;
        position: relative;
        padding: 5px 0;
    }

    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: #fff;
    }

    .mobile-bottom-nav .nav-icon-wrapper {
        position: relative;
        width: 24px;
        height: 24px;
        margin-bottom: 3px;
    }

    .mobile-bottom-nav .active-indicator {
        position: absolute;
        bottom: -3px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ff3e00;
        display: none;
    }

    .mobile-bottom-nav .nav-item.active .active-indicator {
        display: block;
    }

    .mobile-bottom-nav svg.icon {
        width: 24px;
        height: 24px;
    }
}




/* Hide desktop search inline on mobile */
@media screen and (max-width: 1024px) {
    .header-search-desktop {
        display: none;
    }
    .header-search-mobile {
        display: block;
    }
}

/* ==============================
   Mobile Search Popup - Glass Style
   ============================== */
.mobile-search-popup {
    display: none;
    position: fixed;
    inset: 0; /* top/right/bottom/left = 0 */
    z-index: 9999;
}

.mobile-search-popup.active {
    display: block;
}

/* Overlay */
.mobile-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);

    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Popup Card */
.mobile-search-content {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: popupFadeIn 0.3s ease forwards;
}

/* Fade-in animation */
@keyframes popupFadeIn {
    from { opacity: 0; transform: translate(-50%, -10%); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Form inside Popup */
.mobile-search-content .search-form {
    display: flex;
    gap: 8px;
}

/* Input Field */
.mobile-search-content .search-field {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

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

.mobile-search-content .search-field:focus {
    border-color: #ff0015;
    box-shadow: 0 0 10px rgba(255, 0, 21, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

/* Submit Button - Match Desktop Glass Style */
.mobile-search-content .search-submit {
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-content .search-submit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Close Button */
.mobile-search-content .close-search-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.2s ease;
}

.mobile-search-content .close-search-popup:hover {
    color: #ff0015;
    transform: scale(1.1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .mobile-search-content {
        top: 10%;
    }
}


/* Desktop Search Form - Glass Style */
.header-search-desktop {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-desktop .search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 4px 8px;
    transition: all 0.3s ease;
    width: 250px;
}

.header-search-desktop .search-form:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-search-desktop .search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    padding: 6px 8px;
}

.header-search-desktop .search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search-desktop .search-submit {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    margin-left: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-search-desktop .search-submit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
/* Sorting Dropdown */
.archive-sorting select {
    background: rgba(255, 255, 255, 0.05); /* subtle dark background */
    color: #fff; /* white text */
    border: 1px solid rgba(255, 255, 255, 0.2); /* light border */
    padding: 6px 12px; /* comfortable padding */
    border-radius: 4px; /* slightly rounded */
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover and Focus effects */
.archive-sorting select:hover,
.archive-sorting select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

/* Optional: arrow color for dark theme (for modern browsers) */
.archive-sorting select::-ms-expand {
    display: none; /* remove default arrow in IE/Edge */
}

.archive-sorting select option {
    background: #1a1a1a; /* match dark theme for options */
    color: #fff;
}
/* Archive header layout - sorting left, title right */
.archive-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.archive-header-content .archive-sorting {
    order: 3; /* Sorting comes first (left) */
}

.archive-header-content h1 {
    order: -1; /* Title comes second (right) */
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

/* Sorting dropdown styles */
.archive-sorting select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover and Focus effects */
.archive-sorting select:hover,
.archive-sorting select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
}

/* Remove default arrow in IE/Edge */
.archive-sorting select::-ms-expand {
    display: none;
}

.archive-sorting select option {
    background: #1a1a1a;
    color: #fff;
}

/* Responsive design */

    
    .archive-header-content h1 {
        text-align: left;
        order: -1;
    }
    
    .archive-header-content .archive-sorting {
        order: 2;
    }
}







/* ==============================
   FILTER SYSTEM - PREMIUM GLASS (FIXED)
   ============================== */

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
   
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.mobile-filter-toggle:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mobile-filter-toggle .filter-icon {
    width: 20px;
    height: 20px;
}

.mobile-filter-toggle .filter-count {
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(255, 0, 21, 0.4);
}

/* Filter Panel */
.filter-panel {
    position: relative;
}

/* Mobile & Tablet: Overlay Style */
@media (max-width: 1024px) {
    .filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        pointer-events: none;
        transition: opacity 0.3s ease;
        opacity: 0;
    }
    
    .filter-panel.active {
        pointer-events: all;
        opacity: 1;
    }
    
    .filter-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
       
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .filter-panel.active .filter-overlay {
        opacity: 1;
    }
    
    .filter-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 85vh;
        background: rgba(10, 10, 10, 0.95);
      
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 24px 24px 0 0;
        padding: 20px;
        box-shadow: 
            0 -8px 32px rgba(31, 38, 135, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    
    .filter-panel.active .filter-content {
        transform: translateY(0);
    }
    
    body.filter-open {
        overflow: hidden;
    }
}

/* Desktop: Sidebar Style - FIXED WITH APPLY BUTTON */
@media (min-width: 1025px) {
    .archive-page {
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto 1fr;
        gap: 25px;
        align-items: start;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .archive-header {
        grid-column: 1 / -1;
        width: 100%;
        order: 1;
    }
    
    .filter-panel {
        grid-column: 1;
        grid-row: 2;
        position: sticky;
        top: 80px;
        width: 100%;
        flex-shrink: 0;
        order: 2;
        align-self: start;
        z-index: 10;
    }
    
    .archive-content-wrapper {
        grid-column: 2;
        grid-row: 2;
        flex: 1;
        min-width: 0;
        order: 3;
        width: 100%;
    }
    
    .active-filters {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .archive-grid {
        width: 100%;
    }
    
    .pagination {
        width: 100%;
        margin-top: 30px;
    }
    
    .no-results {
        width: 100%;
    }
    
    .filter-overlay {
        display: none;
    }
    
    .filter-content {
        background: rgba(255, 255, 255, 0.08);
        
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 20px;
        box-shadow: 
            0 8px 32px rgba(31, 38, 135, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    
    .mobile-filter-toggle,
    .filter-close {
        display: none;
    }
    
    /* APPLY BUTTON VISIBLE ON DESKTOP */
    .filter-actions {
        display: flex !important;
    }
}

/* Desktop Responsive Adjustments */
@media (min-width: 1025px) and (max-width: 1200px) {
    .archive-page {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

@media (min-width: 1201px) and (max-width: 1440px) {
    .archive-page {
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }
    
    .filter-content {
        padding: 25px;
    }
}

@media (min-width: 1441px) {
    .archive-page {
        grid-template-columns: 320px 1fr;
        gap: 35px;
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* Filter Header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.filter-header h3 svg {
    color: #ff0015;
}

.filter-close {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-close:hover {
    background: rgba(255, 0, 21, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Filter Form */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Filter Group */
.filter-group {
    background: rgba(255, 255, 255, 0.05);
  
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-group:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-group.active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Filter Group Toggle */
.filter-group-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.filter-group-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-group-toggle .chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.filter-group.active .filter-group-toggle .chevron {
    transform: rotate(180deg);
}

/* Filter Options */
.filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filter Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.filter-checkbox:first-child {
    border-top: none;
}

.filter-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom Checkbox */
.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox:hover .checkbox-custom {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.filter-checkbox input:checked ~ .checkbox-custom {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border-color: #ff0015;
    box-shadow: 
        0 2px 10px rgba(255, 0, 21, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.filter-checkbox input:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

/* Filter Label */
.filter-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.filter-checkbox input:checked ~ .filter-label {
    color: #fff;
    font-weight: 700;
}

/* Filter Count Badge */
.filter-count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.filter-checkbox input:checked ~ .filter-count-badge {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    color: #fff;
}

/* Filter Actions - ALWAYS VISIBLE ON BOTH MOBILE AND DESKTOP */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-apply-filters,
.btn-clear-filters {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apply-filters {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    color: #fff;
    box-shadow: 
        0 4px 20px rgba(255, 0, 21, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 25px rgba(255, 0, 21, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-clear-filters {
    background: rgba(255, 255, 255, 0.1);
   
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 15px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-clear-filters:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Active Filters Display */
.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
   
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 
        0 4px 15px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.active-filters-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.active-filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 0, 21, 0.3);
}

.active-filter-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 0, 21, 0.5);
}

.active-filter-tag .remove-filter {
    font-size: 14px;
    font-weight: 900;
}

.clear-all-filters {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
  
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.clear-all-filters:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
   
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.no-results h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 900;
}

.no-results p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .mobile-filter-toggle {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .filter-content {
        padding: 18px;
        max-height: 90vh;
    }
    
    .filter-header h3 {
        font-size: 16px;
    }
    
    .filter-group-toggle {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .filter-checkbox {
        padding: 9px 14px;
    }
    
    .filter-label {
        font-size: 12px;
    }
    
    .active-filters {
        padding: 12px;
        gap: 8px;
    }
    
    .active-filters-label {
        font-size: 12px;
    }
    
    .active-filter-tag {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .mobile-filter-toggle {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .mobile-filter-toggle .filter-icon {
        width: 18px;
        height: 18px;
    }
    
    .filter-content {
        padding: 16px;
        border-radius: 20px 20px 0 0;
    }
    
    .filter-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .filter-header h3 {
        font-size: 15px;
        gap: 8px;
    }
    
    .filter-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .filter-form {
        gap: 10px;
    }
    
    .filter-group-toggle {
        padding: 11px 12px;
        font-size: 12px;
    }
    
    .filter-checkbox {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .checkbox-custom {
        width: 16px;
        height: 16px;
    }
    
    .filter-label {
        font-size: 11px;
    }
    
    .filter-count-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .filter-actions {
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        padding: 11px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .btn-apply-filters svg,
    .btn-clear-filters svg {
        width: 14px;
        height: 14px;
    }
    
    .active-filters {
        padding: 10px;
        gap: 6px;
    }
    
    .active-filters-label {
        font-size: 11px;
        width: 100%;
        margin-bottom: 4px;
    }
    
    .active-filters-list {
        width: 100%;
        gap: 6px;
    }
    
    .active-filter-tag {
        font-size: 10px;
        padding: 4px 9px;
    }
    
    .clear-all-filters {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results h2 {
        font-size: 20px;
    }
    
    .no-results p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .mobile-filter-toggle {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .filter-content {
        padding: 14px;
    }
    
    .filter-header h3 {
        font-size: 14px;
    }
    
    .filter-group-toggle {
        padding: 10px;
        font-size: 11px;
    }
    
    .filter-checkbox {
        padding: 7px 10px;
    }
    
    .checkbox-custom {
        width: 15px;
        height: 15px;
    }
    
    .filter-label {
        font-size: 10px;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        padding: 10px 14px;
        font-size: 12px;
    }
}
/* ==============================
   FIX APPLY BUTTON VISIBILITY
   ============================== */

/* Ensure filter actions are ALWAYS visible on both mobile and desktop */
.filter-actions {
    display: flex !important;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-apply-filters,
.btn-clear-filters {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apply-filters {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    color: #fff;
    box-shadow: 
        0 4px 20px rgba(255, 0, 21, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 25px rgba(255, 0, 21, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-clear-filters {
    background: rgba(255, 255, 255, 0.1);
   
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 15px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-clear-filters:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Override any desktop hiding rules */
@media (min-width: 1025px) {
    .filter-actions {
        display: flex !important;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        display: flex !important;
    }
}

/* Ensure mobile also shows the buttons */
@media (max-width: 1024px) {
    .filter-actions {
        display: flex !important;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        display: flex !important;
    }
}
@media (max-width: 480px) {
    .filter-content {
        padding: 16px;
        border-radius: 20px 20px 0 0;
        margin-bottom: 60px;
    }
}
/* ============================== 
   ADVANCED SEARCH STYLES 
   ============================== */

.search-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px 30px;
}

/* Search Hero */
.search-hero {
    background: rgba(255, 255, 255, 0.05);
   
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 
        0 20px 60px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    justify-content: center;
}

.search-title svg {
    color: #ff0015;
}

/* Main Search Bar */
.search-bar-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.main-search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
   
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-input-group:focus-within {
    border-color: #ff0015;
    box-shadow: 
        0 12px 40px rgba(255, 0, 21, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.search-icon {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding: 8px 0;
    font-weight: 500;
}

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

.clear-search {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.clear-search:hover {
    background: rgba(255, 0, 21, 0.3);
    transform: rotate(90deg);
}

.search-submit-btn {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 21, 0.3);
    white-space: nowrap;
}

.search-submit-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 0, 21, 0.5);
}

/* Live Search Results */
.live-search-results {
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-height: 500px;
    overflow-y: auto;
    display: none;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.live-search-results.active {
    display: block;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.live-search-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.live-search-poster {
    width: 50px;
    height: 75px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.live-search-info {
    flex: 1;
    min-width: 0;
}

.live-search-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.live-search-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.live-search-type {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 0, 21, 0.2);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff0015;
    margin-left: 8px;
}

.live-search-loading,
.live-search-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Search Query Display */
.search-query-display {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.search-query-display strong {
    color: #ff0015;
    font-weight: 700;
}

/* Search Filters Bar */
.search-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-chip-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chip {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border-color: #ff0015;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 0, 21, 0.3);
}

.filter-select {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
   
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.filter-select option {
    background: #1a1a1a;
    color: #fff;
}

.results-count {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    white-space: nowrap;
}

/* Search Results Grid */
.search-results-wrapper {
    margin-top: 25px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* No Results Container */
.no-results-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
  
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.no-results-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.4);
}

.no-results-container h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.no-results-container p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.search-suggestions {
    margin-bottom: 30px;
}

.search-suggestions h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.search-suggestions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff0015;
}

.browse-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.15);
}

.browse-btn:hover {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border-color: #ff0015;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 21, 0.3);
}

/* Trending Searches */
.trending-searches {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.05);
   
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.trending-searches h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
}

.trending-searches h2 svg {
    color: #ff0015;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trending-tag {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
  
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
}

.trending-tag:hover {
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border-color: #ff0015;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 21, 0.3);
}

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

@media (max-width: 768px) {
    .search-hero {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .search-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .search-submit-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .search-filters-bar {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-chips {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .filter-chip-group {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .filter-select {
        flex: 1;
    }
    
    .results-count {
        text-align: center;
        width: 100%;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .no-results-container {
        padding: 40px 15px;
    }
    
    .no-results-container h2 {
        font-size: 22px;
    }
    
    .browse-links {
        flex-direction: column;
    }
    
    .browse-btn {
        width: 100%;
        justify-content: center;
    }
    
    .trending-searches {
        padding: 20px;
    }
    
    .trending-searches h2 {
        font-size: 18px;
    }
    
    .trending-tags {
        gap: 8px;
    }
    
    .trending-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-hero {
        padding: 20px 15px;
    }
    
    .search-title {
        font-size: 20px;
    }
    
    .search-input-group {
        padding: 6px 10px;
    }
    
    .search-input {
        font-size: 13px;
    }
    
    .search-submit-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(2, 3fr);
        gap: 8px;
    }
    
    .filter-chip {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .filter-select {
        padding: 5px 10px;
        font-size: 12px;
    }
}
/* Search Page Specific Styles */
.search-filters-active {
    color: #ff0015;
    font-size: 0.9em;
    margin-left: 10px;
}

.filter-apply-btn-mobile {
    display: none;
    background: linear-gradient(135deg, #ff0015 0%, #fb9910 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 21, 0.3);
}

.filter-apply-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 21, 0.4);
}

.clear-filters-link {
    color: #ff0015;
    text-decoration: none;
    font-weight: 700;
}

.clear-filters-link:hover {
    text-decoration: underline;
}

.filter-suggestions {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 0, 21, 0.1);
    border-radius: 10px;
    border-left: 4px solid #ff0015;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .search-filters-bar {
        position: relative;
    }
    
    .filter-apply-btn-mobile {
        display: block;
        width: 100%;
        margin-top: 10px;
    }
    
    .filter-chips {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .filter-chip-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-select {
        flex: 1;
        max-width: 200px;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(2, 3fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .filter-select {
        max-width: 150px;
        font-size: 12px;
    }
    
    .filter-label {
        font-size: 12px;
    }
}





.site-footer {
    background-color: #11111100;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.site-footer a {
    color: #ff0015;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-menu {
    margin-top: 20px;
}

.footer-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-menu-items li {
    display: inline-block;
}

.footer-menu-items li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-menu-items li a:hover {
    color: #ff0015;
}
@media (max-width: 480px) {
    .mobile-filter-toggle .filter-icon {
        width: 18px;
        height: 11px;
        display: none;
    }
}




 /* Enhanced Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: none;
       
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6),
                    inset 0 1px 0 rgba(255, 255, 255, 0.05);
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        justify-content: space-around;
        padding: 8px 0 max(8px, env(safe-area-inset-bottom));
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Show on tablets and mobile only */
    @media (max-width: 1024px) {
        .mobile-bottom-nav {
            display: flex;
        }

        .mobile-bottom-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.3px;
            color: rgba(170, 170, 170, 0.8);
            text-decoration: none;
            flex: 1;
            position: relative;
            padding: 8px 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-bottom-nav .nav-item::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, rgba(255, 62, 0, 0.15) 0%, transparent 70%);
            border-radius: 50%;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .mobile-bottom-nav .nav-item.active::before {
            transform: translate(-50%, -50%) scale(1);
        }

        .mobile-bottom-nav .nav-item:active {
            transform: scale(0.92);
        }

        .mobile-bottom-nav .nav-item.active {
            color: #fff;
        }

        .mobile-bottom-nav .nav-icon-wrapper {
            position: relative;
            width: 28px;
            height: 28px;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-bottom-nav .nav-item.active .nav-icon-wrapper {
            transform: translateY(-3px);
        }

        .mobile-bottom-nav .nav-icon-wrapper::before {
            content: '';
            position: absolute;
            inset: -8px;
            background: linear-gradient(135deg, rgba(255, 62, 0, 0.2) 0%, rgba(251, 153, 16, 0.2) 100%);
            border-radius: 16px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .mobile-bottom-nav .nav-item.active .nav-icon-wrapper::before {
            opacity: 1;
        }

        .mobile-bottom-nav svg.icon {
            width: 24px;
            height: 24px;
            stroke-width: 2.2;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-bottom-nav .nav-item.active svg.icon {
            stroke: url(#iconGradient);
            stroke-width: 2.5;
            filter: drop-shadow(0 0 8px rgba(255, 62, 0, 0.5));
        }

        /* Active indicator - now a gradient bar */
        .mobile-bottom-nav .active-indicator {
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 40px;
            height: 3px;
            border-radius: 0 0 3px 3px;
            background: linear-gradient(90deg, #ff3e00 0%, #fb9910 100%);
            box-shadow: 0 2px 10px rgba(255, 62, 0, 0.5);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-bottom-nav .nav-item.active .active-indicator {
            transform: translateX(-50%) scaleX(1);
        }

        /* Floating effect on active */
        @keyframes float {
            0%, 100% { transform: translateY(-3px); }
            50% { transform: translateY(-5px); }
        }

        .mobile-bottom-nav .nav-item.active .nav-icon-wrapper {
            animation: float 2s ease-in-out infinite;
        }

        /* Text glow for active item */
        .mobile-bottom-nav .nav-item.active span {
            text-shadow: 0 0 10px rgba(255, 62, 0, 0.4);
        }

        /* Ripple effect on tap */
        .mobile-bottom-nav .nav-item::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 62, 0, 0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s, opacity 0.6s;
            opacity: 0;
        }

        .mobile-bottom-nav .nav-item:active::after {
            width: 80px;
            height: 80px;
            opacity: 1;
            transition: 0s;
        }
    }

    /* SVG Gradient Definition */
    svg.hidden-svg {
        width: 0;
        height: 0;
        position: absolute;
    }

    /* Safe area for modern devices with notches */
    @supports (padding: max(0px)) {
        .mobile-bottom-nav {
            padding-bottom: max(8px, env(safe-area-inset-bottom));
        }
    }







/* Hide desktop header on mobile */
@media(max-width:768px){
    .desktop-header{
        display:none!important;
    }

    .mobile-header{
        display:flex;
        align-items:center;
        justify-content:space-between;
       
        top:0;
        left:0;
        right:0;
        z-index:999;
        background:#111;
        padding:10px 15px;
        box-shadow:0 2px 10px rgba(0,0,0,0.3);
		flex-direction: row-reverse;
    }

    .mobile-header img{
        height:32px;
        width:auto;
        display:block;
    }

    .mobile-menu-toggle{
        font-size:24px;
        color:#fff;
        background:none;
        border:none;
        cursor:pointer;
        padding:5px 10px;
    }

    .mobile-search-btn{
        font-size:20px;
        text-decoration:none;
        padding:6px;
        color:#fff;
    }

    /* Mobile Menu Sidebar */
    .mobile-menu-overlay{
        position:fixed;
        top:0;
        left:0;
        right:0;
        bottom:0;
        background:rgba(0,0,0,0.7);
        z-index:1000;
        display:none;
        opacity:0;
        transition:opacity 0.3s ease;
    }

    .mobile-menu-overlay.active{
        display:block;
        opacity:1;
    }

    .mobile-menu-sidebar{
        position:fixed;
        top:0;
        left:-280px;
        width:280px;
        height:100%;
        background:#1f1f1f;
        z-index:1001;
        overflow-y:auto;
        transition:left 0.3s ease;
        padding-bottom:60px;
    }

    .mobile-menu-sidebar.active{
        left:0;
    }

    .mobile-menu-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:15px;
        background:#2a2a2a;
        position:sticky;
        top:0;
        z-index:10;
    }

    .mobile-menu-close{
        font-size:24px;
        color:#fff;
        background:none;
        border:none;
        cursor:pointer;
        padding:5px;
    }

    .mobile-menu-title{
        color:#fff;
        font-size:18px;
        font-weight:bold;
        margin:0;
    }

    /* Menu Items */
    .mobile-menu-list{
        list-style:none;
        padding:0;
        margin:0;
    }

    .mobile-menu-section{
        border-bottom:1px solid #333;
    }

    .mobile-menu-section-title{
        padding:12px 15px;
        color:#999;
        font-size:12px;
        font-weight:bold;
        text-transform:uppercase;
        background:#252525;
    }

    .mobile-menu-item{
        border-bottom:1px solid #2a2a2a;
    }

    .mobile-menu-item a{
        display:block;
        padding:12px 15px;
        color:#fff;
        text-decoration:none;
        transition:background 0.2s ease;
    }

    .mobile-menu-item a:hover{
        background:#2a2a2a;
    }

    .mobile-menu-item.has-submenu > a{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .mobile-menu-arrow{
        transition:transform 0.3s ease;
    }

    .mobile-menu-item.has-submenu.open .mobile-menu-arrow{
        transform:rotate(180deg);
    }

    .mobile-submenu{
        display:none;
        background:#252525;
    }

    .mobile-submenu.open{
        display:block;
    }

    .mobile-submenu a{
        padding:10px 15px 10px 30px;
        font-size:14px;
    }

    /* Body offset when menu is open */
    body.mobile-menu-open{
        overflow:hidden;
    }

    .homepage{
        padding-top:20px;
    }
}

/* Hide on desktop */
@media(min-width:769px){
    .mobile-header, .mobile-menu-overlay, .mobile-menu-sidebar{
        display:none!important;
    }
}

.carousel-container .media-card {
    width: 130px;
   
}
@media (max-width: 480px) {
    .carousel-container .media-card {
        width: 100px;
    }
}









        /* Movie Page Container */
        .movie-page-wrapper {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0;
        }
        
        /* Video Player Section */
        .player-wrapper {
            position: relative;
            width: 100%;
            background: #000;
            margin-bottom: 0;
        }
        
        .player-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16/9;
            background: #000;
        }
        
        #videoPlayer {
            width: 100%;
            height: 100%;
        }
        
        /* Loading Overlay */
        .loading-spinner {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        
        .loading-spinner.active {
            display: flex;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255,255,255,0.1);
            border-top-color: #ff0015;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Movie Info Bar */
        .movie-info-bar {
            background: rgba(255, 255, 255, 0.08);
          
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 15px 20px;
        }
        
        .movie-title-main {
            font-size: 22px;
            font-weight: 900;
            color: #fff;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .movie-type-indicator {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
        }
        
        .movie-meta-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
            font-weight: 500;
        }
        
        .movie-meta-row .star-rating {
            color: #ffd700;
            font-weight: 700;
        }
        
        .movie-meta-row .separator {
            color: rgba(255, 255, 255, 0.4);
        }
        
        /* Content Section */
        .movie-content {
            padding: 0px;
        }
        
        /* Overview */
        .overview-section {
            margin-bottom: 20px;
            display: none;
        }
        
        .overview-text {
            color: rgba(255, 255, 255, 0.85);
            line-height: 1.6;
            font-size: 14px;
        }
        
        /* Trailers Section */
        .trailers-section {
            margin-top: 30px;
            
        }
        
        .trailers-section h3 {
            font-size: 16px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 12px;
        }
        
        .trailers-carousel {
            display: flex;
            gap: 15px;
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 10px;
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
        }
        
        .trailers-carousel::-webkit-scrollbar {
            height: 6px;
        }
        
        .trailers-carousel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 3px;
        }
        
        .trailers-carousel::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
            border-radius: 3px;
        }
        
        .trailers-carousel::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        
        .trailer-card {
            flex: 0 0 300px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
        }
        
        .trailer-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(31, 38, 135, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .trailer-video {
            width: 100%;
            aspect-ratio: 16/9;
            background: #000;
        }
        
        .trailer-video iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .trailer-info {
            padding: 12px;
        }
        
        .trailer-title {
            font-size: 13px;
            font-weight: 600;
            color: #fff;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        /* Cast Section - Carousel Styles */
        .cast-section {
            margin-top: 160px;
           
        }
        
        .cast-section h3 {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
            margin-bottom: 15px;
        }
        
        .cast-carousel {
            display: flex;
            gap: 15px;
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 10px;
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
        }
        
        .cast-carousel::-webkit-scrollbar {
            height: 6px;
        }
        
        .cast-carousel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 3px;
        }
        
        .cast-carousel::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
            border-radius: 3px;
        }
        
        .cast-carousel::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        
        .cast-card {
            flex: 0 0 120px;
            text-align: center;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .cast-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(31, 38, 135, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .cast-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .cast-card h3 {
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            margin: 8px 0 4px;
            padding: 0 8px;
            line-height: 1.2;
        }
        
        .cast-card p {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.7);
            margin: 0 0 8px;
            padding: 0 8px;
            line-height: 1.2;
        }
        
        /* Related Movies Section */
        .related-movies-section {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .related-movies-section h3 {
            font-size: 18px;
            font-weight: 800;
            color: #fff;
            margin-bottom: 15px;
        }
        
        .related-movies-carousel {
            display: flex;
            gap: 15px;
            overflow-x: auto;
            overflow-y: hidden;
            padding-bottom: 10px;
            scroll-behavior: smooth;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
        }
        
        .related-movies-carousel::-webkit-scrollbar {
            height: 6px;
        }
        
        .related-movies-carousel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border-radius: 3px;
        }
        
        .related-movies-carousel::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(10px);
            border-radius: 3px;
        }
        
        .related-movies-carousel::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        
        .related-movie-card {
            flex: 0 0 160px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(31, 38, 135, 0.1);
        }
        
        .related-movie-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 25px rgba(31, 38, 135, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }
        
        .related-movie-poster {
            width: 100%;
            aspect-ratio: 2/3;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
            position: relative;
            overflow: hidden;
        }
        
        .related-movie-poster img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .related-movie-info {
            padding: 10px;
        }
        
        .related-movie-title {
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            line-height: 1.2;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 5px;
        }
        
        .related-movie-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 10px;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .related-movie-rating {
            color: #ffd700;
            font-weight: 600;
        }
        
        .related-movie-year {
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* Desktop Layout */
        @media (min-width: 1025px) {
            .movie-page-wrapper {
                display: flex;
                grid-template-columns: 1fr 350px;
                gap: 25px;
            }
            
            .player-and-content {
                width: 70%
            }
            
            .sidebar-section {
                grid-column: 2;
                
                top: 80px;
                align-self: start;
            }
            
            .sidebar-card {
                background: rgba(255, 255, 255, 0.08);
                backdrop-filter: blur(30px) saturate(180%);
                -webkit-backdrop-filter: blur(30px) saturate(180%);
                border: 1px solid rgba(255, 255, 255, 0.2);
                border-radius: 16px;
                padding: 20px;
                box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
                margin-bottom: 20px;
            }
            
            .sidebar-card h3 {
                font-size: 16px;
                font-weight: 700;
                color: #fff;
                margin-bottom: 15px;
            }
            
            .movie-poster-sidebar img {
                width: 100%;
                border-radius: 12px;
                box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            }
            
            .movie-details-list {
                list-style: none;
                padding: 0;
                margin: 0;
            }
            
            .movie-details-list li {
                padding: 10px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                font-size: 13px;
            }
            
            .movie-details-list li:last-child {
                border-bottom: none;
            }
            
            .detail-label {
                color: rgba(255, 255, 255, 0.6);
                font-weight: 600;
                margin-right: 8px;
            }
            
            .detail-value {
                color: #fff;
                font-weight: 500;
            }
            
            .genre-tags-sidebar {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .genre-tag-sidebar {
                background: rgba(255, 255, 255, 0.1);
                color: #fff;
                padding: 5px 12px;
                border-radius: 20px;
                font-size: 11px;
                font-weight: 600;
                text-decoration: none;
                transition: all 0.3s;
            }
            
            .genre-tag-sidebar:hover {
                background: rgba(255, 0, 21, 0.3);
            }
            
            /* Desktop Trailers Carousel */
            .trailers-carousel {
                display: flex;
                gap: 20px;
                overflow-x: auto;
                padding-bottom: 15px;
            }
            
            .trailer-card {
                flex: 0 0 350px;
            }
            
            /* Desktop Cast Carousel */
            .cast-carousel {
                display: flex;
                gap: 20px;
                overflow-x: auto;
                padding-bottom: 15px;
            }
            
            .cast-card {
                flex: 0 0 140px;
            }
            
            .cast-card img {
                height: 180px;
            }
            
            .cast-card h3 {
                font-size: 13px;
            }
            
            .cast-card p {
                font-size: 11px;
                display: none;
            }
            
            /* Desktop Related Movies */
            .related-movies-carousel {
                display: flex;
                gap: 20px;
                overflow-x: auto;
                padding-bottom: 15px;
            }
            
            .related-movie-card {
                flex: 0 0 180px;
            }
        }
        
        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .movie-info-bar {
                padding: 12px 15px;
            }
            
            .movie-title-main {
                font-size: 18px;
            }
            
            .movie-content {
                padding: 0px;
            }
            
            .trailer-card {
                flex: 0 0 280px;
            }
            
            .cast-card {
                flex: 0 0 100px;
            }
            
            .cast-card img {
                height: 120px;
            }
            
            .related-movie-card {
                flex: 0 0 140px;
            }
        }
        
        @media (max-width: 480px) {
            .movie-info-bar {
                padding: 10px 12px;
            }
             .cast-section {
            margin-top: 110px;
            
            .movie-title-main {
                font-size: 16px;
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }
            
            .movie-meta-row {
                font-size: 11px;
            }
            
            .movie-content {
                padding: 0px;
            }
            
            .trailer-card {
                flex: 0 0 260px;
            }
            
            .trailer-info {
                padding: 8px;
            }
            
            .trailer-title {
                font-size: 12px;
            }
            
            .cast-card {
                flex: 0 0 90px;
            }
            
            .cast-card img {
                height: 100px;
            }
            
            .cast-card h3 {
                font-size: 11px;
            }
            
            .cast-card p {
                font-size: 9px;
                display: none;
            }
            
            .related-movie-card {
                flex: 0 0 120px;
            }
            
            .related-movie-info {
                padding: 8px;
            }
            
            .related-movie-title {
                font-size: 11px;
            }
        }
        
        /* Error Message */
        .error-message {
            background: rgba(220, 38, 38, 0.1);
            border: 1px solid rgba(220, 38, 38, 0.3);
            color: #fca5a5;
            padding: 12px;
            border-radius: 8px;
            margin: 10px 0;
            font-size: 13px;
            display: none;
        }
        
        .error-message.active {
            display: block;
       }
       
       
       
       
       
       
       
       
       
       
       
       
       
       
/* Carousel Section - Compact */
.carousel-section {
    margin-bottom: 25px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.carousel-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.carousel-header h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.carousel-header h2 a:hover {
    color: #e50914;
}

/* Carousel Navigation - Square Buttons */
.carousel-nav {
    display: flex;
    gap: 6px;
}

.carousel-nav-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.carousel-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-container::-webkit-scrollbar {
    display: none;
}

/* Media Card Styles - NO CHANGES */
.media-card {
    flex: 0 0 auto;
    width: 200px;
    position: relative;
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-section {
        margin-bottom: 20px;
    }

    .carousel-header {
        margin-bottom: 10px;
    }

    .carousel-header h2 {
        font-size: 18px;
    }
    
    .carousel-nav {
        gap: 4px;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .media-card {
        width: 150px;
    }

    .carousel-container {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        margin-bottom: 18px;
    }

    .carousel-header {
        margin-bottom: 8px;
    }
    
    .carousel-header h2 {
        font-size: 16px;
    }
    
    .carousel-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .carousel-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .media-card {
        width: 130px;
    }
    
    .carousel-container {
        gap: 8px;
        padding-bottom: 6px;
    }
}







/* ============================== 
   LAZY LOAD SHIMMER - STANDALONE
   ============================== */

/* Shimmer wrapper - positioned absolutely inside card-poster */
.card-poster .shimmer-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #2a2a2a 0%, #2a2a2a 100%);
    pointer-events: none;
    z-index: 1;
}

/* Shimmer animation effect */
.card-poster .shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Hide lazy image initially */
.card-poster .lazy-img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    position: relative;
    z-index: 2;
}

/* Show image when loaded */
.card-poster.loaded .lazy-img,
.lazy-image.loaded .lazy-img {
    opacity: 1;
}

/* Fade out shimmer when loaded */
.card-poster.loaded .shimmer-wrapper,
.lazy-image.loaded .shimmer-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* Responsive shimmer speed */
@media (max-width: 768px) {
    .shimmer {
        animation-duration: 1.5s;
    }
}

@media (max-width: 480px) {
    .shimmer {
        animation-duration: 1.2s;
    }
}
			
			
			
			
			
			