/* ════════════════════════════════════════════════════════════
   رنگ‌ها و فونت — برای تغییر ظاهر فقط این قسمت را عوض کنید
   ════════════════════════════════════════════════════════════ */
:root{
  --bg:#0d1420;        /* رنگ پس‌زمینه‌ی صفحه */
  --panel:#162132;     /* رنگ کادرها و دکمه‌ها */
  --line:#26344a;      /* رنگ خط دور کادرها */
  --text:#e8edf4;      /* رنگ متن */
  --muted:#93a1b5;     /* رنگ متن کم‌رنگ */
  --accent:#e6b23a;    /* رنگ اصلی (دکمه‌ی پخش، نوار پیشرفت) */
  --font:Vazirmatn,"B Nazanin",Tahoma,sans-serif;  /* فونت */
}

*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--font);overflow:hidden}
.wrap{height:100vh;height:100dvh;display:flex;flex-direction:column;padding:10px 14px;gap:8px}
header{flex:none;min-height:24px}
.stage{flex:1;min-height:0;position:relative;background:#000;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.stage img{width:100%;height:100%;object-fit:contain;display:block}
.start{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#000a}
.start button{font-size:20px;padding:14px 32px}
.wrap:fullscreen{background:var(--bg)}
.progress{height:4px;background:var(--line);border-radius:2px;overflow:hidden;flex:none}
.progress i{display:block;height:100%;width:0;background:var(--accent)}
.bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:none}
button{
  font:inherit;font-size:15px;color:var(--text);cursor:pointer;
  min-height:44px;padding:0 20px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:linear-gradient(180deg,#1f2f47,var(--panel));
  border:1px solid var(--line);border-radius:12px;
  box-shadow:0 2px 6px #0006,inset 0 1px 0 #ffffff14;
  transition:transform .12s,box-shadow .15s,border-color .15s,filter .15s;
  -webkit-tap-highlight-color:transparent;
}
button:hover:not(:disabled){
  border-color:var(--accent);transform:translateY(-1px);
  box-shadow:0 5px 12px #0008,inset 0 1px 0 #ffffff1f;
}
button:active:not(:disabled){
  transform:translateY(1px) scale(.97);
  box-shadow:0 1px 3px #0008,inset 0 1px 3px #0006;
}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button:disabled{opacity:.35;cursor:not-allowed;box-shadow:none}
button.primary{
  background:linear-gradient(180deg,#f3c658,var(--accent));
  color:#1a1a1a;border-color:#f3c658;font-weight:700;min-width:120px;
  box-shadow:0 3px 12px #e6b23a40,inset 0 1px 0 #ffffff66;
}
button.primary:hover:not(:disabled){
  filter:brightness(1.08);
  box-shadow:0 6px 18px #e6b23a60,inset 0 1px 0 #ffffff66;
}
button.danger{
  color:#ff9b9b;border-color:#5a2a33;font-weight:700;
  background:linear-gradient(180deg,#3a2029,#2a1820);
}
button.danger:hover:not(:disabled){
  background:linear-gradient(180deg,#e5484d,#c93338);
  border-color:#e5484d;color:#fff;
}
label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;cursor:pointer}
.spacer{flex:1}
.hidden{display:none}
button.mode{
  color:var(--accent);border-color:#5a4a1f;font-weight:700;min-width:140px;
  background:linear-gradient(180deg,#34301f,#251f14);
}
button.mode:hover:not(:disabled){
  background:linear-gradient(180deg,#f3c658,var(--accent));
  border-color:#f3c658;color:#1a1a1a;
}