/* Common Slider Styles */
.content-slider, .streaming-section .content-slider {
    position: relative;
    padding: 0.5rem 0;
}

.content-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
    touch-action: pan-x pan-y;
}

.content-wrapper::-webkit-scrollbar {
    display: none;
}

.content-container {
    display: flex;
    gap: 1.25rem;
    padding: 0.5rem 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Slider Button Styles */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev-btn {
    left: 1rem;
}

.slider-btn.next-btn {
    right: 1rem;
}

.slider-btn i {
    font-size: 1.2rem;
}

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

/* Content Slider Container */
.content-slider {
    position: relative;
    padding: 0.5rem 0;
    margin: 1rem 0;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.nav-btn.prev {
    left: 0;
}

.nav-btn.next {
    right: 0;
}


@media (max-width: 768px) {
    .slider-btn {
        width: 35px;
        height: 35px;
    }

    .slider-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slider-btn {
        width: 30px;
        height: 30px;
    }

    .slider-btn i {
        font-size: 0.9rem;
    }
}

/* Touch Scroll Indicator */
.content-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, 
        var(--primary-color) var(--scroll-width, 0%), 
        rgba(255, 255, 255, 0.1) var(--scroll-width, 0%));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.content-wrapper:active::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .content-wrapper {
        margin: 0 2.5rem;
    }

    .slider-btn, .prev-btn, .next-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        margin: 0 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff69b4;
    --primary-hover: #ff8cc6;
    --text-color: #ffffff;
    --background: #0a0a0a;
    --nav-bg: rgba(10, 10, 10, 0.95);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #570249 100%);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: background 0.5s ease;
}

:root {
    --primary-color: #ff69b4;
    --primary-hover: #ff8cc6;
    --text-color: #ffffff;
    --background: #0a0a0a;
    --nav-bg: rgba(10, 10, 10, 0.95);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #570249 100%);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: background 0.5s ease;
}

@keyframes falling {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

#cherry-blossom-container {
    position: fixed;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 50px);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: absolute;
    background-color: #ffd7e6;
    border-radius: 150% 0 150% 0;
    animation: falling linear infinite;
    pointer-events: none;
}

.petal::after {
    content: '';
    position: absolute;
    top: -14%;
    left: -10%;
    display: block;
    width: 100%;
    height: 100%;
    background-color: #ffd7e6;
    border-radius: 150% 0 150% 0;
    transform: rotate(45deg);
}

.container {
    background-color: var(--background);
    width: 100%;
    max-width: 1600px;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(10, 10, 10, 0.75);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
        transition: background 0.5s ease;
    }

    .container {
        border-radius: 30px;
        overflow: hidden;
        position: relative;
        height: calc(100vh - 1rem);
        display: flex;
        flex-direction: column;
    }

    .navigation {
        padding: 0.8rem 1rem;
        background: rgba(10, 10, 10, 0.75);
        position: absolute;
        z-index: 1000;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        width: 100%;
        top: 0;
        left: 0;
    }

    main {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: relative;
        margin-top: -60px;
    }

    #hero {
        position: relative;
        height: 650px;
        margin-top: 0;
        padding-top: 60px;
        background-size: cover !important;
        background-position: top !important;
        border-radius: 30px 30px 0 0;
        overflow: hidden;
        overflow-x: hidden;
    }

    .hero-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100%;
        width: 100%;
        padding: 1rem;
        background: none;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        overflow-x: hidden;
    }
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-left .logo {
    display: flex;
    align-items: center;
}

.nav-left .logo img {
    display: block;
    width: auto;
    height: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-left .logo:hover img {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-center ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-center a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.85;
    padding: 0.5rem 0;
    position: relative;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-center a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.nav-center a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-right a {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.75rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.nav-right a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-right i {
    font-size: 1rem;
}

.nav-right .discord-icon:hover {
    color: #7289da;
    background: rgba(114, 137, 218, 0.15);
    border-color: rgba(114, 137, 218, 0.2);
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.15);
}

@media (max-width: 768px) {
    nav {
        top: 1rem;
        padding: 0.8rem 1rem;
    }

    .nav-center, .nav-right {
        display: none;
    }

    .nav-left {
        width: 100%;
        justify-content: center;
    }

    .nav-left .logo img {
        height: 24px;
    }
}

#hero {
    width: 100%;
    height: 100vh;
    padding: 8rem 4rem;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.genre, .release-date {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.genre {
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.release-date {
    color: #888;
    background: rgba(255, 255, 255, 0.05);
}

.movie-title {
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
}

.movie-title img {
    max-width: 300px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.3));
    transition: filter 0.3s ease;
}

.movie-title img:hover {
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.4));
}

