﻿:root {
  color-scheme: dark;
  --bg: #02050a;
  --panel: rgba(7, 13, 20, 0.86);
  --panel-strong: rgba(10, 18, 29, 0.96);
  --text: #f8fbff;
  --muted: #8fa0b2;
  --line: rgba(154, 204, 255, 0.22);
  --blue: #096dff;
  --blue-soft: #17a5ff;
  --purple: #8928ff;
  --red: #ff3048;
  --green: #26d67c;
  --gold: #efc84a;
  --cyan: #15d8ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(2, 5, 10, 0.76), rgba(2, 5, 10, 0.92)),
    radial-gradient(circle at 50% 12%, rgba(55, 108, 190, 0.42), transparent 24rem),
    radial-gradient(circle at 18% 34%, rgba(255, 48, 72, 0.2), transparent 23rem),
    linear-gradient(180deg, #06111d 0%, #02050a 44%, #05080d 100%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.player-card-body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255, 48, 72, 0.24) 49.8% 50.2%, transparent 50.2%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, transparent 0 42%, rgba(255, 255, 255, 0.09) 42.2%, transparent 42.7%);
  opacity: 0.34;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.22;
  pointer-events: none;
}

.arena-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 8% 18%, rgba(255, 63, 91, 0.22), transparent 16rem),
    radial-gradient(ellipse at 86% 18%, rgba(18, 127, 255, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(5, 11, 21, 0.3), rgba(5, 8, 13, 0.96));
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
}

.site-chrome .site-header {
  position: relative;
  top: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: min(1500px, calc(100% - 1rem));
  margin: 0 auto;
  min-height: 66px;
  padding: 0.65rem 4.25rem 0.65rem 1rem;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(3, 8, 15, 0.86);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.header-button-group {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-icon-button,
.signin-button {
  display: grid;
  min-width: 78px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(88, 166, 255, 0.68);
  border-radius: 6px;
  background: rgba(3, 14, 33, 0.86);
  color: #dce9f7;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.admin-icon-button:hover,
.admin-icon-button:focus-visible,
.signin-button:hover,
.signin-button:focus-visible {
  border-color: var(--cyan);
  background: rgba(0, 198, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(0, 198, 255, 0.28);
}

.admin-icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.admin-login-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-login-modal[hidden] {
  display: none;
}

.admin-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.admin-login-window {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.12), rgba(122, 40, 255, 0.08)),
    rgba(5, 12, 22, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.admin-login-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.admin-login-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login-form input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  padding: 0 0.85rem;
  outline: none;
}

.admin-login-form input:focus {
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.18);
}

.admin-dashboard,
.admin-locked {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-card-grid article {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 8, 16, 0.72);
}

.admin-card-grid h3 {
  margin: 0 0 0.4rem;
  color: #ffffff;
  font-size: 1rem;
}

.admin-card-grid p,
.admin-locked p {
  color: var(--muted);
}

.admin-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.admin-tool-stack {
  display: grid;
  gap: 1rem;
}

.admin-tool-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-tool-groups {
  display: grid;
  gap: 1rem;
}

.admin-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.45rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.admin-subheader {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -0.25rem -0.25rem 1rem;
  border-radius: 0;
  background: rgba(4, 13, 27, 0.94);
  backdrop-filter: blur(14px);
}

.admin-page-tabs button,
.admin-page-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 6px;
  background: rgba(4, 13, 27, 0.72);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.admin-page-tabs button.is-active,
.admin-page-tabs a.is-active {
  border-color: rgba(0, 198, 255, 0.62);
  background: rgba(0, 198, 255, 0.16);
  color: #ffffff;
}

.admin-tool-page {
  display: none;
  gap: 1rem;
}

.admin-tool-page.is-active {
  display: grid;
}

.admin-tool-group {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.05), transparent 44%),
    rgba(3, 10, 20, 0.5);
}

.admin-tool-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.admin-tool-group-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.2rem;
}

.admin-tool-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.08), transparent 48%),
    rgba(2, 8, 16, 0.72);
}

.admin-tool-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
}

.admin-card-link {
  display: grid;
  gap: 0.35rem;
  min-height: 140px;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.1), transparent 48%),
    rgba(2, 8, 16, 0.72);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.admin-card-link:hover {
  border-color: rgba(0, 198, 255, 0.56);
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.16), transparent 48%),
    rgba(2, 8, 16, 0.82);
  transform: translateY(-2px);
}

.admin-card-link strong {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-card-link small,
.admin-help-text {
  color: var(--muted);
  line-height: 1.5;
}

.admin-form {
  display: grid;
  gap: 0.8rem;
}

.admin-color-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.current-logo-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 8px;
  background: rgba(4, 13, 27, 0.55);
}

.current-logo-panel h3 {
  margin: 0;
  color: #ffffff;
}

.current-logo-panel img {
  width: clamp(104px, 14vw, 172px);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 0.65rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 8px;
  background: rgba(1, 8, 16, 0.6);
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 0 0.8rem;
  outline: 0;
}

.admin-form input[type="file"] {
  padding: 0.65rem 0.8rem;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: rgba(23, 165, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(23, 165, 255, 0.14);
}

.admin-form select option {
  background: #06101e;
  color: var(--text);
}

.admin-roster-list {
  display: grid;
  gap: 0.5rem;
  max-height: 220px;
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
}

.admin-roster-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-roster-player span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-roster-player small {
  color: var(--directory-team-tertiary, var(--accent));
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-roster-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.admin-roster-actions .button {
  min-height: 32px;
  padding: 0.35rem 0.55rem;
  font-size: 0.66rem;
}

.admin-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-list {
  display: grid;
  gap: 0.5rem;
  max-height: 340px;
  overflow: auto;
  margin-top: 0.9rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-list-row span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.admin-list-row strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row small {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finalized-stats-card {
  margin-top: 1rem;
}

.finalized-stats-list {
  max-height: 420px;
}

.finalized-stats-row .admin-roster-actions {
  flex-shrink: 0;
}

.utility-button.is-success {
  border-color: rgba(51, 255, 141, 0.44);
  color: #b8ffd3;
}

.utility-button.is-warning {
  border-color: rgba(255, 78, 112, 0.44);
  color: #ffbac8;
}

.schedule-builder-form {
  gap: 1rem;
}

.schedule-event-picker {
  max-width: 420px;
}

.schedule-lines {
  display: grid;
  gap: 0.65rem;
}

.schedule-line {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(140px, 1.2fr) minmax(130px, 0.9fr) minmax(110px, 0.75fr) minmax(110px, 0.75fr) auto;
  gap: 0.65rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.schedule-line .button {
  min-height: 44px;
}

.game-stats-form {
  gap: 1.2rem;
}

.compact-heading {
  margin-top: 0.25rem;
}

.game-total-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.75rem;
}

.stat-entry-scroll {
  display: grid;
  gap: 0.7rem;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.game-stat-stack {
  display: grid;
  gap: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.team-stat-section {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background: rgba(1, 8, 16, 0.42);
}

.game-stat-divider {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 198, 255, 0.08), rgba(0, 198, 255, 0.9), rgba(255, 78, 112, 0.7), rgba(0, 198, 255, 0.08));
  box-shadow: 0 0 26px rgba(0, 198, 255, 0.18);
}

.goalie-row-block {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-entry-row {
  display: grid;
  grid-template-columns: 280px 112px;
  grid-auto-columns: 84px;
  grid-auto-flow: column;
  gap: 0.4rem;
  min-width: max-content;
  padding: 0.55rem;
  border: 1px solid rgba(88, 166, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 13, 27, 0.5);
}

.stat-entry-row label {
  min-width: 0;
}

.stat-entry-row label span {
  display: block;
  text-align: center;
}

.stat-entry-row label:first-child {
  min-width: 0;
}

.stat-entry-row label:first-child select,
.stat-entry-row label:first-child input {
  min-width: 0;
  text-align: left;
}

.stat-entry-row label:nth-child(2) {
  min-width: 0;
}

.stat-entry-row label:nth-child(2) select,
.stat-entry-row label:nth-child(2) input {
  min-width: 0;
}

.stat-entry-field-player {
  width: 280px;
}

.stat-entry-field-position {
  width: 112px;
}

.stat-entry-field:not(.stat-entry-field-player):not(.stat-entry-field-position) {
  width: 84px;
}

.stat-entry-row .button {
  align-self: end;
  min-height: 44px;
}

.stat-entry-row select,
.stat-entry-row input {
  min-height: 38px;
  padding-inline: 0.5rem;
  text-align: center;
}

.stat-entry-row input[readonly] {
  background: rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.14);
  border-color: rgba(0, 198, 255, 0.28);
  color: #ffffff;
}

.stat-entry-row.position-row-lw {
  background: linear-gradient(90deg, rgba(42, 216, 114, 0.2), rgba(4, 13, 27, 0.5) 58%);
  border-color: rgba(42, 216, 114, 0.36);
}

.stat-entry-row.position-row-c {
  background: linear-gradient(90deg, rgba(255, 63, 95, 0.2), rgba(4, 13, 27, 0.5) 58%);
  border-color: rgba(255, 63, 95, 0.36);
}

.stat-entry-row.position-row-rw {
  background: linear-gradient(90deg, rgba(45, 150, 255, 0.2), rgba(4, 13, 27, 0.5) 58%);
  border-color: rgba(45, 150, 255, 0.36);
}

.stat-entry-row.position-row-ld {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.2), rgba(4, 13, 27, 0.5) 58%);
  border-color: rgba(0, 229, 255, 0.36);
}

.stat-entry-row.position-row-rd {
  background: linear-gradient(90deg, rgba(255, 211, 67, 0.22), rgba(4, 13, 27, 0.5) 58%);
  border-color: rgba(255, 211, 67, 0.42);
}

.stat-entry-row.position-row-g {
  background: linear-gradient(90deg, rgba(159, 86, 255, 0.24), rgba(4, 13, 27, 0.5) 58%);
  border-color: rgba(159, 86, 255, 0.42);
}

/* Position-colored optgroup headers in player select dropdowns */
.stat-entry-row select optgroup[label="LW"] { background-color: #0a1f12; color: #2ad872; }
.stat-entry-row select optgroup[label="C"]  { background-color: #200d12; color: #ff3f5f; }
.stat-entry-row select optgroup[label="RW"] { background-color: #0d1628; color: #2d96ff; }
.stat-entry-row select optgroup[label="LD"] { background-color: #051e24; color: #00e5ff; }
.stat-entry-row select optgroup[label="RD"] { background-color: #221b05; color: #ffd343; }
.stat-entry-row select optgroup[label="G"]  { background-color: #140d22; color: #9f56ff; }
.stat-entry-row select optgroup[label="Other"] { background-color: #111827; color: #94a3b8; }

/* Hidden auto-computed columns — P and SOG not shown in entry UI */
.stat-entry-field-P,
.stat-entry-field-SOG { display: none; }

.brand-mark {
  width: 116px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.2vw, 2.1rem);
  color: #d9e7f7;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 1.1rem 0;
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 50%;
  z-index: 20;
  min-width: 172px;
  padding: 0.45rem;
  border: 1px solid rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.42);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 207, 235, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.4rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-nav .nav-dropdown-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  color: #d9e7f7;
  white-space: nowrap;
}

.site-nav .nav-dropdown-menu a:hover,
.site-nav .nav-dropdown-menu a:focus {
  background: rgba(0, 207, 235, 0.12);
  color: white;
}

.nav-subdropdown {
  position: relative;
}

.nav-subdropdown-menu {
  position: absolute;
  top: 0;
  left: calc(100% + 0.3rem);
  z-index: 25;
  min-width: 210px;
  max-height: 320px;
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.42);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 207, 235, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-subdropdown:hover .nav-subdropdown-menu,
.nav-subdropdown:focus-within .nav-subdropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  height: 2px;
  background: var(--blue-soft);
  box-shadow: 0 0 16px var(--blue-soft);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-link,
.signin-link {
  text-decoration: none;
}

.admin-link {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.7);
  border-radius: 6px;
  background: rgba(3, 14, 33, 0.8);
}

.signin-link {
  color: #d9d0ff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.55rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.page-shell {
  width: min(1500px, calc(100% - 1rem));
  margin: 0 auto;
  border-inline: 1px solid var(--line);
  background: rgba(1, 5, 11, 0.38);
}

.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(3.2rem, 7vw, 5.5rem) 1rem 2.4rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(4, 9, 17, 0.08), rgba(4, 9, 17, 0.96)),
    radial-gradient(ellipse at 50% 18%, rgba(23, 165, 255, 0.26), transparent 26rem),
    radial-gradient(ellipse at 20% 20%, rgba(255, 48, 72, 0.22), transparent 21rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.12) 18.1%, transparent 18.7%),
    linear-gradient(245deg, transparent 0 28%, rgba(23, 165, 255, 0.18) 28.1%, transparent 29%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 82px);
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 46%;
  border: 1px solid rgba(120, 190, 255, 0.2);
  border-bottom: 0;
  transform: perspective(600px) rotateX(60deg);
  transform-origin: bottom;
  background:
    linear-gradient(90deg, transparent 0 49.6%, rgba(255, 48, 72, 0.38) 49.6% 50.4%, transparent 50.4%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  text-align: center;
}

.hero-logo {
  width: min(480px, 82vw);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.18)) drop-shadow(0 22px 38px rgba(0, 0, 0, 0.78));
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  text-shadow: 0 0 24px rgba(23, 165, 255, 0.28);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.25rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.28rem;
}

.hero-copy {
  max-width: 620px;
  margin: 0.75rem auto 0;
  color: #d7e4f3;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(180deg, #1178ff, #0754df);
  color: white;
  box-shadow: 0 0 22px rgba(9, 109, 255, 0.56);
}

.button.secondary {
  border-color: rgba(191, 104, 255, 0.7);
  background: linear-gradient(180deg, rgba(137, 40, 255, 0.88), rgba(77, 26, 151, 0.9));
  color: white;
  box-shadow: 0 0 20px rgba(137, 40, 255, 0.36);
}

.button.utility-button {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-color: rgba(88, 166, 255, 0.7);
  background: rgba(3, 14, 33, 0.8);
  color: white;
  font-size: 0.78rem;
  box-shadow: none;
}

.button.utility-button:hover {
  box-shadow: 0 0 20px rgba(9, 109, 255, 0.28);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.92);
}

.stat-strip article {
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-strip article:last-child {
  border-right: 0;
}

.stat-strip strong {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 2.4rem);
  line-height: 0.95;
}

.countdown strong {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.9;
}

.stat-strip span,
.countdown span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-ticker {
  position: relative;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  width: min(1500px, calc(100% - 1rem));
  margin: 0 auto;
  min-height: 82px;
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(23, 165, 255, 0.16), rgba(128, 39, 255, 0.09), transparent),
    rgba(2, 7, 13, 0.96);
  overflow: visible;
}


.news-ticker .ticker-label {
  display: none;
}

