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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #0f0f0f;
            color: #ffffff;
            overflow-x: hidden;
        }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(18px) saturate(180%);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.18), 0 1.5px 0 rgba(0,212,255,0.07);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    z-index: 1000;
    border-bottom: 1.5px solid rgba(0, 212, 255, 0.12);
    border-radius: 0 0 22px 22px;
}


        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #00d4ff;
        }

.nav-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}



.nav-item {
    padding: 10px 22px;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.2s;
    background: linear-gradient(90deg, rgba(0,212,255,0.07) 0%, rgba(0,212,255,0.025) 100%);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0,212,255,0.05);
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(90deg, #00d4ff 0%, #0090ff 100%);
    color: #0f0f0f;
    box-shadow: 0 2px 8px 0 rgba(0,212,255,0.18);
    transform: translateY(-2px) scale(1.04);
}


.filters {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(20, 30, 40, 0.65);
    border-radius: 14px;
    padding: 7px 18px;
    box-shadow: 0 2px 12px rgba(0,212,255,0.10);
    backdrop-filter: blur(8px) saturate(140%);
    margin-left: auto;
}
.filter-select {
    padding: 8px 32px 8px 14px;
    border-radius: 10px;
    border: 1.5px solid #00d4ff;
    background: rgba(0,212,255,0.10);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 500;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 4px rgba(0,212,255,0.07);
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2300d4ff" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    min-width: 90px;
    width: 140px;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.filter-select:focus, .filter-select:hover {
    border: 1.5px solid #00d4ff;
    background: rgba(0,212,255,0.18);
    box-shadow: 0 4px 16px rgba(0,212,255,0.13);
}
.filter-select:disabled {
    background: #23272f !important;
    color: #b0b0b0 !important;
    border: 1.5px solid #444 !important;
    cursor: not-allowed !important;
    opacity: 0.55 !important;
    filter: grayscale(0.7) brightness(0.88);
    background-image: none !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .filters {
        flex-direction: column;
        gap: 8px;
        padding: 7px 7px;
        width: 100%;
        margin-left: 0;
    }
    .filter-select {
        width: 100%;
        min-width: 0;
    }
}

.search-bar {
    position: relative;
    width: 300px;
    display: flex;
    align-items: center;
    background: rgba(0,212,255,0.06);
    border-radius: 16px;
    padding: 4px 10px;
    box-shadow: 0 1px 4px 0 rgba(0,212,255,0.05);
}

.search-input {
    width: 100%;
    padding: 12px 22px;
    border-radius: 18px;
    border: 1.5px solid rgba(0,212,255,0.15);
    background: rgba(0,212,255,0.11);
    color: #ffffff;
    font-size: 16px;
    transition: border 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    min-width: 180px;
    box-shadow: 0 1px 4px rgba(0,212,255,0.07);
}

.search-input:focus {
    border: 1.5px solid #00d4ff;
    background: rgba(0,212,255,0.19);
    box-shadow: 0 2px 12px rgba(0,212,255,0.13);
}

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

.container {
    margin-top: 100px;
    padding: 40px 16px 0 16px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 28px;
    background: rgba(20, 20, 30, 0.85);
    box-shadow: 0 4px 24px 0 rgba(0,212,255,0.07);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 32px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(0,212,255,0.03);
    box-shadow: 0 2px 8px rgba(0,212,255,0.04);
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.content-card {
    position: relative !important;
    cursor: pointer;
    transition: box-shadow 0.38s cubic-bezier(.25,.8,.25,1), transform 0.33s cubic-bezier(.25,.8,.25,1), background 0.3s;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0,212,255,0.05);
    box-shadow: 0 2px 8px rgba(0,212,255,0.07);
    will-change: transform, box-shadow;
}
.content-card:hover {
    transform: scale(1.045) rotateZ(-0.7deg);
    box-shadow: 0 8px 32px 0 rgba(0,212,255,0.26), 0 1.5px 0 rgba(0,212,255,0.15);
    background: rgba(0,212,255,0.07);
    z-index: 3;
}


.content-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 12px;
    transition: filter 0.33s, transform 0.33s;
}
.content-card:hover img {
    filter: brightness(0.92) blur(1.5px) saturate(1.18);
    transform: scale(1.04) rotateZ(0.6deg);
}



        .content-card .overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.9));
            opacity: 0;
            transition: all 0.3s ease;
            display: flex;
            align-items: flex-end;
            padding: 16px;
        }

        .content-card:hover .overlay {
    opacity: 1;
    backdrop-filter: blur(6px) saturate(120%);
}

        .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, box-shadow 0.2s;
    z-index: 2;
}

