* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر اصلی */
.main-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 12px;
    color: #888;
}

.main-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #667eea;
}

/* نوار جستجو */
.search-bar {
    flex: 1;
    max-width: 300px;
}

.search-bar form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #333;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
}

.search-input::placeholder {
    color: #888;
}

.search-btn {
    background: #667eea;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #5a67d8;
}

/* اسلایدر */
.hero-slider {
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.btn-primary {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #ff5252;
}

/* محتوای اصلی */
.main-content {
    padding: 40px 0;
}

.content-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    font-size: 28px;
    background: linear-gradient(135deg, #fff 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #5a67d8;
}

/* گرید محتوا */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.content-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card a {
    text-decoration: none;
    color: inherit;
}

.card-poster {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
}

.card-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 48px;
    color: white;
    background: rgba(102,126,234,0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    z-index: 1;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.year, .category {
    font-size: 12px;
    color: #888;
    margin-right: 10px;
}

/* دسته‌بندی‌ها */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.category-card:hover {
    transform: translateY(-3px);
}

/* صفحه پخش ویدیو */
.watch-header {
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.watch-container {
    margin-top: 80px;
}

.video-section {
    background: #000;
    padding: 20px 0;
}

.video-player {
    max-width: 1200px;
    margin: 0 auto;
}

.main-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.no-video {
    text-align: center;
    padding: 100px;
    background: #1a1a1a;
    border-radius: 10px;
}

.content-info-section {
    padding: 40px 0;
    background: #1a1a1a;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-details h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.meta-info {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge {
    background: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.year, .category {
    color: #888;
}

.description h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.description p {
    line-height: 1.8;
    color: #ddd;
}

.content-poster img {
    width: 100%;
    border-radius: 12px;
}

.similar-content {
    padding: 40px 0;
}

/* فوتر */
.main-footer {
    background: #1a1a1a;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 14px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-slider {
        margin-top: 180px;
        padding: 40px 20px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .content-poster {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card, .category-card {
    animation: fadeInUp 0.5s ease-out;
}

/* اسکرول بار سفارشی */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}