.ticker-label {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 0.86rem;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.95), rgba(0, 88, 210, 0.9));
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 12px 0 28px rgba(0, 198, 255, 0.16);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ticker-toggle {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 36px;
  padding: 0 0.5rem;
  border: 0;
  border-right: 1px solid rgba(88, 166, 255, 0.24);
  background: rgba(4, 11, 21, 0.82);
  color: #dce9f7;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.ticker-toggle:hover,
.ticker-toggle:focus-visible,
.ticker-toggle[aria-pressed="true"] {
  background: rgba(0, 198, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 0 18px rgba(0, 198, 255, 0.14);
}

.ticker-window {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.ticker-window.is-dragging {
  cursor: grabbing;
}

.ticker-filter {
  position: relative;
  z-index: 240;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(88, 166, 255, 0.24);
  background: rgba(4, 11, 21, 0.84);
}

.ticker-filter-toggle {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 42px;
  padding: 0 0.62rem;
  border: 0;
  background: transparent;
  color: #dce9f7;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.ticker-filter-toggle:hover,
.ticker-filter-toggle:focus-visible,
.ticker-filter-toggle[aria-expanded="true"] {
  background: rgba(0, 198, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 0 18px rgba(0, 198, 255, 0.14);
}

.ticker-filter-panel {
  position: absolute;
  right: 0.45rem;
  top: calc(100% + 0.48rem);
  z-index: 300;
  min-width: 220px;
  padding: 0.72rem;
  border: 1px solid rgba(76, 163, 220, 0.54);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(10, 20, 34, 0.98), rgba(2, 7, 13, 0.98)),
    rgba(2, 7, 13, 0.98);
  box-shadow:
    0 0 0 1px rgba(100, 195, 255, 0.1) inset,
    0 18px 36px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.ticker-filter-panel[hidden] {
  display: none;
}

.ticker-filter-panel label {
  display: block;
  margin-bottom: 0.42rem;
  color: rgba(220, 233, 247, 0.72);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ticker-filter-panel select {
  width: 100%;
  border: 1px solid rgba(88, 166, 255, 0.42);
  border-radius: 10px;
  background: rgba(1, 8, 17, 0.96);
  color: #ffffff;
  padding: 0.55rem 0.62rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  outline: none;
}

.ticker-filter-panel select:focus {
  border-color: rgba(0, 198, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.12);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.78rem;
  min-height: 82px;
  padding-left: 0.88rem;
  will-change: transform;
}

.ticker-track > span,
.ticker-loading {
  position: relative;
  color: #dce9f7;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-game-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(175px, 1fr) minmax(76px, auto);
  align-items: center;
  width: clamp(285px, 25vw, 355px);
  min-height: 70px;
  padding: 0.54rem 0.6rem 0.54rem 0.68rem;
  border: 1px solid rgba(76, 163, 220, 0.68);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 22%, rgba(88, 166, 255, 0.16), transparent 35%),
    linear-gradient(100deg, rgba(30, 38, 48, 0.95), rgba(2, 7, 13, 0.97) 58%, rgba(14, 21, 31, 0.93));
  box-shadow:
    0 0 0 1px rgba(100, 195, 255, 0.12) inset,
    0 0 18px rgba(35, 144, 220, 0.18),
    0 12px 22px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.ticker-game-card.is-final {
  grid-template-columns: 38px minmax(220px, 1fr);
  width: clamp(305px, 27vw, 390px);
  padding-left: 0;
  border-color: rgba(178, 194, 210, 0.62);
}

.ticker-team-stack {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.ticker-team-row {
  display: grid;
  grid-template-columns: 38px minmax(58px, auto) minmax(46px, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.ticker-game-card.is-final .ticker-team-row {
  grid-template-columns: 38px minmax(56px, auto) minmax(46px, 1fr) minmax(28px, auto);
}

.ticker-team-logo {
  width: 38px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

.ticker-team-abbr {
  color: #ffffff;
  font-size: clamp(1.22rem, 1.7vw, 1.82rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.ticker-team-meta {
  justify-self: end;
  color: #c5ceda;
  font-size: clamp(0.72rem, 0.92vw, 0.98rem);
  font-weight: 900;
  line-height: 1;
}

.ticker-team-score {
  justify-self: end;
  min-width: 1.2em;
  color: #f8dc66;
  font-size: clamp(1.55rem, 2.25vw, 2.28rem);
  font-weight: 950;
  line-height: 0.95;
  text-align: right;
  text-shadow: 0 0 14px rgba(255, 214, 80, 0.24);
}

.ticker-team-row.is-loser .ticker-team-abbr,
.ticker-team-row.is-loser .ticker-team-score {
  color: rgba(210, 218, 230, 0.78);
  font-size: clamp(1.05rem, 1.45vw, 1.55rem);
  text-shadow: none;
}

.ticker-team-row.is-loser .ticker-team-meta {
  color: rgba(197, 206, 218, 0.74);
}

.ticker-game-status {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.2rem;
  height: 100%;
  padding-left: 0.68rem;
  margin-left: 0.62rem;
  border-left: 1px solid rgba(118, 130, 148, 0.24);
  text-align: center;
  white-space: nowrap;
}

.ticker-game-state {
  color: #ffffff;
  font-size: clamp(0.86rem, 1.22vw, 1.24rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
}

.ticker-game-card.is-final .ticker-game-status {
  padding: 0;
  margin: 0;
  border-left: 0;
  border-right: 1px solid rgba(216, 223, 231, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.ticker-game-card.is-final .ticker-game-state {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e7edf5;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.ticker-game-date {
  color: rgba(220, 233, 247, 0.72);
  font-size: clamp(0.58rem, 0.76vw, 0.72rem);
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.ticker-game-code {
  color: #68c9ff;
  font-size: clamp(0.62rem, 0.9vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
}

@media (max-width: 780px) {
  .news-ticker {
    width: 100%;
    min-height: 78px;
  }

  .ticker-label {
    padding: 0 0.65rem;
    font-size: 0.56rem;
  }

  .ticker-track {
    min-height: 78px;
    gap: 0.62rem;
    padding-left: 0.7rem;
  }

  .ticker-game-card,
  .ticker-game-card.is-final {
    width: 282px;
    min-height: 66px;
    border-radius: 16px;
    grid-template-columns: minmax(166px, 1fr) minmax(68px, auto);
    padding: 0.48rem 0.52rem 0.48rem 0.58rem;
  }

  .ticker-game-card.is-final {
    grid-template-columns: 34px minmax(210px, 1fr);
    padding-left: 0;
  }

  .ticker-team-row,
  .ticker-game-card.is-final .ticker-team-row {
    grid-template-columns: 34px minmax(50px, auto) minmax(40px, 1fr);
    gap: 0.34rem;
  }

  .ticker-game-card.is-final .ticker-team-row {
    grid-template-columns: 34px minmax(50px, auto) minmax(40px, 1fr) minmax(24px, auto);
  }

  .ticker-team-logo {
    width: 34px;
    height: 27px;
  }

  .ticker-filter-toggle {
    min-width: 38px;
    padding: 0 0.5rem;
    font-size: 0.92rem;
  }

  .ticker-filter-panel {
    right: 0.3rem;
    min-width: min(220px, calc(100vw - 1.5rem));
  }
}

.upcoming-events {
  margin: 1rem;
  overflow: hidden;
}

.event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-heading .eyebrow {
  margin: 0;
}

.event-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-carousel {
  position: relative;
  aspect-ratio: 16 / 8;
  margin: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(2, 7, 14, 0.82);
}

.event-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.012);
  transition:
    opacity 500ms ease,
    transform 700ms ease;
}

.event-carousel img.is-active {
  opacity: 1;
  transform: scale(1);
}

.event-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 0 0.65rem;
}

.event-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.event-dots button.is-active {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(25, 215, 243, 0.64);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.panel,
.format-card,
.checks p {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.07);
}

.panel {
  padding: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.panel-heading h2 {
  font-size: 1.24rem;
}

.panel-heading a,
.panel-heading span {
  color: #b9c8d7;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.stat-type-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-type-toggle button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-transform: inherit;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.stat-type-toggle button:hover,
.stat-type-toggle button.is-active {
  color: white;
  text-shadow: 0 0 14px rgba(23, 165, 255, 0.34);
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.player-card {
  --card-glow: rgba(23, 165, 255, 0.28);
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 0.85rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0.86) 100%),
    radial-gradient(circle at 62% 26%, rgba(255, 255, 255, 0.18), transparent 5.5rem),
    linear-gradient(140deg, var(--card-glow), rgba(3, 7, 13, 0.96));
  color: var(--blue-soft);
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 24% 18% auto auto;
  width: 90px;
  height: 120px;
  border-radius: 48% 48% 8px 8px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.82) 0 10px, transparent 11px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.2));
  opacity: 0.42;
  transform: skewX(-8deg);
}

.player-card.red {
  --card-glow: rgba(255, 48, 72, 0.3);
  color: var(--red);
}

.player-card.green {
  --card-glow: rgba(38, 214, 124, 0.28);
  color: var(--green);
}

.player-card.blue {
  --card-glow: rgba(23, 165, 255, 0.3);
  color: var(--blue-soft);
}

.player-card.teal {
  --card-glow: rgba(21, 216, 255, 0.28);
  color: var(--cyan);
}

.rating {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.position {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: currentColor;
  color: #02050a;
  font-size: 0.72rem;
  font-weight: 900;
}

.player-card h3,
.player-card p {
  position: relative;
  z-index: 1;
}

.player-card p {
  margin: 0.25rem 0 0;
  color: #dce9f7;
  font-weight: 900;
}

.score-list {
  display: grid;
  gap: 0.55rem;
}

.score-list p {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
}

.score-list strong {
  color: white;
}

.warrior-panel {
  background:
    linear-gradient(115deg, rgba(255, 48, 72, 0.12), transparent 42%),
    var(--panel);
}

.event-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.event-cards div {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.26);
}

.event-cards strong {
  display: block;
  margin-top: 0.5rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-cards p,
.warrior-panel > p {
  color: var(--muted);
  line-height: 1.55;
}

.event-status {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.champion-panel {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.champion-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -42% 24%;
  height: 170px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.16;
  filter: blur(28px);
}

.champion-panel.red {
  color: var(--red);
}

.champion-panel.blue {
  color: var(--blue-soft);
}

.champion-season {
  position: relative;
  z-index: 1;
  margin: auto 0 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.champion-panel > strong {
  position: relative;
  z-index: 1;
  color: white;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.champion-logo {
  position: relative;
  z-index: 1;
  width: min(210px, 48vw);
  align-self: center;
  margin-top: auto;
  filter: drop-shadow(0 0 20px rgba(23, 165, 255, 0.3));
}

.champion-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.champion-lockup strong {
  color: white;
  font-size: clamp(1.65rem, 3vw, 2.9rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.champion-lockup img {
  width: min(210px, 48vw);
  filter: drop-shadow(0 0 18px rgba(239, 200, 74, 0.34));
}

.event-status.open {
  background: rgba(38, 214, 124, 0.18);
  color: #6cffaa;
}

.event-status.filling {
  background: rgba(239, 200, 74, 0.18);
  color: #ffe06a;
}

.content-page {
  padding: 1rem;
}

.placeholder-panel {
  min-height: 280px;
}

.standings-placeholder-grid,
.media-placeholder-grid,
.schedule-placeholder-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.standings-placeholder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-placeholder-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.media-placeholder-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-placeholder-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.standings-placeholder-grid article,
.media-placeholder-grid article,
.schedule-placeholder-list article {
  min-height: 150px;
  padding: 1.2rem 1.1rem 1.1rem;
  border: 1px solid rgba(140,155,180,.18);
  border-top: 2px solid rgba(180,195,220,.35);
  border-radius: 7px;
  background:
    linear-gradient(160deg, rgba(36,39,48,.98), rgba(16,18,23,.99));
  box-shadow:
    0 8px 32px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.07);
  transition: border-color .22s, box-shadow .22s, transform .22s;
}

.media-placeholder-grid article:hover {
  border-color: rgba(160,175,205,.35);
  border-top-color: rgba(200,215,240,.55);
  box-shadow:
    0 14px 44px rgba(0,0,0,.55),
    0 0 20px rgba(140,160,210,.08),
    inset 0 1px 0 rgba(255,255,255,.1);
  transform: translateY(-2px);
}

.standings-placeholder-grid strong,
.media-placeholder-grid strong,
.schedule-placeholder-list strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #dce4ef;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.standings-placeholder-grid p,
.media-placeholder-grid p,
.schedule-placeholder-list p {
  margin: 0;
  color: #5a6475;
  line-height: 1.6;
  font-size: .85rem;
}

/* Media Library — League Streamer card */
.media-streamer-article {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.media-streamer-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.media-streamer-logo {
  display: block;
  width: 260px;
  flex-shrink: 0;
  border-radius: 4px;
}
.media-streamer-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}
.media-streamer-name {
  display: inline-block;
  color: #dce4ef;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #7b2fff, #c084fc, #7b2fff) 1;
}
.media-streamer-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0.75rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(to right, rgba(123,47,255,.5), rgba(192,132,252,.3), rgba(123,47,255,.1)) 1;
  background: rgba(123,47,255,.06);
  border-radius: 0 0 4px 4px;
}
.media-streamer-schedule-label {
  color: #c084fc;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.media-streamer-schedule span:not(.media-streamer-schedule-label) {
  color: #a8b4c4;
  font-size: 1.425rem;
  line-height: 1.5;
}
.media-streamer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.media-streamer-social-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8a95a5;
  font-size: 1.19rem;
  text-decoration: none;
  transition: color .18s;
}
a.media-streamer-social-item:hover {
  color: #9146ff;
}
.media-social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: .7;
}
.media-social-icon--twitch {
  fill: #9146ff;
  opacity: 1;
}
.media-social-icon--youtube {
  fill: #ff0000;
  opacity: 1;
}

/* Media Library — League Broadcasts card */
.media-broadcast-article {
  display: flex;
  flex-direction: column;
}
.media-broadcast-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin: 0.75rem 0 0.6rem;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.media-broadcast-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.media-broadcast-link {
  display: inline-block;
  margin-top: 0.1rem;
  color: #46beff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s;
}
.media-broadcast-link:hover {
  color: #8cd8ff;
}

.standings-panel {
  display: grid;
  gap: 1rem;
}

.standings-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.standings-toolbar label {
  display: grid;
  gap: 0.35rem;
  width: min(360px, 100%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.standings-toolbar select {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255, 78, 112, 0.7);
  border-radius: 8px;
  background: rgba(4, 13, 27, 0.86);
  color: var(--text);
  font: inherit;
  padding: 0 0.85rem;
  outline: 0;
}

.standings-toolbar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.16);
}

.standings-event-section {
  display: grid;
  gap: 0.8rem;
}

.standings-event-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.standings-event-heading h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  text-transform: uppercase;
}

.standings-event-heading > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.standings-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 8px;
  background: rgba(2, 8, 16, 0.72);
}

.standings-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.standings-table th,
.standings-table td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  white-space: nowrap;
}

.standings-table th {
  background: rgba(64, 78, 96, 0.86);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standings-table th:first-child,
.standings-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 320px;
  background: rgba(6, 15, 28, 0.96);
  text-align: left;
}

.standings-table th:first-child {
  z-index: 2;
  background: rgba(10, 18, 31, 0.98);
  text-align: center;
}

.standings-table tbody tr {
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.standings-table tbody tr:hover,
.standings-table tbody tr:focus-visible {
  background: rgba(0, 198, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--accent);
  outline: 0;
}

.standings-table tbody tr:hover td:first-child,
.standings-table tbody tr:focus-visible td:first-child {
  background:
    linear-gradient(90deg, rgba(0, 198, 255, 0.12), rgba(6, 15, 28, 0.96)),
    rgba(6, 15, 28, 0.96);
}

.standings-team-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.standings-rank {
  width: 1.4rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.standings-team-logo img,
.standings-team-fallback {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.42);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.standings-team-logo img {
  object-fit: contain;
  padding: 0.2rem;
}

.standings-team-fallback {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.standings-team-link strong,
.standings-team-link small {
  display: block;
}

.standings-team-link strong {
  color: #ffffff;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.standings-team-link small {
  margin-top: 0.15rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standings-table .is-positive {
  color: var(--green);
  font-weight: 900;
}

.standings-table .is-negative {
  color: #ff5d72;
  font-weight: 900;
}

.teams-directory-panel {
  min-height: 280px;
}

.team-hero {
  min-height: 250px;
}

.team-hero h1 {
  font-size: clamp(1rem, 2vw, 1.6rem);
}

.team-hero > [data-team-hero-content] h1 {
  margin-right: auto;
}

.team-hero-brand {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.team-hero > [data-team-hero-content],
.team-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.team-hero > [data-team-hero-content] {
  max-width: none;
  width: 100%;
}

.team-hero-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(96px, 12vw, 150px);
  height: clamp(96px, 12vw, 150px);
  border: 1px solid rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.42);
  border-radius: 10px;
  background:
    radial-gradient(circle at center, rgba(0, 198, 255, 0.12), transparent 66%),
    rgba(0, 0, 0, 0.28);
}

.team-hero-logo-image,
.team-hero-logo .team-logo-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.65rem;
}

.team-hero-main {
  display: grid;
  flex: 0 0 auto;
  gap: 0.8rem;
  min-width: min(420px, 34%);
}

.team-hero-side {
  display: grid;
  flex: 1 1 620px;
  gap: 0.65rem;
  justify-items: stretch;
  min-width: min(100%, 480px);
  max-width: 620px;
  margin-left: auto;
}

.team-hero-event-control {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.team-hero-side .team-upcoming-board {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
}

.team-upcoming-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.team-upcoming-head strong {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-upcoming-head button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.team-upcoming-head button:disabled {
  cursor: default;
  opacity: 0.32;
}

.team-upcoming-board {
  flex: 0 1 620px;
  width: min(620px, 52vw);
  min-width: min(100%, 480px);
  max-width: 620px;
  margin-left: auto;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(122, 40, 255, 0.08)),
    rgba(8, 14, 26, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.team-upcoming-head {
  justify-content: space-between;
  padding: 0.75rem 0.9rem 0.35rem;
}

.team-upcoming-table {
  display: grid;
}

.team-upcoming-row {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1.3fr 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-upcoming-row-head {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.team-upcoming-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-upcoming-row strong {
  color: #ffffff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.team-upcoming-empty {
  padding: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.teams-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.team-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding: 0.35rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.team-filter-tabs[hidden] {
  display: none;
}

.team-filter-tabs button {
  min-height: 36px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.team-filter-tabs button:hover,
.team-filter-tabs button:focus-visible,
.team-filter-tabs button.is-active {
  background: rgba(0, 198, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.team-event-select-wrap {
  margin-top: 0.8rem;
}

.team-event-select-wrap[hidden] {
  display: none;
}

.team-event-select-wrap label {
  display: grid;
  gap: 0.35rem;
  width: min(360px, 100%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-event-select-wrap select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(255, 78, 112, 0.7);
  border-radius: 8px;
  background: rgba(4, 13, 27, 0.86);
  color: var(--text);
  font: inherit;
  padding: 0 0.85rem;
  outline: 0;
}

.team-event-select-wrap select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.16);
}

.team-directory-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(var(--directory-team-primary-rgb, 88, 166, 255), 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.075), rgba(var(--directory-team-secondary-rgb, 78, 123, 255), 0.065)),
    radial-gradient(circle at 15% 18%, rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.22), transparent 32%),
    radial-gradient(circle at 88% 24%, rgba(var(--directory-team-secondary-rgb, 78, 123, 255), 0.18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(var(--directory-team-tertiary-rgb, 122, 40, 255), 0.10), transparent 40%),
    linear-gradient(135deg, rgba(5, 17, 34, 0.98), rgba(2, 6, 18, 0.96));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.15),
    0 0 28px rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.07);
}

.team-directory-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 86px;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.team-directory-toggle:hover,
.team-directory-toggle:focus-visible {
  background: rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.09);
  outline: none;
}

.team-directory-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.team-directory-header > span:last-child {
  min-width: 0;
}

.team-directory-logo img,
.team-logo-fallback {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(var(--directory-team-primary-rgb, 88, 166, 255), 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.12), transparent 44%),
    radial-gradient(circle at 50% 80%, rgba(var(--directory-team-secondary-rgb, 78, 123, 255), 0.10), transparent 54%),
    rgba(2, 10, 22, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.055),
    0 0 18px rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.10);
}

.team-directory-logo img {
  object-fit: contain;
  padding: 0.25rem;
}

.team-logo-fallback {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
}

.team-directory-header strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.team-directory-header span {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.team-directory-roster {
  display: none;
}

.team-roster-list {
  display: grid;
  gap: 0.5rem;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-roster-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.team-roster-list a {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.team-roster-list a:hover,
.team-roster-list a:focus-visible {
  color: var(--accent);
  transform: translateX(2px);
}

.team-roster-list span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-roster-list strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-detail-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.8rem;
  padding: 0.35rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.team-detail-tabs[hidden],
.team-detail-panel[hidden] {
  display: none;
}

.team-detail-tabs button {
  min-height: 36px;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.team-detail-tabs button:hover,
.team-detail-tabs button:focus-visible,
.team-detail-tabs button.is-active {
  background: rgba(0, 198, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.team-detail-panels {
  display: grid;
}

.team-detail-roster-list {
  max-height: none;
}

.team-position-stack {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

.team-position-badge {
  flex: 0 0 auto;
  min-width: 46px;
  justify-content: center;
}

.team-roster-count {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.team-stats-section {
  display: grid;
  gap: 0.8rem;
}

.team-stats-section + .team-stats-section {
  margin-top: 1.1rem;
}

.team-stats-table-wrap {
  max-height: 460px;
}

.team-stats-table {
  min-width: 1680px;
}

.team-stats-table .player-card-link {
  color: #ffffff;
  text-decoration: none;
}

.team-stats-table .player-card-link:hover,
.team-stats-table .player-card-link:focus-visible {
  color: var(--accent);
}

.teams-empty-state {
  grid-column: 1 / -1;
}

.live-schedule-list {
  display: grid;
  gap: 1rem;
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.schedule-toolbar label {
  display: grid;
  gap: 0.35rem;
  width: min(360px, 100%);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-toolbar select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 78, 112, 0.7);
  border-radius: 8px;
  background: rgba(4, 13, 27, 0.86);
  color: var(--text);
  font: inherit;
  padding: 0 0.85rem;
  outline: 0;
}

.schedule-toolbar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.16);
}

.schedule-event-box {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.07), rgba(122, 40, 255, 0.06)),
    rgba(0, 0, 0, 0.18);
}

.schedule-event-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-event-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

.schedule-event-heading > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-event-games {
  display: grid;
  gap: 0.85rem;
}

.schedule-game-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.08), transparent 44%),
    rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.schedule-game-card:hover,
.schedule-game-card:focus-visible {
  border-color: rgba(0, 198, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.12), transparent 44%),
    rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 28px rgba(0, 198, 255, 0.12);
  outline: 0;
}

.schedule-game-meta,
.schedule-matchup,
.schedule-team {
  display: flex;
  align-items: center;
}

.schedule-game-meta {
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-game-meta strong {
  color: var(--cyan);
}

.schedule-matchup {
  justify-content: space-between;
  gap: 1rem;
}

.schedule-team {
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
}

.schedule-team:last-child {
  justify-content: flex-end;
  text-align: right;
}

.schedule-team img,
.schedule-team-fallback {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(88, 166, 255, 0.26);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.schedule-team img {
  object-fit: contain;
  padding: 0.25rem;
}

.schedule-team-fallback {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
}

.schedule-team strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
}

.schedule-team span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-versus {
  flex: 0 0 auto;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
}

.schedule-scoreboard {
  display: grid;
  grid-template-columns: minmax(44px, auto) auto minmax(44px, auto);
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-scoreboard strong {
  color: #ffffff;
  display: grid;
  gap: 0.1rem;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.schedule-scoreboard strong small {
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.schedule-scoreboard .is-winner {
  color: #ffffff;
  font-size: 1.2rem;
}

.modal-open {
  overflow: hidden;
}

.schedule-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.schedule-modal[hidden] {
  display: none;
}

.schedule-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.schedule-modal-window {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1px solid rgba(88, 166, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(255, 48, 72, 0.08)),
    rgba(5, 12, 22, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

.schedule-modal-close {
  position: sticky;
  top: 0.75rem;
  z-index: 3;
  float: right;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0.75rem 0.75rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.schedule-modal-content {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}

.schedule-modal-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  text-transform: uppercase;
}

.schedule-modal-heading span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-modal-tabs {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.schedule-modal-tabs button {
  min-height: 36px;
  max-width: min(240px, 100%);
  padding: 0 0.9rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: normal;
  text-transform: uppercase;
}

.schedule-modal-tabs button:hover,
.schedule-modal-tabs button:focus-visible,
.schedule-modal-tabs button.is-active {
  background: rgba(0, 198, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.box-score-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.box-score-final div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.box-score-final div:last-child {
  justify-content: flex-end;
}

.box-score-final img,
.box-score-final .schedule-team-fallback {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.42);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  object-fit: contain;
  padding: 0.2rem;
}

.box-score-final strong {
  color: #ffffff;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.box-score-final span {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.box-score-final p {
  margin: 0;
  color: #ffffff;
  display: grid;
  gap: 0.2rem;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.box-score-final p small {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.box-score-stats {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.box-score-stat {
  display: grid;
  grid-template-columns: minmax(68px, 0.35fr) minmax(130px, 1fr) minmax(68px, 0.35fr);
  gap: 0.75rem;
  align-items: center;
}

.box-score-stat > strong {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.box-score-stat > strong:last-of-type {
  text-align: right;
}

.box-score-stat > span {
  color: #ffffff;
  font-weight: 900;
  text-align: center;
}

.box-score-bars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  height: 8px;
}

.box-score-bars span {
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--team-bar-primary, #ffffff),
    var(--team-bar-secondary, var(--team-bar-primary, #ffffff)) 62%,
    var(--team-bar-tertiary, var(--team-bar-secondary, #ffffff))
  );
}

.box-score-bars span:last-child {
  justify-self: end;
}

.schedule-player-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.schedule-team-stat-section {
  display: grid;
  gap: 0.7rem;
}

.schedule-team-stat-section + .schedule-team-stat-section {
  margin-top: 1.2rem;
}

.schedule-team-stat-section h3 {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-player-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.schedule-player-table th,
.schedule-player-table td {
  padding: 0.58rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  white-space: nowrap;
}

.schedule-player-table th:first-child,
.schedule-player-table td:first-child {
  text-align: left;
}

.schedule-player-table th {
  background: rgba(64, 78, 96, 0.82);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #dce9f7;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
  text-transform: inherit;
}

.sort-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0;
}

.sort-button.is-active {
  color: white;
}

.sort-button.is-active[data-direction="asc"]::after {
  border-bottom: 6px solid var(--cyan);
  opacity: 1;
}

.sort-button.is-active[data-direction="desc"]::after {
  border-top: 6px solid var(--cyan);
  opacity: 1;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(154, 204, 255, 0.12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.lookup-section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(154, 204, 255, 0.12);
}

.lookup-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0.65rem;
  border: 1px solid rgba(88, 166, 255, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(4, 10, 18, 0.86);
  box-shadow: var(--shadow), inset 0 0 28px rgba(9, 109, 255, 0.1);
}

.lookup-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  outline: 0;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font: inherit;
  padding: 0 1rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.lookup-form input:focus {
  border-color: rgba(23, 165, 255, 0.75);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 3px rgba(23, 165, 255, 0.16);
}

.lookup-form button {
  min-width: 130px;
  gap: 0.55rem;
}

.lookup-form.is-loading button {
  pointer-events: none;
  opacity: 0.82;
}

.spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: white;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

.lookup-form.is-loading .spinner {
  display: inline-block;
}

.lookup-status {
  min-height: 28px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.lookup-status.is-error {
  color: #ff8795;
}

.lookup-status.is-success {
  color: #6cffaa;
}

.lookup-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.registration-card {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid rgba(88, 166, 255, 0.38);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(9, 109, 255, 0.14), rgba(137, 40, 255, 0.08)),
    var(--panel);
  box-shadow: var(--shadow);
  animation: fadeInUp 260ms ease both;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.registration-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 165, 255, 0.7);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 24px rgba(9, 109, 255, 0.18);
}

.registration-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 45%;
  height: 160px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0.13;
  filter: blur(30px);
}

.registration-header,
.detail-grid {
  position: relative;
  z-index: 1;
}

.registration-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.registration-header h3 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.registration-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  padding: 0.25rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}

.position-lw {
  color: var(--green);
}

.position-rw {
  color: var(--blue-soft);
}

.position-c {
  color: var(--red);
}

.position-ld {
  color: var(--cyan);
}

.position-rd {
  color: var(--gold);
}

.position-g {
  color: var(--purple);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.detail-item {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.detail-item.full {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-value {
  color: #eef6ff;
  font-weight: 750;
}

.availability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.availability-badge {
  display: inline-flex;
  padding: 0.25rem 0.48rem;
  border: 1px solid rgba(38, 214, 124, 0.42);
  border-radius: 999px;
  background: rgba(38, 214, 124, 0.12);
  color: #8bffbf;
  font-size: 0.78rem;
  font-weight: 800;
}

.empty-state {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 1.1rem;
  border: 1px solid rgba(239, 200, 74, 0.34);
  border-radius: 10px;
  background: rgba(239, 200, 74, 0.08);
  color: #ffe06a;
  font-weight: 800;
  text-align: center;
  animation: fadeInUp 220ms ease both;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.format-card {
  min-height: 230px;
  padding: 1.1rem;
}

.card-number {
  color: var(--red);
  font-weight: 900;
}

.format-card h3 {
  margin-top: 0.8rem;
  font-size: 1.9rem;
}

.format-card p,
.schedule-list p,
.checks p {
  color: var(--muted);
  line-height: 1.6;
}

.schedule-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 1rem;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(9, 109, 255, 0.18), rgba(255, 48, 72, 0.1)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.schedule-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.schedule-list p {
  margin: 0;
}

.schedule-list strong {
  color: white;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 0.65rem;
}

.countdown div {
  display: grid;
  place-items: center;
  min-height: 106px;
  padding: 0.8rem;
  border: 1px solid rgba(88, 166, 255, 0.42);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 24px rgba(9, 109, 255, 0.13);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.75fr);
  gap: clamp(1rem, 4vw, 2.2rem);
  align-items: start;
}

.checks {
  display: grid;
  gap: 0.75rem;
}

.checks p {
  position: relative;
  margin: 0;
  padding: 0.95rem 0.95rem 0.95rem 2.8rem;
  font-weight: 900;
}

.checks p::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1500px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 1.2rem 1rem 1.5rem;
  color: var(--muted);
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 8, 15, 0.76);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 900;
}

.stats-hero {
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) clamp(1.1rem, 2.6vw, 1.8rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(9, 109, 255, 0.18), rgba(255, 48, 72, 0.1)),
    rgba(2, 7, 14, 0.72);
}

.stats-hero > div {
  max-width: 880px;
}

.stats-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}

.stats-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.player-card-hero {
  min-height: 46px;
  padding: 0;
  position: relative;
  z-index: 20;
}

.player-card-hero > div {
  display: none;
}

.stats-page {
  padding: 1rem;
  min-width: 0;
  overflow: hidden;
}

.records-page {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.records-tabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.65rem;
}

.champion-tabs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.champion-tabs button,
.records-tabs button {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.34);
  border-radius: 6px;
  background: rgba(3, 14, 33, 0.74);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.champion-tabs button:hover,
.champion-tabs button.is-active,
.records-tabs button:hover,
.records-tabs button.is-active {
  border-color: rgba(23, 165, 255, 0.82);
  background: rgba(9, 109, 255, 0.18);
  color: white;
}

.champion-tabs button:hover,
.records-tabs button:hover {
  transform: translateY(-2px);
}

.champions-gallery[hidden],
.records-panel[hidden] {
  display: none;
}

.records-panel {
  animation: fadeUp 220ms ease both;
}

.records-panel-heading {
  margin-bottom: 1rem;
}

.records-panel-heading h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.records-leader-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.records-leader-heading [data-scope-label] {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.leader-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.leader-card {
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(11, 24, 38, 0.94), rgba(4, 10, 18, 0.96)),
    rgba(2, 7, 14, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.leader-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 165, 255, 0.58);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.leader-card-heading {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem;
  border-bottom: 1px solid rgba(88, 166, 255, 0.15);
}

.leader-card-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(23, 165, 255, 0.44);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.leader-card-heading p {
  margin: 0 0 0.1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leader-card-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.leader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.95rem;
  padding: 0.9rem;
  border: 1px solid rgba(245, 198, 66, 0.56);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(245, 198, 66, 0.2), transparent 45%),
    rgba(245, 198, 66, 0.08);
  color: white;
  text-decoration: none;
}

.leader-top small {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leader-top strong {
  display: block;
  font-size: 1rem;
}

.leader-top b {
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
}

.leader-list {
  display: grid;
  gap: 0.35rem;
  margin: 0 0.95rem 0.95rem;
  padding: 0;
  list-style: none;
}

.leader-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(88, 166, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.leader-list a:hover {
  border-color: rgba(23, 165, 255, 0.46);
  background: rgba(9, 109, 255, 0.12);
  color: white;
}

.leader-list strong {
  color: var(--text);
  white-space: nowrap;
}

.leader-empty {
  margin: 0.95rem;
  padding: 1.1rem 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.champions-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.champion-banner {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 7, 14, 0.82);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.champion-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 165, 255, 0.58);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.champion-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
}

.champion-banner figcaption {
  padding: 0.75rem 0.85rem;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.stat-input-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.stat-input-panel h2 {
  font-size: 1.1rem;
}

.stat-input-panel p:not(.eyebrow) {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.stat-input-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.image-input-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-input-panel[hidden] {
  display: none;
}

.ai-import-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ai-import-review {
  grid-column: 1 / -1;
}

.ai-import-review[hidden] {
  display: none;
}

.stat-modal[hidden] {
  display: none;
}

.stat-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.stat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.stat-modal-window {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(860px, 92vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    #07101c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: 1rem;
}

.stat-modal-window.compact {
  width: min(760px, 100%);
}

.has-open-modal {
  overflow: hidden;
}

.manual-entry-form {
  display: grid;
  gap: 1rem;
}

.automated-entry-form {
  display: grid;
  gap: 1rem;
}

.automated-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.automated-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.manual-entry-meta {
  display: grid;
  grid-template-columns: minmax(220px, 420px);
  gap: 0.75rem;
  align-items: end;
}

.manual-player-field {
  display: grid;
  gap: 0.35rem;
}

.manual-player-field span,
.automated-line-grid span,
.manual-line-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-player-field input,
.manual-player-field select,
.automated-line-grid select,
.manual-line-grid input,
.manual-line-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  outline: 0;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 0.5rem 0.65rem;
}

.stats-field select,
.manual-player-field select,
.automated-line-grid select,
.manual-line-grid select,
.player-season-controls select,
.manual-stats-form select,
.mystats-form select {
  appearance: none;
  background-color: rgba(2, 11, 26, 0.92);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%),
    linear-gradient(180deg, rgba(23, 165, 255, 0.1), rgba(0, 0, 0, 0));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  border-color: rgba(23, 165, 255, 0.24);
  color: var(--text);
  cursor: pointer;
  padding-right: 2.4rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.stats-field select:hover,
.manual-player-field select:hover,
.automated-line-grid select:hover,
.manual-line-grid select:hover,
.player-season-controls select:hover,
.manual-stats-form select:hover,
.mystats-form select:hover {
  border-color: rgba(23, 165, 255, 0.55);
  box-shadow: 0 0 18px rgba(23, 165, 255, 0.12);
}

.stats-field select:focus,
.manual-player-field select:focus,
.automated-line-grid select:focus,
.manual-line-grid select:focus,
.player-season-controls select:focus,
.manual-stats-form select:focus,
.mystats-form select:focus {
  border-color: rgba(23, 165, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(23, 165, 255, 0.14), 0 0 22px rgba(23, 165, 255, 0.14);
}

.stats-field select option,
.manual-player-field select option,
.automated-line-grid select option,
.manual-line-grid select option,
.player-season-controls select option,
.manual-stats-form select option,
.mystats-form select option {
  background: #06101e;
  color: var(--text);
}

@media (max-width: 620px) {
  .automated-entry-grid,
  .automated-line-grid,
  .manual-entry-meta {
    grid-template-columns: 1fr;
  }
}

.manual-season-lines {
  display: grid;
  gap: 1rem;
}

.manual-season-line {
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 14, 33, 0.6);
  padding: 0.85rem;
}

.manual-line-heading,
.manual-entry-actions,
.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.manual-entry-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.manual-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.manual-line-grid label {
  display: grid;
  gap: 0.3rem;
}

.manual-line-grid label[hidden] {
  display: none !important;
}

.manual-preview {
  margin-top: 1rem;
}

.manual-preview[hidden] {
  display: none;
}

.manual-preview-scroll {
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.manual-preview-scroll table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.manual-preview-scroll th,
.manual-preview-scroll td {
  padding: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.manual-preview-scroll tfoot th {
  color: white;
  background: rgba(9, 109, 255, 0.12);
}

.player-card-link {
  color: var(--text);
  text-decoration: none;
}

.player-card-link:hover {
  color: #54d9ff;
}

.player-card-page {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  min-width: 0;
  overflow: hidden;
}

.player-search {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  min-width: 0;
  position: relative;
  z-index: 10;
  overflow: visible;
}

.player-search .stats-field {
  width: min(420px, 100%);
}

.player-typeahead {
  position: relative;
}

.player-typeahead input {
  width: 100%;
}

.player-suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  max-height: 280px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid rgba(88, 166, 255, 0.42);
  border-radius: 7px;
  background: rgba(3, 10, 20, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.46);
}

.player-suggestions[hidden] {
  display: none;
}

.player-suggestions button,
.player-suggestion-empty {
  display: block;
  width: 100%;
  padding: 0.72rem 0.75rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #dbe8f7;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.player-suggestions button {
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.player-suggestions button:hover,
.player-suggestions button:focus-visible {
  background: rgba(23, 165, 255, 0.16);
  color: white;
  transform: translateX(2px);
  outline: none;
}

.player-suggestion-empty {
  color: var(--muted);
}

.player-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(220, 233, 247, 0.48);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-view-toggle button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: inherit;
  cursor: pointer;
}

.player-view-toggle button:hover,
.player-view-toggle button.is-active {
  color: #ffffff;
}

.player-card-page .panel,
.player-card-page .stats-table-panel {
  min-width: 0;
  overflow: hidden;
}

.player-card-page .player-search {
  overflow: visible;
}

.player-card-page .stats-table-wrap {
  width: 100%;
  max-width: 100%;
}

.player-card-page .stats-table {
  min-width: 1360px;
}

.player-season-panel[hidden] {
  display: none;
}

.player-season-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-season-controls label {
  display: grid;
  gap: 0.25rem;
}

.player-season-controls select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 0 0.6rem;
}

.season-total-row td {
  position: sticky;
  bottom: 0;
  border-top: 2px solid rgba(23, 165, 255, 0.45);
  background: rgba(4, 15, 29, 0.98);
  color: #ffffff;
  font-weight: 900;
}

.player-showcase {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.player-identity-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 360px);
  min-height: 0;
  aspect-ratio: 3 / 4;
  align-self: start;
  border: 1px solid rgba(23, 165, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 19, 34, 0.2), rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at 50% 20%, rgba(23, 165, 255, 0.22), transparent 12rem),
    rgba(2, 7, 13, 0.9);
  box-shadow: inset 0 0 38px rgba(23, 165, 255, 0.08);
}

.player-position-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.player-card-logo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.player-card-logo img {
  width: 68px;
  height: auto;
}

.player-identity-footer {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #02070d;
  padding: 0.85rem;
}

.player-identity-footer strong,
.player-identity-footer span {
  display: block;
  text-transform: uppercase;
}

.player-identity-footer strong {
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.player-identity-footer span {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.player-stat-board {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 1.1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(23, 165, 255, 0.08), transparent 42%),
    rgba(2, 7, 13, 0.68);
}

.player-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
}

.player-card-header > div {
  min-width: 0;
}

.player-card-header h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  max-width: 100%;
  font-size: clamp(2rem, 4.8vw, 4.25rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.player-header-team-logo,
.player-inline-team-logo {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 0.18rem;
  border: 1px solid rgba(var(--directory-team-primary-rgb, 0, 217, 255), 0.42);
  border-radius: 6px;
  background: rgba(1, 8, 16, 0.72);
  vertical-align: middle;
}

.player-header-team-logo {
  width: clamp(38px, 4vw, 58px);
  height: clamp(38px, 4vw, 58px);
}

.player-inline-team-fallback {
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.player-game-row {
  cursor: pointer;
}

.player-game-link {
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(23, 165, 255, 0.45);
  text-underline-offset: 3px;
  cursor: pointer;
}

.player-game-link:hover,
.player-game-link:focus-visible {
  color: var(--accent);
  outline: 0;
}

.player-opp-abbr {
  color: var(--accent);
  font-weight: 900;
}

.player-card-header p {
  margin: 0.4rem 0 0;
  color: #dce9f7;
  font-size: clamp(0.95rem, 2vw, 1.45rem);
  text-transform: uppercase;
}

.player-stat-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.player-stat-sections section {
  min-width: 0;
}

.player-stat-sections section + section {
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  padding-left: 1rem;
}

.player-stat-sections h3 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1;
  text-transform: uppercase;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: clamp(0.45rem, 0.8vw, 0.75rem);
}

.player-stat-tile {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(230, 226, 220, 0.94);
  color: #02070d;
  text-align: center;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
}

.player-stat-tile span,
.player-stat-tile strong {
  display: block;
}

.player-stat-tile span {
  background: linear-gradient(135deg, #0794c4, #12d4dc);
  color: #ffffff;
  padding: 0.45rem 0.35rem;
  font-size: clamp(0.66rem, 0.8vw, 0.85rem);
  font-weight: 900;
  text-transform: uppercase;
}

.player-stat-tile strong {
  padding: 0.55rem 0.35rem;
  font-size: clamp(1rem, 1.65vw, 1.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.player-card-tabs {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-top: 0.25rem;
  color: rgba(220, 233, 247, 0.42);
  font-size: clamp(1.05rem, 2.6vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
}

.player-card-tabs .is-active {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .player-showcase {
    grid-template-columns: 1fr;
  }

  .player-identity-card {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .player-stat-sections {
    grid-template-columns: 1fr;
  }

  .player-stat-sections section + section {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 620px) {
  .player-card-page {
    padding: 0.65rem;
  }

  .player-search,
  .player-season-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .player-view-toggle {
    justify-content: center;
    width: 100%;
  }

  .player-card-header {
    flex-direction: column;
  }

  .player-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-card-tabs {
    font-size: 1rem;
  }
}

.player-total-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.player-total-grid div {
  border: 1px solid rgba(88, 166, 255, 0.24);
  border-radius: 8px;
  background: rgba(3, 14, 33, 0.76);
  padding: 0.9rem;
}

.player-total-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.player-total-grid strong {
  display: block;
  margin-top: 0.3rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.stats-field {
  display: grid;
  gap: 0.35rem;
}

.stats-field.wide {
  min-width: 0;
}

.stats-field label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats-field input,
.stats-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  outline: 0;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 0 0.75rem;
}

.stats-field input:focus,
.stats-field select:focus {
  border-color: rgba(23, 165, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(23, 165, 255, 0.14);
}

.stats-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}

.csv-import {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.8rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.85rem;
}

.manual-stats-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.65rem;
}

.manual-stats-form label {
  display: grid;
  gap: 0.3rem;
}

.manual-stats-form span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.manual-stats-form input,
.manual-stats-form select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  outline: 0;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 0.5rem 0.65rem;
}

.manual-stats-form input:focus,
.manual-stats-form select:focus {
  border-color: rgba(23, 165, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(23, 165, 255, 0.14);
}

.manual-actions {
  display: flex;
  align-items: end;
}

.manual-clear-actions {
  justify-content: flex-start;
}

.mystats-loader {
  display: block;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.mystats-loader.is-collapsed {
  background: rgba(2, 10, 20, 0.72);
  box-shadow: none;
}

.mystats-loader-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mystats-loader-summary h2 {
  font-size: 1rem;
}

.mystats-loader-summary p:not(.eyebrow) {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.mystats-toggle {
  min-height: 38px;
  white-space: nowrap;
}

.mystats-loader-body {
  margin-top: 1rem;
  animation: fadeUp 180ms ease both;
}

.mystats-loader-body[hidden] {
  display: none;
}

.api-player-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.api-player-card h2 {
  font-size: 1.2rem;
}

.api-player-card p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.api-player-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.api-player-form input {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  outline: 0;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 0 0.75rem;
}

.api-json-output {
  grid-column: 1 / -1;
  max-height: 360px;
  overflow: auto;
  margin: 0.5rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  color: #dbeafe;
  font-size: 0.82rem;
  line-height: 1.45;
}

.api-json-output[hidden] {
  display: none;
}

.mystats-loader-body h2 {
  font-size: 1.2rem;
}

.mystats-loader-body p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.mystats-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 0.65rem;
  align-items: stretch;
}

.mystats-form textarea,
.mystats-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  outline: 0;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}

.mystats-form textarea:focus,
.mystats-form select:focus {
  border-color: rgba(23, 165, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(23, 165, 255, 0.14);
}

.csv-import h2 {
  font-size: 1rem;
}

.csv-import p:not(.eyebrow) {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.csv-import .eyebrow {
  margin: 0;
  font-size: 0.68rem;
}

.csv-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.file-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(88, 166, 255, 0.7);
  border-radius: 6px;
  background: rgba(3, 14, 33, 0.8);
  color: white;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.file-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(9, 109, 255, 0.28);
}

.file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.stats-summary p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
  overflow: hidden;
}

.stats-layout.has-compare {
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.8fr);
}

.stats-table-panel {
  min-width: 0;
  overflow: hidden;
}

.stats-table-wrap {
  width: 100%;
  max-height: 640px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.stats-table {
  min-width: 1680px;
  table-layout: fixed;
  font-size: 0.82rem;
}

.stats-table th,
.stats-table td {
  padding: 0.48rem 0.34rem;
}

.stats-page .stats-table th:first-child,
.stats-page .stats-table td:first-child {
  width: 62px;
}

.stats-page .stats-table th:nth-child(2),
.stats-page .stats-table td:nth-child(2) {
  width: 150px;
}

.stats-page .stats-table th:nth-child(3),
.stats-page .stats-table td:nth-child(3) {
  width: 58px;
}

.stats-page .stats-table th:nth-child(4),
.stats-page .stats-table td:nth-child(4) {
  width: 74px;
}

.stats-page .stats-table th:nth-child(n + 5),
.stats-page .stats-table td:nth-child(n + 5) {
  width: 50px;
  text-align: center;
}

.stats-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(5, 12, 22, 0.98);
}

.stats-table tbody tr {
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.stats-table tbody tr:hover {
  background: rgba(23, 165, 255, 0.08);
}

.stats-table td strong,
.stats-table td small {
  display: block;
}

.stats-table td small {
  margin-top: 0.15rem;
  color: var(--muted);
}

.compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: var(--muted);
  cursor: pointer;
}

.compare-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue-soft);
}

.compare-panel {
  position: sticky;
  top: 82px;
}

.compare-panel[hidden] {
  display: none;
}

.compare-grid {
  display: grid;
  gap: 0.85rem;
}

.compare-card {
  padding: 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.34);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  animation: fadeInUp 200ms ease both;
}

.compare-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.compare-card h3 {
  font-size: 1.05rem;
}

.compare-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.compare-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.compare-stats div {
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.compare-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compare-stats strong {
  color: white;
  font-size: 1.12rem;
}

.compare-stats .is-leader {
  border-color: rgba(239, 200, 74, 0.68);
  background: rgba(239, 200, 74, 0.12);
  box-shadow: inset 0 0 20px rgba(239, 200, 74, 0.08);
}

.compare-stats .is-leader strong {
  color: #ffe06a;
}

@media (max-width: 980px) {
  .admin-tool-grid,
  .admin-tool-grid.two-column,
  .admin-card-grid,
  .admin-color-fields {
    grid-template-columns: 1fr;
  }

  .admin-page-tabs,
  .admin-button-row {
    flex-direction: column;
  }

  .admin-page-tabs button,
  .admin-page-tabs a,
  .admin-button-row .button {
    width: 100%;
  }

  .admin-list-row {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-line {
    grid-template-columns: 1fr;
  }

  .game-total-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
    padding-right: 1rem;
  }

  .nav-toggle {
    grid-column: 4;
    grid-row: 1;
    display: block;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem 0 0.4rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    width: fit-content;
    padding: 0.45rem 0;
    line-height: 1.25;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a.is-active {
    color: #ffffff;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-dropdown > a,
  .nav-subdropdown > a {
    position: relative;
    padding-right: 1.05rem;
  }

  .nav-dropdown > a::before,
  .nav-subdropdown > a::before {
    content: "+";
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: 900;
  }

  .nav-dropdown.is-open > a::before,
  .nav-subdropdown.is-open > a::before {
    content: "-";
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.05rem 0 0.55rem 0.85rem;
    padding: 0.15rem 0 0.15rem 0.75rem;
    border: 0;
    border-left: 1px solid rgba(88, 166, 255, 0.28);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-dropdown.is-open > .nav-dropdown-menu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 100%;
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto !important;
    transform: none !important;
  }

  .nav-subdropdown-menu {
    position: static;
    display: none;
    max-height: none;
    min-width: 0;
    margin: 0.05rem 0 0.45rem 0.85rem;
    padding: 0.15rem 0 0.15rem 0.75rem;
    border: 0;
    border-left: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-subdropdown.is-open > .nav-subdropdown-menu {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 100%;
    max-height: none;
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto !important;
    transform: none !important;
  }

  .site-nav .nav-dropdown-menu a {
    display: block !important;
    width: auto;
    padding: 0.4rem 0;
    color: #d9e7f7 !important;
    font-size: 0.76rem;
    opacity: 1 !important;
    visibility: visible;
    white-space: normal;
  }

  .site-nav .nav-dropdown-menu a.is-active {
    color: #ffffff !important;
    background: transparent;
  }

  .header-button-group {
    position: static;
    grid-column: 3;
    grid-row: 1;
    transform: none;
    gap: 5px;
  }
  .admin-icon-button,
  .signin-button {
    min-width: 58px;
    min-height: 34px;
    padding: 0.4rem 0.5rem;
    font-size: 0.68rem;
  }

  .header-actions {
    display: none;
  }

  .dashboard-grid,
  .player-grid,
  .format-grid,
  .schedule-band,
  .split,
  .stats-toolbar,
  .stats-layout,
  .stat-input-panel,
  .csv-import,
  .mystats-form,
  .api-player-card,
  .api-player-form {
    grid-template-columns: 1fr;
  }

  .mystats-loader-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare-panel {
    position: static;
  }

  .stats-layout.has-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-table-panel {
    order: 1;
  }

  .compare-panel {
    order: 2;
  }

  .csv-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .page-shell,
  .site-header,
  .site-footer {
    width: 100%;
    border-inline: 0;
  }

  .stats-page,
  .stats-layout,
  .stats-table-panel,
  .stats-table-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .stats-page {
    padding: 0.65rem;
  }

  .stats-table-wrap {
    display: block;
    overflow-x: auto;
    overflow-y: auto;
  }

  .hero {
    min-height: 520px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-strip article {
    border-bottom: 1px solid var(--line);
  }

  .event-cards,
  .countdown,
  .lookup-form,
  .detail-grid,
  .standings-placeholder-grid,
  .media-placeholder-grid,
  .media-placeholder-grid--two,
  .schedule-placeholder-list {
    grid-template-columns: 1fr;
  }

  /* League Streamer — stack logo above info on mobile */
  .media-streamer-body {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .media-streamer-logo {
    width: 70%;
    max-width: 220px;
  }
  .media-streamer-info {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .media-streamer-schedule {
    align-items: center;
  }
  .media-streamer-socials {
    align-items: center;
  }
  .media-streamer-schedule span:not(.media-streamer-schedule-label) {
    font-size: 1.1rem;
  }

  .team-hero > [data-team-hero-content],
  .team-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .team-hero-brand {
    align-items: center;
  }

  .team-hero-main,
  .team-hero-side,
  .team-upcoming-board {
    flex-basis: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .team-hero-event-control {
    justify-content: stretch;
  }

  .team-upcoming-row {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }

  .team-upcoming-row-head {
    display: none;
  }

  .event-carousel {
    aspect-ratio: 16 / 9;
    margin: 0.5rem;
  }

  .lookup-form button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .stats-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-summary .button,
  .csv-actions .button,
  .file-upload {
    width: 100%;
  }

  .compare-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Weekend Warrior feature styles merged from agl-main-weekend-warrior-share-2026-05-22.zip */
.ww-page {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.ww-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ww-tab-button {
  min-width: 160px;
}

.ww-tab-button.is-active {
  border-color: rgba(23, 165, 255, 0.4);
  background:
    linear-gradient(135deg, rgba(9, 109, 255, 0.24), rgba(21, 216, 255, 0.1)),
    rgba(255, 255, 255, 0.06);
  color: white;
}

.is-tab-hidden {
  display: none !important;
}

.ww-hero {
  background:
    linear-gradient(120deg, rgba(9, 109, 255, 0.2), rgba(21, 216, 255, 0.08)),
    rgba(2, 7, 14, 0.78);
}

.ww-event-grid,
.ww-active-grid,
.ww-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ww-signup-card,
.ww-active-card,
.ww-captain-card,
.ww-public-card {
  display: grid;
  gap: 0.9rem;
}

.ww-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(88, 166, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-status-pill.is-open {
  border-color: rgba(38, 214, 124, 0.42);
  background: rgba(38, 214, 124, 0.12);
  color: #8bffbf;
}

.ww-status-pill.is-locked {
  border-color: rgba(239, 200, 74, 0.4);
  background: rgba(239, 200, 74, 0.12);
  color: #ffe06a;
}

.ww-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.ww-event-date {
  margin: 0;
  color: #8fb6de;
  font-size: 0.82rem;
  font-weight: 700;
}

.ww-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ww-meta-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ww-meta-grid div,
.ww-position-chip {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.ww-meta-grid span,
.ww-position-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-meta-grid strong,
.ww-position-chip strong {
  display: block;
  margin-top: 0.28rem;
  color: white;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1;
}

.ww-position-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.ww-signup-form {
  display: grid;
  gap: 0.65rem;
}

.ww-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.ww-signup-form button {
  width: 100%;
}

.ww-admin-panel {
  display: grid;
  gap: 0.8rem;
}

.ww-admin-auth-panel,
.ww-admin-toolbar,
.ww-admin-grid,
.ww-admin-summary-grid,
.ww-draft-summary-grid {
  display: grid;
  gap: 0.7rem;
}

.ww-admin-auth-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.85rem;
  align-items: end;
}

.ww-admin-auth-form .button {
  min-width: 140px;
}

.ww-admin-toolbar {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.ww-admin-actions-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ww-admin-toolbar .button {
  width: 100%;
}

.ww-admin-summary-grid,
.ww-draft-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ww-admin-summary-card,
.ww-draft-summary-card,
.ww-admin-card {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.ww-admin-summary-card span,
.ww-draft-summary-card span,
.ww-admin-health-row span,
.ww-admin-candidate span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-admin-summary-card strong,
.ww-draft-summary-card strong,
.ww-admin-health-row strong,
.ww-admin-candidate strong {
  display: block;
  margin-top: 0.25rem;
  color: white;
}

.ww-admin-grid {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.ww-draft-panel,
.ww-draft-card {
  display: grid;
  gap: 0.75rem;
}

.ww-draft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 0.8rem;
}

.ww-draft-board,
.ww-draft-order-board,
.ww-draft-order-grid {
  display: grid;
  gap: 0.85rem;
}

.ww-draft-round {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(43, 115, 214, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(8, 15, 27, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.18);
}

.ww-draft-round.is-live {
  border-color: rgba(255, 196, 61, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 196, 61, 0.12),
    0 24px 42px rgba(0, 0, 0, 0.22);
}

.ww-draft-round.is-complete {
  border-color: rgba(77, 202, 142, 0.2);
}

.ww-draft-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ww-draft-round-title {
  display: grid;
  gap: 0.2rem;
}

.ww-draft-round-kicker {
  color: #8dddff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ww-draft-round-head h3 {
  margin: 0;
  color: white;
  font-size: 1.05rem;
}

.ww-draft-round-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-draft-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0.75rem;
}

.ww-draft-pick-card {
  display: grid;
  gap: 0.62rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16)),
    rgba(4, 10, 20, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.ww-draft-pick-card.is-current {
  border-color: rgba(239, 200, 74, 0.48);
  background:
    radial-gradient(circle at top right, rgba(239, 200, 74, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(239, 200, 74, 0.15), rgba(239, 200, 74, 0.04)),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(239, 200, 74, 0.16),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.ww-draft-pick-card.is-picked {
  border-color: rgba(var(--ww-position-rgb, 88, 166, 255), 0.48);
  background:
    radial-gradient(circle at top right, rgba(var(--ww-position-rgb, 88, 166, 255), 0.18), transparent 44%),
    linear-gradient(180deg, rgba(var(--ww-position-rgb, 88, 166, 255), 0.12), rgba(0, 0, 0, 0.12)),
    rgba(4, 10, 20, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 28px rgba(var(--ww-position-rgb, 88, 166, 255), 0.12),
    0 0 0 1px rgba(var(--ww-position-rgb, 88, 166, 255), 0.2),
    0 0 22px rgba(var(--ww-position-rgb, 88, 166, 255), 0.18),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.ww-draft-pick-top,
.ww-draft-pick-body {
  display: grid;
  gap: 0.22rem;
}

.ww-draft-pick-top span,
.ww-draft-pick-body span,
.ww-draft-pick-team span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-draft-pick-top strong,
.ww-draft-pick-body strong,
.ww-draft-pick-team strong {
  color: white;
}

.ww-draft-pick-top {
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
}

.ww-draft-pick-number,
.ww-draft-pick-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.ww-draft-pick-number {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ww-draft-pick-status {
  border: 1px solid rgba(88, 166, 255, 0.16);
  background: rgba(88, 166, 255, 0.08);
  color: #9ec8ff !important;
}

.ww-draft-pick-team {
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ww-draft-picked-player {
  font-size: 1rem;
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(var(--ww-position-rgb, 88, 166, 255), 0.16);
}

.ww-draft-pick-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 25px;
  padding: 0.14rem 0.42rem;
  border: 1px solid rgba(var(--ww-position-rgb, 88, 166, 255), 0.42);
  border-radius: 999px;
  background: rgba(var(--ww-position-rgb, 88, 166, 255), 0.16);
  color: rgba(var(--ww-position-rgb, 88, 166, 255), 0.96) !important;
  letter-spacing: 0.04em;
  box-shadow:
    inset 0 0 14px rgba(var(--ww-position-rgb, 88, 166, 255), 0.14),
    0 0 16px rgba(var(--ww-position-rgb, 88, 166, 255), 0.16);
}

.ww-draft-order-meta,
.ww-draft-order-card {
  padding: 0.85rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(8, 15, 27, 0.88);
}

.ww-draft-order-meta span,
.ww-draft-order-head span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-draft-order-meta strong,
.ww-draft-order-head strong {
  display: block;
  margin-top: 0.25rem;
  color: white;
}

.ww-draft-order-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ww-draft-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ww-draft-order-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dce9f7;
  display: grid;
  gap: 0.45rem;
}

.ww-draft-order-slot {
  display: block;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.ww-team-grid,
.ww-pool-grid {
  display: grid;
  gap: 0.85rem;
}

.ww-team-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.ww-pool-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
}

.ww-team-card,
.ww-pool-group {
  padding: 0.72rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.ww-team-card-head,
.ww-pool-group-head,
.ww-slot-row,
.ww-pool-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ww-team-card-head {
  margin-bottom: 0.55rem;
}

.ww-team-card-head strong,
.ww-pool-group-head strong,
.ww-pool-player strong,
.ww-slot-row strong {
  color: white;
}

.ww-team-card-head span,
.ww-pool-group-head span,
.ww-slot-row span,
.ww-pool-player span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-roster-grid,
.ww-pool-player-list {
  display: grid;
  gap: 0.45rem;
}

.ww-roster-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ww-slot-row,
.ww-pool-player {
  min-height: 0;
  padding: 0.48rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.ww-position-glow {
  --ww-position-rgb: 88, 166, 255;
  border-color: rgba(var(--ww-position-rgb), 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(var(--ww-position-rgb), 0.08),
    0 0 18px rgba(var(--ww-position-rgb), 0.08);
}

.ww-position-glow strong:first-child,
.ww-position-glow > span:first-child,
.ww-position-glow .ww-pool-player-meta span,
.ww-position-glow .ww-pool-group-head span {
  color: rgba(var(--ww-position-rgb), 0.96);
}

.ww-pos-lw {
  --ww-position-rgb: 57, 211, 83;
}

.ww-pos-c {
  --ww-position-rgb: 255, 82, 82;
}

.ww-pos-rw {
  --ww-position-rgb: 90, 168, 255;
}

.ww-pos-ld {
  --ww-position-rgb: 61, 217, 255;
}

.ww-pos-rd {
  --ww-position-rgb: 255, 194, 61;
}

.ww-pos-g {
  --ww-position-rgb: 182, 107, 255;
}

.ww-slot-row.is-open {
  border-style: dashed;
}

.ww-slot-player {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ww-slot-player-tag {
  color: #dce9f7;
  font-weight: 700;
  line-height: 1.15;
}

.ww-captain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(23, 165, 255, 0.34);
  border-radius: 999px;
  background: rgba(23, 165, 255, 0.14);
  color: #8dddff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-pool-player {
  flex-wrap: nowrap;
}

.ww-pool-player-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.ww-pool-player-meta strong {
  line-height: 1.1;
}

.ww-pool-player-meta strong,
.ww-slot-player-tag {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ww-pool-player-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.ww-pool-player-actions .button {
  min-height: 30px;
  padding: 0.35rem 0.6rem;
}

.ww-readonly-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-game-code-row {
  display: flex;
  justify-content: flex-end;
}

.ww-game-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.14rem 0.5rem;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.08);
  color: #a8d0ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ww-pool-player-list {
  max-height: 250px;
  overflow: auto;
  padding-right: 0.15rem;
}

.ww-pool-player-list::-webkit-scrollbar {
  width: 8px;
}

.ww-pool-player-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(220, 233, 247, 0.18);
}

.ww-admin-health-grid,
.ww-admin-candidate-list {
  display: grid;
  gap: 0.65rem;
}

.ww-admin-candidate-shell {
  display: grid;
  gap: 0.9rem;
}

.ww-admin-health-row,
.ww-admin-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.ww-admin-health-row strong {
  margin-top: 0;
}

.ww-admin-candidate-group {
  display: grid;
  gap: 0.6rem;
  padding: 0.7rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.ww-admin-candidate-group + .ww-admin-candidate-group {
  margin-top: 0;
}

.ww-admin-candidate-group h3 {
  margin: 0;
  font-size: 0.9rem;
}

.ww-admin-candidate-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-height: 220px;
  overflow: auto;
  padding-right: 0.15rem;
}

.ww-admin-candidate-list::-webkit-scrollbar {
  width: 8px;
}

.ww-admin-candidate-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(220, 233, 247, 0.18);
}

.ww-admin-candidate {
  justify-content: flex-start;
  align-items: center;
  min-height: 0;
  padding: 0.35rem 0.55rem;
  gap: 0.45rem;
}

.ww-admin-candidate input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-soft);
  flex: 0 0 auto;
}

.ww-admin-candidate strong {
  margin-top: 0;
  line-height: 1;
}

.ww-admin-candidate-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.ww-admin-candidate-meta strong,
.ww-admin-candidate-position {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ww-admin-candidate-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 999px;
  color: #9ec8ff;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.ww-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #dce9f7;
  font-size: 0.88rem;
  font-weight: 700;
}

.ww-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-soft);
}

.ww-inline-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.ww-inline-status.is-success {
  color: #8bffbf;
}

.ww-inline-status.is-error {
  color: #ff8795;
}

.ww-inline-status.is-warning {
  color: #ffe06a;
}

.ww-captain-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ww-captain-list .empty-state {
  width: 100%;
  margin: 0;
}

.ww-captain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 109, 255, 0.1), rgba(21, 216, 255, 0.04)),
    rgba(0, 0, 0, 0.22);
}

.ww-captain-item strong,
.ww-captain-item span {
  display: block;
}

.ww-captain-item strong {
  color: white;
  font-size: 1rem;
}

.ww-captain-item span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-captain-position {
  flex-shrink: 0;
  min-width: 48px;
  margin-top: 0 !important;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white !important;
  text-align: center;
}

.ww-public-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ww-public-group {
  padding: 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.ww-public-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ww-public-group-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-public-group-head strong {
  color: white;
  font-size: 1rem;
}

.ww-public-player-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ww-public-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ww-public-player-tag {
  color: #dce9f7;
  font-weight: 700;
  word-break: break-word;
}

.ww-public-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(239, 200, 74, 0.36);
  border-radius: 999px;
  background: rgba(239, 200, 74, 0.12);
  color: #ffe06a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-public-empty {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ww-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.ww-live-card,
.ww-playoff-panel,
.ww-roster-override-panel,
.ww-leaderboard-panel {
  display: grid;
  gap: 0.8rem;
}

.ww-collapse {
  display: grid;
  gap: 0;
}

.ww-collapse[open] {
  gap: 0.75rem;
}

.ww-collapse-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.ww-collapse-summary::-webkit-details-marker {
  display: none;
}

.ww-collapse-summary h2,
.ww-collapse-summary .eyebrow {
  margin-block: 0;
}

.ww-collapse-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ww-collapse-body {
  display: grid;
  gap: 0.75rem;
}

.ww-standings-table-wrap {
  overflow-x: auto;
}

.ww-standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.ww-standings-table th,
.ww-standings-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(88, 166, 255, 0.14);
  text-align: left;
  color: #dce9f7;
  font-size: 0.88rem;
}

.ww-standings-table th {
  color: white;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ww-standings-table tr.is-playoff-cut td {
  background: rgba(239, 200, 74, 0.08);
}

.ww-schedule-board,
.ww-playoff-board,
.ww-leaderboard-board {
  display: grid;
  gap: 1rem;
}

.ww-schedule-round,
.ww-playoff-round {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.ww-schedule-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ww-schedule-round-head h3 {
  margin: 0;
  color: white;
  font-size: 1rem;
}

.ww-schedule-round-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ww-game-list {
  display: grid;
  gap: 0.75rem;
}

.ww-game-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid rgba(88, 166, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 18, 36, 0.82);
}

.ww-game-card.is-final {
  border-color: rgba(79, 193, 124, 0.3);
}

.ww-game-meta,
.ww-game-actions,
.ww-leaderboard-entry,
.ww-override-grid {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ww-game-meta strong,
.ww-leaderboard-entry strong {
  color: white;
}

.ww-game-meta span,
.ww-game-actions span,
.ww-leaderboard-entry span {
  color: var(--muted);
}

.ww-game-score {
  color: #dce9f7;
  font-size: 0.95rem;
  font-weight: 700;
}

.ww-score-input {
  width: 72px;
  min-height: 38px;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(88, 166, 255, 0.24);
  border-radius: 6px;
  background: rgba(3, 14, 33, 0.74);
  color: white;
}

.ww-override-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ww-override-grid .stats-field.wide {
  grid-column: span 3;
}

.ww-leaderboard-list {
  display: grid;
  gap: 0.8rem;
}

.ww-leaderboard-entry {
  justify-content: space-between;
  padding: 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.ww-leaderboard-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .ww-event-grid,
  .ww-active-grid,
  .ww-public-grid,
  .ww-admin-auth-form,
  .ww-form-actions,
  .ww-admin-toolbar,
  .ww-draft-grid,
  .ww-live-grid,
  .ww-admin-grid,
  .ww-admin-summary-grid,
  .ww-draft-summary-grid,
  .ww-override-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ww-meta-grid,
  .ww-meta-grid-compact,
  .ww-position-grid,
  .ww-public-board,
  .ww-override-grid {
    grid-template-columns: 1fr;
  }

  .ww-override-grid .stats-field.wide {
    grid-column: auto;
  }

  .ww-roster-grid,
  .ww-team-grid,
  .ww-pool-grid {
    grid-template-columns: 1fr;
  }
}


/* Player Card Featured Presentation v1 */
.player-showcase-featured {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.player-showcase-featured::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 18% 20%, rgba(19, 190, 221, 0.22), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(255, 214, 74, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(10, 19, 33, 0.95), rgba(3, 8, 15, 0.96));
  z-index: -2;
}

.player-showcase-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 100%);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.85), transparent 90%);
  pointer-events: none;
  z-index: -1;
}

.player-identity-card-featured {
  position: relative;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateZ(0);
}

.player-card-rating {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 4.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 214, 74, 0.95), rgba(180, 122, 16, 0.92));
  color: #06111f;
  border: 1px solid rgba(255, 244, 179, 0.75);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  text-transform: uppercase;
}

.player-card-rating strong {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 0.95;
}

.player-card-rating span {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.player-stat-board-featured {
  background:
    linear-gradient(180deg, rgba(8, 18, 31, 0.92), rgba(4, 10, 18, 0.96)),
    radial-gradient(circle at top right, rgba(20, 197, 230, 0.16), transparent 32%);
}

.player-card-header-featured {
  align-items: flex-start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.player-card-header-featured h2 {
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.player-card-kicker {
  margin: 0 0 0.45rem;
  color: #19d5ff;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.player-feature-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.player-feature-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(19, 190, 221, 0.11);
  color: #e7fbff;
  border: 1px solid rgba(26, 217, 255, 0.34);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.position-theme-g .player-showcase-featured::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(148, 92, 255, 0.22), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(255, 214, 74, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(10, 19, 33, 0.95), rgba(3, 8, 15, 0.96));
}

.position-theme-ld .player-showcase-featured::before,
.position-theme-rd .player-showcase-featured::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 224, 167, 0.18), transparent 34%),
    radial-gradient(circle at 80% 12%, rgba(19, 190, 221, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(10, 19, 33, 0.95), rgba(3, 8, 15, 0.96));
}

@media (max-width: 900px) {
  .player-card-header-featured h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .player-card-rating {
    top: 0.75rem;
    left: 0.75rem;
    min-width: 3.6rem;
  }
}



/* Player Card Rating v2 - top-right AGL glass badge */
.player-card-rating {
  top: 1rem;
  right: 1rem;
  left: auto;
  min-width: 4.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(180deg, rgba(8, 20, 35, 0.94), rgba(3, 9, 17, 0.96)),
    radial-gradient(circle at 30% 20%, rgba(21, 218, 255, 0.26), transparent 55%);
  color: #f8fdff;
  border: 1px solid rgba(25, 213, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 214, 74, 0.18) inset,
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(19, 190, 221, 0.24);
}

.player-card-rating::before {
  content: "";
  position: absolute;
  inset: 0.28rem;
  border-radius: 0.68rem;
  border: 1px solid rgba(255, 214, 74, 0.36);
  pointer-events: none;
}

.player-card-rating strong {
  color: #ffffff;
  text-shadow:
    0 0 14px rgba(19, 213, 255, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.65);
  letter-spacing: -0.07em;
}

.player-card-rating span {
  color: #ffd64a;
  text-shadow: 0 0 10px rgba(255, 214, 74, 0.28);
}

@media (max-width: 900px) {
  .player-card-rating {
    top: 0.75rem;
    right: 0.75rem;
    left: auto;
  }
}


/* Player Card Advanced Stat Visualizations v1 */
.player-visual-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(280px, 1.22fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.player-impact-rings {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 0.75rem;
}

.player-impact-ring {
  --score: 0;
  --angle: calc(var(--score) * 3.6deg);
  position: relative;
  aspect-ratio: 1;
  min-width: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    conic-gradient(#19d5ff var(--angle), rgba(255,255,255,0.09) 0),
    radial-gradient(circle at center, rgba(9, 20, 35, 0.98) 0 58%, transparent 59%);
  box-shadow:
    0 0 0 1px rgba(25, 213, 255, 0.18) inset,
    0 12px 26px rgba(0,0,0,0.32);
}

.player-impact-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(5, 14, 25, 0.98), rgba(1, 6, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.player-impact-ring div {
  position: relative;
  display: grid;
  place-items: center;
  line-height: 1;
}

.player-impact-ring strong {
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.65rem);
  letter-spacing: -0.05em;
}

.player-impact-ring span {
  margin-top: 0.2rem;
  color: #ffd64a;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.player-trait-panel {
  display: grid;
  gap: 0.62rem;
  padding: 0.9rem;
  border-radius: 1.1rem;
  background: rgba(1, 9, 17, 0.44);
  border: 1px solid rgba(25, 213, 255, 0.18);
}

.player-trait-row {
  display: grid;
  gap: 0.3rem;
}

.player-trait-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-trait-row span {
  color: #d8edf6;
}

.player-trait-row strong {
  color: #ffd64a;
}

.player-trait-track {
  height: 0.58rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.player-trait-track span {
  display: block;
  height: 100%;
  min-width: 5%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0aa7c9, #19d5ff 62%, #ffd64a);
  box-shadow: 0 0 18px rgba(25, 213, 255, 0.28);
}

@media (max-width: 1100px) {
  .player-visual-summary {
    grid-template-columns: 1fr;
  }

  .player-impact-rings {
    max-width: 380px;
  }
}

@media (max-width: 620px) {
  .player-impact-rings {
    grid-template-columns: repeat(3, 1fr);
  }

  .player-impact-ring {
    min-width: 56px;
  }

  .player-trait-panel {
    padding: 0.75rem;
  }
}


/* Player Card Impact Bars v2 */
.player-visual-summary,
.player-trait-panel,
.player-impact-rings {
  display: none !important;
}

.player-impact-bars {
  display: grid;
  gap: 0.65rem;
  max-width: 620px;
  margin-top: 1rem;
  padding: 0.95rem;
  border-radius: 1.05rem;
  background: rgba(1, 9, 17, 0.34);
  border: 1px solid rgba(25, 213, 255, 0.16);
}

.player-impact-bar {
  display: grid;
  grid-template-columns: minmax(72px, 0.23fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.player-impact-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  min-width: 0;
}

.player-impact-bar-label span {
  color: #e8f8ff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.player-impact-bar-label strong {
  color: #ffd64a;
  font-size: 0.95rem;
  font-weight: 950;
}

.player-impact-bar-track {
  position: relative;
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 66, 66, 0.16), rgba(255, 214, 74, 0.13), rgba(56, 224, 139, 0.13)),
    rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-impact-bar-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e43636 0%, #ffd64a 50%, #38e08b 100%);
  opacity: 0.28;
}

.player-impact-bar-track span {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  min-width: 4%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e43636 0%, #ffd64a 52%, #38e08b 100%);
  box-shadow: 0 0 18px rgba(25, 213, 255, 0.18);
}

.player-impact-bar small {
  display: inline-flex;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.28rem 0.42rem;
  border-radius: 999px;
  background: rgba(19, 190, 221, 0.1);
  color: #9fefff;
  border: 1px solid rgba(25, 213, 255, 0.22);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.player-impact-bar.is-low .player-impact-bar-label strong {
  color: #ff6969;
}

.player-impact-bar.is-average .player-impact-bar-label strong {
  color: #ffd64a;
}

.player-impact-bar.is-strong .player-impact-bar-label strong {
  color: #38e08b;
}

@media (max-width: 680px) {
  .player-impact-bars {
    max-width: none;
  }

  .player-impact-bar {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.75rem;
  }

  .player-impact-bar-track {
    grid-column: 1 / -1;
  }

  .player-impact-bar small {
    grid-column: 2;
    grid-row: 1;
  }
}


/* Player Card Section Impact Bars v3 */
.player-impact-bars {
  display: none !important;
}

.player-section-impact-bar {
  display: grid;
  gap: 0.35rem;
  margin: -0.3rem auto 0.85rem;
  width: min(100%, 18rem);
}

.player-section-impact-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.1rem;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-section-impact-label span {
  color: #cfeefa;
}

.player-section-impact-label strong {
  color: #ffd64a;
}

.player-section-impact-track {
  position: relative;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 66, 66, 0.16), rgba(255, 214, 74, 0.13), rgba(56, 224, 139, 0.13)),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-section-impact-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e43636 0%, #ffd64a 50%, #38e08b 100%);
  opacity: 0.22;
}

.player-section-impact-track span {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  min-width: 4%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e43636 0%, #ffd64a 52%, #38e08b 100%);
  box-shadow: 0 0 14px rgba(25, 213, 255, 0.16);
}

.player-section-impact-bar.is-low .player-section-impact-label strong {
  color: #ff6969;
}

.player-section-impact-bar.is-average .player-section-impact-label strong {
  color: #ffd64a;
}

.player-section-impact-bar.is-strong .player-section-impact-label strong {
  color: #38e08b;
}

.player-stat-sections section h3 {
  margin-bottom: 0.75rem;
}


/* AGL Mobile Safety Layer v1 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.page-shell,
.site-header,
.site-footer,
.panel,
.stats-page,
.player-card-page {
  max-width: 100%;
  min-width: 0;
}

.stats-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.stats-table {
  width: max-content;
}

.stats-table th,
.stats-table td {
  white-space: nowrap;
}

.player-suggestions {
  max-width: min(100%, 34rem);
  width: 100%;
  left: 0;
  right: auto;
  z-index: 30;
}

.schedule-modal-window,
.modal-window,
.admin-modal-window {
  width: min(94vw, 980px);
  max-width: 94vw;
  max-height: 88vh;
  overflow: auto;
}

@media (max-width: 900px) {
  .page-shell {
    padding-inline: clamp(0.75rem, 3vw, 1rem);
  }

  .site-header {
    padding-inline: 0.9rem;
  }

  .brand-mark img {
    max-width: clamp(76px, 22vw, 120px);
    height: auto;
  }

  .stats-hero,
  .player-card-hero {
    padding: clamp(1.5rem, 6vw, 2.25rem);
  }

  .stats-hero h1,
  .player-card-hero h1 {
    font-size: clamp(2.15rem, 12vw, 4rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  .stats-toolbar,
  .player-search {
    grid-template-columns: 1fr !important;
    gap: 0.85rem;
  }

  .stats-field,
  .stats-field.wide,
  .player-typeahead {
    min-width: 0;
    width: 100%;
  }

  .stats-field input,
  .stats-field select,
  .player-typeahead input {
    width: 100%;
    min-width: 0;
  }

  .stats-summary {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .stats-layout {
    grid-template-columns: 1fr !important;
  }

  .compare-panel {
    order: 2;
  }

  .player-showcase,
  .player-showcase-featured {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .player-identity-card,
  .player-identity-card-featured {
    width: min(100%, 380px);
    margin-inline: auto;
  }

  .player-stat-board,
  .player-stat-board-featured {
    min-width: 0;
    width: 100%;
  }

  .player-card-header,
  .player-card-header-featured {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
  }

  .player-card-header-featured h2 {
    font-size: clamp(2.15rem, 12vw, 3.65rem);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .player-card-header-featured p,
  .player-card-header p {
    overflow-wrap: anywhere;
  }

  .player-stat-sections {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .player-stat-sections section {
    min-width: 0;
  }

  .player-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .player-section-impact-bar {
    width: 100%;
  }

  .player-season-controls {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
  }

  .site-nav {
    max-width: 100%;
  }

  .admin-icon-button,
  .signin-button {
    white-space: nowrap;
  }

  .panel {
    border-radius: 0.9rem;
  }

  .player-search {
    padding: 0.85rem;
  }

  .player-view-toggle {
    width: 100%;
    justify-content: center;
  }

  .player-card-header,
  .player-card-header-featured {
    grid-template-columns: 1fr;
  }

  .player-card-header .badge,
  .player-card-header-featured .badge {
    justify-self: start;
  }

  .player-card-header-featured h2 {
    font-size: clamp(2rem, 15vw, 3rem);
  }

  .player-feature-badges {
    gap: 0.35rem;
  }

  .player-feature-badges span {
    font-size: 0.66rem;
    padding: 0.3rem 0.55rem;
  }

  .player-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem;
  }

  .player-stat-tile strong {
    font-size: clamp(1.1rem, 7vw, 1.6rem);
  }

  .player-identity-card,
  .player-identity-card-featured {
    width: min(100%, 330px);
  }

  .player-card-rating {
    transform: scale(0.9);
    transform-origin: top right;
  }

  .stats-table-wrap::after {
    content: "Swipe table horizontally";
    display: block;
    padding: 0.5rem 0.25rem 0;
    color: rgba(230, 245, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .schedule-modal-window,
  .modal-window,
  .admin-modal-window {
    width: 96vw;
    max-width: 96vw;
    max-height: 86vh;
    border-radius: 1rem;
  }
}

@media (max-width: 430px) {
  .page-shell {
    padding-inline: 0.55rem;
  }

  .stats-hero,
  .player-card-hero {
    padding: 1.25rem;
  }

  .stats-hero h1,
  .player-card-hero h1 {
    font-size: clamp(1.9rem, 14vw, 2.8rem);
  }

  .player-stat-grid {
    grid-template-columns: 1fr !important;
  }

  .player-section-impact-label {
    font-size: 0.64rem;
  }

  .player-card-rating {
    transform: scale(0.82);
  }
}


/* AGL Schedule Mobile Minimal Scoreboard v6
   Desktop schedule layout remains original.
*/
.schedule-mobile-status {
  display: none;
}

@media (max-width: 640px) {
  .schedule-game-card {
    padding: 0.75rem !important;
  }

  .schedule-game-card .schedule-game-meta {
    display: none !important;
  }

  .schedule-game-card .schedule-matchup {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    gap: 0.42rem !important;
    width: 100% !important;
  }

  .schedule-game-card .schedule-team {
    flex: initial !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.28rem !important;
    min-width: 0 !important;
    width: auto !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .schedule-game-card .schedule-team:last-of-type {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .schedule-game-card .schedule-team img,
  .schedule-game-card .schedule-team-fallback {
    width: 1.55rem !important;
    height: 1.55rem !important;
    flex-basis: 1.55rem !important;
    border-radius: 0.4rem !important;
  }

  .schedule-game-card .schedule-team > div {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.18rem !important;
    min-width: 0 !important;
  }

  .schedule-game-card .schedule-team strong {
    font-size: clamp(0.86rem, 4.3vw, 1.08rem) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .schedule-game-card .schedule-team span {
    display: none !important;
  }

  .schedule-game-card .schedule-versus {
    justify-self: center !important;
    font-size: 0 !important;
    width: auto !important;
  }

  .schedule-game-card .schedule-versus::before {
    content: "@";
    color: rgba(221, 234, 246, 0.72);
    font-size: 0.78rem;
    font-weight: 950;
  }

  .schedule-game-card .schedule-scoreboard {
    display: contents !important;
  }

  .schedule-game-card .schedule-scoreboard > span {
    color: #ff6f7a !important;
    font-size: clamp(0.86rem, 4.3vw, 1.08rem) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    min-width: auto !important;
  }

  .schedule-game-card .schedule-scoreboard strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 0 !important;
    width: auto !important;
    justify-self: center !important;
  }

  .schedule-game-card .schedule-scoreboard strong::before {
    content: "@";
    color: rgba(221, 234, 246, 0.72);
    font-size: 0.78rem;
    font-weight: 950;
  }

  .schedule-game-card .schedule-scoreboard strong small {
    display: none !important;
  }

  .schedule-game-card .schedule-mobile-status {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    justify-self: end !important;
    min-width: 4.05rem !important;
    max-width: 5.6rem !important;
    padding: 0.32rem 0.5rem !important;
    border-radius: 999px !important;
    background: rgba(93, 231, 255, 0.08) !important;
    border: 1px solid rgba(93, 231, 255, 0.22) !important;
    color: #5de7ff !important;
    font-size: clamp(0.64rem, 3.1vw, 0.78rem) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: 0.03em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .schedule-game-card.is-final .schedule-mobile-status {
    background: rgba(56, 224, 139, 0.1) !important;
    border-color: rgba(56, 224, 139, 0.34) !important;
    color: #63dd88 !important;
  }

  .schedule-game-card.is-final-ot .schedule-mobile-status {
    background: rgba(255, 214, 74, 0.1) !important;
    border-color: rgba(255, 214, 74, 0.34) !important;
    color: #ffd64a !important;
  }
}

@media (max-width: 390px) {
  .schedule-game-card .schedule-matchup {
    gap: 0.25rem !important;
  }

  .schedule-game-card .schedule-team img,
  .schedule-game-card .schedule-team-fallback {
    width: 1.35rem !important;
    height: 1.35rem !important;
    flex-basis: 1.35rem !important;
  }

  .schedule-game-card .schedule-mobile-status {
    min-width: 3.7rem !important;
    padding-inline: 0.35rem !important;
  }
}


/* AGL Schedule Date-Based Scoreboard Rework v7 */
.schedule-date-group {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.schedule-date-group + .schedule-date-group {
  margin-top: 1.25rem;
}

.schedule-date-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 0.95rem;
  background: rgba(3, 12, 22, 0.42);
}

.schedule-date-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.schedule-date-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-date-games {
  display: grid;
  gap: 0.75rem;
}

.schedule-date-group .schedule-game-card {
  border-radius: 0.8rem;
}

/* Desktop: restore wide matchup behavior and anchor home team right */
@media (min-width: 641px) {
  .schedule-date-group .schedule-matchup {
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    gap: 1rem;
  }

  .schedule-date-group .schedule-team {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .schedule-date-group .schedule-team:last-child {
    justify-content: flex-end;
    text-align: right;
  }

  .schedule-date-group .schedule-scoreboard,
  .schedule-date-group .schedule-versus {
    justify-self: center;
  }

  .schedule-date-group .schedule-mobile-status {
    display: none !important;
  }
}

/* Mobile: compact scoreboard row, date groups only */
@media (max-width: 640px) {
  .schedule-date-heading {
    padding: 0.75rem 0.85rem;
  }
.schedule-date-group .schedule-game-card {
  }
.schedule-date-group .schedule-matchup {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto !important;
  }

  .schedule-date-group .schedule-team {
    flex: initial !important;
  }
.schedule-date-group .schedule-team img,
  .schedule-date-group .schedule-team-fallback {
    width: 1.55rem !important;
    height: 1.55rem !important;
    flex-basis: 1.55rem !important;
  }

  .schedule-date-group .schedule-team > div {
    gap: 0.18rem !important;
  }
.schedule-date-group .schedule-team span {
  }
.schedule-date-group .schedule-versus::before {
  }
.schedule-date-group .schedule-scoreboard > span {
    line-height: 1 !important;
  }

  .schedule-date-group .schedule-scoreboard strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .schedule-date-group .schedule-scoreboard strong::before {
    content: "@";
    color: rgba(221, 234, 246, 0.72);
    font-size: 0.78rem;
    font-weight: 950;
  }
.schedule-date-group .schedule-mobile-status {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    justify-self: end !important;
    min-width: 4.05rem !important;
    max-width: 5.6rem !important;
    padding: 0.32rem 0.5rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(93, 231, 255, 0.22) !important;
    font-size: clamp(0.64rem, 3.1vw, 0.78rem) !important;
    font-weight: 950 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }
.schedule-date-group .schedule-game-card.is-final-ot .schedule-mobile-status {
    background: rgba(255, 214, 74, 0.1) !important;
    border-color: rgba(255, 214, 74, 0.34) !important;
    color: #ffd64a !important;
  }
}

@media (max-width: 390px) {
  .schedule-date-group .schedule-matchup {
    gap: 0.25rem !important;
  }

  .schedule-date-group .schedule-team img,
  .schedule-date-group .schedule-team-fallback {
    width: 1.35rem !important;
    height: 1.35rem !important;
    flex-basis: 1.35rem !important;
  }

  .schedule-date-group .schedule-mobile-status {
    min-width: 3.7rem !important;
    padding-inline: 0.35rem !important;
  }
}


/* AGL Schedule Mobile Exact Row v8
   Uses dedicated mobile-only markup so desktop layout is not reshaped.
*/
.schedule-mobile-row {
  display: none;
}

@media (max-width: 640px) {
  .schedule-date-group .schedule-game-card {
    padding: 0.7rem 0.75rem !important;
  }

  .schedule-date-group .schedule-game-meta,
  .schedule-date-group .schedule-matchup {
    display: none !important;
  }

  .schedule-mobile-row {
    display: grid !important;
    grid-template-columns: minmax(0, auto) auto minmax(0, auto) auto;
    align-items: center;
    gap: 0.48rem;
    width: 100%;
    min-width: 0;
  }

  .schedule-mobile-team {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
    white-space: nowrap;
  }

  .schedule-mobile-team img,
  .schedule-mobile-team .schedule-team-fallback {
    width: 1.65rem !important;
    height: 1.65rem !important;
    max-width: 1.65rem !important;
    max-height: 1.65rem !important;
    flex: 0 0 1.65rem !important;
    object-fit: contain;
    border-radius: 0.38rem;
  }

  .schedule-mobile-team strong {
    color: #ffffff;
    font-size: clamp(0.92rem, 4.6vw, 1.12rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .schedule-mobile-score {
    color: #ff6f7a;
    font-size: clamp(0.92rem, 4.6vw, 1.12rem);
    font-weight: 950;
    line-height: 1;
  }

  .schedule-mobile-at {
    justify-self: center;
    color: rgba(221, 234, 246, 0.72);
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1;
  }

  .schedule-mobile-badge {
    justify-self: end;
    min-width: 4.1rem;
    max-width: 5.8rem;
    padding: 0.34rem 0.55rem;
    border-radius: 999px;
    background: rgba(93, 231, 255, 0.08);
    border: 1px solid rgba(93, 231, 255, 0.25);
    color: #5de7ff;
    font-size: clamp(0.66rem, 3.2vw, 0.8rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0.03em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .schedule-mobile-row.is-final .schedule-mobile-badge {
    background: rgba(56, 224, 139, 0.1);
    border-color: rgba(56, 224, 139, 0.36);
    color: #63dd88;
  }

  .schedule-mobile-row.is-final-ot .schedule-mobile-badge {
    background: rgba(255, 214, 74, 0.1);
    border-color: rgba(255, 214, 74, 0.36);
    color: #ffd64a;
  }
}

@media (max-width: 410px) {
  .schedule-mobile-row {
    grid-template-columns: minmax(0, auto) auto minmax(0, auto) auto;
    gap: 0.34rem;
  }

  .schedule-mobile-team {
    gap: 0.24rem;
  }

  .schedule-mobile-team img,
  .schedule-mobile-team .schedule-team-fallback {
    width: 1.42rem !important;
    height: 1.42rem !important;
    max-width: 1.42rem !important;
    max-height: 1.42rem !important;
    flex-basis: 1.42rem !important;
  }

  .schedule-mobile-badge {
    min-width: 3.7rem;
    padding-inline: 0.4rem;
  }
}


/* AGL Schedule Compact Cards Rebuild v14 */
.schedule-date-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.45rem;
}

.schedule-date-group .schedule-game-card {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.schedule-date-group .schedule-game-meta,
.schedule-date-group .schedule-matchup,
.schedule-date-group .schedule-unified-row,
.schedule-date-group .schedule-mobile-row,
.schedule-date-group .schedule-mobile-status {
  display: none !important;
}

.schedule-compact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 4.55rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.48rem;
  overflow: hidden;
}
.schedule-compact-teams {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

.schedule-compact-team {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.schedule-compact-team img,
.schedule-compact-team .schedule-team-fallback {
  width: 1.55rem;
  height: 1.55rem;
  max-width: 1.55rem;
  max-height: 1.55rem;
  object-fit: contain;
  border-radius: 0.25rem;
}

.schedule-compact-name {
  display: grid;
  min-width: 0;
}

.schedule-compact-name strong {
  color: #ffffff;
  font-size: clamp(0.9rem, 1.45vw, 1.08rem);
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-compact-name span {
  display: none;
}

.schedule-compact-score {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 850;
  line-height: 1;
}

.schedule-compact-score.is-winner {
  color: #ffd64a;
  font-weight: 1000;
}

.schedule-compact-meta {
  display: grid;
  gap: 0.18rem;
  justify-items: end;
  align-content: center;
  min-width: 3.7rem;
  text-align: right;
}

.schedule-compact-meta strong {
  color: #ffffff;
  font-size: clamp(0.9rem, 1.55vw, 1.08rem);
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-compact-card.is-final .schedule-compact-meta strong {
  font-size: clamp(0.86rem, 1.35vw, 1rem);
  letter-spacing: 0.04em;
}

.schedule-compact-card.is-final-ot .schedule-compact-meta strong {
  color: #ffd64a;
}

.schedule-compact-meta span {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-compact-card.is-upcoming .schedule-compact-name strong {
  font-weight: 620;
}

.schedule-compact-card.is-upcoming .schedule-compact-meta strong {
  font-weight: 700;
}

@media (max-width: 900px) {
  .schedule-date-games {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 640px) {
  .schedule-date-games {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .schedule-compact-card {
    min-height: 3.6rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.58rem 0.66rem;
    border-radius: 0.78rem;
  }

  .schedule-compact-teams {
    grid-template-columns: minmax(0, auto) auto minmax(0, auto);
    align-items: center;
    gap: 0.36rem;
  }

  .schedule-compact-team {
    display: inline-grid;
    grid-template-columns: 1.42rem auto auto;
    gap: 0.28rem;
  }

  .schedule-compact-team + .schedule-compact-team::before {
    content: "@";
    align-self: center;
    color: rgba(221, 234, 246, 0.72);
    font-size: 0.78rem;
    font-weight: 950;
    margin-right: 0.08rem;
  }

  .schedule-compact-team img,
  .schedule-compact-team .schedule-team-fallback {
    width: 1.42rem;
    height: 1.42rem;
    max-width: 1.42rem;
    max-height: 1.42rem;
  }

  .schedule-compact-name strong,
  .schedule-compact-score {
    font-size: clamp(0.9rem, 4.5vw, 1.08rem);
  }

  .schedule-compact-meta {
    min-width: 4.1rem;
  }

  .schedule-compact-card.is-final .schedule-compact-meta strong,
  .schedule-compact-meta strong {
    padding: 0.33rem 0.5rem;
    border-radius: 999px;
    background: rgba(93, 231, 255, 0.08);
    border: 1px solid rgba(93, 231, 255, 0.25);
    color: #5de7ff;
    font-size: clamp(0.64rem, 3.1vw, 0.78rem);
    font-weight: 950;
  }

  .schedule-compact-card.is-final .schedule-compact-meta strong {
    background: rgba(56, 224, 139, 0.1);
    border-color: rgba(56, 224, 139, 0.36);
    color: #63dd88;
  }

  .schedule-compact-card.is-final-ot .schedule-compact-meta strong {
    background: rgba(255, 214, 74, 0.1);
    border-color: rgba(255, 214, 74, 0.36);
    color: #ffd64a;
  }

  .schedule-compact-meta span {
    display: none;
  }
}


/* AGL Schedule Mobile Clean Compact Cards v15 */
.schedule-name-abbr {
  display: none;
}

@media (max-width: 640px) {
  .schedule-date-games {
    grid-template-columns: 1fr !important;
    gap: 0.58rem !important;
  }

  .schedule-compact-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-height: 4.25rem !important;
    padding: 0.68rem 0.75rem !important;
    border-radius: 0.82rem !important;
  }

  .schedule-compact-teams {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
  }

  .schedule-compact-team {
    display: grid !important;
    grid-template-columns: 1.65rem minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.48rem !important;
    min-width: 0 !important;
  }

  .schedule-compact-team + .schedule-compact-team::before {
    content: none !important;
  }

  .schedule-compact-team img,
  .schedule-compact-team .schedule-team-fallback {
    width: 1.65rem !important;
    height: 1.65rem !important;
    max-width: 1.65rem !important;
    max-height: 1.65rem !important;
    object-fit: contain !important;
  }

  .schedule-compact-name {
    min-width: 0 !important;
  }

  .schedule-compact-name .schedule-name-full {
    display: none !important;
  }

  .schedule-compact-name .schedule-name-abbr {
    display: block !important;
    color: #ffffff !important;
    font-size: clamp(1rem, 5vw, 1.25rem) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .schedule-compact-card.is-upcoming .schedule-name-abbr {
    font-weight: 650 !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .schedule-compact-score {
    justify-self: end !important;
    color: #ffffff !important;
    font-size: clamp(1rem, 5vw, 1.25rem) !important;
    font-weight: 850 !important;
  }

  .schedule-compact-score.is-winner {
    color: #ffd64a !important;
    font-weight: 1000 !important;
    text-shadow:
      0 0 8px rgba(255, 214, 74, 0.44),
      0 0 16px rgba(255, 214, 74, 0.18) !important;
  }

  .schedule-compact-meta {
    display: grid !important;
    gap: 0.28rem !important;
    justify-items: end !important;
    align-content: center !important;
    min-width: 4.2rem !important;
    text-align: right !important;
  }

  .schedule-compact-meta strong {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: clamp(0.92rem, 4.5vw, 1.1rem) !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  .schedule-compact-card.is-final .schedule-compact-meta strong {
    color: #ffffff !important;
    font-size: clamp(0.82rem, 3.8vw, 0.98rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
  }

  .schedule-compact-card.is-final-ot .schedule-compact-meta strong {
    color: #ffd64a !important;
  }

  .schedule-compact-meta span {
    display: block !important;
    color: rgba(93, 231, 255, 0.94) !important;
    font-size: clamp(0.62rem, 3vw, 0.72rem) !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .schedule-compact-card.is-final .schedule-compact-meta strong {
    padding: 0.32rem 0.5rem !important;
    border-radius: 999px !important;
    background: rgba(56, 224, 139, 0.1) !important;
    border: 1px solid rgba(56, 224, 139, 0.34) !important;
    color: #63dd88 !important;
  }

  .schedule-compact-card.is-final-ot .schedule-compact-meta strong {
    background: rgba(255, 214, 74, 0.1) !important;
    border-color: rgba(255, 214, 74, 0.34) !important;
    color: #ffd64a !important;
  }

  .schedule-compact-card.is-upcoming .schedule-compact-meta strong {
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.86) !important;
  }

  .schedule-date-heading {
    padding: 0.72rem 0.85rem !important;
  }

  .schedule-date-heading h2 {
    font-size: clamp(0.95rem, 4.6vw, 1.15rem) !important;
  }
}

@media (max-width: 390px) {
  .schedule-compact-card {
    gap: 0.55rem !important;
    padding: 0.62rem 0.65rem !important;
  }

  .schedule-compact-team {
    grid-template-columns: 1.45rem minmax(0, 1fr) auto !important;
    gap: 0.38rem !important;
  }

  .schedule-compact-team img,
  .schedule-compact-team .schedule-team-fallback {
    width: 1.45rem !important;
    height: 1.45rem !important;
    max-width: 1.45rem !important;
    max-height: 1.45rem !important;
  }

  .schedule-compact-meta {
    min-width: 3.75rem !important;
  }
}


/* AGL Schedule Compact Card Visual Polish v19
   CSS-only polish pass. No render logic changes.
*/
.schedule-date-heading {
  background:
    linear-gradient(135deg, rgba(4, 17, 30, 0.92), rgba(3, 9, 18, 0.86)),
    radial-gradient(circle at 8% 50%, rgba(93, 231, 255, 0.08), transparent 38%);
  border-color: rgba(93, 231, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.schedule-date-heading h2 {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

.schedule-date-heading span {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(93, 231, 255, 0.06);
  border: 1px solid rgba(93, 231, 255, 0.12);
}

.schedule-compact-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(93, 231, 255, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(93, 231, 255, 0.08), transparent 42%),
    linear-gradient(135deg, rgba(7, 25, 36, 0.92), rgba(5, 9, 17, 0.96) 48%, rgba(15, 10, 18, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 26px rgba(93, 231, 255, 0.025),
    0 8px 22px rgba(0, 0, 0, 0.3);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.schedule-compact-card::before {
  z-index: -1;
}

.schedule-compact-card::after {
  z-index: -1;
}

.schedule-compact-card.is-final {
  border-color: rgba(255, 214, 74, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 214, 74, 0.08), transparent 42%),
    linear-gradient(135deg, rgba(30, 16, 12, 0.92), rgba(7, 8, 14, 0.96) 52%, rgba(14, 10, 14, 0.92));
}

.schedule-compact-card.is-upcoming {
  border-color: rgba(93, 231, 255, 0.22);
  background:
    radial-gradient(circle at 0% 0%, rgba(93, 231, 255, 0.075), transparent 42%),
    linear-gradient(135deg, rgba(5, 26, 36, 0.9), rgba(5, 10, 18, 0.96) 52%, rgba(8, 10, 18, 0.92));
}

@media (hover: hover) and (pointer: fine) {
  .schedule-compact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(93, 231, 255, 0.46);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 0 30px rgba(93, 231, 255, 0.045),
      0 12px 32px rgba(0, 0, 0, 0.38),
      0 0 18px rgba(93, 231, 255, 0.12);
  }

  .schedule-compact-card.is-final:hover {
    border-color: rgba(255, 214, 74, 0.4);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.07),
      inset 0 0 30px rgba(255, 214, 74, 0.035),
      0 12px 32px rgba(0, 0, 0, 0.38),
      0 0 18px rgba(255, 214, 74, 0.1);
  }
}

.schedule-compact-name strong {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.045);
}

.schedule-compact-card.is-upcoming .schedule-compact-name strong {
  color: rgba(255, 255, 255, 0.92);
}

.schedule-compact-card.is-final .schedule-compact-name strong {
  color: rgba(255, 255, 255, 0.96);
}

.schedule-compact-score {
  color: rgba(241, 244, 248, 0.92);
}

.schedule-compact-score.is-winner {
  text-shadow:
    0 0 8px rgba(255, 214, 74, 0.5),
    0 0 18px rgba(255, 214, 74, 0.22),
    0 0 28px rgba(255, 214, 74, 0.08);
}

.schedule-compact-meta {
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-compact-meta strong {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.schedule-compact-card.is-upcoming .schedule-compact-meta strong {
  color: rgba(255, 255, 255, 0.92);
}

.schedule-compact-meta span {
  color: rgba(93, 231, 255, 0.82);
}

.schedule-compact-card.is-final .schedule-compact-meta strong {
  color: #ffffff;
}

.schedule-compact-card.is-final .schedule-compact-meta span {
  color: rgba(225, 238, 248, 0.66);
}
.schedule-compact-card.is-final .schedule-compact-team.is-winner img,
@media (max-width: 640px) {
  .schedule-compact-card {
    border-color: rgba(93, 231, 255, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 8px 20px rgba(0, 0, 0, 0.24);
  }

  .schedule-compact-meta {
    padding-left: 0.5rem;
  }

  .schedule-compact-card.is-final .schedule-compact-meta strong {
    box-shadow: 0 0 12px rgba(56, 224, 139, 0.08);
  }

  .schedule-compact-card.is-final-ot .schedule-compact-meta strong {
    box-shadow: 0 0 12px rgba(255, 214, 74, 0.1);
  }
}


/* AGL Schedule Final Compact Polish v20
   CSS-only final visual pass. No layout or JS changes.
*/
.schedule-compact-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(70, 140, 255, 0.26) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(93, 231, 255, 0.10), transparent 42%),
    linear-gradient(
      135deg,
      rgba(0, 140, 255, 0.075) 0%,
      rgba(0, 0, 0, 0.74) 46%,
      rgba(120, 0, 255, 0.06) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    inset 0 0 26px rgba(93,231,255,0.035),
    0 0 0 1px rgba(0,140,255,0.045),
    0 8px 28px rgba(0,0,0,0.34) !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.schedule-compact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(93,231,255,0.14), transparent 30%, transparent 70%, rgba(93,231,255,0.08));
  opacity: 0.42;
}

.schedule-compact-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), transparent 35%);
}

@media (hover: hover) and (pointer: fine) {
  .schedule-compact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(90, 180, 255, 0.48) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.07),
      inset 0 0 32px rgba(93,231,255,0.052),
      0 0 0 1px rgba(0,140,255,0.08),
      0 12px 34px rgba(0,0,0,0.44),
      0 0 20px rgba(0,140,255,0.13) !important;
  }
}
@media (hover: hover) and (pointer: fine) {
  .schedule-compact-card.is-final:hover {
    border-color: rgba(255, 214, 74, 0.44) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.07),
      inset 0 0 30px rgba(255,214,74,0.04),
      0 12px 34px rgba(0,0,0,0.44),
      0 0 20px rgba(255,214,74,0.12) !important;
  }
}
.schedule-compact-card.is-final .schedule-compact-score:not(.is-winner) {
  opacity: 0.76;
}

.schedule-compact-card.is-final .schedule-compact-meta strong {
  border-radius: 999px !important;
  padding: 0.34rem 0.62rem !important;
  font-size: clamp(0.7rem, 1vw, 0.82rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 14px rgba(90, 255, 120, 0.08);
}

.schedule-compact-card.is-final-ot .schedule-compact-meta strong {
  box-shadow: 0 0 14px rgba(255, 214, 74, 0.10);
}

.schedule-compact-meta span {
  text-shadow: 0 0 10px rgba(93, 231, 255, 0.12);
}

.schedule-compact-card.is-upcoming .schedule-compact-name strong {
  font-weight: 660 !important;
  color: rgba(255,255,255,0.91) !important;
}

.schedule-compact-card.is-upcoming .schedule-compact-meta strong {
  font-weight: 760 !important;
  color: rgba(255,255,255,0.95) !important;
}

.schedule-compact-team img,
.schedule-compact-team .schedule-team-fallback {
  filter: drop-shadow(0 0 8px rgba(93, 231, 255, 0.11));
}

.schedule-compact-card.is-final .schedule-compact-team.is-winner img,
.schedule-compact-card.is-final .schedule-compact-team.is-winner .schedule-team-fallback {
  filter: drop-shadow(0 0 10px rgba(255, 214, 74, 0.20));
}

@media (max-width: 640px) {
  .schedule-compact-card {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 8px 22px rgba(0,0,0,0.28) !important;
  }

  .schedule-compact-card.is-final .schedule-compact-meta strong {
    font-size: clamp(0.64rem, 3vw, 0.78rem) !important;
    padding: 0.32rem 0.5rem !important;
  }
}


/* AGL Schedule Finalized Blue/Silver Glow v21
   Overrides finalized-game atmosphere only.
   Keeps gold winning score intact.
*/
.schedule-compact-card.is-final {
  border-color: rgba(170, 210, 255, 0.24) !important;
  background:
    radial-gradient(
      circle at top left,
      rgba(180, 220, 255, 0.08),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(80, 160, 255, 0.05) 0%,
      rgba(0, 0, 0, 0.82) 48%,
      rgba(180, 220, 255, 0.04) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 24px rgba(180,220,255,0.035),
    0 0 0 1px rgba(120,180,255,0.06),
    0 10px 28px rgba(0,0,0,0.42),
    0 0 22px rgba(180,220,255,0.10) !important;
}

@media (hover: hover) and (pointer: fine) {
  .schedule-compact-card.is-final:hover {
    border-color: rgba(210, 230, 255, 0.42) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.10),
      inset 0 0 34px rgba(180,220,255,0.05),
      0 12px 34px rgba(0,0,0,0.48),
      0 0 30px rgba(180,220,255,0.14) !important;
  }
}
.schedule-compact-card.is-final-ot .schedule-compact-meta strong {
  background: rgba(220,235,255,0.12) !important;
  border-color: rgba(220,235,255,0.32) !important;
  color: #ffffff !important;
}


/* AGL Schedule Vibrant Blue/Silver Glow v22
   Brighter version of the finalized-card polish.
   Keeps the compact layout unchanged.
*/
.schedule-compact-card {
  border-color: rgba(48, 190, 255, 0.42) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(60, 200, 255, 0.16), transparent 43%),
    linear-gradient(
      135deg,
      rgba(5, 55, 86, 0.66) 0%,
      rgba(3, 8, 18, 0.90) 48%,
      rgba(13, 21, 54, 0.82) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 0 28px rgba(60,200,255,0.07),
    0 0 0 1px rgba(60,200,255,0.10),
    0 8px 28px rgba(0,0,0,0.36),
    0 0 18px rgba(60,200,255,0.12) !important;
}
.schedule-compact-card.is-upcoming {
}

.schedule-compact-card.is-final {
  border-color: rgba(220, 238, 255, 0.72) !important;
  background:
    radial-gradient(circle at top left, rgba(230, 245, 255, 0.18), transparent 38%),
    radial-gradient(circle at 85% 50%, rgba(80, 180, 255, 0.12), transparent 42%),
    linear-gradient(
      135deg,
      rgba(74, 143, 190, 0.30) 0%,
      rgba(5, 8, 16, 0.91) 45%,
      rgba(180, 220, 255, 0.12) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 0 34px rgba(220,238,255,0.08),
    0 0 0 1px rgba(220,238,255,0.14),
    0 10px 30px rgba(0,0,0,0.44),
    0 0 22px rgba(180,220,255,0.24),
    0 0 34px rgba(48,190,255,0.10) !important;
}
.schedule-compact-card.is-final::after {
}

@media (hover: hover) and (pointer: fine) {
  .schedule-compact-card:hover {
    border-color: rgba(70, 210, 255, 0.70) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.14),
      inset 0 0 34px rgba(60,200,255,0.10),
      0 12px 34px rgba(0,0,0,0.44),
      0 0 26px rgba(60,200,255,0.22) !important;
  }

  .schedule-compact-card.is-final:hover {
    border-color: rgba(245, 250, 255, 0.90) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.20),
      inset 0 0 40px rgba(220,238,255,0.10),
      0 12px 36px rgba(0,0,0,0.48),
      0 0 30px rgba(220,238,255,0.30),
      0 0 42px rgba(60,200,255,0.16) !important;
  }
}
.schedule-compact-score.is-winner {
}
.schedule-date-heading {
}

.schedule-date-heading span {
  background: rgba(70, 210, 255, 0.10) !important;
  border-color: rgba(70, 210, 255, 0.20) !important;
  color: rgba(220, 240, 255, 0.88) !important;
}

@media (max-width: 640px) {
  .schedule-compact-card {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.10),
      0 8px 24px rgba(0,0,0,0.34),
      0 0 16px rgba(60,200,255,0.12) !important;
  }

  .schedule-compact-card.is-final {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.16),
      0 8px 24px rgba(0,0,0,0.38),
      0 0 22px rgba(220,238,255,0.22) !important;
  }
}


/* AGL Schedule Crisp Outline v23
   Reduces interior wash. Makes final games crisp white/silver border glow.
   Upcoming games get metallic blue border glow.
*/
.schedule-compact-card {
  background:
    linear-gradient(135deg, rgba(3, 18, 28, 0.92), rgba(2, 6, 14, 0.97) 52%, rgba(7, 10, 23, 0.95)) !important;
  border-color: rgba(48, 176, 255, 0.46) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 0 0 1px rgba(0, 135, 255, 0.08),
    0 7px 20px rgba(0,0,0,0.34),
    0 0 10px rgba(48,176,255,0.12) !important;
}
.schedule-compact-card::after {
}

.schedule-compact-card.is-upcoming {
  background:
    linear-gradient(135deg, rgba(2, 28, 42, 0.92), rgba(2, 7, 16, 0.97) 52%, rgba(6, 10, 24, 0.94)) !important;
}

/* Finished games: crisp white/silver outline only, darker interior */
.schedule-compact-card.is-final {
  background:
    linear-gradient(135deg, rgba(8, 16, 25, 0.94), rgba(3, 6, 12, 0.98) 52%, rgba(8, 13, 21, 0.96)) !important;
  border-color: rgba(235, 247, 255, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 0 1px rgba(235,247,255,0.14),
    0 8px 22px rgba(0,0,0,0.40),
    0 0 10px rgba(235,247,255,0.22),
    0 0 18px rgba(90,180,255,0.12) !important;
}
.schedule-compact-card.is-final::after {
}

@media (hover: hover) and (pointer: fine) {
  .schedule-compact-card:hover {
    border-color: rgba(80, 205, 255, 0.72) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.07),
      0 0 0 1px rgba(80,205,255,0.13),
      0 10px 26px rgba(0,0,0,0.42),
      0 0 16px rgba(80,205,255,0.20) !important;
  }

  .schedule-compact-card.is-final:hover {
    border-color: rgba(255,255,255,0.95) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.12),
      0 0 0 1px rgba(255,255,255,0.18),
      0 10px 28px rgba(0,0,0,0.46),
      0 0 14px rgba(255,255,255,0.28),
      0 0 22px rgba(90,180,255,0.16) !important;
  }
}

.schedule-compact-card.is-final .schedule-compact-meta strong {
  background: rgba(235,247,255,0.10) !important;
  border: 1px solid rgba(235,247,255,0.42) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 10px rgba(235,247,255,0.14) !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.18) !important;
}

.schedule-compact-score.is-winner {
  color: #ffd85a !important;
  font-weight: 1000 !important;
  text-shadow:
    0 0 7px rgba(255,216,90,0.50),
    0 0 14px rgba(255,216,90,0.18) !important;
}

.schedule-compact-card.is-final .schedule-compact-score:not(.is-winner) {
  color: rgba(235, 242, 250, 0.88) !important;
  opacity: 0.86 !important;
}

.schedule-compact-meta span {
  color: rgba(80, 205, 255, 0.95) !important;
  text-shadow: 0 0 8px rgba(80,205,255,0.14) !important;
}

@media (max-width: 640px) {
  .schedule-compact-card.is-final {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.10),
      0 7px 20px rgba(0,0,0,0.38),
      0 0 12px rgba(235,247,255,0.20) !important;
  }

  .schedule-compact-card.is-upcoming {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.055),
      0 7px 18px rgba(0,0,0,0.34),
      0 0 10px rgba(48,185,255,0.14) !important;
  }
}


/* AGL Schedule Grouped Date + Crisp Border v24 */

/* Date group becomes one grouped box holding its date bar and games */
.schedule-date-group {
  display: grid;
  gap: 0.65rem;
  padding: 0.82rem !important;
  border: 1px solid rgba(70, 210, 255, 0.16) !important;
  border-radius: 1rem !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(70, 210, 255, 0.055), transparent 36%),
    linear-gradient(135deg, rgba(5, 16, 27, 0.72), rgba(3, 7, 14, 0.86)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 10px 28px rgba(0,0,0,0.25) !important;
}

.schedule-date-group + .schedule-date-group {
  margin-top: 1rem !important;
}

/* Remove game count from date bars */
.schedule-date-heading span {
  display: none !important;
}

.schedule-date-heading {
  padding: 0.78rem 0.95rem !important;
  border-radius: 0.78rem !important;
  border-color: rgba(70, 210, 255, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(3, 14, 24, 0.92), rgba(2, 7, 14, 0.90)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 0 12px rgba(70,210,255,0.055) !important;
}

/* Core card interiors stay dark; effects mostly live on border */
.schedule-compact-card {
  background:
    linear-gradient(135deg, rgba(3, 17, 27, 0.94), rgba(2, 5, 12, 0.985) 54%, rgba(6, 9, 20, 0.95)) !important;
  border-color: rgba(48, 185, 255, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 0 0 1px rgba(48,185,255,0.08),
    0 7px 20px rgba(0,0,0,0.32),
    0 0 11px rgba(48,185,255,0.15) !important;
}

.schedule-compact-card::before {
  opacity: 0.16 !important;
  background:
    linear-gradient(90deg, rgba(48,185,255,0.34), transparent 16%, transparent 84%, rgba(48,185,255,0.24)) !important;
}

.schedule-compact-card::after {
  opacity: 0.28 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 35%) !important;
}

.schedule-compact-card.is-upcoming {
  border-color: rgba(54, 190, 255, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 0 0 1px rgba(54,190,255,0.09),
    0 7px 20px rgba(0,0,0,0.32),
    0 0 12px rgba(54,190,255,0.16) !important;
}

/* Finalized games: crisp border-only silver/white glow, no interior wash */
.schedule-compact-card.is-final {
  background:
    linear-gradient(135deg, rgba(8, 15, 23, 0.96), rgba(2, 5, 10, 0.99) 54%, rgba(8, 12, 20, 0.96)) !important;
  border-color: rgba(235, 247, 255, 0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(235,247,255,0.14),
    0 8px 22px rgba(0,0,0,0.38),
    0 0 9px rgba(235,247,255,0.22),
    0 0 16px rgba(90,180,255,0.10) !important;
}

.schedule-compact-card.is-final::before {
  opacity: 0.30 !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.46), transparent 12%, transparent 86%, rgba(235,247,255,0.30)) !important;
}

.schedule-compact-card.is-final::after {
  opacity: 0.24 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 32%) !important;
}

/* Records: only appear when JS finds record data, and only for unfinalized games */
.schedule-team-record {
  display: inline-block;
  margin-left: 0.45rem;
  color: rgba(215, 228, 240, 0.62);
  font-style: normal;
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: baseline;
}

.schedule-compact-card.is-final .schedule-team-record {
  display: none !important;
}

.schedule-compact-card.is-upcoming .schedule-team-record {
  color: rgba(215, 228, 240, 0.66);
  text-shadow: 0 0 8px rgba(80,205,255,0.08);
}

/* Keep final badge clean silver/white */
.schedule-compact-card.is-final .schedule-compact-meta strong {
  background: rgba(235,247,255,0.10) !important;
  border: 1px solid rgba(235,247,255,0.42) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 10px rgba(235,247,255,0.14) !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.18) !important;
}

@media (hover: hover) and (pointer: fine) {
  .schedule-compact-card:hover {
    border-color: rgba(78, 205, 255, 0.76) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 0 0 1px rgba(78,205,255,0.13),
      0 10px 26px rgba(0,0,0,0.40),
      0 0 15px rgba(78,205,255,0.20) !important;
  }

  .schedule-compact-card.is-final:hover {
    border-color: rgba(255,255,255,0.96) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.10),
      0 0 0 1px rgba(255,255,255,0.16),
      0 10px 28px rgba(0,0,0,0.44),
      0 0 13px rgba(255,255,255,0.28),
      0 0 20px rgba(90,180,255,0.14) !important;
  }
}

@media (max-width: 640px) {
  .schedule-date-group {
    padding: 0.7rem !important;
  }

  .schedule-team-record {
    margin-left: 0.35rem;
    font-size: 0.6em;
  }
}


/* AGL Schedule Same-Time Grouping v25 */
.schedule-time-groups {
  display: grid;
  gap: 0.82rem;
}

.schedule-time-group {
  display: grid;
  gap: 0.58rem;
}

.schedule-time-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.45rem 0.25rem;
  border-bottom: 1px solid rgba(70, 210, 255, 0.16);
  color: rgba(236, 248, 255, 0.96);
}

.schedule-time-heading strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f4fbff;
  font-size: 0.9rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(80, 205, 255, 0.2);
}

.schedule-time-heading strong::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: rgba(80, 205, 255, 0.94);
  box-shadow: 0 0 12px rgba(80, 205, 255, 0.52);
}

.schedule-time-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.24rem 0.48rem;
  border: 1px solid rgba(80, 205, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 16, 28, 0.58);
  color: rgba(190, 213, 230, 0.72);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-time-group .schedule-date-games {
  margin: 0 !important;
}

@media (max-width: 640px) {
  .schedule-time-groups {
    gap: 0.7rem;
  }

  .schedule-time-heading {
    padding-inline: 0.25rem;
  }

  .schedule-time-heading strong {
    font-size: 0.8rem;
  }

  .schedule-time-heading span {
    display: none;
  }
}


/* AGL Schedule Hero Minimal Motion v26 */
.schedule-hero-minimal {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(190px, 22vw, 250px);
  place-items: center;
  overflow: hidden;
  padding: clamp(2.35rem, 5vw, 3.35rem) 1rem clamp(2rem, 4vw, 2.7rem);
  border-bottom: 1px solid rgba(154, 204, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(4, 9, 17, 0.08), rgba(4, 9, 17, 0.92)),
    radial-gradient(ellipse at 50% 18%, rgba(21, 216, 255, 0.15), transparent 28rem),
    radial-gradient(ellipse at 16% 32%, rgba(255, 48, 72, 0.09), transparent 22rem),
    rgba(2, 7, 14, 0.72);
}

.schedule-hero-minimal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.05) 18.15%, transparent 18.8%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 92px);
  opacity: 0.42;
  animation: scheduleHeroAmbient 8s ease-in-out infinite alternate;
}

.schedule-hero-minimal::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(21, 216, 255, 0.7), rgba(255, 48, 72, 0.28), rgba(21, 216, 255, 0.7), transparent);
  box-shadow: 0 0 10px rgba(21, 216, 255, 0.24);
}

.schedule-hero-minimal > div {
  position: relative;
  width: min(700px, 100%);
  max-width: 700px;
  padding: 1.15rem 1rem 1.2rem;
  border: 1px solid rgba(154, 204, 255, 0.12);
  border-radius: 14px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    rgba(3, 10, 18, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.schedule-hero-minimal > div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0 38%, rgba(255, 255, 255, 0.075) 50%, transparent 62% 100%);
  opacity: 0.24;
  transform: translateX(-42%);
  animation: scheduleHeroGlassSweep 7s ease-in-out infinite;
}

.schedule-hero-minimal > div::after {
  content: "";
  display: block;
  width: min(260px, 44%);
  height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(21, 216, 255, 0.56), rgba(255, 255, 255, 0.36), rgba(21, 216, 255, 0.56), transparent);
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(21, 216, 255, 0.18);
  animation: scheduleHeroDividerShimmer 5.8s ease-in-out infinite;
}

.schedule-hero-minimal h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(21, 216, 255, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.68);
  animation: scheduleHeroTitlePulse 7.5s ease-in-out infinite alternate;
}

@keyframes scheduleHeroAmbient {
  from {
    opacity: 0.34;
    transform: translate3d(-0.35%, 0, 0);
  }
  to {
    opacity: 0.52;
    transform: translate3d(0.35%, 0, 0);
  }
}

@keyframes scheduleHeroGlassSweep {
  0%, 58%, 100% {
    transform: translateX(-48%);
    opacity: 0;
  }
  70% {
    opacity: 0.22;
  }
  86% {
    transform: translateX(48%);
    opacity: 0;
  }
}

@keyframes scheduleHeroDividerShimmer {
  0%, 100% {
    background-position: 0% 50%;
    opacity: 0.72;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

@keyframes scheduleHeroTitlePulse {
  from {
    text-shadow:
      0 0 10px rgba(21, 216, 255, 0.13),
      0 8px 22px rgba(0, 0, 0, 0.68);
  }
  to {
    text-shadow:
      0 0 16px rgba(21, 216, 255, 0.24),
      0 0 30px rgba(9, 109, 255, 0.12),
      0 8px 22px rgba(0, 0, 0, 0.68);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-hero-minimal::before,
  .schedule-hero-minimal > div::before,
  .schedule-hero-minimal > div::after,
  .schedule-hero-minimal h1 {
    animation: none;
  }
}

@media (max-width: 640px) {
  .schedule-hero-minimal {
    min-height: 170px;
    padding: 2rem 0.75rem 1.85rem;
  }

  .schedule-hero-minimal > div {
    padding: 1rem 0.75rem;
  }

  .schedule-hero-minimal h1 {
    font-size: clamp(2.45rem, 15vw, 4rem);
  }
}


/* AGL Schedule Hero Motion v27 - Mobile Title Fix */
@media (max-width: 760px) {
  .schedule-hero-minimal {
    min-height: 160px;
  }

  .schedule-hero-minimal > div {
    padding: 0.95rem 0.65rem 1rem;
    overflow: hidden;
  }

  .schedule-hero-minimal h1 {
    font-size: clamp(2rem, 12vw, 3.35rem);
    letter-spacing: 0.022em;
    line-height: 0.94;
    white-space: nowrap;
  }

  .schedule-hero-minimal > div::after {
    width: min(210px, 54%);
    margin-top: 0.82rem;
  }
}

@media (max-width: 380px) {
  .schedule-hero-minimal h1 {
    font-size: clamp(1.78rem, 11.2vw, 2.65rem);
    letter-spacing: 0.012em;
  }

  .schedule-hero-minimal > div {
    padding-inline: 0.5rem;
  }
}


/* Records mobile width fix */
@media (max-width: 640px) {
  .records-page {
    padding: 0.65rem;
    overflow: hidden;
  }

  .records-tabs {
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .records-tabs button {
    flex: 0 0 auto;
  }

  .records-leader-heading {
    flex-direction: column;
    align-items: stretch;
  }
.leader-controls .player-view-toggle {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    white-space: nowrap;
  }

  .leader-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    max-width: 100%;
  }

  .leader-list a,
  .leader-top {
    min-width: 0;
  }

  .leader-top strong,
  .leader-list span {
    overflow-wrap: anywhere;
  }
}

/* Stats admin workflow tabs */
.stats-workflow-tabs {
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.stats-workflow-tabs [role="tab"] {
  border-color: rgba(89, 178, 255, 0.55);
}

.stats-workflow-tabs [role="tab"].is-active {
  box-shadow: 0 0 16px rgba(46, 156, 255, 0.35);
}

.stats-workflow-tabs .is-health-check {
  border-color: rgba(67, 255, 170, 0.65);
  color: #7affc8;
  background: rgba(19, 82, 61, 0.28);
}

.stats-workflow-tabs .is-health-check:hover,
.stats-workflow-tabs .is-health-check:focus-visible {
  background: rgba(24, 128, 91, 0.42);
  box-shadow: 0 0 14px rgba(67, 255, 170, 0.28);
}

.stats-workflow-panel[hidden],
[data-stats-edit-panel][hidden],
[data-stats-form-panel][hidden] {
  display: none !important;
}

/* Player profile insight cards */
.player-profile-extras {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.player-profile-extra-card {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 165, 255, 0.08), transparent 52%),
    rgba(2, 10, 20, 0.74);
  box-shadow: inset 0 0 24px rgba(23, 165, 255, 0.05);
}

.player-profile-extra-card h3 {
  margin: 0 0 0.7rem;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.player-profile-mini-grid div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.24);
}

.player-profile-mini-grid span,
.player-profile-mini-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.player-profile-mini-grid strong {
  display: block;
  margin: 0.28rem 0 0.18rem;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .player-profile-extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .player-profile-extras,
  .player-profile-mini-grid {
    grid-template-columns: 1fr;
  }
}


/* Player Profile Layout Polish - equal-height showcase + mobile name fit */
.player-showcase-featured {
  align-items: stretch;
}

.player-showcase-featured > .player-identity-card-featured,
.player-showcase-featured > .player-stat-board-featured {
  min-height: clamp(430px, 42vw, 545px);
  height: 100%;
}

.player-identity-card-featured {
  display: flex;
  flex-direction: column;
}

.player-identity-card-featured .player-position-card-image {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.player-stat-board-featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-card-header-featured h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.player-card-header-featured h2 span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card-header-featured .player-header-team-logo {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .player-showcase-featured > .player-identity-card-featured,
  .player-showcase-featured > .player-stat-board-featured {
    min-height: auto;
  }

  .player-stat-board-featured {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .player-card-header-featured h2 {
    font-size: clamp(1.6rem, 10.5vw, 2.65rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
  }

  .player-card-header-featured h2 span {
    max-width: calc(100vw - 4rem);
  }
}

@media (max-width: 420px) {
  .player-card-header-featured h2 {
    font-size: clamp(1.35rem, 9.5vw, 2.15rem);
  }
}

/* Player Profile Compact Showcase + Mobile Name Fit v2
   Keeps the artwork/card at its natural previous height and compresses
   the stat/profile content to match it instead of stretching the whole card. */
.player-showcase-featured {
  align-items: stretch;
}

.player-showcase-featured > .player-identity-card-featured,
.player-showcase-featured > .player-stat-board-featured {
  min-height: 0 !important;
}

.player-showcase-featured > .player-identity-card-featured {
  height: auto !important;
}

.player-showcase-featured > .player-stat-board-featured {
  height: 100% !important;
  align-self: stretch;
  justify-content: center;
  gap: clamp(0.55rem, 0.9vw, 0.9rem);
  padding: clamp(0.75rem, 1.25vw, 1.05rem);
}

.player-stat-board-featured .player-card-header-featured {
  padding-bottom: clamp(0.55rem, 0.9vw, 0.85rem);
}

.player-stat-board-featured .player-card-kicker {
  margin-bottom: 0.22rem;
  font-size: clamp(0.72rem, 1vw, 0.98rem);
}

.player-stat-board-featured .player-card-header-featured h2 {
  font-size: clamp(2rem, 4.15vw, 4rem);
  line-height: 0.88;
}

.player-stat-board-featured .player-card-header-featured p {
  margin-top: 0.25rem;
  font-size: clamp(0.82rem, 1.45vw, 1.16rem);
}

.player-stat-board-featured .player-feature-badges {
  margin-top: 0.52rem;
  gap: 0.32rem;
}

.player-stat-board-featured .player-feature-badges span {
  min-height: 1.45rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.64rem;
}

.player-stat-board-featured .player-stat-sections {
  gap: clamp(0.55rem, 0.85vw, 0.85rem);
}

.player-stat-board-featured .player-stat-sections section + section {
  padding-left: clamp(0.55rem, 0.85vw, 0.85rem);
}

.player-stat-board-featured .player-stat-sections h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 2.35vw, 2rem);
}

.player-stat-board-featured .player-section-impact-bar {
  margin-bottom: 0.48rem;
}

.player-stat-board-featured .player-section-impact-label {
  font-size: 0.58rem;
}

.player-stat-board-featured .player-section-impact-track {
  height: 0.42rem;
}

.player-stat-board-featured .player-stat-grid {
  gap: clamp(0.34rem, 0.55vw, 0.52rem);
}

.player-stat-board-featured .player-stat-tile {
  border-width: 1px;
}

.player-stat-board-featured .player-stat-tile span {
  padding: 0.32rem 0.25rem;
  font-size: clamp(0.56rem, 0.68vw, 0.72rem);
}

.player-stat-board-featured .player-stat-tile strong {
  padding: 0.4rem 0.25rem;
  font-size: clamp(0.95rem, 1.35vw, 1.28rem);
}

@media (max-width: 900px) {
  .player-showcase-featured {
    align-items: start;
  }

  .player-showcase-featured > .player-stat-board-featured {
    height: auto !important;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .player-card-header-featured {
    grid-template-columns: 1fr !important;
  }

  .player-card-header-featured .badge {
    justify-self: start;
  }

  .player-card-header-featured .player-header-team-logo {
    display: none;
  }

  .player-card-header-featured h2 {
    display: block;
    max-width: 100%;
    font-size: clamp(1.55rem, 8.2vw, 2.45rem) !important;
    line-height: 0.95;
    letter-spacing: -0.06em;
  }

  .player-card-header-featured h2 span {
    display: block;
    max-width: 100% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-stat-board-featured .player-card-header-featured p {
    font-size: clamp(0.95rem, 4.5vw, 1.18rem);
  }

  .player-stat-board-featured .player-feature-badges span {
    min-height: 1.7rem;
    padding: 0.28rem 0.62rem;
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .player-card-header-featured h2 {
    font-size: clamp(1.35rem, 7.3vw, 2rem) !important;
    letter-spacing: -0.065em;
  }

  .player-stat-board-featured {
    padding: 0.85rem;
  }
}

/* Player profile icon cards + horizontal milestones */
.player-card-kicker {
  display: none !important;
}

.player-profile-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.player-profile-extra-card,
.player-milestone-card {
  min-width: 0;
  border: 1px solid rgba(23, 165, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 165, 255, 0.08), transparent 55%),
    rgba(3, 10, 19, 0.76);
  padding: 0.85rem;
  box-shadow: inset 0 0 20px rgba(23, 165, 255, 0.035);
}

.player-profile-extra-card h3,
.player-milestone-card h3 {
  margin: 0 0 0.65rem;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.player-profile-extra-card.is-wide .player-profile-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player-profile-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.player-profile-mini-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon detail";
  align-items: center;
  min-height: 72px;
  column-gap: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 6px;
  background:
    radial-gradient(circle at left, rgba(0, 210, 255, 0.13), transparent 46%),
    rgba(1, 7, 15, 0.76);
  padding: 0.65rem 0.7rem;
}

.player-profile-mini-icon {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 224, 255, 0.42);
  border-radius: 999px;
  color: #00d9ff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 217, 255, 0.55);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.12);
}

.player-profile-mini-label {
  grid-area: label;
  color: rgba(220, 233, 247, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.player-profile-mini-card strong {
  grid-area: value;
  color: #ffffff;
  font-size: clamp(1.15rem, 1.65vw, 1.65rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.player-profile-mini-card small {
  grid-area: detail;
  color: rgba(220, 233, 247, 0.7);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.player-milestone-card {
  grid-column: 1 / -1;
}

.player-milestone-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.player-milestone-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 6px;
  background: rgba(1, 7, 15, 0.76);
  padding: 0.7rem;
}

.player-milestone-item strong,
.player-milestone-item span,
.player-milestone-item em {
  display: block;
}

.player-milestone-item strong {
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.player-milestone-item span {
  margin-top: 0.25rem;
  color: rgba(220, 233, 247, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
}

.player-milestone-item em {
  color: rgba(220, 233, 247, 0.72);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.player-milestone-meter {
  height: 5px;
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(220, 233, 247, 0.13);
}

.player-milestone-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00cfff, #67f28f);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.32);
}

@media (max-width: 1180px) {
  .player-profile-extra-card.is-wide .player-profile-mini-grid,
  .player-milestone-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .player-profile-extras {
    grid-template-columns: 1fr;
  }

  .player-profile-extra-card.is-wide .player-profile-mini-grid,
  .player-profile-mini-grid,
  .player-milestone-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-profile-mini-card {
    min-height: 66px;
  }
}

@media (max-width: 460px) {
  .player-profile-extra-card.is-wide .player-profile-mini-grid,
  .player-profile-mini-grid,
  .player-milestone-row {
    grid-template-columns: 1fr;
  }
}


/* Player profile icon tile polish - bolder preview-style cyan icons */
.profile-insight-grid,
.profile-rank-grid,
.profile-milestone-grid {
  align-items: stretch;
}

.insight-card,
.rank-card,
.profile-mini-stat,
.milestone-card {
  position: relative;
  overflow: hidden;
}

.insight-card,
.rank-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  column-gap: 12px;
  min-height: 76px;
}

.insight-card::before,
.rank-card::before {
  content: attr(data-icon);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00eaff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 8px rgba(0, 234, 255, 0.75),
    0 0 18px rgba(0, 234, 255, 0.35);
  border: 1px solid rgba(0, 234, 255, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 234, 255, 0.16), rgba(0, 234, 255, 0.03) 58%, transparent 70%),
    linear-gradient(135deg, rgba(0, 234, 255, 0.10), rgba(0, 0, 0, 0.18));
  box-shadow:
    inset 0 0 14px rgba(0, 234, 255, 0.10),
    0 0 14px rgba(0, 234, 255, 0.08);
}

.insight-card .agl-stat-icon-glyph,
.rank-card .agl-stat-icon-glyph,
.stat-tile-icon.agl-stat-icon-glyph,
.profile-stat-icon.agl-stat-icon-glyph,
.insight-icon.agl-stat-icon-glyph {
  width: 40px;
  height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #00eaff !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-shadow:
    0 0 8px rgba(0, 234, 255, 0.75),
    0 0 18px rgba(0, 234, 255, 0.35);
  border: 1px solid rgba(0, 234, 255, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 234, 255, 0.16), rgba(0, 234, 255, 0.03) 58%, transparent 70%),
    linear-gradient(135deg, rgba(0, 234, 255, 0.10), rgba(0, 0, 0, 0.18));
  box-shadow:
    inset 0 0 14px rgba(0, 234, 255, 0.10),
    0 0 14px rgba(0, 234, 255, 0.08);
}

.insight-card[data-icon=""],
.rank-card[data-icon=""] {
  grid-template-columns: 1fr;
}

.insight-card[data-icon=""]::before,
.rank-card[data-icon=""]::before {
  display: none;
}

/* When older markup produced tiny circular icons, neutralize it */
.insight-card .icon-dot,
.rank-card .icon-dot,
.stat-icon-dot {
  display: none !important;
}

@media (max-width: 760px) {
  .insight-card,
  .rank-card {
    grid-template-columns: 42px 1fr;
    min-height: 68px;
    column-gap: 10px;
  }

  .insight-card::before,
  .rank-card::before,
  .insight-card .agl-stat-icon-glyph,
  .rank-card .agl-stat-icon-glyph {
    width: 34px;
    height: 34px;
    font-size: 27px !important;
    border-radius: 10px;
  }
}


/* Strong SVG icon styling for player profile insight/ranking cards */
.player-profile-mini-card {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  column-gap: 0.75rem !important;
}

.player-profile-mini-icon {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #00e7ff !important;
  font-size: 0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.player-profile-mini-icon svg {
  display: block;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 5px rgba(0, 231, 255, 0.8))
    drop-shadow(0 0 13px rgba(0, 231, 255, 0.28));
}

.player-profile-mini-card:hover .player-profile-mini-icon svg {
  filter:
    drop-shadow(0 0 7px rgba(0, 231, 255, 0.95))
    drop-shadow(0 0 18px rgba(0, 231, 255, 0.38));
}

@media (max-width: 760px) {
  .player-profile-mini-card {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    column-gap: 0.65rem !important;
  }

  .player-profile-mini-icon,
  .player-profile-mini-icon svg {
    width: 36px !important;
    height: 36px !important;
  }
}


/* Player profile performance pass */
html[data-player-profile-source="prebuilt-profile-json"] .player-profile-loading,
html[data-player-profile-source="session-prebuilt-profile"] .player-profile-loading {
  display: none !important;
}

[data-player-profile-perf] {
  margin-left: 0.5rem;
  color: rgba(114, 230, 255, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-profile-shell,
.player-profile-main,
.player-card-wrap,
.profile-board,
.player-profile-dashboard {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.player-profile-mini-card,
.player-profile-panel,
.player-profile-section,
.profile-insight-card {
  content-visibility: auto;
  contain-intrinsic-size: 160px;
}

@media (prefers-reduced-motion: reduce) {
  .player-profile-shell *,
  .player-profile-main *,
  .player-profile-dashboard * {
    transition: none !important;
    animation: none !important;
  }
}


/* Remove profile insight/ranking icons */
.player-profile-mini-icon,
.agl-stat-icon-glyph,
.insight-icon,
.rank-icon,
.stat-tile-icon,
.profile-stat-icon,
.icon-dot,
.stat-icon-dot {
  display: none !important;
}

.player-profile-mini-card,
.insight-card,
.rank-card {
  grid-template-columns: minmax(0, 1fr) !important;
  column-gap: 0 !important;
}

.insight-card::before,
.rank-card::before {
  display: none !important;
  content: none !important;
}

.player-profile-mini-card {
  padding-left: 1rem !important;
}

@media (max-width: 760px) {
  .player-profile-mini-card,
  .insight-card,
  .rank-card {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


.team-profile-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.team-profile-summary-panel {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid rgba(88, 166, 255, 0.18);
}

.team-profile-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.team-profile-summary-panel + .team-profile-summary-panel .team-profile-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-profile-metric-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.14);
  align-content: center;
}

.team-profile-metric-card span,
.team-profile-metric-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.team-profile-metric-card strong {
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  line-height: 1;
  text-transform: uppercase;
}

.team-profile-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(0, 198, 255, 0.35);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.team-profile-link:hover,
.team-profile-link:focus-visible {
  background: rgba(0, 198, 255, 0.12);
  color: var(--accent);
}

@media (max-width: 980px) {
  .team-profile-overview {
    grid-template-columns: 1fr;
  }

  .team-profile-metric-grid,
  .team-profile-summary-panel + .team-profile-summary-panel .team-profile-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-profile-metric-grid,
  .team-profile-summary-panel + .team-profile-summary-panel .team-profile-metric-grid {
    grid-template-columns: 1fr;
  }
}
.team-stat-block-grid,
.team-roster-summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.team-roster-summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-profile-roster-list li {
  padding: 0.7rem 0.75rem;
}

.team-profile-roster-list a {
  display: grid;
  gap: 0.16rem;
}

.team-profile-roster-list a span {
  color: #ffffff;
  font-weight: 950;
}

.team-profile-roster-list a small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.team-recent-games-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.team-recent-game-card {
  display: grid;
  gap: 0.28rem;
  min-height: 86px;
  padding: 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
}

.team-recent-game-card span,
.team-recent-game-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.team-recent-game-card strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .team-stat-block-grid,
  .team-recent-games-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-stat-block-grid,
  .team-roster-summary-strip,
  .team-recent-games-list {
    grid-template-columns: 1fr;
  }
}

/* Team profile roster tuning */
.team-roster-groups {
  display: grid;
  gap: 0.8rem;
}

.team-roster-group {
  display: grid;
  gap: 0.55rem;
}

.team-roster-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-roster-group-heading h4 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-roster-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.45), transparent);
}

.team-roster-position-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}

.team-roster-empty-row {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .team-hero-brand {
    min-width: 0;
  }

  .team-hero-brand > div {
    min-width: 0;
  }

  .team-hero h1,
  .team-hero > [data-team-hero-content] h1 {
    max-width: 100%;
    font-size: clamp(1.65rem, 11vw, 3rem);
    line-height: 0.92;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .team-roster-position-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .team-hero h1,
  .team-hero > [data-team-hero-content] h1 {
    font-size: clamp(1.35rem, 9vw, 2.1rem);
    letter-spacing: -0.045em;
  }

  .team-roster-position-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Team roster compliance card v2 */
.team-roster-compliance-card {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.045), rgba(122, 40, 255, 0.04)),
    rgba(2, 10, 20, 0.34);
}

.team-roster-compliance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-roster-compliance-heading h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-roster-position-box {
  display: grid;
  align-content: center;
  gap: 0.3rem;
  min-height: 76px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.team-roster-position-box.is-compliant {
  border-color: rgba(96, 220, 120, 0.42);
}

.team-roster-position-box.is-noncompliant {
  border-color: rgba(255, 88, 100, 0.42);
}

.team-roster-position-box span,
.team-roster-position-box small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.team-roster-position-box strong {
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.team-roster-position-box strong em {
  font-style: normal;
}

.team-roster-position-box.is-compliant strong,
.team-roster-position-box.is-compliant strong em {
  color: rgba(116, 236, 140, 0.82);
}

.team-roster-position-box.is-noncompliant strong em {
  color: rgba(255, 96, 112, 0.9);
}

.team-roster-warning {
  color: rgba(255, 96, 112, 0.95);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  text-align: center;
}

.compare-card small {
  display: inline-block;
  margin-top: 0.35rem;
  color: rgba(128, 217, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-stats-advanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-stats-advanced .compare-stat-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.15rem 0.45rem;
  overflow: hidden;
  min-height: 64px;
}

.compare-stats-advanced .compare-stat-row strong {
  justify-self: end;
}

.compare-stats-advanced .compare-stat-row em {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  width: fit-content;
  padding: 0.1rem 0.42rem;
  border: 1px solid rgba(128, 217, 255, 0.22);
  border-radius: 999px;
  color: rgba(220, 245, 255, 0.82);
  background: rgba(88, 166, 255, 0.08);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.compare-stats-advanced .compare-stat-row i {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.42rem;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.compare-stats-advanced .compare-stat-row i::after {
  content: "";
  display: block;
  width: var(--compare-strength, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(246, 92, 92, 0.75), rgba(239, 200, 74, 0.82), rgba(77, 214, 141, 0.88));
  box-shadow: 0 0 12px rgba(128, 217, 255, 0.22);
}

.compare-card-goalie {
  border-color: rgba(128, 217, 255, 0.32);
}

.compare-card-defense {
  border-color: rgba(126, 231, 135, 0.26);
}

.compare-card-forward {
  border-color: rgba(239, 200, 74, 0.28);
}

@media (max-width: 640px) {
  .compare-stats-advanced {
    grid-template-columns: 1fr;
  }

  .compare-stats-advanced .compare-stat-row {
    min-height: 58px;
  }
}


/* Team stats compact six-column layout */
.team-stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

.team-stats-overview-grid .team-profile-metric-card {
  align-content: center;
}

.team-stats-overview-grid .team-profile-metric-card strong {
  font-size: clamp(1rem, 1.35vw, 1.35rem);
}

.team-stats-overview-grid .team-profile-metric-card span,
.team-stats-overview-grid .team-profile-metric-card small {
  font-size: 0.64rem;
}

.team-stats-overview-grid .team-metric-rank {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .team-stats-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .team-stats-overview-grid,
  .team-stats-overview-grid.team-stats-rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-stats-overview-grid .team-profile-metric-card {
    min-height: 72px;
  }
}

/* Team Profile v3.1: Stat card event ranks */
.team-profile-metric-card {
  position: relative;
}

.team-metric-rank {
  --rank-hue: 190;
  --rank-saturation: 88%;
  --rank-lightness: 66%;
  --rank-alpha: 0.1;
  --rank-border-alpha: 0.36;
  --rank-glow-alpha: 0.08;
  justify-self: start;
  width: fit-content;
  margin-bottom: 0.08rem;
  padding: 0.16rem 0.38rem;
  border: 1px solid hsla(var(--rank-hue), var(--rank-saturation), var(--rank-lightness), var(--rank-border-alpha));
  border-radius: 999px;
  color: hsla(var(--rank-hue), var(--rank-saturation), 82%, 0.96);
  background:
    linear-gradient(135deg,
      hsla(var(--rank-hue), var(--rank-saturation), var(--rank-lightness), calc(var(--rank-alpha) + 0.05)),
      hsla(var(--rank-hue), var(--rank-saturation), 40%, var(--rank-alpha))
    );
  box-shadow:
    0 0 14px hsla(var(--rank-hue), var(--rank-saturation), var(--rank-lightness), var(--rank-glow-alpha)),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.6rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.team-metric-rank[data-rank-tone="high"] {
  --rank-hue: 145;
}

.team-metric-rank[data-rank-tone="mid"] {
  --rank-hue: 48;
}

.team-metric-rank[data-rank-tone="low"] {
  --rank-hue: 355;
}

/* Team Page Presentation Polish v1 - visual-only overrides */
.team-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.22);
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 198, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(122, 40, 255, 0.14), transparent 38%),
    linear-gradient(135deg, rgba(3, 13, 28, 0.96), rgba(1, 7, 18, 0.92));
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.78), transparent 75%);
}

.team-hero::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.58), rgba(255,255,255,.22), transparent);
  pointer-events: none;
}

.team-hero h1 {
  letter-spacing: -0.045em;
  text-shadow: 0 0 28px rgba(0, 198, 255, 0.18);
}

.teams-directory-panel {
  border-color: rgba(88, 166, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(2, 10, 20, 0.64);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.team-detail-tabs {
  width: fit-content;
  border-color: rgba(0, 198, 255, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(0, 198, 255, 0.075), rgba(0, 0, 0, 0.26));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.team-detail-tabs button {
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.team-detail-tabs button.is-active {
  background:
    linear-gradient(135deg, rgba(0, 198, 255, 0.24), rgba(88, 166, 255, 0.13));
  box-shadow:
    0 0 18px rgba(0, 198, 255, 0.12),
    inset 0 0 0 1px rgba(255,255,255,.07);
}

.team-detail-panels {
  gap: 1.15rem;
}

.team-profile-summary-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(88, 166, 255, 0.23);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 198, 255, 0.095), transparent 36%),
    linear-gradient(145deg, rgba(6, 20, 40, 0.76), rgba(1, 7, 18, 0.56));
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255,255,255,.045);
}

.team-profile-summary-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 198, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 34%);
  opacity: .8;
}

.team-profile-summary-panel > * {
  position: relative;
  z-index: 1;
}

.team-profile-summary-panel .panel-heading {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.team-profile-summary-panel .panel-heading h3 {
  letter-spacing: 0.015em;
}

.team-profile-summary-panel .panel-heading span {
  color: rgba(178, 220, 255, 0.76);
}

.team-profile-metric-card {
  min-height: 78px;
  border-color: rgba(88, 166, 255, 0.18);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    rgba(0, 0, 0, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 8px 22px rgba(0,0,0,.16);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.team-profile-metric-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 198, 255, 0.30);
  background:
    linear-gradient(180deg, rgba(0,198,255,.06), rgba(255,255,255,.012)),
    rgba(0, 0, 0, 0.28);
}

.team-profile-metric-card span {
  color: rgba(178, 220, 255, 0.72);
}

.team-profile-metric-card strong {
  letter-spacing: -0.025em;
}

.team-profile-wide-panel {
  grid-column: 1 / -1;
}

.team-stats-overview-grid {
  align-items: stretch;
}

.team-stats-overview-grid .team-profile-metric-card {
  min-height: 80px;
  padding: 0.7rem 0.62rem;
}

.team-metric-rank {
  backdrop-filter: blur(8px);
}

.team-roster-panel .panel-heading {
  margin-bottom: 0.15rem;
}

.team-roster-groups {
  gap: 0.75rem;
}

.team-roster-group-heading {
  padding: 0.18rem 0.1rem 0.38rem;
}

.team-roster-group-heading h4 {
  color: #ffffff;
  letter-spacing: 0.06em;
}

.team-roster-group-heading span {
  border: 1px solid rgba(0, 198, 255, 0.22);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: rgba(0, 198, 255, 0.08);
  color: rgba(194, 234, 255, 0.9);
}

.team-profile-roster-list li {
  border-color: rgba(88, 166, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(0, 198, 255, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.team-profile-roster-list li:hover {
  border-color: rgba(0, 198, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(0, 198, 255, 0.09), transparent 46%),
    rgba(255, 255, 255, 0.045);
}

.team-roster-divider {
  opacity: .95;
  box-shadow: 0 0 18px rgba(0,198,255,.08);
}

.team-position-compliance-card {
  margin-top: 0.25rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(0,0,0,.18);
}

.team-position-need {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.20);
}

.team-recent-games-list,
.team-profile-schedule-list {
  gap: 0.55rem;
}

.team-recent-game,
.team-profile-schedule-card {
  border-color: rgba(88, 166, 255, 0.12);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(0, 198, 255, 0.055), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.team-stats-section .panel-heading {
  padding: 0 0 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.team-stats-table-wrap {
  border-radius: 12px;
  border-color: rgba(88, 166, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), transparent),
    rgba(0,0,0,.18);
}

.team-stats-table thead th {
  background:
    linear-gradient(180deg, rgba(0, 198, 255, 0.11), rgba(2, 10, 20, 0.96));
  color: rgba(219, 244, 255, 0.95);
}

.team-stats-table tbody tr:hover {
  background: rgba(0, 198, 255, 0.06);
}

@media (min-width: 981px) {
  .team-profile-overview {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  }
}

@media (max-width: 640px) {
  .team-hero {
    border-radius: 14px;
  }

  .team-detail-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .team-detail-tabs button {
    min-width: 0;
    padding: 0 0.52rem;
  }

  .team-profile-summary-panel {
    border-radius: 12px;
    padding: 0.82rem;
  }

  .team-profile-summary-panel .panel-heading {
    gap: 0.35rem;
  }

  .team-profile-metric-card {
    min-height: 74px;
  }
}

/* Team Page Mobile Tab Fit Fix */
@media (max-width: 640px){
    .team-profile-tabs,
    .team-tabs,
    .profile-tabs,
    .team-profile-tab-nav{
        gap: 6px;
    }

    .team-profile-tabs button,
    .team-tabs button,
    .profile-tabs button,
    .team-profile-tab,
    .team-tab,
    .tab-btn{
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
        padding-left: 10px;
        padding-right: 10px;
        font-size: clamp(0.68rem, 3.2vw, 0.82rem);
        line-height: 1.1;
        box-sizing: border-box;
    }

    .team-profile-tabs button.active,
    .team-tabs button.active,
    .profile-tabs button.active,
    .team-profile-tab.active,
    .team-tab.active,
    .tab-btn.active{
        width: auto;
        min-width: max-content;
    }
}

/* Team Page Mobile Tab Text Tightening Fix */
@media (max-width: 640px){
    .team-tabs,
    .team-profile-tabs,
    .profile-tabs,
    .team-profile-tab-nav{
        display:grid !important;
        grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
        gap:6px !important;
    }

    .team-tabs button,
    .team-profile-tabs button,
    .profile-tabs button,
    .team-profile-tab,
    .team-tab,
    .tab-btn{
        padding:10px 6px !important;
        font-size:clamp(12px, 3.15vw, 15px) !important;
        line-height:1 !important;
        letter-spacing:.02em !important;
        text-align:center !important;
        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:clip !important;
        box-sizing:border-box !important;
    }

    .team-tabs button.active,
    .team-profile-tabs button.active,
    .profile-tabs button.active,
    .team-profile-tab.active,
    .team-tab.active,
    .tab-btn.active{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        padding-left:6px !important;
        padding-right:6px !important;
    }
}

@media (max-width: 420px){
    .team-tabs button,
    .team-profile-tabs button,
    .profile-tabs button,
    .team-profile-tab,
    .team-tab,
    .tab-btn{
        font-size:12px !important;
        letter-spacing:0 !important;
    }
}

/* Team Page Presentation Polish v2 - safe visual-only refinements */
body:has(.team-hero) .team-hero {
  isolation: isolate;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(0, 198, 255, 0.05), rgba(122, 40, 255, 0.05)),
    radial-gradient(circle at 16% 18%, rgba(0, 198, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 26%, rgba(122, 40, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(5, 17, 34, 0.98), rgba(2, 6, 18, 0.96));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(21,216,255,0.10);
}

body:has(.team-hero) .team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.2));
}

body:has(.team-hero) .team-hero-logo {
  border-color: rgba(130, 210, 255, 0.26);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.08), transparent 42%),
    rgba(2, 10, 22, 0.52);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 0 28px rgba(21,216,255,0.08);
}

body:has(.team-hero) .team-hero h1 {
  text-shadow: 0 8px 28px rgba(21,216,255,0.16);
  letter-spacing: 0.015em;
}

body:has(.team-hero) .team-hero .upcoming-games,
body:has(.team-hero) .team-hero [class*="upcoming"],
body:has(.team-hero) .upcoming-games-card,
body:has(.team-hero) .team-upcoming-card {
  border-color: rgba(155, 155, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.065), rgba(116,54,255,0.055)),
    rgba(8, 9, 26, 0.68);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
}

body:has(.team-hero) .team-profile-summary-panel,
body:has(.team-hero) .team-profile-leaders-panel,
body:has(.team-hero) .team-profile-roster-panel,
body:has(.team-hero) .team-profile-stats-panel,
body:has(.team-hero) .team-panel,
body:has(.team-hero) .position-compliance-card {
  border-color: rgba(88, 166, 255, 0.21);
  background:
    linear-gradient(145deg, rgba(0, 198, 255, 0.055), rgba(122, 40, 255, 0.035)),
    rgba(3, 13, 25, 0.58);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.055);
}

body:has(.team-hero) .team-profile-summary-panel > header,
body:has(.team-hero) .team-profile-leaders-panel > header,
body:has(.team-hero) .team-profile-roster-panel > header,
body:has(.team-hero) .team-profile-stats-panel > header,
body:has(.team-hero) .position-compliance-title {
  border-bottom: 1px solid rgba(120, 180, 255, 0.12);
  padding-bottom: 0.6rem;
}

body:has(.team-hero) .team-profile-metric,
body:has(.team-hero) .team-leader-card,
body:has(.team-hero) .team-stat-card,
body:has(.team-hero) .team-profile-stat-card,
body:has(.team-hero) .roster-player-row,
body:has(.team-hero) .team-roster-row,
body:has(.team-hero) .pc-item {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.048), rgba(255,255,255,0.018)),
    rgba(1, 7, 16, 0.72);
  border-color: rgba(138, 174, 220, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

body:has(.team-hero) .team-profile-metric:hover,
body:has(.team-hero) .team-leader-card:hover,
body:has(.team-hero) .team-stat-card:hover,
body:has(.team-hero) .team-profile-stat-card:hover,
body:has(.team-hero) .roster-player-row:hover,
body:has(.team-hero) .team-roster-row:hover {
  border-color: rgba(21, 216, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(21,216,255,0.055), rgba(122,40,255,0.035)),
    rgba(1, 7, 16, 0.78);
}

body:has(.team-hero) .team-profile-section-title,
body:has(.team-hero) .team-section-title,
body:has(.team-hero) .team-profile-summary-panel h2,
body:has(.team-hero) .team-profile-leaders-panel h2,
body:has(.team-hero) .team-profile-roster-panel h2,
body:has(.team-hero) .team-profile-stats-panel h2 {
  letter-spacing: 0.02em;
  text-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

body:has(.team-hero) .team-profile-metric .value,
body:has(.team-hero) .team-stat-card .value,
body:has(.team-hero) .team-profile-stat-card .value,
body:has(.team-hero) .team-leader-card strong {
  text-shadow: 0 0 20px rgba(21,216,255,0.10);
}

body:has(.team-hero) .team-profile-roster-panel .position-badge,
body:has(.team-hero) .team-roster-row .position-badge,
body:has(.team-hero) .roster-player-row .position-badge {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

@media (min-width: 800px) {
  body:has(.team-hero) .team-profile-overview {
    gap: 1.1rem;
  }
}

@media (max-width: 640px) {
  body:has(.team-hero) .team-hero {
    border-radius: 14px;
  }

  body:has(.team-hero) .team-profile-summary-panel,
  body:has(.team-hero) .team-profile-leaders-panel,
  body:has(.team-hero) .team-profile-roster-panel,
  body:has(.team-hero) .team-profile-stats-panel,
  body:has(.team-hero) .position-compliance-card {
    box-shadow:
      0 12px 24px rgba(0,0,0,0.18),
      inset 0 1px 0 rgba(255,255,255,0.045);
  }
}


/* Team Page Presentation Polish v3 - team color accent variables */
body.has-team-color-theme .team-hero {
  background:
    linear-gradient(90deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.075), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.065)),
    radial-gradient(circle at 15% 18%, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.22), transparent 32%),
    radial-gradient(circle at 88% 24%, rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(var(--agl-team-tertiary-rgb, 122, 40, 255), 0.10), transparent 40%),
    linear-gradient(135deg, rgba(5, 17, 34, 0.98), rgba(2, 6, 18, 0.96));
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.24);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.15),
    0 0 38px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.07);
}

body.has-team-color-theme .team-hero-logo {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.34);
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.12), transparent 44%),
    radial-gradient(circle at 50% 80%, rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.10), transparent 54%),
    rgba(2, 10, 22, 0.55);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255,255,255,0.055),
    0 0 30px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.12);
}

body.has-team-color-theme .team-hero h1,
body.has-team-color-theme .team-profile-metric .value,
body.has-team-color-theme .team-stat-card .value,
body.has-team-color-theme .team-profile-stat-card .value,
body.has-team-color-theme .team-leader-card strong {
  text-shadow: 0 0 22px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.16);
}

body.has-team-color-theme .team-upcoming-board,
body.has-team-color-theme .team-hero .upcoming-games,
body.has-team-color-theme .team-hero [class*="upcoming"],
body.has-team-color-theme .upcoming-games-card,
body.has-team-color-theme .team-upcoming-card {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.22);
  background:
    linear-gradient(135deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.07), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.055)),
    rgba(8, 9, 26, 0.70);
}

body.has-team-color-theme .team-upcoming-head button,
body.has-team-color-theme .team-filter-tabs button.is-active,
body.has-team-color-theme [data-team-tabs] button.is-active,
body.has-team-color-theme [data-team-tabs] button.active,
body.has-team-color-theme .team-tabs button.active,
body.has-team-color-theme .team-tab.active,
body.has-team-color-theme .tab-btn.active {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.32);
  background:
    linear-gradient(135deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.22), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.13)),
    rgba(8, 20, 34, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 20px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.10);
}

body.has-team-color-theme .team-profile-summary-panel,
body.has-team-color-theme .team-profile-leaders-panel,
body.has-team-color-theme .team-profile-roster-panel,
body.has-team-color-theme .team-profile-stats-panel,
body.has-team-color-theme .team-panel,
body.has-team-color-theme .position-compliance-card,
body.has-team-color-theme .team-roster-compliance-card {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.20);
  background:
    linear-gradient(145deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.052), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.038)),
    rgba(3, 13, 25, 0.60);
}

body.has-team-color-theme .team-profile-summary-panel > header,
body.has-team-color-theme .team-profile-leaders-panel > header,
body.has-team-color-theme .team-profile-roster-panel > header,
body.has-team-color-theme .team-profile-stats-panel > header,
body.has-team-color-theme .position-compliance-title,
body.has-team-color-theme .team-roster-compliance-heading {
  border-bottom-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.16);
}

body.has-team-color-theme .team-profile-metric,
body.has-team-color-theme .team-leader-card,
body.has-team-color-theme .team-stat-card,
body.has-team-color-theme .team-profile-stat-card,
body.has-team-color-theme .roster-player-row,
body.has-team-color-theme .team-roster-row,
body.has-team-color-theme .pc-item,
body.has-team-color-theme .team-roster-position-box {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.14);
  background:
    linear-gradient(135deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.035), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.022)),
    rgba(1, 7, 16, 0.72);
}

body.has-team-color-theme .team-profile-metric:hover,
body.has-team-color-theme .team-leader-card:hover,
body.has-team-color-theme .team-stat-card:hover,
body.has-team-color-theme .team-profile-stat-card:hover,
body.has-team-color-theme .roster-player-row:hover,
body.has-team-color-theme .team-roster-row:hover {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.28);
  background:
    linear-gradient(135deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.07), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.04)),
    rgba(1, 7, 16, 0.80);
}

body.has-team-color-theme .team-position-badge,
body.has-team-color-theme .team-profile-roster-panel .position-badge,
body.has-team-color-theme .team-roster-row .position-badge,
body.has-team-color-theme .roster-player-row .position-badge {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.30);
  background: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.075);
  color: rgba(245, 250, 255, 0.96);
}

body.has-team-color-theme .team-roster-position-box.is-compliant {
  border-color: rgba(80, 220, 130, 0.34);
}

body.has-team-color-theme .team-roster-position-box.is-noncompliant {
  border-color: rgba(255, 90, 110, 0.34);
}

/* Team roster row rating/number presentation patch - 2026-05-27 */
.team-profile-roster-list .team-profile-roster-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 58px;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  overflow: hidden;
}

body.has-team-color-theme .team-profile-roster-list .team-profile-roster-row {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.22);
  background:
    radial-gradient(circle at 36% 50%, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.20), transparent 42%),
    linear-gradient(90deg, rgba(4, 13, 26, 0.86) 0%, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.14) 48%, rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.10) 100%),
    rgba(1, 7, 16, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    inset 0 -1px 0 rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.09),
    0 10px 24px rgba(0,0,0,0.18);
}

