/*
Theme Name:         TehMusic
Theme URI:          https://Teh-music.com
Author:             Amin Kazemi™ Co
Author URI:         https://limooweb.com/
Description:        ته موزیک
Version:            2.0
Text Domain:        tehmusic
*/
/* ==========================================================================
   base.css  |  ریست و استایل‌های پایه
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-FD-VF.woff2') format('woff2-variations'),
       url('assets/fonts/Vazirmatn-FD-VF.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: 95px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* زمان‌ها همیشه چپ‌به‌راست نمایش داده شوند (۴:۰۸) */
.p-seek .t, .track .td, .meta .num { direction: ltr; unicode-bidi: isolate; }

/* ==========================================================================
   variables.css  |  متغیرهای رنگ، فونت و اندازه (حالت روشن)
   رنگ‌ها از لوگو گرفته شده: سرمه‌ای #001689 و صورتی #FEAEBB
   حالت تیره در dark.css همین متغیرها را بازتعریف می‌کند.
   ========================================================================== */
:root {
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;

  /* رنگ‌های ثابت برند (در حالت تیره تغییر نمی‌کنند) */
  --c-navy: #001689;
  --c-navy-deep: #00106E;
  --c-pink: #FEAEBB;
  --c-pink-light: #FFD9DF;
  --c-blue: #2F45C8;

  /* سطوح و متن */
  --bg: #FFFFFF;
  --bg-soft: #F5F6FC;
  --surface: #FFFFFF;
  --line: #E3E6F3;
  --ink: #0B1033;
  --ink-2: #474E73;
  --ink-3: #868CAB;

  /* رنگ تعاملی */
  --brand: #001689;
  --accent: #001689;
  --on-accent: #FFFFFF;
  --pink-soft: #FFF0F3;
  --pink-line: #FBC9D2;

  /* منو، فوتر و پلیر */
  --menu-bg: #001689;
  --menu-ink: rgba(255, 255, 255, .82);
  --footer-bg: #001689;
  --footer-ink: rgba(255, 255, 255, .78);
  --on-navy-line: rgba(255, 255, 255, .14);
  --player-bg: #001689;

  --ok: #0F7B4F; --ok-soft: #E8F6EF; --ok-line: #B7E1CC;
  --err: #C0243B; --err-soft: #FDECEF; --err-line: #F4BFC8;

  --shadow: 0 1px 3px rgba(0, 22, 137, .14);

  /* اندازه‌ها */
  --wrap: 1240px;
  --side: 330px;
  --gap: 32px;
  --gutter: 16px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --cover: 300px;
}
/* ==========================================================================
   layout.css  |  عرض صفحه، دو ستون و ساید‌بار
   ========================================================================== */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page { padding-block: 28px 8px; display: grid; gap: 28px; }

/* دو ستون: محتوا + ساید‌بار */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: var(--gap);
  align-items: start;
}
.col-main { display: grid; gap: 22px; min-width: 0; }
.sidebar { display: grid; gap: 20px; min-width: 0; }

.page > * { min-width: 0; }
/* ==========================================================================
   header.css  |  هدر نازک (لوگو، جستجو، دکمه‌ها) و منوی اصلی
   ========================================================================== */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 58px; padding-block: 8px; flex-wrap: wrap;
}

.logo { display: flex; align-items: center; height: 36px;margin-inline-start: auto;  }
.logo img { height: 45px; width: auto; }
.logo .logo-dark { display: none; }

.search { flex: 1; max-width: 480px; min-width: 0; position: relative; margin-inline: auto 0; }
.search input {
  width: 100%; height: 40px; padding-inline: 44px 16px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink); font-size: 14px;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.search .i {
  position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%;
  color: var(--ink-3); pointer-events: none;
}

.top-acts { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }


.menu-btn {
  display: none; width: 44px; height: 44px; flex: none;
  background: var(--menu-bg); border-color: var(--menu-bg); color: #fff;
  --bar2: var(--wp--preset--color--light-green-cyan);
}
.menu-btn:hover { background: var(--menu-bg); border-color: var(--menu-bg); color: #fff; filter: brightness(1.2); }
.menu-btn .i { width: 26px; height: 26px; }

/* ==========================================================================
   منوی دسکتاپ + زیرمنو (dropdown)
   ========================================================================== */
.menu { padding-top: 16px; }
.menu-list {
  display: flex; gap: 4px; padding: 8px 10px;
  border-radius: var(--r-l); background: var(--menu-bg);
}
.menu-list > li { position: relative; }
.menu-list > li > a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--menu-ink);
  transition: background .15s, color .15s;
}
.menu-list > li > a:hover, .menu-list > li:focus-within > a, .menu-list > li.is-open > a { color: #fff; background: rgba(255, 255, 255, .12); }
.menu-list > li > a[aria-current] { background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); }
.menu-list > li > a .i { width: 14px; height: 14px; opacity: .8; transition: rotate .2s; }
.menu-list > li.has-sub:hover > a .i, .menu-list > li.has-sub:focus-within > a .i, .menu-list > li.is-open > a .i { rotate: 180deg; }
.menu :focus-visible { outline-color: var(--wp--preset--color--light-green-cyan); }

.sub {
  position: absolute; z-index: 30; top: 100%; inset-inline-start: 0;
  min-width: 232px; margin-top: 10px; padding: 8px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 20px 44px -14px rgba(0, 16, 110, .35);
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity .18s, translate .18s, visibility 0s .18s;
}
.sub::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; } /* پل نامرئی تا با حرکت ماوس بسته نشود */
.menu-list > li:nth-last-child(-n+4) > .sub { inset-inline-start: auto; inset-inline-end: 0; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.is-open > .sub { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.menu .sub a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.menu .sub a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--light-green-cyan); transition: transform .15s; }
.menu .sub a:hover { background: var(--pink-soft); color: var(--brand); }
.menu .sub a:hover::before { transform: scale(1.5); }

/* ==========================================================================
   منوی کشویی موبایل (drawer)
   پنل سرمه‌ای از سمت راست باز می‌شود، آیتم‌ها پشت‌سرهم وارد می‌شوند
   و زیرمنوها به‌صورت چیپ باز می‌شوند.
   ========================================================================== */
html.menu-open { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s .45s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer :focus-visible { outline-color: var(--wp--preset--color--light-green-cyan); }
.drawer .logo-dark { display: block; }

.drawer-scrim {
  position: absolute; inset: 0; background: rgba(0, 8, 52, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s;
}
.drawer.is-open .drawer-scrim { opacity: 1; }

.drawer-panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(88vw, 390px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--menu-bg); color: #fff;
  border-start-end-radius: 32px; border-end-end-radius: 32px;
  translate: 100% 0; transition: translate .45s cubic-bezier(.22, 1, .36, 1);
}
.drawer.is-open .drawer-panel { translate: 0 0; }
.drawer-panel::after { /* حلقه لوگو به‌صورت تزئین */
  content: ""; position: absolute; inset-inline-end: -120px; bottom: -120px; width: 330px; height: 330px;
  border-radius: 50%; border: 46px solid var(--wp--preset--color--light-green-cyan); opacity: .1; pointer-events: none;
}
.drawer-panel > * { position: relative; z-index: 1; }

.d-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 10px; }
.d-close {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s, color .15s, rotate .3s;
}
.d-close:hover { background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); rotate: 90deg; }

.d-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 24px 16px; }
.d-item {
  border-bottom: 1px solid var(--on-navy-line);
  opacity: 0; translate: 28px 0; transition: opacity .4s, translate .5s cubic-bezier(.22, 1, .36, 1);
}
.drawer.is-open .d-item { opacity: 1; translate: 0 0; transition-delay: calc(var(--i, 0) * 45ms + 160ms); }
.d-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 15px 0; text-align: start; font-size: 21px; font-weight: 700; line-height: 1.5; color: #fff;
}
.d-link[aria-current] { color: var(--wp--preset--color--light-green-cyan); }
.d-link[aria-current] span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; border-radius: 50%; background: var(--wp--preset--color--light-green-cyan); }
.d-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); transition: background .2s, border-color .2s, rotate .3s; }
.d-plus::before, .d-plus::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 2px; border-radius: 1px; background: currentColor; translate: -50% -50%; }
.d-plus::after { rotate: 90deg; transition: rotate .3s; }
.d-item.is-open .d-plus { background: var(--wp--preset--color--light-green-cyan); border-color: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); rotate: 180deg; }
.d-item.is-open .d-plus::after { rotate: 0deg; }

