:root {
  --ink: #07182f;
  --muted: #60758e;
  --blue: #123d78;
  --blue-strong: #061936;
  --sky: #22c4ea;
  --sky-soft: #e6f9ff;
  --paper: #ffffff;
  --band: #071b38;
  --line: #c8e1f3;
  --red: #e42d42;
  --green: #147d52;
  --amber: #b07600;
  --navy-gradient: linear-gradient(135deg, #05142d 0%, #082650 54%, #0b6d91 100%);
  --panel-gradient: linear-gradient(135deg, rgba(7, 27, 56, 0.96), rgba(8, 48, 96, 0.9));
  --shadow: 0 18px 45px rgba(5, 20, 45, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #06142c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

a:hover {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
}

.container-xl,
.container-md {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
}

.container-md {
  width: min(100% - 32px, 820px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(34, 196, 234, 0.22);
  background: rgba(5, 20, 45, 0.92);
  backdrop-filter: blur(14px);
}

.navbar {
  min-height: 76px;
  padding: 10px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
}

.brand-lockup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-lockup span {
  font-size: 1.1rem;
}

.navbar-nav {
  gap: 6px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.navbar .nav-link:hover,
.navbar .admin-link {
  color: #fff;
  background: rgba(34, 196, 234, 0.14);
}

.page-shell {
  min-height: calc(100vh - 170px);
  background: #f6fbff;
}

.hero-band {
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 196, 234, 0.28);
  background:
    radial-gradient(circle at 78% 24%, rgba(34, 196, 234, 0.24), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(228, 45, 66, 0.18), transparent 28%),
    var(--navy-gradient);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.75fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 4.2rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.25rem;
  line-height: 1.65;
}

.hero-actions,
.form-actions,
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-crest {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-crest img {
  width: min(390px, 80vw);
  filter: drop-shadow(0 28px 44px rgba(34, 196, 234, 0.25));
  transform: rotate(-2deg);
}

.news-ticker-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-block: 1px solid rgba(34, 196, 234, 0.25);
  background: #071b38;
  color: #fff;
}

.ticker-label {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--red), #0b7caa);
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-viewport {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 28s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-track a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
  padding: 14px 28px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  white-space: nowrap;
}

.ticker-track span {
  color: var(--sky);
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.btn {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-weight: 800;
  white-space: normal;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: #0b7caa;
  background: linear-gradient(135deg, #0d3c78, #0aa6d4);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 97, 173, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--red);
  background: linear-gradient(135deg, #0c254f, var(--red));
  color: #fff;
}

.btn-outline-primary {
  border-color: var(--line);
  background: #fff;
  color: var(--blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--blue);
  background: var(--sky-soft);
  color: var(--blue-strong);
}

.content-band {
  padding: 58px 0;
}

.content-band.soft {
  background:
    radial-gradient(circle at top right, rgba(34, 196, 234, 0.16), transparent 34%),
    var(--band);
  border-block: 1px solid rgba(34, 196, 234, 0.2);
}

.content-band.soft .section-heading h2,
.content-band.soft .eyebrow {
  color: #fff;
}

.content-band.soft .section-heading a {
  color: var(--sky);
}

.section-heading,
.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading h2,
.admin-heading h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading a {
  font-weight: 800;
}

.match-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spotlight-panel,
.admin-card,
.stats-panel,
.admin-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.spotlight-panel {
  padding: 26px;
}

.spotlight-panel.accent {
  border-top: 4px solid var(--red);
}

.panel-kicker {
  color: var(--muted);
  font-weight: 800;
}

.spotlight-panel h2 {
  margin: 12px 0;
  font-size: 1.55rem;
  font-weight: 900;
}

.spotlight-panel p,
.subtle {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.players-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person-card,
.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 32, 51, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.person-card-link {
  display: block;
  color: inherit;
}

.person-card-link:hover {
  color: inherit;
}

.person-card:hover,
.news-card:hover,
.match-row:hover,
.admin-list-row:hover {
  transform: translateY(-2px);
  border-color: rgba(25, 167, 216, 0.55);
  box-shadow: 0 18px 44px rgba(15, 97, 173, 0.14);
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sky-soft);
}

.person-card div {
  padding: 18px;
}

.person-card span,
.news-card time {
  color: var(--red);
  font-weight: 900;
  font-size: 0.82rem;
}

.person-card h3,
.news-card h3,
.news-card h2 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 900;
}

.person-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.award-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.person-card .award-strip {
  padding: 0;
}

.award-strip b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--sky-soft);
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.award-strip img {
  width: 22px;
  height: 22px;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: transparent;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.person-card .player-stat-grid {
  padding: 0;
}

.player-stat-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f7fdff;
}

.player-stat-grid dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-stat-grid dd {
  margin: 0;
  color: var(--blue-strong);
  font-size: 1rem;
  font-weight: 900;
}

.player-profile-hero {
  background: var(--navy-gradient);
}

.player-profile-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.player-profile-head > img {
  width: 180px;
  height: 180px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 18px 45px rgba(5, 20, 45, 0.24);
}

.player-profile-head .award-strip b {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.player-profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.player-total-panel h2 {
  margin: 0 0 18px;
  color: var(--blue-strong);
  font-size: 1.35rem;
  font-weight: 900;
}

.player-stat-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-stat-grid.large dd {
  font-size: 1.45rem;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  color: var(--blue-strong);
  font-size: 1.45rem;
}

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

.player-match-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f7fdff;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.player-match-row:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 167, 216, 0.55);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(15, 97, 173, 0.12);
}

.player-match-row time {
  color: var(--muted);
  font-weight: 900;
}

.player-match-row strong {
  display: block;
  color: var(--blue-strong);
  font-weight: 900;
}

.player-match-row span {
  color: var(--muted);
  font-weight: 800;
}

.player-match-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.player-match-badges b,
.player-match-badges span,
.player-match-badges em {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: var(--blue-strong);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.player-match-badges b {
  background: var(--blue-strong);
  color: #fff;
}

.player-match-badges .muted-match-mark {
  background: #eaf2f8;
  color: var(--muted);
}

.player-match-badges .yellow-card-mark {
  background: #fff3bf;
  color: #8a6500;
}

.player-match-badges .red-card-mark {
  background: #fff0f2;
  color: var(--red);
}

.player-match-badges .out-of-squad-mark {
  background: #f1f5f9;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sky-soft);
}

.news-card div {
  padding: 20px;
}

.news-card a {
  display: inline-block;
  margin-top: 16px;
  font-weight: 900;
}

.page-hero {
  padding: 74px 0;
  border-bottom: 1px solid rgba(34, 196, 234, 0.22);
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 196, 234, 0.2), transparent 28%),
    var(--navy-gradient);
}

.page-hero h1 {
  color: #fff;
}

.page-hero.compact {
  padding: 58px 0;
}

.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  line-height: 1.6;
}

.segmented-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented-tabs button,
.admin-nav button,
.row-actions button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.segmented-tabs button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 7px;
}

.segmented-tabs button.is-active {
  background: var(--blue);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeUp 240ms ease both;
}

.team-group + .team-group {
  margin-top: 36px;
}

.team-group h2 {
  margin: 0 0 16px;
  color: var(--blue-strong);
  font-size: 1.45rem;
  font-weight: 900;
}

.filters-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(25, 167, 216, 0.14);
}

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

