/* Public site — design tokens, base, header / footer and shared parts. Light or dark follows
   the device until the visitor picks one with the theme button (static/theme.js). Same visual language as the app panel (static/app/app.css). Mobile first, RTL. */
@font-face { font-family: "Vazirmatn"; src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("/static/fonts/Vazirmatn-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --bg: #f6f7fb; --bg-2: #eef1f7; --surface: #fff; --surface-2: #f4f6fb; --ink: #0b1220; --ink-2: #3c4660; --muted: #6b7590;
  --line: #e3e7f0; --brand: #0b2851; --red: #df1f26; --red-2: #ff4b52; --green: #1f9d45; --green-2: #3fd968; --gold: #c99a2e;
  --accent: var(--red); --accent-soft: #fdecec; --ok-soft: #e7f7ed; --warn: #b45309; --warn-soft: #fff4e0;
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --shadow-lg: 0 18px 50px rgba(11, 18, 32, .12); --wrap: 1180px; --hdr: 64px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
/* dark: follows the device unless the visitor picked a theme (static/theme.js sets <html data-theme>) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #070c18; --bg-2: #0b1222; --surface: #101829; --surface-2: #151f34; --ink: #eef2fb; --ink-2: #c3cbe0; --muted: #8e98b3;
    --line: #22304d; --brand: #9fb8ff; --accent-soft: rgba(223, 31, 38, .16); --ok-soft: rgba(31, 157, 69, .18); --warn: #fbbf24; --warn-soft: rgba(245, 165, 36, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .4); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #070c18; --bg-2: #0b1222; --surface: #101829; --surface-2: #151f34; --ink: #eef2fb; --ink-2: #c3cbe0; --muted: #8e98b3;
    --line: #22304d; --brand: #9fb8ff; --accent-soft: rgba(223, 31, 38, .16); --ok-soft: rgba(31, 157, 69, .18); --warn: #fbbf24; --warn-soft: rgba(245, 165, 36, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .4); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 400 15px/1.85 Vazirmatn, Tahoma, sans-serif; -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 900; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.num { font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 2px; border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; }

/* buttons, chips, cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent; font: 700 15px Vazirmatn, Tahoma, sans-serif; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--primary { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 8px 22px rgba(223, 31, 38, .28); }
.btn--primary:hover { box-shadow: 0 10px 28px rgba(223, 31, 38, .36); }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.btn--light { background: #fff; color: #0b1220; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip--live { background: var(--accent-soft); color: var(--red); }
.chip--ok { background: var(--ok-soft); color: var(--green); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip .dot, .sn__live .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 17px; }
.icon:hover { background: var(--surface-2); }

/* header */
.sh { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.sh.is-scrolled { border-bottom-color: var(--line); }
.sh__in { height: var(--hdr); display: flex; align-items: center; gap: 14px; }
.sh__brand { flex: none; display: flex; align-items: center; }
.sh__logo { height: 38px; width: auto; }
.sh__logo--dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh__logo--light { display: none; } :root:not([data-theme="light"]) .sh__logo--dark { display: inline; } }
:root[data-theme="dark"] .sh__logo--light { display: none; } :root[data-theme="dark"] .sh__logo--dark { display: inline; }
.sh__tools { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.sh__clock { display: none; flex-direction: column; align-items: center; line-height: 1.2; padding: 0 10px; color: var(--ink-2); }
.sh__clock b { font-size: 14px; font-feature-settings: "tnum"; } .sh__clock small { font-size: 10.5px; color: var(--muted); }
.sh__login span { display: none; }
@media (min-width: 560px) { .sh__login span { display: inline; } }
@media (min-width: 1100px) { .sh__clock { display: flex; } }

.sn { display: none; }
.sn__a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; border: 0; background: none;
  font: 700 14.5px Vazirmatn, Tahoma, sans-serif; color: var(--ink-2); cursor: pointer; }
.sn__a:hover, .sn__dd.is-open > .sn__a { background: var(--surface-2); color: var(--ink); }
.sn__a.is-on { color: var(--ink); background: var(--surface-2); }
.sn__a i { font-size: 10px; opacity: .6; transition: transform .2s; }
.sn__dd.is-open > .sn__a i { transform: rotate(180deg); }
.sn__live { color: var(--red); } .sn__live .dot { display: inline-block; }
.sn__dd { position: relative; }
.sn__menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 230px; padding: 6px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; z-index: 60; }
.sn__menu--end { inset-inline-start: auto; inset-inline-end: 0; }
.sn__menu--lang { max-height: 70vh; overflow-y: auto; min-width: 200px; }
.sn__dd.is-open > .sn__menu { display: block; animation: drop .18s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.sn__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.sn__menu a:hover, .sn__menu a.is-on { background: var(--surface-2); color: var(--ink); }
.sn__menu a i { width: 18px; text-align: center; color: var(--muted); }
@media (min-width: 1000px) {
  .sn { display: flex; align-items: center; gap: 2px; margin-inline-start: 12px; }
  .sh__burger { display: none; }
}
/* phone: the menu becomes a drawer under the header */
@media (max-width: 999.98px) {
  body.nav-open .sn { display: flex; flex-direction: column; align-items: stretch; position: fixed; inset: var(--hdr) 0 auto 0; max-height: calc(100dvh - var(--hdr));
    overflow-y: auto; padding: 10px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: drop .2s var(--ease); }
  body.nav-open .sn__a { width: 100%; justify-content: space-between; height: 48px; font-size: 15.5px; }
  body.nav-open .sn__menu { position: static; box-shadow: none; border: 0; padding: 0 8px 6px; background: none; }
}

/* footer */
.sf { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); }
.sf__in { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding-top: 32px; padding-bottom: 22px; }
.sf__brand { grid-column: 1 / -1; }
.sf__brand .sh__logo { height: 40px; }
.sf__brand p { color: var(--muted); font-size: 13.5px; margin-top: 8px; max-width: 360px; }
.sf__col { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sf__col b { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.sf__col a:hover { color: var(--red); }
.enamad-badge img { height: 90px; width: auto; }
.sf__copy { padding-bottom: 22px; color: var(--muted); font-size: 12.5px; }
@media (min-width: 820px) { .sf__in { grid-template-columns: 2fr 1fr 1fr auto; } .sf__brand { grid-column: auto; } }

/* page heads and sections */
.ph { padding: 34px 0 18px; }
.ph h1 { font-size: clamp(24px, 4vw, 36px); }
.ph p { color: var(--muted); margin-top: 6px; max-width: 640px; }
.sec { padding: 28px 0; }
.sec__h { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec__h h2 { font-size: clamp(20px, 3vw, 28px); }
.sec__h a { color: var(--red); font-weight: 700; font-size: 14px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty i { font-size: 34px; opacity: .45; display: block; margin-bottom: 10px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; height: 38px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.tabs a.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabs a b { font-weight: 900; opacity: .7; }

/* tournament card (lists, home) */
.tc { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.tc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tc__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0b2851, #1d3f6f) center / cover no-repeat; }
.tc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%); }
.tc__date { position: absolute; z-index: 1; top: 12px; inset-inline-start: 12px; min-width: 58px; padding: 6px 8px; text-align: center; border-radius: 14px;
  background: rgba(255, 255, 255, .94); color: #0b1220; line-height: 1.25; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.tc__date b { display: block; font-size: 22px; font-weight: 900; } .tc__date small { font-size: 11.5px; font-weight: 700; }
.tc__badges { position: absolute; z-index: 1; bottom: 10px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tc__badges .chip { background: rgba(255, 255, 255, .92); color: #0b1220; }
.tc__badges .chip--live { background: var(--red); color: #fff; }
.tc__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tc__body h3 { font-size: 16.5px; line-height: 1.55; }
.tc__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.tc__meta i { margin-inline-end: 4px; }
.tc__go { margin-top: auto; padding-top: 8px; color: var(--red); font-weight: 700; font-size: 14px; }

/* news card */
.nc { overflow: hidden; display: flex; flex-direction: column; }
.nc__img { aspect-ratio: 16 / 9; background: var(--surface-2) center / cover no-repeat; }
.nc__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.nc__body h3 { font-size: 16px; line-height: 1.6; }
.nc__body p { color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc__meta { font-size: 12.5px; color: var(--muted); }

/* prose (news, help, info pages) */
.prose { font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; } .prose h3 { font-size: 18px; margin: 20px 0 6px; }
.prose p { margin: 0 0 14px; } .prose img { border-radius: 14px; margin: 10px 0; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 0 0 14px; }
.prose blockquote { margin: 16px 0; padding: 10px 16px; border-inline-start: 4px solid var(--red); background: var(--surface-2); border-radius: 10px; }

/* tournaments list filters */
.tf { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tf__q { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.tf__q i { color: var(--muted); }
.tf__q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.tf select { height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
.tf .btn { height: 46px; border-radius: 14px; }

/* news */
.nf { display: grid; overflow: hidden; }
.nf__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0b2851, #1d3f6f) center / cover no-repeat; }
.nf__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.nf__body h2 { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.55; }
.nf__body p { color: var(--muted); }
.nf__body .chip { align-self: flex-start; }
@media (min-width: 860px) { .nf { grid-template-columns: 1.2fr 1fr; } .nf__img { aspect-ratio: auto; min-height: 300px; } .nf__body { justify-content: center; padding: 28px; } }
.nc__body .chip { align-self: flex-start; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.pager a.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.na { max-width: 820px; padding-top: 26px; }
.na__pre { padding: 12px 16px; margin-bottom: 14px; background: var(--warn-soft); color: var(--warn); border: 0; }
.na__crumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; } .na__crumb i { font-size: 10px; } .na__crumb a:hover { color: var(--red); }
.na h1 { font-size: clamp(23px, 4vw, 34px); line-height: 1.6; margin: 10px 0; }
.na__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.na__meta i { margin-inline-end: 4px; }
.na__cover { width: 100%; border-radius: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.na__gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 16px 0; }
.na__gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.na__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.na__share { display: flex; align-items: center; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; }
.na__pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.na__pn a { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; } .na__pn a:last-child { text-align: end; }
.na__pn small { color: var(--muted); font-size: 12.5px; } .na__pn b { font-size: 14px; line-height: 1.6; }

/* glass button (on dark hero / CTA surfaces) */
.btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* message pages (404, closed …) */
.msg { text-align: center; padding-top: 70px; padding-bottom: 30px; max-width: 620px; }
.msg__code { font-size: clamp(64px, 14vw, 120px); font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--red-2), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.msg h1 { font-size: clamp(22px, 4vw, 30px); margin-top: 14px; }
.msg p { color: var(--muted); margin-top: 8px; }
.msg__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }

/* help / feature cards */
.hc { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hc__i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; background: var(--accent-soft); color: var(--red); }
.hc h2 { font-size: 17px; }
.hc ol, .hc ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.hc p { font-size: 14px; }
.hc__go { margin-top: auto; color: var(--red); font-weight: 700; font-size: 14px; }

/* forms */
.fm { padding: 20px; }
.fm__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .fm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fl--wide { grid-column: 1 / -1; } }
@media (min-width: 980px) { .fm__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fl b { color: var(--red); }
.fl input, .fl select, .fl textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
  font: 400 15px Vazirmatn, Tahoma, sans-serif; color: var(--ink); outline: 0; transition: border-color .15s, background .15s; }
.fl textarea { resize: vertical; line-height: 1.9; }
.fl input:focus, .fl select:focus, .fl textarea:focus { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); background: var(--surface); }
.fm__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.fm__msg { font-size: 14px; font-weight: 700; } .fm__msg.is-ok { color: var(--green); } .fm__msg.is-err { color: var(--red); }

/* contact */
.cg { display: grid; gap: 14px; }
@media (min-width: 900px) { .cg { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; } }
.cg__side { display: grid; gap: 14px; }
.cb { padding: 18px 20px; }
.cb h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .cb h2 i { color: var(--red); }
.cb ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.cb li { display: flex; gap: 10px; } .cb li i { color: var(--muted); margin-top: 6px; width: 16px; text-align: center; }
.cb a { color: var(--red); font-weight: 700; }
.cb p { font-size: 14px; color: var(--ink-2); }
.cb--warn { background: var(--warn-soft); border-color: transparent; } .cb--warn h2 i { color: var(--warn); }

/* live */
.lv { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.lv--main { margin-bottom: 4px; }
.lv h2 { font-size: 20px; } .lv h3 { font-size: 16.5px; }
.lv__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lv__date { font-size: 13px; margin-inline-start: auto; }
.lv__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.lv__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lv__warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; }
.lv__warn p { color: var(--ink-2); margin-top: 4px; }
.lv__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.lv__note { padding: 12px 16px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }

/* tables */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

/* ranking */
.rk__f { margin-bottom: 14px; }
.rk__n { min-width: 32px; height: 32px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-weight: 900; }
.rk__n--1 { background: #f6d77a; color: #5a4300; } .rk__n--2 { background: #dfe3ea; color: #3c4660; } .rk__n--3 { background: #ecc29b; color: #5b3210; }

/* information pages */
.ip { text-align: center; padding: 40px 0 8px; max-width: 760px; margin: 0 auto; }
.ip__i { width: 70px; height: 70px; border-radius: 22px; display: inline-grid; place-items: center; font-size: 28px; color: #fff;
  background: linear-gradient(145deg, #16325f, #0b2851); box-shadow: 0 14px 30px -14px rgba(11, 40, 81, .6); margin-bottom: 16px; }
.ip h1 { font-size: clamp(26px, 4.4vw, 40px); }
.ip p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.ip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ip__list .card { display: flex; gap: 10px; padding: 12px 14px; font-size: 14px; border-radius: 14px; box-shadow: none; }
.ip__list i { color: var(--green); margin-top: 6px; }
.ip__cta { margin-top: 20px; padding: 32px 24px; border-radius: var(--r-lg); text-align: center; color: #fff;
  background: linear-gradient(135deg, #16325f 0%, #0b2851 55%, #8f1620 100%); }
.ip__cta h2 { font-size: clamp(19px, 3vw, 24px); } .ip__cta p { color: rgba(255, 255, 255, .85); margin-top: 6px; }
.ip__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Site channels: /channels page, footer icons, contact sidebar, news bar */
.chn { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 8px 0 28px; }
.chn__i { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; text-align: center; text-decoration: none; color: inherit; }
.chn__i > i { font-size: 34px; }
.chn--mini { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 0; }
.chn--mini .chn__i { padding: 10px 6px; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; }
.chn--mini .chn__i > i { font-size: 24px; }
.chn__i--telegram > i { color: #229ed9; } .chn__i--whatsapp > i { color: #25d366; } .chn__i--instagram > i { color: #e1306c; }
.chn__i--aparat > i { color: #df0f50; } .chn__i--eitaa > i { color: #ef7f1a; } .chn__i--bale > i { color: #2fbf71; } .chn__i--rubika > i { color: #7b3fe4; }
.sf__icons { display: flex; flex-wrap: wrap; gap: 10px; font-size: 20px; margin: 4px 0 6px; }
.chn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.chn-bar a > i { font-size: 20px; }

/* Home: discipline details window (click a logo in the strip) */
.dpop { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 16px; padding: 18px 18px 16px;
  background: var(--surface, #fff); color: var(--ink, #111); box-shadow: 0 24px 60px rgba(0,0,0,.25); }   /* --card did not exist: white box + light text in dark mode */
.dpop::backdrop { background: rgba(8, 12, 24, .55); }
.dpop__x { position: absolute; inset-inline-end: 10px; top: 10px; margin: 0; }
.dpop__x button { border: 0; background: none; font-size: 18px; cursor: pointer; color: inherit; }
.dpop__head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding-inline-end: 28px; }
.dpop__head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.dpop__head h3 { margin: 0; font-size: 18px; } .dpop__head p { margin: 2px 0 0; opacity: .7; font-size: 13px; }
.dpop__list { margin: 0 0 14px; }
.dpop__row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line, rgba(0,0,0,.08)); }
.dpop__row dt { opacity: .7; } .dpop__row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dpop__none { opacity: .55; }

/* theme button: one icon per mode (auto · light · dark), picked by <html data-theme-mode> */
[data-theme-toggle] .tt-i { display: none; }
:root:not([data-theme-mode]) [data-theme-toggle] .tt-auto,
:root[data-theme-mode="auto"] [data-theme-toggle] .tt-auto,
:root[data-theme-mode="light"] [data-theme-toggle] .tt-light,
:root[data-theme-mode="dark"] [data-theme-toggle] .tt-dark { display: inline-block; }

.sn__menu--lang .ln__own { margin-inline-start: auto; font-size: 11px; color: var(--muted); }
