/* --- استایل کارت‌های پخش داخل متن --- */
.dreamcode-audio-card {
    background-color: #26b1ba;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 20px 0;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(38, 177, 186, 0.3);
    direction: rtl;
}

.dreamcode-audio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(38, 177, 186, 0.4);
}

.dreamcode-audio-card.active {
    background-color: #1e8e95;
    border: 2px solid #fff;
}

.card-play-icon { font-size: 22px; }
.card-title { font-weight: bold; font-size: 16px; flex-grow: 1; text-align: center; }
.card-volume-icon { font-size: 20px; opacity: 0.8; }

/* --- استایل پلیر ثابت پایین (Floating Player) --- */
#custom-audio-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 12px 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sap-player-hidden { bottom: -150px !important; opacity: 0; visibility: hidden; }

#sap-title-container {
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #26b1ba;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sap-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#sap-play-pause {
    background: #26b1ba;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sap-progress-container { flex-grow: 1; display: flex; align-items: center; }
#sap-seek-bar { width: 100%; cursor: pointer; accent-color: #26b1ba; }

#sap-speed {
    border: 1px solid #26b1ba;
    border-radius: 8px;
    padding: 4px;
    font-size: 12px;
    background: white;
    color: #26b1ba;
    cursor: pointer;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    #custom-audio-player { width: 98%; bottom: 10px; padding: 10px; }
    .card-title { font-size: 14px; }
}