:root {
  --forest-950: #031d19;
  --forest-900: #052d27;
  --forest-800: #0a3b32;
  --forest-700: #155647;
  --paper: #fbfaf7;
  --paper-warm: #f4f0e8;
  --ink: #11211e;
  --muted: #66736f;
  --line: #e4e2dc;
  --gold: #b98b3f;
  --gold-light: #d3b477;
  --silver: #87918f;
  --bronze: #a66d48;
  --red: #d83939;
  --green: #17804f;
  --shadow: 0 18px 50px rgb(17 33 30 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
summary {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  color: white;
  background:
    radial-gradient(circle at 18% -60%, rgb(26 96 78 / 45%), transparent 48%),
    var(--forest-950);
  box-shadow: 0 8px 28px rgb(3 29 25 / 18%);
}

.site-header__inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 32px;
}

.site-header__brand {
  flex: none;
}

.language-switch { display: flex; gap: 4px; flex: none; }
.language-switch a { padding: 8px; border-radius: 5px; font-size: 12px; font-weight: 700; }
.language-switch a[aria-current] { background: var(--green, #173f32); color: white; }
.language-switch a:focus-visible { outline: 2px solid #b99447; outline-offset: 2px; }
.team-page { padding-top: 58px; padding-bottom: 64px; }
.team-page__heading { max-width: 720px; margin: 0 auto 30px; text-align: center; }
.team-page__heading h1 { font-size: clamp(32px, 5vw, 48px); margin: 12px 0; }
.team-page__heading > p:last-child { line-height: 1.7; color: var(--muted); }
.team-photo { max-width: 1004px; margin: 0 auto; }
.team-photo img { display: block; width: 100%; height: auto; border-radius: 12px; }
.team-photo figcaption { margin-top: 12px; color: var(--muted); text-align: center; font-size: 13px; }

.club-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.club-logo__mark {
  width: 54px;
  height: 54px;
  flex: none;
}

.club-logo__mark--compact {
  width: 48px;
  height: 48px;
}

.club-logo__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(46.75% at 50% 50%);
}

.club-logo__name {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
}

.desktop-nav a {
  position: relative;
  padding-block: 31px;
  color: rgb(255 255 255 / 84%);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 50%;
  bottom: 22px;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--gold-light);
  transition: inset 180ms ease;
}

.desktop-nav a:hover {
  color: white;
}

.desktop-nav a:hover::after {
  right: 0;
  left: 0;
}

.social-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
}

.social-icon {
  width: 19px;
  height: 19px;
  display: block;
}

.mobile-nav {
  display: none;
  margin-left: auto;
}

.mobile-nav summary {
  display: grid;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 12px;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: grid;
  padding: 14px 20px 20px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  background: var(--forest-950);
  box-shadow: 0 20px 30px rgb(3 29 25 / 20%);
}

.mobile-nav nav a {
  padding: 13px 5px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  font-size: 14px;
  font-weight: 650;
}

.leaderboard-page {
  min-height: 680px;
  padding: 62px 0 78px;
  background:
    linear-gradient(rgb(251 250 247 / 95%), rgb(251 250 247 / 95%)),
    radial-gradient(circle at 50% 20%, rgb(185 139 63 / 15%), transparent 42%);
}

.leaderboard-hero {
  text-align: center;
}

.season-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.leaderboard-hero h1,
.placeholder-page h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 53px);
  font-weight: 820;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.tricolour-rule {
  display: flex;
  width: 96px;
  margin: 20px auto;
}

.tricolour-rule span {
  width: 33.33%;
  height: 3px;
}

.tricolour-rule span:first-child {
  background: var(--green);
}

.tricolour-rule span:nth-child(2) {
  background: #dedbd3;
}

.tricolour-rule span:last-child {
  background: var(--red);
}

