/* genres.css - Genre Page with Slider Navigation */

/* -------------------- DROPDOWN NAVBAR -------------------- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-btn .fa-chevron-down {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .dropdown-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

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

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.dropdown-content a i {
    width: 20px;
    text-align: center;
}

/* -------------------- GENRE NAVIGATION ARROWS -------------------- */
.genre-arrow-left,
.genre-arrow-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    z-index: 9000;
    color: white;
    background: transparent;
    border: 1px solid white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 26px;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s;
}

.genre-arrow-left {
    left: 15px;
}

.genre-arrow-right {
    right: 15px;
}

.genre-arrow-left:hover,
.genre-arrow-right:hover {
    background: white;
    color: #333;
}

/* .genre-arrow-left:hover,
.genre-arrow-right:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border-color: white;
    transform: scale(1.1);
} */

/* -------------------- GENRE CONTAINER -------------------- */
.genres-container {
    padding: 70px 0 20px;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
    padding-bottom: 0;
}

/* -------------------- GENRE SLIDES -------------------- */
.genre-slides-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    top: -4px;
}

.genre-slide {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease;
    min-height: 70vh;
}

.genre-slide.active {
    display: block;
}

/* Genre Color Themes */
#action { background: linear-gradient(135deg, #0a2e5c, #1a3a6a); }
#superhero { background: linear-gradient(135deg, #1a1a2e, #2a2a3e); }
#animation { background: linear-gradient(135deg, #ff6b35, #ff8b35); }
#fantasy { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
#scifi { background: linear-gradient(135deg, #00695c, #00897b); }
#family { background: linear-gradient(135deg, #4caf50, #66bb6a); }
#thriller { background: linear-gradient(135deg, #37474f, #546e7a); }
#horror { background: linear-gradient(135deg, #c62828, #e53935); }
#musical { background: linear-gradient(135deg, #d81b60, #ec407a); }

.genre-slide-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.genre-slide-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.genre-slide-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* -------------------- MOVIE SLIDER -------------------- */
.movie-slider {
    position: relative;
    max-width: 91%;
    margin: 0 auto 40px;
    overflow: hidden;
    padding: 20px 0;
    
}

.movie-slider-container {
    display: flex;
    gap: 50px;
    transition: transform 0.5s ease;
    padding: 10px;
}

.movie-card-slider {
    flex: 0 0 auto;
    width: 180px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
}

.movie-card-slider:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.75);
    z-index: 10;
}

.movie-card-slider img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
}

.movie-info-slider {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
}

.movie-info-slider h4 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 100;
}

.movie-info-slider p {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

/* Slider Controls */
/* .movie-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
} */

/* -------------------- GENRE PAGINATION -------------------- */
.genre-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

.page-numbers.active {
    background: white;
    color: black;
    border-color: white;
}

/* ── Glassmorphism navbar — genres page only ── */
.genres-container .nav_bar,
body:has(.genres-container) .nav_bar {
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding-top: 12px;
    padding-bottom: 12px;
    margin-top: -20px;
}

body:has(.genres-container) header hr {
    /* tweak to taste */
    border-color: rgba(255, 255, 255, 0.15);
    margin-top: 0px;
}

body:has(.genres-container) .search-box { 
    top: 116px;
    font-family: Rockwell, sans-serif;
}
.search-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border-radius: 5px;
    z-index: 5000;
    display: none;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ffcc00 transparent;

}
.search-dropdown::-webkit-scrollbar {
    width: 8px;
}
.search-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}
.search-dropdown::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}




/* -------------------- ANIMATIONS -------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1200px) {
    .movie-card-slider {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .genre-slide-header h2 {
        font-size: 32px;
    }
    
    .movie-card-slider {
        width: 140px;
    }
    
    .movie-card-slider img {
        height: 200px;
    }
    
    .genre-nav-arrows {
        padding: 0 10px;
    }
    
    .genre-arrow-left,
    .genre-arrow-right {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .genre-slide-header h2 {
        font-size: 24px;
    }
    
    .movie-card-slider {
        width: 120px;
    }
    
    .movie-card-slider img {
        height: 170px;
    }
    
    .movie-slider {
        max-width: 95%;
    }
    
    .genre-pagination {
        gap: 10px;
    }
    
    .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}