.movie-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.9;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.watch-now {
    background-color: var(--primary-color);
    color: var(--background);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.watch-now:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.bookmark {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bookmark:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.rating {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-number {
    color: var(--text-color);
    font-weight: 600;
}

.movie-poster {
    width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    position: relative;
}

.movie-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.movie-poster:hover {
    transform: translateY(-5px);
}

.movie-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide mobile nav by default (desktop) */
.hamburger-menu,
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin-left: 0.75rem;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }

    .mobile-menu {
        display: block;
        position: absolute;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 2000;
        transition: right 0.3s ease;
        border-radius: 30px 0 0 30px;
    }

    .mobile-menu.active {
        right: 0;
    }

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

    .mobile-menu .logo img {
        height: 30px;
        width: auto;
    }

    .mobile-menu-content {
        padding: 1rem;
        height: calc(100% - 70px);
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
        margin: 0;
        background: linear-gradient(135deg, #1a0f1f 0%, #2a1f2f 100%);
        min-height: 100vh;
        transition: background 0.5s ease;
    }

    .container {
        border-radius: 20px;
        padding: 0;
        margin: 0;
        width: 100%;
        height: auto;
        background: rgba(10, 10, 10, 0.95);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        overflow: hidden;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    nav {
        padding: 0.8rem 1rem;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    }

    .nav-left {
        width: auto;
    }

    .logo img {
        height: 16px;
    }

    /* Hide desktop navigation */
    .nav-center {
        display: none;
    }

    .nav-right {
        display: flex;
        gap: 1rem;
    }

    .nav-right a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
    }

    #hero {
        position: relative;
        height: 650px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background-size: cover !important;
        background-position: top !important;
        padding-bottom: 1rem;
    }

    #hero::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70%;
        background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.5) 50%, transparent 100%);
        z-index: 1;
    }

    .hero-content {
        width: 100%;
        padding: 1rem;
        background: none;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .movie-poster {
        display: none;
    }

    .hero-content {
        width: 100%;
        padding: 1rem;
        background: none;
        position: relative;
        z-index: 2;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 100vh;
    }

    .meta {
        display: flex;
        gap: 0.35rem;
        flex-wrap: wrap;
        margin-bottom: 0.5rem;
    }

    .genre {
        display: none;
    }

    .release-date {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.6);
    }

    .movie-title {
        margin: 0.5rem 0;
        font-size: 2rem;
    }

    .movie-title img {
        max-width: 200px;
    }

    .movie-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
        color: rgba(255, 255, 255, 0.9);
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.75rem;
        justify-content: flex-start;
    }

    .watch-now {
        width: 100%;
        padding: 1rem;
        border-radius: 25px;
        font-size: 1rem;
        background: var(--primary-color);
        border: none;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .bookmark {
        width: 100%;
        padding: 0.8rem;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .rating {
        width: 100%;
        padding: 0.8rem;
        border-radius: 25px;
        background: rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .hero-content .actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.75rem;
        justify-content: flex-start;
    }

    .hero-content .actions button {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .hero-content .actions .watch-now {
        padding: 0;
        width: 42px;
        height: 42px;
    }

    .hero-content .actions .watch-now span {
        display: none;
    }

    .hero-content .actions .bookmark {
        padding: 0;
        width: 42px;
        height: 42px;
    }

    .hero-content .actions .rating {
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content .actions i {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }

    .hamburger-menu {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin-left: 0.75rem;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        transition: all 0.3s ease;
    }

    .hamburger-menu:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .hamburger-menu i {
        font-size: 1rem;
    }

    .mobile-menu {
        position: absolute;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 2000;
        transition: right 0.3s ease;
        border-radius: 30px 0 0 30px;
    }

    .mobile-menu.active {
        right: 0;
    }

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

    .close-menu {
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        padding: 0.5rem;
        cursor: pointer;
    }

    .mobile-menu-content {
        padding: 1rem;
        height: calc(100% - 70px);
        overflow-y: auto;
    }

    .mobile-menu-content ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-content li {
        margin-bottom: 1rem;
    }

    .mobile-menu-content a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        display: flex;
        align-items: center;
        padding: 0.5rem;
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    .mobile-menu-content a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-content i {
        margin-right: 1rem;
        width: 20px;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}

/* Very small screens */
@media screen and (max-width: 480px) {
    .nav-center ul {
        gap: 1.5rem;
    }

    .nav-center ul li a {
        font-size: 0.9rem;
    }

    .movie-description {
        -webkit-line-clamp: 5;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
        padding: 1.5rem;
    }

    .container {
        max-width: 100%;
    }

    #hero {
        padding: 3rem 2rem;
    }

    .hero-content {
        width: 60%;
    }

    .movie-poster {
        width: 35%;
    }

    .movie-title img {
        max-width: 350px !important;
    }
}

/* Adjustments for very small screens */
@media screen and (max-width: 480px) {
    .nav-center ul {
        gap: 0.5rem;
    }

    .nav-center ul li a {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .movie-title img {
        max-width: 250px !important;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    .watch-now {
        width: 100%;
        max-width: none;
    }

    .bookmark {
        width: 100%;
        max-width: none;
    }

    .rating {
        width: 100%;
        justify-content: center;
    }
}

#top-content {
    width: 100%;
    padding: 4rem;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, var(--background) 100%);
}

#top-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#top-content h2 span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.streaming-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.streaming-section h2 span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.streaming-section {
    position: relative;
    width: 100%;
    padding: 20px;
    color: white;
    --background-image: none;
}

.streaming-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.3;
    z-index: 0;
    transition: background-image 0.3s ease;
}

.streaming-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(18, 18, 18, 1) 100%);
    z-index: 1;
}

