/* رنگ — Art Thinks. Persian, RTL, warm monochrome. Hierarchy by weight + space. */

:root {
  --paper: #FCFAF6; --ink: #1B1813;
  --ink-60: rgba(27,24,19,.60); --ink-40: rgba(27,24,19,.40);
  --ink-22: rgba(27,24,19,.22); --ink-10: rgba(27,24,19,.10); --ink-06: rgba(27,24,19,.06);
  --sans: "RengSans", Tahoma, "Segoe UI", sans-serif;
  --player-h: 92px; --maxw: 860px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; font-weight: 300; padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom)); }
body.no-player { padding-bottom: 40px; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font-family: var(--sans); color: var(--ink); background: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.hidden { display: none !important; }
.serif, .mono { font-family: var(--sans); }
.num { font-feature-settings: "ss01"; }
.meta { font-size: 12px; font-weight: 500; color: var(--ink-40); }

/* ---- top bar ---- */
header.top { position: sticky; top: 0; z-index: 30; background: linear-gradient(var(--paper) 80%, transparent); padding-top: env(safe-area-inset-top); }
.top-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 12px; max-width: var(--maxw); margin: 0 auto; gap: 12px; }
.brand { font-size: 30px; font-weight: 900; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.brand .slogan { font-size: 13px; font-weight: 300; font-style: italic; color: var(--ink-40); }
.top-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.studio-link { font-size: 13px; font-weight: 700; border: 1px solid var(--ink); border-radius: 4px; padding: 7px 14px; }
.studio-link:hover, .studio-link.active { background: var(--ink); color: var(--paper); }
.top-link { font-size: 13px; font-weight: 400; color: var(--ink-60); }
.top-link:hover { color: var(--ink); }
.badge { font-size: 10px; margin-right: 3px; font-weight: 700; }
.badge:empty { display: none; }
.top-link.has-unread { color: var(--ink); font-weight: 500; }
.top-link.has-unread .badge { border: 1px solid var(--ink); border-radius: 9px; padding: 0 5px; }

nav.tabs { display: flex; gap: 24px; padding: 2px 22px 14px; max-width: var(--maxw); margin: 0 auto; border-bottom: 1px solid var(--ink-10); overflow-x: auto; }
nav.tabs button { font-size: 19px; font-weight: 400; line-height: 1; color: var(--ink-40); white-space: nowrap; transition: color .2s; }
nav.tabs button.active { color: var(--ink); font-weight: 700; }
nav.tabs button.tab-search { display: inline-flex; align-items: center; padding: 0 2px; }
nav.tabs button.tab-search svg { display: block; }

main { padding-top: 22px; }
.view { display: none; }
.view.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section-head { padding: 2px 0 16px; }
.section-head h2 { font-size: 30px; font-weight: 900; line-height: 1.1; }
.section-head p { margin-top: 8px; max-width: 52ch; color: var(--ink-60); font-size: 14px; line-height: 1.7; font-weight: 300; }
.block { margin: 32px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-head h3 { font-size: 22px; font-weight: 700; }
.block-head .more { font-size: 12px; color: var(--ink-40); }

/* ---- grids: tracks + artists ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.tcard { cursor: pointer; min-width: 0; }
.tcard .art { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink-06); border: 1px solid var(--ink-10); border-radius: 6px; display: block; }
.tcard .art.ph { display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 30px; color: var(--ink-22); }
.tcard.playing .art { outline: 2px solid var(--ink); outline-offset: 2px; }
.tcard h4 { font-size: 15px; font-weight: 700; margin-top: 9px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .who { font-size: 12px; font-weight: 300; color: var(--ink-60); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .crow { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.tcard .crow .iconbtn { font-size: 14px; color: var(--ink-40); line-height: 1; }
.tcard .crow .iconbtn.on { color: var(--ink); }
.tcard .crow .iconbtn:hover { color: var(--ink); }
.tag-ai { font-size: 9.5px; font-weight: 700; border: 1px solid var(--ink); border-radius: 3px; padding: 1px 5px; }
.tag-star { font-size: 11px; }

.acard { cursor: pointer; text-align: center; min-width: 0; }
.acard .av { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--ink-06); border: 1px solid var(--ink-10); display: block; }
.acard .av.ph { display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 34px; color: var(--ink-22); }
.acard h4 { font-size: 16px; font-weight: 700; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .who { font-size: 11.5px; font-weight: 300; color: var(--ink-60); margin-top: 2px; }

/* ---- empty states ---- */
.empty { padding: 36px 18px; text-align: center; border: 1px dashed var(--ink-10); border-radius: 8px; }
.empty .e-mark { font-size: 30px; opacity: .35; }
.empty .e-title { font-size: 18px; font-weight: 700; margin-top: 8px; }
.empty .e-sub { font-size: 13px; font-weight: 300; color: var(--ink-60); margin-top: 6px; line-height: 1.7; max-width: 36ch; margin-inline: auto; }
.empty.small { padding: 22px 14px; }

/* ---- artist profile ---- */
.detail-back { font-size: 13px; color: var(--ink-60); margin-bottom: 18px; display: inline-block; }
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ink-10); display: block; margin-bottom: 14px; }
.profile-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.profile-avatar.big { width: 120px; height: 120px; flex: 0 0 120px; margin-bottom: 0; background: var(--ink-06); }
.profile-avatar.ph { display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 46px; color: var(--ink-22); }
.profile-id { min-width: 0; }
.profile-id h2 { font-size: 38px; font-weight: 900; line-height: 1.05; margin-top: 2px; }
.detail-head h2 { font-size: 34px; font-weight: 900; line-height: 1.1; }
@media (max-width: 480px) { .profile-top { gap: 14px; } .profile-avatar.big { width: 90px; height: 90px; flex-basis: 90px; } .profile-id h2 { font-size: 30px; } }
.detail-head .bio { margin-top: 12px; max-width: 52ch; line-height: 1.8; font-size: 16px; font-weight: 300; }
.detail-head .a-meta { margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.follower-line { font-size: 13px; color: var(--ink-60); margin-top: 12px; }
.profile-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.followbtn, .supportbtn { border: 1px solid var(--ink); border-radius: 4px; padding: 10px 18px; font-size: 13px; font-weight: 500; }
.followbtn:hover, .supportbtn:hover, .followbtn.on { background: var(--ink); color: var(--paper); }
.followbtn.on:hover { background: none; color: var(--ink); }

/* shows */
.show { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ink-10); }
.show-poster { width: 72px; height: 72px; flex: 0 0 72px; object-fit: cover; border: 1px solid var(--ink-10); border-radius: 4px; background: var(--ink-06); }
.show-body { flex: 1; min-width: 0; }
.show-title { font-size: 19px; font-weight: 700; }
.show-date { font-size: 12px; font-weight: 500; color: var(--ink); margin-top: 5px; }
.show-desc { font-size: 14px; font-weight: 300; color: var(--ink-60); margin-top: 6px; line-height: 1.6; }
.show-tickets { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ---- library / playlists ---- */
.newlist { display: flex; gap: 10px; margin: 6px 0 18px; }
.newlist input { flex: 1; font-size: 14px; border: none; border-bottom: 1px solid var(--ink-22); padding: 8px 0; }
.newlist input:focus { outline: none; border-color: var(--ink); }
.newlist button { font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.playlist-card { padding: 16px 0; border-bottom: 1px solid var(--ink-10); cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; }
.playlist-card h4 { font-size: 19px; font-weight: 700; }

.addmenu { position: fixed; inset: 0; z-index: 60; background: rgba(27,24,19,.18); display: none; align-items: flex-end; justify-content: center; }
.addmenu.show { display: flex; }
.addmenu-inner { background: var(--paper); width: 100%; max-width: var(--maxw); border-top-left-radius: 16px; border-top-right-radius: 16px; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(27,24,19,.12); }
.addmenu-inner .meta { margin-bottom: 14px; }
.addmenu-row { padding: 14px 0; border-bottom: 1px solid var(--ink-10); font-size: 18px; font-weight: 500; cursor: pointer; }
.addmenu-row:last-child { border-bottom: none; }

/* ---- player: breathing playhead line (kept LTR for time) ---- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--player-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: linear-gradient(transparent, var(--paper) 22%); backdrop-filter: blur(8px); }
.player.gone { display: none; }
.player-inner { max-width: var(--maxw); margin: 0 auto; height: var(--player-h); padding: 0 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.playhead { position: relative; height: 1px; background: var(--ink-22); cursor: pointer; direction: ltr; }
.playhead .progress { position: absolute; left: 0; top: 0; height: 1px; background: var(--ink); width: 0%; }
.playhead .caret { position: absolute; top: -5px; left: 0%; width: 1px; height: 11px; background: var(--ink); transform: translateX(-.5px); }
.player.playing .caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.player.playing .playhead { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.np { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.np .np-title { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np .np-artist { font-size: 12px; font-weight: 300; color: var(--ink-60); white-space: nowrap; }
.np .np-empty { font-size: 16px; font-weight: 300; color: var(--ink-40); }
.transport { display: flex; align-items: center; gap: 16px; }
.transport button { font-size: 13px; color: var(--ink-60); }
.transport button:hover { color: var(--ink); }
.transport .play { font-size: 20px; color: var(--ink); width: 24px; text-align: center; }
.transport #repeat.on { color: var(--ink); font-weight: 700; }
.times { font-size: 11px; color: var(--ink-40); display: flex; justify-content: space-between; direction: ltr; }

/* ---- auth gate ---- */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--paper); display: flex; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto; }
.gate.hide { display: none; }
.gate-inner { width: 100%; max-width: 380px; text-align: center; margin-top: 9vh; }
.gate .brand-big { font-size: 60px; font-weight: 900; line-height: 1; }
.gate .slogan-big { font-size: 19px; font-weight: 300; font-style: italic; color: var(--ink-60); margin: 4px 0 34px; }
.auth-tabs { display: flex; gap: 22px; justify-content: center; margin-bottom: 24px; }
.auth-tabs button { font-size: 21px; font-weight: 400; color: var(--ink-40); }
.auth-tabs button.active { color: var(--ink); font-weight: 700; }
.reset-title { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.field { margin-bottom: 4px; text-align: right; }
.field input { width: 100%; font-size: 15px; border: none; border-bottom: 1px solid var(--ink-22); padding: 12px 0; }
.field input:focus { outline: none; border-color: var(--ink); }
.field input::placeholder, textarea::placeholder { color: var(--ink-40); }
.btn { width: 100%; border: 1px solid var(--ink); border-radius: 4px; padding: 14px; font-size: 14px; font-weight: 700; margin-top: 22px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.ghost { border-color: var(--ink-22); font-weight: 500; }
.btn.ghost:hover { background: none; color: var(--ink); border-color: var(--ink); }
.notice { font-size: 13px; color: var(--ink-60); margin-top: 16px; min-height: 16px; line-height: 1.6; }
.notice.err { color: var(--ink); font-weight: 500; }
.notice.ok { color: var(--ink); }
.remember { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-60); cursor: pointer; justify-content: flex-start; }
.remember input { width: 15px; height: 15px; }
.link-btn { display: block; margin: 14px auto 0; font-size: 13px; color: var(--ink-60); border-bottom: 1px solid var(--ink-22); padding-bottom: 2px; }
.link-btn:hover { color: var(--ink); }
.noads { margin-top: 18px; font-size: 11px; font-weight: 500; color: var(--ink-60); }
.oauth { margin-top: 28px; }
.oauth-sep { display: flex; align-items: center; gap: 12px; color: var(--ink-40); margin-bottom: 16px; }
.oauth-sep::before, .oauth-sep::after { content: ""; flex: 1; height: 1px; background: var(--ink-10); }
.oauth-sep span { font-size: 12px; }
.oauth-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink-22); border-radius: 4px; padding: 13px; font-size: 13px; color: var(--ink-40); margin-bottom: 10px; cursor: not-allowed; }
.oauth-btn .soon { font-size: 10px; border: 1px solid var(--ink-22); border-radius: 3px; padding: 1px 6px; }
.oauth-note, .dev-note { font-size: 11.5px; color: var(--ink-40); line-height: 1.8; margin-top: 12px; text-align: center; }
.verify-msg { font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--ink-60); margin-bottom: 22px; }
.verify-msg b { color: var(--ink); font-weight: 700; }

