:root {
  color-scheme: dark;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

main,
.tab-shell,
.tab-panel,
.ucl-board {
  min-width: 0;
  max-width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  background: #020617;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hero-background-carousel {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
}

.hero-background-carousel::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, .98) 0%, rgba(2, 6, 23, .9) 45%, rgba(2, 6, 23, .54) 100%);
  content: "";
  pointer-events: none;
}

.hero-background-carousel .aiub-carousel-viewport,
.hero-background-carousel .aiub-carousel-track {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.hero-background-carousel .aiub-carousel-slide img {
  object-position: center 58%;
}

.site-menu-toggle { display: inline-flex; }
.mobile-admin-link { display: none !important; }
.mobile-menu-button b { display: none; }

.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(2, 6, 23, .45), transparent);
  content: "";
  pointer-events: none;
}

body[data-initial-tab]:not([data-initial-tab="overview"]) .hero-content { display: none; }

.site-nav-shell {
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  background: rgba(2, 6, 23, .88);
  backdrop-filter: blur(16px);
}

.global-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, .13);
  background: rgba(2, 6, 23, .92);
  box-shadow: 0 12px 35px rgba(2, 6, 23, .22);
  backdrop-filter: blur(18px);
}

.global-nav {
  display: grid;
  width: min(1280px, 100%);
  min-height: 68px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 0 20px;
}

.global-nav-links,
.global-nav-actions {
  display: flex;
  align-items: center;
}

.global-nav-links {
  min-width: 0;
  justify-content: center;
  gap: 4px;
}

.global-nav-links a {
  border-radius: 8px;
  color: #94a3b8;
  padding: 9px 11px;
  font-size: .75rem;
  font-weight: 850;
  transition: color .18s ease, background-color .18s ease;
}

.global-nav-links a:hover,
.global-nav-links a.active {
  background: rgba(52, 211, 153, .09);
  color: #d1fae5;
}

.global-nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.global-back,
.global-admin {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  color: #cbd5e1;
  padding: 8px 11px;
  font-size: .7rem;
  font-weight: 850;
  white-space: nowrap;
}

.global-back:hover,
.global-admin:hover,
.global-admin.active {
  border-color: rgba(52, 211, 153, .42);
  background: rgba(6, 78, 59, .2);
  color: #a7f3d0;
}