body.has-team-color-theme .team-profile-roster-list .team-profile-roster-row:hover {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.38);
  background:
    radial-gradient(circle at 38% 50%, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.28), transparent 44%),
    linear-gradient(90deg, rgba(5, 17, 34, 0.9) 0%, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.20) 50%, rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.13) 100%),
    rgba(1, 7, 16, 0.88);
}

.team-profile-roster-list .team-roster-player-link {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
  width: 100%;
}

.team-profile-roster-list .team-roster-player-number {
  display: grid;
  align-items: center;
  min-height: 42px;
  padding-right: 0.9rem;
  border-right: 1px solid rgba(255,255,255,0.22);
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 0 0 18px rgba(255,255,255,0.10);
}

body.has-team-color-theme .team-profile-roster-list .team-roster-player-number {
  border-right-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.55);
}

.team-profile-roster-list .team-roster-player-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.team-profile-roster-list .team-roster-player-name {
  color: #ffffff;
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
  font-weight: 950;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-profile-roster-list .team-roster-player-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: rgba(190, 209, 234, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: none;
}

.team-profile-roster-list .team-roster-player-meta strong {
  color: var(--accent);
  font-size: inherit;
  font-weight: 950;
}

body.has-team-color-theme .team-profile-roster-list .team-roster-player-meta strong,
body.has-team-color-theme .team-profile-roster-list .team-roster-season-rating strong {
  color: rgb(var(--agl-team-primary-rgb, 0, 217, 255));
}

.team-profile-roster-list .team-roster-season-rating {
  display: grid;
  justify-items: end;
  gap: 0.08rem;
  min-width: 5.8rem;
  flex: 0 0 auto;
}

.team-profile-roster-list .team-roster-season-rating small {
  color: rgba(215, 227, 244, 0.78);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-profile-roster-list .team-roster-season-rating strong {
  color: var(--accent);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 198, 255, 0.12);
}

@media (max-width: 640px) {
  .team-profile-roster-list .team-profile-roster-row {
    grid-template-columns: 1fr;
    gap: 0.52rem;
    padding: 0.68rem 0.7rem;
  }

  .team-profile-roster-list .team-roster-player-link {
    grid-template-columns: 3.15rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .team-profile-roster-list .team-roster-player-number {
    min-height: 36px;
    padding-right: 0.62rem;
  }

  .team-profile-roster-list .team-roster-season-rating {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding-left: 3.85rem;
  }
}


/* Admin player metadata tool */
.admin-player-tool-layout {
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
}

.admin-form-actions,
.admin-player-meta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-player-search {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-player-meta-list {
  display: grid;
  gap: 0.5rem;
  max-height: 460px;
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.admin-player-meta-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(0, 198, 255, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.04);
}

.admin-player-meta-number {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.admin-player-meta-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.admin-player-meta-copy strong,
.admin-player-meta-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-player-meta-copy strong {
  color: #ffffff;
  font-weight: 900;
}

.admin-player-meta-copy small,
.admin-player-suggestion {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-player-suggestion {
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(0, 198, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 198, 255, 0.08);
}

.admin-player-suggestion strong {
  color: var(--accent);
}

@media (max-width: 760px) {
  .admin-player-tool-layout {
    grid-template-columns: 1fr;
  }

  .admin-player-meta-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .admin-player-meta-actions {
    grid-column: 1 / -1;
  }
}

/* Team detail event selector: event-scoped roster/stat views */
.team-hero-event-select-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  margin-top: 0;
  color: rgba(236, 248, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-hero-event-select,
.team-hero-event-label {
  border: 1px solid rgba(var(--team-primary-rgb, 0, 217, 255), 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(var(--team-primary-rgb, 0, 217, 255), 0.20), rgba(var(--team-secondary-rgb, 84, 238, 255), 0.08)),
    rgba(5, 12, 20, 0.86);
  color: #f5fbff;
  box-shadow: 0 0 20px rgba(var(--team-primary-rgb, 0, 217, 255), 0.14);
}

.team-hero-event-select {
  min-width: min(320px, 68vw);
  padding: 0.62rem 2.35rem 0.62rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: none;
  outline: none;
}

.team-hero-event-select:focus-visible {
  border-color: rgba(var(--team-primary-rgb, 0, 217, 255), 0.76);
  box-shadow: 0 0 0 3px rgba(var(--team-primary-rgb, 0, 217, 255), 0.18), 0 0 24px rgba(var(--team-primary-rgb, 0, 217, 255), 0.24);
}

.team-hero-event-select option {
  background: #07111c;
  color: #f5fbff;
}

.team-hero-event-label {
  display: inline-flex;
  margin-top: 0.42rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .team-hero-event-control {
    width: 100%;
  }

  .team-hero-event-select-label {
    width: 100%;
  }

  .team-hero-event-select {
    width: 100%;
    min-width: 0;
  }
}

/* Admin player roster sync checkbox polish */
.admin-checkline {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.95rem 0 0.4rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.75rem;
  background: rgba(8, 17, 28, 0.52);
  cursor: pointer;
}

.admin-checkline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0.12rem 0 0;
  padding: 0;
  accent-color: #22d3ee;
  cursor: pointer;
}

.admin-checkline span {
  display: block;
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.admin-checkline + .admin-field-help {
  margin-top: 0.35rem;
}
/* =========================================
   HERO EVENT DROPDOWN - GRAYSCALE POLISH
========================================= */

.team-event-selector select,
.hero-event-selector select,
.team-hero-event-select {
    background: rgba(18, 18, 22, 0.92) !important;
    border: 1px solid rgba(180, 180, 180, 0.22) !important;
    color: #d7d7d7 !important;
    box-shadow: none !important;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.team-event-selector select:hover,
.hero-event-selector select:hover,
.team-hero-event-select:hover {
    background: rgba(28, 28, 34, 0.96) !important;
    border-color: rgba(210, 210, 210, 0.38) !important;
    color: #ffffff !important;
}

.team-event-selector select:focus,
.hero-event-selector select:focus,
.team-hero-event-select:focus {
    outline: none !important;
    border-color: rgba(230, 230, 230, 0.55) !important;
    background: rgba(30, 30, 36, 0.98) !important;
    color: #ffffff !important;
}

.team-event-selector option,
.hero-event-selector option,
.team-hero-event-select option {
    background: #141418;
    color: #e2e2e2;
}
/* =========================================
   HERO EVENT PILL - GRAYSCALE POLISH
========================================= */

.team-current-event,
.current-team-event,
.hero-current-event,
.team-event-pill {
    background: rgba(22, 22, 28, 0.88) !important;
    border: 1px solid rgba(190, 190, 190, 0.18) !important;
    color: #d8d8d8 !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
}

.team-current-event:hover,
.current-team-event:hover,
.hero-current-event:hover,
.team-event-pill:hover {
    background: rgba(32, 32, 38, 0.94) !important;
    border-color: rgba(220, 220, 220, 0.28) !important;
    color: #ffffff !important;
}

/* =========================================
   HERO EVENT CONTROL - GRAYSCALE FORCE PATCH
   Targets the active event pill/dropdown in the team hero.
========================================= */

.team-hero .team-hero-event-control,
.team-hero [data-team-event-control],
.team-hero [data-team-current-event],
.team-hero [data-current-event] {
  color: #d8d8d8 !important;
}

.team-hero .team-hero-event-control select,
.team-hero .team-event-selector select,
.team-hero .hero-event-selector select,
.team-hero .team-hero-event-select,
.team-hero .team-event-select,
.team-hero select[name*="event" i],
.team-hero select[id*="event" i] {
  appearance: none;
  background:
    linear-gradient(180deg, rgba(38, 38, 44, 0.96), rgba(18, 18, 23, 0.94)) !important;
  border: 1px solid rgba(210, 210, 210, 0.24) !important;
  border-radius: 999px !important;
  color: #dcdcdc !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18) !important;
  min-height: 34px;
  padding: 0.35rem 2rem 0.35rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.team-hero .team-hero-event-control select:hover,
.team-hero .team-event-selector select:hover,
.team-hero .hero-event-selector select:hover,
.team-hero .team-hero-event-select:hover,
.team-hero .team-event-select:hover,
.team-hero select[name*="event" i]:hover,
.team-hero select[id*="event" i]:hover {
  background:
    linear-gradient(180deg, rgba(48, 48, 54, 0.98), rgba(24, 24, 30, 0.96)) !important;
  border-color: rgba(235, 235, 235, 0.36) !important;
  color: #ffffff !important;
}

.team-hero .team-hero-event-control select:focus,
.team-hero .team-event-selector select:focus,
.team-hero .hero-event-selector select:focus,
.team-hero .team-hero-event-select:focus,
.team-hero .team-event-select:focus,
.team-hero select[name*="event" i]:focus,
.team-hero select[id*="event" i]:focus {
  outline: none !important;
  border-color: rgba(245, 245, 245, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

.team-hero .team-hero-event-control option,
.team-hero .team-event-selector option,
.team-hero .hero-event-selector option,
.team-hero .team-hero-event-select option,
.team-hero .team-event-select option {
  background: #151519 !important;
  color: #eeeeee !important;
}

.team-hero .team-current-event,
.team-hero .current-team-event,
.team-hero .hero-current-event,
.team-hero .team-event-pill,
.team-hero .current-event-pill,
.team-hero .event-pill,
.team-hero [class*="event-pill" i],
.team-hero [class*="current-event" i],
.team-hero [class*="team-event" i]:not(select):not(option):not(.team-upcoming-board):not(.team-upcoming-table):not(.team-upcoming-row):not(.team-upcoming-head) {
  background:
    linear-gradient(180deg, rgba(38, 38, 44, 0.96), rgba(18, 18, 23, 0.94)) !important;
  border: 1px solid rgba(210, 210, 210, 0.24) !important;
  color: #dcdcdc !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(8px);
}

.team-hero .team-current-event:hover,
.team-hero .current-team-event:hover,
.team-hero .hero-current-event:hover,
.team-hero .team-event-pill:hover,
.team-hero .current-event-pill:hover,
.team-hero .event-pill:hover,
.team-hero [class*="event-pill" i]:hover,
.team-hero [class*="current-event" i]:hover {
  background:
    linear-gradient(180deg, rgba(48, 48, 54, 0.98), rgba(24, 24, 30, 0.96)) !important;
  border-color: rgba(235, 235, 235, 0.36) !important;
  color: #ffffff !important;
}

/* Team profile polish patch: tab underline, leader panels, and recent game actions */
body.has-team-color-theme [data-team-tabs] {
  background: rgba(2, 12, 24, 0.7);
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.18);
}

body.has-team-color-theme [data-team-tabs] button,
body.has-team-color-theme .team-tabs button {
  position: relative;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--muted);
}

body.has-team-color-theme [data-team-tabs] button.is-active,
body.has-team-color-theme [data-team-tabs] button.active,
body.has-team-color-theme .team-tabs button.active {
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.has-team-color-theme [data-team-tabs] button.is-active::after,
body.has-team-color-theme [data-team-tabs] button.active::after,
body.has-team-color-theme .team-tabs button.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--agl-team-primary), var(--agl-team-secondary));
  box-shadow: 0 0 14px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.32);
}

.team-leader-selector {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(88, 166, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  width: min(100%, 360px);
}

.team-leader-selector button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.team-leader-selector button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.24), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.16));
  box-shadow: inset 0 0 0 1px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.24);
}

.team-leader-panels {
  display: grid;
  gap: 0.65rem;
}

.team-recent-game-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.team-recent-game-button:hover,
.team-recent-game-button:focus-visible {
  border-color: rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.34);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 18px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.1);
  outline: none;
}

