/* Cheers Cricket Nottingham — palette taken from the club badge:
   navy batsman, saffron ring, green ring, red ball. */
:root {
  --navy-900: #071226;
  --navy-800: #0b1a36;
  --navy-700: #12284f;
  --navy-600: #1b3a6e;
  --saffron: #f39a1e;
  --saffron-600: #d97f06;
  --green: #1d8a48;
  --green-700: #136b36;
  --pitch: #0f5a31;
  --ball: #c8202b;
  --cream: #f7f2e7;
  --cream-200: #efe6d2;
  --ink: #101a2c;
  --ink-2: #4a5568;
  --line: #e3dccb;
  --white: #fff;

  --win: #1d8a48;
  --loss: #c8202b;
  --draw: #8a6d1f;
  --aband: #7a8597;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(7, 18, 38, .06), 0 8px 24px rgba(7, 18, 38, .08);
  --shadow-lg: 0 2px 6px rgba(7, 18, 38, .08), 0 24px 48px rgba(7, 18, 38, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

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

h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 850; font-stretch: 78%; text-transform: uppercase; }
h3 { font-weight: 750; font-stretch: 90%; }

.eyebrow {
  font: 600 .8rem/1 var(--body);
  color: var(--saffron-600);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--saffron); color: var(--navy-900); }