.site-nav {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 68px;
  max-width: 1280px;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-nav > *,
.hero-content > *,
.overview-layout > *,
.overview-lead > * {
  min-width: 0;
}

.site-brand {
  display: flex;
  grid-column: 1;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.site-brand img {
  display: block;
  width: 104px;
  height: 56px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.hero-tournament-logo {
  display: block;
  width: min(330px, 72vw);
  max-height: 170px;
  margin-top: 16px;
  filter: drop-shadow(0 16px 28px rgba(2, 6, 23, .28));
  object-fit: contain;
}

.organizer-marks {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .18);
  padding-top: 13px;
}

.organizer-marks span {
  margin-right: auto;
  color: #94a3b8;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.organizer-marks img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.organizer-marks .office-of-sports-mark {
  width: 150px;
  height: 150px;
}

.office-of-sports-lockup {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.office-of-sports-lockup strong {
  color: #f8fafc;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-login-logo {
  display: block;
  width: min(100%, 250px);
  height: 150px;
  margin: 0 auto 10px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.admin-login-organizers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-login-organizers img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.admin-title-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.admin-title-lockup > img {
  width: 94px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.match-card-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.match-card-brand > img {
  width: 138px;
  height: 88px;
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.site-nav-top {
  display: contents;
}

.site-brand span {
  color: #34d399;
  font-size: 1.05rem;
  font-weight: 950;
}

.site-brand b {
  color: #f8fafc;
  font-size: .82rem;
  font-weight: 900;
}

.site-tabs {
  display: flex;
  grid-column: 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-tabs::-webkit-scrollbar {
  display: none;
}

.site-tabs .tab-button {
  position: relative;
  min-height: 68px;
  border-radius: 0;
  padding: 0 12px;
  color: #94a3b8;
  font-size: .78rem;
}

.site-tabs a.tab-button {
  display: inline-flex;
  align-items: center;
}

.site-tabs .tab-button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: transparent;
}

.site-tabs .tab-button:hover {
  color: #f8fafc;
}

.site-tabs .tab-button.active {
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
}

.site-tabs .tab-button.active::after {
  background: #34d399;
}

.admin-nav-link {
  display: inline-flex;
  grid-column: 3;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  padding: 0 14px;
  color: #e2e8f0;
  font-size: .78rem;
  font-weight: 900;
  justify-self: end;
}

.admin-nav-link:hover {
  border-color: rgba(52, 211, 153, .7);
  color: #6ee7b7;
}

.admin-nav-link.active {
  border-color: rgba(52, 211, 153, .7);
  background: rgba(6, 78, 59, .24);
  color: #6ee7b7;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  min-height: 400px;
  max-width: 1280px;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  margin: 0 auto;
  padding: 58px 20px 64px;
}

.hero-copy > p:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6ee7b7;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-copy > p:first-child span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6ee7b7;
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 13px;
  font-size: 3.8rem;
  font-weight: 950;
  line-height: 1;
}

.hero-title {
  display: flex;
  max-width: 650px;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .22em;
  margin-top: 18px;
  color: #f8fafc;
  font-size: clamp(3rem, 5.6vw, 5rem) !important;
  font-weight: 950;
  line-height: .92 !important;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: 0 18px 40px rgba(2, 6, 23, .45);
}

.hero-title span { color: #34d399; }
.hero-title small { color: #94a3b8; font-size: .34em; letter-spacing: .14em; }

.hero-description {
  max-width: 570px;
  margin-top: 18px;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero-primary-action,
.hero-secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 900;
}

.hero-primary-action {
  border-radius: 8px;
  background: #34d399;
  padding: 0 18px;
  color: #022c22;
  box-shadow: 0 10px 25px rgba(16, 185, 129, .16);
}

.hero-primary-action:hover {
  background: #6ee7b7;
}

.hero-secondary-action {
  gap: 8px;
  color: #e2e8f0;
}

.hero-secondary-action:hover {
  color: #6ee7b7;
}

.hero-status {
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 14px;
  background: rgba(15, 23, 42, .72);
  padding: 24px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, .28);
  backdrop-filter: blur(16px);
}

.hero-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.hero-status-head span,
.hero-status > small {
  color: #94a3b8;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero-status-head b {
  border: 1px solid rgba(52, 211, 153, .34);
  border-radius: 999px;
  background: rgba(52, 211, 153, .12);
  padding: 5px 8px;
  color: #6ee7b7;
  font-size: .65rem;
  font-weight: 950;
}

.hero-status > strong {
  display: block;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.15;
}

.hero-status > strong small {
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 750;
}

.hero-status-progress {
  height: 5px;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .18);
}

.hero-status-progress span {
  display: block;
  height: 100%;
  background: #34d399;
  border-radius: inherit;
}

.hero-live-fixture {
  padding: 16px;
}

.hero-live-fixture .hero-status-head {
  margin-bottom: 12px;
}

.hero-live-fixture .fixture-row {
  width: 100%;
  background: rgba(15, 23, 42, .96);
}

.hero-live-fixture .fixture-card-main {
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  min-height: 74px;
  padding-inline: 10px;
}

.hero-live-fixture .fixture-team {
  font-size: .82rem;
  white-space: normal;
}

.hero-live-fixture .fixture-card-head,
.hero-live-fixture .fixture-card-foot {
  gap: 7px;
  padding-inline: 10px;
  font-size: .62rem;
}

.hero-live-fixture .organizer-marks {
  margin-top: 14px;
}

.nav-pill,
.secondary-button,
.primary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.nav-pill,
.secondary-button {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
}

.primary-button {
  background: #34d399;
  color: #020617;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .12);
}

.danger-button {
  border: 1px solid rgba(248, 113, 113, .36);
  background: rgba(127, 29, 29, .72);
  color: #fee2e2;
}

.primary-button,
.secondary-button,
.danger-button { transition: transform .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.primary-button:hover { background: #6ee7b7; box-shadow: 0 10px 26px rgba(16, 185, 129, .2); transform: translateY(-1px); }
.secondary-button:hover { border-color: rgba(52, 211, 153, .45); background: rgba(6, 78, 59, .24); color: #a7f3d0; transform: translateY(-1px); }
.danger-button:hover { border-color: rgba(248, 113, 113, .58); background: rgba(153, 27, 27, .82); transform: translateY(-1px); }

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.scoreboard-panel,
.panel,
.subpanel,
.poster-card {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(15, 23, 42, .88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.scoreboard-panel,
.panel,
.subpanel {
  padding: 20px;
}

.panel h2,
.section-title h2 {
  font-size: 1.5rem;
  font-weight: 950;
}

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.section-title p {
  color: #cbd5e1;
}

.section-grid {
  display: grid;
  gap: 16px;
}

.tab-shell {
  display: grid;
  width: 100%;
}

.tab-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(2, 6, 23, .58);
  padding: 8px;
}

.tab-button {
  min-height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 0 16px;
  color: #cbd5e1;
  font-weight: 900;
}

.tab-button.active {
  background: rgba(52, 211, 153, .14);
  color: #a7f3d0;
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .28);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.admin-ajax-notice {
  margin-top: 16px;
  border-radius: 8px;
  background: rgba(16, 185, 129, .18);
  color: #d1fae5;
  padding: 12px;
  font-weight: 850;
}

.admin-ajax-notice.error {
  background: rgba(239, 68, 68, .18);
  color: #fee2e2;
}

.match-editor form.is-saving,
.schedule-fixture-row.is-saving {
  opacity: .78;
}

.mini-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  padding: 10px 12px;
}

.overview-layout,
.scorers-shell,
.fair-play-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #0f172a;
}

.overview-lead {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(105deg, rgba(6, 78, 59, .48), rgba(15, 23, 42, .15)),
    url("Microsoft Outlook.jpg") center 72%/cover;
  padding: 32px;
}

.overview-lead > div:first-child {
  max-width: 680px;
}

.overview-kicker {
  color: #6ee7b7;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.overview-lead h2,
.scorers-heading h2 {
  margin-top: 7px;
  font-size: 2.7rem;
  font-weight: 950;
  line-height: 1.05;
}

.overview-lead > div:first-child > p:last-child {
  max-width: 590px;
  margin-top: 12px;
  color: #e2e8f0;
}

.overview-progress {
  display: grid;
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  place-content: center;
  border: 8px solid rgba(52, 211, 153, .68);
  border-radius: 50%;
  background: rgba(2, 6, 23, .78);
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}

.overview-progress strong {
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.overview-progress span {
  margin-top: 5px;
  color: #a7f3d0;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.overview-stats > div {
  display: grid;
  gap: 7px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 24px;
}

.overview-stats > div:last-child {
  border-right: 0;
}

.overview-stats span {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.overview-stats strong {
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.overview-stats small {
  margin-left: 3px;
  color: #64748b;
  font-size: 1rem;
}

.aiub-gallery {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 18px;
  background: #0f172a;
}

.aiub-gallery-head {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.aiub-gallery-head h2 { margin-top: 3px; font-size: 1.45rem; font-weight: 950; }
.aiub-gallery-head > span { color: #64748b; font-size: .72rem; font-weight: 800; }
.aiub-carousel-viewport { position: relative; overflow: hidden; background: #020617; touch-action: pan-y; }
.aiub-carousel-track { position: relative; aspect-ratio: 16 / 7; }
.aiub-carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.025); transition: opacity .55s ease, transform .7s ease; pointer-events: none; }
.aiub-carousel-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.aiub-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.aiub-carousel-viewport::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(2,6,23,.62)); content: ""; pointer-events: none; }
.aiub-carousel-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(2,6,23,.58); color: #fff; font-size: 1.15rem; transform: translateY(-50%); backdrop-filter: blur(10px); transition: background .18s ease, transform .18s ease; }
.aiub-carousel-arrow:hover { background: rgba(6,78,59,.82); transform: translateY(-50%) scale(1.05); }
.aiub-carousel-arrow.previous { left: 18px; }
.aiub-carousel-arrow.next { right: 18px; }
.aiub-carousel-dots { position: absolute; z-index: 2; right: 0; bottom: 17px; left: 0; display: flex; justify-content: center; gap: 7px; }
.aiub-carousel-dots button { width: 8px; height: 8px; border: 0; border-radius: 999px; background: rgba(255,255,255,.48); padding: 0; transition: width .2s ease, background .2s ease; }
.aiub-carousel-dots button.active { width: 28px; background: #34d399; }

.overview-groups {
  padding: 26px;
}

.overview-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.overview-group {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  background: #0b1222;
}

.overview-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(30, 41, 59, .76);
  padding: 10px 13px;
}

.overview-group header span {
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.overview-group header strong {
  color: #6ee7b7;
  font-size: 1.1rem;
  font-weight: 950;
}

.overview-team {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 55px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 8px 12px;
}

.overview-team:last-child {
  border-bottom: 0;
}

.overview-flag {
  font-size: 1.35rem;
}

.overview-team b,
.overview-team small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-team b {
  font-size: .87rem;
}

.overview-team-link {
  display: block;
  overflow: hidden;
  color: #f8fafc;
  font-size: .87rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}

.overview-team-link:hover,
.overview-team-link:focus-visible {
  color: #6ee7b7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nation-profile-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.nation-profile-link:hover,
.nation-profile-link:focus-visible {
  color: #6ee7b7;
  text-decoration-color: currentColor;
}

.overview-team small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: .72rem;
}

.scorers-shell {
  max-width: 980px;
  margin: 0 auto;
}

.scorers-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 20px;
}

.scorers-heading > p {
  max-width: 390px;
  color: #94a3b8;
  text-align: right;
}

.scorer-leader {
  position: relative;
  display: grid;
  grid-template-columns: auto 190px minmax(0, 1fr) auto;
  min-height: 250px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border-block: 1px solid rgba(52, 211, 153, .28);
  background: linear-gradient(105deg, #052e2b, #0f172a 70%);
  padding: 20px 34px 0;
}

.leader-rank {
  align-self: start;
  margin-top: 20px;
  color: rgba(167, 243, 208, .32);
  font-size: 3.5rem;
  font-weight: 950;
}

.scorer-leader img {
  width: 190px;
  height: 224px;
  align-self: end;
  object-fit: cover;
  object-position: top;
}

.leader-details > span {
  color: #6ee7b7;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.leader-details h3 {
  margin-top: 7px;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.08;
}

.leader-details p {
  margin-top: 8px;
  color: #cbd5e1;
  font-weight: 700;
}

.leader-goals {
  display: flex;
  gap: 24px;
  border-left: 1px solid rgba(255, 255, 255, .13);
  padding-left: 30px;
}

.leader-goals > div { display: grid; justify-items: center; }

.leader-goals strong {
  color: #fbbf24;
  font-size: 4rem;
  font-weight: 950;
  line-height: 1;
}

.leader-goals span {
  color: #fde68a;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.scorer-table-head,
.scorer-entry {
  display: grid;
  grid-template-columns: minmax(300px, 1.3fr) minmax(210px, 1fr) 70px 70px;
  align-items: center;
}

.scorer-table-head {
  padding: 16px 24px 9px;
  color: #64748b;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.scorer-table-head span:nth-last-child(-n + 2) {
  text-align: right;
}

.scorer-list {
  padding: 0 16px 16px;
}

.scorer-entry {
  grid-template-columns: 44px 48px minmax(190px, 1.3fr) minmax(210px, 1fr) 60px 60px;
  min-height: 72px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 8px;
}

.scorer-entry.is-leader {
  background: rgba(52, 211, 153, .06);
}

.scorer-entry > img {
  width: 40px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
}

.scorer-rank {
  color: #64748b;
  font-size: .78rem;
  font-weight: 950;
}

.scorer-player,
.scorer-team,
.scorer-team > span {
  min-width: 0;
}

.scorer-player {
  padding-left: 12px;
}

.scorer-player b,
.scorer-player small,
.scorer-team span,
.scorer-team small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scorer-player small,
.scorer-team small {
  margin-top: 3px;
  color: #64748b;
  font-size: .7rem;
}

.scorer-team {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cbd5e1;
  font-size: .82rem;
}

.scorer-team > b {
  font-size: 1.25rem;
}

.scorer-goals {
  color: #fbbf24;
  font-size: 1.6rem;
  font-weight: 950;
  text-align: right;
}

.scorer-assists {
  color: #a7f3d0;
  font-size: 1.35rem;
  font-weight: 950;
  text-align: right;
}

.scorers-empty {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 52px 28px;
  text-align: center;
}

.scorers-empty h3 {
  font-size: 1.3rem;
  font-weight: 950;
}

.scorers-empty p {
  margin-top: 5px;
  color: #94a3b8;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  font-size: .9rem;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 9px 8px;
  text-align: left;
}

.data-table th {
  color: #94a3b8;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.data-table tr.qualify td {
  background: rgba(52, 211, 153, .1);
}

.data-table tr.third td {
  background: rgba(251, 191, 36, .08);
}

.fixture-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 1120px;
  margin-inline: auto;
}

.fixture-search {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
  width: min(100%, 560px);
  margin: 20px 0 4px auto;
}

.fixture-search-label {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fixture-search-control {
  position: relative;
  display: block;
  flex: 1 1 360px;
}

.fixture-search-control::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 17px;
  width: 13px;
  height: 13px;
  border: 2px solid #64748b;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateY(-58%);
  transition: border-color .2s ease;
}

.fixture-search-control::after {
  position: absolute;
  z-index: 1;
  top: calc(50% + 6px);
  left: 29px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #64748b;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
  transition: background-color .2s ease;
}

.fixture-search-control input {
  width: 100%;
  min-height: 50px;
  padding: 0 46px 0 48px;
  border: 1px solid #334155;
  border-radius: 7px;
  outline: 0;
  background: #080f1f;
  color: #f8fafc;
  font-size: .92rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.fixture-search-control input::placeholder {
  color: #64748b;
  font-weight: 600;
}

.fixture-search-control:focus-within::before {
  border-color: #34d399;
}

.fixture-search-control:focus-within::after {
  background: #34d399;
}

.fixture-search-control:focus-within input {
  border-color: #34d399;
  background: #0b1425;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .12), 0 14px 34px rgba(0, 0, 0, .24);
}

.fixture-search-control input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: invert(85%);
}

.fixture-search-empty {
  grid-column: 1 / -1;
  padding: 36px 12px;
  color: #94a3b8;
  text-align: center;
}

.fixture-section-title {
  grid-column: 1 / -1;
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 950;
  margin: 18px 0 2px;
  padding: 0 2px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.fixture-section-title:first-child {
  margin-top: 0;
}

.fixture-row {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(15, 23, 42, .9);
  color: #f8fafc;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .3);
  overflow: hidden;
}

.fixture-row:hover {
  border-color: rgba(103, 232, 249, .42);
  box-shadow: 0 20px 52px rgba(14, 165, 233, .18);
}

.fixture-row.is-live {
  border-color: rgba(248, 113, 113, .5);
  box-shadow: 0 20px 52px rgba(239, 68, 68, .16);
}

.live-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff !important;
  font-weight: 850;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, .35);
  animation: live-watch-pulse 1.6s infinite;
}
.live-watch-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.live-watch-btn span[aria-hidden="true"] {
  font-size: .55rem;
  animation: live-watch-dot 1s infinite;
}
@keyframes live-watch-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(239, 68, 68, .35); }
  50%      { box-shadow: 0 8px 24px rgba(239, 68, 68, .6); }
}
@keyframes live-watch-dot {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

.match-live-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, .22), rgba(127, 29, 29, .55));
  border: 1px solid rgba(248, 113, 113, .55);
  color: #fff !important;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}
.match-live-cta-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(239, 68, 68, .25), transparent 60%);
  animation: live-watch-pulse 1.8s infinite;
  pointer-events: none;
}
.match-live-cta-label {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.match-live-cta-meta {
  font-size: .72rem;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .04em;
}
.match-live-cta:hover .match-live-cta-label {
  color: #fecaca;
}

.profile-match-card-wrap {
  position: relative;
  display: block;
}
.profile-match-live {
  position: absolute;
  top: 10px;
  right: 10px;
}

.fixture-card-head,
.fixture-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  background: rgba(30, 41, 59, .92);
  color: #cbd5e1;
  font-size: .74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fixture-card-head {
  justify-content: space-between;
  padding: 0 14px;
}

.fixture-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 16px;
}

.fixture-side {
  display: flex;
  align-items: center;
}

.fixture-side.home {
  justify-content: flex-end;
  text-align: right;
}

.fixture-side.away {
  justify-content: flex-start;
}

.fixture-no {
  color: #cbd5e1;
  font-weight: 900;
}

.fixture-team {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 900;
}

.fixture-score {
  color: #f8fafc;
  font-size: 1.18rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.fixture-status {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 950;
  padding: 4px 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fixture-status.finished {
  border-color: #86efac;
  background: rgba(22, 101, 52, .3);
  color: #bbf7d0;
}

.fixture-status.live {
  border-color: rgba(248, 113, 113, .7);
  background: rgba(127, 29, 29, .38);
  color: #fecaca;
}

.fixture-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(248, 113, 113, .6);
  border-radius: 999px;
  background: rgba(127, 29, 29, .28);
  color: #fee2e2;
  font-size: .72rem;
  font-weight: 950;
  padding: 4px 8px;
}

.fixture-live-clock[hidden] {
  display: none;
}

.fixture-live-clock i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, .12);
  animation: live-pulse 1.5s infinite;
}

.fixture-card-foot {
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 0 14px;
}

.fixture-card-foot a {
  color: #67e8f9;
  font-weight: 950;
  text-transform: none;
  letter-spacing: 0;
}

.fixture-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.team-profile-inline {
  position: relative;
  z-index: 4;
  color: #f8fafc;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.team-profile-inline:hover,
.team-profile-inline:focus-visible {
  color: #67e8f9;
  text-decoration-color: currentColor;
}

.fixture-card-foot a {
  position: relative;
  z-index: 3;
}

.bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.bracket-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.bracket-col h3 {
  font-weight: 950;
  color: #cbd5e1;
}

.match-card {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 41, 59, .95), rgba(15, 23, 42, .95));
  padding: 12px;
}

.team-line {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.ucl-board {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 17, 42, .96), rgba(12, 20, 50, .9)),
    radial-gradient(circle at 70% 20%, rgba(52, 211, 153, .14), transparent 32%);
  padding: 18px;
  overflow: hidden;
}

.ucl-board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  padding-bottom: 16px;
}

.ucl-board-head h2 {
  font-size: 1.7rem;
  font-weight: 950;
}

.ucl-board-head p {
  margin-top: 4px;
  color: #cbd5e1;
}

.ucl-board-head span {
  color: #93c5fd;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.bracket-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.bracket-head-actions .primary-button {
  flex: 0 0 auto;
  min-height: 38px;
}

.bracket-stage-nav { display: flex; gap: 5px; }
.bracket-stage-nav button { display: grid; min-width: 34px; min-height: 30px; place-items: center; border: 1px solid rgba(148, 163, 184, .2); border-radius: 7px; background: rgba(2, 6, 23, .3); color: #94a3b8; padding: 0 8px; font-size: .62rem; font-weight: 950; }
.bracket-stage-nav button:hover,
.bracket-stage-nav button.active { border-color: rgba(56, 189, 248, .5); background: rgba(14, 116, 144, .22); color: #e0f2fe; }

.ucl-bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 28px;
  overflow-x: auto;
  padding: 22px 4px 8px;
}

.ucl-stage {
  min-width: 250px;
}

.ucl-stage h3 {
  margin-bottom: 14px;
  color: #dbeafe;
  font-size: .85rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.ucl-stage-track {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 860px;
  position: relative;
}

.ucl-stage:nth-child(2) .ucl-stage-track {
  gap: 42px;
}

.ucl-stage:nth-child(3) .ucl-stage-track {
  gap: 104px;
}

.ucl-stage:nth-child(4) .ucl-stage-track {
  gap: 236px;
}

.ucl-stage:nth-child(5) .ucl-stage-track,
.ucl-stage:nth-child(6) .ucl-stage-track {
  gap: 24px;
}

.ucl-match {
  position: relative;
  border: 1px solid rgba(147, 197, 253, .26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 64, 175, .28), rgba(15, 23, 42, .94));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
  padding: 11px;
}

.ucl-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -28px;
  width: 28px;
  border-top: 1px solid rgba(147, 197, 253, .34);
}

.ucl-stage:last-child .ucl-match::after,
.ucl-stage:nth-child(5) .ucl-match::after {
  display: none;
}

.ucl-match > a {
  color: #67e8f9;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ucl-team {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 8px;
  padding-top: 8px;
}

.ucl-team span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ucl-team b {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.empty-bracket {
  border: 1px dashed rgba(147, 197, 253, .34);
  border-radius: 8px;
  margin-top: 18px;
  padding: 28px;
  text-align: center;
}

.empty-bracket h3 {
  font-size: 1.25rem;
  font-weight: 950;
}

.empty-bracket p {
  margin-top: 6px;
  color: #cbd5e1;
}

.knockout-map {
  --card-h: 82px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 232px;
  gap: 38px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: min(76vh, 820px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 14px 38px 14px 3px;
}

.bracket-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.bracket-line {
  fill: none;
  stroke: rgba(125, 211, 252, .86);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, .28));
}

.knockout-stage {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  min-width: 232px;
}

.knockout-stage header {
  position: sticky;
  z-index: 6;
  top: 0;
  display: grid;
  gap: 3px;
  min-height: 54px;
  margin-bottom: 10px;
  border-left: 3px solid #38bdf8;
  background: linear-gradient(90deg, #0a1530 78%, rgba(10, 21, 48, .84));
  padding: 7px 9px;
}

.knockout-stage header span {
  color: #67e8f9;
  font-size: .58rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.knockout-stage header h3 {
  color: #f8fafc;
  font-size: .86rem;
  font-weight: 950;
  line-height: 1.1;
}

.knockout-stage header small {
  color: #94a3b8;
  font-size: .6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.knockout-stack {
  position: relative;
  min-height: 1524px;
}

.knockout-match {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  min-height: var(--card-h);
  border: 1px solid rgba(125, 211, 252, .32);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(29, 78, 216, .32), rgba(15, 23, 42, .96)),
    linear-gradient(90deg, rgba(14, 165, 233, .16), transparent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .26);
  padding: 8px;
}

.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 4px;
}

.match-meta a,
.match-meta span {
  border-radius: 999px;
  padding: 3px 6px;
  font-size: .56rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.match-meta a {
  background: #38bdf8;
  color: #020617;
}

.match-meta span {
  border: 1px solid rgba(255, 255, 255, .14);
  color: #dbeafe;
}

.ko-team {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 3px;
  margin-top: 3px;
  font-size: .66rem;
}

.ko-team.winner {
  border-color: rgba(52, 211, 153, .38);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(52, 211, 153, .22), rgba(52, 211, 153, .04));
  color: #d1fae5;
  margin-left: -6px;
  margin-right: -6px;
  padding-left: 6px;
  padding-right: 6px;
}

.ko-team.winner b {
  color: #6ee7b7;
}

.ko-team span,
.ko-team a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ko-team a {
  position: relative;
  z-index: 4;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.ko-team a:hover {
  color: #7dd3fc;
  text-decoration-color: currentColor;
}

.ko-team b {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.knockout-stage.is-highlighted {
  background:
    linear-gradient(180deg, rgba(14, 116, 144, .18), rgba(14, 116, 144, 0));
  border-radius: 12px;
  outline: 1px solid rgba(56, 189, 248, .45);
  outline-offset: 4px;
  transition: outline-color .35s ease, background .35s ease;
}
.knockout-stage.is-highlighted header {
  border-left-color: #fde047;
  background: linear-gradient(90deg, #1e293b 78%, rgba(15, 23, 42, .84));
  box-shadow: 0 8px 20px rgba(253, 224, 71, .18);
}
.knockout-match.is-highlighted {
  border-color: rgba(253, 224, 71, .85);
  box-shadow:
    0 0 0 2px rgba(253, 224, 71, .25),
    0 14px 30px rgba(253, 224, 71, .25),
    0 0 24px rgba(56, 189, 248, .35);
  background:
    linear-gradient(180deg, rgba(253, 224, 71, .22), rgba(15, 23, 42, .96)),
    linear-gradient(90deg, rgba(14, 165, 233, .25), transparent);
  animation: bracket-match-flash 1.6s ease-in-out infinite;
}
@keyframes bracket-match-flash {
  0%, 100% { box-shadow: 0 0 0 2px rgba(253, 224, 71, .25), 0 14px 30px rgba(253, 224, 71, .25), 0 0 24px rgba(56, 189, 248, .35); }
  50%      { box-shadow: 0 0 0 3px rgba(253, 224, 71, .45), 0 18px 38px rgba(253, 224, 71, .45), 0 0 36px rgba(56, 189, 248, .55); }
}

.field {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 800;
}

.field input,
.field select {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(2, 6, 23, .68);
  color: white;
  padding: 0 12px;
  font: inherit;
}

.admin-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 11px 12px;
}

.admin-match:hover {
  border-color: rgba(125, 211, 252, .38);
  background: rgba(14, 165, 233, .08);
}

.admin-match-meta {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-match b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 900;
}

.admin-match strong {
  align-self: center;
  color: #67e8f9;
  font-size: .9rem;
  font-weight: 950;
  grid-column: 2;
  grid-row: 2 / span 2;
  text-align: right;
}

.admin-match .status-chip {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 24px;
  padding: 3px 8px;
}

.admin-match.active {
  border-color: #34d399;
  background: rgba(52, 211, 153, .1);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-topbar h1 {
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
}

.admin-topbar p {
  margin-top: 8px;
  color: #cbd5e1;
}

.admin-account-actions { display: flex; align-items: center; gap: 8px; }
.admin-account-menu { position: relative; }
.admin-account-menu > summary { list-style: none; cursor: pointer; }
.admin-account-menu > summary::-webkit-details-marker { display: none; }
.admin-account-menu[open] > summary { border-color: rgba(52, 211, 153, .46); background: rgba(6, 78, 59, .24); color: #a7f3d0; }
.admin-password-form {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(340px, calc(100vw - 32px));
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  background: #0f172a;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .55);
}
.admin-password-form > div { display: grid; border-bottom: 1px solid rgba(148, 163, 184, .14); padding-bottom: 12px; }
.admin-password-form > div span,
.admin-password-form > div small { color: #64748b; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.admin-password-form > div strong { margin: 3px 0; color: #f8fafc; font-size: 1rem; }
.admin-password-form .field { margin: 0; }
.admin-password-form .primary-button { width: 100%; margin-top: 2px; }

.admin-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
  align-items: start;
  gap: 18px;
}

.schedule-export-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; border-color: rgba(52, 211, 153, .24); background: linear-gradient(115deg, rgba(6, 78, 59, .24), rgba(15, 23, 42, .9)); }
.schedule-export-bar h2 { margin: 3px 0; font-size: 1.25rem; font-weight: 950; }
.schedule-export-bar p:last-child { color: #94a3b8; font-size: .8rem; }
.schedule-export-bar .primary-button { flex: 0 0 auto; }
.export-fixture-tile { border-color: rgba(52, 211, 153, .24); }

@media (max-width: 620px) {
  .schedule-export-bar { align-items: stretch; flex-direction: column; }
  .schedule-export-bar .primary-button { width: 100%; }
}

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

.schedule-builder-form .field,
.schedule-delay .field {
  margin: 0;
}

.schedule-days {
  grid-row: span 3;
}

.schedule-day-window {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 12px;
  background: rgba(14, 116, 144, .1);
  padding: 14px;
}

.schedule-day-window > div {
  grid-column: 1 / -1;
}

.schedule-day-window > div span,
.schedule-day-window > div small {
  display: block;
}

@media (max-width: 900px) {
  .schedule-day-window {
    grid-column: 1;
  }
}

.schedule-day-window > div span {
  color: #e0f2fe;
  font-weight: 950;
}

.schedule-day-window > div small {
  margin-top: 3px;
  color: #94a3b8;
  line-height: 1.4;
}

.schedule-days-needed {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 116, 144, .2), rgba(15, 23, 42, .72));
  padding: 13px 15px;
}

.schedule-days-needed > span {
  color: #7dd3fc;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.schedule-days-needed strong {
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 950;
}

.schedule-days-needed small {
  color: #94a3b8;
  line-height: 1.45;
}

.schedule-days-needed.enough {
  border-color: rgba(52, 211, 153, .42);
  background: linear-gradient(135deg, rgba(5, 150, 105, .2), rgba(15, 23, 42, .72));
}

.schedule-days-needed.short,
.schedule-days-needed.invalid {
  border-color: rgba(251, 191, 36, .42);
  background: linear-gradient(135deg, rgba(146, 64, 14, .2), rgba(15, 23, 42, .72));
}

.schedule-inline-calendar {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .72));
  box-shadow: 0 16px 35px rgba(2, 6, 23, .2);
}

.schedule-inline-calendar header {
  display: grid;
  min-height: 54px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  padding: 5px 10px;
}

.schedule-inline-calendar header strong {
  color: #f8fafc;
  font-size: .95rem;
  font-weight: 950;
  text-align: center;
}

.schedule-inline-calendar header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 1rem;
}

.schedule-inline-calendar header button:hover {
  border-color: rgba(52, 211, 153, .45);
  background: rgba(6, 78, 59, .28);
  color: #a7f3d0;
}

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

.schedule-calendar-weekdays {
  padding: 10px 10px 4px;
}

.schedule-calendar-weekdays span {
  color: #64748b;
  font-size: .58rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.schedule-calendar-grid {
  gap: 3px;
  padding: 5px 10px 12px;
}

.calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 850;
}

.calendar-day:not(.blank):hover {
  border-color: rgba(52, 211, 153, .3);
  background: rgba(52, 211, 153, .08);
  color: #f8fafc;
}

.calendar-day.today::after {
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  content: "";
}

.calendar-day.selected {
  border-color: #34d399;
  background: linear-gradient(145deg, #059669, #047857);
  color: #fff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, .28);
}

.calendar-day.selected::after {
  background: #d1fae5;
}

.schedule-calendar-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.schedule-calendar-summary {
  min-height: 34px;
  border-radius: 8px;
  background: rgba(2, 6, 23, .28);
  color: #94a3b8;
  padding: 9px 11px;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.5;
}

.schedule-calendar-footer button {
  min-height: 34px;
  border: 1px solid rgba(248, 113, 113, .25);
  border-radius: 8px;
  background: rgba(127, 29, 29, .16);
  color: #fda4af;
  padding: 7px 11px;
  font-size: .68rem;
  font-weight: 900;
}

.schedule-calendar-footer button:hover {
  border-color: rgba(248, 113, 113, .5);
  background: rgba(127, 29, 29, .3);
  color: #fecaca;
}

.schedule-days.invalid .schedule-inline-calendar {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, .1);
}

.schedule-days.invalid .schedule-calendar-summary {
  color: #fecdd3;
}

.schedule-days small {
  color: #64748b;
  font-size: .72rem;
}

.schedule-submit {
  grid-column: 1 / -1;
}

.schedule-round-times {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding: 15px;
  border: 1px solid #334155;
  background: rgba(2, 6, 23, .35);
}

.schedule-round-times legend {
  padding-inline: 7px;
  color: #67e8f9;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-round-times .field {
  min-width: 0;
  font-size: .72rem;
}

.schedule-round-control {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 4px 12px 8px;
  border-left: 2px solid #334155;
}

.schedule-round-control h3 {
  color: #e2e8f0;
  font-size: .82rem;
  font-weight: 900;
}

.schedule-delay form {
  display: grid;
  gap: 12px;
}

.schedule-delay-empty {
  padding: 18px;
  border: 1px solid #334155;
  background: rgba(15, 23, 42, .7);
}

.schedule-delay-empty strong {
  color: #f8fafc;
}

.schedule-delay-empty p {
  margin-top: 6px;
  color: #94a3b8;
  font-size: .85rem;
}

.schedule-fixtures {
  margin-top: 18px;
}

.schedule-queue-manager { margin-top: 18px; }
.schedule-queue-heading { display: block; }
.schedule-queue-heading p:last-child { max-width: 760px; margin-top: 6px; color: #94a3b8; font-size: .8rem; line-height: 1.5; }
.schedule-queue-tools { margin-top: 16px; }
.schedule-move-form { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr) minmax(220px, auto); align-items: end; gap: 12px; border: 1px solid rgba(52, 211, 153, .2); border-radius: 10px; background: rgba(6, 78, 59, .12); padding: 14px; }
.schedule-move-form .field,
.schedule-break-form .field { min-width: 0; margin: 0; }
.schedule-move-form select,
.schedule-break-form select,
.schedule-break-form input { width: 100%; max-width: 100%; min-width: 0; }
.schedule-move-form .primary-button,
.schedule-break-form .primary-button { white-space: nowrap; }
.schedule-maintenance-tools { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 12px; margin-top: 12px; }
.schedule-break-form { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(210px, auto); align-content: start; align-items: end; gap: 14px; border: 1px solid rgba(251, 191, 36, .22); border-radius: 10px; background: linear-gradient(135deg, rgba(120, 53, 15, .12), rgba(15, 23, 42, .55)); padding: 16px; }
.schedule-break-form .schedule-tool-copy { grid-column: 1 / -1; margin-bottom: 2px; border-bottom: 1px solid rgba(251, 191, 36, .13); padding-bottom: 14px; }
.schedule-break-form select,
.schedule-break-form input,
.schedule-break-form .primary-button { min-height: 46px; }
.schedule-tool-copy span,.schedule-tool-copy b,.schedule-tool-copy small { display: block; }
.schedule-tool-copy span { color: #fbbf24; font-size: .6rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.schedule-tool-copy b { margin-top: 4px; color: #f8fafc; font-size: .95rem; }
.schedule-tool-copy small { max-width: 720px; margin-top: 5px; color: #94a3b8; font-size: .68rem; line-height: 1.5; }
.schedule-repair-form { display: grid; align-content: space-between; gap: 13px; border: 1px solid rgba(56, 189, 248, .18); border-radius: 10px; background: rgba(14, 116, 144, .09); padding: 14px; }
.schedule-repair-form b,.schedule-repair-form small { display: block; }
.schedule-repair-form small { margin-top: 4px; color: #94a3b8; font-size: .7rem; line-height: 1.45; }
.schedule-queue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 400px; overflow-y: auto; margin-top: 12px; padding-right: 4px; }
.schedule-queue-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; border: 1px solid rgba(148, 163, 184, .12); border-radius: 8px; background: rgba(2, 6, 23, .25); padding: 9px; }
.schedule-queue-list article > strong { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; background: rgba(52, 211, 153, .13); color: #6ee7b7; font-size: .72rem; }
.schedule-queue-list span,.schedule-queue-list b,.schedule-queue-list small { display: block; min-width: 0; }
.schedule-queue-list b { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-queue-list small { margin-top: 3px; color: #64748b; font-size: .62rem; }

@media (max-width: 900px) {
  .schedule-move-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-move-form .primary-button { grid-column: 1 / -1; }
  .schedule-maintenance-tools { grid-template-columns: minmax(0, 1fr); }
  .schedule-break-form { grid-template-columns: minmax(0, 1fr) 130px; }
  .schedule-break-form .schedule-tool-copy,
  .schedule-break-form .field:first-of-type { grid-column: 1 / -1; }
  .schedule-break-form .primary-button { width: 100%; }
  .schedule-queue-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .schedule-move-form { grid-template-columns: minmax(0, 1fr); }
  .schedule-move-form .primary-button { grid-column: 1; }
  .schedule-break-form { grid-template-columns: minmax(0, 1fr); }
  .schedule-break-form .schedule-tool-copy,
  .schedule-break-form .field:first-of-type { grid-column: 1; }
  .schedule-queue-list { grid-template-columns: minmax(0, 1fr); }
}

.schedule-fixture-list {
  display: grid;
  gap: 7px;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 5px;
}

.schedule-fixture-row {
  display: grid;
  grid-template-columns: 68px minmax(170px, 1fr) minmax(140px, .72fr) 105px 105px minmax(130px, .58fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid #26344b;
  background: #0b1222;
}

.schedule-match-id,
.schedule-match-teams {
  min-width: 0;
}

.schedule-match-id {
  display: grid;
}

.schedule-match-id b {
  color: #67e8f9;
}

.schedule-match-id small,
.schedule-match-teams small {
  color: #64748b;
  font-size: .68rem;
  text-transform: uppercase;
}

.schedule-match-teams {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.schedule-fixture-row input {
  width: 100%;
  min-height: 42px;
}

.schedule-row-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-row-field small {
  color: #64748b;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.action-tile {
  display: grid;
  min-height: 142px;
  align-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(8, 15, 28, .94));
  padding: 18px;
  box-shadow: 0 14px 32px rgba(2, 6, 23, .2);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.action-tile:hover { border-color: rgba(52, 211, 153, .3); box-shadow: 0 18px 38px rgba(2, 6, 23, .32); transform: translateY(-2px); }

.action-tile h2 {
  font-size: 1.15rem;
  font-weight: 950;
}

.danger-tile {
  border-color: rgba(248, 113, 113, .28);
}

.admin-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
  align-items: start;
}

.admin-list {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.admin-list-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-list-head p {
  margin-top: 3px;
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 800;
}

.admin-list-head > span {
  border: 1px solid rgba(52, 211, 153, .28);
  border-radius: 999px;
  color: #86efac;
  flex: 0 0 auto;
  font-size: .74rem;
  font-weight: 950;
  padding: 5px 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-search {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-search input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(2, 6, 23, .7);
  color: #f8fafc;
  padding: 0 12px;
  text-transform: none;
  letter-spacing: 0;
}

.admin-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.admin-filter-row button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: .76rem;
  font-weight: 950;
}

.admin-filter-row button.active {
  background: #f8fafc;
  color: #020617;
}

.admin-match-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.match-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.match-editor-head p {
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.match-editor-head h2 {
  margin-top: 5px;
  line-height: 1.12;
}

.match-editor-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.match-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.match-maintenance-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-top: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  scrollbar-width: none;
}

.match-maintenance-tabs::-webkit-scrollbar {
  display: none;
}

.match-maintenance-tabs button {
  position: relative;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 14px;
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 900;
}

.match-maintenance-tabs button::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  background: transparent;
}

.match-maintenance-tabs button.active {
  color: #f8fafc;
}

.match-maintenance-tabs button.active::after {
  background: #34d399;
}

.match-maintenance-panel {
  min-width: 0;
}

.match-maintenance-panel.result-form,
.match-maintenance-panel .admin-availability,
.match-maintenance-panel .event-grid {
  margin-top: 16px;
}

.match-team-card,
.match-score-card {
  display: grid;
  align-content: center;
  min-height: 94px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  padding: 14px;
}

.match-team-card small,
.match-score-card small {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.match-team-card strong,
.match-score-card strong {
  margin-top: 6px;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
}

.match-team-card.away {
  text-align: right;
}

.match-score-card {
  border-color: rgba(56, 189, 248, .28);
  background: rgba(14, 165, 233, .12);
  text-align: center;
}

.match-score-card strong {
  color: #67e8f9;
  font-size: 1.45rem;
}

.match-score-card span {
  margin-top: 4px;
  color: #bae6fd;
  font-size: .72rem;
  font-weight: 850;
}

.result-form {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  margin-top: 18px;
  background: rgba(2, 6, 23, .28);
  padding: 16px;
}

.form-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  grid-column: 1 / -1;
}

.form-section-title h3 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 950;
}

.form-section-title p {
  color: #94a3b8;
  font-size: .82rem;
  font-weight: 800;
}

.form-section-title.compact {
  align-items: start;
}

.result-score-row,
.result-detail-row {
  display: grid;
  gap: 14px;
}

.result-score-row {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.result-detail-row {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.score-field input {
  font-size: 1.35rem;
  font-weight: 950;
  min-width: 0;
  text-align: center;
}

.score-display {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(2, 6, 23, .28);
  text-align: center;
}

.score-display span {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 850;
}

.score-display strong {
  color: #f8fafc;
  font-size: 1.75rem;
  font-weight: 950;
}

.score-field {
  min-width: 0;
}

.result-submit {
  display: flex;
  justify-content: flex-end;
}

.result-stream-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.result-stream-field {
  flex: 1 1 320px;
  min-width: 0;
}
.result-stream-hint {
  flex: 1 1 240px;
  font-size: .75rem;
  color: rgba(203, 213, 225, .75);
  margin: 0;
}

.score-override-control {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 9px;
  background: rgba(2, 6, 23, .28);
  margin-top: 12px;
  padding: 11px 12px;
  cursor: pointer;
}

.live-match-console {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) repeat(3, auto);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(8, 47, 73, .36), rgba(2, 6, 23, .45));
  margin-bottom: 14px;
  padding: 14px;
}

.live-match-console form {
  display: contents;
}

.live-match-console > div {
  display: grid;
  gap: 2px;
}

.live-match-console span {
  color: #94a3b8;
  font-size: .67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.live-match-console strong {
  color: #e0f2fe;
  font-size: 1.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.live-match-console small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(148, 163, 184, .12);
  color: #94a3b8;
  font-size: .7rem;
  padding-top: 10px;
}

.live-match-console .danger-button {
  background: #dc2626;
}

.quick-player-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.quick-player-picker {
  display: grid;
  gap: 10px;
}

.quick-player-picker section {
  display: grid;
  gap: 6px;
}

.quick-player-picker h4 {
  color: #94a3b8;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

.quick-player-grid button {
  min-width: 0;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 7px;
  background: rgba(2, 6, 23, .28);
  color: #cbd5e1;
  padding: 6px 8px;
  font-size: .67rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-player-grid button:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, .4);
  color: #f8fafc;
}

.quick-player-grid button.active {
  border-color: #34d399;
  background: rgba(6, 78, 59, .45);
  color: #d1fae5;
}

.quick-player-grid button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.goal-kind-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.goal-kind-tiles input,
.card-type-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.goal-kind-tiles span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(2, 6, 23, .28);
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

.goal-kind-tiles input:checked + span {
  border-color: #34d399;
  background: rgba(6, 78, 59, .42);
  color: #d1fae5;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, .09);
}

.own-goal-fields {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(251, 191, 36, .22);
  border-radius: 8px;
  background: rgba(120, 53, 15, .12);
  padding: 10px;
}

.own-goal-fields small {
  color: #a8a29e;
  font-size: .66rem;
}

.card-type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border: 0;
}

.card-type-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 850;
}

.card-type-tile > span {
  display: grid;
  min-height: 72px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-content: center;
  gap: 2px 9px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 9px;
  background: rgba(2, 6, 23, .3);
  padding: 9px;
  cursor: pointer;
}

.card-type-tile i {
  display: block;
  width: 16px;
  height: 24px;
  grid-row: 1 / 3;
  align-self: center;
  border-radius: 2px;
  transform: rotate(5deg);
  box-shadow: 0 5px 10px rgba(0, 0, 0, .28);
}

.card-type-tile b { color: #e2e8f0; font-size: .7rem; }
.card-type-tile small { color: #64748b; font-size: .6rem; }
.card-type-tile.yellow i { background: #facc15; }
.card-type-tile.red i { background: #ef4444; }
.card-type-tile.second-yellow i { background: linear-gradient(135deg, #facc15 0 55%, #ef4444 55%); }
.card-type-tile.yellow-red i { background: linear-gradient(90deg, #facc15 0 48%, #ef4444 48%); }

.card-type-tile input:checked + span {
  border-color: var(--card-accent, #94a3b8);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--card-accent, #94a3b8) 16%, transparent);
}

.card-type-tile.yellow { --card-accent: #facc15; }
.card-type-tile.second-yellow { --card-accent: #fb923c; }
.card-type-tile.red { --card-accent: #ef4444; }
.card-type-tile.yellow-red { --card-accent: #f97316; }

@media (max-width: 640px) {
  .live-match-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-match-console > div {
    grid-column: 1 / -1;
  }
}

/* Profile refinement: quieter player identity and reliable mobile cards */
.player-profile-hero {
  min-height: 350px;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 38px;
  padding: 30px 42px 0;
  background:
    linear-gradient(104deg, rgba(5, 18, 42, .98), rgba(7, 38, 59, .94) 58%, rgba(5, 67, 65, .76)),
    var(--player-team-cover, url("Microsoft Outlook.jpg")) center/cover;
}

.player-profile-portrait { height: 320px; }
.player-profile-portrait img { max-height: 320px; }
.player-profile-portrait > span { top: 8px; left: 0; font-size: 3.4rem; }
.player-profile-identity h1 { max-width: 680px; font-size: clamp(2.8rem, 5.2vw, 4.4rem); overflow-wrap: anywhere; }
.player-profile-identity > p { letter-spacing: .11em; }
.player-team-lockup { max-width: 470px; }

@media (max-width: 700px) {
  .profile-main,
  .player-profile-main { width: calc(100% - 20px); max-width: 100%; overflow: visible; }

  .profile-hero {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    border-radius: 15px;
    padding: 23px 18px 18px;
  }

  .profile-hero-glow { display: none; }
  .profile-identity { width: 100%; align-items: center; flex-direction: row; gap: 14px; }
  .profile-identity > div:last-child { min-width: 0; }
  .profile-flag { width: 66px; height: 66px; flex: 0 0 66px; border-radius: 13px; font-size: 2.55rem; }
  .profile-eyebrow { font-size: .58rem; letter-spacing: .1em; }
  .profile-identity h1 { max-width: 100%; margin-top: 5px; font-size: clamp(1.85rem, 9.5vw, 2.75rem); overflow-wrap: anywhere; }
  .profile-meta { gap: 6px; margin-top: 12px; }
  .profile-meta span { padding: 6px 8px; font-size: .61rem; }

  .profile-captain-feature {
    width: 100%;
    max-width: none;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 11px;
    border-radius: 12px;
    padding: 10px;
    box-shadow: none;
  }
  .profile-captain-portrait { width: 58px; height: 66px; }
  .profile-captain-portrait b { right: -4px; bottom: -4px; width: 23px; height: 23px; border-width: 2px; }
  .profile-captain-copy > small { font-size: .52rem; }
  .profile-captain-copy em { font-size: .57rem; }
  .profile-captain-copy strong { font-size: .9rem; }
  .profile-captain-feature > i { display: none; }

  .profile-stat-grid { gap: 8px; }
  .profile-stat-grid article { min-height: 102px; border-radius: 11px; padding: 14px; }
  .profile-stat-grid span { font-size: .59rem; }
  .profile-stat-grid strong { font-size: 1.55rem; }
  .profile-stat-grid small { font-size: .64rem; }
  .profile-section { border-radius: 12px; }
  .profile-content-grid { gap: 14px; }
  .profile-section-title { min-height: 70px; padding: 13px 14px; }
  .profile-section-title h2 { font-size: 1.1rem; }
  .profile-section-title > span { font-size: .62rem; }
  .profile-squad-grid { padding: 10px; }
  .profile-player { grid-template-columns: 48px minmax(0, 1fr); min-height: 82px; gap: 10px; padding: 10px; }
  .profile-player-photo { width: 46px; height: 54px; }
  .profile-player .player-totals { display: flex; grid-column: 2; gap: 10px; text-align: left; }
  .profile-player .player-totals span { display: inline-flex; gap: 3px; align-items: baseline; }

  .player-profile-main { padding-top: 10px; }
  .player-profile-main > .page-breadcrumb { margin: 0 2px 11px; overflow: hidden; font-size: .66rem; white-space: nowrap; }
  .player-profile-main > .page-breadcrumb b { overflow: hidden; text-overflow: ellipsis; }
  .player-profile-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 15px;
    padding: 0;
  }
  .player-profile-hero::before { top: -210px; right: -230px; }
  .player-profile-portrait {
    position: relative;
    inset: auto;
    display: grid;
    width: 100%;
    height: 245px;
    flex: 0 0 245px;
    place-items: end center;
    overflow: hidden;
    border-bottom: 1px solid rgba(103, 232, 249, .16);
    background: linear-gradient(180deg, rgba(8, 47, 73, .18), rgba(2, 6, 23, .28));
    opacity: 1;
  }
  .player-profile-portrait::before { bottom: -55px; width: 260px; height: 260px; }
  .player-profile-portrait img { width: min(78%, 270px); height: 238px; max-height: none; object-fit: contain; object-position: center bottom; }
  .player-profile-portrait > span { top: 18px; left: 18px; font-size: 3rem; }
  .player-profile-identity { width: 100%; align-self: auto; padding: 22px 18px 25px; }
  .player-profile-identity > p { max-width: 100%; flex-wrap: wrap; font-size: .56rem; line-height: 1.5; }
  .player-profile-identity h1 { max-width: 100%; margin-top: 9px; font-size: clamp(2rem, 10vw, 3rem); line-height: 1; overflow-wrap: anywhere; }
  .player-profile-identity > div { gap: 6px; margin-top: 15px; }
  .player-profile-identity > div span { min-height: 31px; padding-inline: 10px; font-size: .67rem; }
  .player-team-lockup { width: 100%; max-width: 100%; margin-top: 17px !important; grid-template-columns: 28px minmax(0, 1fr) 18px; padding-top: 13px; }
  .player-team-lockup strong { font-size: .69rem; }
  .player-profile-stats { gap: 8px; }
  .player-profile-stats article { min-height: 96px; border-radius: 11px; padding: 14px; }
  .player-profile-stats span { font-size: .58rem; }
  .player-profile-stats strong { margin-top: 7px; font-size: 1.75rem; }
  .player-history-panel { border-radius: 12px; padding: 12px; }
  .player-history-panel .profile-section-title { padding-inline: 2px; }
  .player-history-event { grid-template-columns: 32px minmax(0,1fr); gap: 9px; padding: 10px; }
  .player-history-event > span:last-child { grid-column: 2; }
}

.score-override-control input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #f59e0b;
}

.score-override-control span,
.score-override-control b,
.score-override-control small {
  display: block;
}

.score-override-control b {
  color: #e2e8f0;
  font-size: .78rem;
}

.score-override-control small {
  margin-top: 3px;
  color: #64748b;
  font-size: .68rem;
  line-height: 1.4;
}

input.score-locked {
  border-color: rgba(52, 211, 153, .18);
  background: rgba(6, 78, 59, .12);
  color: #a7f3d0;
  cursor: not-allowed;
}

.event-grid,
.event-log-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.event-grid > *,
.event-log-grid > * {
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.admin-availability {
  margin-top: 18px;
}

.event-form {
  display: grid;
  gap: 12px;
  overflow: hidden;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.event-form.card-tone-yellow {
  border-color: rgba(250, 204, 21, .5);
  background: linear-gradient(145deg, rgba(113, 63, 18, .42), rgba(15, 23, 42, .94) 66%);
  box-shadow: 0 22px 60px rgba(234, 179, 8, .1);
}

.event-form.card-tone-second-yellow {
  border-color: rgba(251, 146, 60, .5);
  background: linear-gradient(145deg, rgba(120, 53, 15, .42), rgba(69, 26, 3, .3) 42%, rgba(15, 23, 42, .94) 78%);
  box-shadow: 0 22px 60px rgba(249, 115, 22, .1);
}

.event-form.card-tone-red {
  border-color: rgba(239, 68, 68, .5);
  background: linear-gradient(145deg, rgba(127, 29, 29, .43), rgba(15, 23, 42, .94) 68%);
  box-shadow: 0 22px 60px rgba(220, 38, 38, .11);
}

.event-form.card-tone-yellow-red {
  border-color: rgba(249, 115, 22, .5);
  background: linear-gradient(135deg, rgba(113, 63, 18, .4), rgba(127, 29, 29, .38) 48%, rgba(15, 23, 42, .94) 82%);
  box-shadow: 0 22px 60px rgba(234, 88, 12, .11);
}

.event-form .form-section-title {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.event-form .field {
  width: 100%;
  min-width: 0;
}

.event-form .field small {
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
}

.event-form .field input,
.event-form .field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.event-form > .primary-button {
  width: auto !important;
  max-width: 100%;
  align-self: stretch;
}

.event-form button:disabled,
.log-row button:disabled {
  cursor: wait;
  opacity: .62;
}

.event-log {
  min-height: 146px;
}

.team-edit {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 12px;
}

.player-add {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr .6fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.player-edit {
  display: grid;
  grid-template-columns: minmax(140px, 1.5fr) .45fr .8fr auto;
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  padding: 12px;
}

.team-squad {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(15, 23, 42, .74);
  padding: 14px;
}

.team-squad summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 950;
}

.team-squad summary span {
  color: #93c5fd;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 8px 0;
}

.log-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.log-row span b {
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #bfdbfe;
  flex: 0 0 auto;
  font-size: .78rem;
  padding: 3px 7px;
}

.log-row .event-log-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.log-row .event-log-details {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.event-log-details strong,
.event-log-details small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-log-details strong {
  color: #e2e8f0;
  font-size: .78rem;
}

.event-log-details small {
  color: #64748b;
  font-size: .66rem;
  font-weight: 750;
}

.log-row button {
  color: #fecaca;
  font-weight: 800;
}

.empty-log {
  color: #94a3b8;
  font-size: .9rem;
  margin-top: 12px;
}

.status-chip {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #cbd5e1;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
  justify-content: center;
  min-height: 28px;
  padding: 4px 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status-chip.finished {
  border-color: rgba(52, 211, 153, .36);
  background: rgba(22, 101, 52, .28);
  color: #bbf7d0;
}

.status-chip.scheduled {
  border-color: rgba(251, 191, 36, .32);
  background: rgba(120, 53, 15, .2);
  color: #fde68a;
}

.status-chip.live {
  border-color: rgba(248, 113, 113, .36);
  background: rgba(127, 29, 29, .24);
  color: #fecaca;
}

.poster-card {
  min-height: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(52, 211, 153, .18), transparent 34%),
    linear-gradient(135deg, #111827, #020617);
  padding: 36px;
}

.poster-team span {
  display: block;
  font-size: 4rem;
  line-height: 1;
}

.poster-team h2 {
  margin-top: 12px;
  font-size: 2.1rem;
  font-weight: 950;
  line-height: 1;
}

.poster-team-link {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}

.poster-team-link:hover,
.poster-team-link:focus-visible {
  color: #6ee7b7;
}

.match-page > .site-nav-shell {
  margin-bottom: 24px;
}

.match-page-toolbar {
  align-items: center;
}

.page-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-size: .76rem;
  font-weight: 800;
}

.page-breadcrumb a {
  color: #94a3b8;
}

.page-breadcrumb a:hover {
  color: #6ee7b7;
}

.page-breadcrumb b {
  color: #e2e8f0;
}

.admin-login-shell {
  display: grid;
  min-height: calc(100vh - 69px);
  place-items: center;
  padding: 28px 16px;
}

.admin-login-shell > form {
  width: min(100%, 448px) !important;
  max-width: calc(100vw - 32px) !important;
  min-width: 0;
}

.admin-login-shell .field,
.admin-login-shell .field input {
  width: 100%;
  min-width: 0;
}

.match-page > .mx-auto {
  width: min(100% - 32px, 1024px);
}

@media (max-width: 900px) {
  .global-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 14px;
    padding-top: 10px;
  }

  .global-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 7px 0 10px;
    scrollbar-width: none;
  }

  .global-nav-links::-webkit-scrollbar {
    display: none;
  }

  .global-nav-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .global-nav {
    padding-inline: 12px;
  }

  .global-nav .site-brand b,
  .global-admin {
    display: none;
  }

  .global-nav-links a {
    padding-inline: 9px;
    font-size: .7rem;
    white-space: nowrap;
  }

  .global-back {
    padding: 7px 9px;
    font-size: .66rem;
  }

  .match-page > .mx-auto {
    width: min(100% - 20px, 1024px);
  }

  .match-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  .global-header,
  .match-page-toolbar {
    display: none !important;
  }

  .match-page > .mx-auto {
    width: 100%;
  }
}

.poster-team p,
.poster-log p {
  color: #cbd5e1;
}

.poster-score {
  text-align: center;
  font-size: 4.5rem;
  font-weight: 950;
  line-height: 1;
}

.poster-score small {
  margin: 0 12px;
  color: #94a3b8;
}

.poster-score p {
  margin-top: 8px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #cbd5e1;
}

.match-card-meta {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.2fr) minmax(160px, .65fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 18px;
}

.match-card-meta > div {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 8px;
  background: rgba(2, 6, 23, .22);
  padding: 13px 14px;
}

.match-card-meta b {
  display: block;
  color: #e2e8f0;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.match-card-meta p {
  margin-top: 6px;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.3;
}

.poster-log {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 16px;
}

.poster-log h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 950;
}

.poster-log span {
  color: #34d399;
  font-weight: 900;
}

.match-event-timeline {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 0 0 8px;
}

.match-event-heading,
.match-event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
}

.match-event-heading {
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  min-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #94a3b8;
  font-size: .61rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.match-event-heading span:last-child {
  text-align: right;
}

.match-event-heading span {
  display: block;
  min-width: 0;
  overflow: hidden;
  padding-block: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.match-event-heading b {
  color: #cbd5e1;
  text-align: center;
  white-space: nowrap;
}

.match-availability-panel {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(15, 23, 42, .88);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2);
}

.match-event-row {
  position: relative;
  min-height: 48px;
}

.match-event-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(148, 163, 184, .14);
  content: "";
  transform: translateX(-.5px);
}

.match-event-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 5px 10px;
}

.home-copy { text-align: right; }
.away-copy { text-align: left; }

.match-event-copy strong,
.match-event-copy small {
  display: block;
}

.match-event-copy strong {
  color: #f8fafc;
  font-size: .78rem;
  font-weight: 850;
}

.match-event-copy strong b {
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.match-event-copy small {
  margin-top: 1px;
  color: #64748b;
  font-size: .6rem;
  font-weight: 750;
}

.match-event-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 27px;
  height: 27px;
  place-self: center;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 50%;
  background: #0f172a;
}

.goal-icon {
  line-height: 0;
}

.goal-icon img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.card-icon::after {
  width: 9px;
  height: 14px;
  border-radius: 2px;
  content: "";
  transform: rotate(8deg);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .3);
}

.card-icon.yellow::after { background: #facc15; }
.card-icon.straight_red::after { background: #ef4444; }
.card-icon.second_yellow_red::after { background: linear-gradient(135deg, #facc15 0 52%, #ef4444 52%); }
.card-icon.yellow_straight_red::after { background: linear-gradient(90deg, #facc15 0 48%, #ef4444 48%); }

.match-events-empty {
  color: #64748b;
  padding: 20px 12px 12px;
  font-size: .82rem;
  text-align: center;
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(220, 38, 38, .16);
  color: #fca5a5;
  padding: 4px 8px;
  font-size: .62rem;
  font-weight: 950;
}

.live-clock-badge[hidden] { display: none; }
.live-clock-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .6);
  animation: live-pulse 1.5s infinite;
}

.live-match-stats {
  margin-top: 18px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 10px;
  background: rgba(2, 6, 23, .3);
  padding: 14px 18px;
}

.live-match-stats h3 {
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: .72rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.live-stat-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  min-height: 34px;
  border-top: 1px solid rgba(148, 163, 184, .09);
  text-align: center;
}

.live-stat-row b { color: #f8fafc; font-size: .88rem; }
.live-stat-row span { color: #94a3b8; font-size: .7rem; font-weight: 800; }

.score-pop { animation: score-pop .65s cubic-bezier(.2, .9, .3, 1.35); }
.event-enter { animation: event-enter .65s ease both; }

@keyframes score-pop {
  0% { opacity: .25; transform: scale(.76); }
  55% { color: #6ee7b7; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes event-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes live-pulse {
  70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.poster-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.poster-section-title h3 {
  font-size: 1.25rem;
  font-weight: 950;
}

.poster-section-title p {
  color: #cbd5e1;
  font-size: .9rem;
}

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

.availability-team {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(2, 6, 23, .32);
  padding: 14px;
}

.availability-team h4 {
  font-size: 1rem;
  font-weight: 950;
  margin-bottom: 10px;
}

.availability-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  min-height: 40px;
  padding: 9px 0;
}

.availability-player span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.availability-player b {
  border: 1px solid rgba(52, 211, 153, .34);
  border-radius: 999px;
  color: #bbf7d0;
  font-size: .68rem;
  font-weight: 950;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.availability-player small {
  color: #fecaca;
  grid-column: 1 / -1;
  font-size: .78rem;
  font-weight: 800;
}

.availability-player.suspended {
  border-color: rgba(248, 113, 113, .3);
  border-radius: 8px;
  background: rgba(127, 29, 29, .24);
  margin-inline: -6px;
  padding-inline: 6px;
}

.availability-player.suspended span {
  color: #fecaca;
}

.availability-player.suspended b {
  border-color: rgba(248, 113, 113, .5);
  background: rgba(127, 29, 29, .45);
  color: #fecaca;
}

.availability-player.replacement {
  border-color: rgba(251, 191, 36, .28);
  border-radius: 8px;
  background: rgba(146, 64, 14, .16);
  margin-inline: -6px;
  padding-inline: 6px;
}

.availability-player.replacement span { color: #fef3c7; }
.availability-player.replacement b {
  border-color: rgba(251, 191, 36, .48);
  background: rgba(146, 64, 14, .3);
  color: #fde68a;
}

.availability-player.addition {
  border-color: rgba(56, 189, 248, .3);
  border-radius: 8px;
  background: rgba(14, 116, 144, .16);
  margin-inline: -6px;
  padding-inline: 6px;
}

.availability-player.addition span { color: #e0f2fe; }
.availability-player.addition b {
  border-color: rgba(56, 189, 248, .48);
  background: rgba(14, 116, 144, .3);
  color: #bae6fd;
}

.fair-play-shell {
  margin: 0 auto;
}

.fair-play-entry small,
.amnesty-status {
  color: #94a3b8;
}

.fair-play-list {
  padding: 0 16px 16px;
}

.fair-play-table-head,
.fair-play-entry {
  display: grid;
  grid-template-columns: 70px minmax(260px, 1.2fr) minmax(130px, .8fr) minmax(150px, .85fr) minmax(120px, .7fr);
  align-items: center;
}

.fair-play-table-head {
  padding: 16px 24px 9px;
  color: #64748b;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.fair-play-table-head span:nth-child(n + 3),
.fair-play-played,
.fair-play-penalty,
.fair-play-score {
  text-align: right;
}

.fair-play-entry {
  grid-template-columns: 44px minmax(260px, 1.2fr) minmax(130px, .8fr) minmax(150px, .85fr) minmax(120px, .7fr);
  min-height: 72px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 8px;
  transition: background-color .18s ease;
}

.fair-play-entry:hover {
  background: rgba(255, 255, 255, .035);
}

.fair-play-entry.podium {
  background: rgba(52, 211, 153, .06);
}

.fair-play-entry.podium .scorer-rank {
  color: #6ee7b7;
}

.fair-play-entry .scorer-rank {
  color: #64748b;
}

.fair-play-flag,
.fair-play-team {
  min-width: 0;
}

.fair-play-flag {
  display: grid;
  width: 40px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 4px;
  background: rgba(15, 23, 42, .72);
  font-size: 1.45rem;
}

.fair-play-team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fair-play-team b {
  display: block;
  min-width: 0;
  color: #f8fafc;
  font-size: .9rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fair-play-team small,
.fair-play-penalty {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #64748b;
  font-size: .7rem;
  font-weight: 800;
}

.fair-play-team small {
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fair-play-played {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 950;
}

.fair-play-penalty {
  color: #fca5a5;
  font-size: .9rem;
  font-weight: 950;
}

.fair-play-score {
  color: #fbbf24;
  font-size: 1.45rem;
  font-weight: 950;
  text-align: right;
}

.fair-play-leader {
  position: relative;
  display: grid;
  grid-template-columns: auto 190px minmax(0, 1fr) auto;
  min-height: 250px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border-block: 1px solid rgba(52, 211, 153, .28);
  background: linear-gradient(105deg, #052e2b, #0f172a 70%);
  padding: 20px 34px;
}

.fair-play-leader-flag {
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(15, 23, 42, .62);
  color: #f8fafc;
  font-size: 5rem;
  line-height: 1;
}

.fair-play-leader .leader-goals strong {
  font-size: 3.35rem;
}

/* Team profile */
.team-profile-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 3%, rgba(16, 185, 129, .14), transparent 26rem),
    radial-gradient(circle at 8% 35%, rgba(14, 116, 144, .1), transparent 30rem),
    #020617;
}

.profile-nav {
  display: flex;
  min-height: 68px;
  max-width: 1280px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-back {
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 999px;
  color: #cbd5e1;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 850;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.profile-back:hover {
  border-color: rgba(52, 211, 153, .55);
  background: rgba(6, 78, 59, .25);
  color: #a7f3d0;
}

.profile-main {
  display: grid;
  width: min(1240px, calc(100% - 32px));
  gap: 22px;
  margin: 0 auto;
  padding: 20px 0 48px;
}

.profile-hero {
  position: relative;
  display: flex;
  min-height: 300px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, .22);
  border-radius: 22px;
  background:
    linear-gradient(105deg, rgba(2, 44, 39, .95), rgba(15, 23, 42, .88) 58%, rgba(15, 23, 42, .72)),
    var(--team-cover, url("Microsoft Outlook.jpg")) center 62%/cover;
  padding: 42px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.profile-hero::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 32%, rgba(2, 6, 23, .25));
  content: "";
  pointer-events: none;
}

.profile-hero-glow {
  position: absolute;
  top: -100px;
  right: -40px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(52, 211, 153, .08);
  border-radius: 50%;
}

.profile-identity,
.profile-contact {
  position: relative;
  z-index: 1;
}

.profile-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
}

.profile-flag {
  display: grid;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: rgba(2, 6, 23, .55);
  font-size: 4.2rem;
  line-height: 1;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
  backdrop-filter: blur(12px);
}

.profile-eyebrow,
.profile-section-title p {
  color: #6ee7b7;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.profile-identity h1 {
  max-width: 720px;
  margin-top: 7px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: .98;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.profile-meta span {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(2, 6, 23, .36);
  color: #e2e8f0;
  padding: 7px 11px;
  font-size: .75rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.profile-meta .profile-team-name {
  border-color: rgba(52, 211, 153, .38);
  background: rgba(6, 78, 59, .38);
  color: #d1fae5;
}

.profile-contact {
  display: grid;
  min-width: 190px;
  gap: 4px;
  border-left: 1px solid rgba(255, 255, 255, .17);
  padding: 12px 0 12px 24px;
}

.profile-contact span {
  color: #94a3b8;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.profile-contact strong {
  font-size: 1.05rem;
}

.profile-captain-card {
  display: grid;
  min-width: 285px;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(251, 191, 36, .38);
  border-left: 3px solid #fbbf24;
  border-radius: 14px;
  background: rgba(2, 6, 23, .72);
  padding: 11px;
  color: #f8fafc;
  backdrop-filter: blur(14px);
}

.profile-captain-card > img { width: 68px; height: 76px; border: 1px solid rgba(251, 191, 36, .45); border-radius: 10px; object-fit: cover; object-position: center top; }
.profile-captain-card > span { display: grid; min-width: 0; gap: 3px; }
.profile-captain-card em { color: #fbbf24; font-size: .61rem; font-style: normal; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.profile-captain-card strong { overflow: hidden; font-size: .94rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-captain-card small { color: #cbd5e1; font-size: .68rem; font-weight: 750; }

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat-grid article {
  position: relative;
  display: grid;
  min-height: 134px;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(8, 15, 29, .98));
  padding: 20px;
}

.profile-stat-grid article::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 95px;
  height: 95px;
  border: 18px solid rgba(52, 211, 153, .04);
  border-radius: 50%;
  content: "";
}

.profile-stat-grid span {
  color: #94a3b8;
  font-size: .67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.profile-stat-grid strong {
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.profile-stat-grid small {
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  align-items: start;
  gap: 22px;
}

.profile-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 16px;
  background: rgba(15, 23, 42, .9);
  box-shadow: 0 18px 48px rgba(2, 6, 23, .2);
}

.profile-section-title {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  padding: 18px 22px;
}

.profile-section-title h2 {
  margin-top: 3px;
  font-size: 1.45rem;
  font-weight: 950;
}

.profile-section-title > span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
}

.profile-live-section {
  border-color: rgba(52, 211, 153, .32);
}

.profile-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 999px;
  background: rgba(6, 78, 59, .28);
  color: #a7f3d0 !important;
  padding: 7px 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.profile-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .12);
}

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

.profile-match-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(52, 211, 153, .24);
  border-radius: 13px;
  background: linear-gradient(130deg, rgba(6, 78, 59, .3), rgba(2, 6, 23, .4));
  padding: 18px;
}

.profile-match-top,
.profile-match-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
  font-size: .7rem;
  font-weight: 800;
}

.profile-match-top b,
.profile-match-foot b {
  color: #6ee7b7;
}

.profile-opponent {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-opponent > span {
  font-size: 2.7rem;
}

.profile-opponent small,
.profile-opponent strong,
.profile-opponent em {
  display: block;
}

.profile-opponent small,
.profile-opponent em {
  color: #94a3b8;
  font-size: .7rem;
  font-style: normal;
}

.profile-opponent strong {
  font-size: 1.25rem;
}

.profile-match-list,
.profile-results {
  display: grid;
  padding: 6px 16px 16px;
}

.profile-fixture {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(100px, auto);
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border-bottom: 1px solid rgba(148, 163, 184, .11);
  padding: 10px 6px;
  transition: background-color .18s ease;
}

.profile-fixture:hover,
.profile-result:hover {
  background: rgba(52, 211, 153, .045);
}

.profile-fixture time {
  display: grid;
  justify-items: center;
  border-right: 1px solid rgba(148, 163, 184, .16);
}

.profile-fixture time b {
  font-size: 1.25rem;
  line-height: 1;
}

.profile-fixture time span {
  margin-top: 3px;
  color: #6ee7b7;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-fixture-opponent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.profile-fixture-opponent > span {
  flex: 0 0 auto;
  font-size: 1.65rem;
}

.profile-fixture-opponent strong,
.profile-fixture-opponent small,
.profile-fixture-info strong,
.profile-fixture-info small {
  display: block;
}

.profile-fixture-opponent strong,
.profile-fixture-opponent small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-fixture-opponent small,
.profile-fixture-info small {
  margin-top: 3px;
  color: #64748b;
  font-size: .67rem;
}

.profile-fixture-info {
  text-align: right;
}

.profile-fixture-info strong {
  color: #cbd5e1;
  font-size: .78rem;
}

.profile-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border-bottom: 1px solid rgba(148, 163, 184, .11);
  padding: 8px 6px;
}

.result-badge {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 950;
}

.result-w { background: rgba(6, 78, 59, .7); color: #a7f3d0; }
.result-d { background: rgba(71, 85, 105, .55); color: #e2e8f0; }
.result-l { background: rgba(127, 29, 29, .5); color: #fecaca; }

.result-opponent {
  min-width: 0;
  overflow: hidden;
  font-size: .84rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-opponent small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .64rem;
  font-weight: 700;
}

.profile-result > strong {
  color: #f8fafc;
  font-size: 1.1rem;
}

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

.profile-player {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 11px;
  background: rgba(2, 6, 23, .28);
  padding: 12px;
  transition: border-color .18s ease, transform .18s ease;
}

.profile-player:hover {
  border-color: rgba(52, 211, 153, .3);
  transform: translateY(-1px);
}

.profile-player.profile-player-captain { border-color: rgba(251, 191, 36, .42); background: linear-gradient(135deg, rgba(120, 53, 15, .24), rgba(2, 6, 23, .35)); box-shadow: inset 3px 0 #fbbf24; }
.profile-player.profile-player-captain .profile-player-photo { border-color: rgba(251, 191, 36, .45); }
.profile-player.profile-player-captain > div > small { color: #fbbf24; font-weight: 850; }
.profile-player.profile-player-replacement { border-color: rgba(251, 191, 36, .34); box-shadow: inset 3px 0 #fbbf24; }
.profile-player.profile-player-replacement > div > small { color: #fde68a; font-weight: 850; }
.profile-player.profile-player-added { border-color: rgba(56, 189, 248, .34); box-shadow: inset 3px 0 #38bdf8; }
.profile-player.profile-player-added > div > small { color: #bae6fd; font-weight: 850; }

.profile-player-photo {
  position: relative;
  display: block;
  width: 52px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 8px;
  background: #0f172a;
}

.profile-player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.profile-player-photo b {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  min-width: 24px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: rgba(6, 95, 70, .9);
  color: #d1fae5;
  font-size: .68rem;
  font-weight: 950;
}

.profile-player strong,
.profile-player small {
  display: block;
}

.profile-player strong {
  overflow: hidden;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-player small {
  margin-top: 4px;
  color: #64748b;
  font-size: .67rem;
}

.player-totals {
  display: grid;
  gap: 3px;
  color: #64748b;
  font-size: .6rem;
  text-align: right;
  text-transform: uppercase;
}

.player-totals b {
  color: #cbd5e1;
  font-size: .72rem;
}

.profile-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 130px;
  place-content: center;
  gap: 5px;
  color: #cbd5e1;
  text-align: center;
}

.profile-empty span {
  color: #64748b;
  font-size: .76rem;
}

.profile-footer {
  border-top: 1px solid rgba(148, 163, 184, .1);
  color: #475569;
  padding: 24px;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.site-footer {
  margin-top: 48px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, .92) 30%, rgba(2, 6, 23, .98) 100%),
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, .18), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(168, 85, 247, .12), transparent 60%);
  border-top: 1px solid rgba(148, 163, 184, .12);
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}
.site-footer-band {
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #fde047, #f472b6, #38bdf8);
  background-size: 220% 100%;
  animation: site-footer-band-flow 9s linear infinite;
}
@keyframes site-footer-band-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  padding: 36px 28px 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.site-footer-brand img {
  width: 132px;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 16px rgba(56, 189, 248, .25));
}
.site-footer-tagline {
  margin: 0 0 18px;
  color: #94a3b8;
  font-size: .82rem;
  line-height: 1.55;
  max-width: 38ch;
}
.site-footer-organizers span {
  display: block;
  font-size: .66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #67e8f9;
  margin-bottom: 8px;
}
.site-footer-organizers div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer-organizer-single {
  justify-content: flex-start;
}
.site-footer-organizers img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(15, 23, 42, .55);
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, .15);
  margin: 0;
  filter: none;
}
.site-footer-organizer-single img {
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, .6);
  border-color: rgba(103, 232, 249, .28);
  box-shadow: 0 8px 22px rgba(8, 47, 73, .35);
}
.site-footer-column h3 {
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.site-footer-column a {
  display: block;
  padding: 5px 0;
  color: #cbd5e1;
  text-decoration: none;
  font-size: .82rem;
  transition: color .15s ease, transform .15s ease;
}
.site-footer-column a:hover {
  color: #67e8f9;
  transform: translateX(2px);
}
.site-footer-meta p {
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #94a3b8;
  font-size: .76rem;
}
.site-footer-meta p b {
  color: #67e8f9;
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-footer-meta p span {
  color: #e2e8f0;
  font-weight: 700;
}
.site-footer-strip {
  border-top: 1px solid rgba(148, 163, 184, .1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 28px 22px;
  max-width: 1180px;
  margin: 0 auto;
  color: #64748b;
  font-size: .68rem;
  letter-spacing: .04em;
}
@media (max-width: 860px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 28px 18px 14px;
  }
  .site-footer-brand {
    grid-column: span 2;
  }
  .site-footer-strip {
    padding: 12px 18px 18px;
  }
}
@media (max-width: 520px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer-brand {
    grid-column: span 1;
  }
}

@media (max-width: 980px) {
  .profile-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-content-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-squad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-contact:not(.profile-captain-card) { display: none; }
  .profile-captain-card { min-width: 245px; }
}

@media (max-width: 640px) {
  .match-event-row {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  }

  .match-event-heading {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  }

  .match-event-copy {
    padding-inline: 7px;
  }

  .match-event-copy strong {
    font-size: .75rem;
  }

  .match-event-heading {
    font-size: .56rem;
  }

  .profile-nav { min-height: 60px; padding-inline: 16px; }
  .profile-nav .site-brand b { display: none; }
  .profile-back { padding: 7px 10px; font-size: .68rem; }
  .profile-main { width: min(100% - 20px, 1240px); padding-top: 8px; }
  .profile-hero { min-height: 330px; align-items: end; padding: 24px 20px; border-radius: 16px; }
  .profile-hero { flex-direction: column; align-items: stretch; justify-content: end; }
  .profile-identity { align-items: flex-start; flex-direction: column; gap: 17px; }
  .profile-flag { width: 76px; height: 76px; flex-basis: 76px; border-radius: 17px; font-size: 3rem; }
  .profile-identity h1 { font-size: clamp(2rem, 11vw, 3.25rem); }
  .profile-meta { margin-top: 14px; }
  .profile-meta span { padding: 6px 9px; font-size: .66rem; }
  .profile-captain-card { width: 100%; min-width: 0; grid-template-columns: 56px minmax(0, 1fr); }
  .profile-captain-card > img { width: 56px; height: 62px; }
  .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stat-grid article { min-height: 112px; padding: 16px; }
  .profile-stat-grid article:last-child { grid-column: 1 / -1; }
  .profile-stat-grid strong { font-size: 1.65rem; }
  .profile-section-title { min-height: 78px; padding: 15px 16px; }
  .profile-section-title h2 { font-size: 1.2rem; }
  .profile-section-title > span { max-width: 115px; text-align: right; }
  .profile-match-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .profile-fixture { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .profile-fixture-info { grid-column: 2; text-align: left; }
  .profile-squad-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .profile-player { grid-template-columns: 52px minmax(0, 1fr) auto; }
}

.amnesty-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  align-items: end;
  gap: 24px;
  margin-top: 20px;
}

.amnesty-panel h2 {
  margin: 4px 0 8px;
  font-size: 1.4rem;
  font-weight: 900;
}

.amnesty-panel > div > p:last-child {
  max-width: 650px;
  color: #94a3b8;
}

.amnesty-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.amnesty-panel .field {
  margin: 0;
}

.amnesty-status {
  grid-column: 1 / -1;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media print {
  body {
    background: white !important;
    padding: 0 !important;
  }

  .poster-card {
    box-shadow: none;
    border-radius: 0;
  }
}

@media (max-width: 1100px) {
  .site-nav {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "top"
      "tabs";
    gap: 0 16px;
    padding-top: 12px;
  }

  .site-nav-top {
    display: flex;
    grid-area: top;
    align-items: center;
    justify-content: space-between;
  }

  .site-tabs {
    grid-area: tabs;
    justify-content: flex-start;
  }

  .site-tabs .tab-button {
    min-height: 52px;
  }

  .admin-nav-link {
    position: static;
  }

  .hero-content {
    gap: 32px;
  }

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

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

  .overview-stats > div:nth-child(2) {
    border-right: 0;
  }

  .overview-stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

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

  .admin-workspace,
  .player-add,
  .player-edit {
    grid-template-columns: 1fr;
  }

  .admin-list {
    position: static;
    max-height: 520px;
  }

  .result-score-row,
  .result-detail-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-grid,
  .event-log-grid,
  .match-card-meta,
  .match-summary-grid {
    grid-template-columns: 1fr;
  }

  .match-team-card.away {
    text-align: left;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .site-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: none;
    min-height: 68px;
    gap: 18px;
    padding: 0 16px;
  }

  .site-nav-top {
    display: contents;
  }

  .site-tabs {
    grid-area: auto;
    grid-column: 2;
    justify-content: center;
  }

  .site-tabs .tab-button {
    min-height: 68px;
    padding-inline: 9px;
    font-size: .73rem;
  }

  .admin-nav-link {
    position: static;
    grid-column: 3;
  }

  .admin-workspace {
    grid-template-columns: minmax(290px, .68fr) minmax(0, 1.32fr);
  }

  .admin-list {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
  }
}

@media (max-width: 900px) {
  .fair-play-table-head,
  .fair-play-entry {
    grid-template-columns: 34px minmax(0, 1fr) 74px;
  }

  .fair-play-table-head {
    display: none;
  }

  .fair-play-played,
  .fair-play-penalty {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-title { max-width: 340px; font-size: clamp(2.55rem, 13vw, 3.2rem) !important; }
  .hero {
    min-height: 0;
    background-position: 58% 72%;
  }

  .site-nav {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    padding-inline: 14px;
  }

  .site-nav-top {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .site-nav-top .admin-nav-link {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: calc(100vw - 86px);
  }

  .site-brand b {
    font-size: .75rem;
  }

  .site-tabs {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .site-tabs .tab-button {
    padding-inline: 11px;
    font-size: .74rem;
  }

  .site-tabs .tab-button::after {
    right: 11px;
    left: 11px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
    padding: 36px 16px 38px;
  }

  .hero-copy h1 {
    max-width: 340px;
    font-size: 2.55rem;
  }

  .hero-description {
    max-width: 355px;
    font-size: .94rem;
  }

  .hero-status {
    max-width: 380px;
    padding: 17px 18px;
  }

  .hero-status > strong {
    font-size: 1.65rem;
  }

  .overview-lead {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .overview-lead h2,
  .scorers-heading h2 {
    font-size: 1.8rem;
    overflow-wrap: anywhere;
  }

  .overview-lead h2,
  .overview-lead > div:first-child > p:last-child {
    max-width: 300px;
  }

  .overview-progress {
    width: 104px;
    height: 104px;
    flex-basis: 104px;
    border-width: 6px;
  }

  .overview-progress strong {
    font-size: 1.55rem;
  }

  .overview-stats > div {
    padding: 18px 16px;
  }

  .overview-stats strong {
    font-size: 1.6rem;
  }

  .overview-groups {
    padding: 22px 16px;
  }

  .overview-group-grid {
    grid-template-columns: 1fr;
  }

  .scorers-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px 18px;
  }

  .scorers-heading > p {
    text-align: left;
  }

  .scorer-leader {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    min-height: 178px;
    gap: 14px;
    padding: 18px 16px 0;
  }

  .leader-rank {
    display: none;
  }

  .scorer-leader img {
    width: 90px;
    height: 150px;
  }

  .leader-details h3 {
    font-size: 1.25rem;
  }

  .leader-goals {
    padding-left: 14px;
  }

  .leader-goals strong {
    font-size: 2.7rem;
  }

  .scorer-table-head {
    display: none;
  }

  .scorer-list {
    padding: 8px 10px 12px;
  }

  .scorer-entry {
    grid-template-columns: 34px 42px minmax(0, 1fr) 38px 38px;
    min-height: 66px;
    padding: 7px 4px;
  }

  .scorer-entry > img {
    width: 36px;
    height: 44px;
  }

  .scorer-player {
    padding-left: 9px;
  }

  .scorer-team {
    display: none;
  }

  .scorer-goals {
    font-size: 1.4rem;
  }

  .scorer-assists { font-size: 1.15rem; }

  .admin-topbar,
  .ucl-board-head,
  .match-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .admin-filter-row,
  .result-score-row,
  .result-detail-row {
    grid-template-columns: 1fr;
  }

  .result-submit {
    justify-content: stretch;
  }

  .result-submit .primary-button {
    width: 100%;
  }

  .form-section-title {
    align-items: start;
    flex-direction: column;
  }

  .ucl-stage-track {
    min-height: auto;
  }

  .ucl-stage:nth-child(n) .ucl-stage-track {
    gap: 12px;
  }

  .fixture-row {
    border-radius: 8px;
  }

  .fixture-board {
    grid-template-columns: 1fr;
  }

  .fixture-card-main {
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 10px;
  }

  .fixture-team {
    font-size: .88rem;
    white-space: normal;
  }

  .fixture-score {
    font-size: 1rem;
  }

  .fixture-card-head,
  .fixture-card-foot {
    padding: 0 10px;
  }

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

  .poster-section-title {
    align-items: start;
    flex-direction: column;
  }
}

@media (min-width: 761px) {
  .site-menu-toggle { display: none; }
  .site-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: none;
    min-height: 68px;
    gap: 20px;
    overflow: hidden;
    padding: 0 16px;
  }

  .site-nav-top {
    display: contents;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-tabs {
    grid-area: auto;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
  }

  .site-tabs .tab-button {
    min-height: 68px;
  }

  .admin-nav-link {
    position: static;
    grid-column: 3;
    grid-row: 1;
  }
}

/* Final mobile layout constraints: only designated strips may scroll sideways. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  svg,
  canvas {
    max-width: 100%;
  }

  .site-nav-shell {
    width: 100%;
    overflow: hidden;
  }

  .site-nav {
    position: static;
    display: flex;
    width: auto;
    max-width: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0 14px;
  }

  .site-nav-top {
    position: static;
    display: flex;
    width: auto;
    max-width: 100%;
    align-self: stretch;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav-top .admin-nav-link {
    display: none;
  }

  .site-tabs {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 8px 0 12px;
  }

  .site-nav.menu-open .site-tabs { display: grid; grid-template-columns: 1fr; }
  .site-nav.menu-open .mobile-admin-link { display: inline-flex !important; margin-top: 4px; border-top: 1px solid rgba(148, 163, 184, .12); color: #6ee7b7; }

  .site-tabs .tab-button {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    border-radius: 8px;
    padding: 0 12px;
    text-align: left;
  }

  .site-tabs .tab-button::after { display: none; }
  .site-tabs .tab-button.active { background: rgba(52, 211, 153, .12); }

  .site-menu-toggle {
    display: inline-flex;
    width: 38px;
    min-width: 38px;
    height: 38px;
    flex: 0 0 38px;
    position: absolute;
    z-index: 4;
    top: 8px;
    right: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 9px;
    background: rgba(15, 23, 42, .72);
  }

  .mobile-menu-button { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }

  .site-menu-toggle span { width: 17px; height: 2px; border-radius: 999px; background: #e2e8f0; transition: transform .18s ease, opacity .18s ease; }
  .site-nav.menu-open .site-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-nav.menu-open .site-menu-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.menu-open .site-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .site-menu-toggle { margin-left: auto; }

  .hero-content {
    width: auto;
    max-width: none;
    gap: 18px;
    margin-inline: 14px;
    padding: 24px 0 26px;
  }

  .hero-copy > p:first-child {
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: .66rem;
  }

  .hero-copy h1 {
    max-width: 320px;
    margin-top: 10px;
    font-size: 2.25rem;
  }

  .hero-description {
    margin-top: 12px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .hero-status {
    width: auto;
    max-width: 100%;
    align-self: stretch;
    padding: 14px 16px;
  }

  .hero-status-head {
    margin-bottom: 11px;
  }

  .hero-status > strong {
    overflow: hidden;
    font-size: 1.4rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  main {
    width: auto;
    max-width: none;
    margin-inline: 12px !important;
    padding: 16px 0 28px !important;
  }

  .tab-shell,
  .tab-panel,
  .panel,
  .subpanel,
  .overview-layout,
  .overview-groups,
  .scorers-shell,
  .ucl-board,
  .fixture-board {
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .tab-shell {
    width: auto;
    max-width: 100%;
  }

  .tab-shell,
  .tab-panel,
  .panel,
  .subpanel,
  .overview-layout,
  .overview-groups,
  .scorers-shell,
  .ucl-board {
    width: auto;
  }

  .panel,
  .subpanel {
    padding: 15px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-lead {
    gap: 18px;
    padding: 21px 17px;
  }

  .overview-lead h2,
  .overview-lead > div:first-child > p:last-child {
    max-width: 100%;
  }

  .overview-lead > div:first-child,
  .section-title > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section-title h2,
  .section-title p {
    overflow-wrap: anywhere;
  }

  .overview-lead h2,
  .scorers-heading h2 {
    font-size: 1.65rem;
    overflow-wrap: anywhere;
  }

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

  .overview-stats > div {
    min-width: 0;
    padding: 15px 12px;
  }

  .overview-stats span {
    font-size: .62rem;
    overflow-wrap: anywhere;
  }

  .overview-groups {
    padding: 18px 14px;
  }

  .fixture-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .fixture-card-head,
  .fixture-card-foot {
    gap: 7px;
    padding-inline: 9px;
    font-size: .65rem;
  }

  .fixture-card-main {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 6px;
    min-height: 72px;
    padding: 10px 8px;
  }

  .fixture-team {
    overflow-wrap: anywhere;
    font-size: .78rem;
  }

  .table-scroll,
  .overflow-x-auto {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 560px;
  }

  .ucl-board {
    overflow: hidden;
    padding: 12px;
  }

  .ucl-board-head {
    gap: 12px;
  }

  .ucl-board-head h2 {
    font-size: 1.35rem;
  }

  .bracket-head-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .bracket-head-actions .primary-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: .72rem;
  }

  .knockout-map {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 72vh;
    overflow: auto;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    padding: 12px 34px 12px 2px;
    -webkit-overflow-scrolling: touch;
  }

  .knockout-map .bracket-lines {
    max-width: none;
  }

  .knockout-stage {
    min-width: 220px;
  }

  .poster-card {
    min-height: 0;
    padding: 20px 16px;
  }

  .poster-team h2 {
    font-size: 1.55rem;
    overflow-wrap: anywhere;
  }

  .poster-score {
    font-size: 3.2rem;
  }

  .availability-player {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-topbar {
    gap: 14px;
  }

  .admin-topbar h1 {
    font-size: 1.8rem;
  }

  .match-maintenance-tabs {
    margin-inline: -3px;
  }

  .match-maintenance-tabs button {
    padding-inline: 11px;
    font-size: .74rem;
  }

  .admin-actions,
  .admin-workspace,
  .admin-filter-row,
  .result-score-row,
  .result-detail-row,
  .event-grid,
  .event-log-grid,
  .match-card-meta,
  .match-summary-grid,
  .player-add,
  .player-edit {
    grid-template-columns: minmax(0, 1fr);
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .fixture-search {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .fixture-search-control {
    flex-basis: auto;
  }

  .schedule-layout,
  .schedule-builder-form,
  .schedule-fixture-row,
  .schedule-round-times {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-days {
    grid-row: auto;
  }

  .schedule-submit {
    grid-column: auto;
  }

  .schedule-fixture-row {
    gap: 8px;
    padding: 13px;
  }

  .schedule-match-id {
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: baseline;
  }

  .fair-play-list,
  .amnesty-panel,
  .amnesty-panel form {
    grid-template-columns: minmax(0, 1fr);
  }

  .fair-play-table-head,
  .fair-play-entry {
    grid-template-columns: 32px minmax(0, 1fr) 64px;
    padding-inline: 4px;
  }

  .fair-play-list {
    padding: 8px 10px 12px;
  }

  .fair-play-flag {
    width: 36px;
    height: 44px;
    font-size: 1.25rem;
  }

  .fair-play-team {
    gap: 9px;
  }

  .fair-play-score {
    font-size: 1.25rem;
  }

  .fair-play-leader {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    min-height: 178px;
    gap: 14px;
    padding: 18px 16px;
  }

  .fair-play-leader .leader-rank {
    display: none;
  }

  .fair-play-leader-flag {
    width: 90px;
    height: 120px;
    font-size: 3rem;
  }

  .fair-play-leader .leader-goals {
    padding-left: 14px;
  }

  .fair-play-leader .leader-goals strong {
    font-size: 2rem;
  }

  .amnesty-panel {
    align-items: stretch;
  }
}

/* Player identity and squad management */
.player-profile-link {
  color: inherit;
  text-decoration: none;
}

.player-profile-link:hover,
.player-profile-link:focus-visible {
  color: #6ee7b7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.player-profile-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.player-profile-main > .page-breadcrumb { margin-bottom: 14px; }

.player-profile-hero {
  display: grid;
  min-height: 310px;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: end;
  gap: 34px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, .24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 80% 20%, rgba(52, 211, 153, .16), transparent 30%),
    linear-gradient(135deg, #102544, #071226 70%);
  padding: 32px 42px 0;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .3);
}

.player-profile-hero > img {
  width: 100%;
  max-height: 278px;
  align-self: end;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,.28));
}

.player-profile-identity { align-self: center; padding-bottom: 26px; }
.player-profile-identity > p { color: #67e8f9; font-size: .82rem; font-weight: 950; text-transform: uppercase; letter-spacing: .14em; }
.player-profile-identity h1 { margin-top: 8px; font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 950; line-height: .96; }
.player-profile-identity > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.player-profile-identity > div span { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); padding: 7px 11px; color: #dbeafe; font-size: .75rem; font-weight: 900; }
.player-profile-identity > div .captain-badge { border-color: rgba(251,191,36,.4); background: rgba(146,64,14,.25); color: #fde68a; }
.player-profile-identity > a { display: inline-block; margin-top: 16px; color: #a7f3d0; font-weight: 850; }

.player-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.player-profile-stats article { border: 1px solid rgba(148,163,184,.15); border-radius: 10px; background: rgba(15,23,42,.9); padding: 18px; }
.player-profile-stats span { display: block; color: #94a3b8; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.player-profile-stats strong { display: block; margin-top: 5px; color: #f8fafc; font-size: 2rem; font-weight: 950; }

.player-history-panel { margin-top: 16px; border: 1px solid rgba(148,163,184,.15); border-radius: 12px; background: rgba(15,23,42,.88); padding: 22px; }
.player-history-list { display: grid; gap: 8px; margin-top: 16px; }
.player-history-event { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(148,163,184,.12); border-radius: 9px; background: rgba(2,6,23,.32); padding: 11px 13px; }
.player-history-event:hover { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.07); }
.player-history-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #111c33; }
.player-history-icon.is-card { color: #facc15; font-size: 1.35rem; transform: rotate(7deg); }
.player-history-event b, .player-history-event small { display: block; }
.player-history-event b { color: #f8fafc; }
.player-history-event small, .player-history-event > span:last-child { color: #94a3b8; font-size: .72rem; }

.player-admin-toolbar,
.player-import { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.player-admin-toolbar p,
.player-import p { margin-top: 4px; color: #94a3b8; }
.player-admin-toolbar .field { width: min(100%, 360px); margin: 0; }
.squad-summary-name { display: grid; gap: 2px; }
.squad-summary-name b { color: #f8fafc; }
.squad-summary-name small { color: #94a3b8; font-size: .7rem; }
.player-edit { grid-template-columns: repeat(2, minmax(0,1fr)); }
.player-edit-heading { display: grid; grid-column: 1 / -1; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 10px; border-bottom: 1px solid rgba(148,163,184,.12); padding-bottom: 10px; }
.player-edit-heading > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: rgba(52,211,153,.14); color: #a7f3d0; font-weight: 950; }
.player-edit-heading b, .player-edit-heading small { display: block; }
.player-edit-heading small { color: #94a3b8; font-size: .7rem; }
.player-edit-actions { display: flex; grid-column: 1 / -1; gap: 8px; }
.player-edit-actions .secondary-button { flex: 1; }

@media (max-width: 700px) {
  .player-profile-main { width: min(100% - 20px, 1180px); padding-top: 12px; }
  .player-profile-hero { min-height: 0; grid-template-columns: 100px minmax(0,1fr); gap: 14px; border-radius: 12px; padding: 22px 16px 0; }
  .player-profile-hero > img { max-height: 170px; }
  .player-profile-identity { padding-bottom: 20px; }
  .player-profile-identity h1 { font-size: 1.75rem; }
  .player-profile-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .player-history-panel { padding: 15px; }
  .player-history-event { grid-template-columns: 34px minmax(0,1fr); }
  .player-history-event > span:last-child { grid-column: 2; }
  .player-admin-toolbar, .player-import { align-items: stretch; flex-direction: column; }
  .player-admin-toolbar .field { width: 100%; }
  .player-edit { grid-template-columns: minmax(0,1fr); }
  .player-edit-heading, .player-edit-actions { grid-column: 1; }
}

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

[data-tab-panel="admin-teams"] .team-tab-player-import,
[data-tab-panel="admin-teams"] .team-player-list,
[data-tab-panel="admin-teams"] .team-save-footer {
  display: none;
}

.team-management-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 14px;
}

.team-management-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.team-settings-form {
  align-content: start;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  background: rgba(2, 6, 23, .26);
  padding: 14px;
}

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

.team-settings-form .form-section-title,
.team-contact-field {
  grid-column: 1 / -1;
}

.team-information-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  border-top: 1px solid rgba(148, 163, 184, .12);
  padding-top: 12px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.squad-editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  background: rgba(2, 6, 23, .3);
  padding: 14px;
}

.squad-editor-head h3 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 950;
}

.squad-editor-head p,
.squad-editor-note {
  color: #94a3b8;
  font-size: .78rem;
  line-height: 1.45;
}

.squad-editor-note {
  border: 1px solid rgba(52, 211, 153, .18);
  border-radius: 8px;
  background: rgba(6, 78, 59, .14);
  padding: 10px 12px;
}

.squad-editor-warning {
  border: 1px solid rgba(248, 113, 113, .36);
  border-radius: 8px;
  background: rgba(127, 29, 29, .26);
  color: #fecaca;
  padding: 10px 12px;
  font-size: .82rem;
  font-weight: 850;
}

.squad-roster-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 10px;
  background: rgba(15, 23, 42, .5);
}

.squad-roster-row {
  display: grid;
  grid-template-columns: 70px 220px 92px minmax(190px, 1.25fr) minmax(130px, .8fr) minmax(130px, .8fr) minmax(105px, .65fr);
  align-items: center;
  gap: 10px;
  min-width: 1120px;
  border-top: 1px solid rgba(148, 163, 184, .1);
  padding: 10px 12px 28px;
  position: relative;
}

.squad-roster-row:first-child {
  border-top: 0;
}

.squad-roster-header {
  min-height: 42px;
  align-items: center;
  background: rgba(2, 6, 23, .36);
  color: #64748b;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.player-record-id {
  align-self: center;
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 950;
}

.compact-field {
  margin: 0;
  gap: 4px;
}

.compact-field span,
.compact-field {
  min-width: 0;
}

.compact-field input {
  min-height: 38px;
  width: 100%;
}

.compact-field input.field-error {
  border-color: rgba(248, 113, 113, .82);
  background: rgba(127, 29, 29, .24);
  color: #fee2e2;
}

.player-image-field {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.player-image-field img {
  width: 38px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 6px;
  background: #111827;
  object-fit: cover;
  object-position: top;
}

.player-image-field input[type="file"] {
  min-height: 0;
  color: #cbd5e1;
  font-size: .68rem;
}

.player-image-field small {
  grid-column: 2;
  color: #64748b;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.2;
}

.media-remove-check { display: inline-flex !important; align-items: center; gap: 6px; color: #fca5a5 !important; font-size: .68rem !important; font-weight: 800; }
.media-remove-check input { width: 15px !important; min-height: 15px !important; margin: 0; accent-color: #ef4444; }
.team-cover-admin { display: grid; grid-column: 1 / -1; grid-template-columns: 180px minmax(220px, 1fr) auto; align-items: center; gap: 14px; border: 1px solid rgba(148,163,184,.14); border-radius: 10px; background: rgba(2,6,23,.24); padding: 12px; }
.team-cover-admin > img { width: 180px; height: 92px; border: 1px solid rgba(148,163,184,.2); border-radius: 8px; object-fit: cover; }
.team-cover-admin .field { margin: 0; }
.team-cover-admin small { color: #64748b; font-size: .67rem; }
.captain-permission-panel { display: grid; grid-template-columns: minmax(230px,.7fr) minmax(420px,1.3fr) auto; align-items: center; gap: 22px; margin-bottom: 16px; }
.captain-permission-panel h3 { margin: 3px 0 5px; font-size: 1.15rem; font-weight: 950; }
.captain-permission-panel p:last-child { color: #94a3b8; font-size: .78rem; }
.captain-permission-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.captain-permission-grid label { display: flex; min-height: 54px; align-items: center; gap: 10px; border: 1px solid rgba(148,163,184,.16); border-radius: 8px; background: rgba(2,6,23,.3); padding: 9px; cursor: pointer; }
.captain-permission-grid input { width: 17px; height: 17px; accent-color: #34d399; }
.captain-permission-grid b,.captain-permission-grid small { display: block; }
.captain-permission-grid b { font-size: .75rem; }
.captain-permission-grid small { margin-top: 2px; color: #64748b; font-size: .62rem; text-transform: uppercase; }

.manual-draw-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.manual-draw-panel { padding: 0; overflow: hidden; }
.manual-draw-panel > summary { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.manual-draw-panel > summary::-webkit-details-marker { display: none; }
.manual-draw-panel > summary span,.manual-draw-panel > summary b,.manual-draw-panel > summary small { display: block; }
.manual-draw-panel > summary b { font-size: 1rem; font-weight: 950; }
.manual-draw-panel > summary small { margin-top: 4px; color: #64748b; font-size: .7rem; }
.manual-draw-panel > summary strong { border: 1px solid rgba(52,211,153,.25); border-radius: 999px; background: rgba(6,78,59,.2); color: #6ee7b7; padding: 6px 10px; font-size: .7rem; }
.manual-draw-panel[open] > summary { border-bottom: 1px solid rgba(148,163,184,.14); }
.manual-draw-panel > form { display: grid; gap: 14px; padding: 16px; }
.manual-draw-note { margin: 0; color: #94a3b8; font-size: .76rem; line-height: 1.55; }
.manual-draw-table { display: grid; max-height: 540px; overflow: auto; border: 1px solid rgba(148,163,184,.14); border-radius: 9px; }
.manual-draw-table > label,.manual-group-table > div { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,.85fr); align-items: center; gap: 12px; border-bottom: 1px solid rgba(148,163,184,.1); padding: 9px 11px; }
.manual-draw-table > :last-child { border-bottom: 0; }
.manual-draw-table span b,.manual-draw-table span small { display: block; }
.manual-draw-table span b { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.manual-draw-table span small { margin-top: 2px; color: #64748b; font-size: .62rem; }
.manual-draw-table select { width: 100%; min-height: 36px; border: 1px solid rgba(148,163,184,.2); border-radius: 7px; background: #020617; color: #e2e8f0; padding: 6px 8px; font-size: .7rem; }
.manual-group-table > div { grid-template-columns: minmax(170px,1fr) 82px 82px; }
.manual-group-table label { display: grid; gap: 3px; color: #64748b; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.assignment-crud-panel { margin-bottom: 16px; }
.assignment-crud-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid rgba(148,163,184,.12); border-bottom: 1px solid rgba(148,163,184,.12); padding: 12px 16px; }
.assignment-crud-table { max-height: 620px; overflow: auto; }
.assignment-crud-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,1fr) 90px 90px 150px; align-items: center; gap: 10px; border-bottom: 1px solid rgba(148,163,184,.1); padding: 9px 14px; }
.assignment-crud-row > span:first-of-type b,.assignment-crud-row > span:first-of-type small { display: block; }
.assignment-crud-row > span:first-of-type b { font-size: .76rem; }
.assignment-crud-row > span:first-of-type small { margin-top: 2px; color: #64748b; font-size: .62rem; }
.assignment-crud-row label { display: grid; gap: 3px; }
.assignment-crud-row label small { display: none; color: #64748b; font-size: .58rem; font-weight: 850; text-transform: uppercase; }
.assignment-crud-row select { width: 100%; min-height: 36px; border: 1px solid rgba(148,163,184,.2); border-radius: 7px; background: #020617; color: #e2e8f0; padding: 6px 8px; font-size: .7rem; }
.assignment-crud-head { position: sticky; z-index: 2; top: 0; min-height: 42px; background: #0b1426; color: #64748b; font-size: .63rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.assignment-row-actions { display: flex; gap: 6px; }
.assignment-row-actions button { min-height: 34px; padding: 0 10px; font-size: .68rem; }
.assignment-clear-button { border: 1px solid rgba(248,113,113,.3); border-radius: 7px; background: rgba(127,29,29,.16); color: #fca5a5; font-weight: 850; }

@media (max-width: 620px) {
  .aiub-gallery { border-radius: 13px; }
  .aiub-gallery-head { min-height: 74px; padding: 14px 16px; }
  .aiub-gallery-head h2 { font-size: 1.18rem; }
  .aiub-gallery-head > span { display: none; }
  .aiub-carousel-track { aspect-ratio: 4 / 3; }
  .aiub-carousel-arrow { width: 38px; height: 38px; }
  .aiub-carousel-arrow.previous { left: 10px; }
  .aiub-carousel-arrow.next { right: 10px; }
}

@media (max-width: 900px) {
  .captain-permission-panel { grid-template-columns: minmax(0,1fr); }
  .team-cover-admin { grid-template-columns: 140px minmax(0,1fr); }
  .team-cover-admin > img { width: 140px; }
  .manual-draw-grid { grid-template-columns: minmax(0,1fr); }
  .assignment-crud-head { display: none; }
  .assignment-crud-row { grid-template-columns: minmax(160px,1fr) minmax(170px,1fr) 76px 76px; }
  .assignment-crud-row label small { display: block; }
  .assignment-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 620px) {
  .captain-permission-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .team-cover-admin { grid-template-columns: minmax(0,1fr); }
  .team-cover-admin > img { width: 100%; height: 130px; }
  .manual-draw-table > label { grid-template-columns: minmax(0,1fr); }
  .manual-group-table > div { grid-template-columns: minmax(0,1fr) 1fr 1fr; }
  .manual-group-table > div > span { grid-column: 1 / -1; }
  .assignment-crud-row { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
  .assignment-crud-row > span:first-of-type { grid-column: 1 / -1; }
  .assignment-row-actions { justify-content: stretch; }
  .assignment-row-actions button { flex: 1; }
  .assignment-crud-actions { align-items: stretch; flex-direction: column; }
  .assignment-crud-actions form,.assignment-crud-actions button { width: 100%; }
}

.squad-row-meta {
  position: absolute;
  left: 404px;
  bottom: 7px;
  color: #64748b;
  font-size: .66rem;
  font-weight: 800;
}

.team-save-footer {
  display: flex;
  justify-content: flex-end;
  border: 1px solid rgba(52, 211, 153, .18);
  border-radius: 10px;
  background: rgba(6, 78, 59, .12);
  padding: 14px;
}

.team-save-footer .primary-button {
  min-width: 220px;
}

.captain-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 16px;
}

.admin-request-list,
.captain-account-list {
  display: grid;
  gap: 10px;
}

.admin-request-card,
.captain-account-list article {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  background: rgba(2, 6, 23, .28);
  padding: 14px;
}

.admin-request-card.pending { border-color: rgba(251, 191, 36, .28); }
.admin-request-card.approved { border-color: rgba(52, 211, 153, .28); }
.admin-request-card.rejected { border-color: rgba(248, 113, 113, .28); }

.admin-request-main {
  display: grid;
  grid-template-columns: 96px minmax(180px, 1.2fr) minmax(150px, .9fr) minmax(160px, 1fr);
  align-items: center;
  gap: 12px;
}

.request-status {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(251, 191, 36, .16);
  color: #fde68a;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-request-card.approved .request-status {
  background: rgba(52, 211, 153, .16);
  color: #bbf7d0;
}

.admin-request-card.rejected .request-status {
  background: rgba(248, 113, 113, .16);
  color: #fecaca;
}

.admin-request-main b,
.admin-request-main small,
.captain-account-list b,
.captain-account-list span,
.captain-account-list code {
  display: block;
}

/* Captain access workspace */
.captain-admin-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.captain-reset-result {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, auto) minmax(130px, auto) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(52, 211, 153, .4);
  border-radius: 8px;
  background: rgba(6, 78, 59, .22);
  padding: 14px;
}

.captain-reset-result div,
.captain-reset-result span,
.captain-reset-result small {
  display: block;
}

.captain-reset-result span {
  color: #6ee7b7;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.captain-reset-result small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: .72rem;
}

.captain-reset-result code {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 7px;
  background: #020617;
  color: #d1fae5;
  padding: 10px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.captain-account-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.captain-account-head .form-section-title {
  margin: 0;
}

.captain-account-head .admin-search {
  width: min(100%, 340px);
}

.captain-account-list {
  overflow: hidden;
  gap: 0;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
}

.captain-account-list .captain-account-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, .8fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 12px 14px;
}

.captain-account-list .captain-account-row + .captain-account-row {
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.captain-account-list .captain-account-labels {
  min-height: 40px;
  background: rgba(2, 6, 23, .45);
  color: #64748b;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.captain-account-list .captain-account-row code {
  min-width: 0;
}

.captain-account-list .captain-account-row form,
.captain-account-list .captain-account-row button {
  width: 100%;
}

.draw-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.draw-results-head h2 { margin: 3px 0; font-size: 1.7rem; font-weight: 950; }
.draw-results-head > div > p:last-child { color: #94a3b8; }
.draw-progress { display: flex; overflow: hidden; border: 1px solid rgba(148, 163, 184, .18); border-radius: 8px; }
.draw-progress span { display: grid; min-width: 140px; gap: 2px; padding: 11px 16px; }
.draw-progress span + span { border-left: 1px solid rgba(148, 163, 184, .18); }
.draw-progress b { font-size: 1.05rem; }
.draw-progress small { color: #64748b; font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.draw-progress .complete b { color: #6ee7b7; }
.draw-result-section + .draw-result-section { margin-top: 16px; }
.nation-draw-table { overflow: hidden; border: 1px solid rgba(148, 163, 184, .14); border-radius: 8px; }
.draw-table-row { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(120px, .55fr) minmax(180px, .8fr); align-items: center; gap: 16px; min-height: 48px; padding: 9px 14px; }
.draw-table-row + .draw-table-row { border-top: 1px solid rgba(148, 163, 184, .11); }
.draw-table-row span { color: #94a3b8; font-size: .78rem; }
.draw-table-head { min-height: 38px; background: rgba(2, 6, 23, .42); color: #64748b; font-size: .66rem; font-weight: 950; text-transform: uppercase; }
.group-draw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.draw-group { overflow: hidden; border: 1px solid rgba(148, 163, 184, .14); border-radius: 8px; }
.draw-group h3 { margin: 0; border-bottom: 1px solid rgba(52, 211, 153, .24); background: rgba(6, 78, 59, .17); padding: 10px 12px; color: #a7f3d0; font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.draw-group div { display: grid; gap: 2px; padding: 10px 12px; }
.draw-group div + div { border-top: 1px solid rgba(148, 163, 184, .1); }
.draw-group strong,
.draw-group span,
.draw-group small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draw-group span { color: #cbd5e1; font-size: .75rem; }
.draw-group small { color: #64748b; font-size: .65rem; font-weight: 800; }

.captain-admin-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0 16px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.captain-admin-tabs button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  padding: 0 16px;
  font-size: .78rem;
  font-weight: 900;
}

.captain-admin-tabs button.active { border-color: #34d399; color: #f8fafc; }
.captain-admin-tabs button span { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 999px; background: rgba(251, 191, 36, .16); color: #fde68a; font-size: .65rem; }
.captain-admin-panel { display: none; }
.captain-admin-panel.active { display: block; }
.captain-admin-panel > .form-section-title { align-items: start; margin-bottom: 16px; }
.admin-request-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.admin-request-team-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  padding: 8px 2px;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 950;
}
.admin-request-team-heading:first-child { margin-top: 0; }
.admin-request-team-heading small { color: #64748b; font-size: .68rem; font-weight: 850; }
.admin-request-card { overflow: hidden; border-radius: 8px; background: rgba(2, 6, 23, .34); padding: 0; }
.admin-request-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(148, 163, 184, .13); padding: 14px 16px; }
.admin-request-head b,
.admin-request-head small { display: block; }
.admin-request-head small { margin-top: 3px; color: #64748b; font-size: .7rem; font-weight: 800; }
.admin-request-head .request-status { min-width: 82px; padding: 0 10px; }
.admin-request-change { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: center; gap: 10px; padding: 16px; }
.admin-request-change > div { min-width: 0; border: 1px solid rgba(148, 163, 184, .13); border-radius: 7px; background: rgba(15, 23, 42, .56); padding: 12px; }
.admin-request-change > div.admin-request-player { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 11px; }
.admin-request-photo { width: 54px; height: 62px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 8px; background: #111827; object-fit: cover; object-position: top; }
.admin-request-change small,
.admin-request-change strong,
.admin-request-change em { display: block; }
.admin-request-change small { color: #64748b; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.admin-request-change strong { overflow: hidden; margin-top: 4px; color: #f8fafc; text-overflow: ellipsis; white-space: nowrap; }
.admin-request-change em { margin-top: 3px; color: #94a3b8; font-size: .7rem; font-style: normal; font-weight: 800; }
.admin-request-change > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(52, 211, 153, .12); color: #6ee7b7; font-size: .62rem; font-weight: 950; }
.admin-request-change.addition-request-change { grid-template-columns: minmax(0, 1fr); }
.admin-request-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 16px 14px; }
.admin-request-details div { min-width: 0; }
.admin-request-details dt { color: #64748b; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.admin-request-details dd { overflow: hidden; margin: 3px 0 0; color: #cbd5e1; font-size: .75rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.admin-request-card .admin-request-note { margin: 0 16px 12px; border-radius: 7px; padding: 10px 12px; }
.admin-request-card .admin-request-note small { display: block; color: #64748b; font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.admin-request-card .admin-request-note p { margin: 4px 0 0; color: #cbd5e1; font-size: .78rem; }
.admin-request-card .admin-review-form { grid-template-columns: minmax(0, 1fr); margin: 0; border-top: 1px solid rgba(148, 163, 184, .13); background: rgba(15, 23, 42, .42); padding: 14px 16px 16px; }
.admin-request-card .admin-review-form textarea { min-height: 72px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 7px; background: #020617; color: #f8fafc; padding: 10px 12px; resize: vertical; }
.admin-request-card .admin-review-form > div { justify-content: flex-end; }
.admin-request-card .admin-review-form button { min-width: 110px; }

@media (max-width: 900px) {
  .group-draw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-request-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .captain-reset-result {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  }

  .captain-account-list .captain-account-row {
    grid-template-columns: minmax(150px, 1fr) minmax(140px, .8fr) minmax(200px, 1fr);
  }

  .captain-account-list .captain-account-row form {
    grid-column: 1 / -1;
  }

  .captain-account-list .captain-account-labels {
    display: none;
  }

  .admin-request-main {
    grid-template-columns: 88px repeat(3, minmax(140px, 1fr));
    overflow-x: auto;
  }
}

.admin-request-main small,
.admin-request-details,
.captain-account-list span {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 800;
}

.admin-request-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.admin-request-note {
  margin-top: 10px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  background: rgba(15, 23, 42, .5);
  color: #cbd5e1;
  padding: 10px;
  font-size: .8rem;
}

.admin-request-note.muted {
  color: #94a3b8;
}

.admin-review-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
}

.admin-review-form > div {
  display: flex;
  gap: 8px;
}

.captain-account-list article {
  display: grid;
  gap: 5px;
}

.captain-account-list code {
  overflow: hidden;
  border-radius: 7px;
  background: #020617;
  color: #93c5fd;
  padding: 7px 9px;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .team-management-workspace,
  .team-player-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .squad-editor-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .team-management-workspace { padding: 9px; }
  .team-settings-form { grid-template-columns: minmax(0, 1fr); }
  .team-settings-form .form-section-title,
  .team-contact-field { grid-column: 1; }
  .team-save-footer .primary-button { width: 100%; }

  .captain-admin-grid,
  .admin-review-form,
  .admin-request-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-review-form > div {
    flex-direction: column;
  }

  .captain-account-head {
    align-items: stretch;
    flex-direction: column;
  }

  .captain-account-head .admin-search {
    width: 100%;
  }

  .captain-reset-result,
  .captain-account-list .captain-account-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .captain-reset-result .secondary-button {
    width: 100%;
  }

  .admin-request-main {
    overflow: visible;
  }

  .draw-results-head { align-items: stretch; flex-direction: column; }
  .draw-progress { width: 100%; }
  .draw-progress span { min-width: 0; flex: 1; }
  .draw-table-head { display: none; }
  .draw-table-row { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 12px; }
  .group-draw-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-request-change { grid-template-columns: minmax(0, 1fr); }
  .admin-request-change > span { margin: -2px auto; }
  .admin-request-details { grid-template-columns: minmax(0, 1fr); }
  .admin-request-card .admin-review-form > div { flex-direction: row; }
  .admin-request-card .admin-review-form button { min-width: 0; flex: 1; }
  .site-brand img { width: 82px; height: 46px; }
  .hero-tournament-logo { width: min(330px, 100%); max-height: 170px; }
  .admin-title-lockup > img { width: 68px; height: 52px; }
  .admin-title-lockup { gap: 10px; }
  .match-card-brand > img { width: 96px; height: 64px; }
  .organizer-marks { justify-content: flex-start; }
  .organizer-marks span { margin-right: 8px; }
  .organizer-marks img { width: 36px; height: 36px; }
  .organizer-marks .office-of-sports-mark { width: 116px; height: 116px; }
  .admin-login-shell > form { width: calc(100vw - 52px) !important; max-width: calc(100vw - 52px) !important; }
}

/* Compact mobile leaderboards */
@media (max-width: 600px) {
  .scorers-shell, .fair-play-shell { width: calc(100vw - 24px); max-width: calc(100vw - 24px); margin-inline: 0; overflow: hidden; border-radius: 12px; }
  .scorers-empty { padding: 42px 16px; }
  .scorers-empty h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
  .scorers-heading { gap: 10px; padding: 20px 16px 16px; }
  .scorers-heading h2 { font-size: 1.65rem; }
  .scorers-heading > p { max-width: none; font-size: .86rem; line-height: 1.55; }

  .scorer-leader, .fair-play-leader {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }
  .scorer-leader img { width: 72px; height: 92px; align-self: center; border-radius: 8px; }
  .fair-play-leader-flag { width: 72px; height: 72px; border-radius: 8px; font-size: 2.25rem; }
  .leader-details { min-width: 0; }
  .leader-details > span { font-size: .62rem; }
  .leader-details h3 { margin-top: 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
  .leader-details p { margin-top: 5px; font-size: .76rem; line-height: 1.45; }

  .leader-goals, .fair-play-leader .leader-goals {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: stretch;
    gap: 0;
    border-top: 1px solid rgba(148, 163, 184, .15);
    border-left: 0;
    padding: 12px 0 0;
  }
  .leader-goals > div { min-width: 0; flex: 1; }
  .leader-goals > div + div { border-left: 1px solid rgba(148, 163, 184, .15); }
  .leader-goals strong, .fair-play-leader .leader-goals strong { font-size: 1.85rem; }
  .leader-goals span { font-size: .58rem; letter-spacing: .08em; text-align: center; }
  .fair-play-leader > .leader-goals { display: grid; justify-items: start; }

  .scorer-list, .fair-play-list { padding: 8px; }
  .scorer-entry {
    grid-template-columns: 26px 38px minmax(0, 1fr) 34px 34px;
    gap: 6px;
    min-height: 64px;
    padding: 7px 5px;
  }
  .scorer-entry > img { width: 34px; height: 42px; border-radius: 6px; }
  .scorer-player { padding-left: 2px; }
  .scorer-player b { font-size: .82rem; }
  .scorer-player small { font-size: .62rem; }
  .scorer-goals, .scorer-assists { display: grid; justify-items: end; font-size: 1.05rem; }
  .scorer-goals::before, .scorer-assists::before { color: #64748b; font-size: .52rem; line-height: 1; }
  .scorer-goals::before { content: "G"; }
  .scorer-assists::before { content: "A"; }

  .fair-play-entry { grid-template-columns: 28px minmax(0, 1fr) 68px; gap: 7px; min-height: 62px; padding: 7px 5px; }
  .fair-play-team { gap: 8px; }
  .fair-play-flag { width: 34px; height: 40px; border-radius: 6px; font-size: 1.15rem; }
  .fair-play-team b { font-size: .82rem; }
  .fair-play-team small { font-size: .6rem; }
  .fair-play-score { font-size: 1.05rem; }
}

/* Professional team and player profile presentation */
.profile-hero {
  min-height: 340px;
  border-color: rgba(94, 234, 212, .24);
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgba(2, 22, 35, .98) 0%, rgba(5, 39, 51, .93) 48%, rgba(2, 6, 23, .7) 100%),
    var(--team-cover, url("Microsoft Outlook.jpg")) center 62%/cover;
  padding: 44px 46px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.profile-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #34d399, #22d3ee 42%, transparent 82%);
  content: "";
}

.profile-hero::after { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(2,6,23,.26)); }
.profile-hero-glow { top: -185px; right: 9%; width: 520px; height: 520px; border-width: 1px; border-color: rgba(103, 232, 249, .13); }
.profile-identity { gap: 28px; }
.profile-flag { width: 112px; height: 112px; flex-basis: 112px; border-radius: 18px; background: linear-gradient(145deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .58)); font-size: 4.4rem; }
.profile-eyebrow { color: #5eead4; }
.profile-identity h1 { margin-top: 9px; font-size: clamp(2.7rem, 5.2vw, 4.8rem); letter-spacing: -.055em; }
.profile-meta span { border-color: rgba(148, 163, 184, .22); background: rgba(2, 6, 23, .48); padding: 7px 12px; }
.profile-meta .profile-team-name { border-color: rgba(45, 212, 191, .4); background: rgba(13, 148, 136, .18); color: #ccfbf1; }

.profile-captain-feature {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 360px);
  grid-template-columns: 84px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .9), rgba(6, 78, 59, .45));
  padding: 12px;
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(2, 6, 23, .32);
  backdrop-filter: blur(15px);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.profile-captain-feature:hover { border-color: rgba(94, 234, 212, .52); background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(6, 95, 70, .58)); transform: translateY(-2px); }
.profile-captain-portrait { position: relative; display: block; width: 84px; height: 94px; }
.profile-captain-portrait img { width: 100%; height: 100%; border: 1px solid rgba(94, 234, 212, .3); border-radius: 11px; object-fit: cover; object-position: top; }
.profile-captain-portrait b { position: absolute; right: -5px; bottom: -5px; display: grid; width: 27px; height: 27px; place-items: center; border: 3px solid #0b1d2b; border-radius: 50%; background: #2dd4bf; color: #042f2e; font-size: .68rem; font-weight: 950; }
.profile-captain-copy { display: grid; min-width: 0; }
.profile-captain-copy > small { color: #5eead4; font-size: .58rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.profile-captain-copy em { margin-top: 3px; color: #94a3b8; font-size: .65rem; font-style: normal; font-weight: 850; text-transform: uppercase; }
.profile-captain-copy strong { overflow: hidden; margin-top: 2px; font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-captain-copy > span { margin-top: 4px; color: #cbd5e1; font-size: .68rem; font-weight: 750; }
.profile-captain-feature > i { color: #5eead4; font-size: 1.15rem; font-style: normal; }

.profile-stat-grid article { border-color: rgba(148, 163, 184, .13); border-radius: 12px; background: linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(8, 20, 34, .98)); }
.profile-stat-grid article::after { border-color: rgba(45, 212, 191, .04); }
.profile-section { border-color: rgba(148, 163, 184, .13); border-radius: 14px; background: rgba(12, 23, 40, .92); }

.profile-player { position: relative; min-height: 94px; border-radius: 12px; background: linear-gradient(145deg, rgba(8, 18, 34, .9), rgba(15, 23, 42, .78)); padding: 13px; }
.profile-player.profile-player-captain { border-color: rgba(45, 212, 191, .38); background: linear-gradient(135deg, rgba(13, 148, 136, .13), rgba(8, 18, 34, .92)); box-shadow: inset 3px 0 #2dd4bf; }
.profile-player.profile-player-captain .profile-player-photo { border-color: rgba(45, 212, 191, .42); }
.profile-player.profile-player-captain > div > small { color: #64748b; font-weight: 700; }
.roster-captain-mark { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: #99f6e4; font-size: .58rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.roster-captain-mark b { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: #2dd4bf; color: #042f2e; font-size: .52rem; }

.player-profile-page {
  min-height: 100vh;
  background: radial-gradient(circle at 76% 8%, rgba(14, 116, 144, .11), transparent 31rem), #020617;
}

.player-profile-main { width: min(1220px, calc(100% - 32px)); padding-top: 20px; }
.player-profile-main > .page-breadcrumb { margin: 0 0 16px 4px; }
.player-profile-hero {
  position: relative;
  min-height: 390px;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  overflow: hidden;
  border-color: rgba(103, 232, 249, .25);
  border-radius: 20px;
  background:
    linear-gradient(102deg, rgba(5, 18, 42, .98) 0%, rgba(8, 47, 73, .94) 55%, rgba(6, 78, 59, .72) 100%),
    var(--player-team-cover, url("Microsoft Outlook.jpg")) center/cover;
  padding: 36px 48px 0;
}

.player-profile-hero::before { position: absolute; top: -170px; right: -110px; width: 520px; height: 520px; border: 1px solid rgba(103, 232, 249, .13); border-radius: 50%; content: ""; }
.player-profile-hero::after { position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, #22d3ee, #34d399 55%, transparent); content: ""; }
.player-profile-portrait { position: relative; z-index: 1; display: grid; height: 354px; align-self: end; place-items: end center; }
.player-profile-portrait::before { position: absolute; bottom: 0; width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 68%); content: ""; }
.player-profile-portrait img { position: relative; z-index: 1; width: 100%; max-height: 354px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 22px 25px rgba(0,0,0,.35)); }
.player-profile-portrait > span { position: absolute; z-index: 2; top: 0; left: -3px; color: rgba(207, 250, 254, .2); font-size: 4.5rem; font-weight: 950; line-height: 1; letter-spacing: -.08em; }
.player-profile-identity { position: relative; z-index: 2; align-self: center; padding-bottom: 28px; }
.player-profile-identity > p { display: flex; align-items: center; gap: 9px; color: #67e8f9; font-size: .68rem; }
.player-profile-identity > p i { width: 18px; height: 1px; background: rgba(103, 232, 249, .55); }
.player-profile-identity h1 { max-width: 760px; margin-top: 13px; font-size: clamp(3rem, 6vw, 5.25rem); letter-spacing: -.06em; }
.player-profile-identity > div { margin-top: 20px; }
.player-profile-identity > div span { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; }
.player-profile-identity > div .captain-badge { gap: 7px; border-color: rgba(45, 212, 191, .4); background: rgba(13, 148, 136, .19); color: #ccfbf1; }
.player-profile-identity .captain-badge b { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #2dd4bf; color: #042f2e; font-size: .56rem; }
.player-team-lockup { display: grid !important; width: min(100%, 510px); grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 10px; margin-top: 22px !important; border-top: 1px solid rgba(148, 163, 184, .16); padding-top: 16px; color: #f8fafc !important; }
.player-team-lockup > span:first-child { font-size: 1.45rem; }
.player-team-lockup span { display: block; min-width: 0; }
.player-team-lockup small,.player-team-lockup strong { display: block; }
.player-team-lockup small { color: #64748b; font-size: .58rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.player-team-lockup strong { overflow: hidden; margin-top: 2px; color: #d1fae5; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.player-team-lockup > i { color: #5eead4; font-style: normal; }
.player-profile-stats { gap: 10px; }
.player-profile-stats article { position: relative; overflow: hidden; min-height: 116px; border-color: rgba(148,163,184,.13); border-radius: 12px; background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(6,25,41,.9)); padding: 20px; }
.player-profile-stats article::after { position: absolute; right: -21px; bottom: -38px; width: 82px; height: 82px; border: 16px solid rgba(34, 211, 238, .035); border-radius: 50%; content: ""; }
.player-profile-stats strong { margin-top: 9px; font-size: 2.25rem; }
.player-history-panel { border-color: rgba(148,163,184,.13); border-radius: 14px; background: rgba(12, 23, 40, .92); }

@media (max-width: 980px) {
  .profile-hero { align-items: stretch; flex-direction: column; min-height: 0; padding: 34px; }
  .profile-captain-feature { width: 100%; max-width: 460px; }
  .player-profile-hero { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-inline: 30px; }
}

@media (max-width: 640px) {
  .profile-hero { gap: 28px; padding: 27px 20px 24px; }
  .profile-identity { flex-direction: row; align-items: center; gap: 15px; }
  .profile-flag { width: 72px; height: 72px; flex-basis: 72px; border-radius: 14px; font-size: 2.8rem; }
  .profile-identity h1 { font-size: clamp(2rem, 11vw, 3.1rem); }
  .profile-captain-feature { grid-template-columns: 68px minmax(0,1fr) 20px; gap: 11px; padding: 10px; }
  .profile-captain-portrait { width: 68px; height: 76px; }
  .profile-squad-grid { gap: 8px; }
  .profile-player { min-height: 88px; }

  .player-profile-main { width: min(100% - 20px, 1220px); }
  .player-profile-hero { min-height: 440px; grid-template-columns: minmax(0, 1fr); align-content: end; gap: 0; padding: 18px 18px 0; }
  .player-profile-portrait { position: absolute; inset: 14px 12px auto auto; width: 145px; height: 205px; opacity: .94; }
  .player-profile-portrait > span { top: 4px; left: -8px; font-size: 3rem; }
  .player-profile-portrait img { max-height: 205px; }
  .player-profile-identity { align-self: end; padding: 215px 0 24px; }
  .player-profile-identity > p { max-width: 180px; flex-wrap: wrap; font-size: .59rem; line-height: 1.5; }
  .player-profile-identity h1 { font-size: clamp(2.15rem, 11vw, 3.3rem); }
  .player-profile-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .player-profile-stats article { min-height: 104px; padding: 16px; }
}

/* Final profile cascade — keep this after all legacy profile rules. */
.player-profile-hero {
  min-height: 350px;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 38px;
  padding: 30px 42px 0;
}

/* Reliable mobile navigation anchoring */
@media (max-width: 760px) {
  .site-nav-shell { overflow: visible; }
  .site-nav { position: relative; overflow: visible; }
  .site-nav-top { position: relative; min-height: 58px; padding-right: 48px; }
  .site-menu-toggle {
    position: absolute;
    z-index: 100;
    top: 10px;
    right: 0;
    margin: 0;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .site-nav.menu-open .site-tabs {
    position: relative;
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
}
.player-profile-portrait { height: 320px; }
.player-profile-portrait img { max-height: 320px; }
.player-profile-portrait > span { top: 8px; left: 0; font-size: 3.4rem; }
.player-profile-identity h1 { max-width: 680px; font-size: clamp(2.8rem, 5.2vw, 4.4rem); overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .profile-main,
  .player-profile-main { width: calc(100% - 20px); max-width: 100%; }
  .profile-hero { display: grid; min-height: 0; grid-template-columns: minmax(0,1fr); gap: 18px; padding: 22px 17px 17px; }
  .profile-hero-glow { display: none; }
  .profile-identity { width: 100%; align-items: center; flex-direction: row; gap: 13px; }
  .profile-identity > div:last-child { min-width: 0; }
  .profile-flag { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; font-size: 2.45rem; }
  .profile-eyebrow { font-size: .56rem; }
  .profile-identity h1 { max-width: 100%; margin-top: 4px; font-size: clamp(1.8rem, 9vw, 2.65rem); overflow-wrap: anywhere; }
  .profile-meta { gap: 5px; margin-top: 11px; }
  .profile-meta span { padding: 5px 8px; font-size: .59rem; }
  .profile-captain-feature { width: 100%; max-width: none; grid-template-columns: 56px minmax(0,1fr); gap: 10px; padding: 9px; box-shadow: none; }
  .profile-captain-portrait { width: 56px; height: 64px; }
  .profile-captain-feature > i { display: none; }
  .profile-stat-grid { gap: 8px; }
  .profile-stat-grid article { min-height: 100px; padding: 14px; }
  .profile-content-grid { gap: 13px; }
  .profile-squad-grid { padding: 10px; }
  .profile-player { grid-template-columns: 48px minmax(0,1fr); min-height: 82px; gap: 10px; padding: 10px; }
  .profile-player-photo { width: 46px; height: 54px; }
  .profile-player .player-totals { display: flex; grid-column: 2; gap: 9px; text-align: left; }
  .profile-player .player-totals span { display: inline-flex; align-items: baseline; gap: 3px; }

  .player-profile-main { padding-top: 10px; }
  .player-profile-main > .page-breadcrumb { margin: 0 2px 11px; overflow: hidden; font-size: .65rem; white-space: nowrap; }
  .player-profile-hero { display: flex; min-height: 0; flex-direction: column; gap: 0; overflow: hidden; padding: 0; }
  .player-profile-portrait { position: relative; inset: auto; width: 100%; height: 235px; flex: 0 0 235px; overflow: hidden; border-bottom: 1px solid rgba(103,232,249,.16); background: linear-gradient(180deg, rgba(8,47,73,.18), rgba(2,6,23,.28)); opacity: 1; }
  .player-profile-portrait::before { bottom: -60px; width: 250px; height: 250px; }
  .player-profile-portrait img { width: min(78%, 260px); height: 230px; max-height: none; object-fit: contain; object-position: center bottom; }
  .player-profile-portrait > span { top: 17px; left: 17px; font-size: 2.8rem; }
  .player-profile-identity { width: 100%; align-self: auto; padding: 21px 17px 24px; }
  .player-profile-identity > p { max-width: 100%; font-size: .55rem; }
  .player-profile-identity h1 { max-width: 100%; margin-top: 8px; font-size: clamp(1.9rem, 9.7vw, 2.85rem); line-height: 1; overflow-wrap: anywhere; }
  .player-profile-identity > div { gap: 6px; margin-top: 14px; }
  .player-profile-identity > div span { min-height: 30px; padding-inline: 9px; font-size: .65rem; }
  .player-team-lockup { width: 100%; max-width: 100%; margin-top: 16px !important; padding-top: 12px; }
  .player-team-lockup strong { font-size: .67rem; }
  .player-profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .player-profile-stats article { min-height: 94px; padding: 14px; }
  .player-profile-stats strong { font-size: 1.7rem; }
  .player-history-panel { padding: 12px; }
  .player-history-panel .profile-section-title { padding-inline: 2px; }
}
