/* ============================================
   استایل‌های بخش آلبوم‌ها - مدرن و شیشه‌ای
   ============================================ */

/* --- بخش اصلی --- */
.album-section-modern {
    margin: 30px 0 40px;
    padding: 0 4px;
    position: relative;
}

/* --- باکس شیشه‌ای کل بخش --- */
.album-glass-wrapper {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.album-glass-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.03), transparent 70%);
    pointer-events: none;
    animation: albumGlow 8s ease-in-out infinite;
}

@keyframes albumGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20%, -20%) scale(1.2); }
}

.album-glass-wrapper:hover {
    border-color: rgba(255, 152, 0, 0.12);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* --- هدر بخش --- */
.album-section-modern .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
    position: relative;
    z-index: 1;
}

.album-section-modern .section-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.album-section-modern .section-title i {
    color: #FF9800;
    font-size: 1.3rem;
}

.album-section-modern .section-more {
    color: #8a8aa0;
    font-size: 0.75rem;
    font-family: 'bakhn', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.album-section-modern .section-more:hover {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.15);
    transform: translateX(-4px);
}

.album-section-modern .section-more i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.album-section-modern .section-more:hover i {
    transform: translateX(-4px);
}

/* --- کانتینر Swiper --- */
.album-section-modern .album-slider {
    position: relative;
    padding: 8px 4px 16px;
    overflow: hidden;
    z-index: 1;
}

.album-section-modern .swiper-wrapper {
    padding-bottom: 12px;
}

.album-section-modern .swiper-slide {
    height: auto;
    width: 180px;
    flex-shrink: 0;
}

/* --- کارت شیشه‌ای آلبوم --- */
.album-card-glass {
    display: block;
    text-decoration: none;
    padding: 4px;
    height: 100%;
}

.album-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1/1;
}

.album-card-inner:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 152, 0, 0.25);
    box-shadow: 0 16px 48px rgba(255, 152, 0, 0.12);
    background: rgba(30, 30, 58, 0.7);
}