.matches-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.matches-feed-grid h3 {
  margin: 0 0 14px;
  color: var(--blue-strong);
  font-size: 1.25rem;
  font-weight: 900;
}

.match-row,
.admin-list-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.match-row time {
  color: var(--muted);
  font-weight: 900;
}

.match-row strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
}

.match-row span {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.match-row b,
.score-board strong,
.list-icon {
  min-width: 74px;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 900;
}

.calendar-shell {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.calendar-controls span {
  min-width: 74px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.calendar-nav-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 196, 234, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-stack {
  display: grid;
}

.calendar-month {
  display: none;
  overflow: hidden;
  border: 1px solid rgba(34, 196, 234, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.calendar-month.is-active {
  display: block;
  animation: fadeUp 220ms ease both;
}

.calendar-month header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--panel-gradient);
  color: #fff;
}

.calendar-month h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
}

.calendar-month header span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  border-bottom: 1px solid var(--line);
  background: #edf8ff;
}

.calendar-weekdays b {
  padding: 6px;
  color: var(--blue-strong);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 900;
}

.calendar-day {
  min-height: 74px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px;
  background: #fff;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.empty {
  background: #f3f8fc;
}

.calendar-day time {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.calendar-day.has-match time {
  background: #071b38;
  color: #fff;
}

.calendar-match {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  border: 1px solid rgba(34, 196, 234, 0.28);
  border-radius: 8px;
  padding: 6px;
  background: linear-gradient(135deg, #f7fdff, #e9f8ff);
  color: var(--ink);
}

.calendar-match.win,
.calendar-match.loss,
.calendar-match.draw,
.calendar-match.upcoming {
  color: var(--ink);
}

.calendar-match.win {
  background: linear-gradient(135deg, #effbf5, #d9f3e7);
  border-color: rgba(20, 125, 82, 0.28);
}

.calendar-match.loss {
  background: linear-gradient(135deg, #fff5f6, #ffe1e5);
  border-color: rgba(228, 45, 66, 0.28);
}

.calendar-match.draw {
  background: linear-gradient(135deg, #fffaf0, #ffeabd);
  border-color: rgba(176, 118, 0, 0.28);
}

.calendar-match.upcoming {
  background: linear-gradient(135deg, #eefbff, #d9f5ff);
  border-color: rgba(34, 196, 234, 0.35);
}

.calendar-match:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.calendar-match strong {
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.28;
  font-weight: 900;
}

.calendar-match span,
.calendar-match em {
  color: #415872;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
}

.win {
  background: #e8f7ef;
  color: var(--green);
}

.loss {
  background: #fff0f2;
  color: var(--red);
}

.draw {
  background: #fff7e6;
  color: var(--amber);
}

.upcoming {
  background: var(--sky-soft);
  color: var(--blue);
}

.empty-state {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.match-detail-hero {
  background:
    linear-gradient(135deg, rgba(34, 196, 234, 0.12), rgba(255, 255, 255, 0.92)),
    #f4fbff;
}

.match-detail-hero h1 {
  color: var(--blue-strong);
}

.match-detail-hero .eyebrow {
  color: var(--red);
}

.match-detail-hero p,
.match-detail-hero .subtle {
  color: #415872;
}

.score-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.score-board h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 900;
}

.score-board strong {
  min-width: 120px;
  font-size: 2rem;
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}

.stats-panel {
  padding: 26px;
}

.match-mvp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(34, 196, 234, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #071b38, #0b6d91);
  color: #fff;
}

.match-mvp img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.match-mvp span {
  display: block;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-mvp strong {
  display: block;
  margin-top: 3px;
  font-size: 1.15rem;
  font-weight: 900;
}

.goals-panel {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.goals-panel h2 {
  margin: 0 0 14px;
  color: var(--blue-strong);
  font-size: 1.3rem;
  font-weight: 900;
}

.video-panel {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.video-panel h2 {
  margin: 0 0 14px;
  color: var(--blue-strong);
  font-size: 1.3rem;
  font-weight: 900;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fdff;
}

.video-card h3 {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.video-card iframe,
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #071b38;
}

.video-card .btn {
  margin: 0 14px 14px;
}

.goal-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(216, 232, 244, 0.75);
}

.goal-row b {
  color: var(--red);
  font-weight: 900;
}

.goal-row span {
  font-weight: 900;
}

.goal-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.goal-row .card-yellow {
  color: #8a6500;
}

.goal-row .card-red {
  color: var(--red);
}

.stats-title,
.possession-row,
.stat-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.stats-title {
  margin-bottom: 22px;
  color: var(--blue-strong);
  font-weight: 900;
}

.possession-row span,
.stat-row > span {
  font-size: 1.1rem;
  font-weight: 900;
}

.possession-track,
.dual-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9f2;
}

.possession-track i,
.dual-bar i {
  display: block;
  width: var(--atom);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.stat-name,
.stat-row p {
  margin: 8px 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.stat-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-side-panel {
  padding: 20px;
}

.admin-side-panel h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 900;
}

.match-detail-tabs {
  margin-bottom: 24px;
}

.match-flow-panel {
  padding-bottom: 26px;
}

.match-flow {
  position: relative;
  display: grid;
  gap: 8px;
}

.match-flow::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(180deg, transparent, rgba(7, 27, 56, 0.24), transparent);
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.flow-divider {
  position: relative;
  z-index: 1;
  display: block;
  width: 10px;
  height: 10px;
  justify-self: center;
  border: 2px solid var(--sky);
  border-radius: 999px;
  background: #fff;
}

.flow-side {
  min-height: 46px;
}

.flow-left {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

.flow-right {
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.flow-event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7fdff;
  color: var(--blue-strong);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
}

.opponent-event .flow-event {
  background: #fff7f8;
}

.ball-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-strong);
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(7, 27, 56, 0.12);
}

.flow-event b {
  color: var(--red);
  font-weight: 900;
}

.flow-event span {
  display: grid;
  gap: 2px;
}

.flow-event strong {
  color: var(--blue-strong);
  font-size: 0.95rem;
  line-height: 1.15;
}

.flow-event em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.substitution-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(216, 232, 244, 0.75);
}

.substitution-row b {
  color: var(--blue);
  font-weight: 900;
}

.substitution-row span {
  color: var(--green);
  font-weight: 900;
}

.substitution-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.lineup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lineup-heading h2,
.bench-panel h2 {
  margin: 0;
  color: var(--blue-strong);
  font-size: 1.3rem;
  font-weight: 900;
}

.lineup-heading span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--sky-soft);
  color: var(--blue-strong);
  font-weight: 900;
}

.lineup-board {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(34, 196, 234, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.7) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at 50% 50%, transparent 0 74px, rgba(255, 255, 255, 0.7) 75px 76px, transparent 77px),
    linear-gradient(180deg, rgba(34, 196, 234, 0.28), rgba(7, 27, 56, 0.14)),
    #e9f8ff;
}

.lineup-board::before,
.lineup-board::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 36%;
  height: 72px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.78);
}

.lineup-board::before {
  top: 0;
  border-top: 0;
}

.lineup-board::after {
  bottom: 0;
  border-bottom: 0;
}

.lineup-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 112px;
  max-width: 150px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(7, 27, 56, 0.12);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(7, 27, 56, 0.12);
  text-align: center;
}

.lineup-chip b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  justify-self: center;
  border-radius: 999px;
  background: var(--blue-strong);
  color: #fff;
  font-size: 0.78rem;
}