.team-box-score-leaders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .team-leader-selector,
  .team-box-score-leaders {
    grid-template-columns: 1fr;
  }
}

/* Mobile Team Leaders selector refinement: compact horizontal FWD/DEF/GOA tabs */
@media (max-width: 640px) {
  .team-leader-selector {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.25rem !important;
    border: 1px solid rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.22) !important;
  }

  .team-leader-selector button {
    position: relative !important;
    min-height: 2.25rem !important;
    padding: 0.55rem 0.35rem !important;
    border-radius: 999px !important;
    letter-spacing: 0.08em !important;
  }

  .team-leader-selector button::before {
    font-size: 0.78rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
  }
.team-leader-selector button[data-team-leader-tab="defense"]::before {
  }

  .team-leader-selector button[data-team-leader-tab="goalie"]::before {
    content: "GOA";
  }

  .team-leader-selector button.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.32), rgba(var(--agl-team-secondary-rgb, 78, 123, 255), 0.18)) !important;
    box-shadow:
      inset 0 0 0 1px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.32),
      0 0 18px rgba(var(--agl-team-primary-rgb, 0, 217, 255), 0.12) !important;
  }

  .team-box-score-leaders {
    grid-template-columns: 1fr !important;
  }
}

/* Team page mobile submenu + tab fit cleanup */
@media (max-width: 768px) {
  /* Remove nested submenu indicator so it cannot overlap the Teams label. */
  .site-nav .nav-subdropdown > a::before {
    content: none !important;
    display: none !important;
  }

  .site-nav .nav-subdropdown > a {
    padding-right: 0 !important;
  }
}