.streaming-section > * {
    position: relative;
    z-index: 2;
}

.streaming-tabs {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.8rem;
    z-index: 3;
}

.streaming-tabs .tab-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.streaming-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.streaming-tabs .tab-btn.active {
    background: rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.3);
}

@media (max-width: 768px) {
    .streaming-tabs {
        position: relative;
        top: unset;
        right: unset;
        justify-content: center;
        padding: 1rem;
        margin-top: 1rem;
    }

    .streaming-tabs .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

.content-slider {
    position: relative;
    padding: 0.5rem 0;
    margin: 1rem 0;
}

.content-wrapper {
    overflow-y: hidden;
    overflow-x: auto;
    position: relative;
    padding: 2rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-wrapper::-webkit-scrollbar {
    display: none;
}

/* For discover.html */
.discover-page .content-container {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    overflow-x: scroll; /* Allow horizontal scrolling */
    scroll-behavior: smooth; /* Enable smooth scrolling */
    padding: 1rem;
    scrollbar-width: none; /* For Firefox */
}

.discover-page .content-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
}

/* For index.html */
.index-page .content-container {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    scroll-behavior: smooth; /* Enable smooth scrolling */
    padding: 1rem;
    scrollbar-width: none; /* For Firefox */
}


.content-item {
    position: relative;
    flex: 0 0 180px;
    transition: transform 0.3s ease;
}

.content-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.content-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
}

.content-item:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 105, 180, 0.2);
}

.content-item .rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.content-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 12px;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.content-item:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    opacity: 0.5;
    z-index: 1;
}


@media screen and (max-width: 768px) {
    #top-content {
        padding: 2rem 1rem;
    }

    .content-item {
        flex: 0 0 140px;
    }

    .content-item img {
        height: 210px;
    }

    .content-item .rank {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
}

.search-input-container i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 1rem;
}

#search-input {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
}

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

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

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

.search-results {
    margin-top: 2rem;
    max-height: 700px; /* Adjust height as needed */
    overflow-y: auto;
    scrollbar-width: none; /* For Firefox */
}

/* For Webkit browsers (Chrome, Edge, Safari) */
.search-results::-webkit-scrollbar {
    display: none;
}


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

.search-result-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    transform: translateY(-5px);
}

.search-result-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.search-result-item .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.search-result-item .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-result-item .meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .search-container {
        margin: 1rem;
        padding: 0;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .search-result-item img {
        height: 225px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

@media (max-width: 768px) {
    .toast {
        bottom: 4rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        max-width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Server Selection Styles */
#servers {
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
}

.servers-container {
    max-width: 800px;
    margin: 0 auto;
}

.servers-container h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.server-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.server-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.server-button i {
    font-size: 1rem;
    opacity: 0.7;
}

.server-button span {
    font-size: 1rem;
}

.server-quality {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem !important;
}

.server-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.server-button.active {
    background: rgba(255, 105, 180, 0.3);
    border: 1px solid rgba(255, 105, 180, 0.3);
}

@media (max-width: 768px) {
    #servers {
        padding: 1.5rem 1rem;
    }

    .server-button {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        justify-content: center;
        padding: 0.8rem;
    }
}

.content-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.card-image {
    position: relative;
}

/* Saved Content Styles */
.content-section {
    padding: 2rem 3rem;
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    position: relative;
}

.content-card {
    position: relative;
    width: 200px;
    margin: 10px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 105, 180, 0.2);
}

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

.card-image {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.content-card:hover .card-image::before {
    opacity: 1;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.content-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.remove-bookmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-bookmark:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
    color: #ff3d71;
}

.remove-bookmark i {
    transition: transform 0.2s ease;
}

.remove-bookmark:hover i {
    transform: scale(1.1);
}

.card-info {
    position: relative;
    padding: 1.2rem;
    background: linear-gradient(180deg, rgb(10 10 10 / 0%) 0%, rgb(0 0 0 / 0%) 100%)
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-info .meta {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    align-items: center;
}

.card-info .meta .rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-info .meta .rating i {
    color: #ffd700;
}

@media (max-width: 768px) {
    .content-card {
        border-radius: 12px;
    }

    .content-type {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        top: 0.7rem;
        left: 0.7rem;
    }

    .remove-bookmark {
        top: 0.7rem;
        right: 0.7rem;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .card-info {
        padding: 1rem;
    }

    .card-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .card-info .meta {
        font-size: 0.8rem;
        gap: 0.8rem;
    }
}

/* Saved Hero Section */
.saved-hero {
    position: relative;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--background-color) 0%, transparent 100%);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.saved-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px; /* Space for navigation */
}

.saved-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.saved-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.saved-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.saved-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.saved-stats .stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.saved-stats .stat span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.saved-stats .stat .label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, 
        rgba(var(--primary-color-rgb), 0.1) 0%,
        rgba(var(--background-color-rgb), 0) 70%);
    z-index: 1;
}

