/* =========================================================
   Victory Team — FC27 Pro Club
   Clean & elegant · bilingual (RTL/LTR) · light & dark
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg:            #f6f6f4;
  --bg-elev:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #fbfbfa;
  --line:          #e6e5e1;
  --line-strong:   #d3d2cd;
  --ink:           #14171c;
  --ink-2:         #3d434d;
  --muted:         #767c86;
  --accent:        #0e5c4a;
  --accent-soft:   #e7f1ee;
  --accent-ink:    #ffffff;
  --gold:          #a8813f;
  --shadow-sm:     0 1px 2px rgba(20, 23, 28, .04);
  --shadow-md:     0 8px 24px -12px rgba(20, 23, 28, .18);
  --shadow-lg:     0 30px 70px -30px rgba(20, 23, 28, .35);

  --radius:        14px;
  --radius-lg:     22px;
  --wrap:          1180px;
  --header-h:      68px;

  --font-ar:       "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font-en:       "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-display:  "Playfair Display", "Tajawal", Georgia, serif;

  --t:             .35s cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg:          #0c0e12;
  --bg-elev:     #12151b;
  --surface:     #14181f;
  --surface-2:   #191e26;
  --line:        #232a34;
  --line-strong: #333c48;
  --ink:         #eef1f5;
  --ink-2:       #c2c9d3;
  --muted:       #8b94a1;
  --accent:      #3ea88c;
  --accent-soft: #12231f;
  --accent-ink:  #04120e;
  --gold:        #d0a961;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md:   0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg:   0 40px 90px -40px rgba(0, 0, 0, .9);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t), color var(--t);
}

html[lang="ar"] body { font-family: var(--font-ar); }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 10px 10px;
  transition: inset-block-start var(--t);
}
.skip-link:focus { inset-block-start: 0; }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-block-end: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}
.brand-crest { width: 40px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand-sub {
  font-size: .66rem;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  position: relative;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 6px;
  transition: color var(--t);
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform var(--t);
}
html[dir="rtl"] .site-nav a::after { --origin: right; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle__sep { color: var(--muted); }
.lang-toggle__opt { color: var(--muted); transition: color var(--t); }
.lang-toggle__opt.is-active { color: var(--ink); font-weight: 700; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), transform var(--t);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(15deg); }
.icon--sun { display: none; }
html[dir="ltr"] .icon--sun { display: block; }
html[dir="ltr"] .icon--moon { display: none; }

/* ---------- 4. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 110px) clamp(40px, 6vw, 70px); }

.hero-glow {
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: min(900px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 62%);
  pointer-events: none;
  filter: blur(10px);
}

.hero-inner { position: relative; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-title {
  margin-block: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.hero-title em {
  display: block;
  font-family: var(--font-ar);
  font-style: normal;
  font-size: .42em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .04em;
  margin-block-start: 6px;
}
html[dir="ltr"] .hero-title em { font-family: var(--font-en); letter-spacing: .22em; text-transform: uppercase; font-size: .26em; }

.hero-tagline {
  margin-block-start: 18px;
  color: var(--ink-2);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-block-start: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform var(--t), background var(--t), border-color var(--t), color var(--t);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-block-start: clamp(40px, 6vw, 64px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-elev);
  padding: 24px 12px;
  transition: background var(--t);
}
.stat dt {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat dd {
  margin-block-start: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1;
}

/* ---------- 5. Section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 26px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}
html[dir="ltr"] .section-title { letter-spacing: -.01em; }
.section-sub {
  margin-block-start: 8px;
  color: var(--muted);
  max-width: 52ch;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color var(--t), box-shadow var(--t);
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: .92rem;
}
.search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(.5); }

/* ---------- 5b. Live strip (EA data) ---------- */
.live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-block-start: 22px;
  padding: 14px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.live-strip[hidden] { display: none; }

.live-strip__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: .6;
  animation: pulse 2s var(--t) infinite;
}
@keyframes pulse { to { transform: scale(1.7); opacity: 0; } }

