/* ============================================ */
/* CINEWAVE - COMPLETE STYLESHEET WITH SLIDERS */
/* ============================================ */

/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbars globally */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0e1a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
}

/* Hide scrollbars on all elements */
body::-webkit-scrollbar,
div::-webkit-scrollbar,
section::-webkit-scrollbar,
main::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body,
div,
section,
main {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Selection Style */
::selection {
    background: rgba(0, 168, 225, 0.3);
    color: #ffffff;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Input & Select */
input,
select {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ============================================ */
/* NAVBAR */
/* ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 26, 0.98) 0%,
        rgba(10, 14, 26, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 3rem;
    border-bottom: 1px solid rgba(0, 168, 225, 0.15);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger:hover {
    opacity: 0.8;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Active Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 28px;
    color: #00a8e1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(0, 168, 225, 0.3));
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 12px rgba(0, 168, 225, 0.5));
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #00a8e1 0%, #ff9900 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

/* Navigation Center */
.nav-center {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00a8e1;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00a8e1;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #00a8e1;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    align-items: center;
    flex-shrink: 0;
}

.search-container:focus-within {
    border-color: #00a8e1;
    background: rgba(0, 168, 225, 0.08);
    box-shadow: 0 0 20px rgba(0, 168, 225, 0.1);
}

.search-container input {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px;
    width: 200px;
    outline: none;
    font-size: 14px;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.search-container select {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 24px 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L1 3h8z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all 0.3s ease;
}

.search-container select:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.search-container select option {
    background: #1a1e2a;
    color: #ffffff;
}

.search-container button {
    background: #00a8e1;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 7px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-container button:hover {
    background: #0088b5;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 168, 225, 0.3);
}

.search-container button:active {
    transform: scale(0.98);
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.hero {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5rem;
    margin-top: 65px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        #0a0e1a 0%,
        rgba(10, 14, 26, 0.8) 30%,
        rgba(10, 14, 26, 0.4) 60%,
        transparent 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #0a0e1a, transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    animation: fadeInUp 0.8s ease;
    width: 100%;
}

.hero-badge {
    background: rgba(0, 168, 225, 0.15);
    backdrop-filter: blur(10px);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(0, 168, 225, 0.25);
    letter-spacing: 0.5px;
    color: #00a8e1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    line-height: 1.15;
    word-break: break-word;
    letter-spacing: -0.5px;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
    align-items: center;
}

.hero-rating {
    color: #ffd700;
    font-weight: 600;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-play {
    background: #00a8e1;
    color: #ffffff;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.btn-play:hover {
    background: #0088b5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 225, 0.4);
}

.btn-play:active {
    transform: translateY(0);
}

.btn-info {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-info:active {
    transform: translateY(0);
}

/* ============================================ */
/* SECTIONS */
/* ============================================ */

.section {
    padding: 2rem 3rem;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.3px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #00a8e1, #ff9900);
    border-radius: 2px;
}

/* ============================================ */
/* MOVIE SLIDER ROW */
/* ============================================ */

.movies-row {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.movies-row::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Movie Card */
.movie-card {
    min-width: 180px;
    max-width: 180px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    background: #151926;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 168, 225, 0.25);
    border-color: rgba(0, 168, 225, 0.3);
}

.movie-card:active {
    transform: translateY(-2px);
}

.movie-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.movie-card:hover img {
    filter: brightness(0.75);
}

.movie-card-info {
    padding: 12px 10px;
}

.movie-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.movie-card-year {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.movie-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 168, 225, 0.9);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

/* ============================================ */
/* SCROLL BUTTONS FOR SLIDER */
/* ============================================ */

.section-header-buttons {
    display: flex;
    gap: 8px;
}

.scroll-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-btn:hover {
    background: #00a8e1;
    border-color: #00a8e1;
    transform: scale(1.05);
}

/* ============================================ */
/* MODAL LOADER */
/* ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.loader-container {
    text-align: center;
    background: rgba(21, 25, 38, 0.95);
    padding: 2.5rem 3rem;
    border-radius: 16px;
    min-width: 300px;
    border: 1px solid rgba(0, 168, 225, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.prime-loader {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    border: 3px solid rgba(0, 168, 225, 0.2);
    border-top-color: #00a8e1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    font-size: 16px;
    color: #00a8e1;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loader-subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================ */
/* DETAIL MODAL */
/* ============================================ */

.detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.detail-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.detail-container {
    max-width: 1000px;
    margin: 80px auto;
    background: #151926;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.detail-close:hover {
    background: #e50914;
    transform: scale(1.1) rotate(90deg);
}

.detail-backdrop {
    height: 400px;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.detail-backdrop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #151926, transparent);
}

.detail-content {
    padding: 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.detail-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 0.5rem;
    word-break: break-word;
    letter-spacing: -0.3px;
}

.detail-meta {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    align-items: center;
}

.detail-genre {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.genre-tag {
    background: rgba(0, 168, 225, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 168, 225, 0.25);
    color: #00a8e1;
}

.detail-description {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 1.2rem 0;
    font-size: 15px;
}

.detail-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

/* ============================================ */
/* PLAYER PAGE */
/* ============================================ */

.player-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 3000;
}

.player-page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.player-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-wrapper {
    flex: 1;
    position: relative;
    background: #000000;
    min-height: 0;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.player-controls-bar {
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.close-player {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.close-player:hover {
    background: #e50914;
    transform: scale(1.05);
}

.player-controls-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.quality-select {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.quality-select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.download-btn {
    background: rgba(0, 168, 225, 0.2);
    color: #00a8e1;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.download-btn:hover {
    background: rgba(0, 168, 225, 0.35);
    transform: scale(1.05);
}

/* ============================================ */
/* EPISODES PANEL */
/* ============================================ */

.episodes-panel {
    background: #151926;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.season-buttons,
.episode-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0.8rem 0;
}

.season-btn,
.episode-btn {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.season-btn:hover,
.episode-btn:hover {
    background: rgba(0, 168, 225, 0.5);
    transform: translateY(-1px);
}

.season-btn.active,
.episode-btn.active {
    background: #00a8e1;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 168, 225, 0.4);
}

/* ============================================ */
/* SEARCH RESULTS GRID */
/* ============================================ */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    padding: 2rem;
    min-height: 200px;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    grid-column: 1 / -1;
}

/* ============================================ */
/* ANIMATIONS */
/* ============================================ */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

/* Desktop Large (1600px+) */
@media (min-width: 1600px) {
    .hero {
        padding: 0 8rem;
    }

    .section {
        padding: 2.5rem 5rem;
    }

    .movie-card {
        min-width: 200px;
        max-width: 200px;
    }

    .movie-card img {
        height: 290px;
    }
}

/* Desktop Medium (1200px - 1599px) */
@media (max-width: 1400px) {
    .hero {
        padding: 0 4rem;
    }

    .hero-title {
        font-size: 48px;
    }

    .section {
        padding: 2rem;
    }

    .movie-card {
        min-width: 170px;
        max-width: 170px;
    }

    .movie-card img {
        height: 245px;
    }
}

/* Small Desktop / Large Tablet (1024px - 1199px) */
@media (max-width: 1200px) {
    .navbar {
        padding: 0.8rem 2rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-links a {
        font-size: 13px;
    }

    .search-container input {
        width: 160px;
    }

    .hero {
        padding: 0 3rem;
        height: 80vh;
    }

    .hero-title {
        font-size: 44px;
    }

    .movie-card {
        min-width: 160px;
        max-width: 160px;
    }

    .movie-card img {
        height: 230px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.7rem 1.5rem;
    }

    .nav-container {
        gap: 1rem;
    }

    .search-container {
        padding: 5px 12px;
    }

    .search-container input {
        width: 140px;
        font-size: 13px;
    }

    .hero {
        height: 75vh;
        min-height: 450px;
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .section {
        padding: 1.5rem;
    }

    .movie-card {
        min-width: 150px;
        max-width: 150px;
    }

    .movie-card img {
        height: 215px;
    }
}

/* Mobile Large (481px - 767px) */
@media (max-width: 768px) {
    .navbar {
        padding: 0.7rem 1.2rem;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .hamburger {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        flex: 1;
        justify-content: center;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-icon {
        font-size: 24px;
    }

    .search-container {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 0.2rem;
    }

    .search-container input {
        flex: 1;
        min-width: 0;
        width: auto;
    }

    .nav-center {
        order: 4;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-center.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 20px;
    }

    .hero {
        height: 70vh;
        min-height: 400px;
        padding: 0 1.5rem;
        margin-top: 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-play,
    .btn-info {
        width: 100%;
        justify-content: center;
        padding: 13px 24px;
        font-size: 15px;
    }

    .section {
        padding: 1.2rem 1rem;
    }

    .section-title {
        font-size: 20px;
    }

    .movie-card {
        min-width: 140px;
        max-width: 140px;
    }

    .movie-card img {
        height: 200px;
    }

    .movie-card-title {
        font-size: 13px;
    }

    .movie-card-year {
        font-size: 10px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
    }

    .hamburger span {
        width: 22px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .search-container {
        padding: 4px 10px;
        gap: 5px;
    }

    .search-container input {
        font-size: 12px;
        padding: 6px;
    }

    .search-container select {
        font-size: 10px;
        padding: 4px 8px;
        padding-right: 18px;
    }

    .search-container button {
        padding: 5px 12px;
        font-size: 11px;
    }

    .hero {
        height: 60vh;
        min-height: 350px;
        padding: 0 1rem;
        margin-top: 55px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 12px;
    }

    .btn-play,
    .btn-info {
        padding: 11px 20px;
        font-size: 14px;
    }

    .movie-card {
        min-width: 120px;
        max-width: 120px;
    }

    .movie-card img {
        height: 175px;
    }

    .movie-card-title {
        font-size: 12px;
    }

    .movie-card-badge {
        font-size: 9px;
        padding: 3px 7px;
    }
}
/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #00a8e1, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden !important;
}
/* Custom Video Controls */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.video-wrapper:hover .custom-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.control-btn:hover {
    background: #00a8e1;
    transform: scale(1.05);
}

.progress-bar {
    flex: 1;
    min-width: 200px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #00a8e1;
    border-radius: 50%;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #00a8e1;
    border-radius: 50%;
}

.time-display {
    font-size: 12px;
    color: white;
    font-family: monospace;
    min-width: 100px;
}

@media (max-width: 768px) {
    .custom-controls { padding: 8px 12px; gap: 8px; }
    .control-btn { width: 28px; height: 28px; font-size: 12px; }
    .time-display { font-size: 10px; min-width: 80px; }
    .progress-bar { min-width: 100px; }
}
/* Similar Content Section */
.similar-section {
    padding: 2rem;
    background: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.similar-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.similar-title i {
    color: #00a8e1;
}

.similar-grid {
display: flex;
flex-wrap: wrap;
    gap: 1rem;
}

.similar-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.similar-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,168,225,0.2);
}

.similar-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.similar-card-info {
    padding: 8px;
}

.similar-card-title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-card-year {
    font-size: 10px;
    color: #888;
    margin-top: 3px;
}

/* Cast & Crew Section */
.cast-section {
    padding: 1rem 2rem;
    background: #0a0e1a;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cast-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cast-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.cast-card {
    min-width: 100px;
    text-align: center;
}

.cast-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.cast-name {
    font-size: 12px;
    font-weight: 600;
}

.cast-character {
    font-size: 10px;
    color: #888;
}

/* Detail Stats */
.detail-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.stat-item i {
    color: #00a8e1;
    width: 20px;
}

/* Availability Badge */
.availability {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,168,225,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
}

.availability i {
    font-size: 10px;
    color: #00a8e1;
}

/* Hide ALL native video controls across browsers */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-volume-slider-container,
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-toggle-closed-captions-button {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    -webkit-appearance: none !important;
}

/* Firefox */
video::-moz-media-controls {
    display: none !important;
}

/* ============================================ */
/* PRIME VIDEO STYLE PLAYER LOADER */
/* ============================================ */

.player-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1420 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.player-loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.prime-loader-container {
    text-align: center;
    position: relative;
}

/* Animated rings */
.prime-ring {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.prime-ring svg {
    width: 100%;
    height: 100%;
    animation: rotate-ring 1.5s linear infinite;
}

.prime-ring circle {
    fill: none;
    stroke: #00a8e1;
    stroke-width: 3;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    stroke-linecap: round;
    animation: dash-ring 1.5s ease-in-out infinite;
}

@keyframes rotate-ring {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash-ring {
    0% {
        stroke-dashoffset: 200;
    }
    50% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 200;
    }
}

/* Prime Video dots animation */
.prime-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.prime-dots span {
    width: 10px;
    height: 10px;
    background: #00a8e1;
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.prime-dots span:nth-child(1) {
    animation-delay: 0s;
}

.prime-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.prime-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 60%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
        background: #00a8e1;
        box-shadow: 0 0 10px #00a8e1;
    }
}

/* Loading text */
.prime-loading-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00a8e1, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 15px;
}

.prime-loading-subtext {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

/* Buffering indicator */
.buffering-indicator {
    position: absolute;
    bottom: 80px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.7);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}

.buffering-indicator.show {
    opacity: 1;
}

.buffering-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,168,225,0.3);
    border-top-color: #00a8e1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.buffering-text {
    font-size: 12px;
    color: #00a8e1;
    font-weight: 500;
}

/* Quality Badge Animation */
.quality-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #00a8e1;
    border: 1px solid rgba(0,168,225,0.3);
    z-index: 100;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: monospace;
    letter-spacing: 1px;
}

.quality-badge.show {
    opacity: 1;
    transform: translateY(0);
}
/* Next episode indicator */
.next-episode {
    position: absolute;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,168,225,0.2));
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border-left: 3px solid #00a8e1;
    transform: translateX(120%);
    transition: transform 0.5s ease;
    z-index: 100;
}

.next-episode.show {
    transform: translateX(0);
}

.next-episode-title {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.next-episode-name {
    font-size: 14px;
    font-weight: 600;
    color: #00a8e1;
}

.next-episode-timer {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}
select#qualitySelect {
    background: black;
    color: cyan;
}
/* ============================================ */
/* HERO CAROUSEL - PRIME VIDEO STYLE */
/* ============================================ */

.hero-carousel {
    position: relative;
    height: 85vh;
    min-height: 500px;
    margin-top: 65px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.carousel-slide .hero {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5rem;
}

.carousel-slide .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #0a0e1a 0%, rgba(10,14,26,0.6) 50%, transparent 100%);
    z-index: 1;
}

.carousel-slide .hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    animation: fadeInUp 0.5s ease;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(0,0,0,0.5);
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0,168,225,0.8);
}

.carousel-btn.prev {
    left: 20px;
    border-radius: 0 8px 8px 0;
}

.carousel-btn.next {
    right: 20px;
    border-radius: 8px 0 0 8px;
}

/* Carousel Indicators/Dots */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 30px;
    border-radius: 5px;
    background: #00a8e1;
}

.carousel-dot:hover {
    background: #00a8e1;
}

/* Progress Bar for Auto Slide */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #00a8e1;
    width: 0%;
    z-index: 10;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .hero-carousel { height: 70vh; }
    .carousel-slide .hero { padding: 0 1.5rem; }
    .carousel-btn { width: 35px; height: 50px; font-size: 16px; }
    .carousel-btn.prev { left: 5px; }
    .carousel-btn.next { right: 5px; }
}


.search-page {
    padding-top: 80px;
    min-height: 100vh;
    background: #0a0e1a;
}

.search-header {
    padding: 2rem 3rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-header p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.search-filters {
    padding: 1rem 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.3);
}

.filter-chip {
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.filter-chip:hover {
    background: rgba(255,255,255,0.2);
}

.filter-chip.active {
    background: #00a8e1;
    color: white;
}

.filter-chip i {
    margin-right: 8px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 3rem;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 2rem 3rem 4rem;
}

.load-more-btn {
    background: linear-gradient(135deg, rgba(0,168,225,0.2), rgba(0,168,225,0.1));
    border: 1px solid rgba(0,168,225,0.3);
    color: #00a8e1;
    padding: 12px 40px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: #00a8e1;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,168,225,0.3);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.load-more-btn i {
    font-size: 14px;
}

/* Infinite Scroll Loading */
.infinite-loader {
    text-align: center;
    padding: 2rem;
    display: none;
}

.infinite-loader.show {
    display: block;
}

.infinite-loader .prime-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 64px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-results p {
    color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .search-header { padding: 1rem; }
    .search-filters { padding: 1rem; }
    .results-grid { padding: 1rem; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .load-more-btn { padding: 10px 30px; }
}
/* Dubs/Audio Language Switcher */
.dubs-container {
    background: #1a1e2a;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-left: 1rem;
}

.dubs-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-right: 8px;
}

.dubs-select {
    background: #00a8e1;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    outline: none;
}

.dubs-select option {
    background: #1a1e2a;
    color: white;
}

.dubs-select:hover {
    background: #0088b5;
}

/* Player Controls Right - Updated layout */
.player-controls-right {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}