/* Responsive adjustments for saved hero */
@media (max-width: 768px) {
    .saved-hero {
        padding: 3rem 1rem;
    }

    .saved-hero .hero-content {
        padding-top: 80px;
    }

    .saved-hero h1 {
        font-size: 2rem;
    }

    .saved-hero p {
        font-size: 1rem;
    }

    .saved-stats {
        gap: 2rem;
    }

    .saved-stats .stat i {
        font-size: 1.5rem;
    }

    .saved-stats .stat span {
        font-size: 1.2rem;
    }

    .saved-stats .stat .label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .saved-hero .hero-content {
        padding-top: 70px;
    }
}

/* Movie Page Styles */
.movies-hero {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
                url('https://image.tmdb.org/t/p/original/628Dep6AxEtDxjZoGP78TsOxYbK.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.1;
    z-index: -1;
    border-radius: 20px;
}

.movies-hero .hero-content, .tvshows-hero .hero-content {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.movies-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.movies-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Filters Section */
.filters-section {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.filters-container {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    flex: 1;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Dark theme for select dropdown */
select.filter-select {
    background-color: var(--card-bg);
    color: var(--text-color);
}

select.filter-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 12px;
}

/* For Webkit browsers like Chrome/Safari */
select.filter-select::-webkit-listbox {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* For Firefox */
select.filter-select option:checked,
select.filter-select option:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px 100px var(--primary-color) inset;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.filter-select option {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 0.6rem;
    font-size: 0.9rem;
    white-space: normal;
    min-width: 300px;
}

/* Featured Section */
.featured-section,
.featured-slider,
.featured-row,
.featured-card,
.featured-card-overlay,
.featured-meta {
    display: none;
}

/* Movies Grid */
.movies-grid-section {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.movies-grid, .tvshows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-card, .tvshow-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.movie-card:hover, .tvshow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 150%;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.movie-card:hover .card-overlay, .tvshow-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-overlay .rating i {
    color: #ffd700;
}

.card-info {
    padding: 1rem;
}

.card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

#load-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .movies-hero {
        padding: 4rem 1rem;
    }

    .movies-hero h1 {
        font-size: 2.5rem;
    }

    .movies-hero p {
        font-size: 1rem;
    }

    .filters-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .movies-grid-section {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tvshow-card img {
        height: 260px;
        object-fit: cover;
    }

    .tvshow-card .card-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tvshow-card img {
        height: 220px;
    }
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

.loading {
    color: var(--text-secondary);
}

.error {
    color: var(--error-color);
}

/* Dark option style */
.dark-option {
    background-color: #121212 !important;
    color: #ffffff !important;
}

.dark-option:hover {
    background-color: var(--primary-color) !important;
}

.actions .tv-controls {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 105, 180, 0.2);
}

.actions .season-select,
.actions .episode-select {
    flex: 1;
}

.actions .tv-controls label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.actions .custom-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions .custom-select:hover,
.actions .custom-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

.actions .custom-select option {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 0.6rem;
    font-size: 0.9rem;
    white-space: normal;
    min-width: 300px;
}

@media (max-width: 768px) {
    .actions .tv-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem;
        margin-top: 1.2rem;
    }

    .actions .season-select,
    .actions .episode-select {
        width: 100%;
    }

    .actions .custom-select {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
}

.tv-controls {
    margin-bottom: 3rem;
    width: 100%;
}

.tv-controls-header {
    margin-bottom: 2rem;
}

.tv-controls h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.tv-selectors {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    max-width: 700px;
    padding: 0.5rem 0;
    justify-content: flex-start;
}

.select-wrapper {
    position: relative;
    width: 280px;
}

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.select-wrapper:hover .select-arrow {
    transform: translateY(-50%) translateY(2px);
}

.custom-select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.2rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 105, 180, 0.3);
}

.custom-select:focus {
    outline: none;
    background: rgba(40, 40, 40, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color),
                0 0 20px rgba(255, 105, 180, 0.2);
}

.custom-select option {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 1rem;
    font-size: 0.95rem;
    white-space: normal;
    min-width: 300px;
}

#episode.custom-select {
    min-width: 300px;
}

@media (max-width: 768px) {
    .custom-select option {
        min-width: unset;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    #episode.custom-select {
        min-width: unset;
    }
}

#player-section {
    width: 100%;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#player-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.player-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Animation for hero content */
#hero {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#hero.player-active {
    transform: translateY(20px);
}

