:root {
    --primary-color: #e50914;
    --bg-color: #141414;
    --card-bg: #1f1f1f;
    --text-color: #ffffff;
    --text-secondary: #aaaaaa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

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

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.4s;
}

.logo a {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    color: #fff;
    outline: none;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?q=80&w=1600') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, var(--bg-color) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.badge {
    background: var(--primary-color);
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

.hero-content h1 {
    font-size: 48px;
    margin: 10px 0;
}

.meta-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-info i { color: gold; }
.quality { background: #333; padding: 0 5px; border-radius: 3px; color: #fff; }

.description {
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: #b80710; }
.btn-secondary { background: rgba(255,255,255,0.2); color: #fff; }
.btn-secondary:hover { background: rgba(255,255,255,0.4); }

/* Movies Section */
.section-container {
    padding: 40px 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-tags .tag {
    background: var(--card-bg);
    padding: 5px 15px;
    border-radius: 15px;
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
}

.filter-tags .tag.active {
    background: var(--primary-color);
}

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

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

.movie-card:hover {
    transform: translateY(-8px);
}

.movie-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.movie-info {
    padding: 10px;
}

.movie-title {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Modal Player */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 80%;
    max-width: 900px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px; left: 15px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top:0; left: 0; width: 100%; height: 100%;
}

.server-options {
    padding: 15px;
    background: var(--card-bg);
    display: flex;
    gap: 10px;
    align-items: center;
}

.server-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.server-btn.active { background: var(--primary-color); }

/* Footer */
footer {
    padding: 30px 50px;
    background: #0b0b0b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
}

.socials a {
    color: var(--text-secondary);
    font-size: 20px;
    margin-right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; }
    .hero { padding: 0 20px; }
    .hero-content h1 { font-size: 32px; }
    .section-container { padding: 20px; }
}