.live-strip__stats { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ls { text-align: center; line-height: 1.25; }
.ls b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.ls span { font-size: .68rem; color: var(--muted); letter-spacing: .06em; }

.live-strip__time { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.live-strip__link { font-size: .76rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.live-strip__link:hover { color: var(--accent); }

@media (max-width: 640px) {
  .live-strip { gap: 12px; padding: 14px 16px; }
  .live-strip__stats { gap: 6px 14px; }
  .live-strip__time, .live-strip__link { flex: 1 0 100%; text-align: center; }
}

/* ---------- 5c. Live numbers on cards / modal ---------- */
.card__live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-block-start: 12px;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line);
  font-size: .68rem;
  color: var(--muted);
}
.card__live span { display: inline-flex; align-items: baseline; gap: 4px; }
.card__live b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.card__live-rate b { color: var(--gold); }

.m-sub {
  margin-block-start: 18px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-rows--live .m-row dd { color: var(--accent); font-weight: 600; }

/* ---------- 6. Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-end: 30px;
}
.chip {
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.chip__count {
  font-size: .78em;
  opacity: .65;
  margin-inline-start: 6px;
}

/* ---------- 7. Players grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  animation: pop .4s var(--t) backwards;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-md);
}

.card__num {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-end: 6px;
  font-family: var(--font-display);
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  opacity: .045;
  pointer-events: none;
  user-select: none;
}

.card__avatar {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  background: linear-gradient(145deg, var(--c1, #0e5c4a), var(--c2, #123f36));
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line);
  overflow: hidden;
}
.card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.card__name {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}
.card__name-en {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 400;
  direction: ltr;
}
.card__role {
  display: inline-block;
  margin-block-start: 10px;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 500;
}
.card__foot {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-block-start: 14px;
  padding-block-start: 14px;
  border-block-start: 1px dashed var(--line);
  font-size: .78rem;
  color: var(--muted);
}
.card__foot span { display: inline-flex; align-items: center; gap: 5px; }

.card__captain {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .06em;
}
.card__captain svg { width: 13px; height: 13px; fill: currentColor; }

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- 8. Matches ---------- */
.fixtures { padding-block: clamp(56px, 9vw, 96px) 0; }

.tabs { display: flex; gap: 8px; }
.tab {
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t);
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 500; }

.match-list { display: grid; gap: 10px; }

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.match:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.match--us { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.match__side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.match__side--away { justify-content: flex-end; text-align: end; }

.match__club { font-weight: 600; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__club small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); direction: ltr; }

.match__badge {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.match__side--us .match__badge {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.match__core { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 132px; }
.match__score {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  direction: ltr;
}
.match__score--vs { font-size: 1rem; color: var(--muted); letter-spacing: .12em; }
.match__comp { font-size: .72rem; color: var(--muted); text-align: center; }

.match__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.match__status--win  { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.match__status--draw { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); }
.match__status--loss { background: color-mix(in srgb, #c0392b 14%, transparent); color: #c0392b; }
[data-theme="dark"] .match__status--loss { color: #ef7a6c; }
.match__status--next { background: var(--accent-soft); color: var(--accent); }

.match__meta { margin-block-start: 2px; font-size: .72rem; color: var(--muted); text-align: center; }

/* ---------- 9. Standings ---------- */
.standings { padding-block: clamp(56px, 9vw, 96px) 0; }
.legend { font-size: .8rem; color: var(--muted); }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.league-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
.league-table th, .league-table td { padding: 13px 12px; text-align: center; white-space: nowrap; }
.league-table thead th {
  background: var(--surface-2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-block-end: 1px solid var(--line);
}
.league-table tbody tr { border-block-end: 1px solid var(--line); transition: background var(--t); }
.league-table tbody tr:last-child { border-block-end: 0; }
.league-table tbody tr:hover { background: var(--surface-2); }
.league-table .col-pos { width: 46px; color: var(--muted); }
.league-table .col-team { text-align: start; font-weight: 600; }
.league-table .col-pts { font-weight: 700; }
.league-table tr.is-us { background: var(--accent-soft); }
.league-table tr.is-us:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.league-table tr.is-us .col-team { color: var(--accent); font-weight: 700; }
.league-table small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); direction: ltr; }
.col-hide-sm { display: none; }

.form { display: inline-flex; gap: 4px; }
.form i {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-style: normal;
  font-size: .62rem;
  font-weight: 700;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--muted);
}
.form i.w { background: var(--accent); box-shadow: none; color: var(--accent-ink); }
.form i.d { background: var(--gold); box-shadow: none; color: #fff; }
.form i.l { background: color-mix(in srgb, #c0392b 82%, transparent); box-shadow: none; color: #fff; }

/* ---------- 10. Gallery ---------- */
.gallery { padding-block: clamp(56px, 9vw, 96px) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: zoom-in;
  padding: 0;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--t), filter .4s var(--t);
}
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(6, 8, 12, .82), transparent);
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  text-align: start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t);
}
.tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(6, 8, 12, .88); animation: fade .25s var(--t); }
.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(100%, 980px);
  animation: pop .3s var(--t);
}
.lightbox__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #0b0d11;
}
.lightbox__figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-block-start: 12px;
  color: #e7eaef;
  font-size: .9rem;
}
.lightbox__count { color: #8b94a1; direction: ltr; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  background: rgba(20, 24, 30, .7);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.lightbox__btn:hover { background: var(--accent); transform: scale(1.06); }
.lightbox__btn--close { inset-block-start: -52px; inset-inline-end: 0; }
.lightbox__btn--prev { inset-block-start: 50%; inset-inline-start: 14px; translate: 0 -50%; }
.lightbox__btn--next { inset-block-start: 50%; inset-inline-end: 14px;  translate: 0 -50%; }
html[dir="rtl"] .lightbox__btn--prev svg { transform: scaleX(-1); }
html[dir="rtl"] .lightbox__btn--next svg { transform: scaleX(-1); }

/* ---------- 11. Join ---------- */
.join {
  margin-block: clamp(56px, 9vw, 96px) clamp(56px, 9vw, 90px);
}
.join-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 12. Footer ---------- */
.site-footer {
  border-block-start: 1px solid var(--line);
  background: var(--bg-elev);
  padding-block: 44px 26px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--font-display); font-weight: 700; }