@media (max-width: 768px) {
    .player-container {
        border-radius: 0;
    }
    
    #hero.player-active {
        transform: translateY(10px);
    }
}

.tvshows-hero {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
                url('https://image.tmdb.org/t/p/original/uDgy6hyPd82kOHh6I95FLtLnj6p.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tvshows-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tvshows-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tvshows-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tvshows-hero {
        padding: 4rem 1rem;
    }

    .tvshows-hero h1 {
        font-size: 2.5rem;
    }

    .tvshows-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .tvshow-card img {
        height: 260px;
        object-fit: cover;
    }

    .tvshow-card .card-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tvshow-card img {
        height: 220px;
    }
}

/* Content Item Hover Styles */
.content-item {
    position: relative;
    flex: 0 0 180px;
    transition: transform 0.3s ease;
}

.content-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
}

.content-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%);
    color: white;
    border-radius: 0 0 12px 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.content-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.content-item .title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-item .rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.content-item .rating i {
    color: #ffd700;
}

@media (max-width: 768px) {
    .content-item {
        flex: 0 0 140px;
    }

    .content-item img {
        height: 210px;
    }

    .content-item .overlay {
        padding: 0.75rem;
    }

    .content-item .title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .content-item .rating {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .content-item {
        flex: 0 0 120px;
    }

    .content-item img {
        height: 180px;
    }

    .content-item .overlay {
        padding: 0.5rem;
    }
}

.streaming-section {
    position: relative;
    width: 100%;
    padding: 20px;
    color: white;
    --background-image: none;
}

.streaming-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.3;
    z-index: 0;
    transition: background-image 0.3s ease;
}

.streaming-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(18, 18, 18, 1) 100%);
    z-index: 1;
}

.streaming-section > * {
    position: relative;
    z-index: 2;
}

.streaming-tabs {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.8rem;
    z-index: 3;
}

.streaming-tabs .tab-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.streaming-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.streaming-tabs .tab-btn.active {
    background: rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.3);
}

@media (max-width: 768px) {
    .streaming-tabs {
        position: relative;
        top: unset;
        right: unset;
        justify-content: center;
        padding: 1rem;
        margin-top: 1rem;
    }

    .streaming-tabs .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

.content-slider {
    position: relative;
    padding: 0.5rem 0;
    margin: 1rem 0;
}

.content-wrapper {
    overflow-y: hidden;
    overflow-x: auto;
    position: relative;
    padding: 2rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-wrapper::-webkit-scrollbar {
    display: none;
}

.content-container {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.content-item {
    position: relative;
    flex: 0 0 180px;
    transition: transform 0.3s ease;
}

.content-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.content-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
}

.content-item:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 105, 180, 0.2);
}

.content-item .rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.content-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 12px;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.content-item:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    opacity: 0.5;
    z-index: 1;
}


@media screen and (max-width: 768px) {
    #top-content {
        padding: 2rem 1rem;
    }

    .content-item {
        flex: 0 0 140px;
    }

    .content-item img {
        height: 210px;
    }

    .content-item .rank {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
}

.search-input-container i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 1rem;
}

#search-input {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
}

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

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

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

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

.search-result-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    transform: translateY(-5px);
}

.search-result-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.search-result-item .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.search-result-item .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-result-item .meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .search-container {
        margin: 1rem;
        padding: 0;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .search-result-item img {
        height: 225px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

@media (max-width: 768px) {
    .toast {
        bottom: 4rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        max-width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Server Selection Styles */
#servers {
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
}

.servers-container {
    max-width: 800px;
    margin: 0 auto;
}

.servers-container h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.server-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.server-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.server-button i {
    font-size: 1rem;
    opacity: 0.7;
}

.server-button span {
    font-size: 1rem;
}

.server-quality {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem !important;
}

.server-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.server-button.active {
    background: rgba(255, 105, 180, 0.3);
    border: 1px solid rgba(255, 105, 180, 0.3);
}

@media (max-width: 768px) {
    #servers {
        padding: 1.5rem 1rem;
    }

    .server-button {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        justify-content: center;
        padding: 0.8rem;
    }
}

.content-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.card-image {
    position: relative;
}

/* Saved Content Styles */
.content-section {
    padding: 2rem 3rem;
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.content-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 105, 180, 0.2);
}

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

.card-image {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.content-card:hover .card-image::before {
    opacity: 1;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.content-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.remove-bookmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-bookmark:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
    color: #ff3d71;
}

.remove-bookmark i {
    transition: transform 0.2s ease;
}

.remove-bookmark:hover i {
    transform: scale(1.1);
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-info .meta {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    align-items: center;
}

.card-info .meta .rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-info .meta .rating i {
    color: #ffd700;
}

@media (max-width: 768px) {
    .content-card {
        border-radius: 12px;
    }

    .content-type {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        top: 0.7rem;
        left: 0.7rem;
    }

    .remove-bookmark {
        top: 0.7rem;
        right: 0.7rem;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .card-info {
        padding: 1rem;
    }

    .card-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .card-info .meta {
        font-size: 0.8rem;
        gap: 0.8rem;
    }
}

/* Saved Hero Section */
.saved-hero {
    position: relative;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--background-color) 0%, transparent 100%);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.saved-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px; /* Space for navigation */
}

.saved-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.saved-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.saved-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.saved-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.saved-stats .stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.saved-stats .stat span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.saved-stats .stat .label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, 
        rgba(var(--primary-color-rgb), 0.1) 0%,
        rgba(var(--background-color-rgb), 0) 70%);
    z-index: 1;
}