.leaderboard-intro {
  max-width: 600px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.leaderboard-tabs {
  display: flex;
  width: min(650px, 100%);
  margin: 0 auto 22px;
  justify-content: center;
  gap: 62px;
  border-bottom: 1px solid var(--line);
}

.leaderboard-tabs button {
  position: relative;
  min-height: 54px;
  padding: 0 8px;
  cursor: pointer;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.leaderboard-tabs button::after {
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: inset 180ms ease;
}

.leaderboard-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.leaderboard-tabs button[aria-selected="true"]::after {
  right: 0;
  left: 0;
}

.leaderboard-panel {
  width: min(1000px, 100%);
  min-height: 320px;
  margin: 0 auto;
}

.leaderboard-table {
  overflow: hidden;
  text-align: left;
  border: 1px solid rgb(228 226 220 / 80%);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.leaderboard-table__header,
.leaderboard-row {
  display: grid;
  grid-template-columns: 68px minmax(260px, 1fr) 105px 105px 44px;
  align-items: center;
}

.leaderboard-table__header {
  min-height: 50px;
  padding: 0 25px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.leaderboard-row {
  min-height: 78px;
  padding: 0 25px;
  cursor: pointer;
  border-top: 1px solid var(--line);
  transition: background 160ms ease, transform 160ms ease;
}

.leaderboard-row:hover,
.leaderboard-row:focus-visible {
  background: #f7f5ef;
}

.player-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.player-cell > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.player-cell strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-cell small,
.leaderboard-card__identity small {
  color: var(--muted);
  font-size: 12px;
}

.player-avatar {
  position: relative;
  display: inline-grid;
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  flex: none;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgb(255 255 255 / 95%);
  border-radius: 999px;
  background: var(--forest-800);
  box-shadow: 0 0 0 1px rgb(5 45 39 / 15%);
}

.player-avatar--40 {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.player-avatar--42 {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
}

.player-avatar--44 {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
}

.player-avatar--48 {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
}

.player-avatar--52 {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
}

.player-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.player-avatar__initials {
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.rank {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 780;
}

.rank--gold {
  background: #f4ead5;
  color: #946b24;
}

.rank--silver {
  background: #edf0ef;
  color: #68726f;
}

.rank--bronze {
  background: #f3e4db;
  color: #8b5738;
}

.row-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--forest-700);
  background: #eef4f1;
}

.leaderboard-cards {
  display: none;
}

.leaderboard-empty {
  padding: 70px 24px;
  border: 1px dashed #cfcac0;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.leaderboard-empty p {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 760;
}

.leaderboard-empty span {
  color: var(--muted);
  line-height: 1.6;
}

.player-dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 24px;
  color: white;
  background: transparent;
  box-shadow: 0 35px 100px rgb(0 0 0 / 42%);
}

.player-dialog::backdrop {
  background: rgb(2 18 15 / 72%);
  backdrop-filter: blur(5px);
}

body.has-open-dialog {
  overflow: hidden;
}

.player-dialog__panel {
  position: relative;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 24px;
  background:
    radial-gradient(circle at 70% 0, rgb(30 91 75 / 58%), transparent 45%),
    var(--forest-950);
}

.player-dialog__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  color: white;
  background: rgb(3 29 25 / 74%);
}

.player-dialog__photo {
  position: relative;
  height: min(480px, 60vh);
  overflow: hidden;
  background: #171b1a;
}

.player-dialog__photo::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  content: "";
  background: linear-gradient(transparent, var(--forest-950));
}

.player-dialog__photo img {
  object-fit: cover;
  object-position: center 16%;
}

.player-dialog__content {
  position: relative;
  z-index: 1;
  margin-top: -32px;
  padding: 0 28px 28px;
  text-align: left;
}

.player-dialog__eyebrow {
  margin: 0 0 6px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.player-dialog__content h2 {
  margin: 0 0 6px;
  font-size: 29px;
  line-height: 1.1;
}

.player-dialog__content > p:last-of-type {
  margin: 0;
  color: rgb(255 255 255 / 63%);
  font-size: 14px;
}

.player-dialog__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 23px 0 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 14px;
}

.player-dialog__stats div {
  padding: 14px 18px;
}

.player-dialog__stats div + div {
  border-left: 1px solid rgb(255 255 255 / 12%);
}

.player-dialog__stats dt {
  color: rgb(255 255 255 / 60%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-dialog__stats dd {
  margin: 3px 0 0;
  font-size: 25px;
  font-weight: 800;
}

.site-footer {
  padding: 45px 0;
  color: rgb(255 255 255 / 72%);
  background:
    linear-gradient(135deg, rgb(8 60 50 / 45%), transparent 42%),
    var(--forest-950);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 50px;
}

.site-footer__intro .club-logo {
  margin-bottom: 14px;
  color: white;
}

.site-footer__intro p {
  margin: 4px 0;
  font-size: 13px;
}

.site-footer h2 {
  margin: 4px 0 15px;
  color: white;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer__grid > div:not(:first-child) {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.site-footer a,
.site-footer button {
  font-size: 13px;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer button:hover {
  color: white;
}

.cookie-settings-button {
  padding: 0;
  cursor: pointer;
  border: 0;
  color: inherit;
  background: transparent;
}

.site-footer__socials {
  display: flex;
  gap: 12px;
}

.site-footer__socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
}

.site-footer__socials .social-icon {
  width: 18px;
  height: 18px;
}

.cookie-consent {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  width: min(520px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 18px;
  color: white;
  background: var(--forest-950);
  box-shadow: 0 24px 70px rgb(3 29 25 / 35%);
}

.cookie-consent h2 {
  margin: 0 0 9px;
  font-size: 19px;
}

.cookie-consent p {
  margin: 0 0 9px;
  color: rgb(255 255 255 / 76%);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-consent > a {
  color: var(--gold-light);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  margin-top: 20px;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-consent__actions button {
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 8px;
  color: white;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.cookie-consent__actions .cookie-consent__accept {
  border-color: var(--green);
  background: var(--green);
}

.placeholder-page {
  display: grid;
  min-height: 620px;
  padding: 60px 20px;
  place-items: center;
  background: var(--paper-warm);
}

.placeholder-page__card {
  width: min(680px, 100%);
  padding: 70px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.placeholder-page__card > p:not(.season-label) {
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.7;
}
.match-calendar-image { margin: 24px auto; max-width: 720px; }
.match-calendar-image img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 45px rgba(0, 24, 65, .22); }

.legal-page {
  padding: 64px 20px 80px;
  background: var(--paper-warm);
}

.legal-page__article {
  width: min(900px, 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.legal-page__header {
  padding: 58px 64px 42px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.legal-language {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 4px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
}

.legal-language a {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.legal-language a[aria-current="page"] {
  color: white;
  background: var(--forest-800);
}

.legal-page__header h1 {
  margin: 9px 0 18px;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.legal-page__header .tricolour-rule {
  margin-bottom: 18px;
}

.legal-page__updated {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 720;
}

.legal-page__introduction {
  max-width: 670px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-page__content {
  padding: 18px 64px 58px;
}

.legal-page__content section {
  padding: 30px 0;
}

.legal-page__content section + section {
  border-top: 1px solid var(--line);
}

.legal-page__content h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.legal-page__content p,
.legal-page__content li {
  color: #4f5e5a;
  line-height: 1.75;
}

.legal-page__content p {
  margin: 0;
}

.legal-page__content p + p,
.legal-page__content ul + p {
  margin-top: 14px;
}

.legal-page__content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-page__content li + li {
  margin-top: 7px;
}

.legal-page__content a {
  color: var(--forest-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
}

.legal-table-wrapper {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.legal-page table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  color: var(--forest-800);
  background: var(--paper-warm);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-page tbody tr:last-child td {
  border-bottom: 0;
}

.gold-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: white;
  background: var(--gold);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.leaderboard-loading {
  display: grid;
  width: min(1000px, 100%);
  margin: 60px auto 0;
  gap: 2px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--line);
}

.leaderboard-loading span {
  height: 78px;
  background: linear-gradient(90deg, #fff 20%, #f3f1eb 50%, #fff 80%);
  background-size: 200% 100%;
  animation: loading-sweep 1.5s infinite linear;
}

@keyframes loading-sweep {
  to {
    background-position: -200% 0;
  }
}

.spin {
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100dvh;
  padding: 28px;
  place-items: center;
  color: white;
  background:
    linear-gradient(135deg, rgb(2 26 22 / 94%), rgb(3 47 39 / 90%)),
    radial-gradient(circle at 75% 12%, #1f7763, transparent 42%);
}

.login-page::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.13;
  background: repeating-linear-gradient(120deg, transparent 0 90px, rgb(255 255 255 / 13%) 90px 130px);
  pointer-events: none;
}

.login-page__flag {
  position: absolute;
  top: 0;
  display: flex;
  width: 92px;
}

.login-page__flag span { width: 33.33%; height: 4px; }
.login-page__flag span:first-child { background: var(--green); }
.login-page__flag span:nth-child(2) { background: white; }
.login-page__flag span:last-child { background: var(--red); }

.login-card {
  position: relative;
  width: min(440px, 100%);
  padding: 44px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 22px;
  background: rgb(2 27 23 / 72%);
  box-shadow: 0 35px 90px rgb(0 0 0 / 34%);
  backdrop-filter: blur(16px);
}

.login-card > .club-logo { margin-bottom: 32px; }
.login-card__eyebrow { margin: 0 0 8px; color: var(--gold-light); font-size: 11px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.login-card h1 { margin: 0; font-size: 34px; letter-spacing: -0.03em; }
.login-card > p:not(.login-card__eyebrow) { margin: 8px 0 26px; color: rgb(255 255 255 / 64%); line-height: 1.5; }
.login-form { display: grid; gap: 17px; }

.form-field { display: grid; gap: 7px; }
.form-field label,
.photo-field__label { font-size: 12px; font-weight: 730; }
.form-field input,
.form-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d9ddd9;
  border-radius: 9px;
  color: var(--ink);
  background: white;
  font: inherit;
}
.form-field input:focus,
.form-field select:focus { border-color: var(--gold); outline: 3px solid rgb(185 139 63 / 18%); }
.login-form .form-field input { border-color: rgb(255 255 255 / 27%); color: white; background: rgb(255 255 255 / 5%); }
.login-form .form-field input:focus { border-color: var(--gold-light); }
.input-with-icon { position: relative; }
.input-with-icon > svg { position: absolute; top: 14px; left: 13px; color: rgb(255 255 255 / 62%); }
.input-with-icon input { padding-left: 40px; }
.input-with-icon--password input { padding-right: 42px; }
.input-with-icon--password button { position: absolute; top: 5px; right: 5px; display: grid; width: 36px; height: 36px; cursor: pointer; place-items: center; border: 0; color: rgb(255 255 255 / 66%); background: transparent; }
.field-error { min-height: 15px; margin: 0; color: #c93434; font-size: 11px; }
.login-form .field-error { color: #ffc1bc; }
.check-field { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.45; }
.check-field input { width: 17px; height: 17px; margin: 0; accent-color: var(--gold); }
.check-field--card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #faf9f6; }
.form-alert,
.form-success,
.form-warning { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.form-alert { color: #8f2929; background: #fff0ef; }
.login-form .form-alert { color: #ffd0cb; background: rgb(216 57 57 / 16%); }
.form-success { color: #17603f; background: #e9f6ef; }
.form-warning { color: #785b24; background: #fff7e4; }

.admin-primary-button,
.admin-secondary-button,
.danger-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--gold);
  font-size: 12px;
  font-weight: 760;
}
.admin-primary-button:disabled,
.admin-secondary-button:disabled,
.danger-button:disabled { cursor: not-allowed; opacity: 0.55; }
.login-form .admin-primary-button { width: 100%; min-height: 48px; margin-top: 4px; }
.admin-secondary-button { color: var(--forest-800); background: #edf3f0; }
.danger-button { border: 1px solid #e6b4b0; color: #9e302b; background: white; }
.danger-button--solid { width: 100%; margin-top: 8px; color: white; background: #a93630; }

.admin-app { min-height: 100dvh; background: #f4f5f3; }
.admin-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: 248px;
  padding: 24px 16px 18px;
  flex-direction: column;
  color: white;
  background:
    radial-gradient(circle at 10% 0, rgb(25 104 82 / 50%), transparent 38%),
    var(--forest-950);
}
.admin-sidebar__brand { padding: 0 9px 24px; border-bottom: 1px solid rgb(255 255 255 / 9%); }
.admin-sidebar nav,
.admin-mobile-menu nav { display: grid; margin-top: 20px; gap: 4px; }
.admin-sidebar nav a,
.admin-nav__disabled,
.admin-mobile-menu nav a {
  display: flex;
  min-height: 42px;
  padding: 0 11px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  font-weight: 640;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a[aria-current="page"],
.admin-mobile-menu nav a[aria-current="page"] { color: white; background: rgb(255 255 255 / 10%); }
.admin-sidebar nav a[aria-current="page"] { box-shadow: inset 3px 0 var(--gold-light); }
.admin-nav__disabled { margin-top: 12px; opacity: 0.45; }
.admin-sidebar__account { display: flex; margin-top: auto; padding: 14px 11px; align-items: center; gap: 9px; border-top: 1px solid rgb(255 255 255 / 9%); color: rgb(255 255 255 / 64%); font-size: 11px; }
.admin-logout { display: flex; width: 100%; min-height: 42px; padding: 0 11px; cursor: pointer; align-items: center; gap: 10px; border: 0; border-radius: 8px; color: rgb(255 255 255 / 72%); background: transparent; font-size: 12px; }
.admin-logout:hover { color: white; background: rgb(255 255 255 / 8%); }
.admin-mobile-header { display: none; }
.admin-main { min-height: 100dvh; margin-left: 248px; }
.admin-page { width: min(1240px, 100%); margin: 0 auto; padding: 36px clamp(24px, 4vw, 54px) 60px; }
.admin-page__header { display: flex; min-height: 80px; margin-bottom: 28px; align-items: center; justify-content: space-between; gap: 24px; }
.admin-page__header p,
.admin-panel__title p { margin: 0 0 5px; color: var(--gold); font-size: 10px; font-weight: 780; letter-spacing: 0.13em; text-transform: uppercase; }
.admin-page__header h1 { margin: 0 0 5px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.035em; }
.admin-page__header span { color: var(--muted); font-size: 13px; }
.back-link { display: inline-flex; margin-bottom: 8px; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 690; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-grid article { position: relative; padding: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgb(17 33 30 / 5%); }
.metric-grid article > span { display: grid; width: 38px; height: 38px; margin-bottom: 18px; place-items: center; border-radius: 9px; color: var(--forest-700); background: #edf4f1; }
.metric-grid p { margin: 0 0 5px; color: var(--muted); font-size: 11px; }
.metric-grid strong { font-size: 25px; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; margin-top: 18px; gap: 18px; }
.admin-panel { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 24px rgb(17 33 30 / 5%); }
.admin-panel__title { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; }
.admin-panel__title h2 { margin: 0; font-size: 18px; }
.admin-panel__title > svg { color: var(--gold); }
.leader-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.leader-card { position: relative; display: grid; grid-template-columns: 52px 1fr 20px; padding: 34px 13px 13px; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: #faf9f6; }
.leader-card__label { position: absolute; top: 11px; left: 13px; color: var(--gold); font-size: 9px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
.leader-card > span:not(.leader-card__label) { display: grid; gap: 3px; }
.leader-card strong { font-size: 12px; }
.leader-card small { color: var(--muted); font-size: 11px; }
.recent-list { display: grid; }
.recent-list > a { display: grid; grid-template-columns: 40px 1fr 16px; padding: 10px 0; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.recent-list > a:first-child { border-top: 0; }
.recent-list > a > span { display: grid; gap: 2px; }
.recent-list strong { font-size: 12px; }
.recent-list small { color: var(--muted); font-size: 10px; }

.admin-ranking,
.players-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 30px rgb(17 33 30 / 5%); }
.admin-ranking__head,
.admin-ranking__row { display: grid; grid-template-columns: 54px minmax(230px, 1fr) 90px 90px 120px; align-items: center; }
.admin-ranking__head,
.players-table__head { min-height: 46px; padding: 0 20px; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: 0.09em; text-transform: uppercase; }
.admin-ranking__row { min-height: 68px; padding: 0 20px; border-top: 1px solid var(--line); }
.admin-rank { color: var(--gold); font-weight: 780; }
.admin-player-cell { display: flex; min-width: 0; align-items: center; gap: 12px; }
.admin-player-cell > span { display: grid; min-width: 0; gap: 3px; }
.admin-player-cell strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-player-cell small { color: var(--muted); font-size: 10px; }
.stat-buttons { display: flex; justify-content: flex-end; gap: 7px; }
.stat-buttons button,
.icon-button { display: grid; width: 34px; height: 34px; cursor: pointer; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--forest-800); background: white; }
.stat-buttons button:hover,
.icon-button:hover { border-color: var(--gold-light); background: #faf7ef; }
.stat-buttons button:disabled { cursor: not-allowed; opacity: 0.38; }
.mobile-stat-label { display: none; }
.admin-toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; min-width: 260px; min-height: 0; padding: 0; border-radius: 9px; color: white; font-size: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / 20%); }
.admin-toast:not(:empty) { padding: 13px 16px; }
.admin-toast--success { background: var(--forest-700); }
.admin-toast--error { background: #9e302b; }
.admin-empty { padding: 70px 24px; border: 1px dashed #c9ceca; border-radius: 14px; background: white; text-align: center; }
.admin-empty p { margin: 0 0 7px; font-size: 18px; font-weight: 750; }
.admin-empty span,
.admin-empty a { color: var(--muted); font-size: 13px; }

.players-table__head,
.players-table__row { display: grid; grid-template-columns: minmax(230px, 1fr) 70px 70px 70px 110px 60px; align-items: center; }
.players-table__row { min-height: 70px; padding: 0 20px; border-top: 1px solid var(--line); font-size: 12px; }
.status-pill { min-width: 76px; min-height: 30px; cursor: pointer; border: 1px solid #d9ddda; border-radius: 999px; color: var(--muted); background: #f1f2f1; font-size: 10px; font-weight: 750; }
.status-pill--active { border-color: #b6d9c7; color: #17603f; background: #e8f5ee; }

.player-form { display: grid; grid-template-columns: minmax(0, 1fr) 240px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 30px rgb(17 33 30 / 5%); }
.player-form__fields { display: grid; grid-template-columns: 1fr 1fr; padding: 28px; gap: 8px 18px; }
.player-form__fields .form-field:first-child,
.player-form__fields .check-field { grid-column: 1 / -1; }
.photo-field { display: flex; padding: 28px; align-items: stretch; flex-direction: column; gap: 10px; border-left: 1px solid var(--line); background: #faf9f6; }
.photo-preview { position: relative; display: grid; width: 150px; height: 180px; margin: 2px auto 5px; overflow: hidden; place-items: center; border: 1px dashed #bdc5c0; border-radius: 12px; color: var(--muted); background: white; }
.photo-preview img { object-fit: cover; object-position: center 18%; }
.photo-field small { color: var(--muted); font-size: 10px; text-align: center; }
.player-form__footer { display: flex; min-height: 76px; padding: 16px 28px; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.player-form__footer > p { max-width: 520px; }
.danger-zone { display: flex; margin-top: 24px; padding: 22px; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #edcbc8; border-radius: 14px; background: #fff9f8; }
.danger-zone h2 { margin: 0 0 5px; color: #8d2c28; font-size: 16px; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 12px; }
.confirm-dialog { position: fixed; z-index: 80; inset: 0; display: grid; padding: 20px; place-items: center; background: rgb(2 18 15 / 72%); backdrop-filter: blur(4px); }
.confirm-dialog__panel { position: relative; width: min(460px, 100%); padding: 30px; border-radius: 16px; background: white; box-shadow: 0 35px 100px rgb(0 0 0 / 35%); }
.confirm-dialog__close { position: absolute; top: 13px; right: 13px; display: grid; width: 36px; height: 36px; cursor: pointer; place-items: center; border: 0; border-radius: 999px; background: #f2f2f0; }
.danger-icon { color: #a93630; }
.confirm-dialog h2 { margin: 13px 0 8px; }
.confirm-dialog p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.confirm-dialog .form-field { margin: 19px 0 13px; }
.admin-loading { display: grid; gap: 12px; }
.admin-loading span { height: 110px; border-radius: 14px; background: linear-gradient(90deg, white 20%, #e9ece9 50%, white 80%); background-size: 200% 100%; animation: loading-sweep 1.5s infinite linear; }

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 72px;
    gap: 12px;
  }

  .language-switch { margin-left: auto; }

  .desktop-nav,
  .desktop-social {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .leaderboard-page {
    padding-top: 48px;
  }

  .leaderboard-table {
    display: none;
  }

  .leaderboard-cards {
    display: grid;
    gap: 10px;
  }

  .leaderboard-card {
    position: relative;
    display: grid;
    grid-template-columns: 30px 48px minmax(0, 1fr) 44px 48px 18px;
    min-height: 76px;
    padding: 10px 12px;
    cursor: pointer;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: white;
    box-shadow: 0 8px 25px rgb(17 33 30 / 6%);
    text-align: left;
  }

  .leaderboard-card__identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
  }

  .leaderboard-card__identity strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leaderboard-card__stat {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
  }

  .leaderboard-card__stat small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .leaderboard-card__stat strong {
    font-size: 16px;
  }

  .leaderboard-card__arrow {
    color: var(--forest-700);
  }

  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .site-footer__grid > div:last-child {
    grid-column: 2 / -1;
  }

  .admin-sidebar { display: none; }
  .admin-mobile-header { position: sticky; z-index: 40; top: 0; display: flex; height: 68px; padding: 0 18px; align-items: center; justify-content: space-between; color: white; background: var(--forest-950); box-shadow: 0 8px 24px rgb(3 29 25 / 18%); }
  .admin-mobile-menu summary { display: grid; width: 42px; height: 42px; cursor: pointer; list-style: none; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 9px; }
  .admin-mobile-menu summary::-webkit-details-marker { display: none; }
  .admin-mobile-menu > div { position: absolute; top: 68px; right: 0; left: 0; padding: 3px 18px 17px; background: var(--forest-950); box-shadow: 0 20px 30px rgb(3 29 25 / 20%); }
  .admin-mobile-menu nav { margin-top: 0; }
  .admin-main { margin-left: 0; }
  .admin-page { padding-top: 25px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
  }

  .club-logo__name {
    font-size: 12px;
  }

  .leaderboard-page {
    min-height: 620px;
    padding: 38px 0 54px;
  }

  .legal-page {
    padding: 28px 14px 46px;
  }

  .legal-page__article {
    border-radius: 18px;
  }

  .legal-page__header {
    padding: 38px 22px 30px;
  }

  .legal-page__content {
    padding: 8px 22px 34px;
  }

  .legal-page__content section {
    padding: 25px 0;
  }

  .legal-page__content h2 {
    font-size: 20px;
  }

  .legal-page__content p,
  .legal-page__content li {
    font-size: 14px;
  }

  .leaderboard-hero h1,
  .placeholder-page h1 {
    max-width: 100%;
    font-size: clamp(24px, 7.7vw, 34px);
  }

  .leaderboard-intro {
    margin-bottom: 25px;
    font-size: 14px;
  }

  .leaderboard-tabs {
    gap: 0;
  }

  .leaderboard-tabs button {
    min-width: 0;
    flex: 1;
    min-height: 50px;
    padding-inline: 4px;
    font-size: 10px;
  }

  .leaderboard-card {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 26px 44px minmax(0, 1fr) 62px 46px;
    min-height: 72px;
    gap: 8px;
    padding: 9px 10px;
    overflow: hidden;
  }

  .leaderboard-card__stat small {
    max-width: 100%;
    font-size: 8px;
    letter-spacing: 0.03em;
  }

  .leaderboard-card .player-avatar {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px;
    max-height: 44px;
  }

  .leaderboard-card__arrow {
    display: none;
  }

  .rank {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }

  .player-dialog {
    margin: 0;
    border-radius: 0;
  }

  .player-dialog__panel {
    width: 100vw;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .player-dialog__photo {
    height: 66dvh;
  }

  .site-footer {
    padding: 38px 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 24px;
  }

  .site-footer__intro {
    grid-column: 1 / -1;
  }

  .site-footer__grid > div:last-child {
    grid-column: auto;
  }

  .cookie-consent {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 20px;
  }

  .cookie-consent__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .cookie-consent__actions button {
    width: 100%;
  }

  .placeholder-page__card {
    padding: 50px 22px;
  }

  .login-page { padding: 16px; }
  .login-card { padding: 30px 22px; }
  .admin-page { padding: 20px 14px 44px; }
  .admin-page__header { min-height: 0; margin-bottom: 20px; align-items: flex-start; flex-direction: column; gap: 15px; }
  .admin-page__header .admin-primary-button { width: 100%; }
  .metric-grid { gap: 9px; }
  .metric-grid article { padding: 15px; }
  .metric-grid article > span { margin-bottom: 12px; }
  .metric-grid strong { font-size: 20px; }
  .admin-panel { padding: 16px; }
  .leader-cards { grid-template-columns: 1fr; }
  .admin-ranking { border: 0; background: transparent; box-shadow: none; }
  .admin-ranking__head { display: none; }
  .admin-ranking__row { grid-template-columns: 28px 60px 60px minmax(92px, 1fr); grid-template-rows: auto 58px; min-height: 132px; margin-bottom: 12px; padding: 13px 10px; gap: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: white; }
  .admin-ranking__row .admin-player-cell { display: contents; }
  .admin-ranking__row .admin-rank { grid-column: 1; grid-row: 1; }
  .admin-ranking__row .player-avatar { grid-column: 2; grid-row: 1; }
  .admin-ranking__row .admin-player-cell > span:last-child { grid-column: 3 / -1; grid-row: 1; }
  .admin-ranking__row > strong { display: grid; min-width: 0; height: 58px; align-content: center; justify-items: center; border-radius: 9px; background: #f6f7f5; font-size: 18px; }
  .admin-ranking__row > strong:nth-of-type(1) { grid-column: 2; grid-row: 2; }
  .admin-ranking__row > strong:nth-of-type(2) { grid-column: 3; grid-row: 2; }
  .admin-ranking[data-category="goals"] .admin-ranking__row > strong:nth-of-type(1),
  .admin-ranking[data-category="assists"] .admin-ranking__row > strong:nth-of-type(2) { color: var(--forest-800); background: #f7f0df; }
  .mobile-stat-label { display: block; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
  .stat-buttons { grid-column: 4; grid-row: 2; display: grid; grid-template-columns: repeat(2, 42px); align-self: stretch; justify-content: end; gap: 8px; }
  .stat-buttons button { width: 42px; height: 100%; min-height: 44px; font-size: 18px; }
  .players-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .players-table__head { display: none; }
  .players-table__row { position: relative; display: grid; grid-template-columns: 1fr 48px 48px; min-height: 118px; margin-bottom: 10px; padding: 13px; gap: 9px; border: 1px solid var(--line); border-radius: 12px; background: white; }
  .players-table__row .admin-player-cell { grid-column: 1 / -1; }
  .players-table__row > span[data-label],
  .players-table__row > strong[data-label] { display: grid; gap: 2px; }
  .players-table__row > [data-label]::before { content: attr(data-label); color: var(--muted); font-size: 8px; text-transform: uppercase; }
  .players-table__row .status-action { position: absolute; right: 50px; bottom: 12px; }
  .players-table__row .icon-button { position: absolute; right: 12px; bottom: 10px; }
  .player-form { grid-template-columns: 1fr; }
  .player-form__fields { grid-template-columns: 1fr; padding: 20px 16px; }
  .player-form__fields .form-field:first-child,
  .player-form__fields .check-field { grid-column: auto; }
  .photo-field { padding: 20px 16px; border-top: 1px solid var(--line); border-left: 0; }
  .player-form__footer { padding: 15px 16px; align-items: stretch; flex-direction: column; }
  .player-form__footer .admin-primary-button { width: 100%; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .danger-zone .danger-button { width: 100%; }
  .admin-toast { right: 14px; bottom: 14px; left: 14px; min-width: 0; }
}

@media (max-width: 430px) {
  .leaderboard-hero h1,
  .placeholder-page h1 {
    font-size: clamp(23px, 6.7vw, 28px);
  }

  .leaderboard-card {
    grid-template-columns: 24px 40px minmax(0, 1fr) 54px 40px;
    gap: 6px;
    padding-inline: 8px;
  }

  .leaderboard-card .player-avatar {
    width: 40px !important;
    height: 40px !important;
  }

  .leaderboard-card__identity strong {
    font-size: 12px;
  }

  .leaderboard-card__identity small {
    font-size: 10px;
  }

  .leaderboard-card__stat small {
    font-size: 7px;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* PHP rendering compatibility */
[hidden] {
  display: none !important;
}

.leaderboard-row {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  color: inherit;
  background: white;
  font: inherit;
  text-align: left;
}

.player-dialog__photo img,
.photo-preview img {
  width: 100%;
  height: 100%;
}

.input-with-icon > span:first-child {
  position: absolute;
  top: 14px;
  left: 13px;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
}

.input-with-icon--password button {
  width: auto;
  min-width: 58px;
  padding: 0 7px;
  font-size: 9px;
  font-weight: 700;
}

.input-with-icon--password input {
  padding-right: 70px;
}

.admin-sidebar nav a > span:first-child,
.admin-nav__disabled > span:first-child {
  display: inline-grid;
  width: 17px;
  place-items: center;
}

.player-form__footer > div {
  display: grid;
  max-width: 540px;
  gap: 8px;
}