/* ---- forms / studio ---- */
.form-row { margin-bottom: 18px; }
.form-row label.lbl { display: block; font-size: 12px; font-weight: 500; color: var(--ink-40); margin-bottom: 7px; }
.form-row input, .form-row textarea, .review-input { width: 100%; font-size: 15px; border: none; border-bottom: 1px solid var(--ink-22); padding: 10px 0; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .review-input:focus { outline: none; border-color: var(--ink); }
input[type=file] { display: none; }
.filepick { border: 1px solid var(--ink-22); border-radius: 4px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.filepick:hover, .filepick.set { border-color: var(--ink); }
.filepick .fp-label { font-size: 16px; font-weight: 500; }
.filepick .fp-name { font-size: 12px; color: var(--ink-60); text-align: left; word-break: break-all; }
.ai-decl { border: 1px solid var(--ink-22); border-radius: 4px; padding: 16px; }
.ai-decl .q { font-size: 16px; font-weight: 500; margin-bottom: 12px; }
.toggle { display: flex; gap: 10px; }
.toggle button { flex: 1; border: 1px solid var(--ink-22); border-radius: 4px; padding: 10px; font-size: 13px; font-weight: 500; color: var(--ink-60); }
.toggle button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ai-hint { font-size: 12px; color: var(--ink-40); margin-top: 10px; line-height: 1.7; }

.upload-cta { width: 100%; display: flex; align-items: center; gap: 16px; border: 1px solid var(--ink); border-radius: 6px; padding: 20px; margin: 4px 0 22px; text-align: right; }
.upload-cta:hover { background: var(--ink); color: var(--paper); }
.upload-cta .plus { font-size: 28px; line-height: 1; }
.upload-cta .cta-text { display: flex; flex-direction: column; gap: 3px; }
.upload-cta .cta-title { font-size: 22px; font-weight: 700; }
.upload-cta .cta-sub { font-size: 12px; color: var(--ink-40); }
.upload-cta:hover .cta-sub { color: rgba(252,250,246,.6); }

.stat-strip { display: flex; flex-wrap: wrap; border: 1px solid var(--ink-10); border-radius: 6px; margin: 6px 0 10px; }
.stat { flex: 1 1 33%; padding: 14px 12px; border-left: 1px solid var(--ink-10); border-bottom: 1px solid var(--ink-10); min-width: 90px; }
.stat .n { font-size: 24px; font-weight: 900; line-height: 1; }
.stat .l { font-size: 11px; font-weight: 500; color: var(--ink-40); margin-top: 6px; }

/* studio track/review rows */
.tcard-row { border-bottom: 1px solid var(--ink-10); padding: 18px 0; display: flex; gap: 16px; }
.tcard-row .art { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; background: var(--ink-06); border: 1px solid var(--ink-10); border-radius: 5px; }
.tcard-row .art.ph { display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; color: var(--ink-22); }
.tcard-row .body { flex: 1; min-width: 0; }
.tcard-row h3 { font-size: 19px; font-weight: 700; }
.tcard-row .sub { margin-top: 5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tcard-row .who, .tdate { font-size: 12px; font-weight: 300; color: var(--ink-60); }
.tcard-row audio { width: 100%; margin-top: 12px; height: 36px; }
.status { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 3px; }
.status.draft { color: var(--ink-40); border: 1px dashed var(--ink-22); }
.status.submitted { color: var(--ink); border: 1px solid var(--ink-22); }
.status.approved { color: var(--ink); border: 1px solid var(--ink); }
.status.rejected { color: var(--ink-40); border: 1px solid var(--ink-22); }
.status.published { background: var(--ink); color: var(--paper); }
.review-note { font-size: 13px; color: var(--ink-60); margin-top: 10px; line-height: 1.6; border-right: 2px solid var(--ink-22); padding-right: 10px; }
.ai-detail-show { font-size: 13px; color: var(--ink-60); margin-top: 8px; line-height: 1.6; }
.tstats { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.tstats span { font-size: 12px; color: var(--ink-60); }
.tstats b { font-weight: 700; color: var(--ink); }
.card-actions { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.smallbtn { font-size: 12px; font-weight: 500; border: 1px solid var(--ink); border-radius: 4px; padding: 8px 13px; }
.smallbtn:hover { background: var(--ink); color: var(--paper); }
.smallbtn.ghost { border-color: var(--ink-22); color: var(--ink-60); }
.smallbtn.ghost:hover { background: none; color: var(--ink); border-color: var(--ink); }
.smallbtn.star.on { background: var(--ink); color: var(--paper); }

.count-pill { font-size: 12px; font-weight: 700; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 1px 8px; margin-right: 6px; }

/* conversation / threads */
.thread-row { padding: 16px 0; border-bottom: 1px solid var(--ink-10); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; cursor: pointer; }
.thread-row h4 { font-size: 19px; font-weight: 700; }
.thread-row .who, .notif-row .ntime { font-size: 11px; color: var(--ink-40); white-space: nowrap; }
.notif-row { padding: 14px 0; border-bottom: 1px solid var(--ink-10); display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.notif-row.unread .nt { font-weight: 700; }
.notif-row .nt { font-size: 16px; }
.conv { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 16px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.bubble.them { align-self: flex-start; border: 1px solid var(--ink-22); border-bottom-right-radius: 3px; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-left-radius: 3px; }
.conv-compose { position: sticky; bottom: calc(var(--player-h) + 8px); display: flex; gap: 10px; align-items: flex-end; background: var(--paper); padding: 10px 0; border-top: 1px solid var(--ink-10); }
.conv-compose textarea { flex: 1; font-size: 14px; border: 1px solid var(--ink-22); border-radius: 8px; padding: 10px; resize: none; }
.conv-compose textarea:focus { outline: none; border-color: var(--ink); }
body.no-player .conv-compose { bottom: 8px; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(27,24,19,.22); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-card { background: var(--paper); width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; border-radius: 10px; padding: 26px; box-shadow: 0 20px 60px rgba(27,24,19,.2); }
.modal-card h3 { font-size: 24px; font-weight: 700; }
.modal-card .ver { margin: 6px 0 16px; }
.contract-text { font-size: 14px; font-weight: 300; line-height: 2; white-space: pre-wrap; border: 1px solid var(--ink-10); border-radius: 6px; padding: 16px; max-height: 38vh; overflow: auto; }
.sign-agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--ink-60); line-height: 1.6; cursor: pointer; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions .btn { margin-top: 0; flex: 1; }
.block.danger .danger-note { font-size: 12px; color: var(--ink-60); line-height: 1.7; margin-top: 6px; }
.amount-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.amount { flex: 1 1 60px; border: 1px solid var(--ink-22); border-radius: 4px; padding: 14px 8px; font-size: 20px; font-weight: 700; }
.amount.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.amount:hover { border-color: var(--ink); }

/* search */
#search-input { width: 100%; font-size: 26px; font-weight: 700; border: none; border-bottom: 1px solid var(--ink-22); padding: 10px 0; }
#search-input:focus { outline: none; border-color: var(--ink); }
.lyric-snip { font-size: 14px; font-weight: 300; color: var(--ink-60); margin-top: 5px; line-height: 1.6; }

@media (max-width: 480px) {
  .brand { font-size: 25px; }
  .brand .slogan { display: none; }
  .section-head h2 { font-size: 25px; }
  nav.tabs { gap: 18px; }
  nav.tabs button { font-size: 18px; }
  .top-inner { flex-wrap: wrap; }
  .top-actions { width: 100%; gap: 14px; flex-wrap: wrap; justify-content: flex-start; margin-top: 6px; }
  .stat { flex-basis: 50%; }
}

/* ---- clickable own avatar ---- */
.profile-avatar.editable { cursor: pointer; position: relative; }
.profile-avatar.editable::after {
  content: "تغییر"; position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 11px; font-weight: 500; text-align: center; padding: 5px 0;
  color: var(--paper); background: rgba(27,24,19,.5); border-radius: 0 0 999px 999px;
  opacity: 0; transition: opacity .18s;
}
.profile-avatar.editable:hover::after { opacity: 1; }

/* ---- avatar cropper ---- */
.crop-modal { z-index: 90; }
.crop-card { max-width: 380px; }
.crop-stage {
  position: relative; width: 300px; height: 300px; max-width: 78vw; max-height: 78vw;
  margin: 18px auto 0; border-radius: 8px; overflow: hidden; background: var(--ink-06);
  touch-action: none; cursor: grab; user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; max-width: none; -webkit-user-drag: none; user-select: none; }
.crop-ring {
  position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(27,24,19,.42); border: 1px solid rgba(252,250,246,.85);
}
.crop-zoom { display: flex; align-items: center; gap: 12px; margin: 16px 4px 0; }
.crop-zoom .cz-mark { font-size: 18px; font-weight: 700; color: var(--ink-60); width: 14px; text-align: center; }
.crop-zoom input[type=range] { flex: 1; accent-color: var(--ink); height: 22px; }

/* ---- upload progress bar ---- */
.upbar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(8px);
  bottom: calc(var(--player-h) + 14px + env(safe-area-inset-bottom));
  z-index: 70; width: min(420px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--ink-10); border-radius: 10px;
  padding: 12px 14px; box-shadow: 0 12px 36px rgba(27,24,19,.16);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
body.no-player .upbar { bottom: calc(20px + env(safe-area-inset-bottom)); }
.upbar.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.upbar-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.upbar-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.upbar-pct { font-size: 12px; font-weight: 700; color: var(--ink-60); }
.upbar-track { height: 5px; border-radius: 3px; background: var(--ink-10); overflow: hidden; }
.upbar-fill { height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width .15s ease-out; }
