:root {
  color: #efeff0;
  background:
    radial-gradient(circle at top left, rgba(118, 188, 231, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(221, 165, 57, 0.12), transparent 30%),
    linear-gradient(180deg, #090c3c 0%, #0d0e1e 48%, #090c3c 100%);
  font-family: Lato, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.45;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: #efeff0;
  background:
    radial-gradient(circle at top left, rgba(118, 188, 231, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(221, 165, 57, 0.12), transparent 30%),
    linear-gradient(180deg, #090c3c 0%, #0d0e1e 48%, #090c3c 100%);
}

input,
button,
select,
textarea {
  font: inherit;
}

.dashboard-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 15px 22px;
  border-radius: 18px;
  background: #dda539;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.back-link:hover {
  background: #e8af43;
}

.hero,
.filters-bar,
.kpi,
.dashboard-card,
.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(21, 52, 177, 0.18) 0%, rgba(9, 12, 60, 0.94) 100%);
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero,
.filters-bar,
.dashboard-card {
  padding: 22px;
}

.hero {
  margin-bottom: 18px;
}

.hero--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.hero--link:hover {
  transform: translateY(-2px);
  border-color: rgba(221, 165, 57, 0.42);
  background:
    linear-gradient(180deg, rgba(69, 100, 246, 0.22) 0%, rgba(9, 12, 60, 0.96) 100%);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.32);
}

.hero__copy,
.dashboard-card__copy {
  color: rgba(239, 239, 240, 0.72);
  max-width: 820px;
}

.filters-bar {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.filter-strip {
  display: grid;
  gap: 12px;
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-search__input {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #efeff0;
  outline: none;
}

.filter-search__input:focus {
  border-color: rgba(118, 188, 231, 0.58);
  box-shadow: 0 0 0 3px rgba(118, 188, 231, 0.14);
}

.filter-search__clear {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(118, 188, 231, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #efeff0;
  cursor: pointer;
}

.filter-strip--disabled {
  opacity: 0.45;
}

.filter-strip__title {
  margin: 0;
  color: #dda539;
  font-size: 0.92rem;
  font-weight: 700;
}

.filter-strip__hint {
  margin: -4px 0 0;
  color: rgba(239, 239, 240, 0.68);
  font-size: 0.88rem;
}

.filter-strip__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-y: auto;
  padding-bottom: 4px;
  align-content: start;
}

.filter-strip--year .filter-strip__options {
  min-height: 108px;
  max-height: 108px;
}

.filter-strip--team .filter-strip__options {
  min-height: 164px;
  max-height: 164px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #efeff0;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chip--all {
  background: rgba(221, 165, 57, 0.12);
  border-color: rgba(221, 165, 57, 0.24);
}

.filter-chip--active {
  border-color: rgba(69, 100, 246, 0.5);
  background: rgba(69, 100, 246, 0.18);
  box-shadow: 0 0 0 1px rgba(69, 100, 246, 0.16) inset;
}

.filter-chip input {
  margin: 0;
}

.team-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  vertical-align: -2px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.team-flag--summary {
  margin-right: 8px;
}

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

.kpi {
  padding: 18px;
}

.kpi__label {
  display: block;
  color: rgba(239, 239, 240, 0.62);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.kpi__value {
  display: block;
  font-size: 2rem;
  color: #dda539;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.dashboard-card__header,
.panel__header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-section + .dashboard-section {
  margin-top: 24px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.stats-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.stats-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.stats-card__header {
  margin-bottom: 16px;
}

.stats-card__header h3 {
  margin-bottom: 4px;
}

.stats-card__header p {
  color: rgba(239, 239, 240, 0.68);
  margin-bottom: 0;
}

.panel {
  padding: 18px;
}

.panel__score {
  color: #dda539;
  font-size: 1.2rem;
}

.age-chart {
  display: grid;
  gap: 12px;
}

.lineup-toggle-group {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.edition-toggle,
.bracket-toggle {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.edition-toggle > summary,
.bracket-toggle > summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #76bce7;
  font-weight: 700;
}

.lineup-toggle {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.lineup-toggle summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #76bce7;
  font-weight: 700;
}

.lineup-toggle__body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.lineup-player {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 90px 90px;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lineup-player__name {
  color: #efeff0;
}

.lineup-player__meta,
.lineup-player__age {
  color: rgba(239, 239, 240, 0.66);
  font-size: 0.9rem;
}

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

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

.bracket-column h4 {
  margin: 0;
  color: #dda539;
}

.bracket-box {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bracket-box__title {
  margin-bottom: 10px;
  color: rgba(239, 239, 240, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
}

.bracket-match {
  display: grid;
  gap: 6px;
}

.bracket-match + .bracket-match {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bracket-match span,
.bracket-match strong {
  color: #efeff0;
}

.stat-line,
.age-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  gap: 12px;
  align-items: center;
}

.stat-line__label,
.age-row__team,
.age-row__value {
  font-size: 0.92rem;
}

.stat-line__bar,
.age-row__bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-line__fill,
.age-row__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4564f6, #76bce7);
}

.stat-line__fill--gold {
  background: linear-gradient(90deg, #dda539, #f0cb73);
}

.stat-line__fill--green {
  background: linear-gradient(90deg, #4564f6, #76bce7);
}

.stat-line__fill--blue {
  background: linear-gradient(90deg, #1534b1, #4564f6);
}

.age-row__fill--alt {
  background: linear-gradient(90deg, #1534b1, #76bce7);
}

.table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.dashboard-table th {
  color: #dda539;
  font-size: 0.86rem;
}

.dashboard-table td {
  color: rgba(239, 239, 240, 0.88);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: #76bce7;
  margin: 0 0 8px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

h2 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

h3 {
  margin-bottom: 6px;
}

h1,
h2,
h3 {
  color: #efeff0;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

@media (max-width: 920px) {
  .kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-shell {
    width: min(100% - 16px, 1400px);
    padding-top: 16px;
  }

  .hero,
  .filters-bar,
  .dashboard-card,
  .kpi,
  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .age-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lineup-player {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
