/* ========== استایل صفحه تکی ژانر ========== */
.glass-genre-single {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0f15 100%);
}

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

/* هدر ژانر */
.glass-genre-hero {
    position: relative;
    padding: 120px 0 60px;
    overflow: hidden;
}

.glass-genre-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 70% 30%, rgba(245,197,24,0.08) 0%, transparent 70%);
}

.glass-genre-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* عکس ژانر */
.glass-genre-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid rgba(245,197,24,0.3);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

.glass-genre-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-genre-avatar.placeholder {
    background: linear-gradient(135deg, #1a1a2e, #0f0f15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-genre-avatar.placeholder i {
    font-size: 50px;
    color: #f5c518;
    opacity: 0.5;
}

.glass-genre-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.glass-genre-description {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #d1d1d6;
    line-height: 1.8;
    font-size: 16px;
    background: rgba(255,255,255,0.03);
    padding: 20px 30px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
}

.glass-genre-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.glass-genre-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 14px;
    color: white;
}

.glass-genre-stat i {
    color: #f5c518;
}

/* تب‌ها */
.glass-genre-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(16px);
    padding: 8px;
    border-radius: 60px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255,255,255,0.05);
}

.glass-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 32px;
    border-radius: 50px;
    color: #a1a1aa;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.glass-tab-count {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 11px;
}

.glass-tab-btn.active {
    background: linear-gradient(135deg, #f5c518, #f97316);
    color: black;
}

.glass-tab-btn.active .glass-tab-count {
    background: rgba(0,0,0,0.2);
}

.glass-tab-content {
    display: none;
    animation: glassFade 0.3s ease;
}

.glass-tab-content.active {
    display: block;
}

@keyframes glassFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* محتوا */
.glass-genre-content {
    padding: 50px 0 80px;
}

/* گرید آیتم‌ها */
.glass-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.glass-item-card {
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
}

.glass-item-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245,197,24,0.3);
    box-shadow: 0 20px 30px rgba(0,0,0,0.4);
}

.glass-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.glass-item-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.glass-item-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.glass-item-card:hover .glass-item-poster img {
    transform: scale(1.08);
}

.glass-no-poster {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-no-poster i {
    font-size: 48px;
    color: #f5c518;
    opacity: 0.3;
}

.glass-item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.glass-item-badge.free {
    background: rgba(34,197,94,0.9);
    color: white;
}

.glass-item-badge.premium {
    background: linear-gradient(135deg, #f5c518, #f97316);
    color: black;
}

.glass-item-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    color: #f5c518;
    display: flex;
    align-items: center;
    gap: 4px;
}

.glass-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.glass-item-card:hover .glass-item-overlay {
    opacity: 1;
}

.glass-item-view {
    background: #e50914;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
}

.glass-item-info {
    padding: 12px;
    text-align: center;
}

.glass-item-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-item-year {
    font-size: 11px;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* حالت خالی */
.glass-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 28px;
}

.glass-empty-state i {
    font-size: 64px;
    color: #f5c518;
    opacity: 0.3;
    margin-bottom: 20px;
}

.glass-empty-state h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
}

.glass-empty-state p {
    color: #b3b3b3;
    margin-bottom: 25px;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .glass-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    .glass-genre-title {
        font-size: 36px;
    }
    .glass-tab-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .glass-genre-hero {
        padding: 100px 0 40px;
    }
    .glass-container {
        padding: 0 16px;
    }
    .glass-genre-title {
        font-size: 28px;
    }
    .glass-genre-description {
        font-size: 14px;
        padding: 15px 20px;
    }
    .glass-genre-stats {
        gap: 12px;
    }
    .glass-genre-stat {
        padding: 5px 12px;
        font-size: 12px;
    }
    .glass-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .glass-item-title {
        font-size: 12px;
    }
    .glass-tab-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    .glass-genre-avatar {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .glass-items-grid {
        gap: 12px;
    }
    .glass-item-info {
        padding: 8px;
    }
    .glass-genre-tabs {
        gap: 8px;
    }
    .glass-tab-btn {
        padding: 6px 14px;
    }
}