/* ═══════════════════════════════════════════════════════════
   مادآرنا v2.0 — استایل اصلی (سبک Apple Music / RTL)
   تم تیره و روشن + پلیر استیکی مینیمال پایین صفحه
   ═══════════════════════════════════════════════════════════ */

/* ───── فونت ───── */
@font-face {
  font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-display: swap;
}

/* ───── متغیرها: تم تیره (پیش‌فرض) — v3: سطوح روشن‌تر و کنتراست بهتر ───── */
:root, [data-theme="dark"] {
  --bg: #131318;
  --bg-soft: #191921;
  --card: #20202a;
  --card-2: #2b2b36;
  --border: rgba(255, 255, 255, .11);
  --text: #f7f7fa;
  --muted: #a6a6b3;
  --accent: #fa233b;
  --accent-2: #ff5e7a;
  --accent-grad: linear-gradient(135deg, #fa233b, #ff5e7a);
  --ok: #30d158;
  /* گلس سبک iOS: شفاف‌تر و روشن‌تر با درخشش داخلی */
  --glass: rgba(32, 32, 42, .62);
  --glass-strong: rgba(24, 24, 32, .78);
  --glass-hi: rgba(255, 255, 255, .14);
  --shadow: 0 16px 44px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .3);
  --track-bg: rgba(255, 255, 255, .16);
  --scrim: rgba(0, 0, 0, .5);
  --radius: 18px;
  --ease-spring: cubic-bezier(.32, .72, .25, 1);
  --glass-solid: rgba(24, 24, 32, .97);
}
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-soft: #ececf1;
  --card: #ffffff;
  --card-2: #f2f2f7;
  --border: rgba(0, 0, 0, .08);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #e8112d;
  --accent-2: #ff5e7a;
  --accent-grad: linear-gradient(135deg, #e8112d, #ff5e7a);
  --ok: #28a745;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-hi: rgba(255, 255, 255, .85);
  --shadow: 0 14px 40px rgba(30, 30, 60, .12);
  --shadow-sm: 0 4px 14px rgba(30, 30, 60, .08);
  --track-bg: rgba(0, 0, 0, .12);
  --scrim: rgba(0, 0, 0, .32);
  --radius: 18px;
  --glass-solid: rgba(252, 252, 254, .97);
}

/* ───── پایه ───── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  transition: background .25s ease, color .25s ease;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .5em; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--track-bg); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); border: 2px solid transparent; background-clip: content-box; }

/* نسخه ۷.۳.۱۹: عرض محتوای کل سایت از تمام‌عرض به ۱۲۵۰ پیکسل محدود شد
   تا سکشن‌ها، هدر و فوتر هم‌عرض و جمع‌وجور باشند (box-sizing: border-box) */
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }
.page-main { min-height: 62vh; padding: 28px 20px 64px; max-width: 1250px; margin-inline: auto; }
#app { transition: opacity .18s ease; }

/* فضای پایین برای پلیر استیکی (قرص مرکزی) */
body.has-player { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
body.sheet-open { overflow: hidden; }

/* ═══════════ Topbar ═══════════ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-strong);
  /* v7.6: blur سبک‌تر برای اسکرول روان (بازترشم در هر فریم اسکرول محاسبه می‌شود) */
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; gap: 14px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; flex-shrink: 0; }
.logo:hover { color: inherit; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(250, 35, 59, .35);
}
.nav { display: flex; gap: 2px; margin-inline-start: 8px; }
.nav a {
  padding: 7px 13px; border-radius: 999px; font-weight: 500; font-size: 14px;
  color: var(--muted); transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
  display: inline-flex; align-items: center; gap: 6px;
  line-height: 1; white-space: nowrap;
}
.nav a svg { flex-shrink: 0; opacity: .8; }
.nav a:hover { color: var(--text); background: var(--card-2); }
.nav a:hover svg { opacity: 1; }
.nav a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.nav a.active svg { opacity: 1; }

.topbar-search {
  margin-inline-start: auto; display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.topbar-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.topbar-search input {
  background: transparent; border: 0; outline: 0; color: var(--text);
  padding: 9px 16px; width: 200px; font: inherit; font-size: 13.5px;
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search button {
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  padding: 8px 14px 8px 10px; display: flex;
}
.topbar-search button:hover { color: var(--accent); }

.icon-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
[data-theme="light"] .theme-toggle .ic-sun { display: block; }
[data-theme="light"] .theme-toggle .ic-moon { display: none; }
.nav-burger { display: none; }

/* جستجوی موبایل — دسکتاپ: آیکون و پنل مخفی */
.search-toggle { display: none; }
.topbar-search-panel { display: none; }

/* ═══════════ چیپ‌های فیلتر حال‌وهوا ═══════════ */
.mood-filter-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 20px; }
.mood-filter-label { font-size: 13px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.mood-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mood-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text); transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); white-space: nowrap;
}
.mood-chip i { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px rgba(0,0,0,.25); }
.mood-chip b { font-size: 11px; color: var(--muted); font-weight: 700; }
.mood-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.mood-chip[data-on="1"] { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.mood-chip[data-on="1"] b { color: rgba(255,255,255,.85); }
.chip-mood i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 2px; }