.content-card:hover .play-btn {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0,212,255,0.19);
}


        .content-info {
            padding: 12px;
            text-align: center;
        }

        .content-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 4px;
            color: #ffffff;
        }

        .content-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }

        .details-page {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
            z-index: 2000;
            overflow-y: auto;
        }

        .details-page.active {
            display: block;
        }

        .details-header {
    position: relative;
    overflow: hidden;
}
.details-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: blur(12px) brightness(0.75);
    z-index: 1;
}
.details-header > * {
    position: relative;
    z-index: 2;
}


        .details-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.3) 0%,
                rgba(0, 0, 0, 0.7) 70%,
                rgba(15, 15, 15, 0.95) 100%
            );
        }

        .details-info {
            position: relative;
            z-index: 10;
            padding: 40px;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
        }

        .details-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.7);
            border: none;
            color: #ffffff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 24px;
            z-index: 2001;
            transition: all 0.3s ease;
        }

        .details-close:hover {
            background: rgba(255, 0, 0, 0.8);
        }

        .details-poster {
            width: 200px;
            height: 300px;
            border-radius: 12px;
            object-fit: cover;
            float: left;
            margin-right: 30px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .details-meta {
            overflow: hidden;
        }

        .details-title {
            font-size: 48px;
            font-weight: bold;
            margin-bottom: 16px;
            color: #ffffff;
        }

        .details-subtitle {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 20px;
        }

        .details-rating {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 20px;
        }

        .rating-stars {
            color: #ffd700;
            font-size: 20px;
        }

        .rating-score {
            font-size: 18px;
            font-weight: bold;
            color: #00d4ff;
        }

        .details-overview {
            font-size: 16px;
            line-height: 1.6;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 30px;
            max-width: 800px;
        }

        .details-actions {
            display: flex;
            gap: 16px;
            margin-bottom: 40px;
        }

        .action-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: #00d4ff;
            color: #000000;
        }

        .btn-primary:hover {
            background: #00a8cc;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .details-content {
            padding: 0 40px 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .seasons-section {
            margin-top: 40px;
        }

        .section-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #ffffff;
        }

        .seasons-list {
            display: flex;
            gap: 12px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .season-btn {
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 25px;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .season-btn:hover,
        .season-btn.active {
            background: #00d4ff;
            color: #000000;
            border-color: #00d4ff;
        }

        .episodes-grid {
            display: grid;
            gap: 16px;
        }

        .episode-item {
            display: flex;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .episode-item:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(0, 212, 255, 0.5);
            transform: translateX(4px);
        }

        .episode-number {
            width: 60px;
            height: 40px;
            background: rgba(0, 212, 255, 0.2);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #00d4ff;
            margin-right: 16px;
            flex-shrink: 0;
        }

        .episode-info {
            flex: 1;
        }

        .episode-title {
            font-size: 16px;
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 4px;
        }

        .episode-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            margin-bottom: 8px;
        }

        .episode-overview {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.4;
        }

        .play-episode-btn {
            width: 40px;
            height: 40px;
            background: rgba(0, 212, 255, 0.2);
            border: none;
            border-radius: 50%;
            color: #00d4ff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 16px;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .play-episode-btn:hover {
            background: #00d4ff;
            color: #000000;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            max-width: 100vw;
            overflow-x: hidden;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            display: flex;
            flex-direction: column;
            width: 90%;
            max-width: 1200px;
            height: 80%;
            background: #1a1a1a;
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            max-width: 100vw;
            box-sizing: border-box;
            overflow-x: auto;
        }

        .modal-content > * {
            max-width: 100%;
            box-sizing: border-box;
        }

        .modal-content label,
        .modal-content select,
        .modal-content iframe {
            max-width: 100%;
            box-sizing: border-box;
        }

        .close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            background: rgba(0, 0, 0, 0.7);
            border: none;
            color: #ffffff;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            z-index: 3001;
        }

        .video-player {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    display: block;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}
