body {
    margin: 0;
    background: #141414;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
}

/* هدر */
.discover-header {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.search-box input {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    background: #333;
    color: white;
    width: 300px;
}

nav a {
    color: #e5e5e5;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}
nav a:hover { color: #fff; }

/* لایه بندی */
.main-wrapper {
    display: flex;
}

/* سایدبار فیلتر */
.filter-sidebar {
    width: 220px;
    background: #0f0f0f;
    padding: 20px;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    flex-shrink: 0;
}

.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; margin-bottom: 8px; color: #aaa; }
.filter-group select {
    width: 100%;
    padding: 8px;
    background: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}
.btn-filter-apply {
    width: 100%;
    padding: 10px;
    background: #e50914;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* بخش‌های محتوا */
.content-grid {
    flex: 1;
    padding: 20px 40px;
}

.recommendation-section {
    margin-bottom: 40px;
}

/* اسلایدر افقی (Netflix Style) */
.movie-row {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: thin; /* Firefox */
}

.movie-row::-webkit-scrollbar { height: 5px; }
.movie-row::-webkit-scrollbar-thumb { background: #e50914; border-radius: 10px; }

/* کارت فیلم */
.movie-card {
    min-width: 200px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    background: #000;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, #000);
    padding: 40px 15px 15px;
    opacity: 0;
    transition: 0.3s;
}

.movie-card:hover .overlay { opacity: 1; }

.movie-card .quality-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e50914;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
}

/* گرید برای همه محتوا */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}