@media (max-width: 640px) {
  /* Keep Overview / Roster / Stats / Ranks on one mobile row. */
  .team-detail-tabs,
  body.has-team-color-theme [data-team-tabs] {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 0.16rem !important;
    padding: 0.28rem !important;
    align-items: center !important;
  }

  .team-detail-tabs button,
  body.has-team-color-theme [data-team-tabs] button,
  body.has-team-color-theme .team-detail-tabs button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 34px !important;
    padding: 0 0.26rem !important;
    font-size: clamp(0.66rem, 2.75vw, 0.78rem) !important;
    line-height: 1 !important;
    letter-spacing: 0.025em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.has-team-color-theme [data-team-tabs] button.is-active::after,
  body.has-team-color-theme [data-team-tabs] button.active::after,
  body.has-team-color-theme .team-tabs button.active::after {
    left: 20% !important;
    right: 20% !important;
    bottom: 4px !important;
  }
}

@media (max-width: 390px) {
  .team-detail-tabs button,
  body.has-team-color-theme [data-team-tabs] button,
  body.has-team-color-theme .team-detail-tabs button {
    font-size: clamp(0.58rem, 2.65vw, 0.7rem) !important;
    letter-spacing: 0.01em !important;
    padding: 0 0.18rem !important;
  }
}