.d-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s ease, visibility 0s .35s; }
.d-item.is-open .d-sub { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.d-sub-in { min-height: 0; overflow: hidden; }
.d-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 18px; }
.d-chip {
  padding: 5px 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #fff; transition: background .15s, color .15s, border-color .15s;
}
.d-chip:hover { background: var(--wp--preset--color--light-green-cyan); border-color: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); }
.d-chip.all { background: rgba(255, 255, 255, .12); border-color: transparent; }

.d-foot { display: grid; gap: 14px; padding: 12px 24px calc(22px + env(safe-area-inset-bottom, 0px)); }
.d-login { background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); }
.d-login:hover { filter: brightness(1.06); }
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.d-theme { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.d-theme:hover { color: #fff; }
.d-soc { display: flex; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.d-soc a:hover { color: var(--wp--preset--color--light-green-cyan); }

/* ==========================================================================
   footer.css  |  فوتر
   ========================================================================== */
.footer { margin-top: 48px; background: var(--footer-bg); color: var(--footer-ink); font-size: 14px; }
.footer :focus-visible { outline-color: var(--wp--preset--color--light-green-cyan); }
.footer .logo-light { display: none; }
.footer .logo-dark { display: block; }

.f-grid {
  display: grid; gap: 32px; padding-block: 44px 32px;
  grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr));
}
.f-about p { margin-top: 14px; line-height: 2; max-width: 46ch; }
.f-grid h4 { margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 700; }
.f-grid ul { display: grid; gap: 8px; }
.f-grid a:hover, .f-bottom a:hover { color: var(--wp--preset--color--light-green-cyan); }

.f-social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.f-social a {
  padding: 2px 14px; border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px; font-size: 13px; color: #fff;
}
.f-social a:hover { border-color: var(--wp--preset--color--light-green-cyan); color: var(--wp--preset--color--light-green-cyan); }

.f-contact li { display: flex; flex-direction: column; line-height: 1.7; }
.f-contact small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.f-contact b { font-weight: 500; color: #fff; direction: ltr; text-align: right; }

.f-bottom { border-top: 1px solid var(--on-navy-line); }
.f-bottom .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 24px; padding-block: 18px;
  font-size: 13px; color: rgba(255, 255, 255, .62);
}
.f-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
/* ==========================================================================
   components.css  |  اجزای کوچک و تکراری: دکمه، تگ، کاور، تب، صفحه‌بندی و ...
   ========================================================================== */

/* ---- عنوان بخش ---- */
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; line-height: 1.4; }
.h::before {
  content: ""; width: 15px; height: 15px; flex: none; border-radius: 50%;
  border: 3.5px solid var(--brand); background: var(--wp--preset--color--light-green-cyan);
}
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.more:hover { color: var(--brand); }
.more .i { width: 16px; height: 16px; }

/* ---- دکمه‌ها ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding-inline: 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: filter .15s, border-color .15s, color .15s, background .15s;
}
.btn-fill { background: var(--accent); color: var(--on-accent); }
.btn-fill:hover { filter: brightness(1.12); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { border-color: var(--brand); color: var(--brand); }
.btn-play { background: var(--ink); color: var(--bg); }
.btn-play:hover { filter: brightness(1.2); }
.btn-play .pc {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); display: grid; place-items: center;
}
.btn-play .pc .i { width: 14px; height: 14px; }
.btn-lg { height: 48px; }
.btn.is-on { background: var(--pink-soft); border-color: var(--pink-line); color: var(--brand); }
.btn.is-on .i { color: #D6336C; }

/* دکمه گرد پخش */
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.round-btn:hover { border-color: var(--brand); color: var(--brand); }
.round-btn .ic-pause { display: none; }
.round-btn.is-playing { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.round-btn.is-playing .ic-play { display: none; }
.round-btn.is-playing .ic-pause { display: block; }

/* ---- کاور ---- */
.cv { position: relative; display: block; overflow: hidden; background: var(--c-navy); }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.cv .ov {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 10, 60, .45); color: #fff; opacity: 0; transition: opacity .2s;
}
[data-item]:hover .cv .ov, .cv:focus-visible .ov, .cv.is-playing .ov { opacity: 1; }
.eq { display: none; gap: 4px; align-items: flex-end; height: 28px; }
.eq i { width: 5px; height: 100%; background: #fff; border-radius: 2px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.75s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.cv.is-playing .eq { display: flex; }
.cv.is-playing .ic-play { display: none; }

/* ---- تگ و اطلاعات ---- */
.tag {
  display: inline-block; padding: 0 12px; border-radius: 999px;
  background: var(--pink-soft); border: 1px solid var(--pink-line);
  color: var(--brand); font-size: 12px; font-weight: 600;
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12px; color: var(--ink-3); }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta .i { width: 14px; height: 14px; }

/* ---- تب‌ها ---- */
.tabs {
  display: flex; gap: 4px; padding: 4px; max-width: 100%;
  border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 3px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---- صفحه‌بندی ---- */
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager a {
  min-width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---- مسیر صفحه ---- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .i { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* ---- جای بنر تبلیغاتی ---- */
.ad  {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 90px;
    padding: 12px;
    border: 1.5px dashed var(--accent);
    border-radius: var(--r-m);
    background: var(--bg-soft);
    color: var(--ink-2);
    text-align: center;
}
.ad b { font-size: 14px; font-weight: 700; color: var(--ink); }
.ad small { font-size: 12px; color: var(--ink-3); direction: ltr; }
.ad em { position: absolute; inset-block-start: 8px; inset-inline-start: 12px; font-style: normal; font-size: 11px; color: var(--ink-3); }
.ad img { max-width: 100%; border-radius: var(--r-s); }

/* ---- پیام کوتاه و حالت خالی ---- */
.toast {
  position: fixed; inset-inline: 0; margin-inline: auto; bottom: 118px; z-index: 50;
  width: max-content; max-width: calc(100% - 32px);
  padding: 8px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600;
  opacity: 0; translate: 0 8px; pointer-events: none; transition: .25s;
}
.toast.on { opacity: 1; translate: 0 0; }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--r-l); }

/* ---- کارت ساده (جعبه با حاشیه) ---- */
.card { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); padding: 18px; }
.card .sec-h { margin-bottom: 10px; }
.card .h { font-size: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.card-head .h { font-size: 15px; }
.box { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.pill {
  padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font-size: 12px; white-space: nowrap;
}

/* ---- ردیف دکمه‌های علاقه‌مندی / پلی‌لیست / اشتراک (تک‌آهنگ و آلبوم) ---- */
.act-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.act-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 8px 12px;
  border-radius: var(--r-m); background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .15s;
}
.act-btn:hover { border-color: var(--brand); color: var(--brand); }
.act-btn .i { color: var(--ink-3); }
.act-btn.is-on { background: var(--pink-soft); border-color: var(--pink-line); color: var(--brand); }
.act-btn.is-on .i { color: #D6336C; }
.act-btn.instagram{ background: #ff5b7b; color:#fff; }
.act-btn.telegram{ background: #0693e3; color:#fff; }

/* ---- فرم‌ها ---- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding-inline: 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.9; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--pink-soft); }
.input.is-error { border-color: var(--err); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand);}

/* ---- هشدار ---- */
.alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-m);
  border: 1px solid var(--pink-line); background: var(--pink-soft); color: var(--ink-2); font-size: 14px; line-height: 1.9;
}
.alert b { color: var(--ink); }
.alert-ok { border-color: var(--ok-line); background: var(--ok-soft); }
.alert-err { border-color: var(--err-line); background: var(--err-soft); }

/* ---- نظرات ---- */
.comment { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 20px; }
.comment + .comment { border-top: 1px solid var(--line); }
.comment .av { width: 44px; height: 44px; }
.comment header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.comment b { font-size: 14px; font-weight: 700; }
.comment time { font-size: 12px; color: var(--ink-3); }
.comment p { margin-top: 4px; font-size: 14px; line-height: 2; color: var(--ink-2); }

/* ---- جدول ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: var(--bg-soft); color: var(--ink-2); font-size: 13px; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

/* ---- آکاردئون (سؤالات متداول) ---- */
.acc { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.acc + .acc { margin-top: 10px; }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; transition: rotate .2s; }
.acc[open] summary::after { rotate: -135deg; margin-top: 4px; }
.acc .acc-b { padding: 0 18px 16px; font-size: 14px; line-height: 2; color: var(--ink-2); }
/* ==========================================================================
   cards.css  |  کارت پست، کارت مربعی، لیست خوانندگان و پرپخش‌ها
   ========================================================================== */

/* ---- پست بزرگ (صفحه اصلی و بالای صفحه تک‌آهنگ / آلبوم) ---- */
.list { display: grid; gap: 22px; }
.post { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.post:hover, .post.is-current { border-color: var(--brand); }
.post-h { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.post-h::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 3px solid var(--brand); background: var(--wp--preset--color--light-green-cyan); }
.post-h h1, .post-h h2, .post-h h3 { font-size: 15px; font-weight: 700; line-height: 1.7; min-width: 0; }
.post-h a:hover { color: var(--brand); }
.post-b { display: grid; grid-template-columns: var(--cover) minmax(0, 1fr); gap: 24px; padding: 20px; align-items: start; }
.post .cv { width: var(--cover); height: var(--cover); border-radius: var(--r-m); }
.post .cv .ic-play { width: 44px; height: 44px; }
.info { display: flex; flex-direction: column; min-height: var(--cover); min-width: 0; }
.name { font-size: 22px; font-weight: 800; line-height: 1.5; }
.name em { font-style: normal; color: var(--brand); }
.name a:hover { color: var(--brand); }
.en { font-size: 13px; color: var(--ink-3); direction: ltr; text-align: right; }
.desc { margin-top: 12px; font-size: 14px; line-height: 2; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; }
.info .meta { margin-top: 14px; }
.pact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.pact .btn { flex: 1; min-width: 140px; height: 48px; }
.post-f { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.post-f a { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; }
.post-f .i { width: 16px; height: 16px; }

/* ---- کارت مربعی (مطالب مرتبط، آثار خواننده، ویژه) ---- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gcard { display: grid; gap: 10px; min-width: 0; }
.gcard .cv { aspect-ratio: 1; border-radius: var(--r-m); }
.gcard .cv .ic-play { width: 34px; height: 34px; }
.gcard .gt { min-width: 0; line-height: 1.6; }
.gcard .gt b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .gt b a:hover { color: var(--brand); }
.gcard .gt span { display: block; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .gtag { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---- لیست خوانندگان برتر ---- */
.singers li a { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.singers li + li a { border-top: 1px solid var(--line); }
.rk { width: 20px; text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.singers li:nth-child(-n+3) .rk { color: var(--brand); }
.av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; background: var(--wp--preset--color--light-green-cyan); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.singers .nm { font-size: 14px; font-weight: 600; line-height: 1.4; }
.singers small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.singers a:hover .nm { color: var(--brand); }

/* ---- پرپخش‌های هفته ---- */
.hot li button, .hot li a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; text-align: start; }
.hot li + li button, .hot li + li a { border-top: 1px solid var(--line); }
.hot .cv { width: 46px; height: 46px; border-radius: 9px; flex: none; }
.hot .tx { flex: 1; min-width: 0; }
.hot .nm { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot small { display: block; font-size: 12px; color: var(--ink-3); }
.hot .go { color: var(--ink-3); }
.hot li:hover .nm, .hot li:hover .go { color: var(--brand); }

/* ---- سبک‌ها ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 2px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chips a:hover { background: var(--pink-soft); border-color: var(--pink-line); color: var(--brand); }
/* ==========================================================================
   player.css  |  پلیر ثابت پایین صفحه
   ========================================================================== */
.player {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: var(--player-bg); color: #fff;
  border-top: 1px solid var(--on-navy-line);
  padding: 12px var(--gutter);
}
.player :focus-visible { outline-color: var(--wp--preset--color--light-green-cyan); }
.player-in {
  max-width: var(--wrap); margin-inline: auto;
  display: grid; align-items: center; gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
}
.p-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-track .cv { width: 52px; height: 52px; border-radius: var(--r-s); flex: none; }
.p-track .tx { display: grid; min-width: 0; line-height: 1.5; }
.p-track b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-track span { font-size: 12px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-center { display: grid; gap: 4px; min-width: 0; }
.p-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.p-ctl button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; opacity: .85; }
.p-ctl button:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.p-ctl .main { width: 46px; height: 46px; background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); opacity: 1; }
.p-ctl .main:hover { background: var(--wp--preset--color--light-green-cyan); filter: brightness(1.08); }
.p-ctl .main .i { width: 24px; height: 24px; }

.p-seek { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.p-seek .t { width: 36px; text-align: center; }

/* نوار پیشرفت / صدا */
.bar { --p: 0; position: relative; flex: 1; height: 18px; cursor: pointer; touch-action: none; }
.bar::before { content: ""; position: absolute; inset-inline: 0; top: 7px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.bar .fill { position: absolute; inset-inline-end: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--wp--preset--color--light-green-cyan); width: calc(var(--p) * 100%); }
.bar .dot {
  position: absolute; top: 3px; inset-inline-end: calc(var(--p) * 100% - 6px);
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(254, 174, 187, .35); opacity: 0; transition: opacity .15s;
}
.bar:hover .dot, .bar:focus-visible .dot { opacity: 1; }

.p-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.p-side button, .p-side a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; opacity: .85; }
.p-side button:hover, .p-side a:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.p-side .bar { flex: none; width: 96px; }

/* آیکن‌های دکمه‌ها */
.p-ctl .main .ic-pause { display: none; }
.p-ctl .main.is-playing .ic-play { display: none; }
.p-ctl .main.is-playing .ic-pause { display: block; }
.p-side .ic-mute { display: none; }
.p-side .is-muted .ic-vol { display: none; }
.p-side .is-muted .ic-mute { display: block; }
/* ==========================================================================
   pages/home.css  |  صفحه اصلی: بخش ویژه
   ========================================================================== */
.feat { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fcard { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-m); color: #fff; text-align: start; }
.fcard .cv { position: absolute; inset: 0; transition: transform .5s; }
.fcard:hover .cv { transform: scale(1.05); }
.fcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 8, 52, .88), rgba(0, 8, 52, 0) 58%); }
.fcard .txt { position: absolute; inset-inline: 12px; bottom: 11px; z-index: 1; display: grid; line-height: 1.5; }
.fcard b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard span { font-size: 12px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .pp {
  position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy);
  opacity: 0; transform: translateY(-4px); transition: .2s;
}
.fcard .pp .i { width: 18px; height: 18px; }
.fcard:hover .pp, .fcard:focus-visible .pp { opacity: 1; transform: none; }
.fcard .fl { position: absolute; inset: 0; z-index: 1; }
.fcard .pp { z-index: 2; cursor: pointer; }
.fcard .txt { pointer-events: none; }
@media (hover: none) { .fcard .pp { opacity: 1; transform: none; } }
/* ==========================================================================
   pages/single.css  |  صفحه تک‌آهنگ: لینک‌های دانلود، متن ترانه، دکمه‌ها
   ========================================================================== */

/* ---- لینک‌های دانلود 128 و 320 ---- */
.dl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; }
.dl-row + .dl-row { border-top: 1px solid var(--line); }
.q-badge {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--c-navy); background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy);
  font-size: 17px; font-weight: 800; line-height: 1;
}
.dl-row.hq .q-badge { background: var(--c-navy); color: var(--wp--preset--color--light-green-cyan); }
.dl-row b { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; }
.dl-row small { display: block; font-size: 12px; color: var(--ink-3); }
.dl-row .btn { min-width: 132px; }

/* ---- متن ترانه ---- */
.lyrics-body { position: relative; padding: 20px 24px 8px; font-size: 15px; line-height: 2.3; color: var(--ink); max-height: 300px; overflow: hidden; }
.lyrics-body p + p { margin-top: 18px; }
.lyrics-body.is-collapsed::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 96px; pointer-events: none;
  background: linear-gradient(to top, var(--surface), transparent);
}
.lyrics.is-open .lyrics-body { max-height: none; }
.lyrics.is-open .lyrics-body::after { display: none; }
.lyrics-more { display: flex; justify-content: center; padding: 8px 20px 18px; }
.lyrics-more .btn { height: 38px; }
.lyrics-more .i { transition: rotate .2s; }
.lyrics.is-open .lyrics-more .i { rotate: 180deg; }
.lyrics-credit { padding: 0 24px 16px; font-size: 12px; color: var(--ink-3); }

