/* Melodia Mini App: dark blue-green, reference-grade */
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/Vazirmatn-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
:root {
  --bg: #0b1014;
  --bg-grad: radial-gradient(120% 55% at 50% 0%, #103138 0%, #0b1014 65%);
  --surface: #121a20;
  --raised: #1a252d;
  --line: rgba(255,255,255,.08);
  --fg: #e8f1f2;
  --muted: #7f949b;
  --accent: #2dd4bf;
  --accent-2: #3b82f6;
  --grad: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
  --accent-fg: #06131a;
  --danger: #ef5350;
  --tint: #103138;
  --sat: var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sab: var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --cat: var(--tg-content-safe-area-inset-top, 0px);
  --tabs-h: 56px;
  --mini-h: 60px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; background: var(--bg) var(--bg-grad) no-repeat; color: var(--fg);
  font: 15px/1.35 Vazirmatn, -apple-system, "SF Pro Text", Roboto, "Segoe UI", system-ui, sans-serif;
  overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1 { font-size: 22px; font-weight: 700; margin: 0; }
h2 { font-size: 17px; font-weight: 600; margin: 0; }
.bidi { unicode-bidi: plaintext; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; pointer-events: none; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--fg); position: relative; flex: none; }
.ib:active { background: rgba(255,255,255,.08); }
.ib.on { color: var(--accent); }

/* layout */
#content { padding: calc(var(--sat) + var(--cat) + 12px) 0 calc(var(--tabs-h) + var(--sab) + 16px); min-height: 100vh; }
body.has-mini #content { padding-bottom: calc(var(--tabs-h) + var(--mini-h) + var(--sab) + 22px); }
.screen-h { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 16px 10px; }
.screen-h small { color: var(--muted); }
.empty { padding: 32px 20px; color: var(--muted); text-align: center; line-height: 1.5; }
.splash { min-height: calc(100vh - var(--tabs-h) - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center; animation: splash-in .5s var(--ease) both; }
.splash .mark { width: 88px; height: 88px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; gap: 5px;
  box-shadow: 0 14px 44px rgba(45,212,191,.28), 0 0 0 10px rgba(45,212,191,.06); margin-bottom: 6px; }
.splash .mark i { width: 7px; border-radius: 4px; background: #fff; height: var(--h); animation: splash-eq 1.1s ease-in-out infinite alternate; animation-delay: var(--d); }
.splash .mark i:nth-child(1) { --h: 16px; --d: -.15s; }
.splash .mark i:nth-child(2) { --h: 28px; --d: -.55s; }
.splash .mark i:nth-child(3) { --h: 40px; --d: -.95s; }
.splash .mark i:nth-child(4) { --h: 28px; --d: -.35s; }
.splash .mark i:nth-child(5) { --h: 16px; --d: -.75s; }
.splash .word { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.splash .st { color: var(--muted); font-size: 14px; animation: splash-breathe 1.6s ease-in-out infinite; }
.splash.err .mark { background: var(--raised); box-shadow: none; }
.splash.err .mark i { animation: none; background: var(--muted); }
.splash.err .st { color: var(--fg); animation: none; max-width: 320px; line-height: 1.45; }
@keyframes splash-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes splash-eq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes splash-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash, .splash .mark i, .splash .st { animation: none; } }
.hint { color: var(--muted); font-size: 13px; }
.section { margin-top: 18px; }
.section h2 { padding: 0 16px 6px; }
.section .sh { display: flex; align-items: baseline; justify-content: space-between; padding-inline-end: 12px; }
.section .sh h2 { flex: 1; min-width: 0; }
.seeall { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 13px; font-weight: 600; flex: none; }
.seeall .chev { width: 16px; height: 16px; transform: rotate(-90deg); }
.langpick { padding: 60px 24px; text-align: center; }
.langpick h1 { margin-bottom: 8px; }
.langpick p { color: var(--muted); margin-bottom: 24px; }
.langpick .btn { margin: 6px 0; }
.nudge { margin: 0 16px 10px; padding: 14px; border-radius: 14px; background: var(--surface); line-height: 1.5; }
.banner { margin: 0 16px 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 14px; }
.banner .ixrow { display: flex; flex-direction: column; gap: 5px; padding: 3px 0; }
.banner .bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.banner .bar i { display: block; height: 100%; background: var(--accent, #2fbf9b); transition: width .4s; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 12px; font-weight: 600; background: var(--raised); }
.btn:active { opacity: .85; }
.btn.grad { background: var(--grad); color: var(--accent-fg); }
.btn.line { border: 1px dashed var(--muted); color: var(--accent); background: none; }
.btn.danger { color: var(--danger); }
.btn.wide { width: calc(100% - 32px); margin: 4px 16px 10px; justify-content: center; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; flex: none; }
.btn:disabled { opacity: .5; }

/* chips */
.chips { display: flex; gap: 6px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 7px 13px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; }
.chips button.on { background: var(--raised); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent); }

/* art */
.art { width: 48px; height: 48px; border-radius: 8px; background: var(--raised); flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--muted); }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .ic { width: 22px; height: 22px; }

/* track rows */
li.tr { display: flex; align-items: center; gap: 12px; padding-block: 7px; padding-inline: 16px 8px; }
li.tr:active { background: var(--surface); }
li.tr .meta { flex: 1; min-width: 0; }
li.tr .t { font-weight: 500; }
li.tr .p { color: var(--muted); font-size: 13px; }
li.tr.playing .t { color: var(--accent); }
li.tr .dur { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
li.tr .ib { width: 40px; height: 40px; color: var(--muted); }
li.more { display: flex; justify-content: center; padding: 14px; min-height: 48px; }
li.more .spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
li.more.err .spin { animation: none; border-color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
li.g { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
li.g:active { background: var(--surface); }
li.g .art { border-radius: 10px; }
li.g .meta { flex: 1; min-width: 0; }
li.g .p { color: var(--muted); font-size: 13px; }
li.g .n { color: var(--muted); font-size: 13px; flex: none; }
li.g .chev { color: var(--muted); transform: rotate(-90deg); width: 20px; height: 20px; }
.seclabel { padding: 14px 16px 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* quick picks + mixes */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 8px; }
.qp { display: flex; align-items: center; gap: 10px; height: 56px; border-radius: 10px; background: var(--surface); overflow: hidden; text-align: start; font-weight: 600; font-size: 14px; }
.qp:active { background: var(--raised); }
.qp .art { width: 56px; height: 56px; border-radius: 0; }
.qp span { flex: 1; min-width: 0; padding-inline-end: 10px; font-size: 13px; line-height: 1.25; }
.art.grad { background: var(--grad); color: var(--accent-fg); }
.art.grad.mix-new { background: linear-gradient(135deg, #2dd4bf 0%, #0ea5e9 100%); }
.art.grad.mix-weekly { background: linear-gradient(135deg, #6366f1 0%, #2dd4bf 100%); }
.art.grad.mix-trending { background: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%); }
.art.grad.mix-liked { background: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%); }
.card.mix { width: 136px; }
.card.mix .art { width: 136px; height: 136px; }
.card.mix .art .ic { width: 40px; height: 40px; }

/* horizontal cards */
.hrow { display: flex; gap: 12px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.card { flex: none; width: 104px; }
.card .art { width: 104px; height: 104px; border-radius: 12px; }
.card .t { font-size: 13px; font-weight: 500; margin-top: 6px; }
.card .p { font-size: 12px; color: var(--muted); }
.card.playing .t { color: var(--accent); }
.continue { margin: 0 16px 6px; padding: 12px; border-radius: 14px; background: var(--surface); display: flex; gap: 12px; align-items: center; }
.continue:active { background: var(--raised); }
.continue .art { width: 56px; height: 56px; border-radius: 10px; }
.continue .meta { flex: 1; min-width: 0; }
.continue .lbl { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.continue .t { font-weight: 600; }
.continue .bar { height: 3px; border-radius: 2px; background: var(--raised); margin-top: 8px; overflow: hidden; }
.continue .bar .fill { height: 100%; background: var(--grad); }
.continue .ib { color: var(--accent); }

/* group detail */
.gh { padding: 0 16px 12px; }
.gh .top { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; margin-inline-start: -12px; }
.gh .hero { display: flex; gap: 14px; align-items: flex-end; }
.gh .hero .art { width: 120px; height: 120px; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.4); }
.gh .hero .art .ic { width: 40px; height: 40px; }
.gh .hero .meta { flex: 1; min-width: 0; }
.gh .hero .kind { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.gh .hero h1 { font-size: 22px; line-height: 1.15; margin: 4px 0; overflow-wrap: anywhere; }
.gh .hero .sub { color: var(--muted); font-size: 13px; }
.gh .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* search */
.sbox { display: flex; align-items: center; gap: 8px; margin: 0 16px 12px; padding-block: 0; padding-inline: 12px 4px; border-radius: 12px; background: var(--surface); color: var(--muted); }
.sbox input { flex: 1; padding: 11px 0; background: none; border: 0; color: var(--fg); outline: none; min-width: 0; }
.sbox input::placeholder { color: var(--muted); }
.sbox .ib { width: 36px; height: 36px; color: var(--muted); }

/* tab bar */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; height: calc(var(--tabs-h) + var(--sab));
  padding-bottom: var(--sab); display: flex; background: var(--surface); border-top: 1px solid var(--line); }
#tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
#tabs button.on { color: var(--accent); }

/* mini player */
#mini { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabs-h) + var(--sab) + 6px); z-index: 5; height: var(--mini-h);
  background: var(--raised); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); touch-action: pan-y; user-select: none; }
#mini .bar { height: 2px; background: rgba(255,255,255,.1); }
#mini .bar .fill { height: 100%; width: 0; background: var(--grad); }
#mini .row { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 10px; height: calc(var(--mini-h) - 2px); }
#mini .art { width: 40px; height: 40px; }
#mini .txt { flex: 1; min-width: 0; }
#mini .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mini .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* now playing */
#np { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column;
  padding: calc(var(--sat) + var(--cat) + 8px) 24px calc(var(--sab) + 16px);
  background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 60%);
  transform: translateY(100%); transition: transform 240ms var(--ease), background 400ms; will-change: transform; touch-action: none; user-select: none; }
#np.open { transform: translateY(0); }
.np-top { display: flex; align-items: center; justify-content: center; position: relative; height: 44px; }
.np-top .grab { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.np-top .ib { position: absolute; inset-inline-start: -10px; top: 0; }
.np-art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px 0 16px; }
.np-art .art { width: min(100%, 52vh); aspect-ratio: 1; height: auto; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.45); }
.np-art .art .ic { width: 64px; height: 64px; }
.np-meta { display: flex; align-items: center; gap: 8px; }
.np-meta .txt { flex: 1; min-width: 0; }
.np-meta .t { font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta .s { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-seek { padding: 14px 0 4px; touch-action: none; }
.np-seek .track { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); }
.np-seek .fill { height: 100%; width: 0; border-radius: 2px; background: var(--grad); }
.np-seek .thumb { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.np-seek .times { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.np-ctl { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.np-ctl .ib.big .ic { width: 32px; height: 32px; }
.np-ctl .main { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(45,212,191,.25); }
.np-ctl .main .ic { width: 34px; height: 34px; }
.np-ctl .main:active { transform: scale(.96); }
.np-foot { display: flex; justify-content: space-between; padding: 4px 8px 0; }
.np-foot .ib { color: var(--muted); }
.np-foot .ib.on { color: var(--accent); }

/* sheets */
#sheet { position: fixed; inset: 0; z-index: 10; background: rgba(0,0,0,.55); display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 200ms; }
#sheet.open { opacity: 1; pointer-events: auto; }
#sheet .box { width: 100%; max-height: 82vh; overflow-y: auto; background: var(--raised); border-radius: 18px 18px 0 0;
  padding: 8px 0 calc(var(--sab) + 12px); transform: translateY(40px); transition: transform 240ms var(--ease); }
#sheet.open .box { transform: none; }
#sheet .box::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); margin: 4px auto 10px; }
#sheet h3 { margin: 4px 16px 10px; font-size: 16px; font-weight: 600; }
#sheet .opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: start; font-size: 15px; }
#sheet .opt:active { background: rgba(255,255,255,.06); }
#sheet .opt .ic { color: var(--muted); flex: none; }
#sheet .opt.on .ic { color: var(--accent); }
#sheet input { width: calc(100% - 32px); margin: 4px 16px 10px; padding: 11px 12px; border-radius: 10px; border: 0; background: var(--surface); color: var(--fg); outline: none; }
#sheet p.hint { margin: 0 16px 10px; line-height: 1.5; }

#connectDialog { position: fixed; inset: auto 0 0; margin: 0 auto; width: 100%; max-width: 480px;
  max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 0 calc(var(--sab) + 12px);
  border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: var(--raised); color: var(--fg); }
#connectDialog::backdrop { background: rgba(0,0,0,.55); }
#connectDialog .screen-h { align-items: center; gap: 12px; }
#connectDialog fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#connectDialog h3, #connectDialog label, #connectDialog p.hint { display: block; margin: 8px 16px; }
#connectDialog h3 { font-size: 16px; }
#connectDialog .btn { min-height: 44px; }
#connectDialog input { width: calc(100% - 32px); margin: 4px 16px 12px; padding: 12px;
  border: 1px solid var(--muted); border-radius: 10px; background: var(--surface); color: var(--fg); font-size: 16px; }
#connectDialog :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#connectOptions { padding: 0 8px; margin-bottom: 16px; }
.channel-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px;
  padding: 8px; text-align: start; border-radius: 10px; }
.channel-option:active { background: var(--surface); }
.channel-option .meta { flex: 1; min-width: 0; }
.channel-option .t, .channel-option .hint { display: block; overflow-wrap: anywhere; }
.channel-option > .ic { flex: none; color: var(--accent); }
#connectDialog fieldset:disabled { opacity: .6; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--mini-h) + var(--sab) + 20px); transform: translateX(-50%);
  z-index: 20; padding: 10px 14px; border-radius: 12px; background: var(--raised); color: var(--fg); font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); max-width: calc(100% - 32px); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { #np, #sheet, #sheet .box { transition: none; } }

/* Persian: mirror navigation glyphs, keep mixed-script rows flush, no tracking on Arabic script. */
[dir=rtl] .bidi { text-align: right; }
[dir=rtl] .seeall .chev, [dir=rtl] li.g .chev { transform: rotate(90deg); }
[dir=rtl] [data-act=back] svg { transform: scaleX(-1); }
[lang=fa] body { line-height: 1.5; }
[lang=fa] .seclabel, [lang=fa] .continue .lbl, [lang=fa] .gh .kind { letter-spacing: 0; }

/* Desktop / wide browsers: keep the phone layout, centre it. */
@media (min-width: 600px) {
  :root { --col: 480px; }
  #content, #tabs, #mini, #np { max-width: var(--col); margin-left: auto; margin-right: auto; }
  #mini { left: 0; right: 0; width: calc(var(--col) - 16px); }
  #sheet .box { max-width: var(--col); margin: 0 auto; }
  body { background-attachment: fixed; }
}

/* Pro plan */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.lock { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; font-size: 11px; font-weight: 700; color: var(--accent); vertical-align: 1px; }
#sheet .plan .reason { margin: 0 16px 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); color: var(--fg); line-height: 1.45; }
#sheet .plan ul.feats { list-style: none; margin: 0 16px 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 13px; }
#sheet .plan ul.feats li { display: flex; align-items: center; gap: 6px; }
#sheet .plan .seg { display: flex; margin: 0 16px 10px; border-radius: 12px; background: var(--surface); padding: 3px; }
#sheet .plan .seg button { flex: 1; padding: 8px; border-radius: 10px; font-weight: 600; }
#sheet .plan .seg button.on { background: var(--raised); color: var(--accent); }

/* Tunedex: smart search */
.smartchip { flex: none; padding: 3px 9px; margin-inline-start: -4px; border-radius: 999px; background: var(--grad); color: var(--accent-fg); font-size: 11px; font-weight: 700; pointer-events: none; }
.smart-empty { padding: 40px 24px 24px; text-align: center; }
.smart-empty .hint { max-width: 340px; margin: 0 auto 14px; line-height: 1.6; }
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 44px; margin-bottom: 14px; }
.eq span { width: 7px; border-radius: 4px; background: var(--grad); height: 100%; transform-origin: bottom; animation: eq-bounce 1.1s ease-in-out infinite alternate; }
.eq span:nth-child(1) { animation-delay: -.15s; }
.eq span:nth-child(2) { animation-delay: -.55s; }
.eq span:nth-child(3) { animation-delay: -.95s; }
.eq span:nth-child(4) { animation-delay: -.35s; }
.eq span:nth-child(5) { animation-delay: -.75s; }
@keyframes eq-bounce { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.chips.center { justify-content: center; padding-bottom: 4px; }
.chip-q { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 13px; border: 1px solid var(--line); }

/* Tunedex: track row meatball */
li.tr .more-btn { width: 36px; height: 36px; margin-inline-start: -6px; color: var(--muted); }

/* Tunedex: popular channel rows */
li.sug-row .add-btn { border: 1.5px dashed var(--muted); color: var(--accent); background: none; width: 36px; height: 36px; padding: 0; border-radius: 10px; }
li.sug-row .add-btn:active { background: rgba(255,255,255,.06); }
li.sug-row .sug-added { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 13px; font-weight: 600; flex: none; }
li.sug-row .sug-added .ic { width: 16px; height: 16px; }

/* Tunedex: menu sheet */
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sheet-head .meta { flex: 1; min-width: 0; }
.sheet-head .t { font-weight: 600; }
.sheet-head .p { color: var(--muted); font-size: 13px; }
#sheet .seclabel { padding: 12px 16px 4px; }
.similar li.tr { padding-inline: 12px 8px; }

/* Tunedex: settings rows */
li.set-row .tile { background: var(--surface); color: var(--accent); border-radius: 12px; }
li.set-row .chev { transform: rotate(-90deg); }
[dir=rtl] li.set-row .chev { transform: rotate(90deg); }

/* parity: in-library search box */
.libq { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid transparent; }
.libq:focus-within { border-color: var(--accent); }
.libq .ico { display: inline-flex; color: var(--muted); }
.libq .ico .ic { width: 18px; height: 18px; }
.libq input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--fg); font: inherit; font-size: 14px; }
.libq input::placeholder { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .eq span { animation: none; transform: scaleY(.6); } }
