/* صفحهٔ پیشنهاد موسیقی: همان الگوی .mbreq-* صفحهٔ /requests با رنگ بنفش موسیقی. */
.mbreq-page { --mbreq-surface:#0d1118; --mbreq-border:#282f39; --mbreq-muted:#a5afbd; min-height:100vh; background:#070a0e; color:#f5f3f7; padding-bottom:40px; }
.mbreq-wrap { width:min(1440px,calc(100% - 48px)); margin:auto; }
.mbreq-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:30px 0 20px; }
.mbreq-hero h1 { font-size:clamp(25px,3vw,34px); margin:0 0 6px; line-height:1.5; }
.mbreq-hero p { color:var(--mbreq-muted); line-height:1.9; margin:0; font-size:14px; }

/* سکوی ۳ آهنگ برتر در حال رای گیری (بالای صفحه) */
.mbreq-top3 { margin-bottom:24px; background:linear-gradient(135deg,rgba(145,70,197,.14),rgba(13,17,24,.96) 55%,rgba(251,191,36,.07)); border:1px solid #3c2654; border-radius:18px; padding:18px 20px; }
.mbreq-top3-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.mbreq-top3-head h2 { margin:0; font-size:16px; display:flex; align-items:center; gap:8px; color:#fff; }
.mbreq-top3-head h2 i { color:#fbbf24; }
.mbreq-top3-sub { font-size:12px; color:var(--mbreq-muted); }
.mbreq-top3-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.mbreq-top3-card { position:relative; display:flex; align-items:center; gap:12px; background:rgba(11,15,22,.88); border:1px solid #2b3344; border-radius:14px; padding:14px; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; overflow:hidden; }
.mbreq-top3-card:hover { transform:translateY(-2px); }
.mbreq-top3-card.rank-1 { order:2; border-color:rgba(251,191,36,.6); background:linear-gradient(145deg,rgba(251,191,36,.15),rgba(11,15,22,.94) 60%); box-shadow:0 10px 28px rgba(251,191,36,.12); transform:translateY(-4px); }
.mbreq-top3-card.rank-1:hover { transform:translateY(-6px); }
.mbreq-top3-card.rank-2 { order:1; border-color:rgba(203,213,225,.42); background:linear-gradient(145deg,rgba(203,213,225,.09),rgba(11,15,22,.94) 60%); }
.mbreq-top3-card.rank-3 { order:3; border-color:rgba(217,119,6,.45); background:linear-gradient(145deg,rgba(217,119,6,.10),rgba(11,15,22,.94) 60%); }
.mbreq-top3-card.is-playing { border-color:#a855f7; box-shadow:0 0 0 1px rgba(168,85,247,.4), 0 10px 26px rgba(145,70,197,.22); }
.mbreq-rank-badge { flex:0 0 auto; width:30px; height:30px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; }
.rank-1 .mbreq-rank-badge { background:linear-gradient(135deg,#fbbf24,#d97706); color:#1a1203; }
.rank-2 .mbreq-rank-badge { background:linear-gradient(135deg,#e2e8f0,#94a3b8); color:#0f172a; }
.rank-3 .mbreq-rank-badge { background:linear-gradient(135deg,#f59e0b,#b45309); color:#1a0f03; }
.mbreq-top3-info { flex:1 1 auto; min-width:0; }
.mbreq-top3-info h3 { margin:0 0 3px; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mbreq-top3-info p { margin:0 0 6px; font-size:12px; color:var(--mbreq-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mbreq-top3-stats { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:11px; }
.mbreq-top3-votes { display:inline-flex; align-items:center; gap:4px; color:#d8b4fe; font-weight:600; }
.mbreq-top3-prize { display:inline-flex; align-items:center; gap:4px; color:#fbbf24; background:rgba(251,191,36,.12); border:1px solid rgba(251,191,36,.28); border-radius:999px; padding:1px 8px; font-weight:600; }

.mbreq-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:20px; align-items:start; }
.mbreq-content { min-width:0; }
.mbreq-sidebar { min-width:0; display:grid; gap:16px; position:sticky; top:96px; }
.mbreq-card,.mbreq-week { background:var(--mbreq-surface); border:1px solid var(--mbreq-border); border-radius:14px; padding:18px; }
.mbreq-card label { display:block; margin:12px 0 6px; font-size:13px; color:#cbd5e1; }
.mbreq-card input,.mbreq-card textarea { box-sizing:border-box; width:100%; padding:10px 12px; border:1px solid #475569; border-radius:9px; background:#0f172a; color:#fff; font:inherit; font-size:13px; }
.mbreq-card textarea { resize:vertical; min-height:78px; }
.mbreq-btn { border:1px solid transparent; border-radius:9px; padding:10px 16px; background:#9146c5; color:#fff; font:inherit; font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.mbreq-btn:hover { background:#7e35af; color:#fff; }
.mbreq-btn:disabled { opacity:.6; cursor:default; }
.mbreq-btn.outline { background:transparent; border-color:#4a2d63; }
.mbreq-note { color:var(--mbreq-muted); font-size:12px; line-height:1.9; margin:8px 0 0; }
.mbreq-week { background:linear-gradient(145deg,#191122,#0d1118 75%); border-color:#4a2d63; }
.mbreq-week h2 { margin:0 0 10px; font-size:16px; }
.mbreq-countdown { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.mbreq-countdown div { text-align:center; background:#0b0f16; border:1px solid #33415a; border-radius:9px; padding:8px 3px; }
.mbreq-countdown strong { display:block; font-size:21px; font-variant-numeric:tabular-nums; }
.mbreq-countdown small { color:var(--mbreq-muted); font-size:10px; }
.mbreq-podium { display:grid; gap:6px; margin-top:12px; }
.mbreq-podium-item { display:flex; justify-content:space-between; gap:8px; background:#0b0f16; border:1px solid #33415a; border-radius:8px; padding:8px 10px; font-size:12px; }
.mbreq-podium-item strong { color:#fbbf24; }
.mbreq-tools-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; background:var(--mbreq-surface); border:1px solid var(--mbreq-border); border-radius:12px; padding:10px 12px; }
.mbreq-tools { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.mbreq-tab { border:1px solid #334155; background:#0b0f16; color:#cbd5e1; border-radius:8px; padding:8px 14px; font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; transition:border-color .15s ease, background .15s ease, color .15s ease; }
.mbreq-tab:hover { border-color:#7e35af; color:#fff; }
.mbreq-tab.active { border-color:#a855f7; color:#fff; background:#2a1240; }
.mbreq-tools-extra { display:flex; align-items:center; gap:10px; flex:1 1 220px; justify-content:flex-end; min-width:0; }
.mbreq-search-wrap { position:relative; flex:0 1 260px; width:100%; }
.mbreq-search-wrap i { position:absolute; inset-inline-start:11px; top:50%; transform:translateY(-50%); color:var(--mbreq-muted); font-size:12px; pointer-events:none; }
.mbreq-search { box-sizing:border-box; width:100%; padding:8px 12px; padding-inline-start:32px; border:1px solid #334155; border-radius:8px; background:#0b0f16; color:#fff; font:inherit; font-size:12.5px; }
.mbreq-search:focus { outline:none; border-color:#a855f7; }
.mbreq-count-pill { flex:0 0 auto; font-size:12px; color:var(--mbreq-muted); background:#0b0f16; border:1px solid #263042; border-radius:8px; padding:7px 11px; white-space:nowrap; }

/* شبکهٔ سه‌ستونهٔ کارت‌های آهنگ */
.mbreq-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.mbreq-item { position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:10px; background:var(--mbreq-surface); border:1px solid var(--mbreq-border); border-radius:14px; padding:14px; transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease; min-width:0; }
.mbreq-item:hover { border-color:#4a2d63; transform:translateY(-2px); }
.mbreq-item.lead-1 { border-color:rgba(251,191,36,.6); background:linear-gradient(155deg,rgba(251,191,36,.12),var(--mbreq-surface) 58%); box-shadow:0 8px 24px rgba(251,191,36,.09); }
.mbreq-item.lead-2 { border-color:rgba(203,213,225,.45); background:linear-gradient(155deg,rgba(203,213,225,.08),var(--mbreq-surface) 58%); }
.mbreq-item.lead-3 { border-color:rgba(217,119,6,.48); background:linear-gradient(155deg,rgba(217,119,6,.10),var(--mbreq-surface) 58%); }
.mbreq-lead-badge { display:inline-flex; align-items:center; gap:5px; align-self:flex-start; border-radius:999px; padding:2px 9px; font-size:11px; font-weight:700; }
.lead-1 .mbreq-lead-badge { background:rgba(251,191,36,.18); color:#fcd34d; border:1px solid rgba(251,191,36,.4); }
.lead-2 .mbreq-lead-badge { background:rgba(203,213,225,.15); color:#e2e8f0; border:1px solid rgba(203,213,225,.35); }
.lead-3 .mbreq-lead-badge { background:rgba(217,119,6,.18); color:#fdba74; border:1px solid rgba(217,119,6,.4); }
.mbreq-item.is-playing { border-color:#a855f7; box-shadow:0 0 0 1px rgba(168,85,247,.35), 0 10px 28px rgba(145,70,197,.18); background:linear-gradient(160deg,#171022,#0d1118 70%); }

.mbreq-card-head { display:flex; align-items:flex-start; gap:12px; }
.mbreq-play-btn { flex:0 0 auto; width:44px; height:44px; border-radius:50%; border:1px solid #7e35af; background:linear-gradient(135deg,#9146c5,#6d28d9); color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:15px; transition:transform .15s ease, background .15s ease, box-shadow .15s ease; }
.mbreq-play-btn:hover:not(:disabled) { transform:scale(1.06); box-shadow:0 6px 18px rgba(145,70,197,.35); }
.mbreq-play-btn.playing { background:#a855f7; border-color:#d8b4fe; }
.mbreq-play-btn:disabled { opacity:.35; cursor:not-allowed; background:#1e293b; border-color:#334155; }

.mbreq-item-body { flex:1 1 auto; min-width:0; }
.mbreq-item h3 { margin:0 0 4px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.mbreq-item-artist { margin:0; color:var(--mbreq-muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.mbreq-proposer { display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--mbreq-muted); margin-top:2px; min-width:0; }
.mbreq-proposer-avatar { flex:0 0 auto; width:24px; height:24px; border-radius:50%; object-fit:cover; border:1.5px solid rgba(168,85,247,.7); background:#1e1b2e; }
.mbreq-proposer-fallback { flex:0 0 auto; width:24px; height:24px; border-radius:50%; border:1.5px solid rgba(168,85,247,.7); background:linear-gradient(135deg,#6d28d9,#9146c5); color:#fff; font-size:11px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
.mbreq-proposer-name { color:#e2e8f0; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mbreq-top3-proposer { display:inline-flex; align-items:center; gap:6px; margin-bottom:6px; font-size:11.5px; color:#cbd5e1; max-width:100%; }
.mbreq-top3-proposer .mbreq-proposer-avatar,
.mbreq-top3-proposer .mbreq-proposer-fallback { width:20px; height:20px; font-size:10px; }

.mbreq-card-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; font-size:11px; color:var(--mbreq-muted); }
.mbreq-pill { display:inline-flex; align-items:center; gap:4px; border-radius:999px; background:#151b26; border:1px solid #263042; color:#cbd5e1; padding:2px 9px; font-size:11px; }
.mbreq-status { display:inline-flex; align-items:center; border-radius:999px; background:#2a1840; color:#d6a5f5; padding:2px 9px; font-size:11px; }
.mbreq-coins { color:#fbbf24; font-weight:600; }

.mbreq-progress { height:4px; border-radius:999px; background:#1e293b; overflow:hidden; }
.mbreq-progress-fill { height:100%; width:0; background:linear-gradient(90deg,#9146c5,#c084fc); transition:width .15s linear; }

.mbreq-card-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:10px; border-top:1px solid rgba(255,255,255,.06); }
.mbreq-duration { font-size:11px; color:var(--mbreq-muted); font-variant-numeric:tabular-nums; }
.mbreq-vote { border:1px solid #a855f7; border-radius:9px; background:#2a1240; color:#fff; min-width:74px; padding:7px 12px; font:inherit; font-size:12px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:5px; }
.mbreq-vote:hover:not(:disabled) { background:#3b1a59; }
.mbreq-vote.voted { background:#9146c5; border-color:#c084fc; }
.mbreq-vote:disabled { opacity:.45; cursor:default; }
.mbreq-empty { grid-column:1 / -1; color:var(--mbreq-muted); font-size:13px; padding:24px; text-align:center; background:var(--mbreq-surface); border:1px solid var(--mbreq-border); border-radius:12px; }
.mbreq-error { color:#fda4af; font-size:12px; min-height:18px; margin:6px 0; }

/* مودال پیشنهاد آهنگ */
.mbreq-modal[hidden] { display:none; }
.mbreq-modal { position:fixed; inset:0; z-index:1050; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(3,6,12,.76); backdrop-filter:blur(6px); }
.mbreq-modal-dialog { width:min(460px,100%); background:#0d1118; border:1px solid #4a2d63; border-radius:16px; padding:20px; box-shadow:0 24px 60px rgba(0,0,0,.55); }
.mbreq-modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.mbreq-modal-head h2 { margin:0; font-size:17px; display:flex; align-items:center; gap:8px; color:#fff; }
.mbreq-modal-head h2 i { color:#c084fc; }
.mbreq-modal-close { width:32px; height:32px; border-radius:8px; border:1px solid #334155; background:#151b26; color:#cbd5e1; font-size:16px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.mbreq-modal-close:hover { border-color:#a855f7; color:#fff; }
.mbreq-modal-dialog label { display:block; margin:12px 0 6px; font-size:13px; color:#cbd5e1; }
.mbreq-modal-dialog input,.mbreq-modal-dialog textarea { box-sizing:border-box; width:100%; padding:10px 12px; border:1px solid #475569; border-radius:9px; background:#0f172a; color:#fff; font:inherit; font-size:13px; }
.mbreq-modal-dialog textarea { resize:vertical; min-height:84px; }
.mbreq-hero-btn { flex:0 0 auto; padding:11px 18px; border-radius:11px; font-size:13.5px; box-shadow:0 6px 20px rgba(145,70,197,.28); }

@media(max-width:991.98px) { .mbreq-layout { grid-template-columns:1fr; } .mbreq-sidebar { position:static; } .mbreq-top3-grid { grid-template-columns:1fr; } .mbreq-top3-card.rank-1,.mbreq-top3-card.rank-2,.mbreq-top3-card.rank-3 { order:0; transform:none; } }
@media(max-width:767.98px) { .mbreq-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .mbreq-hero { flex-direction:column; align-items:flex-start; } }
@media(max-width:520px) { .mbreq-list { grid-template-columns:1fr; } }
