:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(25, 25, 35, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --accent-primary: #ff3366;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #06b6d4;
    --accent-yellow: #ffde00; /* رنگ زرد جدید */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-on-accent: #12121a; /* رنگ متن تیره برای روی دکمه زرد */
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.7);
    --gradient-card: linear-gradient(145deg, rgba(25, 25, 35, 0.95), rgba(15, 15, 25, 0.9));
    --gradient-bg: radial-gradient(circle at 25% 25%, rgba(255, 222, 0, 0.05) 0%, transparent 50%),
                   radial-gradient(circle at 75% 75%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
}

* {
    margin: 0;
    box-sizing: border-box;
}

body {
    padding-top: 50px !important; /* دسکتاپ - با !important برای اطمینان */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* Back Button Styles */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.8rem;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-yellow); /* تغییر به زرد */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.back-btn:hover::before {
    opacity: 1;
}

.back-btn span, .back-btn i {
    position: relative;
    z-index: 2;
}

.back-btn:hover {
    border-color: transparent;
    color: var(--text-on-accent); /* تغییر رنگ متن هاور */
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.back-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(3px);
}

/* Hero Section */
.hero-section {
    padding: 2rem 0 1.5rem;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    background: var(--accent-yellow); /* تغییر به زرد */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Section */
.search-section {
    padding: 1rem 0;
    margin-bottom: 0.5rem;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-yellow); /* تغییر رنگ فوکوس */
    box-shadow: 0 0 0 3px rgba(255, 222, 0, 0.2); /* تغییر رنگ سایه فوکوس */
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

/* Back Button Section */
.back-section {
    padding: 1rem 0;
    text-align: center;
}

/* Music Grid */
.music-grid {
    padding: 0.5rem 0 3rem;
}

.music-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.music-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-yellow); /* تغییر به زرد */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.music-card:hover::before {
    opacity: 0.06;
}

.music-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 222, 0, 0.4); /* تغییر رنگ بردر هاور */
}


.card-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 320px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-card:hover .thumbnail-image {
    transform: scale(1.1);
}

.thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--text-muted);
}

.thumbnail-placeholder i {
    font-size: 3.5rem;
    opacity: 0.4;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 70px;
    height: 70px;
    background: var(--accent-yellow); /* تغییر به زرد */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-accent); /* تغییر رنگ متن */
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.play-button:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
}

.play-button i {
    margin-right: 3px;
}

.card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.music-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.music-artist {
    font-size: 1rem;
    color: var(--accent-tertiary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-play-btn {
    background: var(--accent-yellow); /* تغییر به زرد */
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.6rem;
    color: var(--text-on-accent); /* تغییر رنگ متن */
    font-weight: 600; /* افزایش ضخامت برای خوانایی */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.main-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.main-play-btn:hover::before {
    transform: translateX(100%);
}

.main-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-on-accent); /* اطمینان از عدم تغییر رنگ متن در هاور */
    text-decoration: none;
}

.main-play-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.main-play-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--accent-yellow); /* تغییر به زرد */
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    body {
        padding-top: 40px !important;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 40px !important;
    }
    
    .card-thumbnail {
        height: 200px;
    }
    
    .hero-section {
        padding: 2.5rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 40px !important;
    }
    
    .hero-section {
        padding: 3rem 0 1.2rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
        margin-bottom: 0.6rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 1.8vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .search-section {
        padding: 0.8rem 0;
        margin-bottom: 0.3rem;
    }
    
    .back-section {
        padding: 0.8rem 0;
    }
    
    .music-grid {
        padding: 0.3rem 0 2.5rem;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .back-btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .card-thumbnail {
        height: 180px;
    }
    
    .music-title {
        font-size: 1.2rem;
    }
    
    .empty-state {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 40px !important;
    }
    
    .hero-section {
        padding: 3.5rem 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 1.6vw, 1rem);
        margin-bottom: 1.2rem;
    }
    
    .search-section {
        padding: 0.6rem 0;
        margin-bottom: 0.2rem;
    }
    
    .search-input {
        padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    }
    
    .search-icon {
        right: 1.25rem;
    }
    
    .back-section {
        padding: 0.6rem 0;
    }
    
    .music-grid {
        padding: 0.2rem 0 2rem;
    }
    
    .back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }
    
    .back-btn i {
        font-size: 1rem;
    }
    
    .card-thumbnail {
        height: 160px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .music-title {
        font-size: 1.1rem;
    }
    
    .main-play-btn {
        padding: 0.7rem 1.2rem;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state i {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .empty-state p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 40px !important;
    }
    
    .hero-section {
        padding: 4rem 0 0.8rem;
    }
}

@media (max-width: 414px) {
    body {
        padding-top: 40px !important;
    }
    
    .hero-section {
        padding: 4.5rem 0 1rem;
    }
}

@media (max-width: 400px) {
    body {
        padding-top: 40px !important;
    }
    
    .hero-section {
        padding: 5rem 0 0.6rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .search-section {
        padding: 0.5rem 0;
        margin-bottom: 0.1rem;
    }
    
    .back-section {
        padding: 0.5rem 0;
    }
    
    .music-grid {
        padding: 0.1rem 0 1.5rem;
    }
}

@media (max-width: 375px) {
    body {
        padding-top: 60px !important;
    }
    
    .hero-section {
        padding: 5.5rem 0 1rem;
    }
}

@media (max-width: 350px) {
    body {
        padding-top: 40px !important;
    }
    
    .hero-section {
        padding: 6rem 0 1.2rem;
    }
}

/* Base Styles */
.hero-section, .search-section, .back-section {
    position: relative;
    z-index: 1;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        .premium-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: linear-gradient(135deg, #ffd700, #ffed4e);
            color: #000;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .movie-card.premium-locked {
            position: relative;
        }
        
        .movie-card.premium-locked .movie-overlay {
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
        }
        
        .lock-icon {
            color: #ffd700;
            font-size: 2rem;
        }
        
        .premium-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            z-index: 1000;
            display: none;
            text-align: center;
            min-width: 300px;
        }
        
        .premium-message.show {
            display: block;
        }
        
        .message-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            display: none;
        }
        
        .message-overlay.show {
            display: block;
        }
        
        .close-message {
            background: #dc3545;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }
        
        .subscription-btn {
            background: #28a745;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
            margin-left: 10px;
        }
        
        .free-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }