/* ============================
   سبک اصلی جعبه پلی‌لیست
============================ */
.dl-box {
    margin: 0 3px 15px;
    border-radius: 20px;
    background: #121212;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 15px;
}

.dl-box h2 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
    background-color: #e63946;
    border-radius: 30px;
    font-weight: bold;
    padding: 15px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.dl-box p.song-name {
    text-align: center;
    font-size: 14px;
    margin-bottom: 5px;
    color: #fff;
    background-color: #2a9d8f;
    border-radius: 10px;
    font-weight: bold;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dl-box li {
    margin: 20px 0 15px;
    padding: 15px 10px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #e63946, #2a9d8f);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* شماره آهنگ */
.track-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: #ff9f00;
    color: #fff;
    border-radius: 50%;
    margin-left: auto;
    font-weight: bold;
}

/* دکمه پلی هر سطر */
.audio_box {
    text-align: center;
    margin-top: 15px;
}

.global-play-btn {
    width: 60px;
    height: 60px;
    font-size: 28px;
    border-radius: 50%;
    background: #1db954;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, background 0.25s;
}

.global-play-btn:hover {
    transform: scale(1.12);
    background: #1ed760;
}

.global-play-btn .btn-icon {
    width: 0;
    height: 0;
    border-left: 12px solid #fff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.global-play-btn.playing .btn-icon {
    width: 12px;
    height: 12px;
    border: none;
    background: #fff;
    position: relative;
}
.global-play-btn.playing .btn-icon::before,
.global-play-btn.playing .btn-icon::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 12px;
    background: #fff;
    top: 0;
}
.global-play-btn.playing .btn-icon::before { left: 0; }
.global-play-btn.playing .btn-icon::after { right: 0; }

/* جعبه دانلود */
.download_box {
    margin: 15px 0;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.download_box a {
    padding: 0.8em 1.6em;
    background: linear-gradient(145deg, #e63946, #fa0707);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1), inset 0 2px 5px rgba(255,255,255,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.download_box a:hover {
    background: #fa0707;
    transform: translateY(-5px);
}

/* پلیر چسبان پایین */
#bottom-player {
    position: fixed;
    bottom: 70px; /* فاصله از پایین */
    left: 15px;
    right: 15px;
    background: linear-gradient(135deg, #1d1d1d, #333);
    padding: 15px;
    border-radius: 18px;
    display: none;
    flex-direction: column;
    gap: 10px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999999;
}

#bottom-player.active {
    display: flex;
}

.bp-top {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
}

.bp-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

/* دکمه‌های پلیر کوچک و شیک */
.bp-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1db954;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.bp-controls button:hover {
    background: #1ed760;
    transform: scale(1.1);
}

/* آیکن‌های داخلی دکمه‌ها */
.bp-controls .icon-play {
    width: 0;
    height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.bp-controls .icon-prev {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}
.bp-controls .icon-prev::after {
    content: "◀|";
}

.bp-controls .icon-next {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}
.bp-controls .icon-next::after {
    content: "|▶";
}

.bp-controls .icon-play.paused {
    width: 14px;
    height: 14px;
    background: #fff;
    position: relative;
}

.bp-controls .icon-play.paused::before,
.bp-controls .icon-play.paused::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 14px;
    background: #fff;
    top: 0;
}

.bp-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

#bp-range {
    flex: 1;
}

/* دکمه Mood Filter */
.mood-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 15px 0;
    justify-content: center;
}

.mood-label {
    font-weight: bold;
    color: #27b2b2;
}

.mood-btn {
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.mood-btn:hover,
.mood-btn.active {
    background: #ff5722;
}

/* دکمه‌های toggle متن */
.toggle-text-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.toggle-text-btn:hover {
    background: #555;
    transform: scale(1.05);
}

/* دکمه پلی روی لیست وسط چین شود */
.audio_box .global-play-btn {
    margin: 0 auto;
}
