* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  direction: rtl;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0 0 var(--sp-3);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }

p { margin: 0 0 var(--sp-3); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

input, select, textarea {
  font-family: inherit;
  font-size: var(--fs-body);
  direction: rtl;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 9px 12px;
}

input::placeholder { color: var(--text-muted); }

img, video { max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

#app { min-height: calc(100vh - var(--header-h)); padding-bottom: calc(var(--player-h) + 28px); }

@media (max-width: 640px) {
  h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  body { font-size: 15px; }
}