.footer-sub { font-size: .78rem; color: var(--muted); }

.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: all var(--t);
}
.socials a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-block-start: 34px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- 13. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, .55);
  backdrop-filter: blur(4px);
  animation: fade .25s var(--t);
}
.modal__panel {
  position: relative;
  width: min(100%, 460px);
  max-height: 86vh;
  overflow-y: auto;
  padding: 34px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: pop .3s var(--t);
}

.m-avatar {
  width: 104px; height: 104px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, var(--c1, #0e5c4a), var(--c2, #123f36));
  box-shadow: 0 0 0 5px var(--surface-2), 0 0 0 6px var(--line);
  overflow: hidden;
}
.m-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.m-name-en { color: var(--muted); font-size: .92rem; direction: ltr; }
.m-role {
  display: inline-block;
  margin-block: 14px 22px;
  padding: 5px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
}
.m-rows { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: start; }
.m-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  font-size: .9rem;
}
.m-row dt { color: var(--muted); }
.m-row dd { font-weight: 600; }

.m-close {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--t);
}
.m-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.m-bar {
  margin-block-start: 22px;
}
.m-bar-track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.m-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .9s var(--t); }
.m-bar-label { display: block; margin-block-start: 8px; font-size: .8rem; color: var(--muted); }

/* ---------- 14. Motion & reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--t), transform .6s var(--t); }

@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 860px) {
  html { scroll-padding-top: 124px; }
  .header-inner { flex-wrap: wrap; padding-block: 10px 0; }
  .site-nav {
    order: 3;
    display: flex;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-block: 10px;
    border-block-start: 1px solid var(--line);
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; font-size: .88rem; }
  .site-nav a::after { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .search { min-width: 100%; }
  .section-head { flex-direction: column; align-items: stretch; }
  .join-inner { flex-direction: column; align-items: flex-start; }
  .join-actions { width: 100%; }
  .join-actions .btn { flex: 1; }

  .col-hide-sm { display: none; }
  .lightbox__btn--prev { inset-inline-start: 8px; }
  .lightbox__btn--next { inset-inline-end: 8px; }
}

@media (max-width: 640px) {
  .match {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
    padding: 20px 16px;
  }
  .match__side { justify-content: center; }
  .match__side--away { flex-direction: row-reverse; text-align: center; }
  .match__core { order: -1; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
}

@media (max-width: 460px) {
  .wrap { width: calc(100% - 32px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card { padding: 22px 14px 18px; }
  .card__avatar { width: 74px; height: 74px; font-size: 1.5rem; }
  .card__num { font-size: 4rem; }
  .brand-sub { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile figcaption { opacity: 1; transform: none; padding: 20px 12px 10px; font-size: .8rem; }
  .lightbox { padding: 14px; }
}

/* ---------- 16. Print ---------- */
@media print {
  .site-header, .join, .site-footer, .filters, .search, .modal, .lightbox, .tabs { display: none; }
  .card, .match, .tile { break-inside: avoid; box-shadow: none; }
}
