.dark-music-container {
    font-family: 'IRANSans', Tahoma, sans-serif;
    max-width: 950px;
    margin: 50px auto;
    background: #1a1a20;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.05);
    direction: rtl;
    position: relative; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* تغییر آیدی به کلاس برای استفاده چندباره در صفحه */
.box-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    border-radius: 24px;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -20px;
    width: 5px;
    height: 5px;
    background: rgba(16, 185, 129, 0.6);
    border-radius: 50%;
    animation: rise linear infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-1200px) scale(0.5); opacity: 0; }
}

.music-content-wrapper {
    position: relative;
    padding: 40px 35px;
}

.music-page-title, .player-info h3, .item-texts h4, .time-current, .time-total {
    color: #ffffff !important;
}

.music-page-subtitle, .player-info p, .item-texts p {
    color: #a1a1aa !important;
}

.music-header { text-align: center; margin-bottom: 40px; }
.music-page-title { font-size: 1.7em !important; font-weight: 900; margin: 0; }
.music-page-title span { color: #10b981 !important; text-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.music-page-subtitle { font-size: 1.1em; margin-top: 10px; }

.global-player {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.player-cover {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.player-cover svg { width: 50px; height: 50px; }
.player-info h3 { font-size: 1.5em; margin: 0 0 5px; }
.player-info p { font-size: 0.9em; margin: 0 0 25px; }

.player-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.85em;
    direction: ltr;
}

.progress-bar-container {
    flex-grow: 1;
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #10b981;
    width: 0%;
    border-radius: 6px;
    box-shadow: 0 0 10px #10b981;
    pointer-events: none;
}

.player-controls button {
    background: none;
    border: none;
    color: #a1a1aa !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* تغییر رنگ هاور دکمه‌های بعدی و قبلی به سفید */
.btn-next:hover, .btn-prev:hover{
    color: #ffffff !important;
    background: transparent;
    transform: scale(1.1);
    outline: none;
}


.btn-next:focus, .btn-prev:focus {
    
    background: transparent;
}

.main-ctrls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
}

.main-ctrls button svg { width: 35px; height: 35px; }

.btn-play-main {
    width: 70px;
    height: 70px;
    background: #10b981 !important;
    color: #000 !important;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.btn-play-main svg {
    color: #000 !important;
    fill: #000 !important;
}

/* جلوگیری از تغییر رنگ آیکون داخل دکمه پلی هنگام هاور */
.btn-play-main:hover {
    background: #34d399 !important;
    transform: scale(1.05) !important;
    color: #000 !important;
    outline: none;
}
.btn-play-main:hover svg{
    color: #000 !important;
    fill: #000 !important;
}

/* تنظیمات اسکرول برای لیست آهنگ‌ها */
.playlist-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 550px; /* تعیین ارتفاع ثابت برای جلوگیری از فشرده شدن */
    max-height: 60vh; /* ریسپانسیو بودن ارتفاع در مانیتورهای کوچک */
    overflow-y: auto; /* فعال‌سازی اسکرول */
    padding-left: 10px;
    padding-right: 5px;
}

/* استایل‌دهی به اسکرول‌بار لیست آهنگ‌ها */
.playlist-column::-webkit-scrollbar {
    width: 8px;
}
.playlist-column::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 24px;
}
.playlist-column::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}
.playlist-column::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

.playlist-item {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.item-progress-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    height: 100%;
    width: 0%;
    background: rgba(16, 185, 129, 0.2);
    z-index: 0;
    transition: width 0.1s linear;
}

.item-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.item-thumbnail {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: #a1a1aa;
    border: 1px solid transparent;
}

.item-thumbnail svg { width: 24px; height: 24px; }
.item-texts { flex-grow: 1; }
.item-texts h4 { margin: 0 0 5px; font-size: 1.1em; }
.item-texts p { margin: 0; font-size: 0.85em; }
.item-meta { display: flex; align-items: center; gap: 10px; }

.item-duration {
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    background: rgba(0, 0, 0, 0.4);
    padding: 0 12px;
    border-radius: 20px;
    color: #a1a1aa !important;
    box-sizing: border-box;
}

.item-icon-play {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
    transition: 0.3s;
    box-sizing: border-box;
}

.item-icon-play svg { width: 18px; height: 18px; }

/* استایل‌های آهنگ در حال پخش */
.active-song {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.active-song .item-thumbnail {
    background: #10b981;
    color: #000;
}

.active-song .item-texts h4 { color: #10b981 !important; }
.active-song .item-texts p { color: #ffffff !important; }

.active-song .item-icon-play {
    background: #10b981;
    color: #000;
}

.is-playing-now .item-thumbnail {
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 600px) {
    .music-content-wrapper { padding: 20px 15px; }
    .global-player { padding: 20px 15px; }
    .music-page-title { font-size: 1.7em !important; }
}