.video-player::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.modal-content {
    overflow: hidden !important;
}


        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 400px;
            font-size: 18px;
            color: rgba(255, 255, 255, 0.7);
        }

        .spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #00d4ff;
            animation: spin 1s ease-in-out infinite;
            margin-right: 12px;
        }

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

        .error {
            text-align: center;
            padding: 40px;
            color: #ff6b6b;
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 12px 16px;
                flex-wrap: wrap;
            }

            .search-bar {
                width: 200px;
            }

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

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

            .modal-content {
                width: 95%;
                height: 70%;
                max-width: 100vw;
                box-sizing: border-box;
                overflow-x: auto;
            }
        }
    .seen-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #00d4ff;
        color: #000;
        padding: 4px 12px;
        border-radius: 8px;
        font-weight: bold;
        font-size: 13px;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
        .slideshow {
            position: relative;
            width: 100%;
            max-width: 1400px;
            height: 340px;
            margin: 0 auto 32px auto;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.25);
            background: #181818;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .slides-wrapper {
            display: flex;
            transition: transform 0.7s cubic-bezier(.77,0,.18,1);
            height: 100%;
            width: 100%;
        }
        .slide {
            min-width: 100%;
            height: 340px;
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: flex-start;
            background: #222;
            overflow: hidden;
        }
        .slide-bg {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            width: 100%; height: 100%;
            object-fit: cover;
            filter: brightness(0.55) blur(1.5px);
            z-index: 1;
        }
        .slide-info {
            position: relative;
            z-index: 2;
            color: #fff;
            padding: 36px 48px 48px 48px;
            max-width: 60%;
        }
        .slide-title {
            font-size: 2.2rem;
            font-weight: bold;
            margin-bottom: 10px;
            text-shadow: 0 2px 8px #000;
        }
        .slide-meta {
            font-size: 1.1rem;
            opacity: 0.8;
            margin-bottom: 18px;
        }
        .slide-overview {
            font-size: 1rem;
            opacity: 0.9;
            margin-bottom: 16px;
            line-height: 1.5;
            max-height: 180px;
            overflow-y: auto;
            white-space: pre-line;
        }
        .slide-btn-action {
            background: #00d4ff;
            color: #000;
            border: none;
            padding: 10px 28px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 2px 12px rgba(0,212,255,0.18);
            transition: background 0.2s;
        }
        .slide-btn-action:hover {
            background: #00b2cc;
        }
        .slide-btn.prev, .slide-btn.next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.4);
            color: #fff;
            border: none;
            font-size: 2.2rem;
            padding: 4px 16px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            transition: background 0.2s;
        }
        .slide-btn.prev:hover, .slide-btn.next:hover {
            background: #00d4ff;
            color: #000;
        }
        .slide-btn.prev { left: 18px; }
        .slide-btn.next { right: 18px; }
        .slide-indicators {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
        }
        .slide-indicator {
            width: 14px;
            height: 14px;
            background: rgba(255,255,255,0.5);
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
            transition: background 0.2s, border 0.2s;
        }
        .slide-indicator.active {
            background: #00d4ff;
            border: 2px solid #fff;
        }
.player-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0,0,0,0.85);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.player-close-btn:hover, .player-close-btn:focus {
    background: #ff4b4b;
    color: #fff;
    outline: none;
    transform: scale(1.08);
}

.source-selector-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 18px auto;
    padding: 7px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,212,255,0.10);
    backdrop-filter: blur(8px) saturate(140%);
    width: fit-content;
    position: relative;
    top: 8px;
}
.source-selector-bar label {
    font-weight: 700;
    font-size: 0.98rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}
#sourceSelector {
    padding: 7px 28px 7px 10px;
    border-radius: 9px;
    border: 1.5px solid #00d4ff;
    background: rgba(0,212,255,0.10);
    color: #ffffff;
    font-size: 0.97rem;
    font-weight: 500;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0,212,255,0.08);
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2300d4ff" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    min-width: 90px;
    margin-left: 4px;
    border: 1.5px solid #00d4ff;
}
#sourceSelector:focus, #sourceSelector:hover {
    border: 1.5px solid #00d4ff;
    background: rgba(0, 0, 0, 0.18);
    box-shadow: 0 4px 16px rgba(0,212,255,0.13);
}
@media (max-width: 768px) {
    .source-selector-bar {
        flex-direction: column;
        gap: 6px;
        padding: 6px 6px;
        width: 95%;
        top: 4px;
    }
    #sourceSelector {
        font-size: 0.97rem;
        padding: 7px 28px 7px 10px;
    }
}