/* Responsive adjustments for saved hero */
@media (max-width: 768px) {
    .saved-hero {
        padding: 3rem 1rem;
    }

    .saved-hero .hero-content {
        padding-top: 80px;
    }

    .saved-hero h1 {
        font-size: 2rem;
    }

    .saved-hero p {
        font-size: 1rem;
    }

    .saved-stats {
        gap: 2rem;
    }

    .saved-stats .stat i {
        font-size: 1.5rem;
    }

    .saved-stats .stat span {
        font-size: 1.2rem;
    }

    .saved-stats .stat .label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .saved-hero .hero-content {
        padding-top: 70px;
    }
}

/* Movie Page Styles */
.movies-hero {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
                url('https://image.tmdb.org/t/p/original/628Dep6AxEtDxjZoGP78TsOxYbK.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.1;
    z-index: -1;
    border-radius: 20px;
}

.movies-hero .hero-content, .tvshows-hero .hero-content {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.movies-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.movies-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Filters Section */
.filters-section {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.filters-container {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    flex: 1;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Dark theme for select dropdown */
select.filter-select {
    background-color: var(--card-bg);
    color: var(--text-color);
}

select.filter-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 12px;
}

/* For Webkit browsers like Chrome/Safari */
select.filter-select::-webkit-listbox {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* For Firefox */
select.filter-select option:checked,
select.filter-select option:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px 100px var(--primary-color) inset;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.filter-select option {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 0.6rem;
    font-size: 0.9rem;
    white-space: normal;
    min-width: 300px;
}

/* Featured Section */
.featured-section,
.featured-slider,
.featured-row,
.featured-card,
.featured-card-overlay,
.featured-meta {
    display: none;
}

/* Movies Grid */
.movies-grid-section {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.movies-grid, .tvshows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-card, .tvshow-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.movie-card:hover, .tvshow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 150%;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.movie-card:hover .card-overlay, .tvshow-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-overlay .rating i {
    color: #ffd700;
}

.card-info {
    padding: 1rem;
}

.card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

#load-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .movies-hero {
        padding: 4rem 1rem;
    }

    .movies-hero h1 {
        font-size: 2.5rem;
    }

    .movies-hero p {
        font-size: 1rem;
    }

    .filters-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .movies-grid-section {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tvshow-card img {
        height: 260px;
        object-fit: cover;
    }

    .tvshow-card .card-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tvshow-card img {
        height: 220px;
    }
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

.loading {
    color: var(--text-secondary);
}

.error {
    color: var(--error-color);
}

/* Dark option style */
.dark-option {
    background-color: #121212 !important;
    color: #ffffff !important;
}

.dark-option:hover {
    background-color: var(--primary-color) !important;
}

.actions .tv-controls {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 105, 180, 0.2);
}

.actions .season-select,
.actions .episode-select {
    flex: 1;
}

.actions .tv-controls label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.actions .custom-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions .custom-select:hover,
.actions .custom-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.2);
}

.actions .custom-select option {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 0.6rem;
    font-size: 0.9rem;
    white-space: normal;
    min-width: 300px;
}

@media (max-width: 768px) {
    .actions .tv-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem;
        margin-top: 1.2rem;
    }

    .actions .season-select,
    .actions .episode-select {
        width: 100%;
    }

    .actions .custom-select {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
}

.tv-controls {
    margin-bottom: 3rem;
    width: 100%;
}

.tv-controls-header {
    margin-bottom: 2rem;
}

.tv-controls h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.tv-selectors {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    max-width: 700px;
    padding: 0.5rem 0;
    justify-content: flex-start;
}

.select-wrapper {
    position: relative;
    width: 280px;
}

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.select-wrapper:hover .select-arrow {
    transform: translateY(-50%) translateY(2px);
}

.custom-select {
    width: 100%;
    padding: 1rem 3rem 1rem 1.2rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select:hover {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 105, 180, 0.3);
}

.custom-select:focus {
    outline: none;
    background: rgba(40, 40, 40, 0.95);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color),
                0 0 20px rgba(255, 105, 180, 0.2);
}

.custom-select option {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 1rem;
    font-size: 0.95rem;
    white-space: normal;
    min-width: 300px;
}

#episode.custom-select {
    min-width: 300px;
}