/* Team Leaders mobile selector: match compact one-row team panel tab style */
@media (max-width: 640px) {
  .team-leader-selector {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.16rem !important;
    padding: 0.28rem !important;
    align-items: center !important;
    border-radius: 999px !important;
  }

  .team-leader-selector button {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 34px !important;
    padding: 0 0.26rem !important;
    font-size: clamp(0.66rem, 2.75vw, 0.78rem) !important;
    line-height: 1 !important;
    letter-spacing: 0.025em !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .team-leader-selector button::before {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 390px) {
  .team-leader-selector button {
    font-size: clamp(0.58rem, 2.65vw, 0.7rem) !important;
    letter-spacing: 0.01em !important;
    padding: 0 0.18rem !important;
  }
}

/* Shared player rating badge columns - 2026-05-30 */
.rating-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(120, 150, 190, 0.08));
  color: rgba(239, 246, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.035);
}

.rating-pill--solid {
  border-color: rgba(150, 185, 220, 0.34);
  color: #d9e7f8;
  box-shadow: 0 0 12px rgba(130, 185, 255, 0.08), inset 0 0 12px rgba(255, 255, 255, 0.04);
}

.rating-pill--strong {
  border-color: rgba(96, 212, 255, 0.44);
  color: #ebfbff;
  background: linear-gradient(135deg, rgba(18, 118, 166, 0.24), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 14px rgba(40, 180, 255, 0.16), inset 0 0 14px rgba(255, 255, 255, 0.05);
}

.rating-pill--elite {
  border-color: rgba(255, 211, 103, 0.58);
  color: #fff3bc;
  background: linear-gradient(135deg, rgba(144, 96, 18, 0.34), rgba(255, 220, 120, 0.1));
  box-shadow: 0 0 16px rgba(255, 199, 73, 0.2), inset 0 0 16px rgba(255, 255, 255, 0.06);
}

.stats-page .stats-table th:nth-child(5),
.stats-page .stats-table td:nth-child(5) {
  width: 54px;
  text-align: center;
}

.stats-page .stats-table th:nth-child(n + 6),
.stats-page .stats-table td:nth-child(n + 6) {
  width: 50px;
  text-align: center;
}

.team-stats-table .rating-pill,
.player-card-page .stats-table .rating-pill {
  margin-inline: auto;
}

/* Finalized team ticker cards open the existing box score modal. */
.ticker-game-card.is-final[data-team-box-score] {
  cursor: pointer;
}

.ticker-game-card.is-final[data-team-box-score]:focus-visible {
  outline: 2px solid rgba(125, 185, 255, 0.9);
  outline-offset: 3px;
}


/* Homepage ticker finalized game box-score affordance */
.ticker-game-card[data-home-box-score] {
  cursor: pointer;
}

.ticker-game-card[data-home-box-score]:hover,
.ticker-game-card[data-home-box-score]:focus-visible {
  border-color: rgba(255, 229, 117, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 229, 117, 0.22), 0 0 18px rgba(90, 166, 255, 0.22);
  outline: none;
}

/* Matchup preview modal for upcoming ticker games */
.ticker-game-card.is-upcoming[data-matchup-preview-key],
.ticker-game-card.is-upcoming[data-team-matchup-preview-key] {
  cursor: pointer !important;
}

.ticker-game-card.is-upcoming[data-matchup-preview-key]::after,
.ticker-game-card.is-upcoming[data-team-matchup-preview-key]::after {
  content: "Preview";
  position: absolute;
  right: 0.62rem;
  bottom: 0.3rem;
  color: rgba(220, 233, 247, 0.58);
  font-size: 0.48rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.ticker-game-card.is-upcoming[data-matchup-preview-key]:hover::after,
.ticker-game-card.is-upcoming[data-matchup-preview-key]:focus-visible::after,
.ticker-game-card.is-upcoming[data-team-matchup-preview-key]:hover::after,
.ticker-game-card.is-upcoming[data-team-matchup-preview-key]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.ticker-game-card.is-upcoming[data-matchup-preview-key]:focus-visible,
.ticker-game-card.is-upcoming[data-team-matchup-preview-key]:focus-visible {
  outline: 2px solid rgba(0, 217, 255, 0.9);
  outline-offset: 4px;
}

.matchup-preview-modal[hidden] {
  display: none;
}

.matchup-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.matchup-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.matchup-preview-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 880px);
  overflow: auto;
  border: 1px solid rgba(178, 220, 255, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 52, 82, 0.34), transparent 42%),
    linear-gradient(145deg, rgba(10, 14, 24, 0.98), rgba(3, 7, 15, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), 0 0 36px rgba(0, 217, 255, 0.16);
  color: #f5f8ff;
}