.btn--primary:hover { background: #ffad3b; box-shadow: 0 8px 20px rgba(243, 154, 30, .35); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 18, 38, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--white);
}
.nav__inner { width: min(100% - 40px, var(--wrap)); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: .95rem; }
.nav__brand img { border-radius: 50%; }
.nav__brand strong { font-family: var(--display); font-stretch: 85%; font-size: 1.1rem; text-transform: uppercase; color: var(--saffron); margin-right: 2px; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; color: rgba(255,255,255,.82); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__links a.is-active { color: var(--white); }
.nav__links .nav__cta { background: var(--saffron); color: var(--navy-900); font-weight: 600; margin-left: 8px; }
.nav__links .nav__cta:hover { background: #ffad3b; color: var(--navy-900); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .25s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    padding: 12px 20px 24px; gap: 2px; background: var(--navy-900);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .25s var(--ease);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, var(--navy-600) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: var(--white);
  padding: clamp(56px, 9vw, 120px) 0 40px;
}
/* mown-pitch stripes fading in from the bottom */
.hero__pitch {
  position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1;
  background:
    linear-gradient(to bottom, var(--navy-900) 0%, transparent 60%),
    repeating-linear-gradient(90deg, #0f5a31 0 80px, #0c4d2a 80px 160px);
  opacity: .55;
  mask-image: linear-gradient(to bottom, transparent, #000 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--saffron); }
.hero__title {
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  font-weight: 900; font-stretch: 68%;
  text-transform: uppercase; line-height: .88; letter-spacing: -.015em;
}
.hero__title span { color: transparent; -webkit-text-stroke: 2px var(--saffron); }
.hero__lede { max-width: 52ch; color: rgba(255,255,255,.78); font-size: 1.08rem; margin: 24px 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__badge { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.hero__badge img { width: 72%; border-radius: 50%; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 10px rgba(255,255,255,.04); position: relative; }
.seam { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.seam circle { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.5; }
.seam .stitch { stroke: var(--ball); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: clamp(40px, 6vw, 72px) 0 0;
  background: rgba(255,255,255,.1); border-radius: var(--r); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.stats > div { background: rgba(7, 18, 38, .55); backdrop-filter: blur(6px); padding: 20px 24px; }
.stats dt { font-size: .82rem; color: rgba(255,255,255,.62); }
.stats dd { margin: 4px 0 0; font: 900 clamp(2rem, 4vw, 2.8rem)/1 var(--display); font-stretch: 75%; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__badge { order: -1; width: 200px; justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--saffron); color: var(--navy-900); overflow: hidden; border-block: 1px solid var(--saffron-600); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 10px; padding: 12px 28px; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.ticker__item b { font-family: var(--display); font-stretch: 80%; font-size: 1rem; text-transform: uppercase; }
.ticker__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ball); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-800); color: var(--white); }
.section--navy .eyebrow { color: var(--saffron); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--split { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }
.section__sub { color: var(--ink-2); max-width: 60ch; margin: 14px 0 0; }
.section--navy .section__sub, .section--pitch .section__sub { color: rgba(255,255,255,.72); }

/* ---------- Noticeboard ---------- */
.notice { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.notice__pinned {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--navy-800); color: var(--white); padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 18px; min-height: 380px;
  box-shadow: var(--shadow-lg);
}
.notice__pinned::before { /* net mesh */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.6) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.6) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
}
.notice__pinned > * { position: relative; }
.notice__pinned h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-stretch: 75%; text-transform: uppercase; font-weight: 850; }
.notice__pinned p { color: rgba(255,255,255,.8); margin: 0; max-width: 52ch; }
.notice__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.notice__meta span { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.notice__meta svg { width: 15px; height: 15px; stroke: var(--saffron); fill: none; stroke-width: 2; }
.notice__pinned .btn { align-self: flex-start; margin-top: auto; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--saffron); color: var(--navy-900); letter-spacing: .02em; }
.tag--pin { background: var(--ball); color: var(--white); }
.notice__list { display: flex; flex-direction: column; gap: 14px; }
.notice__item {
  background: var(--white); border-radius: var(--r); padding: 20px 22px; display: grid;
  grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s;
}
.notice__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.datechip { text-align: center; border-radius: 10px; background: var(--cream-200); padding: 8px 0; line-height: 1; }
.datechip b { display: block; font: 900 1.6rem/1 var(--display); font-stretch: 75%; color: var(--navy-800); }
.datechip span { font-size: .72rem; font-weight: 600; color: var(--ink-2); text-transform: uppercase; }
.notice__item h3 { font-size: 1.15rem; margin: 6px 0 6px; font-stretch: 95%; }
.notice__item p { margin: 0; color: var(--ink-2); font-size: .94rem; }
@media (max-width: 900px) { .notice { grid-template-columns: 1fr; } .notice__pinned { min-height: 0; } }

/* ---------- Fixtures ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream-200); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button.is-on { background: var(--navy-800); color: var(--white); }
select, .search {
  height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  padding: 0 16px; font-size: .9rem;
}
select { appearance: none; padding-right: 36px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23101a2c' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }

.upcoming {
  display: flex; gap: 18px; align-items: center; padding: 20px 24px; margin-bottom: 32px;
  border-radius: var(--r); background: linear-gradient(100deg, var(--cream) 0%, var(--white) 100%);
  border: 1px dashed var(--saffron);
}
.upcoming__icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--navy-800); display: grid; place-items: center; }
.upcoming__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--saffron); stroke-width: 1.8; stroke-linecap: round; }
.upcoming h3 { font-size: 1.2rem; }
.upcoming p { margin: 4px 0 0; color: var(--ink-2); font-size: .94rem; }

.month { margin: 32px 0 12px; display: flex; align-items: baseline; gap: 14px; }
.month h3 { font-size: 1.5rem; text-transform: uppercase; font-stretch: 75%; font-weight: 850; }
.month span { color: var(--ink-2); font-size: .88rem; }
.match {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; align-items: center;
  padding: 16px 20px; border-radius: var(--r); background: var(--white);
  border: 1px solid var(--line); margin-bottom: 10px; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.match::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--aband); }
.match--W::before { background: var(--win); }
.match--L::before { background: var(--loss); }
.match--D::before { background: var(--draw); }
.match:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.match__date { line-height: 1.1; }
.match__date b { display: block; font: 900 1.9rem/1 var(--display); font-stretch: 72%; }
.match__date span { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.match__teams { display: grid; gap: 6px; min-width: 0; }
.match__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.match__row .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match__row .n small { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
.match__row .s { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.match__row .s small { color: var(--ink-2); font-weight: 400; }
.match__row.us .n { color: var(--navy-800); }
.match__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: var(--ink-2); margin-top: 4px; }
.match__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.res { font: 800 .82rem/1 var(--display); padding: 7px 10px; border-radius: 6px; color: var(--white); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.res--W { background: var(--win); } .res--L { background: var(--loss); } .res--D { background: var(--draw); } .res--A { background: var(--aband); }
.match__side a { font-size: .8rem; font-weight: 600; color: var(--navy-600); text-decoration: none; }
.match__side a:hover { text-decoration: underline; }
.more { display: flex; margin: 28px auto 0; }
@media (max-width: 640px) {
  .match { grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 14px 14px 18px; }
  .match__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .match__date b { font-size: 1.6rem; }
  .match__row .n small { display: none; }
  .match__row { flex-wrap: wrap; gap: 2px 10px; }
  .match__row .n { white-space: normal; }
  .match__row .s { margin-left: auto; }
  .match__row .s small { font-size: .74rem; }
}

/* ---------- Teams (split Saturday / Sunday) ---------- */
.teams { display: grid; grid-template-columns: 1fr 1.35fr; }
.teams__col { padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 56px); }
.teams__inner { max-width: 640px; }
.teams__col--sat { background: var(--saffron); color: var(--navy-900); display: flex; justify-content: flex-end; }
.teams__col--sat .eyebrow { color: var(--navy-800); }
.teams__col--sun { background: var(--navy-900); color: var(--white); }
.teams__col--sun .eyebrow { color: var(--saffron); }
.teams h2 { margin-bottom: 28px; }
#teams-sun { display: grid; gap: 18px; }
.team {
  border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease);
}
.teams__col--sat .team { background: var(--white); box-shadow: var(--shadow-lg); }
.teams__col--sun .team { background: var(--navy-700); border: 1px solid rgba(255,255,255,.08); }
.team:hover { transform: translateY(-3px); }
.team__top { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.team h3 { font-size: 1.8rem; text-transform: uppercase; font-stretch: 75%; font-weight: 850; }
.team__nick { font-size: .85rem; opacity: .7; margin-top: 4px; }
.team__blurb { margin: 14px 0 18px; font-size: .95rem; opacity: .85; }
.ring { --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(127,127,127,.2) 0); }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--white); }
.teams__col--sun .ring::before { background: var(--navy-700); }
.ring b { position: relative; font: 900 1.4rem/1 var(--display); font-stretch: 75%; text-align: center; }
.ring b small { display: block; font: 600 .6rem/1.2 var(--body); opacity: .7; }
.team__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 0; font-size: .88rem; }
.team__facts dt { opacity: .6; font-size: .76rem; }
.team__facts dd { margin: 0; font-weight: 600; }
.team__record { display: flex; gap: 6px; margin: 18px 0 0; flex-wrap: wrap; }
.team__record span { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: rgba(127,127,127,.12); }
.team__stars { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.star { padding: 10px 12px; border-radius: 10px; background: rgba(127,127,127,.1); font-size: .8rem; line-height: 1.3; }
.star b { display: block; font: 850 1.15rem/1.1 var(--display); font-stretch: 80%; }
.star span { opacity: .7; }
.team__link { display: inline-block; margin-top: 18px; font-size: .85rem; font-weight: 600; }
.teams__col--sun .team__link { color: var(--saffron); }
#teams-sun .team--compact .team__stars, #teams-sun .team--compact .team__blurb { display: none; }
@media (max-width: 980px) { .teams { grid-template-columns: 1fr; } .teams__col--sat { justify-content: flex-start; } }

/* ---------- Standings (on the pitch) ---------- */
.section--pitch {
  color: var(--white); position: relative;
  background:
    linear-gradient(rgba(7,18,38,.35), rgba(7,18,38,.55)),
    repeating-linear-gradient(0deg, #12663a 0 64px, #0f5a31 64px 128px);
}
.section--pitch .eyebrow { color: var(--saffron); }
.satlist { margin-top: 22px; background: var(--navy-900); color: var(--white); border-radius: var(--r-lg); padding: 24px 26px; }
.satlist h3 { font-size: 1.25rem; text-transform: uppercase; font-stretch: 80%; margin-bottom: 12px; }
.satlist ol { list-style: none; margin: 0; padding: 0; }
.satlist li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
.satlist__d { font: 800 .95rem/1 var(--display); font-stretch: 80%; color: var(--saffron); }
.satlist__o { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.satlist__o small { display: block; font-weight: 400; color: rgba(255,255,255,.62); font-size: .8rem; }
.satlist .res { min-width: 28px; text-align: center; }
.standings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 36px; }
.stand {
  border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden;
  background: rgba(7, 18, 38, .55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
}
.stand__pos { font: 900 5rem/.8 var(--display); font-stretch: 65%; color: var(--saffron); display: flex; align-items: flex-start; gap: 2px; }
.stand__pos sup { font-size: 1.6rem; margin-top: 6px; }
.stand__pos--tbc { font-size: 1.5rem; line-height: 1; color: rgba(255,255,255,.55); text-transform: uppercase; padding: 6px 0 22px; }
.stand h3 { font-size: 1.15rem; margin: 14px 0 4px; font-stretch: 90%; }
.stand p { margin: 0; color: rgba(255,255,255,.72); font-size: .88rem; }
.stand a { display: inline-block; margin-top: 12px; color: var(--saffron); font-size: .85rem; font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.table caption { text-align: left; padding: 18px 20px 6px; font: 800 1.1rem var(--display); font-stretch: 85%; text-transform: uppercase; }
.table th, .table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.table th { font-size: .76rem; color: var(--ink-2); font-weight: 600; }
.table th:first-child, .table td:first-child { text-align: left; padding-left: 20px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--cream); }
.table td:first-child b { display: block; }
.table td:first-child small { color: var(--ink-2); }
.table .pts { font-weight: 800; }
.formguide { display: inline-flex; gap: 4px; }
.formguide i { width: 22px; height: 22px; border-radius: 50%; font: 700 .68rem/22px var(--body); font-style: normal; color: var(--white); text-align: center; }
.formguide .W { background: var(--win); } .formguide .L { background: var(--loss); } .formguide .D { background: var(--draw); } .formguide .A { background: var(--aband); }
.history-title { margin: 44px 0 16px; font-size: 1.4rem; text-transform: uppercase; font-stretch: 80%; }
.history { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.hist { background: rgba(7, 18, 38, .45); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 18px 20px; }
.hist h4 { margin: 0 0 10px; font: 800 1rem var(--display); font-stretch: 90%; }
.hist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hist li { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.82); }
.hist li b { color: var(--saffron); font-family: var(--display); font-stretch: 85%; }

/* ---------- Players ---------- */
.search { display: inline-flex; align-items: center; gap: 8px; min-width: 240px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; flex: none; }
.search input { border: 0; outline: 0; background: none; width: 100%; height: 100%; }
.search:focus-within { outline: 3px solid var(--saffron); outline-offset: 1px; }

.spotlight { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 36px; }
.spot {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 300px; color: var(--white);
  background: var(--navy-800); display: flex; align-items: flex-end; cursor: pointer; border: 0; padding: 0; text-align: left;
  box-shadow: var(--shadow-lg); transition: transform .3s var(--ease);
}
.spot:hover { transform: translateY(-4px); }
.spot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.spot:hover img { transform: scale(1.04); }
.spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,18,38,.95) 0%, rgba(7,18,38,.2) 60%, transparent 100%); }
.spot__body { position: relative; z-index: 1; padding: 22px; }
.spot__kicker { font-size: .76rem; font-weight: 700; color: var(--saffron); }
.spot__name { font: 900 1.8rem/1 var(--display); font-stretch: 72%; text-transform: uppercase; margin: 6px 0 4px; }
.spot__stat { font-size: .9rem; color: rgba(255,255,255,.8); }
.spot__mono { position: absolute; inset: 0; display: grid; place-items: center; font: 900 7rem/1 var(--display); font-stretch: 65%; color: rgba(255,255,255,.08); }