/* ---- برچسب‌ها ---- */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; }
.tags span { font-size: 13px; color: var(--ink-3); }
.tags a { padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.tags a:hover { background: var(--bg-soft); border: 1px solid var(--accent); color: var(--brand); }

/* ---- دکمه همه آهنگ‌های خواننده ---- */
.cta-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.cta-card .av { width: 64px; height: 64px; }
.cta-card .tx { flex: 1; min-width: 0; line-height: 1.6; }
.cta-card b { display: block; font-size: 16px; font-weight: 800; }
.cta-card small { color: var(--ink-3); font-size: 13px; }
/* ==========================================================================
   pages/album.css  |  صفحه آلبوم: لیست ترک‌ها
   ========================================================================== */
.album-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.album-dl .btn { flex: 1; min-width: 150px; height: 48px; }

/* ---- ترک‌ها ---- */
.track { display: grid; gap: 14px; align-items: center; grid-template-columns: 28px 44px minmax(0, 1fr) auto auto; padding: 12px 20px; border-top: 1px solid var(--line); transition: background .15s; }
.track:first-child { border-top: 0; }
.track:hover { background: var(--bg-soft); }
.track.is-current { background: var(--pink-soft); }
.track .n { text-align: center; font-size: 14px; color: var(--ink-3); }
.track .tt { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.is-current .tt { color: var(--brand); }
.track .td { font-size: 12px; color: var(--ink-3); }
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 14px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; transition: filter .15s;
}
.dl-btn:hover { filter: brightness(1.12); }
.dl-btn .i { width: 18px; height: 18px; }
.dl-btn.alt { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.dl-btn.alt:hover { border-color: var(--brand); color: var(--brand); filter: none; }
.track .dls { display: flex; gap: 8px; }

.about p { font-size: 14px; line-height: 2.1; color: var(--ink-2); }
/* ==========================================================================
   pages/artist.css  |  صفحه خواننده
   ========================================================================== */
.a-hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-soft); }
.a-deco {
  position: absolute; inset-inline-end: -80px; top: -100px; width: 320px; height: 320px; border-radius: 50%;
  border: 34px solid var(--c-navy); background: var(--wp--preset--color--light-green-cyan); opacity: .18; pointer-events: none;
}
.a-in { position: relative; display: flex; align-items: center; gap: 28px; padding: 28px; }
.a-av { width: 156px; height: 156px; flex: none; overflow: hidden; border-radius: 50%; border: 5px solid var(--surface); box-shadow: 0 0 0 3px var(--c-navy); background: var(--wp--preset--color--light-green-cyan); }
.a-av img { width: 100%; height: 100%; object-fit: cover; }
.a-main { min-width: 0; flex: 1; }
.a-main h1 { font-size: 28px; font-weight: 800; line-height: 1.4; }
.a-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 14px; }
.a-stats div { display: grid; line-height: 1.4; }
.a-stats b { font-size: 20px; font-weight: 800; }
.a-stats span { font-size: 12px; color: var(--ink-3); }
.a-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.a-act .btn { height: 44px; }

