/* پلی لیست ها و ابزار پلیر — wwwroot/js/player.js */

/* دکمه های پوسته پلیر absolute هستند: بعد از نمایش زمان (left: 90px، عرض 70px) */
.mejs-container .mejs-controls .mc-ctrl { left: 165px; }
.mejs-container .mejs-controls .mc-ctrl + .mc-ctrl { left: 205px; }
.mejs-container .mejs-controls .mc-ctrl button {
    background: none;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    opacity: .75;
    text-indent: 0;
}
.mejs-container .mejs-controls .mc-ctrl button:hover { opacity: 1; }
.mc-add-btn,
.mc-icon-btn {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

/* دکمه + روی کارت آهنگ ها */
.mc-add-btn {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 4px;
    opacity: .85;
}
.mc-add-btn:hover { opacity: 1; color: #f44455; }
.item-overlay.center .mc-add-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    margin: 0;
}

/* پنجره ها */
.mc-modal .modal-content { color: inherit; }
.mc-modal .modal-header { display: flex; align-items: center; gap: 8px; }
.mc-modal .modal-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-modal .modal-body { max-height: 70vh; overflow-y: auto; }
.mc-modal .close { margin: 0; }

.mc-inline-form { display: flex; gap: 6px; margin-bottom: 12px; }
.mc-inline-form .form-control { flex: 1; min-width: 0; }

.mc-hint {
    font-size: 12px;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: rgba(127,127,127,.12);
}

.mc-list-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    margin-bottom: 4px;
    border: 0;
    border-radius: 4px;
    background: rgba(127,127,127,.08);
    color: inherit;
    text-align: right;
    cursor: pointer;
}
.mc-list-btn:hover { background: rgba(127,127,127,.2); }
.mc-list-name { flex: 1; font-weight: 500; }
.mc-list-count { font-size: 12px; opacity: .6; }

.mc-queue-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(127,127,127,.2);
}
.mc-queue-row span { flex: 1; font-size: 12px; }

.mc-pl-list, .mc-track-list { list-style: none; margin: 0; padding: 0; }
.mc-pl-item, .mc-track {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 4px;
}
.mc-pl-item:hover, .mc-track:hover { background: rgba(127,127,127,.1); }
.mc-pl-cover {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(127,127,127,.25) center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc-pl-cover i { opacity: .5; }
.mc-pl-cover[style*="url"] i { display: none; }
.mc-pl-info, .mc-track-info { flex: 1; min-width: 0; cursor: pointer; }
.mc-pl-name, .mc-track-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-pl-count, .mc-track-author { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mc-pl-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.mc-track-no { width: 20px; text-align: center; font-size: 12px; opacity: .6; flex-shrink: 0; }
.mc-track-thumb {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 3px;
    background: rgba(127,127,127,.25) center / cover no-repeat;
}
.mc-track.is-current .mc-track-title { color: #f44455; }
.mc-icon-btn { width: 30px; height: 30px; border-radius: 50%; opacity: .7; flex-shrink: 0; }
.mc-icon-btn:hover:not(:disabled) { opacity: 1; background: rgba(127,127,127,.2); }
.mc-icon-btn:disabled { opacity: .2; cursor: default; }

.mc-empty { text-align: center; padding: 30px 10px; opacity: .7; }
.mc-empty > .fa { font-size: 36px; margin-bottom: 10px; display: block; }

.mc-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translate(-50%, 20px);
    padding: 10px 18px;
    border-radius: 20px;
    background: rgba(20,20,20,.92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 2000;
    max-width: calc(100% - 32px);
}
.mc-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 575px) {
    .mc-track .mc-icon-btn[title="بالا"],
    .mc-track .mc-icon-btn[title="پایین"] { display: none; }
}