.lineup-chip span {
  overflow-wrap: anywhere;
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
}

.lineup-chip em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.captain-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(228, 45, 66, 0.28);
}

.captain-badge.inline {
  position: static;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-width: 0;
  font-size: 0.68rem;
  vertical-align: middle;
}

.bench-panel {
  margin-top: 22px;
}

.bench-list,
.lineup-sub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.bench-list span,
.lineup-sub-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7fdff;
  color: var(--blue-strong);
  font-weight: 900;
}

.bench-list b,
.lineup-sub-list b {
  margin-right: 8px;
  color: var(--red);
}

.article-page {
  padding-bottom: 70px;
}

.article-cover {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  background: var(--sky-soft);
}

.article-body {
  padding-top: 44px;
}

.article-body time {
  color: var(--red);
  font-weight: 900;
}

.article-body h1 {
  margin: 12px 0 18px;
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 900;
}

.article-body .lead {
  color: var(--blue-strong);
  font-size: 1.25rem;
  font-weight: 700;
}

.article-body p {
  color: #33465f;
  font-size: 1.06rem;
  line-height: 1.75;
}

.compact-text {
  padding-top: 0;
}

.compact-text h2 {
  margin: 28px 0 10px;
  color: var(--blue-strong);
  font-size: 1.35rem;
  font-weight: 900;
}