.bio p { font-size: 14px; line-height: 2.1; color: var(--ink-2); }
.bio p + p { margin-top: 10px; }
.works-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.works-head .sec-h { margin: 0; }

/* بخش‌های آثار (taxonomy-singer) */
.a-act .btn .i, .a-act .btn svg { width: 18px; height: 18px; flex: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.col-main > nav.chips { margin-top: -2px; }

/* ==========================================================================
   pages/ui-elements.css  |  فقط برای صفحه راهنمای ui-elements.html
   ========================================================================== */
.ui-intro { display: grid; gap: 14px; }
.ui-intro h1 { font-size: 28px; font-weight: 800; line-height: 1.5; }
.ui-intro p { color: var(--ink-2); max-width: 70ch; }
.ui-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-nav a { padding: 2px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ui-nav a:hover { background: var(--pink-soft); border-color: var(--pink-line); color: var(--brand); }

.ui-sec { display: grid; gap: 18px; scroll-margin-top: 80px; }
.ui-sec > .h { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.demo { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.demo-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.demo-h h3 { font-size: 15px; font-weight: 700; }
.demo-h p { font-size: 13px; color: var(--ink-3); }
.demo-b { padding: 20px; display: grid; gap: 16px; min-width: 0; }
.demo-b.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.demo-b.flush { padding: 0; gap: 0; }
code { direction: ltr; unicode-bidi: isolate; padding: 0 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brand); }

.code { border-top: 1px solid var(--line); }
.code summary { padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.code summary:hover { color: var(--brand); }
.code pre { direction: ltr; text-align: left; margin: 0; padding: 16px 20px; overflow-x: auto; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.75; }
.code pre code { padding: 0; border: 0; background: none; color: var(--ink-2); }

.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sw { display: grid; gap: 6px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.sw i { display: block; height: 64px; border-radius: var(--r-m); border: 1px solid var(--line); }
.sw b { color: var(--ink); font-size: 13px; }

.type-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 10px; border-bottom: 1px dashed var(--line); }
.type-row:last-child { border-bottom: 0; }
.type-row > span { font-size: 12px; color: var(--ink-3); }

.lb { padding: 26px 16px; text-align: center; border: 1.5px dashed var(--pink-line); border-radius: var(--r-m); background: var(--pink-soft); color: var(--ink-2); font-size: 13px; }
.lb small { display: block; color: var(--ink-3); }

.icons { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.icons div { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--r-m); font-size: 12px; color: var(--ink-3); }
.icons .i { width: 24px; height: 24px; color: var(--ink); }

@media (max-width: 640px) {
  .type-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .demo-b { padding: 14px; }
}
/* ==========================================================================
   dark
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
 
  --bg: #080B22;
  --bg-soft: #0E1230;
  --surface: #0E1230;
  --line: #1E2450;
  --ink: #F2F3FF;
  --ink-2: #B4BADD;
  --ink-3: #7B82B0;
 
  --brand: #B0BDFF;
  --accent: #7bdcb5;
  --on-accent: #001689;
  --pink-soft: #1B1538;
  --pink-line: #3A2A55;
 
  --menu-bg: #0B1050;
  --footer-bg: #0B1050;
  --player-bg: #0F1438;
 
  --ok: #5FD3A0; --ok-soft: #0D2A20; --ok-line: #1D5A41;
  --err: #FF8DA1; --err-soft: #35121B; --err-line: #6B2433;
 
  --shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
[data-theme="dark"] .top .logo-light { display: none; }
[data-theme="dark"] .top .logo-dark { display: block; }
[data-theme="dark"] .q-badge { border-color: var(--brand); }
[data-theme="dark"] .dl-row.hq .q-badge { background: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); }
[data-theme="dark"] .a-av { border-color: var(--bg); box-shadow: 0 0 0 3px var(--brand); }
[data-theme="dark"] .a-deco { opacity: .3; border-color: var(--c-blue); }
[data-theme="dark"] .btn-play { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .ad { border-color: var(--pink-line); }
[data-theme="dark"] .menu-btn { background: var(--wp--preset--color--light-green-cyan); border-color: var(--wp--preset--color--light-green-cyan); color: var(--c-navy); --bar2: var(--c-navy); }
 


/* ==========================================================================
   page
   ========================================================================== */
.page-cover { margin-bottom: 16px; overflow: hidden; border-radius: var(--r-m); }
.page-cover img { display: block; width: 100%; height: auto; }
.page-content { font-size: 14px; line-height: 2.1; color: var(--ink-2); overflow-wrap: anywhere; }
.page-content > * + * { margin-top: 12px; }
.page-content h2, .page-content h3, .page-content h4 { color: var(--ink); font-weight: 800; line-height: 1.6; margin-top: 22px; }
.page-content h2 { font-size: 18px; } .page-content h3 { font-size: 16px; } .page-content h4 { font-size: 14px; }
.page-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.page-content ul, .page-content ol { padding-inline-start: 22px; }
.page-content ul { list-style: disc; } .page-content ol { list-style: decimal; }
.page-content img { max-width: 100%; height: auto; border-radius: var(--r-s, 8px); }
.page-content blockquote { padding: 10px 16px; border-inline-start: 3px solid var(--c-pink); background: var(--pink-soft); border-radius: var(--r-s, 8px); }