.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.player {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 14px 16px;
  text-align: center; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.player:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none;
  font: 850 1.7rem/1 var(--display); font-stretch: 80%; color: var(--white); background: var(--navy-700); position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--hon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--saffron); }
.player__name { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.player__role { font-size: .76rem; color: var(--ink-2); }
.player__role.has { color: var(--saffron-600); font-weight: 600; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 0; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(7, 18, 38, .6); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.pm__head { background: var(--navy-800); color: var(--white); padding: 32px 28px 26px; display: flex; gap: 20px; align-items: center;
  background-image: radial-gradient(120% 120% at 100% 0%, var(--navy-600), transparent 60%); }
.pm__head .avatar { width: 104px; height: 104px; font-size: 2.2rem; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.pm__head h3 { font-size: 2.2rem; font-stretch: 72%; text-transform: uppercase; font-weight: 900; }
.pm__head p { margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.pm__body { padding: 24px 28px 28px; }
.pm__body h4 { margin: 0 0 12px; font: 800 1rem var(--display); text-transform: uppercase; font-stretch: 85%; }
.pm__hon { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }
.pm__hon div { background: var(--cream); border-radius: 10px; padding: 12px 14px; font-size: .82rem; color: var(--ink-2); }
.pm__hon b { display: block; color: var(--ink); font: 900 1.4rem/1.1 var(--display); font-stretch: 78%; }
.pm__none { color: var(--ink-2); font-size: .92rem; margin: 0 0 20px; }

/* ---------- Club ---------- */
.club { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.officials { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.officials li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.officials li span { color: rgba(255,255,255,.62); text-align: right; font-size: .86rem; }
.grounds { display: grid; gap: 14px; }
.ground { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--navy-700); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s; }
.ground:hover { border-color: var(--saffron); }
.ground__n { width: 56px; height: 56px; border-radius: 50%; background: var(--saffron); color: var(--navy-900); display: grid; place-items: center; font: 900 1.6rem/1 var(--display); font-stretch: 75%; }
.ground h3 { font-size: 1.25rem; font-stretch: 85%; }
.ground p { margin: 4px 0 10px; color: rgba(255,255,255,.72); font-size: .9rem; }
.ground ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.ground li { font-size: .74rem; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.08); }
.ground a { color: var(--saffron); font-size: .85rem; font-weight: 600; }
@media (max-width: 900px) { .club { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__intro p { color: var(--ink-2); max-width: 46ch; }
.contact__intro h2 { margin-bottom: 16px; }
.contact__facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__facts li { display: grid; grid-template-columns: 120px 1fr; font-size: .95rem; }
.contact__facts span { color: var(--ink-2); font-size: .85rem; }
.contact__facts a { font-weight: 600; color: var(--navy-600); word-break: break-all; }
.form { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.form label em { font-weight: 400; color: var(--ink-2); font-style: normal; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 400; font-size: .95rem; background: #fdfbf6;
  transition: border-color .2s, box-shadow .2s;
}
.form select { border-radius: 10px; height: auto; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(27,58,110,.15); }
.form .invalid { border-color: var(--loss); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form__status.ok { color: var(--win); font-weight: 600; }
.form__status.err { color: var(--loss); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 32px 0; font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { border-radius: 50%; }
.footer__brand strong { display: block; color: var(--white); }
.footer__top { color: var(--saffron); font-weight: 600; text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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