.admin-login {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background: var(--band);
}

.admin-shell {
  min-height: calc(100vh - 170px);
  padding: 38px 0 70px;
  background:
    radial-gradient(circle at 90% 8%, rgba(34, 196, 234, 0.16), transparent 30%),
    var(--navy-gradient);
}

.admin-shell .admin-heading h1,
.admin-shell .form-section-title {
  color: #fff;
}

.admin-shell .admin-heading .eyebrow {
  color: var(--sky);
}

.admin-shell .admin-heading.inside h1,
.admin-card .form-section-title {
  color: var(--blue-strong);
}

.admin-card {
  padding: 24px;
}

.auth-card {
  width: min(100%, 420px);
}

.auth-card img {
  width: 86px;
  margin-bottom: 16px;
}

.auth-card h1 {
  margin: 0 0 22px;
  font-size: 1.8rem;
  font-weight: 900;
}

.auth-card label + label {
  margin-top: 14px;
}

.form-error {
  border-radius: 8px;
  padding: 12px;
  background: #fff0f2;
  color: var(--red);
  font-weight: 800;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.admin-nav a,
.admin-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.admin-nav a:hover,
.admin-nav button:hover {
  border-color: rgba(34, 196, 234, 0.55);
  background: rgba(34, 196, 234, 0.18);
  color: #fff;
}

.admin-nav button {
  color: var(--red);
}

.flash-message {
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-stats a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.06);
}

