/* Premium Netflix-Inspired Dark Mode CSS System */
:root {
    --bg-color: #0b0b0c;
    --card-bg: rgba(20, 20, 23, 0.7);
    --card-hover-bg: rgba(30, 30, 35, 0.9);
    --primary-color: #E50914;
    --primary-hover: #b80710;
    --text-color: #ffffff;
    --text-muted: #a0a0a8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}



a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Header & Navigation */
header {
    background: rgba(11, 11, 12, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logo-wrapper i {
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px 8px 36px;
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
    width: 240px;
    transition: all 0.3s ease;
}

body.light-mode .search-input {
    background: rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    width: 280px;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.mobile-search-bar {
    display: none;
    padding: 0 15px;
    margin-bottom: 10px;
}
.mobile-search-bar .search-input {
    width: 100%;
}
.mobile-search-bar .search-input:focus {
    width: 100%;
}

/* AJAX search dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 8px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-premium);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1100;
}

.search-results-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

.search-results-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.search-results-item img {
    width: 40px;
    height: 55px;
    object-fit: cover;
    border-radius: 4px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.theme-toggle-btn:hover {
    transform: rotate(20deg);
}

/* Hamburger mobile button */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Featured Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color) 10%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    z-index: 2;
    text-align: center;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--primary-color);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

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

/* Movie Archive Grid */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Movie Card */
.movie-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.movie-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(229, 9, 20, 0.4);
}

.card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #1c1c1f;
}

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

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

/* Quality & Type Badges */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(229, 9, 20, 0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 5;
}

.card-info {
    padding: 12px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tags & Categories List style */
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.badge-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

body.light-mode .badge-item {
    background: rgba(0, 0, 0, 0.04);
}

.badge-item:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s;
}

.page-btn:hover, .page-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Single Movie Page Layout */
.movie-details-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.movie-poster-col img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.movie-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.movie-meta-table tr {
    border-bottom: 1px solid var(--border-color);
}

.movie-meta-table td {
    padding: 10px 0;
}

.movie-meta-table td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 150px;
}

/* Player Frame */
.video-player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: 30px 0;
    position: relative;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Server select buttons */
.server-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.server-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.server-btn.active, .server-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Download Section */
.download-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 30px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.download-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.download-btn:hover {
    background: rgba(0, 200, 83, 0.15);
    border-color: #00c853;
}

.download-btn .server-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.download-btn .server-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Episodes Tabs / Grid */
.seasons-dropdown-wrapper {
    margin-bottom: 20px;
}

.season-select-control {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

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

.episode-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s;
}

.episode-item.active, .episode-item:hover {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--primary-color);
}

/* Screenshots Gallery */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.screenshot-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
    background: #111;
}

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

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Comments System styling */
.comments-container {
    margin-top: 50px;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-input {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    margin-bottom: 15px;
    outline: none;
}

.comment-input:focus {
    border-color: var(--primary-color);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-color);
}

/* Advertisement layouts */
.ad-container {
    text-align: center;
    margin: 25px auto;
    max-width: 100%;
    overflow: hidden;
}

.footer-ad-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

/* Skeleton Loading utility */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% { background-color: rgba(255, 255, 255, 0.05); }
    100% { background-color: rgba(255, 255, 255, 0.15); }
}

/* Footer layout */
footer {
    background-color: #050506;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px 0;
    margin-top: 80px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    font-size: 1.3rem;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive Mobile Layouts */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo-wrapper {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        background: rgba(11, 11, 12, 0.98);
        padding: 15px 0;
        gap: 12px;
    }

    .nav-menu.show {
        display: flex;
    }

    .header-actions {
        order: 2;
        gap: 10px;
    }

    .search-input {
        width: 130px;
        font-size: 0.8rem;
        padding: 6px 12px 6px 28px;
    }

    .search-input:focus {
        width: 150px;
    }

    .desktop-search-bar {
        display: none;
    }

    .mobile-search-bar {
        display: block;
    }

    .hamburger {
        display: block;
        order: 1;
        font-size: 1.3rem;
        margin-right: 5px;
    }

    .hero-slider {
        height: 320px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

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

    .movie-details-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .movie-poster-col {
        max-width: 200px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
