/* استایل مدرن برای ویجت لیست موزیک‌ها */
.mu-list-modern-container {
    width: 100%;
    position: relative;
}

.mu-grid-modern {
    display: grid;
    width: 100%;
    gap: 30px;
}

.mu-grid-1 {
    grid-template-columns: repeat(1, 1fr);
}

.mu-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mu-grid-3 {
    grid-template-columns: repeat(4, 1fr);
}

.mu-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mu-item-modern {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    scroll-snap-align: start;
}

.mu-item-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    border-color: #d1d5db;
}

.mu-thumbnail-modern {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.mu-thumbnail-modern img.mu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mu-item-modern:hover .mu-thumbnail-modern img.mu-image {
    transform: scale(1.05);
}

.mu-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mu-item-modern:hover .mu-play-overlay {
    opacity: 1;
}

.mu-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #275342 0%, #0fb57e 100%);
    border: 3px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.mu-play-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #275342 0%, #0fb57e 100%);
}

.mu-content-modern {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mu-title-modern {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.mu-title-modern a {
    text-decoration: none;
    color: #1f2937;
    transition: color 0.2s ease;
}

.mu-title-modern a:hover {
    color: #4f46e5;
}

.mu-meta-modern {
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
}

.mu-date-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mu-date-modern i {
    font-size: 13px;
}

.mu-excerpt-modern {
    color: #4b5563;
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.mu-actions-modern {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.mu-listen-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.mu-listen-btn:hover {
    background: linear-gradient(135deg, #0da271 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mu-read-more {
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.mu-read-more:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-2px);
}

.mu-read-more i {
    font-size: 12px;
}

.no-mus-message {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #6b7280;
    font-size: 16px;
    border: 2px dashed #d1d5db;
}

/* پخش کننده صوتی */
.mu-audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.mu-audio-player.active {
    display: block;
}

.player-header {
    background: linear-gradient(135deg, #275342 0%, #0fb57e 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-title {
    font-size: 16px;
    font-weight: 600;
}

.player-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.player-close:hover {
    opacity: 1;
}

.player-body {
    padding: 20px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.player-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.player-play-btn:hover {
    transform: scale(1.05);
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
}

.player-progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.player-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #275342 0%, #0fb57e 100%);
    width: 0%;
    transition: width 0.1s;
}

/* استایل‌های اسلایدر برای موبایل */
@media (max-width: 768px) {
    .mu-list-modern-container {
        overflow: hidden;
        padding: 0 15px;
        margin: 0 -15px;
    }
    
    .mu-grid-modern {
        display: flex !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 20px 15px;
        margin: 0;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .mu-grid-modern::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .mu-item-modern {
        flex: 0 0 calc(85% - 10px);
        min-width: calc(85% - 10px);
        margin-right: 10px;
        scroll-snap-align: start;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }
    
    .mu-item-modern:last-child {
        margin-right: 0;
    }
    
    /* افکت peek (نمایش نیمه‌ای از آیتم بعدی) */
    .mu-grid-modern::after {
        content: '';
        flex: 0 0 15%;
        min-width: 15%;
    }
    
    .mu-thumbnail-modern {
        height: 180px;
    }
    
    .mu-actions-modern {
        flex-direction: column;
    }
    
    /* دکمه‌های ناوبری اسلایدر */
    .mu-slider-nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        padding-bottom: 10px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #d1d5db;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .slider-dot.active {
        background: #0fb57e;
        transform: scale(1.2);
    }
    
    .slider-arrows {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: white;
        border: 2px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #4b5563;
        font-size: 18px;
    }
    
    .slider-arrow:hover {
        background: #0fb57e;
        border-color: #0fb57e;
        color: white;
        transform: scale(1.1);
    }
    
    /* مخفی کردن دکمه‌های ناوبری در دسکتاپ */
    .mu-slider-nav,
    .slider-arrows {
        display: none;
    }
}

/* نمایش دکمه‌های ناوبری فقط در موبایل */
@media (max-width: 768px) {
    .mu-slider-nav,
    .slider-arrows {
        display: flex;
    }
}

/* رسپانسیو برای تبلت */
@media (min-width: 769px) and (max-width: 992px) {
    .mu-grid-3,
    .mu-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mu-audio-player {
        width: 300px;
        right: 10px;
        bottom: 10px;
    }
}

/* رسپانسیو برای دسکتاپ کوچک */
@media (max-width: 1200px) {
    .mu-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* رسپانسیو برای موبایل کوچک */
@media (max-width: 480px) {
    .mu-item-modern {
        flex: 0 0 calc(90% - 10px);
        min-width: calc(90% - 10px);
    }
    
    .mu-content-modern {
        padding: 20px;
    }
    
    .mu-title-modern {
        font-size: 16px;
    }
    
    .mu-excerpt-modern {
        font-size: 12px;
    }
    
    .mu-listen-btn,
    .mu-read-more {
        font-size: 11px;
        padding: 8px 12px;
    }
    
    .mu-audio-player {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 10px;
    }
}