.admin-stats span {
  color: var(--blue);
  font-size: 2.4rem;
  font-weight: 900;
}

.admin-stats p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-heading.inside {
  margin-bottom: 22px;
}

.form-card {
  max-width: 980px;
}

.form-grid,
.stats-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compact-form-grid {
  margin-bottom: 12px;
}

.wide-field {
  grid-column: 1 / -1;
}

.check-label {
  align-content: center;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}

.check-label input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.compact-check {
  align-self: stretch;
  align-content: end;
  min-height: 44px;
}

.form-section-title {
  margin: 30px 0 16px;
  color: var(--blue-strong);
  font-size: 1.3rem;
  font-weight: 900;
}

.form-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.form-section-header .form-section-title {
  margin-bottom: 16px;
}

.goal-form-list {
  display: grid;
  gap: 12px;
}

.goal-form-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) minmax(160px, 0.65fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f4fbff;
}

.card-form-row {
  grid-template-columns: 100px minmax(0, 1fr) minmax(150px, 0.65fr) 130px auto;
}

.lineup-form-row {
  grid-template-columns: 72px minmax(0, 1fr) minmax(140px, 0.6fr) 112px 76px 76px auto;
}

.substitute-form-row {
  grid-template-columns: 72px minmax(0, 1fr) minmax(140px, 0.6fr) auto;
}

.substitution-form-row {
  grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr) auto;
}

.video-form-row {
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1fr) auto;
}

.remove-goal {
  min-height: 44px;
  border: 1px solid #ffd3d8;
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff0f2;
  color: var(--red);
  font-weight: 900;
}

