/* صفحه‌ی موسیقی — کاور مربعی، ردیف‌های فشرده، حلقه‌ی کانال‌ها */
.mu-page{ padding-bottom:24px; }

/* ───── ردیف کانال‌ها (حداکثر ۲۰؛ حلقه = میزان گوش‌دادن) ───── */
.mu-chs{ display:flex; gap:18px; overflow-x:auto; padding:18px var(--pad) 8px; margin:0 calc(-1 * var(--pad)); scroll-padding-inline:var(--pad); scrollbar-width:none; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; user-select:none; -webkit-user-select:none; }
.mu-chs img{ -webkit-user-drag:none; user-select:none; }
.mu-chs::after{ content:""; flex:none; width:1px; margin-inline-start:calc(var(--pad) - 18px - 1px); }   /* آخرین کانال کامل دیده شود (پدینگ انتهای فلکس اسکرول‌پذیر نادیده گرفته می‌شود) */
.mu-chs::-webkit-scrollbar{ display:none; }
.mu-ch{ flex:none; width:88px; display:flex; flex-direction:column; align-items:center; gap:9px; text-decoration:none; color:inherit; text-align:center; scroll-snap-align:start; }
.mu-av{
  width:80px; height:80px; border-radius:50%; padding:3px; box-sizing:border-box; display:grid; place-items:center;
  background:conic-gradient(from 0deg, hsl(var(--h) 85% 62%) calc(var(--p)*1%), rgba(255,255,255,.13) 0);
  transition:transform .28s var(--ease), filter .28s;
}
.mu-ch:hover .mu-av{ transform:translateY(-3px) scale(1.04); filter:drop-shadow(0 8px 14px hsl(var(--h) 80% 50% / .45)); }
.mu-ch:active .mu-av{ transform:scale(.96); }
.mu-avi{ width:100%; height:100%; border-radius:50%; overflow:hidden; border:3px solid var(--bg); box-sizing:border-box; display:grid; place-items:center; background:linear-gradient(135deg,hsl(var(--h) 55% 30%),hsl(var(--h) 60% 16%)); }
.mu-avi img{ width:100%; height:100%; object-fit:cover; display:block; }
.mu-avi b{ font-size:26px; font-weight:800; color:hsl(var(--h) 85% 85%); }
.mu-ch em{ font-style:normal; font-size:12.5px; font-weight:600; max-width:88px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#d4d4da; }
.mu-ch:hover em{ color:#fff; }

/* ───── کارت‌های حالت (ترندها / بازپخش / برای شما) ───── */
.mu-modes{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:12px; padding:14px 0 6px; }
.mu-mode{
  position:relative; overflow:hidden; display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center;
  height:72px; padding:0 16px; border-radius:16px; color:#fff; text-decoration:none;
  background:linear-gradient(135deg,hsl(var(--mh) 70% 34%),hsl(var(--mh) 65% 18%));
  box-shadow:inset 0 0 0 1px hsl(var(--mh) 80% 70% / .18);
  transition:transform .25s var(--ease), box-shadow .25s;
}
.mu-mode::after{ content:""; position:absolute; inset-inline-start:-30px; top:-30px; width:110px; height:110px; border-radius:50%; background:radial-gradient(circle,hsl(var(--mh) 90% 65% / .35),transparent 70%); pointer-events:none; }
.mu-mode:hover{ transform:translateY(-2px); box-shadow:inset 0 0 0 1px hsl(var(--mh) 80% 70% / .4), 0 14px 30px -14px hsl(var(--mh) 90% 50% / .7); }
.mu-mode i{ grid-row:1 / 3; width:42px; height:42px; border-radius:13px; display:grid; place-items:center; background:rgba(255,255,255,.14); }
.mu-mode b{ font-size:15px; font-weight:800; align-self:end; line-height:1.4; }
.mu-mode span{ font-size:12px; opacity:.72; align-self:start; line-height:1.4; }
.m-trend{ --mh:8; } .m-replay{ --mh:265; } .m-foryou{ --mh:330; }

/* ───── طبقه‌ها (shelf) ───── */
.mu-shelf{ padding-top:26px; }
.mu-sh{ display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.mu-sh h2{ margin:0; font-size:21px; font-weight:800; line-height:1.4; }
.mu-sh p{ margin:0; font-size:13px; color:var(--muted); }
.mu-sh-all{ padding-top:30px; margin-bottom:14px; }
.mu-all{ flex:none; font-size:13px; font-weight:700; padding:7px 14px; border-radius:99px; color:#e8e8ee; box-shadow:inset 0 0 0 1px rgba(255,255,255,.2); transition:background .2s, color .2s; }
.mu-all:hover{ background:#fff; color:#111; }
.mu-pg{ display:flex; align-items:center; gap:12px; padding:22px 0 10px; }
.mu-pg h2{ margin:0; font-size:23px; font-weight:800; line-height:1.4; }
.mu-pg p{ margin:0; font-size:13px; color:var(--muted); }
.mu-back{ width:40px; height:40px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.08); transition:background .2s; flex:none; }
.mu-back:hover{ background:rgba(255,255,255,.18); }

/* ───── ردیف فشرده: کاور مربع راست، عنوان/هنرمند، مدت و ⋮ چپ ───── */
.mu-rows{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2px 18px; }
@container cw (max-width:1019px){ .mu-rows{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@container cw (max-width:659px){ .mu-rows{ grid-template-columns:minmax(0,1fr); } }
.mu-rows-full{ padding-top:10px; }
.mu-row{ display:flex; align-items:center; gap:12px; padding:7px 8px; margin:0 -8px; border-radius:12px; transition:background .18s; }
.mu-row:hover,.mu-row.menu-open{ background:rgba(255,255,255,.07); }
.mu-row .vcard-thumb{ flex:none; width:56px; height:56px; aspect-ratio:1/1; border-radius:8px; box-shadow:none; }
.mu-row .vcard-thumb::after{ display:none; }
.mu-row .vcard-thumb::before{ width:30px; height:30px; margin:-15px 0 0 -15px; background-size:16px; }
.mu-row:hover .vcard-thumb{ transform:none; box-shadow:none; }
.mu-row .mu-sb{ flex:1; min-width:0; display:flex; align-items:center; gap:8px; }
.mu-row .vcard-text{ flex:1; min-width:0; }
.mu-row .vcard-title{ -webkit-line-clamp:1; font-size:14.5px; line-height:1.5; }
.mu-row .vcard-channel{ margin-top:0; font-size:12.5px; }
.mu-d{ flex:none; font-size:12.5px; color:var(--muted); direction:ltr; font-variant-numeric:tabular-nums; }
.mu-row .vcard-menu-wrap{ margin-inline-end:-4px; }

/* ───── کاشی مربعی ───── */
.mu-tiles{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:26px 18px; padding-top:4px; }
@container cw (max-width:1699px){ .mu-tiles{ grid-template-columns:repeat(5,minmax(0,1fr)); } }
@container cw (max-width:1279px){ .mu-tiles{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@container cw (max-width:979px){ .mu-tiles{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 14px; } }
@container cw (max-width:619px){ .mu-tiles{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 12px; } }
.mu-tile .vcard-thumb{ aspect-ratio:1/1; border-radius:14px; }
.mu-tile .vcard-dur{ bottom:8px; left:8px; }
.mu-tile .mu-sb{ display:flex; align-items:flex-start; gap:4px; padding-top:10px; }
.mu-tile .vcard-text{ flex:1; min-width:0; }
.mu-tile .vcard-title{ -webkit-line-clamp:1; font-size:14.5px; line-height:1.55; }
.mu-tile .vcard-channel{ margin-top:0; font-size:12.5px; }
.mu-tile .vcard-menu-wrap{ margin-inline-end:-8px; margin-top:-4px; }

/* اسکلت */
.mu-s.sk .vcard-thumb{ aspect-ratio:1/1; }
.mu-row.sk .vcard-thumb{ width:56px; height:56px; }
.mu-s.sk .mu-sb{ flex:1; }
.mu-empty-s{ min-height:30vh; }
@media (max-width:620px){
  .mu-chs{ gap:14px; padding-top:12px; }
  .mu-av{ width:70px; height:70px; } .mu-ch{ width:76px; } .mu-ch em{ max-width:76px; }
  .mu-sh h2{ font-size:19px; }
  .mu-modes{ gap:8px; }
  .mu-mode{ height:auto; padding:11px 6px 10px; grid-template-columns:1fr; grid-template-rows:auto auto auto; justify-items:center; row-gap:6px; border-radius:14px; text-align:center; }
  .mu-mode i{ grid-row:auto; width:34px; height:34px; border-radius:11px; } .mu-mode i svg{ width:19px; height:19px; }
  .mu-mode b{ font-size:12.5px; align-self:auto; line-height:1.3; }
  .mu-mode span{ display:none; }
}
@media (max-width:360px){ .mu-mode b{ font-size:11.5px; } }

/* ترکِ در حال پخش */
.mu-now .vcard-title{ color:#ff5a5a; }
.mu-now .vcard-thumb{ box-shadow:0 0 0 2px #ff5a5a !important; }

/* کارت‌های موسیقی: چپ‌چین (کاور چپ، عنوان و نام کانال از چپ) */
.mu-s{ direction:ltr; text-align:left; }
.mu-s .vcard-title,.mu-s .vcard-channel{ text-align:left; }
/* نام کانال: ناحیه‌ی کلیک فقط به‌اندازه‌ی خودِ متن (نه کل ردیف)؛ در موبایل اصلاً لینک نیست (صفحه‌ی کانال فقط از صفحه‌ی پلیر اختصاصی) */
.mu-s .vcard-channel,.mu-htx .vcard-channel{ display:block; width:fit-content; max-width:100%; margin-right:auto; margin-left:0; }
@media (max-width:720px){ .mu-page .vcard-channel{ pointer-events:none; } }
.mu-s .vcard-share{ text-align:left; }
.mu-s .vcard-pop{ inset-inline-end:auto; right:0; }

/* ───── نتایج جستجوی موسیقی ───── */
.mu-pg h1{ margin:0; font-size:23px; font-weight:800; line-height:1.4; }
.mu-sr .mu-chs{ padding-top:10px; }
.mu-hero{ position:relative; display:flex; align-items:center; gap:26px; margin:14px 0 6px; padding:24px; border-radius:24px; overflow:hidden; isolation:isolate; direction:ltr; text-align:left; background:#15151b; border:1px solid rgba(255,255,255,.07); }
.mu-hbg{ position:absolute; inset:-40px; z-index:-2; background:center/cover no-repeat; filter:blur(38px) saturate(1.5); opacity:.55; transform:scale(1.1); }
.mu-hero::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(10,10,14,.35),rgba(10,10,14,.72)); }
.mu-hcv{ position:relative; flex:none; width:min(220px,34vw); aspect-ratio:1/1; border-radius:18px; overflow:hidden; display:block; box-shadow:0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.mu-hcv img{ width:100%; height:100%; object-fit:cover; display:block; }
.mu-hplay{ position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.28); opacity:0; transition:opacity .2s; color:#fff; }
.mu-hplay svg{ width:46px; height:46px; transform:translateX(-4%); filter:drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.mu-hcv:hover .mu-hplay{ opacity:1; }
.mu-htx{ min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.mu-hk{ font-size:12px; font-weight:700; letter-spacing:.02em; color:#fff; background:rgba(255,255,255,.14); padding:3px 11px; border-radius:99px; backdrop-filter:blur(6px); }
.mu-htx .vcard-title{ font-size:clamp(20px,3.2vw,32px); line-height:1.3; font-weight:800; -webkit-line-clamp:2; max-height:none; color:#fff; }
.mu-htx .vcard-channel{ font-size:14.5px; color:#d4d4da; }
.mu-hm{ font-size:12.5px; color:#bdbdc6; min-height:4px; }
.mu-hbtn{ margin-top:8px; display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 24px 0 18px; border:0; border-radius:99px; background:#fff; color:#0b0b10; font:700 14.5px/1 inherit; font-family:inherit; cursor:pointer; transition:transform .15s, box-shadow .2s; }
.mu-hbtn svg{ width:20px; height:20px; transform:translateX(-6%); }
.mu-hbtn:hover{ transform:translateY(-1px); box-shadow:0 8px 22px rgba(255,255,255,.18); }
.mu-hbtn:active{ transform:scale(.97); }
.mu-sr-h{ margin:26px 0 12px; font-size:17px; font-weight:800; }
@media (max-width:620px){
  .mu-hero{ flex-direction:column; align-items:flex-start; gap:16px; padding:18px; border-radius:20px; }
  .mu-hcv{ width:min(240px,100%); align-self:center; }
  .mu-hplay{ opacity:1; background:transparent; } .mu-hplay svg{ display:none; }
}

/* ───── کارت موسیقی (فقط کاشی‌های «همه‌ی موسیقی‌ها» و نتایج جستجو): آیکون پخش وسط کاور — مربعی گرد با رنگ ذخیره‌شده‌ی کاور ───── */
.mu-tile .vcard-thumb::before{
  width:58px; height:58px; margin:-29px 0 0 -29px; border-radius:19px;
  background:linear-gradient(160deg,rgba(255,255,255,.22),rgba(0,0,0,.2)), rgba(var(--vc,200,60,70),.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.2v13.6a1 1 0 0 0 1.5.86l11-6.8a1 1 0 0 0 0-1.72l-11-6.8A1 1 0 0 0 8 5.2z'/%3E%3C/svg%3E") calc(50% - 1.7px) 50%/28px no-repeat;
  box-shadow:0 10px 28px -4px rgba(var(--vc,200,60,70),.65), inset 0 0 0 1px rgba(255,255,255,.25);
  -webkit-backdrop-filter:none; backdrop-filter:none;
  transform:translateY(10px) scale(.7); transition:opacity .22s, transform .32s cubic-bezier(.2,1.2,.3,1);
}
@media (hover:hover){ .mu-tile:hover .vcard-thumb::before{ transform:none; } .mu-tile .vcard-img{ transition:opacity .28s ease, transform .5s cubic-bezier(.2,.8,.2,1); } .mu-tile:hover .vcard-img{ transform:scale(1.05); } }
.mu-tile .vcard-thumb{ overflow:hidden; }
/* ردیف‌های فشرده (برای شما / ترندها / بازپخش): کاور کوچک است؛ بدون آیکون پخش */
.mu-row .vcard-thumb::before{ display:none; }

/* ───── دسکتاپ: فلش چپ/راست لیست کانال‌ها (کنار لیست، بدون تداخل با کانال‌ها؛ فقط وقتی لیست به آن سمت ادامه دارد) ───── */
.mu-chw{ position:relative; }
.mu-ar{ display:none; }
@media (min-width:721px) and (pointer:fine){
  .mu-chs{ scroll-snap-type:none; }   /* snap با اسکرولِ کشیدنی می‌جنگید و کانال‌ها «می‌پریدند» */
  .mu-chw.has-ar .mu-chs{ padding-inline:calc(var(--pad) + 72px); scroll-padding-inline:calc(var(--pad) + 72px);
    -webkit-mask-image:linear-gradient(90deg,transparent calc(var(--pad) + 48px),#000 calc(var(--pad) + 72px),#000 calc(100% - var(--pad) - 72px),transparent calc(100% - var(--pad) - 48px));
            mask-image:linear-gradient(90deg,transparent calc(var(--pad) + 48px),#000 calc(var(--pad) + 72px),#000 calc(100% - var(--pad) - 72px),transparent calc(100% - var(--pad) - 48px)); }
  .mu-chw.has-ar .mu-ar{ display:grid; position:absolute; top:38px; width:42px; height:42px; padding:0; border:0; border-radius:50%; place-items:center; cursor:pointer; color:#fff; z-index:2;
    background:rgba(34,34,42,.86); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 18px -6px rgba(0,0,0,.7); backdrop-filter:blur(8px);
    opacity:0; transform:scale(.8); pointer-events:none; transition:opacity .22s, transform .25s var(--ease), background .2s, box-shadow .2s; }
  .mu-ar-l{ left:calc(var(--pad) + 4px); } .mu-ar-r{ right:calc(var(--pad) + 4px); }
  .mu-ar svg{ width:20px; height:20px; display:block; }
  .mu-chw.has-ar .mu-ar.on{ opacity:1; transform:none; pointer-events:auto; }
  .mu-chw.has-ar .mu-ar.on:hover{ background:rgba(255,255,255,.95); color:#111; box-shadow:0 8px 22px -6px rgba(255,255,255,.35); transform:scale(1.07); }
  .mu-chw.has-ar .mu-ar.on:active{ transform:scale(.94); }
}