@media (max-width: 768px) {
    .custom-select option {
        min-width: unset;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    #episode.custom-select {
        min-width: unset;
    }
}

#player-section {
    width: 100%;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#player-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.player-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Animation for hero content */
#hero {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#hero.player-active {
    transform: translateY(20px);
}

@media (max-width: 768px) {
    .player-container {
        border-radius: 0;
    }
    
    #hero.player-active {
        transform: translateY(10px);
    }
}

.tvshows-hero {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
                url('https://image.tmdb.org/t/p/original/uDgy6hyPd82kOHh6I95FLtLnj6p.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.tvshows-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tvshows-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tvshows-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tvshows-hero {
        padding: 4rem 1rem;
    }

    .tvshows-hero h1 {
        font-size: 2.5rem;
    }

    .tvshows-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .tvshow-card img {
        height: 260px;
        object-fit: cover;
    }

    .tvshow-card .card-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tvshow-card img {
        height: 220px;
    }
}

/* Content Item Hover Styles */
.content-item {
    position: relative;
    flex: 0 0 180px;
    transition: transform 0.3s ease;
}

.content-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
}

.content-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0) 100%);
    color: white;
    border-radius: 0 0 12px 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.content-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.content-item .title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-item .rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.content-item .rating i {
    color: #ffd700;
}

@media (max-width: 768px) {
    .content-item {
        flex: 0 0 140px;
    }

    .content-item img {
        height: 210px;
    }

    .content-item .overlay {
        padding: 0.75rem;
    }

    .content-item .title {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .content-item .rating {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .content-item {
        flex: 0 0 120px;
    }

    .content-item img {
        height: 180px;
    }

    .content-item .overlay {
        padding: 0.5rem;
    }
}

.streaming-section {
    position: relative;
    width: 100%;
    padding: 20px;
    color: white;
    --background-image: none;
}

.streaming-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.3;
    z-index: 0;
    transition: background-image 0.3s ease;
}

.streaming-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(18, 18, 18, 1) 100%);
    z-index: 1;
}

.streaming-section > * {
    position: relative;
    z-index: 2;
}

.streaming-tabs {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.8rem;
    z-index: 3;
}

.streaming-tabs .tab-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.streaming-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.streaming-tabs .tab-btn.active {
    background: rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.3);
}

@media (max-width: 768px) {
    .streaming-tabs {
        position: relative;
        top: unset;
        right: unset;
        justify-content: center;
        padding: 1rem;
        margin-top: 1rem;
    }

    .streaming-tabs .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

.content-slider {
    position: relative;
    padding: 0.5rem 0;
    margin: 1rem 0;
}

.content-wrapper {
    overflow-y: hidden;
    overflow-x: auto;
    position: relative;
    padding: 2rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.content-wrapper::-webkit-scrollbar {
    display: none;
}

.content-container {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.content-item {
    position: relative;
    flex: 0 0 180px;
    transition: transform 0.3s ease;
}

.content-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.content-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
}

.content-item:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 2;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 105, 180, 0.2);
}

.content-item .rank {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.content-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 12px;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

.content-item:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    opacity: 0.5;
    z-index: 1;
}


@media screen and (max-width: 768px) {
    #top-content {
        padding: 2rem 1rem;
    }

    .content-item {
        flex: 0 0 140px;
    }

    .content-item img {
        height: 210px;
    }

    .content-item .rank {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
    }
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
}

.search-input-container i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 1rem;
}

#search-input {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
}

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

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

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


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

.search-result-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.search-result-item:hover {
    transform: translateY(-5px);
}

.search-result-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.search-result-item .info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.search-result-item .title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-result-item .meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .search-container {
        margin: 1rem;
        padding: 0;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .search-result-item img {
        height: 225px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

@media (max-width: 768px) {
    .toast {
        bottom: 4rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        max-width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Server Selection Styles */
#servers {
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.95) 100%);
}

.servers-container {
    max-width: 800px;
    margin: 0 auto;
}

.servers-container h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.server-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.server-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.server-button i {
    font-size: 1rem;
    opacity: 0.7;
}

.server-button span {
    font-size: 1rem;
}

.server-quality {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem !important;
}

.server-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.server-button.active {
    background: rgba(255, 105, 180, 0.3);
    border: 1px solid rgba(255, 105, 180, 0.3);
}

@media (max-width: 768px) {
    #servers {
        padding: 1.5rem 1rem;
    }

    .server-button {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        justify-content: center;
        padding: 0.8rem;
    }
}

.content-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.card-image {
    position: relative;
}

/* Saved Content Styles */
.content-section {
    padding: 2rem 3rem;
    margin-bottom: 2rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.content-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(255, 105, 180, 0.2);
}

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