.current-preview {
  width: 130px;
  height: 130px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.current-preview.wide {
  width: min(100%, 360px);
  height: 200px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-row {
  grid-template-columns: 70px minmax(0, 1fr) auto;
}

.admin-list-row img,
.list-icon {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.list-icon {
  display: grid;
  place-items: center;
  min-width: 58px;
  background: var(--sky-soft);
  color: var(--blue);
}

.admin-list-row strong {
  display: block;
  font-weight: 900;
}

.admin-list-row span {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.row-actions a,
.row-actions button {
  color: var(--blue);
  font-weight: 900;
}

.row-actions button {
  color: var(--red);
}

.admin-inline-action {
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid rgba(34, 196, 234, 0.22);
  background: #05142d;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
}

.footer-grid div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
}

.footer-grid a {
  color: var(--sky);
}

.footer-grid img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.footer-grid p {
  margin: 0;
}

.reveal-on-load {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal-on-load {
  opacity: 0;
  transform: translateY(16px);
}

.js-enabled .reveal-on-load.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .match-overview,
  .stats-layout,
  .news-grid,
  .news-grid.wide,
  .card-grid,
  .players-preview,
  .matches-feed-grid,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .stats-layout {
    grid-template-columns: 1fr;
  }

  .player-profile-layout {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .calendar-shell {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .container-xl,
  .container-md {
    width: min(100% - 24px, 1180px);
  }

  .hero-band {
    min-height: auto;
  }

  .hero-grid,
  .match-overview,
  .matches-feed-grid,
  .player-profile-head,
  .card-grid,
  .players-preview,
  .news-grid,
  .news-grid.wide,
  .admin-stats,
  .form-grid,
  .stats-form-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 48px 0;
  }

  .player-profile-head > img {
    width: 150px;
    height: 150px;
  }

  .hero-copy h1,
  .score-board h1,
  .article-body h1 {
    font-size: 2.55rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .news-ticker-band {
    grid-template-columns: 1fr;
  }

  .ticker-label {
    justify-content: start;
    padding: 10px 16px;
  }

  .ticker-track a {
    min-width: 280px;
    padding: 12px 20px;
  }

  .calendar-controls {
    justify-content: space-between;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(38px, 1fr));
  }

  .calendar-day {
    min-height: 76px;
    padding: 5px;
  }

  .calendar-weekdays b {
    padding: 6px 2px;
    font-size: 0.72rem;
  }

  .calendar-day time {
    width: 22px;
    height: 22px;
    font-size: 0.78rem;
  }

  .calendar-match {
    padding: 6px;
  }

  .calendar-match strong {
    font-size: 0.72rem;
  }

  .calendar-match span,
  .calendar-match em {
    display: none;
  }

  .section-heading,
  .admin-heading,
  .score-board,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-row,
  .admin-list-row,
  .goal-form-row,
  .goal-row,
  .player-match-row,
  .substitution-row {
    grid-template-columns: 1fr;
  }

  .player-match-badges {
    justify-content: flex-start;
  }

  .match-row b,
  .score-board strong {
    width: max-content;
  }

  .match-detail-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .match-detail-tabs button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.9rem;
  }

  .stats-title,
  .possession-row,
  .stat-row {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .flow-row {
    display: block;
  }

  .match-flow::before,
  .flow-divider {
    display: none;
  }

  .match-flow {
    gap: 10px;
  }

  .flow-side {
    min-height: 0;
  }

  .atom-event .flow-right,
  .opponent-event .flow-left {
    display: none;
  }

  .flow-left,
  .flow-right {
    justify-content: flex-start;
    text-align: left;
  }

  .flow-event {
    display: grid;
    grid-template-columns: 24px auto minmax(0, 1fr);
    width: 100%;
    max-width: none;
    align-items: center;
    padding: 10px 12px;
  }

  .atom-event .flow-event {
    border-left: 4px solid var(--sky);
  }

  .opponent-event .flow-event {
    border-left: 4px solid var(--red);
  }

  .flow-event span {
    min-width: 0;
  }

  .flow-event strong,
  .flow-event em {
    overflow-wrap: anywhere;
  }

  .lineup-board {
    min-height: 540px;
  }

  .lineup-chip {
    min-width: 92px;
    max-width: 118px;
    padding: 6px;
  }

  .lineup-chip span {
    font-size: 0.72rem;
  }

  .bench-list,
  .lineup-sub-list,
  .player-stat-grid {
    grid-template-columns: 1fr;
  }

  .content-band {
    padding: 42px 0;
  }

  .page-hero,
  .page-hero.compact {
    padding: 42px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.calendar-match,
.calendar-match:visited,
.calendar-match:hover,
.calendar-match.win,
.calendar-match.loss,
.calendar-match.draw,
.calendar-match.upcoming,
.calendar-day .calendar-match,
.calendar-day .calendar-match:visited,
.calendar-match strong,
.calendar-match span,
.calendar-match em,
.calendar-day .calendar-match strong {
  color: var(--blue-strong) !important;
}

.calendar-match span,
.calendar-match em,
.calendar-day .calendar-match span,
.calendar-day .calendar-match em {
  color: #415872 !important;
}
