/* ============================================================
   Ballon d'Or Data 2026 — feuille de style
   Direction : éditorial « prestige / trophée », charbon + laiton
   ============================================================ */

:root {
  --ink:        #0b0a08;
  --ink-2:      #131109;
  --panel:      #17140d;
  --panel-2:    #1e1a11;
  --line:       #2c2618;
  --cream:      #f4efe4;
  --muted:      #a99f86;
  --muted-2:    #77704f;
  --gold:       #d8b24a;
  --gold-2:     #f0cf7a;
  --gold-deep:  #a8801f;
  --bronze:     #c07f45;
  --silver:     #c9cbd1;
  --radius:     14px;
  --shadow:     0 24px 60px -20px rgba(0,0,0,.7);
  --maxw:       1580px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(216,178,74,.14), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(192,127,69,.08), transparent 55%),
    var(--ink);
  color: var(--cream);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--gold-2); text-decoration-color: rgba(240,207,122,.4); text-underline-offset: 3px; }

/* ---------- Masthead ---------- */
.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px 28px;
}
.masthead__inner { max-width: 760px; }

.kicker {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
  font-weight: 600;
}

.title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 6.6rem);
  line-height: .92;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
}
.title span {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--gold-2), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 22px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Control bar ---------- */
.control-bar {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px 22px;
  align-items: end;
  padding: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.control-bar__actions { display: flex; gap: 10px; }
.status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: .85rem;
  color: var(--muted);
}
.status[data-tone="error"] { color: #e6896f; }
.status[data-tone="ok"]    { color: var(--gold-2); }
.status[data-tone="load"]  { color: var(--cream); }

.filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.filters__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.filters__head > span,
.filter-field > span {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.filter-field { display: flex; flex-direction: column; gap: 7px; }
.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 44px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  padding: 10px 12px;
  font: inherit;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.filter-field input::placeholder { color: var(--muted-2); }
.filter-field select { color-scheme: dark; }
.filter-field input:focus,
.filter-field select:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(216,178,74,.14);
}
@media (max-width: 720px) {
  .filters { grid-template-columns: 1fr; }
}

/* ---------- Competition filters ---------- */
.competitions {
  margin-top: 20px;
  padding: 24px 26px 26px;
  background: linear-gradient(180deg, rgba(30,26,17,.97), rgba(18,16,10,.97));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.competitions__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-label {
  margin: 0;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.competitions__summary {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .84rem;
}
.competitions__actions { display: flex; gap: 8px; }
.competition-groups { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; }
.competition-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.competition-group__label {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.competition-group__options { display: flex; flex-wrap: wrap; gap: 9px; }
.competition-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--muted);
  font-size: .86rem;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, transform .12s;
}
.competition-pill:hover {
  color: var(--cream);
  border-color: var(--gold-deep);
  transform: translateY(-1px);
}
.competition-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.competition-pill__check {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: transparent;
  font-size: .75rem;
  font-weight: 900;
  line-height: 1;
  background: #242015;
}
.competition-pill:has(input:checked) {
  color: var(--cream);
  border-color: var(--gold-deep);
  background: rgba(216,178,74,.08);
}
.competition-pill input:focus-visible + .competition-pill__check {
  outline: 3px solid rgba(216,178,74,.28);
  outline-offset: 3px;
}
.competition-pill input:checked + .competition-pill__check {
  color: #2a1e05;
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

/* Penalty metrics */
.slider--malus input[type="range"] { background: linear-gradient(90deg, #d98a5a, #9c4a2a) no-repeat, var(--line); background-size: var(--fill, 50%) 100%; }
.slider--malus input[type="range"]::-webkit-slider-thumb { background: radial-gradient(circle at 35% 30%, #e6a074, #9c4a2a); }
.slider--malus input[type="range"]::-moz-range-thumb { background: radial-gradient(circle at 35% 30%, #e6a074, #9c4a2a); }
.slider--malus .slider__val { color: #e0956a; }
.malus-tag { font-style: normal; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: #cc7a4e; border: 1px solid rgba(204,122,78,.4); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }

/* Empty state */
.empty { list-style: none; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.modal__score { color: var(--gold-2); margin-top: 6px; font-weight: 600; }

/* Competition strength control */
.level-ctrl {
  margin-bottom: 22px; padding: 14px 14px 12px;
  border: 1px solid var(--gold-deep); border-radius: 12px;
  background: rgba(216,178,74,.06);
}
.level-ctrl__note { margin: 8px 0 0; font-size: .72rem; color: var(--muted-2); line-height: 1.45; }

/* Player score breakdown */
.modal__section { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin: 22px 0 12px; }
.modal__nat { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.modal__nat b { color: var(--cream); }
.muted { color: var(--muted-2); }
.breakdown { display: flex; flex-direction: column; gap: 8px; }
.brk { display: grid; grid-template-columns: 128px 1fr 46px; align-items: center; gap: 10px; }
.brk__lbl { font-size: .82rem; color: var(--cream); }
.brk__bar { height: 8px; background: var(--ink-2); border-radius: 5px; overflow: hidden; }
.brk__bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.brk__pts { font-family: "Fraunces", serif; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--gold-2); }
.brk--neg .brk__bar i { background: linear-gradient(90deg, #9c4a2a, #e0956a); }
.brk--neg .brk__pts { color: #e0956a; }
@media (max-width: 520px) { .brk { grid-template-columns: 96px 1fr 40px; } }

/* Competition breakdown */
.percomp { display: flex; flex-direction: column; gap: 6px; }
.pcrow {
  display: grid; grid-template-columns: 1fr 52px repeat(4, 46px); gap: 8px; align-items: center;
  padding: 9px 12px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 9px;
}
.pcrow__comp { font-size: .84rem; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcrow__lvl { font-family: "Fraunces", serif; font-weight: 600; font-size: .82rem; text-align: center; color: var(--gold-2); }
.pcrow--weak .pcrow__lvl { color: #e0956a; }
.pcrow--intl { border-color: var(--gold-deep); background: rgba(216,178,74,.06); }
.pcrow__st { font-size: .78rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pcrow__st b { color: var(--cream); font-family: "Fraunces", serif; font-weight: 600; }
@media (max-width: 520px) { .pcrow { grid-template-columns: 1fr 44px repeat(4, 34px); gap: 5px; font-size: .72rem; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.field__row { display: flex; gap: 8px; }

.source-value {
  margin: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--cream);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
}

input[type="password"], input[type="number"], input[type="text"] {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  padding: 12px 13px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(216,178,74,.14);
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  border-radius: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a1e05;
  box-shadow: 0 8px 24px -10px rgba(216,178,74,.6);
}
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--gold-deep); color: var(--gold-2); }
.btn--reset {
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); padding: 8px 12px; font-size: .78rem;
}
.btn--reset:hover { color: var(--gold-2); border-color: var(--gold-deep); }
.btn:disabled { cursor: default; opacity: .45; transform: none; }
.btn:disabled:hover { color: var(--muted); border-color: var(--line); }

/* ---------- Layout ---------- */
.layout {
  max-width: var(--maxw);
  margin: 44px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

/* ---------- Results header and pagination ---------- */
.results { min-width: 0; }
.results__head {
  scroll-margin-top: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  margin-bottom: 22px;
}
.results__head h2 {
  margin: 4px 0 1px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 600;
}
.results__head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}
.pagination:empty { display: none; }
.pagination--bottom { margin-top: 28px; }
.pagination__pages { display: flex; align-items: center; gap: 5px; }
.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  font: 600 .78rem "Archivo", sans-serif;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.pagination button:hover:not(:disabled) { color: var(--gold-2); border-color: var(--gold-deep); }
.pagination button.is-current {
  color: #2a1e05;
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination__move { min-width: 76px !important; }
.pagination__ellipsis { color: var(--muted-2); padding: 0 3px; }

/* ---------- Panel pondérations ---------- */
.panel {
  position: sticky;
  top: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel__head h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0;
}
.panel__note { font-size: .78rem; color: var(--muted-2); margin: 18px 0 0; line-height: 1.5; }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
}
.chip:hover { color: var(--cream); border-color: var(--gold-deep); }
.chip.is-active {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a1e05;
  border-color: transparent;
  font-weight: 600;
}

.sliders { display: flex; flex-direction: column; gap: 18px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.slider__label { font-size: .9rem; font-weight: 500; }
.slider__val {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  font-size: .95rem;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep)) no-repeat,
              var(--line);
  background-size: var(--fill, 50%) 100%;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold-deep));
  border: 2px solid #2a1e05;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border: 2px solid #2a1e05;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold-deep));
}

/* ---------- Podium ---------- */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 30px;
}
.pod {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s, border-color .2s;
  animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pod:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.pod--1 { min-height: 310px; border-color: rgba(216,178,74,.5); box-shadow: 0 0 44px -12px rgba(216,178,74,.5); }
.pod--1 { animation-delay: .05s; }
.pod--2 { animation-delay: .13s; }
.pod--3 { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.pod__medal {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.1rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin: 0 auto 12px;
  color: #2a1e05;
}
.pod--1 .pod__medal { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.pod--2 .pod__medal { background: linear-gradient(180deg, #eef0f4, var(--silver)); }
.pod--3 .pod__medal { background: linear-gradient(180deg, #e0a978, var(--bronze)); }

.pod__photo {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px; display: block;
  border: 2px solid var(--line);
  background: var(--ink-2);
}
.pod--1 .pod__photo { width: 104px; height: 104px; border-color: var(--gold); }
.pod__name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.12rem; line-height: 1.15; margin: 0 0 3px; }
.pod__club { font-size: .78rem; color: var(--muted); margin: 0 0 12px; }
.pod__score {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(120deg, var(--gold-2), var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pod--1 .pod__score { font-size: 2.7rem; }
.pod__score small { font-size: .55em; color: var(--muted-2); -webkit-text-fill-color: var(--muted-2); font-weight: 500; }

/* ---------- Ranking list ---------- */
.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 48px 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 78px;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform .14s, border-color .2s, background .2s;
  animation: fadein .4s ease both;
}
.row:hover { transform: translateX(4px); border-color: var(--gold-deep); }
@keyframes fadein { from { opacity: 0; } }
.row__rank {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  text-align: center;
}
.row__photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--ink-2); }
.row__id .row__name { font-weight: 600; font-size: 1.02rem; }
.row__id .row__meta { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.row__meta .pos { color: var(--gold); font-weight: 600; }
.row__right { display: flex; align-items: center; gap: 20px; }
.row__mini { display: none; gap: 16px; }
.row__mini .m { text-align: center; }
.row__mini .m b { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.05rem; display: block; font-variant-numeric: tabular-nums; }
.row__mini .m span { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.row__score {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  min-width: 64px;
  text-align: right;
}
@media (min-width: 900px) { .row__mini { display: flex; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,5,3,.78); backdrop-filter: blur(4px); }
.modal__card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold-deep);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
  animation: pop .25s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.modal__head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.modal__head img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.modal__head h3 { font-family: "Fraunces", serif; font-size: 1.7rem; margin: 0 0 4px; }
.modal__head p { margin: 0; color: var(--muted); font-size: .9rem; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--muted);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.modal__close:hover { color: var(--gold-2); border-color: var(--gold-deep); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.statgrid .cell {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
}
.statgrid .cell span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.statgrid .cell b { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.35rem; display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.modal__comps { margin-top: 20px; font-size: .82rem; color: var(--muted); }
.modal__comps b { color: var(--cream); }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 70px auto 0;
  padding: 30px 28px 60px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .84rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .control-bar { grid-template-columns: 1fr; }
  .control-bar__actions { flex-wrap: wrap; }
  .competition-group { grid-template-columns: 1fr; gap: 8px; }
  .competition-group__label { margin-top: 0; }
  .results__head { align-items: start; }
  .podium { grid-template-columns: 1fr; }
  .pod, .pod--1 { min-height: 0; text-align: left; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; padding: 16px; }
  .pod__photo, .pod--1 .pod__photo { width: 60px; height: 60px; margin: 0; }
  .pod__medal { margin: 0; }
  .pod__club { margin: 0; }
  .pod__score, .pod--1 .pod__score { font-size: 1.8rem; }
}

@media (max-width: 640px) {
  .masthead { padding: 42px 18px 22px; }
  .layout { padding: 0 18px; margin-top: 30px; }
  .control-bar, .competitions { padding: 18px; }
  .competitions__head, .results__head { align-items: stretch; flex-direction: column; }
  .competitions__actions { width: 100%; }
  .competitions__actions .btn { flex: 1; }
  .competition-pill { flex: 1 1 180px; }
  .pagination--top { justify-content: flex-start; }
  .pagination__pages { display: none; }
  .pagination__move { flex: 1; }
  .row { grid-template-columns: 36px 46px minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; }
  .row__photo { width: 42px; height: 42px; }
  .row__score { min-width: 50px; font-size: 1.25rem; }
  .row__id .row__meta { gap: 5px; }
}