/* --- کاور تصویر --- */
.album-card-cover {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card-inner:hover .album-card-cover img {
    transform: scale(1.08);
}

/* --- اوورلی شیشه‌ای --- */
.album-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(15, 15, 26, 0.1) 0%,
        rgba(15, 15, 26, 0.6) 60%,
        rgba(15, 15, 26, 0.85) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.album-card-inner:hover .album-card-overlay {
    opacity: 1;
}

/* --- دکمه پلی --- */
.album-card-play {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF9800, #f57c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.35);
    transform: scale(0.7) rotate(-10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 12px;
}

.album-card-inner:hover .album-card-play {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.5);
}

.album-card-play i {
    color: #ffffff;
    font-size: 1.4rem;
    margin-right: 4px;
}

/* --- اطلاعات hover --- */
.album-card-info-hover {
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s ease 0.1s;
}

.album-card-inner:hover .album-card-info-hover {
    opacity: 1;
    transform: translateY(0);
}

.album-card-title {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'bakhb', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.album-card-artist {
    display: block;
    color: #c8c8e0;
    font-size: 0.75rem;
    font-family: 'bakhn', sans-serif;
    margin-top: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ============================================
   استایل‌های بخش هنرمند در صفحه آلبوم
   ============================================ */

/* --- باکس اطلاعات هنرمند --- */
.album-artist-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.album-artist-info:hover {
    border-color: rgba(233, 69, 96, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* --- تصویر خواننده --- */
.album-artist-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e94560;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
    transition: all 0.3s ease;
}

.album-artist-info:hover .album-artist-avatar {
    border-color: #ff6b6b;
    box-shadow: 0 6px 25px rgba(233, 69, 96, 0.3);
    transform: scale(1.02);
}

.album-artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- نام خواننده --- */
.album-artist-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.album-artist-name span {
    color: #8a8aa0;
    font-size: 0.7rem;
    font-family: 'bakhn', sans-serif;
}

.album-artist-name a {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.album-artist-name a:hover {
    color: #e94560;
}

/* --- آمار کوچک کنار نام --- */
.album-stats-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    margin-right: auto;
}

.album-stats-number {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
}

.album-stats-label {
    color: #8a8aa0;
    font-size: 0.6rem;
    font-family: 'bakhn', sans-serif;
}

/* ============================================
   بخش ترک‌های آلبوم
   ============================================ */
.album-tracks-section {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 20px 16px;
    margin: 16px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.album-tracks-section:hover {
    border-color: rgba(233, 69, 96, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.album-tracks-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.album-tracks-header i {
    font-size: 1.4rem;
    color: #FF9800;
}

.album-tracks-header span {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    color: #ffffff;
}

.album-tracks-header .track-count {
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'bakhn', sans-serif;
    color: #8a8aa0;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-right: auto;
}

.album-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.album-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 12px;
}

.album-track-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.album-track-item .track-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.album-track-item .track-number {
    color: #4a4a60;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.album-track-item:hover .track-number {
    color: #8a8aa0;
}

.album-track-item .track-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.album-track-item .track-play-btn i {
    font-size: 0.75rem;
    color: #8a8aa0;
    transition: all 0.3s ease;
}

.album-track-item .track-play-btn:hover {
    background: #e94560;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.album-track-item .track-play-btn:hover i {
    color: #ffffff;
}

.album-track-item .track-play-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.album-track-item .track-play-btn.disabled:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: none;
    box-shadow: none;
}

.album-track-item .track-play-btn.disabled:hover i {
    color: #8a8aa0;
}

.album-track-item .track-name {
    color: #ffffff;
    font-size: 0.85rem;
    font-family: 'bakhn', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.album-track-item:hover .track-name {
    color: #e94560;
}

.album-track-item .track-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.album-track-item .track-download-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'bakhb', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #8a8aa0;
}

.album-track-item .track-download-btn i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.album-track-item .track-download-btn.quality-high {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.1);
    color: #81C784;
}

.album-track-item .track-download-btn.quality-high i {
    color: #4CAF50;
}

.album-track-item .track-download-btn.quality-high:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
    color: #ffffff;
}

.album-track-item .track-download-btn.quality-low {
    background: rgba(33, 150, 243, 0.08);
    border-color: rgba(33, 150, 243, 0.1);
    color: #64B5F6;
}

.album-track-item .track-download-btn.quality-low i {
    color: #2196F3;
}

.album-track-item .track-download-btn.quality-low:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
    color: #ffffff;
}

/* ============================================
   مخفی کردن المان‌های Swiper
   ============================================ */
.album-section-modern .swiper-button-next,
.album-section-modern .swiper-button-prev {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.album-section-modern .swiper-pagination {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ============================================
   واکنش‌گرایی
   ============================================ */
@media (max-width: 1024px) {
    .album-glass-wrapper {
        padding: 20px 16px 16px;
        border-radius: 20px;
    }
    .album-section-modern .swiper-slide {
        width: 160px;
    }
    .album-card-title {
        max-width: 140px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .album-section-modern {
        margin: 20px 0 30px;
    }
    .album-glass-wrapper {
        padding: 16px 12px 12px;
        border-radius: 16px;
    }
    .album-section-modern .section-title {
        font-size: 1rem;
    }
    .album-section-modern .section-title i {
        font-size: 1.1rem;
    }
    .album-section-modern .section-more {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .album-section-modern .album-slider {
        padding: 8px 4px 16px;
    }
    .album-section-modern .swiper-slide {
        width: 140px;
    }
    .album-card-play {
        width: 48px;
        height: 48px;
    }
    .album-card-play i {
        font-size: 1.1rem;
    }
    .album-card-title {
        max-width: 120px;
        font-size: 0.8rem;
    }
    .album-card-artist {
        font-size: 0.65rem;
    }
    
    .album-artist-info {
        padding: 14px 16px;
        border-radius: 14px;
        gap: 14px;
        flex-wrap: wrap;
    }
    
    .album-artist-avatar {
        width: 52px;
        height: 52px;
        border-width: 2px;
    }
    
    .album-artist-name a {
        font-size: 0.95rem;
    }
    
    .album-stats-mini {
        padding: 3px 10px;
    }
    
    .album-stats-number {
        font-size: 0.8rem;
    }
    
    .album-tracks-section {
        padding: 16px 14px 14px;
        border-radius: 14px;
    }
    
    .album-tracks-header {
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .album-tracks-header i {
        font-size: 1.2rem;
    }
    
    .album-tracks-header span {
        font-size: 0.9rem;
    }
    
    .album-tracks-header .track-count {
        font-size: 0.6rem;
        padding: 2px 10px;
    }
    
    .album-track-item {
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .album-track-item .track-left {
        gap: 10px;
        flex: 1 1 100%;
    }
    
    .album-track-item .track-number {
        font-size: 0.7rem;
        min-width: 22px;
    }
    
    .album-track-item .track-play-btn {
        width: 28px;
        height: 28px;
    }
    
    .album-track-item .track-play-btn i {
        font-size: 0.65rem;
    }
    
    .album-track-item .track-name {
        font-size: 0.8rem;
    }
    
    .album-track-item .track-right {
        flex: 1 1 100%;
        justify-content: flex-end;
        gap: 6px;
    }
    
    .album-track-item .track-download-btn {
        padding: 4px 10px;
        font-size: 0.6rem;
    }
    
    .album-track-item .track-download-btn i {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .album-glass-wrapper {
        padding: 12px 8px 8px;
        border-radius: 12px;
    }
    .album-section-modern .swiper-slide {
        width: 120px;
    }
    .album-card-play {
        width: 40px;
        height: 40px;
    }
    .album-card-play i {
        font-size: 0.9rem;
    }
    .album-card-title {
        max-width: 100px;
        font-size: 0.7rem;
    }
    .album-card-artist {
        font-size: 0.6rem;
    }
    
    .album-artist-info {
        padding: 12px 14px;
        border-radius: 12px;
        gap: 12px;
        margin-bottom: 14px;
    }
    
    .album-artist-avatar {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }
    
    .album-artist-name a {
        font-size: 0.85rem;
    }
    
    .album-artist-name span {
        font-size: 0.6rem;
    }
    
    .album-stats-mini {
        padding: 2px 8px;
    }
    
    .album-stats-number {
        font-size: 0.7rem;
    }
    
    .album-stats-label {
        font-size: 0.5rem;
    }
    
    .album-tracks-section {
        padding: 12px 10px 12px;
        border-radius: 12px;
        margin: 12px 0;
    }
    
    .album-tracks-header {
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .album-tracks-header i {
        font-size: 1rem;
    }
    
    .album-tracks-header span {
        font-size: 0.8rem;
    }
    
    .album-tracks-header .track-count {
        font-size: 0.55rem;
        padding: 1px 8px;
    }
    
    .album-track-item {
        padding: 6px 8px;
        border-radius: 8px;
    }
    
    .album-track-item .track-number {
        font-size: 0.6rem;
        min-width: 18px;
    }
    
    .album-track-item .track-play-btn {
        width: 24px;
        height: 24px;
    }
    
    .album-track-item .track-play-btn i {
        font-size: 0.55rem;
    }
    
    .album-track-item .track-name {
        font-size: 0.7rem;
    }
    
    .album-track-item .track-download-btn {
        padding: 3px 8px;
        font-size: 0.55rem;
        border-radius: 6px;
    }
    
    .album-track-item .track-download-btn i {
        font-size: 0.55rem;
    }
}