.card-image {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.content-card:hover .card-image::before {
    opacity: 1;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.content-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.remove-bookmark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-bookmark:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
    color: #ff3d71;
}

.remove-bookmark i {
    transition: transform 0.2s ease;
}

.remove-bookmark:hover i {
    transform: scale(1.1);
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-info .meta {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    align-items: center;
}

.card-info .meta .rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-info .meta .rating i {
    color: #ffd700;
}

@media (max-width: 768px) {
    .content-card {
        border-radius: 12px;
    }

    .content-type {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        top: 0.7rem;
        left: 0.7rem;
    }

    .remove-bookmark {
        top: 0.7rem;
        right: 0.7rem;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .card-info {
        padding: 1rem;
    }

    .card-info h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .card-info .meta {
        font-size: 0.8rem;
        gap: 0.8rem;
    }
}

/* Saved Hero Section */
.saved-hero {
    position: relative;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--background-color) 0%, transparent 100%);
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.saved-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px; /* Space for navigation */
}

.saved-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.saved-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.saved-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.saved-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.saved-stats .stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.saved-stats .stat span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.saved-stats .stat .label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, 
        rgba(var(--primary-color-rgb), 0.1) 0%,
        rgba(var(--background-color-rgb), 0) 70%);
    z-index: 1;
}

/* Responsive adjustments for saved hero */
@media (max-width: 768px) {
    .saved-hero {
        padding: 3rem 1rem;
    }

    .saved-hero .hero-content {
        padding-top: 80px;
    }

    .saved-hero h1 {
        font-size: 2rem;
    }

    .saved-hero p {
        font-size: 1rem;
    }

    .saved-stats {
        gap: 2rem;
    }

    .saved-stats .stat i {
        font-size: 1.5rem;
    }

    .saved-stats .stat span {
        font-size: 1.2rem;
    }

    .saved-stats .stat .label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .saved-hero .hero-content {
        padding-top: 70px;
    }
}

/* Movie Page Styles */
.movies-hero {
    position: relative;
    width: 100%;
    padding: 6rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
                url('https://image.tmdb.org/t/p/original/628Dep6AxEtDxjZoGP78TsOxYbK.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.1;
    z-index: -1;
    border-radius: 20px;
}

.movies-hero .hero-content, .tvshows-hero .hero-content {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.movies-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #FF3D71, #7928CA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.movies-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Filters Section */
.filters-section {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.filters-container {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    flex: 1;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Dark theme for select dropdown */
select.filter-select {
    background-color: var(--card-bg);
    color: var(--text-color);
}

select.filter-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 12px;
}

/* For Webkit browsers like Chrome/Safari */
select.filter-select::-webkit-listbox {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* For Firefox */
select.filter-select option:checked,
select.filter-select option:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 10px 100px var(--primary-color) inset;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.filter-select option {
    background: #1a1a1a;
    color: var(--text-color);
    padding: 0.6rem;
    font-size: 0.9rem;
    white-space: normal;
    min-width: 300px;
}

/* Featured Section */
.featured-section,
.featured-slider,
.featured-row,
.featured-card,
.featured-card-overlay,
.featured-meta {
    display: none;
}

/* Movies Grid */
.movies-grid-section {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.movies-grid, .tvshows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-card, .tvshow-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.movie-card:hover, .tvshow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-image {
    position: relative;
    width: 100%;
    padding-top: 150%;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.movie-card:hover .card-overlay, .tvshow-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay .rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-history {
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 0px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    
}

.card-overlay .rating i {
    color: #ffd700;
}

.card-info {
    padding: 1rem;
}

.card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-info .meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.load-more {
    text-align: center;
    margin-top: 3rem;
}

#load-more-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .movies-hero {
        padding: 4rem 1rem;
    }

    .movies-hero h1 {
        font-size: 2.5rem;
    }

    .movies-hero p {
        font-size: 1rem;
    }

    .filters-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .movies-grid-section {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .movies-grid, .tvshows-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .tvshow-card img {
        height: 260px;
        object-fit: cover;
    }

    .tvshow-card .card-info {
        display: none;
    }
}

.country-dropdown:focus-within .dropdown-content,
.country-dropdown.active .dropdown-content {
    display: block;
}

.user-country {
    color: #FF69B4; /* Pink color */
    cursor: pointer;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, #1a0f1f 0%, #2a1f2f 100%);
    border-radius: 12px;
    min-width: 250px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    z-index: 1000;
    margin-top: 10px;
    padding: 1rem;
}

.country-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.country-search input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}.countries-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 0 -1rem;
}

.content-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.country-item {
    padding: 0.75rem 1rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.country-item:hover {
    background: rgba(255, 105, 180, 0.1);
    color: #FF69B4;
}

.country-dropdown {
    display: inline-block;
    position: relative;
}