.matchup-preview-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  margin: 12px 12px 0 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.matchup-preview-content {
  padding: 30px 28px 34px;
}

.matchup-preview-loading {
  padding: 42px 20px;
  text-align: center;
  color: rgba(236, 246, 255, 0.78);
}

.matchup-preview-header {
  text-align: center;
  margin-bottom: 22px;
}

.matchup-preview-header .eyebrow {
  margin: 0 0 8px;
  color: #20dfff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(32, 223, 255, 0.5);
}

.matchup-preview-header h2 {
  margin: 4px 0 6px;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.matchup-preview-header > span,
.matchup-preview-team span,
.matchup-preview-team small,
.matchup-preview-series div,
.matchup-preview-players li {
  color: rgba(230, 240, 255, 0.74);
}

.matchup-preview-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 22px;
}

.matchup-preview-team {
  position: relative;
  display: grid;
  min-height: 276px;
  justify-items: center;
  align-content: center;
  gap: 9px;
  padding: 28px 22px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--matchup-team-secondary, #ffffff) 28%, rgba(255, 255, 255, 0.18));
  border-radius: 20px;
  background:
    radial-gradient(circle at 35% 18%, color-mix(in srgb, var(--matchup-team-secondary, #ffffff) 24%, transparent), transparent 31%),
    radial-gradient(circle at 12% 4%, color-mix(in srgb, var(--matchup-team-primary, #00d9ff) 70%, transparent), transparent 47%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--matchup-team-primary, #00d9ff) 78%, rgba(8, 13, 22, 0.92)) 0%,
      color-mix(in srgb, var(--matchup-team-primary, #00d9ff) 46%, rgba(8, 13, 22, 0.96)) 48%,
      color-mix(in srgb, var(--matchup-team-tertiary, #000000) 72%, rgba(5, 8, 14, 0.98)) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 30px color-mix(in srgb, var(--matchup-team-primary, #00d9ff) 24%, transparent);
}

.matchup-preview-team::after,
.matchup-preview-players::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(0, 0, 0, 0.18));
}

.matchup-preview-team > *,
.matchup-preview-players > * {
  position: relative;
  z-index: 1;
}

.matchup-preview-team img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.24)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42));
}

.matchup-preview-team strong {
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0.1em;
}

.matchup-preview-team span {
  font-size: 1.15rem;
}

.matchup-preview-team b {
  font-size: 1.16rem;
  color: #fff;
}

.matchup-preview-vs {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 20%, rgba(40, 229, 255, 0.3), rgba(0, 133, 160, 0.28) 48%, rgba(2, 18, 28, 0.96));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.22);
}

.matchup-preview-series {
  margin-bottom: 22px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 164, 214, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.matchup-preview-players {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--matchup-team-primary, #ffffff) 42%, rgba(255, 255, 255, 0.1));
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--matchup-team-primary, #00d9ff) 44%, transparent), transparent 52%),
    linear-gradient(145deg,
      color-mix(in srgb, var(--matchup-team-primary, #00d9ff) 28%, rgba(10, 14, 24, 0.94)),
      color-mix(in srgb, var(--matchup-team-tertiary, #000000) 42%, rgba(5, 8, 14, 0.98)) 72%);
  padding: 18px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--matchup-team-primary, #00d9ff) 16%, transparent);
}

.matchup-preview-series h3,
.matchup-preview-players h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 900;
  color: color-mix(in srgb, var(--matchup-team-primary, #20dfff) 72%, #ffffff);
  text-shadow: 0 0 12px color-mix(in srgb, var(--matchup-team-primary, #20dfff) 36%, transparent);
}

.matchup-preview-series h3 {
  color: #42dfff;
}

.matchup-preview-series strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.32rem;
  letter-spacing: 0.04em;
}

.matchup-preview-series div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  font-size: 0.95rem;
}

.matchup-preview-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.matchup-preview-players ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.matchup-preview-players li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
}

.matchup-preview-players li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.matchup-preview-players li strong {
  color: #f8fbff;
  font-weight: 700;
}

.matchup-preview-players li.is-empty {
  display: block;
  text-align: center;
  padding: 12px;
}

@media (max-width: 680px) {
  .matchup-preview-modal {
    padding: 10px;
  }

  .matchup-preview-dialog {
    max-height: 90vh;
  }

  .matchup-preview-content {
    padding: 22px 16px;
  }

  .matchup-preview-scoreboard {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .matchup-preview-team {
    min-height: 220px;
  }

  .matchup-preview-vs {
    width: 42px;
    height: 42px;
    justify-self: center;
  }

  .matchup-preview-player-grid {
    grid-template-columns: 1fr;
  }
}
}

/* Ticker final status rail full-height fix
   Makes the vertical FINAL rail fill the full left segment of finalized ticker cards. */
.ticker-game-card.is-final {
  align-items: stretch;
}

.ticker-game-card.is-final .ticker-game-status {
  align-self: stretch;
  min-height: calc(100% + 1.08rem);
  height: auto;
  margin-top: -0.54rem;
  margin-bottom: -0.54rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px 0 0 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    linear-gradient(180deg, rgba(12, 19, 31, 0.98), rgba(6, 10, 18, 0.98));
  box-shadow:
    inset -1px 0 0 rgba(216, 223, 231, 0.2),
    inset 0 0 18px rgba(255, 255, 255, 0.045);
}

.ticker-game-card.is-final .ticker-team-stack {
  align-self: center;
  padding-block: 0.02rem;
}


/* Box score three stars panel - 2026-05-31 */
.box-score-heading-with-stars {
  display: block;
}

.box-score-stars {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.75rem 0 0.85rem;
  padding: 0.8rem;
  border: 1px solid rgba(0, 198, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(16, 41, 50, 0.92), rgba(7, 14, 25, 0.94)),
    rgba(4, 11, 22, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 36px rgba(0, 0, 0, 0.2);
}

.box-score-stars-kicker {
  grid-column: 1 / -1;
  color: rgba(176, 218, 255, 0.95);
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.box-score-star-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 76px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(50, 125, 165, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 42, 49, 0.88), rgba(7, 15, 27, 0.92)),
    rgba(2, 9, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.box-score-star-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 0%, rgba(0, 198, 255, 0.12), transparent 42%);
  opacity: 0.9;
}

.box-score-star-card > * {
  position: relative;
  z-index: 1;
}

.box-score-star-card--1 {
  border-color: rgba(255, 215, 91, 0.38);
  box-shadow: inset 3px 0 0 rgba(255, 215, 91, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.box-score-star-card--2 {
  border-color: rgba(205, 218, 230, 0.28);
  box-shadow: inset 3px 0 0 rgba(205, 218, 230, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.box-score-star-card--3 {
  border-color: rgba(205, 127, 50, 0.32);
  box-shadow: inset 3px 0 0 rgba(205, 127, 50, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.box-score-star-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 198, 255, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
}

.box-score-star-card--1 .box-score-star-rank {
  background: rgba(255, 215, 91, 0.15);
  color: #ffd75b;
}

.box-score-star-main {
  min-width: 0;
}

.box-score-star-main strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 1000;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.box-score-star-main span {
  display: block;
  margin-top: 0.12rem;
  color: rgba(176, 218, 255, 0.82);
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.box-score-star-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  margin-top: 0.38rem;
}

.box-score-star-stats em {
  padding: 0.12rem 0.32rem;
  border-radius: 999px;
  background: rgba(0, 198, 255, 0.1);
  color: rgba(235, 245, 255, 0.9);
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.box-score-star-rating {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 48px;
  padding: 0.32rem 0.38rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffd75b;
}

.box-score-star-rating strong {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1;
}

.box-score-star-rating span {
  margin-top: 0.14rem;
  color: rgba(176, 218, 255, 0.82);
  font-size: 0.5rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  line-height: 1;
}

.box-score-stars-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(50, 125, 165, 0.32);
  border-radius: 8px;
  background: rgba(2, 9, 18, 0.58);
  color: rgba(226, 236, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .box-score-stars {
    grid-template-columns: 1fr;
  }
}


/* ECU player picker for admin game stat entry rows */
.stat-entry-row:has(.stat-entry-field-ecu) {
  grid-template-columns: 280px 112px 72px;
}

.stat-entry-field-ecu {
  width: 72px;
}

.stat-entry-field-ecu input[type="checkbox"] {
  width: 100%;
  min-height: 38px;
  accent-color: #58a6ff;
  cursor: pointer;
}

.stat-entry-row.is-ecu-row {
  border-color: rgba(255, 203, 92, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 203, 92, 0.08), 0 0 20px rgba(255, 203, 92, 0.08);
}

.stat-entry-row.is-ecu-row .stat-entry-field-player input {
  border-color: rgba(255, 203, 92, 0.38);
  background: linear-gradient(180deg, rgba(255, 203, 92, 0.12), rgba(4, 13, 27, 0.82));
}

/* ECU modal picker refinement for admin game stat entry rows */
.stat-entry-field-ecu input[type="checkbox"] {
  width: 50%;
  min-height: 19px;
  justify-self: center;
  align-self: center;
  margin: 0 auto;
}

.admin-ecu-inline-picker {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 203, 92, 0.38);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 203, 92, 0.14), rgba(4, 13, 27, 0.86));
  color: #f8fbff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.42rem 0.58rem;
  cursor: pointer;
  text-align: left;
}

.admin-ecu-inline-picker strong {
  font-size: 0.82rem;
  line-height: 1.05;
}

.admin-ecu-inline-picker small {
  color: rgba(255, 220, 140, 0.78);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-ecu-modal[hidden] {
  display: none;
}

.admin-ecu-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-ecu-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 5, 14, 0.78);
  backdrop-filter: blur(8px);
}

.admin-ecu-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 94vw);
  max-height: min(680px, 88vh);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(88, 166, 255, 0.36);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.98), rgba(2, 8, 18, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  padding: 1rem;
}

.admin-ecu-header,
.admin-ecu-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-ecu-kicker {
  margin: 0 0 0.15rem;
  color: rgba(255, 203, 92, 0.86);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-ecu-header h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 1.15rem;
}

.admin-ecu-search {
  width: 100%;
  border: 1px solid rgba(88, 166, 255, 0.32);
  border-radius: 12px;
  background: rgba(2, 9, 18, 0.86);
  color: #f8fbff;
  padding: 0.78rem 0.9rem;
  font-size: 1rem;
  outline: none;
}

.admin-ecu-search:focus {
  border-color: rgba(88, 166, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.16);
}

.admin-ecu-list {
  min-height: 220px;
  max-height: 390px;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  padding-right: 0.25rem;
}

.admin-ecu-player-option {
  width: 100%;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 12px;
  background: rgba(5, 17, 32, 0.78);
  color: #f8fbff;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.62rem 0.7rem;
  cursor: pointer;
  text-align: left;
}

.admin-ecu-player-option:hover,
.admin-ecu-player-option.is-selected {
  border-color: rgba(255, 203, 92, 0.58);
  background: linear-gradient(135deg, rgba(255, 203, 92, 0.18), rgba(10, 28, 52, 0.92));
}

.admin-ecu-player-number {
  min-height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  color: rgba(255, 220, 140, 0.92);
  font-weight: 1000;
}

.admin-ecu-player-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.admin-ecu-player-copy strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-ecu-player-copy small {
  color: rgba(218, 229, 246, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-ecu-empty {
  border: 1px dashed rgba(88, 166, 255, 0.26);
  border-radius: 12px;
  padding: 1rem;
  color: rgba(226, 236, 255, 0.72);
  font-weight: 800;
  text-align: center;
}

.admin-ecu-actions {
  justify-content: flex-end;
}

.admin-ecu-actions [data-select-ecu-player]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


/* 2026-05-31 multi-system polish patch */

/* Admin stat entry: keep ECU anchored to the far-left of each stat-entry row. */
.stat-entry-row:has(.stat-entry-field-ecu) {
  grid-template-columns: 42px 280px 112px 72px;
  align-items: end;
}

.stat-entry-field-ecu {
  order: -10;
  width: 42px;
  min-width: 42px;
  align-self: stretch;
}

.stat-entry-field-ecu span {
  text-align: center;
}

.stat-entry-field-ecu input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  justify-self: center;
  align-self: center;
}

/* Box score: keep the tab rail horizontal on mobile. */
@media (max-width: 640px) {
  .schedule-modal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.25rem;
    padding: 0.28rem;
  }

  .schedule-modal-tabs button {
    min-height: 34px;
    max-width: none;
    padding: 0 0.28rem;
    font-size: clamp(0.58rem, 2.4vw, 0.68rem);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Matchup preview mobile: keep team boxes side-by-side while tightening the layout. */
@media (max-width: 680px) {
  .matchup-preview-scoreboard {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
  }

  .matchup-preview-team {
    min-height: 164px;
    padding: 16px 8px;
    border-radius: 16px;
    gap: 5px;
  }

  .matchup-preview-team img {
    width: 68px;
    height: 68px;
    margin-bottom: 6px;
  }

  .matchup-preview-team strong {
    font-size: clamp(1.05rem, 6vw, 1.35rem);
    letter-spacing: 0.06em;
  }

  .matchup-preview-team span,
  .matchup-preview-team small,
  .matchup-preview-team b {
    font-size: 0.72rem;
  }

  .matchup-preview-vs {
    width: 34px;
    height: 34px;
    align-self: center;
    font-size: 0.7rem;
  }
}

/* Player cards: bring current/career stat boxes closer to the site stat-block style. */
.player-card-page .player-stat-tile,
.player-stat-board-featured .player-stat-tile {
  border: 1px solid rgba(88, 166, 255, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 24% 0%, rgba(0, 198, 255, 0.16), transparent 46%),
    linear-gradient(145deg, rgba(12, 28, 42, 0.92), rgba(5, 11, 22, 0.96));
  color: #f4f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.2);
}

.player-card-page .player-stat-tile span,
.player-stat-board-featured .player-stat-tile span {
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.22), rgba(88, 166, 255, 0.08));
  color: rgba(190, 226, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.08em;
}

.player-card-page .player-stat-tile strong,
.player-stat-board-featured .player-stat-tile strong {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 198, 255, 0.16);
}

@media (max-width: 640px) {
  .player-card-page .player-stat-grid,
  .player-stat-board-featured .player-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.48rem;
  }

  .player-card-page .player-stat-tile span,
  .player-stat-board-featured .player-stat-tile span {
    padding: 0.32rem 0.22rem;
    font-size: clamp(0.52rem, 2.6vw, 0.64rem);
  }

  .player-card-page .player-stat-tile strong,
  .player-stat-board-featured .player-stat-tile strong {
    padding: 0.4rem 0.22rem;
    font-size: clamp(0.92rem, 5vw, 1.18rem);
  }
}

/* Admin stats entry width + ECU/player column fit polish */
.admin-dashboard:has(.game-stats-form) {
  width: 100%;
  max-width: min(1580px, calc(100vw - 1.25rem));
}

.section:has(.game-stats-form) {
  padding-inline: clamp(0.75rem, 2vw, 1.75rem);
}

.admin-tool-page:has(.game-stats-form),
.stats-workflow-panel:has(.game-stats-form),
.game-stats-form,
.game-stat-stack,
.team-stat-section {
  width: 100%;
}

.stat-entry-scroll {
  width: 100%;
  scrollbar-gutter: stable both-edges;
}

.stat-entry-row:has(.stat-entry-field-ecu) {
  grid-template-columns: 54px 340px 112px;
  grid-auto-columns: 84px;
  align-items: end;
}

.stat-entry-row:has(.stat-entry-field-ecu) .stat-entry-field-ecu {
  width: 54px;
  min-width: 54px;
}

.stat-entry-row:has(.stat-entry-field-ecu) .stat-entry-field-player,
.stat-entry-row:has(.stat-entry-field-ecu) .stat-entry-field-player-ecu {
  width: 340px;
  min-width: 340px;
}

.stat-entry-field-ecu span {
  text-align: center;
  letter-spacing: 0.06em;
}

.stat-entry-field-ecu input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .admin-dashboard:has(.game-stats-form) {
    max-width: calc(100vw - 0.5rem);
  }

  .section:has(.game-stats-form) {
    padding-inline: 0.4rem;
  }

  .stat-entry-row:has(.stat-entry-field-ecu) {
    grid-template-columns: 50px 300px 104px;
  }

  .stat-entry-row:has(.stat-entry-field-ecu) .stat-entry-field-ecu {
    width: 50px;
    min-width: 50px;
  }

  .stat-entry-row:has(.stat-entry-field-ecu) .stat-entry-field-player,
  .stat-entry-row:has(.stat-entry-field-ecu) .stat-entry-field-player-ecu {
    width: 300px;
    min-width: 300px;
  }
}


/* Box score team stat tables aligned with team-page player stat bars */
.schedule-player-table-wrap {
  border-radius: 12px;
  border: 1px solid rgba(88, 166, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.026), transparent),
    rgba(0,0,0,.18);
  overflow: auto;
}

.schedule-player-table {
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-player-table th {
  background:
    linear-gradient(180deg, rgba(0, 198, 255, 0.11), rgba(2, 10, 20, 0.96));
  color: rgba(219, 244, 255, 0.95);
}

.schedule-player-table tbody tr {
  background: rgba(2, 10, 20, 0.72);
}

.schedule-player-table tbody tr:nth-child(even) {
  background: rgba(8, 18, 31, 0.78);
}

.schedule-player-table tbody tr:hover {
  background: rgba(0, 198, 255, 0.06);
}

.schedule-player-table .rating-pill {
  margin-inline: auto;
}


/* Box score / matchup modal selectable links */
.matchup-preview-team {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.matchup-preview-team:hover,
.matchup-preview-team:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 217, 255, 0.18), inset 0 0 34px rgba(255, 255, 255, 0.08);
  outline: 1px solid rgba(255, 255, 255, 0.28);
}

.matchup-preview-player-link,
.box-score-player-link {
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.matchup-preview-player-link:hover,
.matchup-preview-player-link:focus-visible,
.box-score-player-link:hover,
.box-score-player-link:focus-visible {
  color: #79e8ff;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Player current panel: 8-wide rating contributor rank row */
.player-profile-extra-card.is-eight {
  grid-column: 1 / -1;
}

.player-profile-extra-card.is-eight .player-profile-mini-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.player-profile-extra-card.is-eight .player-profile-mini-card {
  min-height: 76px;
}

.player-profile-extra-card.is-eight .player-profile-mini-card strong {
  font-size: clamp(0.98rem, 1.2vw, 1.28rem);
}

@media (max-width: 1280px) {
  .player-profile-extra-card.is-eight .player-profile-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .player-profile-extra-card.is-eight .player-profile-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .player-profile-extra-card.is-eight .player-profile-mini-grid {
    grid-template-columns: 1fr;
  }
}

/* Player current panel: position-based ranking cards styled like team rank blocks */
.player-current-position-rankings {
  grid-column: 1 / -1;
}

.player-profile-rank-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
}

.player-profile-rank-card {
  position: relative;
  min-height: 86px;
  padding: 0.78rem 0.72rem 0.68rem;
  overflow: hidden;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
    radial-gradient(circle at top left, rgba(23, 165, 255, 0.13), transparent 48%),
    rgba(3, 10, 19, 0.78);
  box-shadow: inset 0 0 20px rgba(23, 165, 255, 0.035);
}

.player-profile-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 1rem;
  margin-bottom: 0.28rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 83, 118, 0.35);
  background: rgba(255, 83, 118, 0.20);
  color: rgba(255, 214, 224, 0.96);
  font-size: 0.54rem;
  font-weight: 1000;
  letter-spacing: 0.03em;
  line-height: 1;
}

.player-profile-rank-pill.is-top {
  border-color: rgba(67, 255, 170, 0.35);
  background: rgba(24, 128, 91, 0.42);
  color: rgba(197, 255, 226, 0.98);
  box-shadow: 0 0 14px rgba(67, 255, 170, 0.18);
}

.player-profile-rank-label,
.player-profile-rank-card small {
  display: block;
  color: rgba(220, 233, 247, 0.70);
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.player-profile-rank-card strong {
  display: block;
  margin: 0.22rem 0 0.18rem;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .player-profile-rank-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .player-profile-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .player-profile-rank-grid {
    grid-template-columns: 1fr;
  }
}

/* Player awards panel layout */
.player-showcase-awards .player-stat-board-featured {
  justify-content: flex-start;
}

.player-showcase-awards .player-card-header-featured {
  border-bottom: 1px solid rgba(110, 210, 255, 0.16);
  padding-bottom: 18px;
}

.player-awards-info-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.player-awards-info-panel article,
.player-awards-recent-card,
.player-award-count-box {
  border: 1px solid rgba(82, 185, 255, 0.18);
  background: linear-gradient(180deg, rgba(8, 23, 35, 0.96), rgba(4, 10, 18, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.22);
}

.player-awards-info-panel article {
  border-radius: 12px;
  padding: 12px;
}

.player-awards-info-panel span,
.player-award-count-box span,
.player-awards-count-header span,
.player-awards-recent-card span {
  display: block;
  color: rgba(209, 222, 236, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.player-awards-info-panel strong {
  display: block;
  color: #f6fbff;
  font-size: 1.05rem;
  line-height: 1.15;
  margin-top: 6px;
}

.player-awards-panel-layout {
  display: grid;
  gap: 14px;
}

.player-awards-recent-card,
.player-awards-count-panel {
  border-radius: 16px;
  padding: 16px;
}

.player-awards-recent-card h3,
.player-awards-count-header h3 {
  color: #f8fbff;
  font-size: 0.98rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.player-awards-recent-card strong {
  color: #ffffff;
  display: block;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 1000;
  letter-spacing: 0.02em;
  margin-top: 10px;
  text-transform: uppercase;
}

.player-awards-recent-card span {
  margin-top: 5px;
}

.player-awards-count-panel {
  border: 1px solid rgba(82, 185, 255, 0.2);
  background: linear-gradient(180deg, rgba(8, 16, 26, 0.96), rgba(2, 8, 15, 0.98));
}

.player-awards-count-header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.player-awards-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.player-award-count-box {
  border-radius: 12px;
  min-height: 82px;
  padding: 12px;
}

.player-award-count-box strong {
  color: #ffffff;
  display: block;
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
  margin-top: 12px;
}

@media (max-width: 900px) {
  .player-awards-info-panel,
  .player-awards-count-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .player-awards-info-panel,
  .player-awards-count-grid {
    grid-template-columns: 1fr;
  }

  .player-awards-count-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Awards panel championships summary row */
.player-awards-info-divider {
  grid-column: 1 / -1;
  height: 1px;
  margin: 4px 0 2px;
  background: linear-gradient(90deg, transparent, rgba(110, 210, 255, 0.34), rgba(255, 255, 255, 0.12), transparent);
}

.player-awards-championships-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(82, 185, 255, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 198, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(8, 23, 35, 0.96), rgba(4, 10, 18, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 30px rgba(0, 0, 0, 0.22);
}

.player-awards-championships-row span {
  color: rgba(209, 222, 236, 0.8);
  font-size: 0.76rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-awards-championships-row strong {
  color: #f6fbff;
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
}



/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   GAME OF THE NIGHT  â€”  metallic broadcast feature
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.gotn-feature {
  width: min(100%, 1400px);
  margin: 0 auto 2.5rem;
}

/* ── Time tabs ── */
.gotn-tabs {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 0 .75rem;
}

.gotn-tabs button {
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  border: 1px solid rgba(70,190,255,.28);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 38%),
    linear-gradient(135deg, rgba(12,18,28,.95), rgba(3,6,11,.95));
  color: #cbd7e9;
  font-weight: 900;
  font-size: .88rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .55rem 1.4rem;
  box-shadow: inset 0 0 18px rgba(255,255,255,.035);
  cursor: pointer;
  transition: border-color .2s, color .2s, box-shadow .2s;
}

.gotn-tabs button:hover {
  border-color: rgba(70,190,255,.55);
  color: #e8f2ff;
  box-shadow:
    0 0 12px rgba(45,172,255,.18),
    inset 0 0 18px rgba(255,255,255,.04);
}

.gotn-tabs button span {
  font-size: .72rem;
  letter-spacing: .12em;
  opacity: .7;
}

.gotn-tabs button.is-active {
  color: #fff;
  border-color: rgba(20,196,255,.78);
  box-shadow:
    0 0 18px rgba(45,172,255,.32),
    inset 0 0 24px rgba(45,172,255,.14);
}

.gotn-tabs button.is-active span { opacity: 1; }

/* â”€â”€ Board â€” brushed steel â”€â”€ */
.gotn-board {
  position: relative;
  padding: clamp(1rem,1.8vw,1.8rem) clamp(1rem,2vw,2rem);
  border: 1px solid rgba(140,150,165,.22);
  background:
    /* Team-color ambient glow from each side — set by JS */
    radial-gradient(ellipse at 6% 50%, color-mix(in srgb, var(--away-color, #888) 14%, transparent), transparent 42%),
    radial-gradient(ellipse at 94% 50%, color-mix(in srgb, var(--home-color, #888) 14%, transparent), transparent 42%),
    /* Subtle diagonal brushed texture */
    repeating-linear-gradient(
      108deg,
      transparent 0px, transparent 3px,
      rgba(255,255,255,.012) 3px, rgba(255,255,255,.012) 4px
    ),
    linear-gradient(160deg,
      rgba(8,8,10,1)  0%,
      rgba(4,4,6,1)   45%,
      rgba(6,6,8,1)   75%,
      rgba(2,2,3,1)   100%
    );
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 24px 80px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(0,0,0,.5);
}

.gotn-empty {
  padding: 3rem;
  text-align: center;
  color: #4a5260;
  font-size: .88rem;
  letter-spacing: .06em;
}

/* â”€â”€ Header: logo | title | logo â”€â”€ */
.gotn-header {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

/* Team logo panels */
.gotn-logo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.2rem 1.4rem;
  min-height: 150px;
  border: 2px solid color-mix(in srgb, var(--tc,#888) 70%, rgba(200,210,225,.4));
  border-top: 2px solid color-mix(in srgb, var(--tc,#888) 90%, white);
  background:
    radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--tc,#888) 32%, transparent), transparent 65%),
    linear-gradient(160deg, rgba(34,36,46,.98), rgba(10,11,14,1));
  box-shadow:
    0 0 70px color-mix(in srgb, var(--tc,#888) 35%, transparent),
    0 0 24px color-mix(in srgb, var(--tc,#888) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 0 40px color-mix(in srgb, var(--tc,#888) 12%, transparent);
}

.gotn-logo-panel img {
  max-width: min(180px,80%);
  max-height: 110px;
  object-fit: contain;
  filter:
    drop-shadow(0 6px 20px rgba(0,0,0,.9))
    drop-shadow(0 0 28px color-mix(in srgb, var(--tc,#888) 50%, transparent));
}

.gotn-logo-name {
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tc,#888) 70%, #fff 30%);
}

/* Title block */
.gotn-title-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

/* Chrome metallic title text */
.gotn-main-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 4.2rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: .95;
  background: linear-gradient(180deg,
    #ffffff  0%,
    #d8dde6 18%,
    #8a9099 42%,
    #c5cad4 58%,
    #6b7280 78%,
    #9aa2ae 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.8));
}

.gotn-date-line {
  font-size: clamp(.7rem,1vw,.9rem);
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #6b7585;
}

/* â”€â”€ Two-column matchup grid â”€â”€ */
/* ── Matchup rows — away | pos | home ── */
.gotn-matchup-rows {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.gotn-matchup-row {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  gap: .5rem;
  align-items: center;
}

/* Central position badge */
.gotn-pos-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  padding: .3rem 0;
}

.gotn-pos-label {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a96a8;
  line-height: 1;
  padding: .28rem .5rem;
  border: 1px solid rgba(140,158,180,.28);
  background: linear-gradient(180deg, rgba(38,42,52,.92), rgba(20,22,30,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.gotn-pos-vs {
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #384050;
}

/* Position-specific badge colors */
.gotn-pos-lw .gotn-pos-label { color: #22c55e; border-color: rgba(34,197, 94,.45); }
.gotn-pos-c  .gotn-pos-label { color: #ef4444; border-color: rgba(239, 68, 68,.45); }
.gotn-pos-rw .gotn-pos-label { color: #3b82f6; border-color: rgba(59,130,246,.45); }
.gotn-pos-ld .gotn-pos-label { color: #06b6d4; border-color: rgba(  6,182,212,.45); }
.gotn-pos-rd .gotn-pos-label { color: #eab308; border-color: rgba(234,179,  8,.45); }
.gotn-pos-g  .gotn-pos-label { color: #a855f7; border-color: rgba(168, 85,247,.45); }

/* ── Team stats comparison bar ── */
.gotn-stats-bar {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: .9rem;
  padding: .9rem 1.6rem;
  border: 1px solid rgba(140,150,165,.2);
  border-top: 1px solid rgba(160,172,188,.3);
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--away-color, #888) 10%, rgba(12,13,18,.97)),
      rgba(12,13,18,.97) 38%,
      rgba(12,13,18,.97) 62%,
      color-mix(in srgb, var(--home-color, #888) 10%, rgba(12,13,18,.97))
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 24px rgba(0,0,0,.4);
}

.gotn-stats-side {
  display: flex;
  gap: clamp(.8rem, 2.5vw, 2rem);
  align-items: center;
}

.gotn-stats-away { justify-content: flex-start; }
.gotn-stats-home { justify-content: flex-end; }

.gotn-stat-item {
  display: flex;
  flex-direction: column;
  gap: .22rem;
}

.gotn-stats-away .gotn-stat-item { align-items: flex-start; }
.gotn-stats-home .gotn-stat-item { align-items: flex-end; }

.gotn-stat-label {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #404c5c;
}

.gotn-stat-value {
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: .05em;
  color: #b8c4d2;
}

.gotn-stats-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gotn-stats-logo {
  width: 81px;
  height: 81px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

/* ── Player-bar animations ── */
@property --pulse-a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes gotn-border-pulse {
  to { --pulse-a: 360deg; }
}


/* â”€â”€ Gamer-tag player bar â”€â”€ */
.gotn-tag {
  position: relative;
  /* Glass-translucent team-color border — softened, premium feel */
  background: color-mix(in srgb, var(--tc, #888) 35%, transparent);
  padding: 3px;
  min-width: 0;      /* prevent grid item from overflowing its column */
  overflow: hidden;  /* lock width — box never grows with content */
}

/* Clockwise border pulse — bright team-color comet sweeps the perimeter */
.gotn-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from var(--pulse-a),
    transparent                                        0deg,
    transparent                                      300deg,
    color-mix(in srgb, var(--tc, #888) 20%, transparent) 320deg,
    color-mix(in srgb, var(--tc, #888) 80%, white)    350deg,
    color-mix(in srgb, var(--tc, #888) 60%, white)    358deg,
    transparent                                      360deg
  );
  animation: gotn-border-pulse 8s linear infinite;
  pointer-events: none;
}

/* Away: chamfered left edge */
.gotn-tag-away {
  clip-path: polygon(36px 0%, 100% 0%, 100% 100%, 36px 100%, 0% calc(100% - 36px), 0% 36px);
}

/* Home: chamfered right edge (mirrored) */
.gotn-tag-home {
  clip-path: polygon(0% 0%, calc(100% - 36px) 0%, 100% 36px, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0% 100%);
}

/* Dark inner body — fixed height, text scales to fit */
.gotn-tag-inner {
  position: relative;
  z-index: 1; /* sit above .gotn-tag::before pulse layer */
  width: 100%;
  height: 80px; /* fixed — box never grows with content */
  background: linear-gradient(170deg, #080809, #020203); /* near-black */
  clip-path: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .45rem 1.1rem;
  box-sizing: border-box;
  overflow: hidden;
}

/* Metallic sheen — top-lit highlight fading to dark base, above PNG, below text */
.gotn-tag-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(210,220,240,.13)  0%,
    rgba(170,185,210,.07)  14%,
    rgba(130,145,170,.03)  32%,
    transparent            54%,
    rgba(0,0,0,.22)       100%
  );
  z-index: 0;
  pointer-events: none;
}

/* PNG base layer — away (normal orientation) */
.gotn-tag-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/player-box.png') center / 100% 100% no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Home: mirror the PNG so the chamfer graphic matches the right-side clip-path */
.gotn-tag-home .gotn-tag-inner::before {
  transform: scaleX(-1);
}

/* Home border pulse runs counter-clockwise */
.gotn-tag-home::before {
  animation-direction: reverse;
}

.gotn-tag-away .gotn-tag-inner { padding-left: clamp(2rem, 6%, 3.2rem); }
.gotn-tag-home .gotn-tag-inner { padding-right: clamp(2rem, 6%, 3.2rem); align-items: flex-end; text-align: right; }

/* Player name â€” metallic chrome */
/* Headline row: name | #jersey | OVR */
.gotn-tag-headline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-bottom: .2rem;
  overflow: hidden;
  flex-shrink: 0;
}
.gotn-tag-home .gotn-tag-headline { justify-content: flex-end; }

.gotn-tag-name {
  margin: 0;
  /* Max 1.15rem so headline + stats row fit in the 66px content area */
  font-size: clamp(.7rem, 1.3vw, 1.15rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  /* Stone texture: warm pale stone top, fading to dark gray at bottom 30% */
  background: linear-gradient(
    to bottom,
    #e2ddd5 0%,
    #ccc6ba 18%,
    #d6d0c6 32%,
    #bcb6a8 52%,
    #8c877e 68%,
    #585450 80%,
    #3e3c3a 92%,
    #2c2b29 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.9));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.gotn-tag-hdivider {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(.7rem, 1.3vw, 1.15rem); /* tracks name */
  color: rgba(255,255,255,.18);
  line-height: 1;
}

.gotn-tag-jersey {
  flex-shrink: 0;
  font-size: clamp(.7rem, 1.3vw, 1.15rem); /* tracks name */
  font-style: italic;
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(205,215,230,.65);
  white-space: nowrap;
}

.gotn-tag-ovr-val {
  flex-shrink: 0;
  font-size: clamp(.62rem, 1.05vw, .98rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .04em;
  color: rgba(185,200,220,.35);
  white-space: nowrap;
}

.gotn-tag-ovr-lbl {
  font-size: .78em;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-style: normal;
  color: rgba(160,175,195,.2);
}

/* Stats row with flanking lines */
.gotn-tag-level {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
}

.gotn-tag-home .gotn-tag-level { flex-direction: row-reverse; }

.gotn-tag-line {
  flex: 1;
  height: 1.5px;
  opacity: .85;
}

/* Away — left line fades in toward center, right line fades out from center */
.gotn-tag-away .gotn-tag-line:first-child {
  background: linear-gradient(to right, transparent, var(--tc, #888));
}
.gotn-tag-away .gotn-tag-line:last-child {
  background: linear-gradient(to right, var(--tc, #888), transparent);
}

/* Home — row-reverse flips visual order, so DOM first-child is on the right */
.gotn-tag-home .gotn-tag-line:first-child {
  background: linear-gradient(to right, var(--tc, #888), transparent);
}
.gotn-tag-home .gotn-tag-line:last-child {
  background: linear-gradient(to right, transparent, var(--tc, #888));
}

.gotn-tag-stats {
  font-size: clamp(.53rem, .79vw, .71rem);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

/* â”€â”€ Mobile â”€â”€ */
@media (max-width: 680px) {
  .gotn-tabs button { padding: .5rem .85rem; font-size: .76rem; }
  .gotn-header {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .gotn-title-block {
    grid-column: 1 / -1;
    order: -1;
    text-align: center;
  }
  .gotn-logo-panel {
    display: flex;
    min-height: 80px;
    padding: 0.5rem 0.6rem;
  }
  .gotn-logo-panel img {
    max-width: min(80px, 70%);
    max-height: 60px;
  }
  .gotn-logo-name { font-size: .55rem; }
  .gotn-main-title { font-size: clamp(1.5rem, 8vw, 2.4rem); }

  /* Condensed 3-column layout — mirrors desktop, scaled for mobile */
  .gotn-matchup-rows { gap: .3rem; }

  .gotn-matchup-row {
    grid-template-columns: 1fr 32px 1fr;
    gap: .25rem;
  }

  /* Smaller chamfer to fit narrow screens */
  .gotn-tag-away {
    clip-path: polygon(20px 0%, 100% 0%, 100% 100%, 20px 100%, 0% calc(100% - 20px), 0% 20px);
  }
  .gotn-tag-home {
    clip-path: polygon(0% 0%, calc(100% - 20px) 0%, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%);
  }

  /* Tighter inner padding — fixed height on mobile */
  .gotn-tag-inner {
    height: 54px;
    padding: .25rem .4rem;
  }
  .gotn-tag-away .gotn-tag-inner { padding-left: 1rem; }
  .gotn-tag-home .gotn-tag-inner { padding-right: 1rem; }

  /* Mobile: hide jersey, dividers and OVR — box is too narrow for all three */
  .gotn-tag-hdivider,
  .gotn-tag-jersey,
  .gotn-tag-ovr-val,
  .gotn-tag-ovr-lbl   { display: none; }

  /* Name and stats scaled to fit narrower boxes */
  .gotn-tag-name  { font-size: clamp(.48rem, 2.4vw, .7rem); margin-bottom: .08rem; }
  .gotn-tag-stats { font-size: clamp(.36rem, 1.4vw, .48rem); }

  /* Compact position badge */
  .gotn-pos-badge { gap: .12rem; padding: .2rem 0; }
  .gotn-pos-label { font-size: .58rem; padding: .18rem .28rem; letter-spacing: .08em; }
  .gotn-pos-vs    { font-size: .42rem; }

  /* Stats bar — compact side-by-side */
  .gotn-stats-bar {
    grid-template-columns: 1fr 30px 1fr;
    padding: .6rem .7rem;
    gap: .4rem;
    margin-top: .6rem;
  }
  .gotn-stats-side { gap: .5rem; }
  .gotn-stat-label { font-size: .66rem; }
  .gotn-stat-value { font-size: 1.08rem; }
  .gotn-stats-logo { width: 39px; height: 39px; }

  /* Hide Goals/Game (2nd) and GAA (3rd) — Season Record only on mobile */
  .gotn-stats-side .gotn-stat-item:nth-child(2),
  .gotn-stats-side .gotn-stat-item:nth-child(3) { display: none; }
}

/* ══════════════════════════  STREAM PAGE WIDTH OVERRIDE  ══════════════════════════ */
/* Only applies to stream-tjchalkboard.html */
.stream-page .site-header,
.stream-page .page-shell {
  width: min(2000px, calc(100% - 1rem));
}

/* Video column capped at current size; sidebar takes all new space — desktop only */
@media (min-width: 801px) {
  .stream-page .stream-layout {
    grid-template-columns: minmax(0, 1380px) 1fr;
  }
}

/* Scale up sidebar content to fill the wider column — desktop only */
@media (min-width: 801px) {
  .stream-page .stream-sidebar {
    gap: 1.3rem;
  }
  .stream-page .stream-game-card {
    padding: 1.6rem 1.5rem;
  }
  .stream-page .stream-game-meta {
    font-size: .95rem;
    margin-bottom: 1.1rem;
  }
  .stream-page .stream-matchup {
    gap: 1rem;
  }
  .stream-page .stream-team-side {
    gap: .5rem;
  }
  .stream-page .stream-team-logo {
    width: 100px;
    height: 100px;
  }
  .stream-page .stream-team-abbr {
    font-size: 1.55rem;
  }
  .stream-page .stream-team-name {
    font-size: .9rem;
  }
  .stream-page .stream-team-record {
    font-size: .95rem;
  }
  .stream-page .stream-vs span {
    font-size: 1rem;
  }
  .stream-page .stream-comp-stats {
    gap: 0.3rem;
    margin-top: 1.2rem;
  }
  .stream-page .stream-comp-header {
    font-size: .82rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0.25rem;
  }
  .stream-page .stream-stat-row {
    padding: .42rem .55rem;
  }
  .stream-page .stream-stat-label {
    font-size: .82rem;
  }
  .stream-page .stream-stat-val {
    font-size: 1.08rem;
  }
  .stream-page .stream-slot-tabs button {
    padding: .55rem .5rem;
    font-size: .88rem;
  }
  .stream-page .stream-lineup-toggle {
    padding: .85rem 1rem;
    font-size: 1rem;
  }
  .stream-page .stream-back-link {
    font-size: .88rem;
  }
}

/* ══════════════════════════  LIVE STREAM BANNER  ══════════════════════════ */

.live-banner {
  background: linear-gradient(90deg, rgba(220,38,38,.18) 0%, rgba(4,13,27,.7) 60%);
  border: 1px solid rgba(220,38,38,.45);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: .75rem 1.1rem;
  box-shadow: 0 0 24px rgba(220,38,38,.18);
  animation: live-banner-pulse 3s ease-in-out infinite;
}

@keyframes live-banner-pulse {
  0%, 100% { box-shadow: 0 0 18px rgba(220,38,38,.18); }
  50%       { box-shadow: 0 0 36px rgba(220,38,38,.32); }
}

.live-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.live-banner-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,.9);
  animation: live-dot-blink 1.2s ease-in-out infinite;
}

@keyframes live-dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

.live-banner-text {
  flex: 1;
  min-width: 0;
}

.live-banner-text strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .03em;
}

.live-banner-text span {
  font-size: .78rem;
  color: rgba(200,210,230,.7);
}

.live-banner-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.2rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border: 1px solid rgba(239,68,68,.6);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 0 16px rgba(220,38,38,.35);
}

.live-banner-cta:hover {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 0 28px rgba(239,68,68,.55);
  transform: translateY(-1px);
}

/* ══════════════════════════  STREAM PAGE  ══════════════════════════ */

/* Stream hero */
.stream-hero {
  background: linear-gradient(135deg, rgba(10,5,25,.98) 0%, rgba(14,6,36,.95) 100%);
  border-bottom: 1px solid rgba(100,60,255,.2);
  padding: 1.4rem 1.5rem;
}

.stream-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.live-dot-hero {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239,68,68,.95), 0 0 24px rgba(239,68,68,.5);
  animation: live-dot-blink 1.2s ease-in-out infinite;
}

.stream-hero-text {
  flex: 1;
  min-width: 0;
}

.stream-hero-text h1 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #e2e8f0;
  margin: 0 0 .15rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stream-hero-text h1 span {
  color: #ef4444;
}

.stream-hero-text p {
  font-size: .82rem;
  color: rgba(180,195,220,.65);
  margin: 0;
}

.stream-twitch-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 6px;
  background: rgba(145,70,255,.18);
  border: 1px solid rgba(145,70,255,.4);
  color: #c084fc;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}

.stream-twitch-link:hover {
  background: rgba(145,70,255,.32);
  border-color: rgba(145,70,255,.7);
}

/* Main stream layout — embed + sidebar */
.stream-layout {
  width: 100%;
  padding: 1.2rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.4rem;
  align-items: start;
}

/* Twitch embed wrapper */
.stream-embed-wrap {
  width: 100%;
}

.stream-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 2px solid rgba(20,196,255,.45);
  box-shadow:
    0 0 0 1px rgba(20,196,255,.12),
    0 0 32px rgba(20,196,255,.22),
    0 0 72px rgba(20,196,255,.1);
  overflow: hidden;
  background: #000;
}

.stream-embed-frame #twitch-embed,
.stream-embed-frame iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* Sidebar */
.stream-sidebar {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* Game card */
.stream-game-card {
  background: linear-gradient(160deg, rgba(12,18,36,.98) 0%, rgba(6,10,24,.96) 100%);
  border: 1px solid rgba(20,196,255,.22);
  border-radius: 10px;
  padding: 1.1rem 1rem;
  box-shadow: 0 0 20px rgba(20,196,255,.08);
}

.stream-game-loading,
.stream-no-game {
  text-align: center;
  color: rgba(180,195,220,.5);
  font-size: .82rem;
  padding: 1rem 0;
}

.stream-game-meta {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(20,196,255,.75);
  margin-bottom: .85rem;
}

/* Matchup row — away | VS | home */
.stream-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
}

.stream-team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
}

.stream-team-side.stream-team-home {
  align-items: center;
}

.stream-team-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(var(--tc, 20,196,255), .4));
}

.stream-team-abbr {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.stream-team-name {
  font-size: .68rem;
  color: rgba(180,195,220,.6);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.stream-team-record {
  font-size: .7rem;
  color: rgba(20,196,255,.75);
  font-weight: 600;
}

.stream-vs {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-vs span {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: rgba(180,195,220,.4);
}

/* Slot tabs */
.stream-slot-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.stream-slot-tabs button {
  flex: 1;
  padding: .4rem .3rem;
  font-size: .72rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(20,196,255,.22);
  background: rgba(12,18,36,.9);
  color: rgba(180,200,230,.65);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}

.stream-slot-tabs button.is-active,
.stream-slot-tabs button:hover {
  background: rgba(20,196,255,.12);
  border-color: rgba(20,196,255,.55);
  color: #fff;
}

/* View Lineups button */
.stream-lineup-toggle {
  width: 100%;
  padding: .65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(20,196,255,.4);
  background: linear-gradient(135deg, rgba(20,196,255,.14), rgba(0,140,220,.1));
  color: #7dd3fc;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.stream-lineup-toggle:hover {
  background: linear-gradient(135deg, rgba(20,196,255,.24), rgba(0,140,220,.18));
  border-color: rgba(20,196,255,.7);
  box-shadow: 0 0 18px rgba(20,196,255,.2);
}

/* Back link */
.stream-back-link {
  text-align: center;
  font-size: .76rem;
  color: rgba(180,195,220,.45);
  text-decoration: none;
  transition: color .2s;
  padding: .25rem 0;
}

.stream-back-link:hover {
  color: rgba(20,196,255,.8);
}

/* ── Lineup panel ── */
/* Comparative team stats bar in game card */
.stream-comp-stats {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stream-comp-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  text-align: center;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(180,195,220,.5);
  padding: 0 0.3rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 0.15rem;
}
.stream-comp-header span:first-child { text-align: left; }
.stream-comp-header span:last-child  { text-align: right; }
.stream-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.3rem;
  border-radius: 4px;
}
.stream-stat-row:nth-child(even) {
  background: rgba(255,255,255,.025);
}
.stream-stat-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(180,195,220,.45);
  text-align: center;
  white-space: nowrap;
}
.stream-stat-val {
  font-size: .88rem;
  font-weight: 700;
  color: rgba(200,215,235,.65);
  text-align: left;
  transition: color .15s;
}
.stream-stat-val-home {
  text-align: right;
}
.stream-stat-val.is-better {
  color: #46e89a;
  font-weight: 800;
}

/* Lineup panel — full width of page container */
.stream-lineup-panel {
  width: 100%;
  margin: 0 0 2rem;
  padding: 0 1.2rem;
}

.stream-lineup-inner {
  background: linear-gradient(160deg, rgba(10,16,32,.98), rgba(5,9,22,.97));
  border: 1px solid rgba(20,196,255,.18);
  border-radius: 10px;
  padding: 1.2rem 1.2rem;
  box-shadow: 0 0 28px rgba(20,196,255,.07);
}

.sl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.sl-team-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.sl-team-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(var(--tc, 20,196,255), .25);
}

.sl-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.sl-team-header strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(var(--tc, 20,196,255), 1);
  text-transform: uppercase;
}

.sl-rows {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.sl-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  flex-wrap: wrap;
}

.sl-pos {
  flex: 0 0 auto;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .2rem .45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.sl-pos-lw { background: rgba(34,197, 94,.18); color: #22c55e; }
.sl-pos-c  { background: rgba(239, 68, 68,.18); color: #ef4444; }
.sl-pos-rw { background: rgba(59,130,246,.18); color: #3b82f6; }
.sl-pos-ld { background: rgba( 6,182,212,.18); color: #06b6d4; }
.sl-pos-rd { background: rgba(234,179,  8,.18); color: #eab308; }
.sl-pos-g  { background: rgba(159, 86,255,.18); color: #a855f7; }

.sl-jersey {
  font-size: .82rem;
  color: rgba(180,195,220,.5);
  font-weight: 600;
  min-width: 32px;
}

.sl-name {
  flex: 1;
  font-size: .98rem;
  font-weight: 600;
  color: #e2e8f0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-ovr {
  font-size: .8rem;
  font-weight: 800;
  color: #14b8d4;
  padding: .15rem .38rem;
  border-radius: 3px;
  background: rgba(20,184,212,.12);
  border: 1px solid rgba(20,184,212,.25);
}

.sl-ecu {
  font-size: .6rem;
  font-weight: 700;
  color: #f59e0b;
  padding: .1rem .28rem;
  border-radius: 3px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sl-stats {
  font-size: .82rem;
  color: rgba(180,195,220,.55);
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 800px) {
  .stream-layout {
    grid-template-columns: 1fr;
  }

  /* Embed appears first, sidebar below */
  .stream-embed-wrap { order: 1; }
  .stream-sidebar    { order: 2; }

  /* Reorder sidebar children: game times → matchup info → lineup btn → back link */
  .stream-slot-tabs      { order: 1; }
  .stream-game-card      { order: 2; }
  .stream-lineup-toggle  { order: 3; }
  .stream-back-link      { order: 4; }

  .stream-team-logo {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 540px) {
  .sl-grid {
    grid-template-columns: 1fr;
  }

  /* Scale player rows for narrow screens */
  .sl-row {
    padding: .4rem .55rem;
    gap: .4rem;
  }
  .sl-name {
    font-size: clamp(.72rem, 3.5vw, .92rem);
  }
  .sl-pos {
    font-size: clamp(.6rem, 2.8vw, .75rem);
    padding: .15rem .32rem;
  }
  .sl-jersey {
    font-size: clamp(.62rem, 2.8vw, .78rem);
    min-width: 24px;
  }
  .sl-stats {
    font-size: clamp(.6rem, 2.6vw, .76rem);
    width: 100%;
  }
  /* Hide OVR badge on mobile — not enough room */
  .sl-ovr { display: none; }

  .live-banner-inner {
    gap: .65rem;
  }
}
