:root {
    --bg-color: #000000;
    --card-bg: #111111;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --accent-hover: #dddddd;
    --border: #222222;
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-muted);
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--border);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    border-color: var(--accent);
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    margin-left: -35px;
}

/* Container */
.container {
    padding: 40px 5%;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
}

/* Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.movie-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.movie-card:hover img {
    filter: grayscale(0%);
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
}

/* Hero Slider */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    padding: 40px 5%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.hero-overview {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn-play:hover {
    background: var(--accent-hover);
    color: var(--bg-color);
}

/* Player Section */
.player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

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

.servers-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.server-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-color);
    cursor: pointer;
    border-radius: 4px;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.server-btn.active, .server-btn:hover {
    background: var(--accent);
    color: var(--bg-color);
}

/* Details */
.movie-header {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.movie-poster {
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.movie-info-detailed h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
}

.tagline {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.genres {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.genre-tag {
    padding: 5px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    text-transform: uppercase;
}

/* Ads */
.ad-container {
    text-align: center;
    margin: 20px auto;
    padding: 10px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .movie-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 32px;
    }
    .movie-poster {
        width: 100%;
        max-width: 300px;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: block;
}

/* Side Drawer Navigation */
.side-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #0d0d0d;
    border-right: 1px solid var(--border);
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
}

.side-drawer.open {
    left: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 199;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 18px;
}

.close-drawer {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
}

.drawer-content {
    padding: 20px;
}

.drawer-section {
    margin-bottom: 30px;
}

.drawer-section h4 {
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.drawer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.drawer-grid a {
    font-size: 13px;
    color: #ccc;
    padding: 6px 10px;
    background: #151515;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.drawer-grid a:hover {
    background: var(--accent);
    color: var(--bg-color);
}

/* TV Episode selector styles */
.tv-selector-container {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tv-select {
    padding: 10px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-color);
    border-radius: 4px;
    font-family: var(--font-main);
    outline: none;
    min-width: 150px;
}

.tv-select:focus {
    border-color: var(--accent);
}

