/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, sans-serif;
}

:root {
    --primary: #e50914;
    --dark-bg: #141414;
    --card-bg: #1f1f1f;
    --text: #ffffff;
    --text-gray: #b3b3b3;
    --border: #333;
    --overlay: rgba(0, 0, 0, 0.8);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    text-align: center;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1;
}

.slogan {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Navigation */
.nav {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content a {
    color: var(--text);
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.search-bar {
    display: flex;
    gap: 10px;
    width: 300px;
}

.search-bar input {
    flex: 1;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text);
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

/* Filter Sidebar */
.filter-sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--card-bg);
    padding: 30px;
    z-index: 200;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
}

.filter-sidebar.open {
    right: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 5px;
}

/* Mobile Only */
.mobile-only {
    display: none;
}

/* Grid & Cards */
.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.film-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    color: white;
}

.film-card:hover {
    transform: translateY(-10px);
}

.film-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.film-card-content {
    padding: 15px;
}

.film-card-title {
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.film-card-meta {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
}

.rating {
    color: #ffd700;
}

/* Detail Page */
.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

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

.detail-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 14px;
}

.genre-tags span {
    background: var(--card-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
    border: 1px solid var(--border);
}

.synopsis {
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .nav {
        display: none;
        /* Hide desktop nav on mobile */
    }

    .mobile-only {
        display: flex;
        justify-content: flex-end;
        margin: 20px 0;
    }

    .films-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}
/* Server Selection */
.server-select { margin-bottom: 15px; display: flex; gap: 10px; }
.server-btn { background: #333; color: #fff; border: 1px solid #444; padding: 8px 15px; cursor: pointer; border-radius: 4px; font-family: 'Outfit', sans-serif; transition: all 0.3s; }
.server-btn:hover { background: #444; }
.server-btn.active { background: var(--primary); border-color: var(--primary); font-weight: bold; box-shadow: 0 0 10px rgba(229, 9, 20, 0.5); }