/* ═══════════ صفحه برچسب‌ها ═══════════ */
.tags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 26px; }
.tag-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 17px; padding: 14px 16px; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.tag-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tag-card-ic {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.tag-card-body { min-width: 0; }
.tag-card-body b { display: block; font-size: 14px; font-weight: 800; }
.tag-card-body span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.tag-card-arrow { margin-inline-start: auto; color: var(--muted); opacity: .6; }
.tag-card:hover .tag-card-arrow { color: var(--accent); opacity: 1; }
.page-head-ic { font-style: normal; margin-inline-end: 6px; }

/* ═══════════ Hero — چندرنگ زنده + اکولایزر نرم و آهسته ═══════════ */
.hero {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 52px 44px;
  color: #fff; margin-bottom: 40px;
  background: linear-gradient(125deg, #6d28d9 0%, #fa233b 34%, #ff6a3d 58%, #f9a825 82%, #fa233b 100%);
  background-size: 320% 320%;
  /* نسخه ۷.۶: انیمیشن heroShift (حرکت گرادیان پس‌زمینه) حذف شد —
     انیمیشن background-position روی یک سطح بزرگ، در هر فریم رندر سنگین
     می‌گرفت و لگ اسکرول می‌ساخت. گرادیان اکنون ثابت است و فقط نوارهای
     اکولایزر (انیمیشن transform سبک) باقی مانده‌اند. */
  box-shadow: 0 20px 50px rgba(250, 35, 59, .26);
}
.hero-eq {
  position: absolute; inset-inline-end: 38px; top: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: 7px;
  opacity: .5; z-index: 0; pointer-events: none;
}
.hero-eq i {
  width: 6px; height: 76%; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(255,255,255,.85), rgba(255,255,255,.15));
  box-shadow: 0 0 14px rgba(255,255,255,.18);
  transform-origin: 50% 100%;
  animation: heroEq 3.4s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  will-change: transform, opacity;
}
.hero-eq i:nth-child(1)  { animation-delay: 0s;    animation-duration: 3.4s; }
.hero-eq i:nth-child(2)  { animation-delay: .5s;   animation-duration: 4.1s; }
.hero-eq i:nth-child(3)  { animation-delay: 1.1s;  animation-duration: 3.7s; }
.hero-eq i:nth-child(4)  { animation-delay: .3s;   animation-duration: 4.4s; }
.hero-eq i:nth-child(5)  { animation-delay: 1.6s;  animation-duration: 3.5s; }
.hero-eq i:nth-child(6)  { animation-delay: .8s;   animation-duration: 4.2s; }
.hero-eq i:nth-child(7)  { animation-delay: 2.1s;  animation-duration: 3.9s; }
.hero-eq i:nth-child(8)  { animation-delay: .6s;   animation-duration: 4.6s; }
.hero-eq i:nth-child(9)  { animation-delay: 1.9s;  animation-duration: 3.6s; }
.hero-eq i:nth-child(10) { animation-delay: 1.3s;  animation-duration: 4.3s; }
.hero-eq i:nth-child(11) { animation-delay: 2.4s;  animation-duration: 3.8s; }
.hero-eq i:nth-child(12) { animation-delay: .9s;   animation-duration: 4.5s; }
@keyframes heroEq {
  0%   { transform: scaleY(.24); opacity: .55; }
  50%  { transform: scaleY(.6);  opacity: .8; }
  100% { transform: scaleY(1);   opacity: .95; }
}
body.is-playing .hero-eq i { animation-duration: 2.8s; }
.hero-eq i { transition: opacity .4s ease; }
.hero-glow { position: absolute; pointer-events: none; }
.hero-glow.g1 { width: 640px; height: 640px; background: radial-gradient(circle closest-side, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 71%); inset-inline-start: -200px; top: -250px; }
.hero-glow.g2 { width: 500px; height: 500px; background: radial-gradient(circle closest-side, rgba(60, 0, 20, .62), rgba(60, 0, 20, 0) 73%); inset-inline-end: -150px; bottom: -200px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32); padding: 5px 15px;
  border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.hero h1 { font-size: 42px; font-weight: 800; margin: 0 0 12px; position: relative; z-index: 1; letter-spacing: -.5px; }
.hero p { margin: 0 0 26px; opacity: .94; max-width: 580px; position: relative; z-index: 1; font-size: 16px; }
.hero p b { font-weight: 800; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-white {
  background: #fff; color: #c40024; border-color: #fff; font-weight: 700;
}
.btn-white:hover { background: #ffe9ec; color: #a3001d; border-color: #fff; }
.btn-ghost {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .42); color: #fff;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.hero-stats { position: relative; z-index: 1; margin-top: 30px; display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 800; line-height: 1.4; }
.hero-stats span { font-size: 13px; opacity: .85; }

/* ═══════════ بخش‌ها ═══════════ */
.sec { margin-bottom: 48px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.sec-head h2 { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.sec-link { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.sec-link:hover { color: var(--accent); }
.sec-hint { font-size: 12.5px; color: var(--muted); }

/* ═══════════ کارت‌ها ═══════════ */
.cards-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}
.song-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; display: block;
  transition: transform .26s var(--ease-spring), border-color .2s ease;
}
.song-card:hover {
  transform: translateY(-5px); border-color: transparent;
  color: inherit;
  background: var(--card-2);
}
.card-cover {
  position: relative; display: block; border-radius: 13px; overflow: hidden;
  aspect-ratio: 1; margin-bottom: 11px; background: var(--card-2);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.song-card:hover .card-cover img { transform: scale(1.05); }
.card-play {
  position: absolute; inset-inline-start: 10px; bottom: 10px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-grad); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .18s ease, transform .3s var(--ease-spring);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4); padding: 0; padding-inline-start: 2px;
}
.song-card:hover .card-play, .card-play:focus-visible, .card-play.is-current { opacity: 1; transform: translateY(0); }
.card-play:hover { transform: scale(1.08) !important; }
.card-play.is-current { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.card-play.is-playing svg { opacity: 0; }
.card-play.is-playing::before {
  content: ''; position: absolute; width: 4.5px; height: 15px;
  background: #fff; border-radius: 2px;
  inset-inline-start: calc(50% - 5.5px); top: calc(50% - 7.5px);
  box-shadow: 6.5px 0 0 #fff;
  transform-origin: 50% 50%;
  animation: cardEq .8s ease-in-out infinite alternate;
}
@keyframes cardEq { from { transform: scaleY(.6); } to { transform: scaleY(1.07); } }
@media (hover: none) {
  .card-play { opacity: 1; transform: none; }
}
.card-open {
  position: absolute; inset-inline-start: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .18s ease, transform .3s var(--ease-spring);
}
.song-card:hover .card-open { opacity: 1; transform: translateY(0); }
@media (hover: none) { .card-open { opacity: 1; transform: none; } }
.card-title {
  display: block; font-weight: 700; font-size: 14.5px; line-height: 1.6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-artist {
  display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* خواننده‌ها — آواتار دایره‌ای سبک اپل */
.artists-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.artist-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px; text-align: center; display: block;
  transition: transform .26s var(--ease-spring);
}
.artist-card:hover { transform: translateY(-5px); color: inherit; }
.artist-img {
  display: block; width: 96px; height: 96px; margin: 0 auto 12px;
  border-radius: 50%; overflow: hidden; background: var(--card-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.artist-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.artist-card:hover .artist-img img { transform: scale(1.08); }
.artist-name { display: block; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-count { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ═══════════ لیست ترک‌ها ═══════════ */
.tracklist {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.track-row {
  display: flex; align-items: center; gap: 13px;
  padding: 10px 18px; position: relative;
  transition: background .16s;
}
.track-row + .track-row { border-top: 1px solid var(--border); }
.track-row:hover { background: var(--card-2); }
.track-num {
  width: 26px; text-align: center; color: var(--muted);
  font-size: 13px; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.track-play {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0;
  background: var(--accent-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  opacity: 0; transform: scale(.9); transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.track-row:hover .track-play, .track-play:focus-visible, .track-row.active .track-play { opacity: 1; transform: scale(1); }
.track-num, .track-play { transition: opacity .18s ease, transform .3s var(--ease-spring); }
.track-row.active .track-num { display: none; }
.track-row.active .track-play { opacity: 1; transform: scale(1); }
@media (hover: none) {
  .track-num { display: none; }
  .track-play { opacity: 1; transform: scale(1); }
}
.track-play .ic-pause { display: none; }
.track-row.playing .track-play .ic-pause { display: block; }
.track-row.playing .track-play .ic-play { display: none; }
.track-cover {
  width: 46px; height: 46px; border-radius: 10px; object-fit: cover;
  background: var(--card-2); flex-shrink: 0;
}
.track-info { min-width: 0; flex: 1; }
.track-title {
  display: block; font-weight: 700; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-row.active .track-title { color: var(--accent); }
.track-artist {
  display: block; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-eq { display: none; align-items: flex-end; gap: 2.5px; height: 16px; flex-shrink: 0; }
.track-row.playing .track-eq { display: flex; }
.track-eq i {
  width: 3px; border-radius: 2px; background: var(--accent);
  animation: eq 1s ease-in-out infinite;
}
.track-eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.track-eq i:nth-child(2) { height: 100%; animation-delay: .2s; }
.track-eq i:nth-child(3) { height: 40%; animation-delay: .4s; }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.track-dur { font-size: 12.5px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.track-dl {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.track-dl:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ═══════════ هیروی موجودیت (خواننده/آلبوم/پلی‌لیست) ═══════════ */
.entity-hero {
  display: flex; gap: 30px; align-items: flex-end;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 30px; margin-bottom: 34px;
}
.entity-cover {
  width: 210px; height: 210px; flex-shrink: 0;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--card-2);
}
.entity-cover img { width: 100%; height: 100%; object-fit: cover; }
.entity-info { min-width: 0; flex: 1; }
.entity-info h1 { font-size: 30px; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.4px; }
.entity-bio, .entity-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; max-width: 640px; }
.entity-sub a { color: var(--text); font-weight: 700; }
.entity-sub a:hover { color: var(--accent); }
.entity-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.entity-stats b { display: block; font-size: 20px; font-weight: 800; }
.entity-stats span { font-size: 12.5px; color: var(--muted); }

/* ═══════════ صفحه آهنگ — ساختار مینیمال ═══════════ */
.song-hero {
  display: flex; gap: 32px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 30px; margin-bottom: 34px;
}
.song-cover {
  width: 232px; height: 232px; flex-shrink: 0;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--card-2);
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-info { min-width: 0; flex: 1; }
.song-kicker-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.song-kicker {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 12px; border-radius: 999px;
}
.song-year { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.song-title {
  font-size: 34px; font-weight: 800; letter-spacing: -.5px;
  line-height: 1.35; margin: 0 0 6px;
}
.song-artist-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; color: var(--accent);
  margin: 0 0 10px;
}
.song-artist-line:hover { text-decoration: underline; }
.song-stats {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 9px; color: var(--muted); font-size: 13px;
  margin-bottom: 14px;
}
.song-stats b { color: var(--text); font-weight: 700; }
.song-stats i { font-style: normal; opacity: .4; }
.song-stats a { color: var(--text); font-weight: 600; }
.song-stats a:hover { color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-2); border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 999px; font-size: 12.5px; color: var(--muted);
}
.chip a { color: var(--text); font-weight: 700; }
.chip a:hover { color: var(--accent); }
.chip b { color: var(--text); }
.chip-ghost {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: transparent; color: var(--accent); font-weight: 700;
  margin-bottom: 10px;
}
.chip-mood { color: var(--text); font-weight: 600; }
.chip-mood:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* برچسب‌های آهنگ */
.tag-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag-chips.centered { justify-content: center; }
.tag-chips-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--card-2); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 999px; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.tag-chip .tag-ic { font-style: normal; font-size: 12.5px; line-height: 1; }
.tag-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-1px); }

/* گزارش لینک خراب */
.dl-report {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.dl-report-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.dl-report-btn:hover { color: #ffb020; border-color: color-mix(in srgb, #ffb020 45%, transparent); }
.dl-report-btn.sent { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); cursor: default; }
.dl-report-hint { font-size: 11.5px; color: var(--muted); }

.song-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 18px; }
.btn-big {
  padding: 12px 26px; font-size: 15px; font-weight: 700; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}

/* عنوان انگلیسی آهنگ (سبک سایت‌های موزیک ایرانی) */
.song-title-en {
  direction: ltr; text-align: left;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 13.5px; font-weight: 400; color: var(--muted);
  margin: -8px 0 16px; letter-spacing: .1px; line-height: 1.7;
}
.song-title-en b { color: var(--text); font-weight: 700; }

/* باج ریمیکس روی کاور */
.song-cover { position: relative; }
.cover-remix-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(10, 10, 16, .72); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 10.5px; font-weight: 800; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 999px;
}

/* سکشن با تیتر در یک ردیف (مثل اپل موزیک) */
.sec-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-more {
  font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.sec-more:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }

/* ═══════════ اسکرول افقی کارت‌ها (مشابه‌ها / سایر آثار / ریمیکس‌ها) ═══════════ */
.hscroll {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 176px);
  gap: 16px;
  overflow-x: auto; overflow-y: hidden;
  padding: 6px 4px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  /* نوار اسکرول افقی مخفی — پیمایش با درگ/لمس/چرخ ماوس */
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.hcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.hcard-cover {
  position: relative; display: block;
  aspect-ratio: 1; border-radius: 15px; overflow: hidden;
  background: var(--card-2); box-shadow: var(--shadow-sm);
}
.hcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hcard:hover .hcard-cover img { transform: scale(1.06); }
.hcard-play {
  position: absolute; bottom: 10px; inset-inline-start: 10px;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .18s ease, transform .3s var(--ease-spring);
}
.hcard:hover .hcard-play, .hcard-play:focus-visible { opacity: 1; transform: translateY(0); }
.hcard-remix {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  background: rgba(10,10,16,.78); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  font-size: 9.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px;
}
.hcard-title {
  margin-top: 10px; font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hcard-title:hover { color: var(--accent); }
.hcard-artist {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hcard-artist:hover { color: var(--accent); }

/* ═══════════ نظرات ═══════════ */
.comments-list { display: grid; gap: 12px; margin-bottom: 22px; }
.comment {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 18px;
}
.comment-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,
    hsl(var(--h, 0) 65% 45%), hsl(calc(var(--h, 0) + 40) 70% 55%));
  color: #fff; font-weight: 800; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
}
.comment-body { min-width: 0; flex: 1; }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comment-name { font-size: 13.5px; font-weight: 800; }
.comment-date { font-size: 11.5px; color: var(--muted); }
.comment-text { margin: 4px 0 0; font-size: 14px; color: var(--text); line-height: 1.95; word-break: break-word; }
.comments-empty {
  background: var(--card); border: 1px dashed var(--border);
  border-radius: 16px; padding: 18px; text-align: center;
  color: var(--muted); font-size: 13.5px; margin: 0 0 22px;
}
.comment-form {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}
.comment-form h3 { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.comment-form input[type="text"],
.comment-form textarea {
  width: 100%; background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 15px; font: inherit; font-size: 14px; margin-bottom: 12px;
  transition: border-color .18s;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.comment-form textarea { resize: vertical; min-height: 84px; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .comment-form-row { grid-template-columns: 1fr; } }
.comment-form .btn { padding: 9px 22px; }

/* تب‌های مرتب‌سازی (صفحه ریمیکس‌ها) */
.sort-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.sort-tab {
  padding: 7px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.sort-tab:hover { color: var(--text); border-color: var(--accent); }
.sort-tab.on { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }

/* اشتراک‌گذاری */
.share-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.share-label { font-size: 13px; color: var(--muted); margin-inline-end: 4px; }
.share-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: var(--card-2); cursor: pointer; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.share-btn svg { width: 17px; height: 17px; }
.share-tg:hover { color: #fff; background: #229ed9; border-color: #229ed9; }
.share-wa:hover { color: #fff; background: #25d366; border-color: #25d366; }
.share-eitaa:hover { color: #fff; background: #ec4067; border-color: #ec4067; }
.share-bale:hover { color: #fff; background: #33b8e8; border-color: #33b8e8; }
.share-splus:hover { color: #fff; background: #f57c00; border-color: #f57c00; }
.share-rubika:hover { color: #fff; background: #7b61ff; border-color: #7b61ff; }
.share-copy:hover { color: var(--accent); border-color: var(--accent); }

/* متن آهنگ */
.lyrics-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 30px;
  font-size: 16.5px; line-height: 2.35; white-space: pre-line;
  color: var(--text);
}
.lyrics-box.lyrics-empty { white-space: normal; color: var(--muted); }

/* ═══════════ دکمه‌ها ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 13px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .22s var(--ease-spring); text-align: center;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-accent {
  background: var(--accent-grad); color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-accent:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.btn-dl { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.btn-dl:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.btn-dl small { font-size: 11.5px; opacity: .75; font-weight: 500; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-danger { background: color-mix(in srgb, #ff3b30 10%, transparent); border-color: color-mix(in srgb, #ff3b30 40%, transparent); color: #ff6961; }
.btn-danger:hover { background: #ff3b30; border-color: #ff3b30; color: #fff; }

/* ═══════════ مسیر راهنما، تیتر صفحه، صفحه‌بندی ═══════════ */
.breadcrumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs > span:last-child { color: var(--text); }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 30px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -.4px; }
.page-head p { color: var(--muted); margin: 0; font-size: 14px; }

.pagination { display: flex; gap: 7px; justify-content: center; margin: 36px 0 8px; flex-wrap: wrap; }
.pg-item {
  min-width: 40px; height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; font-size: 13.5px; font-weight: 600; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
a.pg-item:hover { border-color: var(--accent); color: var(--accent); }
.pg-current { background: var(--accent-grad); color: #fff; border-color: transparent; }
.pg-dots { align-self: flex-end; color: var(--muted); padding: 0 2px; }

/* ═══════════ ۴۰۴ و پیام ═══════════ */
.notfound { text-align: center; padding: 70px 20px; }
.notfound-code { font-size: 80px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.notfound h1 { font-size: 26px; font-weight: 800; }
.notfound p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

/* ═══════════ فوتر ═══════════ */
.site-footer {
  position: relative;
  border-top: 0;
  margin-top: 34px;
  background:
    radial-gradient(60% 130% at 85% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    radial-gradient(45% 100% at 10% 100%, color-mix(in srgb, #7c3aed 8%, transparent), transparent 65%),
    var(--bg-soft);
  overflow: hidden;
}
.footer-glow {
  position: absolute; inset-inline-start: 0; right: 0; left: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 65%, transparent), #7c3aed, transparent);
  opacity: .8;
}
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
  gap: 34px; padding-top: 48px; padding-bottom: 34px;
}
.f-about p { color: var(--muted); font-size: 13.5px; line-height: 2; margin: 14px 0 0; max-width: 400px; }
.footer-logo .logo-mark { width: 38px; height: 38px; border-radius: 12px; }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.soc {
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); transition: color 2, background-color 2, border-color 2, opacity 2, transform 2;
}
.soc:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.soc-tg:hover { background: #229ed9; border-color: #229ed9; }
.soc-ig:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); border-color: transparent; }
.soc-yt:hover { background: #ff0000; border-color: #ff0000; }
.soc-rss:hover { background: #f78422; border-color: #f78422; }
.f-col h4 {
  font-size: 14px; font-weight: 700; margin-bottom: 16px;
  position: relative; padding-inline-start: 13px;
}
.f-col h4::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 50%;
  width: 5px; height: 17px; border-radius: 4px; transform: translateY(-50%);
  background: var(--accent-grad);
}
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a {
  color: var(--muted); font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0; transition: color 16, background-color 16, border-color 16, opacity 16, transform 16;
}
.footer-links a svg { opacity: .55; transition: color 16, background-color 16, border-color 16, opacity 16, transform 16; flex-shrink: 0; }
.footer-links a:hover { color: var(--accent); transform: translateX(-3px); }
[dir="ltr"] .footer-links a:hover { transform: translateX(3px); }
.footer-links a:hover svg { opacity: 1; color: var(--accent); }
.f-support-p { color: var(--muted); font-size: 13px; line-height: 2; margin: 0 0 14px; }
.footer-apps { display: flex; gap: 9px; flex-wrap: wrap; }
.f-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-grad); color: #fff;
  border-radius: 999px; padding: 8px 16px;
  font-size: 12.5px; font-weight: 700;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.f-chip:hover { filter: brightness(1.08); transform: translateY(-2px); color: #fff; }
.f-chip-ghost {
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  box-shadow: none;
}
.f-chip-ghost:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom {
  position: relative;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  padding: 16px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-bottom span { font-size: 12.5px; color: var(--muted); }
.footer-hint i { color: #ff5f7e; font-style: normal; }
.to-top {
  position: absolute; inset-inline-start: 26px; bottom: 84px;
  width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: color 28, background-color 28, border-color 28, opacity 28, transform 28; z-index: 5;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; background: var(--accent-grad); border-color: transparent; }

/* ═══ صفحات ثابت (درباره/تماس/سوالات/قوانین) ═══ */
.static-hero {
  text-align: center; padding: 44px 22px 30px;
  position: relative;
}
.static-hero h1 { font-size: 31px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.4px; }
.static-hero p { color: var(--muted); margin: 0 auto; max-width: 560px; font-size: 14.5px; line-height: 2; }
.static-hero-ic {
  width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 38%, transparent);
  background: var(--accent-grad);
  animation: heroIcFloat 5s ease-in-out infinite;
}
@keyframes heroIcFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.static-hero-about .static-hero-ic { background: linear-gradient(135deg, #fa233b, #ff5e7a); }
.static-hero-contact .static-hero-ic { background: linear-gradient(135deg, #2a7de1, #38bdf8); box-shadow: 0 12px 30px rgba(42, 125, 225, .38); }
.static-hero-faq .static-hero-ic { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 12px 30px rgba(124, 58, 237, .38); }
.static-hero-privacy .static-hero-ic { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 12px 30px rgba(5, 150, 105, .35); }
.static-hero-terms .static-hero-ic { background: linear-gradient(135deg, #b45309, #f59e0b); box-shadow: 0 12px 30px rgba(180, 83, 9, .35); }

.about-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 30px;
}
.about-card h2 { font-size: 19px; font-weight: 800; margin: 0 0 12px; }
.about-card p { color: var(--muted); line-height: 2.15; font-size: 14.5px; margin: 0 0 12px; }
.about-card p:last-child { margin-bottom: 0; }
.about-card b { color: var(--text); }
.about-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.about-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  text-align: center; padding: 18px 10px 14px; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.about-stat:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-3px); }
.about-stat b { display: block; font-size: 22px; font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat span { font-size: 12px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 20px 18px; transition: color 2, background-color 2, border-color 2, opacity 2, transform 2;
}
.feature-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.feature-ic {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.feature-ic.f1 { background: linear-gradient(135deg, #fa233b, #ff5e7a); }
.feature-ic.f2 { background: linear-gradient(135deg, #2a7de1, #38bdf8); }
.feature-ic.f3 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.feature-ic.f4 { background: linear-gradient(135deg, #d97706, #fbbf24); }
.feature-ic.f5 { background: linear-gradient(135deg, #059669, #34d399); }
.feature-ic.f6 { background: linear-gradient(135deg, #db2777, #f472b6); }
.feature-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 12.8px; line-height: 2; margin: 0; }
.about-cta {
  text-align: center; border-radius: var(--radius); padding: 34px 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, #7c3aed 12%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.about-cta h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.about-cta p { color: var(--muted); margin: 0 0 18px; font-size: 13.5px; }
.about-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; align-items: start; }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 15px 17px; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.contact-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.contact-ic {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.contact-ic.c1 { background: linear-gradient(135deg, #2a7de1, #38bdf8); }
.contact-ic.c2 { background: linear-gradient(135deg, #229ed9, #4fc3f7); }
.contact-ic.c3 { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.contact-ic.c4 { background: linear-gradient(135deg, #059669, #34d399); }
.contact-card b { display: block; font-size: 13.5px; }
.contact-card span { font-size: 12.5px; color: var(--muted); direction: ltr; display: block; text-align: end; }
.contact-form {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; display: grid; gap: 14px;
}
.contact-form h2 { margin: 0; font-size: 17px; font-weight: 800; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.contact-form label span small { opacity: .8; font-weight: 400; }
.contact-form input, .contact-form textarea {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 14px; color: var(--text); font: inherit; font-size: 13.5px; outline: 0;
  transition: border-color .18s, box-shadow .18s;
  width: 100%; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form-msg { margin: 0; font-size: 12.5px; font-weight: 600; min-height: 18px; color: var(--muted); }
.contact-form-msg.ok { color: #16a34a; }
.contact-form-msg.err { color: #dc2626; }
.contact-form .btn { justify-self: start; }
.contact-privacy { color: var(--muted); font-size: 11.5px; }

.faq-list { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: border-color .18s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 19px; font-weight: 700; font-size: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { flex-shrink: 0; color: var(--muted); transition: transform .25s; display: inline-flex; }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 19px 17px; }
.faq-a p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 2.1; }

.legal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 32px; max-width: 860px; margin: 0 auto;
}
.legal-card h2 { font-size: 16.5px; font-weight: 800; margin: 22px 0 8px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--muted); font-size: 14px; line-height: 2.15; margin: 0; }
.legal-card b { color: var(--text); }
.legal-card a { color: var(--accent); }
.legal-updated {
  margin-top: 22px !important; padding-top: 14px;
  border-top: 1px dashed var(--border); font-size: 12px !important; opacity: .8;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr; }
  .legal-card { padding: 20px 18px; }
  .about-card { padding: 20px 18px; }
}

/* ═══════════ توست ═══════════ */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%;
  transform: translate(50%, 90px);
  background: var(--glass-strong); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 11px 24px; font-size: 13.5px; font-weight: 600;
  z-index: 300; opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.32,.72,.25,1), opacity .3s;
  max-width: min(90vw, 480px); text-align: center;
}
.toast.show { transform: translate(50%, 0); opacity: 1; }
body.has-player .toast { bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

/* ═══════════ نوار ناوبری pjax ═══════════ */
.pjax-bar {
  position: fixed; top: 0; right: 0; left: 0; height: 3px;
  z-index: 400; pointer-events: none; opacity: 0; overflow: hidden;
}
.pjax-bar.run { opacity: 1; }
.pjax-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
  background: var(--accent-grad); border-radius: 0 3px 3px 0;
}
.pjax-bar.run::after { animation: pjaxSlide 1s ease-in-out infinite; }
.pjax-bar.done::after { animation: none; inset-inline-start: 0; width: 100%; opacity: 0; transition: width .3s, opacity .35s; }
@keyframes pjaxSlide {
  0% { inset-inline-start: -45%; }
  100% { inset-inline-start: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   پلیر استیکی مرکزی — گلس سبک iOS (v3.1)
   ═══════════════════════════════════════════════════════════ */
.nava-bar {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline: 0; margin-inline: auto;
  width: min(780px, calc(100% - 28px));
  z-index: 95;
  background: var(--glass-strong);
  /* v7.6: blur سبک‌تر — این نوار همیشه در دید است و blur سنگینِ آن
     روی تک‌تک فریم‌های اسکرول محاسبه می‌شد */
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border: 1px solid var(--glass-hi);
  border-radius: 26px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .45),
    inset 0 1px 0 var(--glass-hi);
  overflow: hidden;
  transform: translateY(150%);
  transition: transform .45s cubic-bezier(.32, .72, .28, 1);
}
.nava-bar.show { transform: translateY(0); }
/* ═══════════ v7.3.2 — پلیر مینی‌بار سبک iOS Now Playing ═══════════
   ارتقاء ظاهر نوار پخش برای شبیه‌سازی نوار Now Playing آیفون:
   - کاور با گوشه‌های گردتر و سایه نرم + ضربان ملایم هنگام پخش
   - عنوان کلان‌تر و bold با letter-spacing منفی (سبک Apple)
   - دکمه پخش دایره‌ای پررنگ‌تر با درخشش ملایم و highlight بالایی
   - نوار پیشرفت نازک نئون در بالا (همرنگ آکوستیک iOS) */
.nava-bar .pb-cover {
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .35);
  transition: transform .3s cubic-bezier(.32,.72,.25,1);
}
.nava-bar.playing .pb-cover { animation: pbCoverPulse 2.4s ease-in-out infinite; }
@keyframes pbCoverPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.nava-bar .pb-title { font-weight: 800; letter-spacing: -.01em; }
.nava-bar .pb-artist { font-weight: 600; opacity: .82; }
.nava-bar .pb-play {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 65%, #fff 8%) 100%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 55%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .25);
}
.nava-bar.playing .pb-play {
  box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 70%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nava-bar .pb-progress-fill {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff 25%));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent);
  height: 3px; top: 2px; border-radius: 0 3px 3px 0;
}
.nava-bar .pb-progress::before { background: rgba(255, 255, 255, .12); }
.pb-progress {
  position: absolute; top: 0; right: 0; left: 0; height: 7px;
  cursor: pointer; z-index: 5; touch-action: none;
}
.pb-progress::before { content: ''; position: absolute; top: 2px; right: 0; left: 0; height: 3px; background: var(--track-bg); }
.pb-progress-fill {
  position: absolute; top: 2px; right: 0; height: 3px; width: 100%;
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: right center;
  border-radius: 0 3px 3px 0;
}
.pb-progress:hover .pb-progress-fill { height: 5px; top: 1px; }
.pb-in {
  padding: 10px 14px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  min-height: 64px;
}
.pb-info {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  background: transparent; border: 0; cursor: pointer; text-align: start;
  padding: 0; color: inherit; border-radius: 12px;
}
.pb-cover {
  width: 44px; height: 44px; border-radius: 11px; object-fit: cover;
  background: var(--card-2); flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.pb-meta { min-width: 0; display: grid; gap: 1px; }
.pb-title {
  font-weight: 700; font-size: 14px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-artist {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-controls { display: flex; align-items: center; gap: 6px; }
.pb-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); flex-shrink: 0; padding: 0;
}
.pb-btn:hover { color: var(--text); transform: scale(1.08); }
.pb-btn.on { color: var(--accent); }
.pb-btn.one::after {
  content: ''; position: absolute; bottom: 6px; inset-inline-end: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.pb-rep-badge {
  position: absolute; bottom: 4px; inset-inline-end: 5px;
  font-size: 8.5px; font-weight: 800; color: var(--accent); line-height: 1;
}
.pb-play {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent-grad); color: #fff; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .18s ease, filter .18s; margin: 0 4px; flex-shrink: 0;
}
.pb-play:hover { transform: scale(1.07); filter: brightness(1.08); }
.pb-play .ic-pause { display: none; }
.nava-bar.playing .pb-play .ic-pause { display: block; }
.nava-bar.playing .pb-play .ic-play { display: none; }
.pb-extra { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.pb-vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pb-vol-range { width: 96px; }

/* ═══════════ باکس مدرن دانلود (زیر متن آهنگ) ═══════════ */
.dl-box {
  position: relative; border-radius: 22px; padding: 2px;
  background: linear-gradient(135deg, rgba(250,35,59,.85), rgba(255,94,122,.3) 42%, rgba(124,58,237,.6));
  box-shadow: 0 14px 38px rgba(250, 35, 59, .16);
}
.dl-box-in {
  background: var(--card); border-radius: 20px; padding: 22px 24px;
}
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dl-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.dl-ic {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent-grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.dl-tag {
  font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 999px; padding: 4px 13px;
}
.dl-rows { display: grid; gap: 10px; }
.dl-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 16px; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.dl-row:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translateY(-1px);
  background: var(--card-2);
}
.dl-badge {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: var(--accent-grad); color: #fff;
  font-weight: 800; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent);
}
.dl-badge.q128 { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 6px 14px rgba(124, 58, 237, .3); }
.dl-info { min-width: 0; flex: 1; }
.dl-info b { display: block; font-size: 14px; font-weight: 800; }
.dl-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dl-play {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); cursor: pointer;
  border-radius: 12px; padding: 10px 16px; font-size: 13.5px; font-weight: 700;
  transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); flex-shrink: 0; font-family: inherit;
}
.dl-play:hover {
  color: var(--accent); transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.dl-play.q128:hover { color: #8b5cf6; border-color: color-mix(in srgb, #8b5cf6 55%, transparent); background: color-mix(in srgb, #8b5cf6 8%, transparent); }
.dl-play:active { transform: scale(.96); }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-grad); color: #fff; border: 0; cursor: pointer;
  border-radius: 12px; padding: 10px 20px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); flex-shrink: 0; text-decoration: none;
}
.dl-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.dl-btn.q128 { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 6px 16px rgba(124, 58, 237, .3); }
.dl-note { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); text-align: center; }

/* اسلایدرهای عمومی */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  background: transparent; height: 24px; cursor: pointer; margin: 0;
  --fill: 0%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--track-bg) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--text); margin-top: -4px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
  transition: transform .15s;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--track-bg) var(--fill));
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; border: 0;
  background: var(--text); box-shadow: 0 1px 5px rgba(0, 0, 0, .45);
}

/* ═══════════ صفحه کامل Now Playing — سبک Apple Music (v5) ═══════════ */
body.sheet-open { overflow: hidden; }
.nava-sheet {
  position: fixed; inset: 0; z-index: 120;
  height: 100dvh;
  background: var(--bg);
  transform: translateY(103%);
  transition: transform .52s cubic-bezier(.32, .72, .28, 1), visibility .52s;
  visibility: hidden; overflow: hidden;
  will-change: transform;
}
.nava-sheet.open { transform: translateY(0); visibility: visible; }
/* جلوی هدر رفتن CPU: هر انیمیشنی داخل صفحه بسته، متوقف است */
.nava-sheet:not(.open) *,
.nava-sheet:not(.open) *::before,
.nava-sheet:not(.open) *::after { animation-play-state: paused !important; }

.sheet-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sheet-bg img {
  width: 130%; height: 130%; object-fit: cover;
  filter: blur(70px) saturate(1.8) brightness(.55);
  transform: scale(1.25);
  animation: sheetDrift 30s ease-in-out infinite alternate;
}
@keyframes sheetDrift {
  from { transform: scale(1.22) translate3d(2%, -1.5%, 0); }
  to   { transform: scale(1.32) translate3d(-2%, 2%, 0); }
}
[data-theme="light"] .sheet-bg img { filter: blur(70px) saturate(1.7) brightness(1); }
.sheet-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.30), rgba(0,0,0,.58) 55%, rgba(0,0,0,.72));
}
[data-theme="light"] .sheet-bg::after { background: linear-gradient(to bottom, rgba(245,245,247,.45), rgba(245,245,247,.92)); }
.sheet-tint {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 38% at 24% 22%, rgba(255, 94, 122, .14), transparent 62%),
    radial-gradient(44% 42% at 78% 74%, rgba(124, 58, 237, .13), transparent 64%);
  animation: sheetTint 16s ease-in-out infinite alternate;
}
[data-theme="light"] .sheet-tint { display: none; }
@keyframes sheetTint {
  from { transform: translate3d(0,0,0) scale(1); opacity: .8; }
  to   { transform: translate3d(4%, -4%, 0) scale(1.08); opacity: 1; }
}

.sheet-in {
  position: relative; z-index: 1; height: 100%;
  max-width: 560px; margin: 0 auto;
  padding: 14px 26px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px;
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: contain;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; height: 44px;
}
.sheet-label { font-size: 11.5px; font-weight: 700; letter-spacing: 2.6px; color: rgba(255,255,255,.72); text-transform: uppercase; }
[data-theme="light"] .sheet-label { color: var(--muted); }
.sheet-close {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.28);
}
[data-theme="light"] .sheet-close { background: rgba(0,0,0,.05); color: var(--text); border-color: var(--border); }

/* ── بدنه: کاور + عنوان + پیشرفت + کنترل‌ها ── */
.sheet-body {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
/* ── مرحله: کاور + پنل‌ها (پنل‌ها فقط روی همین ناحیه باز می‌شوند) ── */
.sheet-stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 2px 0;
}
.sheet-art-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  perspective: 900px;
}
.sheet-art {
  width: auto; height: auto;
  max-width: min(320px, 66vw); max-height: 100%;
  aspect-ratio: 1; object-fit: cover;
  border-radius: 22px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .6),
    0 8px 28px rgba(0, 0, 0, .35);
  transition: transform .55s cubic-bezier(.32,.72,.28,1), opacity .55s, border-radius .55s;
}
.nava-sheet:not(.playing) .sheet-art { transform: scale(.84); opacity: .82; border-radius: 26px; }
.nava-sheet.playing .sheet-art { animation: artBreath 7s ease-in-out infinite; }
@keyframes artBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.022); }
}
.sheet-titles { text-align: center; min-width: 0; flex-shrink: 0; }
.sheet-title {
  display: block; font-size: 21px; font-weight: 800; letter-spacing: -.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sheet-artist { display: block; font-size: 14.5px; color: rgba(255,255,255,.62); margin-top: 2px; }
.sheet-artist:hover { color: #fff; }
[data-theme="light"] .sheet-artist { color: var(--muted); }
[data-theme="light"] .sheet-artist:hover { color: var(--accent); }
/* نوار پیشرفت حالا در داک پایین قرار دارد (جابه‌جایی زمان/صدا) */
.sheet-seek { width: 100%; flex-shrink: 0; padding: 0 6px; }
.sheet-seek input[type="range"] { width: 100%; display: block; }
.sheet-times {
  display: flex; justify-content: space-between; font-size: 11.5px;
  color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; margin-top: -4px;
}
[data-theme="light"] .sheet-times { color: var(--muted); }

/* ── صدا: آیکون زیر عنوان + پاپ‌آپ تنظیم ── */
.sheet-vol-spot {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  flex-shrink: 0; margin-top: 2px;
}
.vol-btn {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.17);
  color: rgba(255,255,255,.85);
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); padding: 0;
}
.vol-btn:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-1px); }
[data-theme="light"] .vol-btn { background: rgba(0,0,0,.05); color: var(--text); border-color: var(--border); }
[data-theme="light"] .vol-btn:hover { color: var(--accent); background: rgba(0,0,0,.08); }
.vol-btn .ic-vol-low, .vol-btn .ic-vol-mute { display: none; }
.vol-btn.vol-low .ic-vol-high { display: none; }
.vol-btn.vol-low .ic-vol-low { display: block; }
.vol-btn.vol-0 .ic-vol-high, .vol-btn.vol-0 .ic-vol-low { display: none; }
.vol-btn.vol-0 .ic-vol-mute { display: block; color: #ff6b6b; }
.vol-pop {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px) scale(.92);
  display: flex; align-items: center; gap: 9px;
  background: var(--glass-strong); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 9px 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .22s cubic-bezier(.32,.72,.28,1), opacity .2s, visibility 0s linear .22s;
  z-index: 8; min-width: 210px;
}
[data-theme="light"] .vol-pop { background: rgba(252,252,254,.96); border-color: var(--border); box-shadow: 0 16px 42px rgba(0,0,0,.16); }
.vol-pop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition: transform .22s cubic-bezier(.32,.72,.28,1), opacity .2s, visibility 0s;
}
.vol-pop-range { width: 130px; }
.vol-pop-pct { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.75); min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
[data-theme="light"] .vol-pop-pct { color: var(--muted); }
.vol-pop-mute {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 0; color: rgba(255,255,255,.8);
  display: inline-flex; align-items: center; justify-content: center; transition: color 15, background-color 15, border-color 15, opacity 15, transform 15; padding: 0;
}
.vol-pop-mute:hover { background: rgba(255,255,255,.22); color: #fff; }
[data-theme="light"] .vol-pop-mute { background: rgba(0,0,0,.06); color: var(--text); }

.sheet-controls { display: flex; align-items: center; justify-content: center; gap: 20px; flex-shrink: 0; padding-top: 2px; }
.sheet-controls .pb-btn { width: 46px; height: 46px; color: var(--text); opacity: .85; }
.sheet-controls .pb-btn:hover { opacity: 1; }
.sheet-controls .pb-btn.on { color: var(--accent); opacity: 1; }
.sheet-play {
  width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #141419; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .5), 0 3px 10px rgba(0,0,0,.3);
  transition: transform .18s ease;
}
.sheet-play:hover { transform: scale(1.06); }
.sheet-play .ic-pause { display: none; }
.nava-sheet.playing .sheet-play .ic-pause { display: block; }
.nava-sheet.playing .sheet-play .ic-play { display: none; }

/* ── داک پایین: نوار پیشرفت و زمان + نوار ابزار مرتب ── */
.sheet-dock {
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 6px;
}
.sheet-dock .sheet-seek { margin: 0 auto; width: min(560px, 92%); }
.sheet-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: nowrap;
}
.sheet-quality {
  display: flex; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 3px; gap: 2px; margin-inline-end: 4px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
[data-theme="light"] .sheet-quality { background: rgba(0,0,0,.05); border-color: var(--border); }
.sheet-quality button {
  border: 0; background: transparent; color: rgba(255,255,255,.75);
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  cursor: pointer; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); font-family: inherit;
}
[data-theme="light"] .sheet-quality button { color: var(--muted); }
.sheet-quality button.on { background: var(--accent-grad); color: #fff; }
.tool-btn {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.17);
  color: rgba(255,255,255,.88);
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); padding: 0; flex-shrink: 0; position: relative;
}
[data-theme="light"] .tool-btn { background: rgba(0,0,0,.05); color: var(--text); border-color: var(--border); }
.tool-btn:hover { color: #fff; transform: translateY(-2px); background: rgba(255,255,255,.18); }
[data-theme="light"] .tool-btn:hover { color: var(--accent); background: rgba(0,0,0,.08); }
.tool-btn.active, .tool-btn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tool-btn.on .hp { fill: currentColor; }
.tool-btn[aria-pressed="true"] .hp { fill: currentColor; }
.sheet-fav.on { color: #ff5f7e; border-color: color-mix(in srgb, #ff5f7e 55%, transparent); }

/* ── پنل‌های لایه‌ای (صف / اکولایزر / متن) ── */
.sheet-panels {
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none; overflow: hidden; border-radius: 22px;
}
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 100%;
  display: flex; flex-direction: column;
  background: rgba(24, 24, 34, .86);
  border: 1px solid rgba(255,255,255,.14); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -18px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateY(108%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition:
    transform .42s cubic-bezier(.32,.72,.28,1),
    opacity .32s ease,
    visibility 0s linear .42s;
}
/* صف و متن کل ناحیه کاور را می‌گیرند (مثل اپل موزیک)؛ اکولایزر به اندازه محتوا */
.sheet-queue, .sheet-lyrics { height: 100%; }
[data-theme="light"] .sheet-panel { background: rgba(250,250,252,.92); border-color: var(--border); box-shadow: 0 -18px 60px rgba(0,0,0,.18); }
/* hidden = بسته: بیرون از ناحیه کاور (بدون display:none تا انیمیشن روان بماند) */
.sheet-panel[hidden] { transform: translateY(108%); opacity: 0; visibility: hidden; pointer-events: none; }
.sheet-panel:not([hidden]) {
  transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
  transition:
    transform .42s cubic-bezier(.32,.72,.28,1),
    opacity .32s ease,
    visibility 0s;
}
/* وقتی پنلی باز است، کاور کم‌رنگ و کوچک می‌شود تا محتوای پنل خوانا بماند */
.nava-sheet.panel-open .sheet-art { opacity: .3; transform: scale(.88); }
.nava-sheet.panel-open .sheet-art-wrap { pointer-events: none; }
.sheet-panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  flex-shrink: 0;
}
[data-theme="light"] .sheet-panel-head { border-bottom-color: var(--border); }
.sheet-panel-title { font-weight: 800; font-size: 14.5px; }
.sheet-panel-head b { font-size: 11px; color: var(--muted); font-weight: 600; }
.sheet-panel-note { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 500; }
.panel-close {
  margin-inline-start: auto;
  width: 34px; height: 34px; color: var(--muted);
  background: transparent;
}
.panel-close:hover { color: var(--text); background: rgba(255,255,255,.08); }
.sheet-panel-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 12px 18px 18px; }

/* کلیدهای تغییر وضعیت (کراس‌فید / فعال) */
.xfade-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72); border-radius: 999px; padding: 4px 12px;
  font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
[data-theme="light"] .xfade-chip { background: rgba(0,0,0,.05); color: var(--muted); border-color: var(--border); }
.xfade-chip i {
  width: 24px; height: 13px; border-radius: 999px; position: relative;
  background: rgba(255,255,255,.25); transition: color 2, background-color 2, border-color 2, opacity 2, transform 2; flex-shrink: 0;
}
[data-theme="light"] .xfade-chip i { background: rgba(0,0,0,.18); }
.xfade-chip i::after {
  content: ''; position: absolute; top: 2px; inset-inline-start: 2px;
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: inset-inline-start .2s;
}
.xfade-chip.on { color: #fff; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
[data-theme="light"] .xfade-chip.on { color: var(--accent); }
.xfade-chip.on i { background: var(--accent-grad); }
.xfade-chip.on i::after { inset-inline-start: 13px; }

/* صف پخش داخل پنل */
.sheet-queue-list {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 6px 14px 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sheet-queue-list::-webkit-scrollbar { display: none; }

.sheet-queue .sheet-panel-head .xfade-chip { margin-inline-start: auto; }
.sheet-queue .panel-close { margin-inline-start: 0; }
.q-row {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 6px; border-radius: 12px; cursor: pointer;
  transition: background .15s;
}
.q-row:hover { background: rgba(255,255,255,.07); }
[data-theme="light"] .q-row:hover { background: rgba(0,0,0,.05); }
.q-row.current { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.q-row.dragging {
  z-index: 5; background: var(--card-2);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  transition: none; cursor: grabbing;
}
.q-drag {
  border: 0; background: transparent; color: var(--muted); opacity: .6;
  padding: 4px 1px; cursor: grab; flex-shrink: 0; touch-action: none;
  display: inline-flex; align-items: center;
}
.q-drag:active { cursor: grabbing; opacity: 1; }
.q-cover { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--card-2); }
.q-meta { min-width: 0; flex: 1; display: grid; gap: 1px; }
.q-title {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.q-row.current .q-title { color: var(--accent); }
.q-eq { flex-shrink: 0; animation: qEq 1s ease-in-out infinite alternate; }
@keyframes qEq { from { transform: scaleY(.6); } to { transform: scaleY(1.15); } }
.q-artist { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-dur { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.q-del {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; transition: color 15, background-color 15, border-color 15, opacity 15, transform 15;
}
.q-del:hover { color: #ff6961; background: rgba(255, 105, 97, .14); }
.q-empty { text-align: center; color: var(--muted); font-size: 12.5px; padding: 16px 0 12px; }
.sheet-queue-btn.on { color: var(--accent); }

/* اکولایزر و کوک داخل پنل */
.sheet-eq .sheet-panel-head .xfade-chip { margin-inline-start: auto; }
.sheet-eq .panel-close { margin-inline-start: 0; }
/* پری‌مپ + ۱۰ باند عمودی */
.eq-grid-wrap {
  display: flex; gap: 16px; align-items: stretch; margin-bottom: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 12px 14px;
}
[data-theme="light"] .eq-grid-wrap { background: rgba(0,0,0,.03); border-color: var(--border); }
.eq-preamp {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; color: var(--muted); font-weight: 700;
  padding-inline-end: 12px; border-inline-end: 1px dashed rgba(255,255,255,.14);
  min-width: 56px;
}
[data-theme="light"] .eq-preamp { border-inline-end-color: var(--border); }
.eq-preamp b { font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums; }
.eq-preamp input[type="range"] { width: 74px; transform: rotate(-90deg); margin: 32px 0; }
.eq-bands { display: flex; gap: 4px; justify-content: space-between; flex: 1; align-items: stretch; }
.eq-bands.off { opacity: .45; }
.eq-band {
  display: grid; grid-template-rows: auto 1fr auto; gap: 5px; justify-items: center; align-items: center;
  text-align: center; font-size: 9.5px; color: var(--muted); font-weight: 700; flex: 1; min-width: 0;
}
.eq-band .vslot { position: relative; width: 100%; height: 96px; }
.eq-band .vslot input[type="range"] {
  position: absolute; top: 50%; left: 50%;
  width: 96px;
  transform: translate(-50%, -50%) rotate(-90deg);
  margin: 0;
}
.eq-band b { font-size: 9.5px; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 700; }
.eq-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.eq-presets button {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.8); border-radius: 999px; padding: 6px 15px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
[data-theme="light"] .eq-presets button { background: rgba(0,0,0,.05); color: var(--muted); border-color: var(--border); }
.eq-presets button.on { background: var(--accent-grad); border-color: transparent; color: #fff; }
.eq-tuning { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eq-tuning-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.eq-tuning button {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.8); border-radius: 999px; padding: 6px 15px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
[data-theme="light"] .eq-tuning button { background: rgba(0,0,0,.05); color: var(--muted); border-color: var(--border); }
.eq-tuning button.on { background: var(--accent-grad); border-color: transparent; color: #fff; }
.eq-actions { display: flex; justify-content: flex-start; margin-bottom: 10px; }
.eq-reset {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid color-mix(in srgb, #ff6b6b 45%, transparent);
  background: color-mix(in srgb, #ff6b6b 10%, transparent);
  color: #ff8a8a; border-radius: 999px; padding: 5px 14px;
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.eq-reset:hover { background: #ff6b6b; color: #fff; }
[data-theme="light"] .eq-reset { color: #e04b4b; }
[data-theme="light"] .eq-reset:hover { color: #fff; }
.eq-hint { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 0; }

/* متن آهنگ داخل پنل */
.sheet-lyrics .sheet-panel-note { margin-inline-end: auto; }
.sheet-lyrics .panel-close { margin-inline-start: 0; }
.sheet-lyrics-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  padding: 10px 20px 24px;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.sheet-lyrics-body::-webkit-scrollbar { display: none; }
.lyric-line {
  display: block; font-size: 16.5px; line-height: 2.15; font-weight: 500;
  color: var(--muted); opacity: .75; cursor: pointer;
  transition: color .25s, opacity .25s, transform .25s; border-radius: 8px; padding: 1px 8px;
}
.lyric-line:hover { opacity: 1; color: var(--text); }
.lyric-line.active {
  color: var(--accent); opacity: 1; font-weight: 800; font-size: 17.5px;
}
.lyric-para { font-size: 15.5px; line-height: 2.3; margin: 0 0 14px; color: var(--muted); }
.lyric-para:last-child { margin-bottom: 0; }
.lyrics-loading { text-align: center; color: var(--muted); padding: 30px 0; letter-spacing: 3px; }

/* ═══════════════════════════════════════════════════════════
   پنل مدیریت
   ═══════════════════════════════════════════════════════════ */
body.admin { background: var(--bg); }
.admin-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass-strong); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.admin-nav .container { display: flex; align-items: center; gap: 10px; height: 60px; min-width: 0; }
.an-links { display: flex; gap: 1px; margin-inline-start: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.an-links::-webkit-scrollbar { display: none; }
.an-links a { padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1); white-space: nowrap; flex-shrink: 0; }
.an-links a:hover { color: var(--text); background: var(--card-2); }
.an-links a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 700; }
.an-side { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.an-side a { font-size: 13px; color: var(--muted); }
.an-side a:hover { color: var(--accent); }

.login-wrap { min-height: 78vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.login-card {
  width: 100%; max-width: 400px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 32px;
  box-shadow: var(--shadow); text-align: center;
}
.login-card .logo { justify-content: center; margin-bottom: 16px; }
.login-card h1 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.login-card .field { text-align: start; margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 6px; padding: 12px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px; display: flex; align-items: center; gap: 14px;
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.stat-card b { display: block; font-size: 20px; font-weight: 800; line-height: 1.5; }
.stat-card span { font-size: 12.5px; color: var(--muted); }

.admin-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; margin-bottom: 20px;
}
.admin-panel h2 { font-size: 16.5px; font-weight: 800; margin: 0 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-panel .hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.admin-panel .hint a { color: var(--accent); font-weight: 700; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 8px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: calc(100% - 22px); width: 100%; justify-content: center; }
.chart-bar { width: 9px; border-radius: 4px 4px 2px 2px; min-height: 3px; transition: height .4s ease; }
.b-plays { background: var(--accent); }
.b-dls { background: var(--accent-2); opacity: .65; }
.chart-day { font-size: 10px; color: var(--muted); white-space: nowrap; }
.chart-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  text-align: start; font-size: 12px; color: var(--muted); font-weight: 600;
  padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--card-2); }
.admin-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-cover { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-inline-end: 4px; }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-off { background: var(--card-2); color: var(--muted); }
.badge-warn { background: color-mix(in srgb, #f5a623 15%, transparent); color: #f5a623; }
.empty-box {
  background: var(--card); border: 1px dashed var(--border);
  border-radius: 16px; padding: 26px; text-align: center; color: var(--muted);
}
.admin-table .cell-body { max-width: 340px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.admin-table .cell-actions form { margin: 2px 0; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; color: var(--text);
  font: inherit; font-size: 13.5px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 2; }
.field.full { grid-column: 1 / -1; }
.fnote { font-size: 11.5px; color: var(--muted); margin: 6px 0 0; }
.form-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.msg { border-radius: 13px; padding: 12px 18px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.msg-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.msg-err { background: color-mix(in srgb, #ff3b30 10%, transparent); color: #ff6961; border: 1px solid color-mix(in srgb, #ff3b30 32%, transparent); }
.sys-info { font-size: 13px; color: var(--muted); line-height: 2.1; }
.sys-info b { color: var(--text); }

/* ═══════════ ریسپانسیو ═══════════ */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 66px; inset-inline: 0;
    flex-direction: column; background: var(--glass-strong);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border); padding: 10px 16px 14px; gap: 4px;
  }
  .nav.open a { padding: 11px 16px; border-radius: 12px; }
  .nav-burger { display: inline-flex; }
  .topbar { position: sticky; }
  .topbar-in { position: relative; }
  .hero { padding: 42px 30px; }
  .hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 14px; }
  .page-main { padding: 20px 14px 48px; }
  /* جستجوی موبایل: فرم بالای هدر مخفی؛ آیکون + پنل بازشو */
  .topbar-search { display: none; }
  .search-toggle { display: inline-flex; }
  .topbar-search-panel {
    display: block; overflow: hidden; max-height: 0;
    transition: max-height .3s cubic-bezier(.32,.72,.28,1);
    border-bottom: 0 solid var(--border);
  }
  .topbar-search-panel.open { max-height: 74px; border-bottom-width: 1px; }
  .topbar-search-mobile {
    display: flex; margin: 10px 14px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 999px; overflow: hidden;
  }
  .topbar-search-mobile input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); padding: 11px 18px; font: inherit; font-size: 14px; }
  .topbar-search-mobile button { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 8px 16px; display: flex; }
  .hero { padding: 36px 24px; border-radius: 20px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 24px; }
  .entity-hero, .song-hero { flex-direction: column; align-items: stretch; padding: 20px 18px; gap: 18px; }
  .entity-cover, .song-cover { width: 100%; height: auto; aspect-ratio: 1; max-width: 300px; margin: 0 auto; border-radius: 18px; }
  .entity-info h1, .song-title { font-size: 24px; text-align: center; }
  .song-artist-line { justify-content: center; display: flex; }
  .song-title-en { text-align: center; }
  .song-kicker-row { justify-content: center; }
  .song-stats { justify-content: center; }
  .tag-chips { justify-content: center; }
  .tag-chips-label { width: 100%; text-align: center; }
  .entity-info { text-align: center; }
  .entity-stats, .song-meta { justify-content: center; }
  .song-actions { justify-content: center; }
  .share-row { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 38px; }
  .f-about { grid-column: 1 / -1; }
  .to-top { inset-inline-start: 14px; bottom: 80px; width: 40px; height: 40px; }
  .card-play { width: 38px; height: 38px; }

  /* پلیر مرکزی مینیمال موبایل */
  .nava-bar { width: calc(100% - 14px); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 20px; }
  .pb-in { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 10px 8px 12px; gap: 6px; min-height: 62px; }
  .pb-extra { display: none; }
  .pb-prev { display: none; }
  .pb-play { width: 44px; height: 44px; margin: 0; }
  .pb-play:active { transform: scale(.92); }
  .pb-next { width: 40px; height: 40px; }
  .pb-controls { gap: 1px; justify-self: end; }
  .pb-cover { width: 46px; height: 46px; border-radius: 12px; }
  .pb-title { font-size: 13.5px; }
  .pb-artist { font-size: 11.5px; }
  .pb-progress { height: 9px; }
  body.has-player { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body.has-player .toast { bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }
  /* باکس دانلود موبایل: چیدمان دو ردیفه مرتب (نشان + متن، بعد دکمه‌ها) */
  .dl-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "badge info" "actions actions";
    row-gap: 12px; align-items: center;
  }
  .dl-badge { grid-area: badge; width: 40px; height: 40px; border-radius: 11px; font-size: 11.5px; }
  .dl-info { grid-area: info; }
  .dl-actions { grid-area: actions; }
  .dl-actions .dl-btn, .dl-actions .dl-play { flex: 1 1 0; justify-content: center; padding: 11px 12px; }
  .dl-box-in { padding: 18px 16px; }

  .sheet-art { max-width: min(230px, 60vw); }
  .sheet-title { font-size: 18px; }
  .sheet-controls { gap: 16px; }
  .sheet-controls .pb-btn { width: 42px; height: 42px; }
  .sheet-play { width: 62px; height: 62px; }
  .sheet-play:active { transform: scale(.93); }
  .vol-pop { min-width: 190px; }
  .vol-pop-range { width: 100px; }
  .sheet-toolbar { gap: 8px; }
  .tool-btn { width: 40px; height: 40px; }
  .sheet-quality button { padding: 5px 11px; }
  .sheet-panel { max-height: 100%; border-radius: 20px 20px 0 0; }
  .sheet-panel-head { padding: 12px 14px 8px; flex-wrap: wrap; }
  .sheet-panel-scroll { padding: 10px 14px 16px; }
  .sheet-queue-list { padding: 6px 10px 14px; }
  .q-cover { width: 32px; height: 32px; }
  .q-title { font-size: 12.5px; }
  .q-del { width: 30px; height: 30px; }
  .q-dur { display: none; }
  .eq-grid-wrap { gap: 10px; padding: 10px 10px; }
  .eq-preamp { min-width: 44px; padding-inline-end: 8px; }
  .eq-preamp input[type="range"] { width: 64px; margin: 26px 0; }
  .eq-bands { gap: 2px; }
  .eq-band > span { font-size: 8px; }
  .eq-band .vslot { height: 84px; }
  .eq-band .vslot input[type="range"] { width: 84px; }
  .eq-band b { font-size: 8px; }
  .sheet-in { padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .pb-btn, .sheet-play, .card-play, .hcard-play, .dl-btn, .share-btn, .btn { touch-action: manipulation; }
  .track-row { padding: 9px 12px; gap: 10px; }
  .chart { gap: 3px; }
  .chart-bar { width: 6px; }
  .admin-nav .an-links a { padding: 6px 9px; font-size: 12.5px; }

  /* اسکرول افقی و بخش‌های جدید موبایل */
  .hscroll { grid-auto-columns: minmax(132px, 148px); gap: 12px; }
  .hcard-play { width: 34px; height: 34px; opacity: 1; transform: none; }
  .song-title-en { margin-top: -4px; }
  .comment-form { padding: 16px; }
  .comment { padding: 12px 14px; }
  .sort-tabs { flex-wrap: wrap; }
  .nava-bar { border-radius: 20px; }
  .tags-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .tag-card { padding: 11px 12px; gap: 10px; }
  .tag-card-ic { width: 38px; height: 38px; font-size: 18px; }
  .dl-report { justify-content: center; }
  .dl-report-hint { width: 100%; text-align: center; }
}

/* حرکت کاهش‌یافته */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   نسخه ۴.۰ — تبلیغات، اکولایزر، ساخت پلی‌لیست، ریل‌های صفحه اصلی
   ═══════════════════════════════════════════════════════════════ */

/* ═══ امتیازدهی ستاره‌ای آهنگ ═══ */
.rating-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px 34px; align-items: center;
}
.rating-summary { display: contents; }
.rating-big {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  min-width: 170px;
}
.rating-big b {
  font-size: 46px; font-weight: 800; line-height: 1.1;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stars-view {
  position: relative; display: inline-block; font-size: 19px; line-height: 1;
  letter-spacing: 2.5px; direction: ltr;
}
.stars-view .stars-bg { color: var(--track-bg); }
.stars-view .stars-fg {
  position: absolute; top: 0; inset-inline-start: 0;
  width: var(--fill, 0%); overflow: hidden; white-space: nowrap;
  color: #ffb02e; direction: ltr;
}
.rating-big small { font-size: 11.5px; color: var(--muted); }
.rating-bars { display: grid; gap: 11px; min-width: 0; }
.rating-bar-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 12px; }
.rating-bar-label { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rating-bar-track {
  height: 8px; border-radius: 999px; background: var(--track-bg);
  overflow: hidden; display: block;
}
.rating-bar-fill {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: var(--accent-grad); transition: width .7s cubic-bezier(.32,.72,.28,1);
}
.rating-bar-val { font-size: 12.5px; color: var(--text); text-align: left; font-variant-numeric: tabular-nums; }
.rating-your {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--border); padding-top: 18px;
  display: grid; gap: 11px;
}
.rating-your-title { margin: 0; font-size: 13.5px; font-weight: 700; }
.rating-your-title small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rate-row-label { font-size: 13px; color: var(--text); font-weight: 600; }
.rate-stars { display: inline-flex; gap: 3px; direction: ltr; }
.rate-star {
  background: transparent; border: 0; padding: 2px; cursor: pointer;
  color: var(--track-bg); transition: transform .12s, color .15s; line-height: 0;
}
.rate-star.hov { color: #ffc65c; transform: scale(1.15); }
.rate-star.on { color: #ffb02e; }
.rate-star:active { transform: scale(.9); }
.rating-msg { margin: 0; font-size: 12px; color: var(--accent); min-height: 18px; font-weight: 600; }
.song-stat-rating {
  display: inline-flex; align-items: center; gap: 4px; color: var(--text);
}
.song-stat-rating svg { color: #ffb02e; }
.song-stat-rating:hover { color: var(--accent); }
@media (max-width: 720px) {
  .rating-box { grid-template-columns: 1fr; gap: 20px; padding: 18px 16px; }
  .rating-bar-row { grid-template-columns: 84px 1fr 40px; }
}

/* ═══ بخش «برای تو» — پیشنهاد هوشمند ═══ */
.sec-foryou .sec-head { margin-bottom: 14px; }
.foryou-title {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg, var(--accent), #b06ab3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foryou-spark {
  width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: sparkPulse 3.2s ease-in-out infinite;
}
.foryou-spark svg { color: #fff; -webkit-text-fill-color: #fff; }
@keyframes sparkPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.08) rotate(-6deg); }
}
.sec-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foryou-basis { font-size: 12px; color: var(--muted); font-weight: 600; }
.foryou-skeleton { display: contents; }
.foryou-skel-card {
  width: 148px; flex-shrink: 0; display: grid; gap: 8px;
}
.foryou-skel-card i {
  display: block; border-radius: 14px;
  background: linear-gradient(100deg, var(--card-2) 40%, var(--card) 50%, var(--card-2) 60%);
  background-size: 200% 100%;
  animation: skShimmer 1.4s linear infinite;
}
.foryou-skel-card .sk-cover { width: 148px; height: 148px; }
.foryou-skel-card .sk-line { height: 11px; width: 100%; margin-top: 4px; }
.foryou-skel-card .sk-line.short { width: 60%; }
@keyframes skShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -60% 0; }
}
.foryou-empty { grid-column: 1 / -1; }
.me-empty[hidden], .foryou-empty[hidden] { display: none !important; }

/* ═══ جایگاه‌های تبلیغاتی ═══ */
.ad-slot { margin: 0 0 22px; }
.ad-slot.ad-song_hero {
  background: var(--card); border: 1px dashed var(--border);
  border-radius: 18px; padding: 10px; text-align: center;
}
.ad-slot.ad-song_inline {
  background: var(--card); border: 1px dashed var(--border);
  border-radius: 18px; padding: 10px; text-align: center;
}
.ad-slot.ad-header_top {
  margin: 14px 0 4px; background: var(--card);
  border: 1px dashed var(--border); border-radius: 16px;
  padding: 8px; text-align: center; overflow: hidden;
}
.ad-slot img { max-width: 100%; height: auto; border-radius: 10px; display: inline-block; }

/* بنر ۲۵۰×۲۵۰ داخل باکس دانلود */
.dl-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px; align-items: start;
}
.ad-slot.ad-download_250 {
  margin: 0; width: 250px; max-width: 100%;
  background: var(--card-2); border: 1px dashed var(--border);
  border-radius: 16px; padding: 8px; text-align: center;
}
.ad-slot.ad-download_250 img { width: 100%; max-width: 234px; }
@media (max-width: 720px) {
  .dl-grid { grid-template-columns: 1fr; }
  .ad-slot.ad-download_250 { width: 100%; max-width: 300px; margin: 4px auto 0; }
}

/* نوار تبلیغ چسبیده به پایین — هماهنگ با پلیر */
.ad-sticky {
  position: fixed; inset-inline: 0;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 94; /* زیر نوار پلیر (95) */
  display: flex; justify-content: center;
  padding: 0 12px; pointer-events: none;
  transition: bottom .35s ease, opacity .3s ease, transform .3s ease;
}
.ad-sticky > *:not(.ad-close) {
  pointer-events: auto;
  width: min(780px, 100%);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-hi);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  padding: 8px 12px; text-align: center;
  overflow: hidden; position: relative;
}
.ad-sticky img { max-height: 52px; width: auto; max-width: 100%; border-radius: 8px; }
body.has-player .ad-sticky {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}
.ad-sticky .ad-close {
  pointer-events: auto;
  position: absolute; top: 6px; inset-inline-start: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--glass-hi); background: rgba(0,0,0,.35);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: .75; z-index: 3;
}
.ad-sticky .ad-close:hover { opacity: 1; }
.ad-sticky.bye { opacity: 0; transform: translateY(14px); }
body:has(.ad-sticky) { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
body.has-player:has(.ad-sticky) { padding-bottom: calc(164px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 700px) {
  body.has-player .ad-sticky { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body:has(.ad-sticky) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-player:has(.ad-sticky) { padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
}

/* v7.5: کد خام شبکه تبلیغاتی (مثل A-Ads با iframe ثابت) — بدون هیچ محدودیت چیدمان */
.ad-raw-sticky {
  position: static; margin: 0; padding: 0;
  width: 0; height: 0; overflow: visible;
  background: none; border: 0;
  font-size: 0; line-height: 0;
}
.ad-raw-sticky iframe { border: 0; }
.ad-raw-sticky > div { position: absolute; z-index: 99999; }


/* ═══ نشان دسته / ساخت کاربران روی کارت پلی‌لیست ═══ */
.plist-badge {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  background: rgba(10, 10, 16, .68); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 3px 9px; border-radius: 999px; max-width: 80%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.playlist-card.user-made .card-open { display: none; }

/* ═══ ساخت پلی‌لیست توسط کاربر ═══ */
.builder-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--card));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 16px 20px; margin: 0 0 20px; flex-wrap: wrap;
}
.builder-cta > div { display: flex; flex-direction: column; gap: 3px; }
.builder-cta b { font-size: 14.5px; }
.builder-cta span { font-size: 12.5px; color: var(--muted); }
.builder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .builder-grid { grid-template-columns: 1fr; } }
.builder-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 18px;
}
.builder-box-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 14.5px; font-weight: 800;
}
.builder-count { margin-inline-start: auto; font-size: 12px; color: var(--accent); }
.builder-search input {
  width: 100%; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; color: var(--fg); font-family: inherit; font-size: 13.5px;
}
.builder-search input:focus { outline: none; border-color: var(--accent); }
.builder-results, .builder-list { margin-top: 10px; display: grid; gap: 8px; max-height: 380px; overflow-y: auto; }
.builder-hint { font-size: 12px; color: var(--muted); padding: 10px 6px; }
.b-result, .b-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 10px;
}
.b-result.in { opacity: .55; border-style: dashed; }
.b-result img, .b-item img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.b-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.b-meta b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-meta span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-add {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-grad); color: #fff; border: 0; cursor: pointer;
  font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.b-ops { display: flex; gap: 4px; flex-shrink: 0; }
.b-op {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.b-op:hover:not(:disabled) { color: var(--fg); border-color: var(--muted); }
.b-op:disabled { opacity: .35; cursor: default; }
.b-op.b-rm:hover { color: #ff5e7a; border-color: #ff5e7a; }
#bForm { display: grid; gap: 10px; margin-top: 4px; }
#bForm input[type="text"], #bForm textarea {
  width: 100%; background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; color: var(--fg);
  font-family: inherit; font-size: 13.5px; resize: vertical;
}
#bForm input:focus, #bForm textarea:focus { outline: none; border-color: var(--accent); }

/* ═══ ریل‌های صفحه اصلی ═══ */
.home-rail { grid-auto-columns: minmax(150px, 168px); }
.home-rail .song-card, .home-rail .artist-card { width: auto; }

/* ── کاشی‌های حال‌وهوا (صفحه اصلی) ── */
.mood-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}
.mood-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 15px 16px 13px; border-radius: 18px;
  background: linear-gradient(140deg, var(--mg1, #fa233b), var(--mg2, #ff5e7a));
  color: #fff; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 24px color-mix(in srgb, var(--mg1, #fa233b) 22%, transparent);
  transition: transform .22s cubic-bezier(.32,.72,.28,1), box-shadow .22s;
  min-height: 92px;
}
.mood-tile::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 85% 12%, rgba(255,255,255,.28), transparent 55%);
  pointer-events: none;
}
.mood-tile:hover { transform: translateY(-4px) scale(1.015); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 34px color-mix(in srgb, var(--mg1, #fa233b) 34%, transparent); }
.mood-tile:active { transform: translateY(-1px) scale(.99); }
.mood-ic {
  width: 34px; height: 34px; border-radius: 12px; margin-bottom: 5px;
  background: rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.mood-ic svg { width: 18px; height: 18px; }
.mood-name { font-weight: 800; font-size: 14.5px; letter-spacing: -.2px; }
.mood-cnt { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.82); }

/* ── نمودار پرشنیده‌ترین‌ها (صفحه اصلی) ── */
.rank-rail { grid-auto-columns: minmax(230px, 258px); }
.rank-card {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 12px; min-width: 0;
  transition: transform .24s var(--ease-spring), border-color .2s ease;
}
.rank-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.rank-num {
  font-size: 19px; font-weight: 900; font-style: italic;
  color: var(--muted); opacity: .55; min-width: 22px; text-align: center;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
  transition: color .2s, opacity .2s;
}
.rank-card:hover .rank-num { color: var(--accent); opacity: 1; }
.rank-card.top .rank-num { color: var(--accent); opacity: .9; }
.rank-cover {
  position: relative; width: 52px; height: 52px; border-radius: 13px; overflow: hidden;
  flex-shrink: 0; display: block;
}
.rank-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.32,.72,.28,1); }
.rank-card:hover .rank-cover img { transform: scale(1.09); }
.rank-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,16,.45); color: #fff;
  opacity: 0; transform: scale(.8);
  transition: opacity .2s, transform .2s; cursor: pointer;
}
.rank-card:hover .rank-play, .rank-play:focus-visible { opacity: 1; transform: scale(1); }
.rank-meta { min-width: 0; flex: 1; display: grid; gap: 2px; }
.rank-title {
  font-size: 13.5px; font-weight: 800; color: var(--text); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-title:hover { color: var(--accent); }
.rank-artist {
  font-size: 11.5px; color: var(--muted); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-artist:hover { color: var(--text); }
.rank-plays {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  background: var(--bg-soft); border-radius: 999px; padding: 4px 9px;
  font-variant-numeric: tabular-nums;
}
.rank-plays svg { width: 10px; height: 10px; }
.sec-note { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-inline-start: auto; }

@media (max-width: 760px) {
  .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mood-tile { padding: 13px 14px 11px; min-height: 84px; border-radius: 16px; }
  .rank-rail { grid-auto-columns: minmax(208px, 232px); }
  .rank-card { padding: 9px 10px; }
  .rank-cover { width: 46px; height: 46px; }
  .rank-num { font-size: 16px; min-width: 18px; }
  .rank-plays { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   نسخه ۵ — علاقه‌مندی‌ها، صفحه من، کپچا، دسته‌بندی‌ها، پنل جدید
   ═══════════════════════════════════════════════════════════ */

/* ── دکمه قلب (علاقه‌مندی) ── */
.fav-btn, .js-fav {
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s, color .18s; padding: 0;
}
.js-fav:hover { transform: scale(1.12); }
.js-fav .hp { transition: fill .18s; }
.js-fav.on { color: #ff5f7e; }
.js-fav.on .hp { fill: currentColor; }
.fav-hero {
  width: 52px; height: 52px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--muted);
}
.fav-hero.on { color: #ff5f7e; border-color: color-mix(in srgb, #ff5f7e 40%, transparent); }
.card-fav, .hcard-fav {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10, 10, 16, .55); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-4px);
}
.song-card:hover .card-fav, .hcard:hover .hcard-fav,
.card-fav.on, .hcard-fav.on, .card-fav:focus-visible, .hcard-fav:focus-visible { opacity: 1; transform: translateY(0); }
.card-fav.on, .hcard-fav.on { color: #ff5f7e; }
@media (hover: none) { .card-fav, .hcard-fav { opacity: 1; transform: none; } }
.track-fav {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  color: var(--muted);
}
.track-fav:hover { color: #ff5f7e; background: color-mix(in srgb, #ff5f7e 10%, transparent); }
.track-fav.on { color: #ff5f7e; }

/* ═══════════ دکمه‌ی «افزودن به پلی‌لیست» در track-row و card (نسخه ۷.۳.۸) ═══════════ */
.track-addpl, .card-addpl, .hcard-addpl {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color .2s ease, background .2s ease;
}
.track-addpl:hover, .card-addpl:hover, .hcard-addpl:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
/* نسخه ۷.۳.۲۰: آیکون «افزودن به پلی‌لیست» به گوشه‌ی بالای کاور (مقابل قلب) منتقل شد */
.card-addpl {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  opacity: 0;
  transform: translateY(-4px);
  background: rgba(10, 10, 16, .55);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.song-card:hover .card-addpl, .card-addpl:focus-visible { opacity: 1; transform: translateY(0); }
@media (hover: none) { .card-addpl { opacity: 1; transform: none; } }

/* ═══════════ مودال «افزودن به پلی‌لیست» (نسخه ۷.۳.۸) ═══════════ */
.addpl-modal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
}
.addpl-modal.show { display: block; }
.addpl-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
}
.addpl-dialog {
  position: relative;
  width: 92%; max-width: 460px;
  margin: 60px auto;
  background: var(--bg, #fff);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.addpl-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #eee);
}
.addpl-head h3 {
  margin: 0; font-size: 18px; font-weight: 700;
}
.addpl-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 24px; color: var(--muted);
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.addpl-close:hover { background: rgba(0, 0, 0, .08); }
.addpl-song {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 10px;
  background: var(--bg-soft, #f8f8f8);
  margin-bottom: 16px;
}
.addpl-song img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.addpl-song div { display: flex; flex-direction: column; }
.addpl-song strong { font-size: 14px; }
.addpl-song span { color: var(--muted); font-size: 12px; }
.addpl-list { margin: 12px 0; max-height: 240px; overflow-y: auto; }
.addpl-loading, .addpl-empty {
  text-align: center; padding: 24px 8px;
  color: var(--muted); font-size: 14px;
}
.addpl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  cursor: default;
  transition: background .15s ease;
}
.addpl-item:hover { background: var(--bg-soft, #f8f8f8); }
.addpl-item-icon { font-size: 20px; }
.addpl-item-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.addpl-item-info strong { font-size: 14px; }
.addpl-item-info span { font-size: 12px; color: var(--muted); }
.addpl-add-btn {
  background: var(--accent, #2563eb); color: #fff;
  border: none; border-radius: 8px; padding: 6px 14px;
  font-size: 13px; cursor: pointer;
}
.addpl-add-btn:hover { filter: brightness(1.1); }
.addpl-add-btn:disabled { opacity: .5; cursor: default; }
.addpl-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 12px;
}
.addpl-newform {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px; padding: 12px;
  background: var(--bg-soft, #f8f8f8); border-radius: 10px;
}
.addpl-newform input[type="text"] {
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border, #ddd);
  background: var(--bg, #fff);
  font-size: 14px;
}
.addpl-newform input:focus { border-color: var(--accent); outline: none; }

/* ═══════════ صفحه‌ی پلی‌لیست مهمان (نسخه ۷.۳.۸) ═══════════ */
.gpl-page { padding: 12px 0; }
.gpl-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.gpl-header h1 { margin: 0; font-size: 24px; }
.gpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gpl-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 14px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.gpl-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.gpl-card-title { font-size: 16px; font-weight: 700; margin: 0; }
.gpl-card-desc { color: var(--muted); font-size: 13px; min-height: 32px; }
.gpl-card-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.gpl-card-meta b { color: var(--accent, #2563eb); }
.gpl-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gpl-card-actions a, .gpl-card-actions button {
  font-size: 12px; padding: 6px 12px; border-radius: 8px;
  background: var(--bg-soft, #f8f8f8); color: var(--text, #333);
  border: 1px solid var(--border, #ddd); cursor: pointer;
  text-decoration: none;
}
.gpl-card-actions a:hover, .gpl-card-actions button:hover {
  background: var(--accent, #2563eb); color: #fff; border-color: var(--accent, #2563eb);
}
.gpl-share-box {
  background: var(--bg-soft, #f8f8f8); padding: 10px; border-radius: 8px;
  display: flex; gap: 8px; font-size: 12px;
}
.gpl-share-box input { flex: 1; border: 1px solid var(--border, #ddd); border-radius: 6px; padding: 6px 8px; background: var(--bg, #fff); }
.gpl-empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--muted);
}
.gpl-empty-state h2 { color: var(--text); margin-bottom: 8px; }
.gpl-play-bar {
  background: linear-gradient(135deg, var(--accent, #2563eb), color-mix(in srgb, var(--accent, #2563eb) 70%, #fff));
  color: #fff; padding: 18px; border-radius: 14px; margin-bottom: 18px;
}
.gpl-play-bar h1 { color: #fff; margin: 0 0 4px 0; font-size: 24px; }
.gpl-play-bar p { color: rgba(255, 255, 255, .9); margin: 0; }

/* ═══════════ ویرایشگر قالب (نسخه ۷.۳.۸) — شبیه المنتور ═══════════ */
.tpl-editor-page { background: var(--bg-soft, #f4f4f4); }
.tpl-editor-bar {
  background: #1e293b; color: #fff;
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.tpl-editor-bar h1 { color: #fff; margin: 0; font-size: 18px; }
.tpl-editor-bar a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.tpl-editor-bar a:hover { color: #fff; }
.tpl-editor-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 0; min-height: calc(100vh - 60px);
}
.tpl-editor-sidebar {
  background: #fff; padding: 16px;
  border-inline-end: 1px solid #e5e7eb;
  overflow-y: auto;
}
.tpl-section-list { list-style: none; padding: 0; margin: 0; }
.tpl-section-item {
  padding: 12px 14px; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  transition: background .15s ease;
}
.tpl-section-item:hover { background: #f1f5f9; }
.tpl-section-item.active { background: var(--accent, #2563eb); color: #fff; }
.tpl-section-item .icon { font-size: 18px; }
.tpl-editor-main { padding: 24px; }
.tpl-block {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 16px;
  margin-bottom: 14px;
}
.tpl-block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px dashed #e5e7eb;
}
.tpl-block-head h3 { margin: 0; font-size: 15px; }
.tpl-block-actions { display: flex; gap: 6px; }
.tpl-block-actions button {
  background: #f1f5f9; border: none; padding: 6px 10px;
  border-radius: 6px; cursor: pointer; font-size: 14px;
}
.tpl-block-actions button:hover { background: #e2e8f0; }
.tpl-block-actions button.off { opacity: .5; }
.tpl-block textarea {
  width: 100%; min-height: 80px;
  padding: 10px 12px;
  border-radius: 8px; border: 1px solid #e5e7eb;
  font-family: inherit; font-size: 14px;
  background: #fff; color: #0f172a;
}
.tpl-block textarea:focus { border-color: var(--accent, #2563eb); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2563eb) 20%, transparent); }
.tpl-block input[type="text"] {
  width: 100%; padding: 8px 12px;
  border-radius: 8px; border: 1px solid #e5e7eb;
  font-size: 14px;
}
.tpl-block input:focus { border-color: var(--accent, #2563eb); outline: none; }
.tpl-block .image-preview {
  margin-top: 10px; border-radius: 8px;
  width: 100%; max-height: 180px; object-fit: cover;
}
.tpl-block .save-indicator {
  font-size: 12px; color: var(--muted);
  margin-top: 6px;
}
.tpl-block .save-indicator.saved { color: #16a34a; }
.tpl-add-block-btn {
  background: #fff; border: 2px dashed #cbd5e1;
  border-radius: 12px; padding: 14px;
  width: 100%; cursor: pointer; font-size: 14px;
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}
.tpl-add-block-btn:hover { border-color: var(--accent, #2563eb); color: var(--accent, #2563eb); }
@media (max-width: 768px) {
  .tpl-editor-layout { grid-template-columns: 1fr; }
  .tpl-editor-sidebar { border-inline-end: none; border-bottom: 1px solid #e5e7eb; }
}

/* ── صفحه «من» ── */
.me-hero {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 24px 26px; margin: 18px 0 8px;
}
.me-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent);
}
.me-hero h1 { font-size: 21px; margin: 0 0 4px; }
.me-hero p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.me-rail { min-height: 120px; align-items: stretch; }
.me-empty {
  min-width: 240px; align-self: stretch;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--muted); text-align: center;
  border: 1.5px dashed var(--border); border-radius: 16px;
  padding: 22px 20px; font-size: 13px;
}
.me-empty svg { opacity: .5; }
.me-empty p { margin: 0; }
.me-plist .plist-cover {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--card-2)), var(--card-2));
  color: var(--accent);
}
.sec-count { color: var(--muted); font-size: 14px; font-weight: 600; }
.sec-actions { display: inline-flex; align-items: center; gap: 10px; }
.sec-actions .sec-hint { font-size: 11.5px; }

/* ── نوار دسته‌بندی صفحه اصلی ── */
.chips-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.chips-lg .chip-cat {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 9px 16px;
  font-size: 13px; font-weight: 700; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.chips-lg .chip-cat svg { color: var(--accent); }
.chips-lg .chip-cat b {
  font-size: 11px; color: var(--muted); font-weight: 600;
  background: var(--card-2); border-radius: 999px; padding: 2px 8px;
}
.chips-lg .chip-cat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-1px); }
.cat-strip .chips-row { padding-bottom: 4px; }

/* ── کپچای فرم نظر ── */
.captcha-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px;
}
.captcha-row img { border-radius: 10px; display: block; }
.captcha-q {
  font-size: 15px; font-weight: 800; color: var(--text);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px; min-width: 90px; text-align: center;
}
.captcha-row input {
  flex: 1; min-width: 120px; max-width: 190px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 12px;
  font-family: inherit; font-size: 13.5px; color: var(--text);
}
.captcha-row input:focus { outline: none; border-color: var(--accent); }

/* ── پنل مدیریت: صفحات جدید ── */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.admin-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.admin-card h3 svg { color: var(--accent); flex-shrink: 0; }
.check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; font-size: 13px; line-height: 1.8;
}
.check-list .st { flex-shrink: 0; margin-top: 3px; width: 9px; height: 9px; border-radius: 50%; }
.check-list .st.ok { background: #34c77b; box-shadow: 0 0 0 3px color-mix(in srgb, #34c77b 22%, transparent); }
.check-list .st.warn { background: #f0b429; box-shadow: 0 0 0 3px color-mix(in srgb, #f0b429 22%, transparent); }
.check-list .st.err { background: #ff5f7e; box-shadow: 0 0 0 3px color-mix(in srgb, #ff5f7e 22%, transparent); }
.check-list b { font-weight: 700; }
.check-list small { display: block; color: var(--muted); }
.stat-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-mini > div {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px;
}
.stat-mini b { display: block; font-size: 20px; font-weight: 800; }
.stat-mini span { font-size: 12px; color: var(--muted); }
.ip-block-list { width: 100%; font-family: inherit; }
.scan-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.scan-row.bad { background: color-mix(in srgb, #ff5f7e 12%, transparent); }
.scan-row.ok-row { color: var(--muted); }

.badge-off { background: var(--card-2); color: var(--muted); border: 1px solid var(--border); }

/* ── بهینه‌سازی سرعت ── */
img[loading="lazy"] { background: var(--card-2); }
.site-footer, .hcard img, .card-cover img { contain: content; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* لینک‌های سریع داشبورد */
.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.q-link {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 16px; transition: color .22s cubic-bezier(.32,.72,.25,1), background-color .22s cubic-bezier(.32,.72,.25,1), border-color .22s cubic-bezier(.32,.72,.25,1), opacity .22s ease, transform .22s cubic-bezier(.32,.72,.25,1);
}
.q-link:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-1px); }
.q-link b { font-size: 13.5px; }
.q-link span { font-size: 11.5px; color: var(--muted); line-height: 1.8; }

/* فرم‌های پنل — کلاس‌های مشترک صفحات جدید */
.admin-form { display: grid; gap: 14px; }
.admin-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.admin-form input[type="text"], .admin-form input[type="number"], .admin-form input[type="password"],
.admin-form input[type="email"], .admin-form input[type="url"], .admin-form select, .admin-form textarea {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 13px; font-family: inherit; font-size: 13.5px; color: var(--text);
  width: 100%; box-sizing: border-box;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--accent); }
.admin-form .check-line { display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; color: var(--text); font-size: 13px; }
.admin-form .check-line input { width: 17px; height: 17px; accent-color: var(--accent); }
.admin-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.form-note { font-size: 12px; color: var(--muted); line-height: 2; margin: 4px 0 0; }
.admin-form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.empty-box {
  background: var(--card); border: 1.5px dashed var(--border); border-radius: 16px;
  padding: 34px 20px; text-align: center; color: var(--muted); font-size: 13.5px;
}
.page-head h1 { margin: 0 0 6px; font-size: 21px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 2; }

/* ═══════════════════════════════════════════════════════════
   نسخه ۵.۱ — پولیش هاور و انیمیشن‌های نرم
   ═══════════════════════════════════════════════════════════ */

/* چیپ‌ها (حال‌وهوا، دسته‌ها) — ترنزیشن نرم */
.chip { transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
a.chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent); transform: translateY(-1px);
}
a.chip:hover b { color: inherit; }

/* دکمه‌های اشتراک‌گذاری — بالا آمدن نرم + سایه رنگی */
.share-btn:hover { transform: translateY(-3px); }
.share-tg:hover { box-shadow: 0 8px 20px rgba(34, 158, 217, .35); }
.share-wa:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.share-eitaa:hover { box-shadow: 0 8px 20px rgba(236, 64, 103, .3); }
.share-bale:hover { box-shadow: 0 8px 20px rgba(51, 184, 232, .3); }
.share-splus:hover { box-shadow: 0 8px 20px rgba(245, 124, 0, .3); }
.share-rubika:hover { box-shadow: 0 8px 20px rgba(123, 97, 255, .32); }
.share-copy:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 24%, transparent); }
.share-btn:active { transform: translateY(0) scale(.94); }

/* نوار پلیر مینی — ناحیه اطلاعات با هاور روشن می‌شود */
.pb-info {
  border-radius: 13px; padding: 3px 8px; margin: -3px -8px; min-width: 0;
  transition: background .18s ease;
}
.pb-info:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.pb-info:hover .pb-title { color: var(--accent); }
.pb-title { transition: color .18s ease; }

/* فیدبک لمسی دکمه‌ها */
.btn:active, .dl-btn:active, .dl-play:active, .sec-more:active, .sec-link:active {
  transform: translateY(0) scale(.97);
}

/* عنوان تراک در لیست‌ها */
.track-title { transition: color .16s ease; }
.track-title:hover { color: var(--accent); }

/* کاور کارت‌های عمودی — زوم نرم */
.song-card .card-cover img { transition: transform .4s cubic-bezier(.32,.72,.28,1); }
.song-card:hover .card-cover img { transform: scale(1.06); }

/* لینک‌های فوتر — خط زیر نرم */
.f-col a { transition: color .16s ease, padding-inline-start .16s ease; }
.f-col a:hover { padding-inline-start: 3px; }

/* بردکرامب */
.breadcrumbs a { transition: color .15s ease; }

/* دکمه شناور بالای ریل‌ها — فلش‌های اسکرول در دسکتاپ */
@media (hover: hover) and (pointer: fine) {
  .rank-play { border-radius: 0; }
}

/* ═══════════════════════════════════════════════════════════
   مادآرنا v5.6 — بخش‌های جدید
   پلی‌لیست‌های حال‌وهوا / فیلتر دهه / گالری خواننده /
   متن پیش‌فرض سئو / اسکرول بی‌نهایت / لایت‌باکس / انیمیشن سبک
   ═══════════════════════════════════════════════════════════ */

/* ───── کارت‌های پلی‌لیست حال‌وهوا ───── */
.mood-pl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}
.mood-pl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--mg1, #fa233b), var(--mg2, #7c3aed));
  color: #fff;
  overflow: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .25, 1), box-shadow .28s;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--mg1, #fa233b) 28%, transparent);
  will-change: transform;
}
.mood-pl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.25), transparent 55%);
  pointer-events: none;
}
.mood-pl-card:hover { transform: translateY(-4px) scale(1.015); }
.mood-pl-card:active { transform: scale(.97); }
.mpl-ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(4px);
}
.mpl-ic svg { width: 20px; height: 20px; }
.mpl-name { font-weight: 800; font-size: 14.5px; line-height: 1.4; }
.mpl-cnt { font-size: 11.5px; opacity: .85; }
.mpl-go {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  opacity: .9;
}
.mpl-go svg { width: 13px; height: 13px; }

/* ───── هیرو پلی‌لیست حال‌وهوا ───── */
.mood-hero { position: relative; overflow: hidden; }
.mood-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mg1, #fa233b) 30%, transparent), color-mix(in srgb, var(--mg2, #7c3aed) 22%, transparent));
  pointer-events: none;
}
.mood-hero-art {
  position: absolute;
  inset-inline-end: 18px;
  top: 18px;
  width: 92px; height: 92px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--mg1, #fa233b), var(--mg2, #7c3aed));
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.mood-hero-art svg { width: 44px; height: 44px; }

/* ───── فیلتر دهه ───── */
.chip-decade svg { opacity: .75; }

/* ───── متن پیش‌فرض سئو برای آهنگ‌های بدون ترانه ───── */
.lyrics-default-en {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin: -6px 0 14px;
  text-align: left;
  letter-spacing: .2px;
}
.lyrics-default {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  line-height: 2.05;
  color: var(--text);
  font-size: 14.5px;
}
.lyrics-default p { margin: 0 0 10px; }
.lyrics-default p:last-child { margin-bottom: 0; }
.lyrics-default a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.lyrics-default a:hover { text-decoration: underline; }

/* ───── بیوگرافی خواننده ───── */
.bio-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  line-height: 2.05;
  font-size: 14.5px;
  color: var(--text);
}
.bio-box p { margin: 0 0 10px; }
.bio-box p:last-child { margin-bottom: 0; }
.bio-note { color: var(--muted); font-size: 12.5px; }
.artist-genres { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }

/* ───── گالری عکس خواننده ───── */
.artist-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.gal-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--card-2);
  cursor: zoom-in;
}
.gal-item.gal-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.2, .8, .25, 1);
}
.gal-item:hover img { transform: scale(1.06); }

/* ───── لایت‌باکس ───── */
.lb-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  max-width: min(88vw, 760px);
  max-height: 88vh;
  color: var(--text);
  overflow: visible;
}
.lb-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.lb-dialog[open] { animation: lbIn .28s cubic-bezier(.2, .8, .25, 1); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.lb-body { margin: 0; display: flex; flex-direction: column; }
.lb-body img { max-width: 100%; max-height: 74vh; object-fit: contain; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.lb-body figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }
.lb-close {
  position: absolute; top: -16px; inset-inline-start: -16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent-grad);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.lb-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
}
.lb-prev { inset-inline-start: -48px; }
.lb-next { inset-inline-end: -48px; }
.lb-nav:hover { background: var(--accent-grad); color: #fff; border-color: transparent; }
@media (max-width: 640px) {
  .lb-prev { inset-inline-start: 6px; }
  .lb-next { inset-inline-end: 6px; }
  .lb-nav { top: auto; bottom: -56px; transform: none; }
}

/* ───── جستجوی صفحه خواننده‌ها ───── */
.artists-search {
  display: flex;
  gap: 10px;
  margin: 4px 0 16px;
}
.artists-search input[type="search"] {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.artists-search input[type="search"]:focus { border-color: var(--accent); }
.artists-search button {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-grad);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.artists-count { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }

/* ───── اسکرول بی‌نهایت ───── */
.loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 0 40px;
}
.loadmore-sentinel { width: 100%; height: 2px; }
.loadmore-status { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.loadmore.loading .loadmore-btn { opacity: .6; pointer-events: none; }
.loadmore.loading .loadmore-btn::after {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  margin-inline-start: 8px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lmSpin .7s linear infinite;
  vertical-align: -2px;
}
@keyframes lmSpin { to { transform: rotate(360deg); } }

/* ───── نمایان‌سازی کارت‌ها (نسخه ۷.۶) ─────
   قبلاً: .rv { opacity: 0 } + کلاس in-view با IntersectionObserver —
   کارت‌ها هنگام اسکرول یکی‌یکی انیمیت می‌شدند و لگ می‌ساختند.
   اکنون همه کارت‌ها از سرور با rv-in می‌آیند و از ابتدا نمایان‌اند.
   قاعده تضمینی زیر هرگز اجازه نمی‌دهد کارتی مخفی بماند: */
.rv, .rv.in-view, .rv.rv-in { opacity: 1; transform: none; }

/* ───── بهبود کارایی اسکرول (نسخه ۷.۶) ─────
   content-visibility:auto از کارت‌ها حذف شد: با اسکرول، رندر تازه هر کارت
   (layout+paint) وسط اسکرول انجام می‌شد و پرش/لگ حس می‌شد. اکنون کارت‌ها
   همیشه رندرشده‌اند؛ مرورگر خودش رسم خارج از دید را انجام نمی‌دهد. */
.tracklist .track-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 62px;
}
/* کاهش بار blur روی دستگاه‌های ضعیف */
@media (max-width: 640px) {
  .nava-sheet { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

/* ═══════ بهبودهای کارایی و هاور — نسخه ۵.۷ ═══════ */
/* سایه‌ها به‌صورت لایهٔ آماده؛ هاور فقط opacity را انیمیت می‌کند (بدون بازرسم سنگین) */
.song-card, .artist-card, .rank-card { position: relative; }
.song-card::after, .artist-card::after, .rank-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.rank-card::after { box-shadow: 0 12px 26px rgba(0,0,0,.16); }
[data-theme="light"] .rank-card::after { box-shadow: 0 12px 26px rgba(30,30,60,.14); }
.song-card:hover::after, .artist-card:hover::after, .rank-card:hover::after,
.song-card:focus-visible::after, .artist-card:focus-visible::after { opacity: 1; }

/* زوم کاورها با منحنی فنری نرم‌تر */
.card-cover img { transition: transform .5s var(--ease-spring); }
.song-card:hover .card-cover img { transform: scale(1.06); }
.artist-img img { transition: transform .45s var(--ease-spring); }
.hcard-cover img { transition: transform .5s var(--ease-spring); }

/* دکمهٔ پخش روی کاور: پاپ فنری */
.card-play:hover { transform: scale(1.1) !important; }

/* موبایل: بلور حذف کامل در المان‌های همیشه‌نمایان — مهم‌ترین عامل روانی اسکرول */
@media (max-width: 640px) {
  .topbar, .nava-bar {
    background: var(--glass-solid);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
}

/* ═══════════ فیلتر صفحه نوستالژیک — جستجو + خواننده (نسخه ۶.۲) ═══════════ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nostalgia-filter { margin: 4px 0 22px; }
.filter-search {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 10px 14px; max-width: 720px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.filter-search:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.filter-search-icon { display: inline-flex; color: var(--muted); flex-shrink: 0; }
.filter-search input[type="search"] {
  flex: 1 1 220px; min-width: 160px; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 14px;
}
.filter-search input[type="search"]::placeholder { color: var(--muted); }
.filter-search-btn { flex-shrink: 0; }
.filter-clear-btn { flex-shrink: 0; }
.filter-search-btn svg, .filter-clear-btn svg { vertical-align: middle; }

/* آیکون توست و آیکون سرتیتر بخش‌ها (نسخه ۶.۲ — به‌جای ایموجی) */
.toast-ic { display: inline-flex; align-items: center; margin-inline-end: 8px; color: #7ef0b0; flex-shrink: 0; }
.toast-ic svg { display: block; }
.sec-h-ic { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); margin-inline-end: 8px; vertical-align: -3px; }
.sec-h-ic svg { display: block; }
.footer-hint svg { vertical-align: -2px; margin: 0 2px; }

/* ═══════════════════════════════════════════════════════════
   مادآرنا v6.3 — بازطراحی امتیازدهی و نظرات + هاورهای نرم‌تر
   ═══════════════════════════════════════════════════════════ */

/* ───── ۱) ستاره‌های SVG در نمایش میانگین ───── */
.stars-view { font-size: 0; letter-spacing: 0; }
.stars-view .stars-bg,
.stars-view .stars-fg { display: inline-flex; gap: 2.5px; direction: ltr; }
.stars-view .star-glyph { display: inline-flex; width: 19px; height: 19px; }
.stars-view .star-glyph svg { width: 100%; height: 100%; display: block; }

/* ───── ۲) باکس امتیازدهی — بازطراحی کامل ───── */
.rating-box {
  position: relative; overflow: hidden;
  background:
    radial-gradient(520px 190px at 88% -30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    var(--card);
  border: 1px solid var(--border); border-radius: 22px;
  padding: 28px 30px;
  gap: 20px 40px;
}
.rating-big b { font-size: 54px; letter-spacing: -.5px; }
.rating-big-of { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: -4px; }
.rating-bar-label { display: inline-flex; align-items: center; gap: 6px; }
.rbar-ico { display: inline-flex; color: var(--accent); opacity: .85; }
.rbar-ico svg { display: block; }
.rating-bar-track { height: 9px; }
.rating-bar-fill { background: linear-gradient(90deg, var(--accent), #ffb02e); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 45%, transparent); }
.rating-your { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 20px; gap: 13px; }
.rating-your-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.ry-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.ry-ico svg { display: block; }
.rate-row {
  background: var(--card-2); border: 1px solid transparent; border-radius: 14px;
  padding: 10px 16px;
  transition: border-color .25s cubic-bezier(.32,.72,.25,1), background-color .25s cubic-bezier(.32,.72,.25,1), transform .25s cubic-bezier(.32,.72,.25,1), box-shadow .25s cubic-bezier(.32,.72,.25,1);
}
.rate-row:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 6px 18px rgba(0,0,0,.14); transform: translateY(-1px); }
.rate-row-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.rate-row-val {
  min-width: 34px; text-align: center; font-size: 12.5px; font-weight: 800;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px; padding: 3px 9px; font-variant-numeric: tabular-nums;
}
.rate-star { padding: 2.5px; transition: transform .18s cubic-bezier(.32,.72,.25,1), color .18s ease, filter .18s ease; }
.rate-star svg { width: 22px; height: 22px; display: block; }
.rate-star:hover { transform: scale(1.22) rotate(-6deg); }
.rate-star.hov { color: #ffc65c; transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(255, 176, 46, .55)); }
.rate-star.on { color: #ffb02e; }
.rate-star.on.hov { color: #ffca55; }
@media (max-width: 720px) {
  .rating-box { padding: 20px 16px; border-radius: 18px; }
  .rating-big b { font-size: 46px; }
}

/* ───── ۳) نظرات — کارت‌ها و فرم جدید ───── */
.comment {
  transition: border-color .25s cubic-bezier(.32,.72,.25,1), box-shadow .25s cubic-bezier(.32,.72,.25,1), transform .25s cubic-bezier(.32,.72,.25,1);
}
.comment:hover { border-color: color-mix(in srgb, var(--accent) 22%, var(--border)); box-shadow: 0 10px 26px rgba(0,0,0,.16); transform: translateY(-2px); }
.comment-avatar { box-shadow: 0 6px 14px color-mix(in srgb, hsl(var(--h, 0) 65% 45%) 45%, transparent); }
.comment-date { display: inline-flex; align-items: center; gap: 4px; }
.comment-date svg { opacity: .7; }
.comments-empty { display: flex; align-items: center; justify-content: center; gap: 8px; }
.comments-empty svg { color: var(--accent); flex-shrink: 0; }
.comment-form {
  background:
    radial-gradient(420px 140px at 12% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%),
    var(--bg-soft);
  border-radius: 20px; padding: 24px;
}
.comment-form h3 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.comment-form h3 svg { color: var(--accent); }
.comment-form .ifield {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border); border-radius: 13px;
  padding: 0 14px; margin-bottom: 12px;
  transition: border-color .25s cubic-bezier(.32,.72,.25,1), box-shadow .25s cubic-bezier(.32,.72,.25,1);
}
.comment-form .ifield:focus-within {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--accent) 14%, transparent);
}
.comment-form .ifi { display: inline-flex; color: var(--muted); flex-shrink: 0; transition: color .25s ease; }
.comment-form .ifield:focus-within .ifi { color: var(--accent); }
.comment-form .ifi svg { display: block; }
.comment-form .ifield input[type="text"],
.comment-form .ifield input[type="email"],
.comment-form .ifield input:not([type]) {
  flex: 1; min-width: 0; background: transparent; color: var(--text);
  border: 0; border-radius: 13px; padding: 11.5px 0; font: inherit; font-size: 14px; margin: 0;
}
.comment-form .ifield input:focus { outline: none; border: 0; }
.comment-form .ifield-area { padding: 0 14px; align-items: flex-start; }
.comment-form .ifield-area .ifi-area { margin-top: 13px; }
.comment-form .ifield-area textarea {
  flex: 1; min-width: 0; background: transparent; color: var(--text);
  border: 0; border-radius: 13px; padding: 11.5px 0; font: inherit; font-size: 14px; margin: 0;
  resize: vertical; min-height: 88px;
}
.comment-form .ifield-area textarea:focus { outline: none; border: 0; }
.comment-form .captcha-row { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.comment-form .captcha-row .ifield { flex: 1; min-width: 210px; margin-bottom: 12px; }
.comment-form .captcha-q { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.comment-form .captcha-img { border-radius: 12px; margin-bottom: 12px; }
.comment-form .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; }
@media (max-width: 640px) { .comment-form-row { grid-template-columns: 1fr; } }

/* ───── ۴) آیکون پیام‌های مدیریت (به‌جای کاراکتر ✓/⛔) ───── */
body.admin .msg-ok, body.admin .msg-err { display: flex; align-items: center; gap: 9px; }
body.admin .msg-ok::before,
body.admin .msg-err::before {
  content: ''; width: 17px; height: 17px; flex-shrink: 0;
  background-color: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
body.admin .msg-ok::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E");
}
body.admin .msg-err::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.8v.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.8v.2'/%3E%3C/svg%3E");
}
body.admin .empty-box svg { color: var(--accent); vertical-align: -4px; margin-inline-end: 6px; }

/* ───── ۵) هاورهای نرم‌تر — همه کارت‌ها و دکمه‌ها ───── */
.song-card, .hcard, .artist-card, .album-card, .playlist-card, .rank-card {
  transition: transform .32s cubic-bezier(.32,.72,.25,1), box-shadow .32s cubic-bezier(.32,.72,.25,1);
  will-change: transform;
}
.song-card:hover, .hcard:hover { transform: translateY(-4px); }
.song-card:hover .card-cover, .hcard:hover .hcard-cover { box-shadow: 0 14px 32px rgba(0,0,0,.32); }
.rank-card:hover { transform: translateY(-3px); }
.artist-card:hover, .album-card:hover, .playlist-card:hover { transform: translateY(-4px); }
.chip-cat { transition: border-color .25s cubic-bezier(.32,.72,.25,1), background-color .25s cubic-bezier(.32,.72,.25,1), color .25s cubic-bezier(.32,.72,.25,1), transform .25s cubic-bezier(.32,.72,.25,1), box-shadow .25s cubic-bezier(.32,.72,.25,1); }
.chip-cat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 16%, transparent); }
.btn { transition: background-color .25s cubic-bezier(.32,.72,.25,1), color .25s cubic-bezier(.32,.72,.25,1), border-color .25s cubic-bezier(.32,.72,.25,1), transform .25s cubic-bezier(.32,.72,.25,1), box-shadow .25s cubic-bezier(.32,.72,.25,1), filter .25s ease; }
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-accent { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 24%, transparent); }
.btn-accent:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 36%, transparent); filter: brightness(1.06); }
.pagination .pg-item { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.pagination .pg-item:hover { transform: translateY(-1.5px); }
.sec-link { display: inline-flex; align-items: center; gap: 5px; }
.sec-link svg { transition: transform .28s cubic-bezier(.32,.72,.25,1); }
.sec-link:hover svg { transform: translateX(-4px); }
.sec-more { transition: color .22s ease; }
.footer-links a, .an-links a { transition: color .22s ease; }
.nav-menu a { position: relative; }
.nav-menu a::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: -4px; height: 2.5px; border-radius: 2px;
  background: var(--accent-grad); transform: scaleX(0); transform-origin: right;
  transition: transform .3s cubic-bezier(.32,.72,.25,1);
}
.nav-menu a:hover::after { transform: scaleX(1); }
.filter-chip, .cat-chip, .decade-chip { transition: border-color .25s ease, background-color .25s ease, color .25s ease, transform .25s cubic-bezier(.32,.72,.25,1), box-shadow .25s ease; }
.filter-chip:hover, .cat-chip:hover, .decade-chip:hover { transform: translateY(-2px); }

/* ───── ۶) بخش موسیقی سنتی صفحه اصلی ───── */
.sec-seni { position: relative; }
.sec-seni .sec-head h2 .sec-h-ic { color: #d4a04c; }
.sec-seni .hscroll { padding-bottom: 6px; }
.seni-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(120deg, rgba(212,160,76,.16), rgba(212,160,76,.05));
  border: 1px solid rgba(212,160,76,.35); color: #e8c284;
  font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 999px;
}

/* ═══════════ نسخه ۷.۰ — صفحه ۴۰۴ اختصاصی + پنل مدیریت سریع + اسکرول بی‌نهایت ردیفی ═══════════ */

/* ── صفحه ۴۰۴ اختصاصی ── */
.nf404 { padding-bottom: 20px; }
.nf404-hero { position: relative; text-align: center; padding-top: 6px; }
.nf404-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.nf404-hero .notfound-code { font-size: 108px; letter-spacing: 2px; }
.nf404-hero h1 { font-size: 22px; margin: 10px 0 6px; }
.nf404-hero p { color: var(--muted); margin: 0 0 4px; }
.nf404-hint { font-size: 13px; opacity: .8; }
.nf404-search {
  display: flex; align-items: center; gap: 10px;
  max-width: 520px; margin: 22px auto 0; padding: 8px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.nf404-search input[type="search"] {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 14px;
}
.nf404-search-ic { color: var(--muted); display: inline-flex; }
.nf404-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.nf404-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.nf404-popular { margin-top: 46px; }
.nf404-pop-ic { color: var(--accent); display: inline-flex; vertical-align: -3px; margin-inline-end: 6px; }
.nf404-rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; }
.nf404-rail .hcard { flex: 0 0 auto; width: 148px; }
.nf404-more { text-align: center; margin-top: 6px; }
.nf404-more .btn { display: inline-flex; align-items: center; gap: 7px; }

/* ── پنل مدیریت سریع ── */
.quick-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-tab {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.quick-tab:has(input:checked) { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.quick-tab input { accent-color: var(--accent); width: 14px; height: 14px; }
body.admin .quick-search input[type="search"] { max-width: 420px; }

/* ═══════════ نسخه ۷.۱.۱ — بهینه‌سازی عملکرد رندر و تجربه کاربری ═══════════ */

/* scroll-padding: جلوگیری از پنهان شدن لنگرها (#rating، #popular، #comments) زیر هدر چسبان */
html { scroll-padding-top: 72px; }

/* content-visibility: تعویق رندر کارت‌ها/ردیف‌های خارج از دید →
   رندر اولیه و روانی اسکرول بسیار سریع‌تر در صفحات پربازدید (آرشیو آهنگ‌ها، خواننده، برچسب).
   کلیدواژه auto در contain-intrinsic-size اندازه واقعی پس از اولین رندر را به‌خاطر می‌سپارد
   تا پرش اسکرول‌بار پیش نیاید. */
.song-card, .playlist-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 264px;
}
.track-row {
  content-visibility: auto;
  contain-intrinsic-size: auto 58px;
}

/* شیمر ظریف کنار پیام «در حال آوردن آهنگ‌های بیشتر…» برای بازخورد بهتر هنگام اسکرول بی‌نهایت */
@keyframes navaShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.loadmore.loading .loadmore-status::before {
  content: ""; display: inline-block; width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(90deg, var(--border) 25%, var(--accent) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: navaShimmer 1s linear infinite;
  vertical-align: -2px; margin-inline-end: 7px;
}

/* احترام به ترجیح کاهش حرکت کاربر */
@media (prefers-reduced-motion: reduce) {
  .loadmore.loading .loadmore-status::before { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   v7.3.6 — بهبود UI: انیمیشن‌های بیشتر، افکت‌های تعاملی، فیلترهای جدید
   ═══════════════════════════════════════════════════════════════ */

/* افکت تعاملی برای chipهای فیلتر (با scale و glow) */
.mood-chip {
    transition: transform .25s cubic-bezier(.32,.72,.25,1), border-color .22s ease, background-color .22s ease, color .22s ease, box-shadow .25s ease;
}
.mood-chip[data-on="1"] {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffd60a));
    color: #000 !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
    font-weight: 700;
}

/* انیمیشن ورود برای کارت‌های آهنگ (stagger) */
@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.cards-grid > .song-card {
    animation: cardSlideUp .4s cubic-bezier(.32,.72,.25,1) backwards;
}
.cards-grid > .song-card:nth-child(1) { animation-delay: .02s; }
.cards-grid > .song-card:nth-child(2) { animation-delay: .06s; }
.cards-grid > .song-card:nth-child(3) { animation-delay: .10s; }
.cards-grid > .song-card:nth-child(4) { animation-delay: .14s; }
.cards-grid > .song-card:nth-child(5) { animation-delay: .18s; }
.cards-grid > .song-card:nth-child(6) { animation-delay: .22s; }
.cards-grid > .song-card:nth-child(7) { animation-delay: .26s; }
.cards-grid > .song-card:nth-child(8) { animation-delay: .30s; }
.cards-grid > .song-card:nth-child(n+9) { animation-delay: .34s; }

/* هاور کارت آهنگ با lift و gradient border */
.song-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,.45), 0 0 0 1px var(--accent);
}
.song-card:hover .card-cover::after {
    opacity: .3;
    background: linear-gradient(180deg, transparent 40%, rgba(255,159,10,.25) 100%);
}

/* انیمیشن pulse برای دکمه پخش */
@keyframes playPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.card-play.is-current {
    animation: playPulse 1.6s ease-in-out infinite;
}

/* حالت hover برای نوار کناری (sidebar) کلیه دکمه‌های سراسری */
.nav a {
    position: relative;
    overflow: hidden;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width .25s cubic-bezier(.32,.72,.25,1), left .25s cubic-bezier(.32,.72,.25,1);
}
.nav a:hover::after,
.nav a.active::after {
    width: 100%;
    left: 0;
}

/* انیمیشن hover برای rank cards (نمودار/chart) */
.rank-card { transition: transform .3s cubic-bezier(.32,.72,.25,1), box-shadow .3s ease, border-color .25s ease; }
.rank-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 24px rgba(0,0,0,.3); }

/* بجک امتیاز آهنگ با درخشش */
.star-display {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 999px;
    background: color-mix(in srgb, #d29922 12%, transparent);
    border: 1px solid color-mix(in srgb, #d29922 40%, transparent);
    font-size: 13px; font-weight: 700;
}
.star-display svg { fill: #d29922; }

/* pulse روی آیکون‌های لایو */
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #3fb950; animation: livePulse 1.5s ease-in-out infinite;
}

/* بهبود mood-filter-wrap با hover effect */
.mood-filter-wrap {
    padding: 8px 0;
    transition: background-color .2s ease;
}
.mood-filter-wrap:hover .mood-filter-label {
    color: var(--accent);
}

/* بهبود استایل mood-chip با ابعاد بزرگ‌تر */
.mood-chip {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    border: 1px solid var(--border, var(--line));
    background: rgba(255,255,255,.02);
    color: var(--text);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
    cursor: pointer;
    user-select: none;
}

/* شیمی رنگ دکمه download با glow هنگام hover */
.btn-dl:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* انیمیشن spin برای آیکون‌های loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.icon-spin { animation: spin 1s linear infinite; }

/* فیلتر sticky جدید — sticky در بالای صفحه با فیلترهای بیشتر */
@media (min-width: 768px) {
    .filter-bar-sticky {
        position: sticky; top: 0; z-index: 20;
        background: rgba(13,17,23,.92);
        backdrop-filter: blur(10px);
        padding: 12px 16px;
        border-bottom: 1px solid var(--border, var(--line));
        margin: -12px -16px 16px;
    }
}

/* بهبود حالت focus برای دسترسی‌پذیری */
.btn:focus-visible,
.mood-chip:focus-visible,
.song-card:focus-visible,
.artist-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* انیمیشن fadeIn برای محتوای لود‌شده با AJAX */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .35s ease-out; }

/* ریسپانسیو mood-filter برای موبایل */
@media (max-width: 600px) {
    .mood-filter-wrap {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mood-filter-wrap::-webkit-scrollbar { display: none; }
    .mood-chips {
        display: inline-flex;
        gap: 6px;
    }
}

/* بهبود ظاهر playlist card */
.playlist-card {
    transition: transform .3s cubic-bezier(.32,.72,.25,1), box-shadow .3s ease, border-color .25s ease;
}
.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

/* توضیحات بالای فیلتر */
.mood-filter-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-inline-end: 8px;
    transition: color .2s ease;
}


/* ═════════════════════════════════════════════════════════════════
   v7.3.17 — افزودنی‌ها: کلاس‌های صفحه‌های تازه (دسته‌بندی سئو، ساخت پلی‌لیست،
   پلی‌لیست مهمان، بلاک‌های محتوایی، آفلاین و ...) بر پایه استایل سالم ۷.۳.۱۲
   ═════════════════════════════════════════════════════════════════ */

.hero .tpl-w-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}

.hero .tpl-w-actions.ta-right {
  justify-content: flex-start;
}

.hero .tpl-w-actions.ta-left {
  justify-content: flex-end;
}

.tpl-w-kicker.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tpl-w-spacer {
  background: transparent;
}

.tpl-w-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  max-width: 820px;
}

.tpl-w-image {
  border-radius: 14px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cat-seo-intro {
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 14px;
  padding: 14px 18px;
  margin: 12px 0 18px;
  color: var(--muted, #9aa);
  font-size: 14.5px;
  line-height: 1.9;
}

.cat-seo-intro p {
  margin: 0;
}

.cat-seo-links {
  margin: 26px 0 10px;
}

.cat-seo-links h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.admin-form-row {
  grid-template-columns: 1fr;
}

.builder-col {
  min-width: 0; display: flex; flex-direction: column;
}

.builder-grid > .builder-col > .builder-box {
  flex: 1;
}

.b-up, .b-down {
  flex-shrink: 0;
}

.b-up:disabled, .b-down:disabled {
  opacity: .35; cursor: default;
}

.faq-q {
  font-weight: 700; font-size: 14.5px;
}

.gpl-section {
  margin-bottom: 34px;
}

.gpl-cover {
  width: 84px; height: 84px; border-radius: 14px; object-fit: cover;
  background: var(--card-2); flex-shrink: 0; border: 1px solid var(--border);
}

.gpl-card-body {
  min-width: 0;
}

.contact-captcha {
  flex-wrap: wrap;
}

.sec-nostalgia {
  position: relative;
}

.tpl-w-songs {
  min-width: 0;
}

.tpl-w-stats-in {
  display: flex; justify-content: space-around; align-items: center; gap: 14px; text-align: center; flex-wrap: wrap;
}

.tpl-w-stats-in b {
  display: block; font-size: 22px; font-weight: 800; line-height: 1.3;
}

.tpl-w-stats-in span {
  font-size: 12px; opacity: .78;
}

.logo-text {
  font-weight: 800; letter-spacing: -.3px;
}

.offline-page {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.q-count {
  font-size: 12px; color: var(--muted); font-weight: 600;
}

.cat-filter {
  margin-bottom: 14px;
}

/* ── تکمیلی ۲: کلاس‌های کوچک باقی‌مانده ── */
.sec-plain { margin-bottom: 30px; }
.plist-chips { margin-bottom: 14px; }
.plist-chips .mood-chip.user svg { width: 14px; height: 14px; }

/* ═══════════ فیلترهای کرکره‌ای حرفه‌ای (نسخه ۷.۳.۲۰) ═══════════ */
.facc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 6px 0 22px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.facc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: 14.5px;
  transition: background .2s ease;
}
.facc-head:hover { background: var(--card-2); }
.facc-head-ic {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-grad); color: #fff; flex-shrink: 0;
}
.facc-head-chv { margin-inline-start: auto; color: var(--muted); transition: transform .3s ease; }
.facc.closed .facc-head-chv { transform: rotate(-90deg); }
.facc-badge {
  min-width: 22px; height: 22px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--accent-grad); color: #fff;
  font-size: 11.5px; font-weight: 800;
}
.facc-body { border-top: 1px solid var(--border); }
.facc.closed .facc-body { display: none; }
.facc-sec { border-bottom: 1px solid var(--border); }
.facc-sec:last-child { border-bottom: 0; }
.facc-sec-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: start;
  transition: background .2s ease;
}
.facc-sec-head:hover { background: var(--card-2); }
.facc-sec-head > span:first-child { color: var(--muted); font-weight: 800; }
.facc-sec.open > .facc-sec-head > span:first-child { color: var(--accent); }
.facc-badge.sm { min-width: 19px; height: 19px; font-size: 10.5px; padding: 0 5px; }
.facc-sec .facc-chv { margin-inline-start: auto; color: var(--muted); transition: transform .3s ease; flex-shrink: 0; }
.facc-sec.open .facc-chv { transform: rotate(180deg); }
.facc-sec-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .34s ease;
}
.facc-sec.open .facc-sec-body { max-height: 520px; overflow-y: auto; }
.facc-sec-inner { padding: 2px 14px 14px; }
.facc-sec-inner .mood-chips { gap: 7px; }
.facc-sec-inner .mood-chip { font-size: 12px; padding: 6px 11px; }
@media (max-width: 600px) {
  .facc-head { padding: 11px 13px; font-size: 13.5px; }
  .facc-sec.open .facc-sec-body { max-height: 420px; }
}

/* ═══════════ بهبودهای UI/UX — نسخه ۷.۳.۲۱ ═══════════ */

/* دکمه «افزودن به پلی‌لیست» روی کارت آهنگ — کنار دکمه پخش، در گوشه پایین */
.card-addpl {
  position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 10, 16, .6); color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; transform: translateY(8px) scale(.94);
  transition: opacity .18s ease, transform .3s var(--ease-spring), background .2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.card-addpl svg { width: 16px; height: 16px; }
.song-card:hover .card-addpl, .card-addpl:focus-visible, .card-addpl.on { opacity: 1; transform: translateY(0); }
.card-addpl:hover { background: rgba(10, 10, 16, .88); transform: scale(1.08); }
.card-addpl.on { background: var(--accent-grad); border-color: transparent; }
@media (hover: none) { .card-addpl { opacity: 1; transform: none; } }
/* وقتی پخش شروع شده، دکمه‌های فرعی کمی بالا بروند تا با دکمه پخش تداخل نکنند */
.song-card:hover .card-fav { transform: translateY(0); }

/* بازخورد لمسی کارت‌ها */
.song-card:active { transform: scale(.975); transition: transform .12s ease; }

/* فوکوس واضح برای دسترس‌پذیری بهتر */
.facc-head:focus-visible, .chip:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px;
}

/* انتخاب متن با رنگ برند */
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }

/* اسکرول‌بار لطیف‌تر */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius: 8px; border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 70%, transparent); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* لرزش لمسی روشن‌تر در موبایل */
* { -webkit-tap-highlight-color: transparent; }

/* مودال پلی‌لیست‌پیکر: اسکرول نرم و لیست بلندتر */
.pl-list { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; }

/* انتقال نرم اعضای پلی‌لیست و فیلترها */
.facc-body { transition: max-height .32s ease, opacity .25s ease; }

/* تصاویر کاور: جلوگیری از پرش لی‌اوت */
.card-cover img, .artist-img img { background: var(--card-2); }

/* ═══════════════════════════════════════════════════════════════
   نسخه ۷.۵ — انیمیشن نرم‌تر کارت‌ها + هاورهای تکمیلی + لزی‌لودینگ
   ═══════════════════════════════════════════════════════════════ */

/* ── ۱) نرم‌سازی انیمیشن کارت‌ها (بدون پرش، با سایه‌ی لطیف) ── */
.song-card,
.artist-card,
.playlist-card,
.album-card {
  transition:
    transform .34s cubic-bezier(.22, .68, .34, 1),
    border-color .26s ease,
    background-color .26s ease,
    box-shadow .34s cubic-bezier(.22, .68, .34, 1);
  /* v7.6: will-change حذف شد — روی هر کارت یک لایه کامپوزیتور می‌ساخت
     (در لیست‌های طولانی = صدها لایه، مصرف رم بالا و لگ اسکرول) */
}
.song-card:hover,
.artist-card:hover,
.playlist-card:hover,
.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
}
.song-card:active,
.artist-card:active,
.playlist-card:active,
.album-card:active {
  transform: translateY(-1px);
  transition-duration: .12s;
}
.card-cover img,
.artist-img img {
  transition: transform .6s cubic-bezier(.22, .68, .34, 1), opacity .3s ease;
}
.song-card:hover .card-cover img { transform: scale(1.055); }
/* عنوان کارت با هاور کمی روشن‌تر می‌شود */
.song-card .card-title,
.artist-card .artist-name { transition: color .24s ease; }
.song-card:hover .card-title,
.artist-card:hover .artist-name { color: var(--accent); }

/* ── ۲) نشان امتیاز کاربران روی کاور ── */
.card-rate {
  position: absolute; top: auto; bottom: 8px; inset-inline-end: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  /* v7.6: پس‌زمینه توپیر به‌جای backdrop-filter — روی هر کارت یک سطح
     blur بود که با ده‌ها کارت در دید، اسکرول را سنگین می‌کرد */
  background: rgba(10, 12, 22, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fde68a; font-size: 11px; font-weight: 700; line-height: 1;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.22, .68, .34, 1), opacity .3s ease;
}
.card-rate b { color: #fff; font-weight: 700; letter-spacing: .2px; }
.song-card:hover .card-rate { transform: translateY(-1px); }

/* ── ۳) هاورهایی که نبودند ── */
/* چیپ‌های دسته‌بندی پلی‌لیست */
.plist-chips .mood-chip b { transition: color .22s ease; }
/* آیتم‌های صفحه‌بندی */
a.pg-item:hover { transform: translateY(-2px); }
a.pg-item:active { transform: translateY(0); }
/* لینک‌های فوتر — حرکت نرم‌تر */
.footer-links a { transition: color .22s ease, opacity .22s ease, transform .26s cubic-bezier(.22, .68, .34, 1); }
.footer-links a svg { transition: opacity .22s ease, color .22s ease; }
/* آیکون‌های شبکه اجتماعی فوتر */
.footer-social .soc { transition: color .22s ease, transform .3s cubic-bezier(.22, .68, .34, 1), box-shadow .3s ease; }
/* لوگو هدر — میکروتعامل */
.topbar .logo .logo-mark { transition: transform .35s cubic-bezier(.34, 1.4, .44, 1); }
.topbar .logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
/* دکمه‌های عمومی — پاسخ لمسی سریع‌تر */
.btn:active, .dl-btn:active, .icon-btn:active {
  transform: translateY(0) scale(.97);
  transition-duration: .1s;
}
/* ردیف‌های ترک — نرم‌تر */
.track-row { transition: background-color .22s ease; }
.track-dl { transition: color .2s ease, transform .24s cubic-bezier(.22, .68, .34, 1); }
.track-dl:hover { color: var(--accent); transform: translateY(-2px); }
/* کارت‌های حال‌وهوا و چیپ‌ها */
.mood-tile, .mood-chip { transition: transform .32s cubic-bezier(.22, .68, .34, 1), box-shadow .32s ease, border-color .22s ease, color .22s ease, background-color .22s ease; }
/* دکمه پخش کارت — اسپرینگ لطیف‌تر */
.card-play, .card-open, .rank-play, .track-play {
  transition: opacity .2s ease, transform .34s cubic-bezier(.34, 1.25, .44, 1);
}

/* ── ۴) نمایان‌سازی المان‌ها (نسخه ۷.۶) ──
   content-visibility از سکشن‌ها حذف شد (با اسکرول، layout تازه هر بخش
   وسط حرکت انجام می‌شد و پرش اسکرول‌بار می‌ساخت). همه کارت‌ها از سرور
   با rv-in می‌آیند و همیشه نمایان‌اند — انیمیشن اسکرولی وجود ندارد. */

/* ── ۵) احترام به کاهش انیمیشن (دسترس‌پذیری) ── */
@media (prefers-reduced-motion: reduce) {
  .song-card, .artist-card, .playlist-card, .album-card,
  .card-cover img, .artist-img img, .mood-tile, .mood-chip,
  .card-play, .card-open, .rank-play, .track-play, .pg-item {
    transition: none !important;
  }
  .song-card:hover, .artist-card:hover, .playlist-card:hover, .album-card:hover,
  .card-cover img { transform: none !important; }
}

/* ── ۶) کد خام تبلیغات iframe (A-Ads) ── */
.ad-raw-sticky > div { font-size: initial; line-height: initial; }

/* ── ۷) فیکس هم‌پوشانی تبلیغ چسبیده با نوار پلیر (v7.6) ──
   کد A-Ads با استایل inline روی bottom:0 سنجیده شده است؛ وقتی پلیر
   باز است، تبلیغ بالای نوار پلیر می‌رود و داخل صفحه پخش مخفی می‌شود */
body.has-player .ad-raw-sticky div[style*="bottom:0"],
body.has-player .ad-raw-sticky div[style*="bottom: 0"] {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}
body.sheet-open .ad-raw-sticky,
body.sheet-open .ad-sticky,
body.sheet-open .ad-raw-sticky > div {
  display: none !important;
}

/* ── ۸) نشان ریمیکس روی کاور کارت آهنگ (v7.6) ── */
.plist-badge.remix {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  inset-inline-end: auto; inset-inline-start: 10px;
}
