:root {
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dark: #071018;
  --charcoal: #111b24;
  --ink: #1d252c;
  --muted: #66717c;
  --line: #dfe5ea;
  --soft: #f4f6f8;
  --white: #fff;
  --green: #58a83f;
  --gold: #f1b400;
  --orange: #f36b2a;
  --red: #ef3340;
  --blue: #1464ad;
  --silver: #9ba3aa;
  --bronze: #b76213;
  --shadow: 0 18px 50px rgba(10, 25, 40, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-main);
  font-optical-sizing: auto;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--soft);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

h1,
.page-title,
.hero-title,
.hero h1,
.detail-hero h1 {
  font-weight: 800;
  letter-spacing: 0;
}

h2,
.section-title,
.section-head h2 {
  font-weight: 750;
  letter-spacing: 0;
}

.card-title,
.stat-value,
.table-total,
.stat-card b,
.state-card > strong,
.medal-table tfoot td,
.compact-row b {
  font-weight: 700;
}

.nav-link,
.main-nav a,
.badge,
.button,
.btn,
.pill,
.status,
.state-pill,
.next-sport-badge,
.next-event-badge,
.state-next-button {
  font-weight: 600;
}

.stat-card,
.sport-card,
.athlete-card,
.state-card,
.venue-card,
.news-card,
.event-card,
.panel-card,
.chart-card,
.compact-row,
.gallery-media-card,
.document-feature-card {
  contain: layout paint;
}

/* Final desktop density overrides. The site uses Inter; this keeps it lighter and less oversized. */
body {
  font-size: 14px;
  line-height: 1.45;
}

h1,
.page-title,
.hero-title,
.hero h1,
.detail-hero h1,
.match-hero h1,
.news-detail-hero h1,
.state-detail-hero h1,
.auth-visual h1,
.profile-hero-panel h1 {
  font-weight: 700;
}

h2,
h3,
.section-title,
.section-head h2,
.panel-card h2,
.auth-card h2,
.profile-panel h2,
.sport-detail-intro h2,
.fighter h2,
.team-side h2 {
  font-weight: 650;
}

.main-nav,
.main-nav a,
.profile-chip,
.login-chip,
.btn,
.chip,
.tabs button,
.compact-score,
.stat-card small,
.stat-card em,
.athlete-meta-list span,
.state-pill,
.quick-filters button,
.quick-filters a,
.section-head a,
.provider-button,
.follow-card small {
  font-weight: 560;
}

.stat-card b,
.compact-row b,
.athlete-card .medal-mini strong,
.medal-total,
.rank-pill,
.state-card > strong,
.record-grid b,
.metric-matrix b,
.summary-list strong,
.dark-card strong {
  font-weight: 650;
}

.site-header {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 62px;
  padding: 7px clamp(18px, 4vw, 56px);
}

.brand img {
  height: 48px;
  max-width: 112px;
}

.main-nav {
  gap: clamp(8px, 1vw, 18px);
  font-size: 12px;
}

.main-nav a {
  gap: 6px;
  padding: 22px 0;
}

.main-nav a::after {
  bottom: 13px;
  height: 2px;
}

.theme-toggle,
.profile-chip,
.login-chip {
  min-height: 34px;
}

.theme-toggle {
  width: 34px;
}

.profile-chip,
.login-chip {
  gap: 8px;
  padding: 3px 9px 3px 3px;
  font-size: 12px;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
}

.page-band {
  padding: 20px clamp(18px, 4vw, 56px) 34px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.cards-grid,
.featured-sports,
.state-grid,
.venue-grid,
.news-grid,
.event-grid,
.live-grid {
  gap: 14px;
}

.section-head {
  margin: 18px 0 12px;
}

.section-head h2 {
  font-size: 21px;
  line-height: 1.05;
}

.section-head a {
  font-size: 12px;
}

.category-row,
.tabs,
.date-carousel,
.live-ribbon {
  gap: 10px;
  padding: 10px;
  margin: 12px 0;
}

.chip,
.tabs button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
}

.btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 560;
}

.sport-card,
.athlete-card,
.state-card,
.venue-card,
.venue-info-card,
.news-card,
.event-card,
.download-card,
.table-card,
.detail-shell,
.panel-card,
.info-card {
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.sport-body h3,
.athlete-card h3,
.state-card h3,
.venue-card h3,
.news-card h3,
.event-card h3 {
  font-size: 18px;
  line-height: 1.14;
}

.athlete-card-banner {
  min-height: 112px;
}

.athlete-card-banner .athlete-photo {
  left: 16px;
  bottom: 14px;
}

.athlete-card .athlete-photo {
  width: 66px;
  height: 66px;
  border-width: 3px;
}

.athlete-card h3 {
  margin: 14px 16px 0;
  font-size: 18px;
}

.person-name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .28em;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  letter-spacing: 0;
}

.person-name-first {
  min-width: 0;
  font-weight: 400;
  text-transform: none;
}

.person-name-last {
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.person-name.only-last .person-name-last {
  font-weight: 900;
}

.athlete-meta-list {
  gap: 7px;
  margin: 12px 16px 0;
  padding-top: 10px;
}

.athlete-meta-list span {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 12px;
}

.athlete-card .medal-mini-row {
  gap: 7px;
  margin: 12px 16px 16px;
}

.athlete-card .medal-mini {
  min-height: 38px;
  padding: 7px;
}

.athlete-card .medal-mini .bi {
  font-size: 15px;
}

.athlete-card .medal-mini strong {
  font-size: 17px;
}

.favorite,
.follow-action {
  width: 30px;
  height: 30px;
}

.favorite {
  top: 10px;
  right: 10px;
}

.compact-row {
  min-height: 58px;
  padding: 10px;
}

.compact-score {
  min-height: 26px;
  min-width: 46px;
  padding: 0 8px;
  font-size: 12px;
}

.dot {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.stat-card {
  min-height: 78px;
  gap: 14px;
  padding: 14px;
}

.stat-icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  font-size: 21px;
}

.stat-card b {
  font-size: 24px;
}

.stat-card small,
.stat-card em {
  font-size: 11px;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .site-header {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    padding-left: 42px;
    padding-right: 42px;
  }

  .brand img {
    height: 44px;
    max-width: 96px;
  }

  .main-nav {
    gap: 13px;
    font-size: 11.5px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
  }

  .page-band {
    padding-left: 42px;
    padding-right: 42px;
  }

  .athlete-grid,
  .state-grid {
    gap: 14px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .sport-body h3,
  .athlete-card h3,
  .state-card h3,
  .venue-card h3,
  .news-card h3,
  .event-card h3 {
    font-size: 17px;
  }
}

.sports-page .sports-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sports-page .sports-stat-grid .stat-card {
  min-height: 68px;
  gap: 10px;
  padding: 11px 12px;
  box-shadow: 0 8px 22px rgba(21, 32, 42, .055);
}

.sports-page .sports-stat-grid .stat-icon {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.sports-page .sports-stat-grid .stat-card small {
  font-size: 10px;
  letter-spacing: .01em;
}

.sports-page .sports-stat-grid .stat-card b {
  font-size: 23px;
}

.sports-page .sports-stat-grid .stat-card em {
  display: none;
}

.sports-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0 12px;
}

.sports-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 42, .045);
}

.sports-search-box .bi {
  color: var(--blue);
}

.sports-search-box input {
  width: 100%;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
}

.sports-calendar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  color: var(--white);
  border-radius: 8px;
  background: linear-gradient(120deg, var(--green), var(--blue), var(--gold), var(--red), var(--green));
  background-size: 260% 260%;
  box-shadow: 0 12px 26px rgba(20, 100, 173, .18);
  font-size: 13px;
  font-weight: 850;
  animation: stateNextGradient 8s ease infinite;
}

.sports-activity-strip {
  margin: 12px 0 14px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 42, .045);
}

.sports-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sports-activity-head strong {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.sports-activity-head a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.sports-activity-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.sports-activity-scroll {
  cursor: grab;
  scrollbar-width: none;
}

.sports-activity-scroll::-webkit-scrollbar {
  display: none;
}

.sports-activity-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.sports-activity-card {
  flex: 0 0 245px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sports-activity-card span:not(.dot) {
  min-width: 0;
}

.sports-activity-card b,
.sports-activity-card small,
.sports-activity-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-activity-card b {
  font-size: 13px;
  line-height: 1.1;
}

.sports-activity-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.sports-activity-card em {
  grid-column: 2;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sports-page .sports-category-row {
  gap: 8px;
  padding: 10px;
  margin: 14px 0;
}

.sports-page .sports-category-row .chip {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

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

.sports-page .cards-grid.sports-list {
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 12px;
}

.sports-page .sport-card {
  grid-template-columns: 82px minmax(0, 1fr);
}

.sports-page .sport-media {
  min-height: 112px;
}

.sports-page .sport-media span {
  font-size: 30px;
}

.sports-page .sport-body {
  gap: 8px;
  padding: 12px;
}

.sports-page .sport-body h3 {
  font-size: 16px;
}

.sports-page .sport-stats {
  gap: 7px 9px;
  padding-top: 8px;
}

.sports-page .sport-stats span {
  font-size: 10.5px;
}

.sports-page .sport-stats b {
  font-size: 12.5px;
}

.sports-results-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 16px;
  padding: 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.sports-results-empty[hidden] {
  display: none;
}

html[data-theme="dark"] .sports-search-box,
html[data-theme="dark"] .sports-activity-strip,
html[data-theme="dark"] .sports-activity-card,
html[data-theme="dark"] .sports-results-empty {
  color: var(--ink);
  background: #101923;
  border-color: #243544;
}

html[data-theme="dark"] .sports-activity-card {
  background: #0d1720;
}

@media (min-width: 1600px) {
  .sports-page .cards-grid.sports-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 1500px) {
  .sports-page .cards-grid.sports-list {
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  }

  .sports-page .sport-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sports-page .sport-media {
    min-height: 108px;
  }
}

@media (max-width: 1180px) {
  .sports-page .sports-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sports-search-row {
    grid-template-columns: 1fr;
  }

  .sports-calendar-btn {
    width: fit-content;
  }

  .sports-page .cards-grid.sports-list {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  .sports-page .sports-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sports-page .cards-grid.sports-list {
    grid-template-columns: 1fr;
  }

  .sports-page .sport-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

strong,
b,
dt,
th {
  font-weight: 650;
}

.section-head h2,
.panel-card h2,
.result-kicker,
.eyebrow,
.document-kicker,
.tabs button,
.chip,
.btn {
  font-style: normal;
  font-weight: 600;
}

.section-head h2,
.panel-card h2 {
  text-transform: none;
}

/* Desktop density pass: keep Inter, but make the UI quieter on 13-inch laptops. */
body {
  font-size: 14px;
  line-height: 1.45;
}

h1,
.page-title,
.hero-title,
.hero h1,
.detail-hero h1,
.match-hero h1,
.news-detail-hero h1,
.state-detail-hero h1,
.auth-visual h1,
.profile-hero-panel h1 {
  font-weight: 700;
}

h2,
h3,
.section-title,
.section-head h2,
.panel-card h2,
.auth-card h2,
.profile-panel h2,
.sport-detail-intro h2,
.fighter h2,
.team-side h2 {
  font-weight: 650;
}

.main-nav,
.main-nav a,
.profile-chip,
.login-chip,
.btn,
.chip,
.tabs button,
.compact-score,
.stat-card small,
.stat-card em,
.athlete-meta-list span,
.state-pill,
.quick-filters button,
.quick-filters a,
.section-head a,
.provider-button,
.follow-card small {
  font-weight: 560;
}

.stat-card b,
.compact-row b,
.athlete-card .medal-mini strong,
.medal-total,
.rank-pill,
.state-card > strong,
.record-grid b,
.metric-matrix b,
.summary-list strong,
.dark-card strong {
  font-weight: 650;
}

.site-header {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 62px;
  padding: 7px clamp(18px, 4vw, 56px);
}

.brand img {
  height: 48px;
  max-width: 112px;
}

.main-nav {
  gap: clamp(8px, 1vw, 18px);
  font-size: 12px;
}

.main-nav a {
  gap: 6px;
  padding: 22px 0;
}

.main-nav a::after {
  bottom: 13px;
  height: 2px;
}

.theme-toggle,
.profile-chip,
.login-chip {
  min-height: 34px;
}

.theme-toggle {
  width: 34px;
}

.profile-chip,
.login-chip {
  gap: 8px;
  padding: 3px 9px 3px 3px;
  font-size: 12px;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
}

.page-band {
  padding: 20px clamp(18px, 4vw, 56px) 34px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.cards-grid,
.featured-sports,
.state-grid,
.venue-grid,
.news-grid,
.event-grid,
.live-grid {
  gap: 14px;
}

.section-head {
  margin: 18px 0 12px;
}

.section-head h2 {
  font-size: 21px;
  line-height: 1.05;
}

.section-head a {
  font-size: 12px;
}

.category-row,
.tabs,
.date-carousel,
.live-ribbon {
  gap: 10px;
  padding: 10px;
  margin: 12px 0;
}

.chip,
.tabs button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
}

.btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 560;
}

.sport-card,
.athlete-card,
.state-card,
.venue-card,
.venue-info-card,
.news-card,
.event-card,
.download-card,
.table-card,
.detail-shell,
.panel-card,
.info-card {
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.sport-body h3,
.athlete-card h3,
.state-card h3,
.venue-card h3,
.news-card h3,
.event-card h3 {
  font-size: 18px;
  line-height: 1.14;
}

.athlete-card-banner {
  min-height: 112px;
}

.athlete-card-banner .athlete-photo {
  left: 16px;
  bottom: 14px;
}

.athlete-card .athlete-photo {
  width: 66px;
  height: 66px;
  border-width: 3px;
}

.athlete-card h3 {
  margin: 14px 16px 0;
  font-size: 18px;
}

.athlete-meta-list {
  gap: 7px;
  margin: 12px 16px 0;
  padding-top: 10px;
}

.athlete-meta-list span {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 12px;
}

.athlete-card .medal-mini-row {
  gap: 7px;
  margin: 12px 16px 16px;
}

.athlete-card .medal-mini {
  min-height: 38px;
  padding: 7px;
}

.athlete-card .medal-mini .bi {
  font-size: 15px;
}

.athlete-card .medal-mini strong {
  font-size: 17px;
}

.favorite,
.follow-action {
  width: 30px;
  height: 30px;
}

.favorite {
  top: 10px;
  right: 10px;
}

.compact-row {
  min-height: 58px;
  padding: 10px;
}

.compact-score {
  min-height: 26px;
  min-width: 46px;
  padding: 0 8px;
  font-size: 12px;
}

.dot {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.stat-card {
  min-height: 78px;
  gap: 14px;
  padding: 14px;
}

.stat-icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  font-size: 21px;
}

.stat-card b {
  font-size: 24px;
}

.stat-card small,
.stat-card em {
  font-size: 11px;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .site-header {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    padding-left: 42px;
    padding-right: 42px;
  }

  .brand img {
    height: 44px;
    max-width: 96px;
  }

  .main-nav {
    gap: 13px;
    font-size: 11.5px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
  }

  .page-band {
    padding-left: 42px;
    padding-right: 42px;
  }

  .athlete-grid,
  .state-grid {
    gap: 14px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .sport-body h3,
  .athlete-card h3,
  .state-card h3,
  .venue-card h3,
  .news-card h3,
  .event-card h3 {
    font-size: 17px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: rgba(4, 10, 16, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: none;
}
.brand img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 132px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.25vw, 24px);
  font-weight: 700;
  font-size: 13px;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 28px 0;
  color: rgba(255, 255, 255, .82);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--white); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.theme-toggle,
.profile-chip,
.login-chip {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}
.theme-toggle {
  width: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.profile-chip,
.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  font-size: 13px;
  font-weight: 850;
}
.profile-chip.active,
.login-chip.active {
  border-color: rgba(241, 180, 0, .65);
  box-shadow: 0 0 0 3px rgba(241, 180, 0, .14);
}
.profile-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 12px;
  font-weight: 950;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-avatar.large {
  width: 58px;
  height: 58px;
  font-size: 18px;
}
.profile-avatar.jumbo {
  width: 104px;
  height: 104px;
  font-size: 34px;
}
.profile-name {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-nav a, .social-nav button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  font-size: 15px;
  font-weight: 800;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  --hero-side: clamp(28px, 8vw, 160px);
  min-height: 370px;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .97) 0%, rgba(5, 11, 16, .78) 38%, rgba(5, 11, 16, .2) 72%, rgba(5, 11, 16, .86) 100%),
    url("/img/hero/jdn-hero.png") center right / cover no-repeat;
  animation: heroDrift 16s ease-in-out infinite alternate;
}
.hero.game-hero .hero-bg {
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, .18), transparent 28%),
    linear-gradient(105deg, rgba(5, 11, 16, .88) 0%, rgba(5, 11, 16, .62) 45%, rgba(5, 11, 16, .86) 100%),
    linear-gradient(120deg, var(--game-color-a, var(--blue)), var(--game-color-b, var(--green)), var(--game-color-a, var(--blue)));
  background-size: 100% 100%, 100% 100%, 220% 220%;
  animation: gameHeroGradient 14s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 95px;
  background: linear-gradient(0deg, rgba(7, 16, 24, .78), transparent);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - var(--hero-side) - 40px));
  margin-left: var(--hero-side);
  padding: 88px 0 72px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 25px;
  font-weight: 900;
  font-style: italic;
}
.hero h1 {
  margin: 0;
  max-width: 740px;
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: .98;
  font-weight: 950;
  font-style: italic;
  text-wrap: balance;
}
.hero p {
  max-width: 540px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .86);
}
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}
.hero-title-row h1 {
  flex: 1 1 auto;
}
.event-countdown {
  width: min(390px, 100%);
  flex: 0 0 auto;
  overflow: hidden;
  color: #101923;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(248, 250, 252, .96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .25);
}
.event-countdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: #101923;
  background: linear-gradient(135deg, #f6b800, #ffdf5a 54%, #ef3340);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.event-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d9e2ea;
}
.event-countdown-grid span {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 9px 5px;
  background: #fff;
}
.event-countdown-grid b {
  color: #101923;
  font-size: 31px;
  line-height: 1;
  font-weight: 950;
}
.event-countdown-grid em {
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}
.event-countdown.is-started .event-countdown-label {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
}
.event-countdown-started {
  grid-column: 1 / -1;
  min-height: 74px !important;
  color: #101923;
  font-size: 22px;
  font-weight: 950;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, var(--green), #2e8b33); color: var(--white); }
.btn.ghost { border-color: rgba(255, 255, 255, .42); color: var(--white); background: rgba(0, 0, 0, .15); }
.btn.ghost.light { color: var(--blue); border-color: #c8d6e6; background: var(--white); }
.btn.dark { color: var(--white); background: var(--dark); }
.page-band {
  padding: 26px clamp(18px, 4vw, 64px) 44px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 4;
}
.stat-grid.dark-lift { margin-top: -68px; }
.stat-card {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: currentColor; }
.stat-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 25px;
  font-weight: 950;
  background: var(--green);
}
.stat-icon .bi {
  line-height: 1;
}
.tone-blue .stat-icon, .stat-icon.tone-blue, .dot.tone-blue { background: var(--blue); }
.tone-gold .stat-icon, .stat-icon.tone-gold, .dot.tone-gold { background: var(--gold); }
.tone-red .stat-icon, .stat-icon.tone-red, .dot.tone-red { background: var(--red); }
.tone-green .stat-icon, .stat-icon.tone-green, .dot.tone-green { background: var(--green); }
.stat-card small, .stat-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.stat-card b { display: block; font-size: 30px; line-height: 1.05; }
.stat-card em { color: var(--blue); text-transform: none; margin-top: 4px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: start;
}
.main-column, .side-column { min-width: 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 950;
}
.section-head a { color: var(--blue); font-weight: 850; font-size: 13px; }
.cards-grid, .featured-sports, .state-grid, .venue-grid, .news-grid, .event-grid, .live-grid {
  display: grid;
  gap: 16px;
}
.featured-sports, .cards-grid.sports-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.athlete-grid, .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.venue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-grid.large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sport-card, .athlete-card, .state-card, .venue-card, .venue-info-card, .news-card, .event-card, .download-card, .table-card, .detail-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 32, 42, .06);
}
.card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
}
.card-cover-link:focus-visible {
  outline: 3px solid rgba(20, 100, 173, .35);
  outline-offset: -3px;
}
[data-card-href] {
  cursor: pointer;
}
[data-card-href]:focus-visible {
  outline: 3px solid rgba(20, 100, 173, .28);
  outline-offset: 3px;
}
.sport-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  overflow: hidden;
}
.sport-media {
  min-height: 142px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 950;
  background: linear-gradient(145deg, var(--green), #102333);
}
.sport-media.tone-blue { background: linear-gradient(145deg, var(--blue), #0c233b); }
.sport-media.tone-gold { background: linear-gradient(145deg, var(--gold), var(--orange)); }
.sport-media.tone-red { background: linear-gradient(145deg, var(--red), #27141a); }
.sport-media span { font-size: 42px; letter-spacing: 0; }
.sport-media .bi { line-height: 1; }
.sport-body { padding: 18px; }
.sport-body {
  display: grid;
  gap: 14px;
}
.sport-body h3, .athlete-card h3, .state-card h3, .venue-card h3, .news-card h3, .event-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.1;
}
.sport-type,
.meta-line,
.result-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.sport-type .bi,
.meta-line .bi,
.result-meta .bi {
  color: var(--blue);
}
.sport-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sport-stats span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.sport-stats b {
  color: var(--ink);
  font-size: 15px;
}
.sport-stats .bi {
  color: var(--blue);
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #3f4650;
  background: #f0f3f6;
  border: 1px solid #dde5ec;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.status-chip .bi {
  font-size: 9px;
}
.status-chip.badge-live { color: #c8202d; background: #fff2f3; border-color: #ffd2d6; }
.status-chip.badge-success { color: #2f7d24; background: #f0f8ec; border-color: #d6edcb; }
.status-chip.badge-warning { color: #946600; background: #fff8e2; border-color: #f3dfa4; }
.status-chip.badge-muted { color: #646b73; background: #f2f4f6; border-color: #dde1e5; }
.status-chip.badge-info { color: #145b9f; background: #eff6ff; border-color: #d3e7fb; }
.result-status-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.result-official-chip {
  min-height: 24px;
  padding-inline: 9px;
}
.mini-official {
  color: #2f7d24;
}
.mini-official.badge-warning {
  color: #946600;
}
.mini-official.badge-muted {
  color: #646b73;
}
.pill, .status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  color: #14551c;
  background: #dff1d8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.pill.tone-blue { color: #064172; background: #dceeff; }
.pill.tone-gold { color: #7a5400; background: #fff0bd; }
.pill.tone-red { color: #96111c; background: #ffdce0; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}
dl { margin: 0; }
dt { font-weight: 950; }
dd { margin: 0; color: var(--muted); font-size: 12px; }
.status.en-vivo { color: var(--red); background: #ffe1e4; }
.status.programado { color: #315f22; background: #e5f3de; }
.status.en-competencia { color: #2e6a21; background: #dff1d8; }
.status.por-iniciar, .status.proximamente { color: #135aa0; background: #dceeff; }
.status.oficial, .status.activa-hoy { color: #245f20; background: #e0f4da; }
.status.final { color: #6c4500; background: #fff0c8; }
.status.sin-actividad-hoy { color: #555; background: #e6e8eb; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 20px 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filter-bar label span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 850;
}
.filter-bar input, .filter-bar select {
  width: 100%;
  height: 42px;
  border: 1px solid #ccd6df;
  border-radius: 7px;
  padding: 0 13px;
  background: var(--white);
}
.state-search-bar {
  grid-template-columns: minmax(260px, 560px);
  justify-content: start;
}
.category-row, .tabs, .date-carousel, .live-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 16px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}
.chip, .tabs button {
  min-height: 42px;
  border: 1px solid #bfd0df;
  border-radius: 7px;
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
}
.tabs a.chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.chip.active, .tabs button.active, .date-carousel .active {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #2f8e36);
  border-color: transparent;
}
.medal-filter-tabs .chip {
  white-space: nowrap;
}
.medal-social-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  overflow: hidden;
  color: #101923;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(200, 144, 0, .34);
  border-radius: 8px;
  background: linear-gradient(120deg, #ffe08a, #f6b800, #c89000, #ffe08a);
  background-size: 260% 260%;
  box-shadow: 0 12px 26px rgba(200, 144, 0, .18);
  font-size: 12.5px;
  font-weight: 850;
  animation: stateNextGradient 8s ease infinite;
}
.medal-social-download-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .32) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: calendarSocialShine 5.8s ease-in-out infinite;
}
.medal-social-download-btn > * {
  position: relative;
}
.medal-social-download-btn i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #c89000;
  background: rgba(255, 255, 255, .9);
}
.profile-social-download-btn {
  position: relative;
  min-width: 220px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px 0 12px;
  overflow: hidden;
  color: #f8fafc;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: linear-gradient(120deg, #1767b1, #2f8f3a, #f6b800, #ef3340, #1767b1);
  background-size: 320% 320%;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
  font-size: 13px;
  font-weight: 900;
  animation: stateNextGradient 9s ease infinite;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.profile-social-download-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .34) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: calendarSocialShine 5.8s ease-in-out infinite;
}
.profile-social-download-btn > * {
  position: relative;
  z-index: 1;
}
.profile-social-download-btn i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #101923;
  background: rgba(255, 255, 255, .9);
  font-size: 15px;
}
.profile-social-download-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}
.history-context-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(21, 32, 42, .045);
}
.history-context-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), #c89000);
}
.history-context-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}
.history-context-card strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 780;
}
.history-context-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.medal-history-table-wrap {
  margin: 18px 0 16px;
}
.medal-history-summary {
  grid-template-columns: repeat(4, 1fr);
}
.medal-history-summary .medal-summary-item {
  min-height: 108px;
}
.tabs { justify-content: flex-start; }
.tabs .btn { margin-left: auto; }
.date-carousel { justify-content: space-between; }
.date-carousel span {
  min-width: 88px;
  padding: 10px;
  text-align: center;
  border-radius: 7px;
  font-weight: 850;
}
.date-carousel button {
  border: 0;
  background: transparent;
  font-size: 32px;
}

.table-card { overflow: auto; }
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
}
th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.medal-table-card {
  overflow-x: visible;
}
.medal-group-card {
  background: var(--white);
}
.medal-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 4px;
}
.medal-group-head h2 {
  margin: 0;
  font-size: 24px;
  font-style: italic;
  text-transform: uppercase;
}
.medal-group-head p {
  margin: 5px 0 0;
  color: var(--muted);
}
.medal-table {
  min-width: 0;
  table-layout: fixed;
}
.medal-table-compact th:last-child,
.medal-table-compact td:last-child {
  width: 88px;
}
.medal-table th,
.medal-table td {
  padding: 13px 14px;
}
.medal-table-full {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.medal-table-full th,
.medal-table-full td {
  border-right: 1px solid var(--line);
}
.medal-table-full th:last-child,
.medal-table-full td:last-child {
  border-right: 0;
}
.medal-table-full tbody tr:nth-child(even) {
  background: #f8fafb;
}
.medal-table th {
  color: #56616d;
  font-weight: 850;
  letter-spacing: 0;
}
.medal-table-full th {
  background: #f3f6f9;
}
.medal-table th:not(:nth-child(2)),
.medal-table td:not(:nth-child(2)) {
  text-align: center;
}
.medal-table .rank-col {
  width: 54px;
}
.medal-table-full tfoot td {
  color: var(--ink);
  background: #eef4f7;
  border-top: 2px solid var(--line);
  font-weight: 700;
}
.medal-table-full tfoot td:nth-child(2) {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .02em;
}
.rank-pill {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--ink);
  background: #edf2f6;
  font-weight: 900;
}
.delegation-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.delegation-mark {
  width: 28px;
  height: 18px;
  flex: none;
  border-radius: 4px;
  background: var(--flag-image, linear-gradient(180deg, #ffd500 0 33%, #174ea6 33% 66%, #e5262f 66% 100%)) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(17, 24, 32, .12);
}
.medal-group-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.medal-group-label strong {
  display: block;
  line-height: 1.1;
}
.medal-group-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
  text-transform: uppercase;
}
.medal-group-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: #1464ad;
  background: #eef6ff;
}
.medal-table-empty {
  padding: 28px;
  color: var(--muted);
  text-align: center !important;
}
.medal-icon.gold,
.medal-count.gold .bi,
.medal-mini.gold .bi { color: #c89000; }
.medal-icon.silver,
.medal-count.silver .bi,
.medal-mini.silver .bi { color: #737b84; }
.medal-icon.bronze,
.medal-count.bronze .bi,
.medal-mini.bronze .bi { color: #a45c19; }
.medal-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
}
.medal-count.gold { color: #c89000; }
.medal-count.silver { color: #737b84; }
.medal-count.bronze { color: #a45c19; }
.medal-table-full tfoot .medal-count {
  font-size: 21px;
  font-weight: 800;
}
.medal-total {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  border-radius: 8px;
  color: var(--white);
  background: var(--dark);
  font-weight: 900;
}
.medal-total-final {
  min-width: 56px;
  background: linear-gradient(135deg, var(--dark), #1c2b35);
}

.compact-list, .summary-list {
  display: grid;
  gap: 10px;
}
.compact-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.compact-row small { grid-column: 2 / -1; color: var(--muted); }
.compact-row small .bi { margin-right: 6px; color: var(--blue); }
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}
.pagination-summary {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}
.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pagination-page,
.pagination-control {
  min-width: 32px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.pagination-page:hover,
.pagination-control:hover {
  color: var(--green);
  border-color: rgba(70, 170, 64, .42);
  transform: translateY(-1px);
}
.pagination-page.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 8px 16px rgba(70, 170, 64, .22);
}
.pagination-control.disabled {
  color: var(--muted);
  opacity: .45;
  pointer-events: none;
}
.state-pagination {
  margin-top: 16px;
  padding: 9px 10px;
  box-shadow: none;
}
.state-pagination .pagination-page,
.state-pagination .pagination-control {
  min-width: 30px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11px;
}
.dashboard-grid.is-loading {
  opacity: .58;
  pointer-events: none;
  transition: opacity .18s ease;
}
.state-results.is-loading {
  opacity: .58;
  pointer-events: none;
  transition: opacity .18s ease;
}
.venue-activity-row,
.top-delegation-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 12px;
  min-height: 72px;
}
.venue-activity-main,
.top-delegation-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.venue-activity-main strong,
.top-delegation-main strong {
  line-height: 1.2;
}
.venue-activity-main small,
.top-delegation-main small {
  grid-column: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.25;
}
.venue-activity-main small .bi,
.top-delegation-main small .bi {
  flex: none;
  margin-right: 0;
}
.venue-activity-time {
  justify-self: end;
  justify-content: flex-end;
  min-width: 96px;
  max-width: 136px;
  text-align: right;
  line-height: 1.2;
  white-space: normal;
}
.venue-activity-time .bi {
  flex: none;
  color: var(--blue);
}
.top-delegation-medals {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 6px;
}
.top-delegation-medals b {
  min-width: 34px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 7px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}
.top-delegation-medals .bi {
  font-size: 12px;
}
.top-delegation-medals .gold .bi { color: #c99100; }
.top-delegation-medals .silver .bi { color: #7c8792; }
.top-delegation-medals .bronze .bi { color: #a75a15; }
.final-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 12px;
  min-height: 72px;
}
.final-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.final-main strong {
  line-height: 1.2;
}
.final-main small {
  grid-column: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.25;
}
.final-main small .bi {
  margin-right: 0;
  flex: none;
}
.final-time {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  justify-self: end;
  min-width: 84px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--ink);
  background: #f1f4f7;
  border: 1px solid #e0e6eb;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.final-time .bi {
  color: var(--blue);
}
.sport-finals-list {
  gap: 9px;
}
.sport-final-row {
  position: relative;
  padding: 14px;
  text-decoration: none;
}
.sport-final-row::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--green);
  opacity: .85;
}
.sport-final-row .final-main {
  padding-left: 4px;
}
.sport-final-row .final-main strong {
  color: var(--ink);
  font-size: 15px;
}
.sport-final-meta {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}
.sport-final-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sport-final-meta .bi {
  flex: none;
  color: var(--blue);
}
.sport-final-row:hover {
  border-color: rgba(62, 151, 49, .35);
  transform: translateY(-1px);
}
.sport-tab-panels {
  margin-top: 18px;
}
.sport-tab-panel {
  display: none;
}
.sport-tab-panel.active {
  display: block;
}
.sport-ajax-section {
  display: grid;
  gap: 16px;
}
.sport-detail-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sport-detail-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
  overflow: hidden;
}
.sport-detail-mark .bi {
  font-size: 34px;
}
.sport-detail-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sport-detail-intro .eyebrow {
  margin-bottom: 4px;
}
.sport-detail-intro h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 950;
}
.sport-detail-description {
  max-width: 860px;
  color: #44515f;
  font-weight: 650;
  line-height: 1.6;
}
.sport-detail-description p {
  margin: 0;
}
.sport-detail-description.muted {
  color: var(--muted);
}
.sport-summary-grid div {
  display: grid;
  align-content: start;
  gap: 8px;
}
.sport-summary-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.sport-summary-grid b {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
}
.sport-summary-grid span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.sport-summary-grid .bi {
  color: var(--blue);
}
html:not([data-theme="dark"]) .record-grid.sport-summary-grid div {
  color: #111a24;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border: 1px solid #dce5ec;
  border-bottom: 4px solid rgba(62, 151, 49, .7);
  box-shadow: 0 12px 26px rgba(16, 31, 46, .06);
}
html:not([data-theme="dark"]) .sport-summary-grid small,
html:not([data-theme="dark"]) .sport-summary-grid span,
html:not([data-theme="dark"]) .sport-detail-description {
  color: #44515f;
}
html:not([data-theme="dark"]) .sport-summary-grid b,
html:not([data-theme="dark"]) .sport-detail-intro h2 {
  color: #111a24;
}
.sport-date-carousel {
  justify-content: flex-start;
}
.sport-date-carousel button {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 44px;
  border: 1px solid #bfd0df;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.sport-date-carousel button.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), #2f8e36);
  border-color: transparent;
}
.sport-panel-placeholder,
.empty-state,
.sport-inline-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.empty-state.compact {
  padding: 18px;
}
.sport-panel-placeholder .bi,
.empty-state .bi,
.sport-inline-loading .bi {
  color: var(--blue);
  font-size: 26px;
}
.sport-panel-placeholder strong,
.empty-state strong {
  color: var(--ink);
  font-size: 16px;
}
.sport-panel-placeholder p,
.empty-state p {
  max-width: 460px;
  margin: 0;
}
.sport-panel-placeholder.is-loading .bi,
.sport-inline-loading .bi {
  animation: spin .9s linear infinite;
}
.sport-panel-placeholder.error .bi,
.empty-state .bi.bi-exclamation-triangle {
  color: var(--red);
}
.tourney-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tourney-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-height: 104px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.tourney-card strong,
.tourney-card small {
  min-width: 0;
}
.tourney-card small {
  color: var(--muted);
  font-weight: 800;
}
.tourney-format {
  grid-column: 2;
  width: fit-content;
  padding: 5px 8px;
  color: var(--blue);
  background: #eef6ff;
  border: 1px solid #d7e8f8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}
.tourney-card .status-chip {
  grid-column: 2;
  width: fit-content;
}
.tourney-card.active {
  border-color: rgba(62, 151, 49, .45);
  box-shadow: 0 12px 28px rgba(62, 151, 49, .12);
}
.sport-standings-target {
  display: grid;
  gap: 12px;
}
.sport-standings-table {
  min-width: 620px;
}
.sport-standings-table th:not(:nth-child(2)),
.sport-standings-table td:not(:nth-child(2)) {
  text-align: center;
}
.sport-position-stack {
  display: grid;
  gap: 18px;
}
.sport-position-section {
  display: grid;
  gap: 10px;
}
.sport-position-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sport-position-head small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sport-position-head h4 {
  margin: 1px 0 0;
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}
.sport-position-table-card {
  padding: 0;
  border-radius: 8px;
  overflow-x: auto;
}
.sport-position-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
.sport-position-table th {
  padding: 10px 12px;
  color: #5d6975;
  background: #f5f8fb;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.sport-position-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.sport-position-table th:last-child,
.sport-position-table td:last-child {
  border-right: 0;
}
.sport-position-table tbody tr:last-child td {
  border-bottom: 0;
}
.sport-position-table td:not(.is-entity),
.sport-position-table th:not(:first-child) {
  text-align: center;
}
.sport-position-table td.is-entity {
  min-width: 280px;
  font-weight: 800;
}
.sport-position-table td.is-entity a,
.sport-position-table td.is-entity .position-entity {
  color: var(--ink);
  text-decoration: none;
}
.sport-position-table td.is-entity a:hover {
  color: var(--blue);
}
.sport-position-table td.is-number {
  font-size: 14px;
  font-weight: 800;
}
.position-entity {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.position-entity-flag {
  width: 40px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--blue);
  background: #eef4fa;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.position-entity-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.position-entity-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.position-entity-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.position-entity-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.position-delegation-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  max-width: 132px;
  min-height: 24px;
  padding: 4px 8px;
  color: var(--blue);
  background: #eef6ff;
  border: 1px solid #d7e8f8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.position-medal-tag {
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.position-medal-tag.medal-gold {
  color: #4e3300;
  background: rgba(244, 180, 0, .24);
  border: 1px solid rgba(244, 180, 0, .38);
}
.position-medal-tag.medal-silver {
  color: #4d5962;
  background: rgba(141, 153, 164, .22);
  border: 1px solid rgba(141, 153, 164, .38);
}
.position-medal-tag.medal-bronze {
  color: #6a3711;
  background: rgba(178, 99, 35, .2);
  border: 1px solid rgba(178, 99, 35, .36);
}
.sport-position-table tbody tr.is-medal-row td {
  background: linear-gradient(90deg, var(--position-medal-bg, transparent), transparent 72%);
}
.sport-position-table tbody tr.medal-gold {
  --position-medal-bg: rgba(244, 180, 0, .16);
}
.sport-position-table tbody tr.medal-silver {
  --position-medal-bg: rgba(141, 153, 164, .14);
}
.sport-position-table tbody tr.medal-bronze {
  --position-medal-bg: rgba(178, 99, 35, .13);
}
.sport-position-table tbody tr.medal-gold .rank-pill {
  color: #4e3300;
  background: rgba(244, 180, 0, .28);
}
.sport-position-table tbody tr.medal-silver .rank-pill {
  color: #4d5962;
  background: rgba(141, 153, 164, .24);
}
.sport-position-table tbody tr.medal-bronze .rank-pill {
  color: #6a3711;
  background: rgba(178, 99, 35, .22);
}
.sport-position-category-grid {
  display: grid;
  gap: 12px;
}
.sport-position-category {
  display: grid;
  gap: 8px;
}
.sport-position-category h5 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.sport-position-bracket {
  box-shadow: none;
}
.bracket-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 8px;
  color: var(--green);
  background: rgba(62, 151, 49, .1);
  border: 1px solid rgba(62, 151, 49, .18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.sport-competition-detail {
  gap: 18px;
}
.competition-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.competition-detail-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.competition-detail-head h3 {
  margin: 4px 0;
  font-size: 22px;
  line-height: 1.1;
}
.competition-detail-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}
.competition-format-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--blue);
  background: #eef6ff;
  border: 1px solid #d7e8f8;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}
.competition-bracket-shell {
  --bracket-scale: 1;
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(12, 24, 38, .07);
}
.competition-bracket-shell.is-expanded {
  position: fixed;
  inset: 82px 24px 24px;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 26px 80px rgba(5, 12, 20, .34);
}
.competition-bracket-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.competition-bracket-toolbar small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.competition-bracket-toolbar strong {
  font-size: 17px;
}
.bracket-stage-tabs,
.bracket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.bracket-stage-tabs {
  justify-content: center;
}
.bracket-stage-tabs button,
.bracket-actions button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: #f4f7fa;
  border: 1px solid #dfe7ee;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}
.bracket-actions button {
  width: 34px;
  padding: 0;
}
.competition-bracket-viewport {
  overflow: auto;
  padding: 6px 0 12px;
  scroll-behavior: smooth;
}
.competition-bracket-canvas {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 270px;
  align-items: start;
  gap: 24px;
  width: max-content;
  min-width: 100%;
  transform: scale(var(--bracket-scale));
  transform-origin: top left;
}
.bracket-round {
  display: grid;
  gap: 10px;
}
.bracket-round h4 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 9px 10px;
  color: var(--ink);
  background: #f7fafc;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  font-size: 13px;
  text-transform: uppercase;
}
.bracket-match-list {
  display: grid;
  gap: 10px;
}
.bracket-match {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 102px;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  background: #fbfdff;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
}
.bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  width: 24px;
  border-top: 1px solid #c9d5df;
}
.bracket-round:last-child .bracket-match::after {
  content: none;
}
.bracket-match > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.bracket-side {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
  background: var(--white);
  border: 1px solid #e4ebf1;
  border-radius: 7px;
}
.bracket-side-flag {
  width: 34px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--blue);
  background: #eef4fa;
  border: 1px solid #dfe7ee;
  border-radius: 4px;
}
.bracket-side-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bracket-side-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.bracket-side b {
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bracket-side em {
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.bracket-side.is-pending {
  color: #8a96a3;
  background: #f4f7fa;
  border-style: dashed;
}
.bracket-side.is-pending {
  grid-template-columns: minmax(0, 1fr);
}
.bracket-match.is-finished {
  border-color: rgba(62, 151, 49, .32);
}
.bracket-match.is-empty {
  background: linear-gradient(90deg, #f7fafc, #ffffff, #f7fafc);
}
.competition-participant-list {
  display: grid;
  gap: 8px;
}
.competition-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.competition-result-card {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 248px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(21, 32, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.competition-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 100, 173, .24);
  box-shadow: 0 16px 30px rgba(21, 32, 42, .09);
}
.competition-result-card-head,
.competition-result-card-foot {
  display: grid;
  align-items: center;
  gap: 10px;
}
.competition-result-card-head {
  grid-template-columns: 42px minmax(0, 1fr) 22px;
}
.competition-result-sport-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.competition-result-card-head strong {
  display: block;
  overflow: hidden;
  min-width: 0;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.competition-result-card-head small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.competition-result-card-head small em,
.competition-result-card-foot em,
.competition-result-card-foot b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
}
.competition-result-card-head small em,
.competition-result-card-foot em {
  color: var(--muted);
}
.competition-result-card-head > .bi {
  color: var(--blue);
}
.competition-result-duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
.competition-result-ranking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.competition-result-side {
  min-width: 0;
  min-height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 8px;
  text-align: center;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.competition-result-side.tone-gold { background: rgba(244, 180, 0, .14); border-color: rgba(244, 180, 0, .34); }
.competition-result-side.tone-silver { background: rgba(141, 153, 164, .14); border-color: rgba(141, 153, 164, .34); }
.competition-result-side.tone-bronze { background: rgba(178, 99, 35, .13); border-color: rgba(178, 99, 35, .3); }
.competition-result-side.tone-winner { background: rgba(80, 168, 50, .12); border-color: rgba(80, 168, 50, .3); }
.competition-result-flag {
  width: 48px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--blue);
  background: #eef4fa;
  border: 1px solid #dce7f0;
  border-radius: 5px;
}
.competition-result-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.competition-result-side strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.competition-result-side small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.competition-result-side > b,
.competition-result-side > em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.competition-result-side > b {
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(0, 0, 0, .06);
}
.competition-result-side > em {
  color: var(--blue);
  background: rgba(20, 100, 173, .08);
}
.competition-result-score {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 108px;
  padding: 10px 8px;
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.competition-result-score small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.competition-result-score b {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.competition-result-score.is-full {
  min-height: 108px;
}
.competition-result-score.is-full b {
  font-size: 20px;
}
.competition-result-card-foot {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.competition-result-card-foot em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.competition-result-card-foot b {
  min-height: 24px;
  padding: 4px 8px;
  color: var(--green);
  background: rgba(80, 168, 50, .1);
  border-radius: 999px;
  font-size: 13px;
}
.competition-participant-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.competition-participant-list > a:not(.competition-participant-card),
.competition-participant-list > span:not(.competition-participant-card) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
}
.competition-participant-list > a:not(.competition-participant-card) small,
.competition-participant-list > span:not(.competition-participant-card) small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.competition-participant-list > a:not(.competition-participant-card) > .bi,
.competition-participant-list > span:not(.competition-participant-card) > .bi {
  grid-row: span 2;
  color: var(--blue);
}

.tourney-picker {
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 10px;
}

.tourney-group-list {
  display: grid;
  gap: 10px;
}

.tourney-group {
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(12, 24, 38, .045);
}

.tourney-group-summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 28px;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.tourney-group-summary::-webkit-details-marker {
  display: none;
}

.tourney-group-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.tourney-group-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.tourney-group-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tourney-group-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tourney-group-tags {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.tourney-group-tags em,
.tourney-group-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.tourney-group-tags em {
  color: var(--blue);
  background: rgba(20, 100, 173, .08);
  border: 1px solid rgba(20, 100, 173, .16);
}

.tourney-group-tags b {
  color: var(--green);
  background: rgba(80, 168, 50, .08);
  border: 1px solid rgba(80, 168, 50, .16);
}

.tourney-group-chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--blue);
  background: rgba(20, 100, 173, .08);
  border-radius: 999px;
  transition: transform .2s ease;
}

.tourney-group[open] .tourney-group-chevron {
  transform: rotate(180deg);
}

.tourney-group[open] .tourney-picker {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.tourney-card {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 10px;
  min-height: 86px;
  padding: 11px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tourney-card:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 100, 173, .28);
  box-shadow: 0 10px 24px rgba(12, 24, 38, .07);
}

.tourney-card-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 8px;
}

.tourney-card-body {
  min-width: 0;
}

.tourney-card-body strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tourney-card-body small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tourney-card-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tourney-card-meta .status-chip,
.tourney-card-meta .tourney-format {
  grid-column: auto;
  margin: 0;
}

.tourney-card.active {
  background: linear-gradient(135deg, rgba(62, 151, 49, .1), rgba(20, 100, 173, .08)), var(--white);
}

.competition-detail-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(20, 100, 173, .08), rgba(62, 151, 49, .08)),
    var(--white);
}

.competition-detail-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
}

.competition-detail-head h3 {
  font-size: 18px;
}

.competition-format-pill {
  padding: 7px 10px;
  font-size: 12px;
}

.competition-participants-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.competition-participants-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.competition-participants-head strong,
.competition-participants-head small {
  display: block;
}

.competition-participants-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.competition-participant-list {
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 9px;
}

.competition-participant-list.is-preview {
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
}

.competition-participant-list .competition-participant-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  padding: 8px 0 8px 8px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(12, 24, 38, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.competition-participant-list a.competition-participant-card:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 100, 173, .28);
  box-shadow: 0 12px 24px rgba(12, 24, 38, .075);
}

.competition-participant-photo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8);
}

.competition-participant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.competition-participant-photo b {
  font-size: 13px;
  font-weight: 900;
}

.competition-participant-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.competition-participant-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
}

.competition-participant-main .person-name {
  flex-wrap: nowrap;
}

.competition-participant-main .person-name-first,
.competition-participant-main .person-name-last {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-participant-main small {
  grid-column: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.competition-participant-delegation {
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 6px;
  color: var(--blue);
  background: linear-gradient(180deg, rgba(20, 100, 173, .08), rgba(62, 151, 49, .08));
  border-left: 1px solid var(--line);
}

.competition-participant-delegation img {
  width: 34px;
  height: 24px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(12, 24, 38, .1);
}

.competition-participant-delegation .bi {
  grid-row: auto;
  color: var(--blue);
  font-size: 16px;
}

.competition-participant-delegation em {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.competition-participants-more {
  display: grid;
  gap: 9px;
}

.competition-participants-more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  color: var(--blue);
  background: rgba(20, 100, 173, .08);
  border: 1px solid rgba(20, 100, 173, .16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.competition-participants-more summary::-webkit-details-marker {
  display: none;
}

.competition-participants-more[open] summary .bi {
  transform: rotate(45deg);
}

html[data-theme="dark"] .tourney-card.active,
html[data-theme="dark"] .tourney-group,
html[data-theme="dark"] .competition-detail-head,
html[data-theme="dark"] .competition-participants-panel {
  background:
    linear-gradient(135deg, rgba(20, 100, 173, .12), rgba(62, 151, 49, .1)),
    #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .tourney-group[open] .tourney-picker {
  border-color: var(--line);
}

html[data-theme="dark"] .tourney-group-copy strong {
  color: var(--ink);
}

html[data-theme="dark"] .tourney-group-tags em {
  color: #8fc9ff;
  background: rgba(23, 103, 177, .16);
  border-color: rgba(23, 103, 177, .3);
}

html[data-theme="dark"] .tourney-group-tags b {
  color: #8bd279;
  background: rgba(80, 168, 50, .14);
  border-color: rgba(80, 168, 50, .26);
}

html[data-theme="dark"] .tourney-group-chevron {
  color: #8fc9ff;
  background: rgba(23, 103, 177, .16);
}

html[data-theme="dark"] .competition-participant-list .competition-participant-card {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}

html[data-theme="dark"] .competition-participant-main strong {
  color: var(--ink);
}

html[data-theme="dark"] .competition-participant-delegation {
  background: linear-gradient(180deg, rgba(23, 103, 177, .16), rgba(80, 168, 50, .12));
  border-color: var(--line);
}

html[data-theme="dark"] .competition-participants-more summary {
  color: #8fc9ff;
  background: rgba(23, 103, 177, .16);
  border-color: rgba(23, 103, 177, .32);
}

.compact-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--ink);
  background: #f1f4f7;
  border: 1px solid #e0e6eb;
  font-weight: 900;
}
.table-icon-text,
.diff-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.table-icon-text .bi {
  color: var(--blue);
  flex: none;
}
.diff-text {
  color: #5d6670;
}
.dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 950;
  background: var(--green);
}
.dot .bi { line-height: 1; }
.athlete-card {
  --athlete-color: var(--green);
  --athlete-color-dark: var(--blue);
  position: relative;
  padding: 0;
  overflow: hidden;
  display: grid;
  gap: 0;
  cursor: pointer;
}
.athlete-card::before {
  content: none;
}
.athlete-card-banner {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(7, 16, 24, .92), var(--athlete-color-dark) 46%, var(--athlete-color));
}
.athlete-card-banner::before {
  content: "";
  position: absolute;
  inset: -18px -12px;
  background: var(--athlete-flag, linear-gradient(135deg, var(--athlete-color-dark), var(--athlete-color))) center / cover no-repeat;
  filter: blur(8px) saturate(1.12);
  opacity: .42;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .3), transparent);
}
.athlete-card-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .22), transparent 24%),
    linear-gradient(90deg, rgba(7, 16, 24, .18), transparent);
}
.athlete-card-banner .athlete-photo {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
}
.athlete-photo, .athlete-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
}
.athlete-card .athlete-photo {
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, var(--athlete-color-dark), var(--athlete-color));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
  z-index: 3;
}
.athlete-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.athlete-photo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.athlete-card .pill { margin-top: 28px; }
.athlete-card h3 {
  margin: 18px 18px 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}
.athlete-card > * {
  position: relative;
  z-index: 5;
}
.athlete-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 18px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.athlete-meta-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  padding: 7px 9px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--muted);
  background: #f2f5f8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.athlete-meta-list .bi {
  color: var(--athlete-color-dark);
  flex: none;
}
.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(0, 0, 0, .32);
  cursor: pointer;
  z-index: 6;
}
.favorite.active { background: var(--gold); color: var(--dark); }
.follow-action {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(17, 24, 32, .12);
  border-radius: 50%;
  color: #a97800;
  background: #fff6d8;
  cursor: pointer;
}
.follow-action.active {
  color: var(--dark);
  background: var(--gold);
  border-color: rgba(241, 180, 0, .5);
}
.detail-follow-action {
  width: auto;
  min-width: 190px;
  min-height: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px 0 12px;
  border-radius: 10px;
  color: #1d252c;
  background: linear-gradient(135deg, #fff8dd, #f7c745);
  border-color: rgba(173, 119, 0, .28);
  box-shadow: 0 12px 24px rgba(173, 119, 0, .18);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.detail-follow-action .bi {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #9b6a00;
  background: rgba(29, 37, 44, .1);
  font-size: 15px;
}
.detail-follow-action span {
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}
.detail-follow-action.active {
  color: #111820;
  background: linear-gradient(135deg, var(--gold), #ffdc72);
  border-color: rgba(241, 180, 0, .72);
  box-shadow: 0 14px 28px rgba(241, 180, 0, .24);
}
.detail-follow-action.active .bi {
  color: var(--gold);
  background: #111820;
}
.detail-follow-action:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow: 0 16px 30px rgba(173, 119, 0, .23);
}
.detail-follow-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(10, 25, 40, .09);
}
.detail-follow-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.athlete-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.state-card { padding: 14px; position: relative; }
.state-card {
  display: grid;
  gap: 11px;
  cursor: pointer;
}
.state-card > * {
  position: relative;
  z-index: 5;
}
.state-card-head,
.state-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
}
.state-flag-icon {
  position: relative;
  width: 52px;
  height: 34px;
  overflow: hidden;
  flex: none;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(17, 24, 32, .14), 0 7px 18px rgba(10, 25, 40, .12);
  background: var(--flag-image, linear-gradient(180deg, #ffd500 0 33%, #174ea6 33% 66%, #e5262f 66% 100%)) center / cover no-repeat;
}
.state-flag-icon::after {
  content: "★";
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--white);
  font-size: 9px;
  transform: translate(-50%, -50%);
  text-shadow: -8px 0 0 var(--white), 8px 0 0 var(--white);
}
.state-flag-icon[style*="--flag-image"]::after {
  content: none;
}
.state-name-badge {
  display: block;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.state-name-badge:hover { color: var(--deleg-color-dark, var(--blue)); }
.state-card > strong {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 28px;
}
.state-follow-action {
  position: relative;
  top: auto;
  right: auto;
  z-index: 7;
}
.state-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.state-title-row h3 {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.12;
}
.state-code {
  justify-self: end;
  max-width: 86px;
  padding: 3px 7px;
  overflow: hidden;
  color: var(--muted);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-badge-grid,
.state-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.state-pill {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 32, .08);
  background: #f2f5f8;
}
.state-pill dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}
.state-pill dt .bi {
  font-size: 13px;
}
.state-pill dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 560;
}
.state-pill.badge-athletes { background: rgba(31, 103, 191, .1); color: var(--blue); }
.state-pill.badge-sports { background: rgba(62, 151, 49, .12); color: var(--green); }
.state-pill.badge-gold { background: rgba(232, 166, 0, .16); color: #b77c00; }
.state-pill.badge-silver { background: rgba(130, 139, 148, .16); color: #69717a; }
.state-pill.badge-bronze { background: rgba(181, 98, 20, .15); color: #a35413; }
.state-medal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.state-medal {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.state-medal .bi {
  font-size: 14px;
}
.state-medal b {
  font-size: 15px;
  font-weight: 650;
}
.state-medal.gold .bi { color: #c99100; }
.state-medal.silver .bi { color: #7c8792; }
.state-medal.bronze .bi { color: #a75a15; }
.state-next {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 10px;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(88, 168, 63, .96), rgba(20, 100, 173, .96), rgba(241, 180, 0, .95), rgba(239, 51, 64, .94), rgba(88, 168, 63, .96));
  background-size: 320% 320%;
  animation: stateNextGradient 18s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.state-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 16, 24, .12), rgba(7, 16, 24, .36));
  transition: background .2s ease;
}
.state-next:hover::before,
.state-next:focus-visible::before {
  background: linear-gradient(135deg, rgba(7, 16, 24, .04), rgba(7, 16, 24, .24));
}
.state-next:focus-visible {
  outline: 3px solid rgba(31, 103, 191, .28);
  outline-offset: 3px;
}
.state-next > * {
  position: relative;
  z-index: 1;
}
.state-next > span {
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  font-weight: 650;
}
.state-next-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.state-next-label .bi {
  color: rgba(255, 255, 255, .95);
}
.state-next-meta {
  display: grid;
  gap: 5px;
}
.state-next-meta a,
.state-next-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .92);
  font-size: 11.5px;
  font-weight: 560;
}
.state-next-meta .bi {
  color: rgba(255, 255, 255, .96);
}
.state-next-line {
  justify-content: space-between;
  width: 100%;
}
.state-next-line b,
.state-next-line time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, .96);
  font-size: 11.5px;
  font-weight: 720;
  white-space: nowrap;
}
.state-next-line time {
  margin-left: auto;
  font-weight: 650;
}
.state-next-time {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.state-next-event {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-next-empty {
  font-weight: 650;
}
.state-next-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.next-sport-badge,
.next-event-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}
.next-sport-badge {
  color: #0d4d11;
  background: rgba(62, 151, 49, .16);
}
.next-event-badge {
  color: #083d82;
  background: rgba(31, 103, 191, .12);
}
.state-next-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  justify-self: start;
  border-radius: 8px;
  color: var(--white);
  background: var(--dark);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(17, 24, 32, .14);
}
.state-next-button:hover {
  transform: translateY(-1px);
  background: var(--blue);
}
.venue-card { overflow: hidden; position: relative; }
.venue-card h3, .venue-card p, .venue-card small, .venue-card b, .venue-card .venue-next-link { margin-left: 16px; margin-right: 16px; }
.venue-card b { display: block; margin-bottom: 16px; }
.venue-image {
  display: block;
  height: 140px;
  background:
    linear-gradient(135deg, rgba(5, 13, 20, .35), rgba(5, 13, 20, .85)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.65), transparent 18%),
    linear-gradient(135deg, var(--green), var(--blue));
}
.venue-image.tone-gold { background: linear-gradient(135deg, var(--gold), var(--red)); }
.venue-image.tone-red { background: linear-gradient(135deg, var(--red), var(--charcoal)); }
.venue-image.tone-dark { background: linear-gradient(135deg, #60666c, #111820); }
.venue-card .status { position: absolute; top: 116px; left: 14px; }
.venue-card-status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, .94);
  z-index: 2;
}
.venue-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.venue-meta .bi {
  color: var(--blue);
}
.venue-next-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 6px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.venue-next-link .bi {
  color: #a97800;
}
.news-card {
  min-height: 210px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 16, 24, .28), rgba(7, 16, 24, .95)),
    linear-gradient(135deg, var(--blue), var(--charcoal) 54%, var(--red));
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
}
.news-meta span,
.news-meta small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.news-card small { margin-top: 0; color: rgba(255,255,255,.75); }
.news-card p { color: rgba(255,255,255,.82); }
.news-card a { color: var(--gold); font-weight: 900; }
.live-card {
  min-height: 250px;
  padding: 16px;
  color: var(--white);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 14, 22, .05), rgba(5, 14, 22, .94)),
    linear-gradient(135deg, var(--blue), var(--red));
}
.live-cover { display: flex; justify-content: space-between; min-height: 105px; }
.live-pill,
.live-viewers {
  height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  color: var(--white);
  background: rgba(7, 16, 24, .58);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 950;
}
.live-pill {
  background: var(--red);
  animation: pulse 1.3s infinite;
}
.live-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 12px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
}
.live-meta span,
.live-meta em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-style: normal;
}
.live-meta span .bi { color: var(--green); font-size: 9px; }
.home-live-session { margin-bottom: 28px; }
.event-card { padding: 16px; }
.agenda {
  display: grid;
  gap: 8px;
}
.agenda-row, .result-row {
  display: grid;
  grid-template-columns: 92px auto 120px 1.2fr 1.3fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.agenda-row p, .result-row p { margin: 0; }
.agenda-row small { display: block; color: var(--muted); }
.agenda-row {
  grid-template-columns: 92px auto minmax(170px, 1fr) minmax(180px, 1fr) auto auto;
}
.agenda-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.agenda-time .bi {
  color: var(--blue);
}
.event-meta,
.venue-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.event-meta .bi,
.venue-line .bi {
  color: var(--blue);
}
.row-action {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--ink);
  background: #f1f4f7;
  border: 1px solid #dde5ec;
  font-weight: 900;
}
.result-row {
  grid-template-columns: auto minmax(180px, 1.2fr) minmax(170px, 1fr) auto auto;
  margin-bottom: 10px;
}
.sport-result-row {
  grid-template-columns: 150px auto minmax(190px, 1.25fr) minmax(160px, .9fr) minmax(170px, 1fr) auto auto;
}
.sport-result-row > * {
  min-width: 0;
}
.sport-result-row strong,
.sport-result-row h3,
.sport-result-row p,
.sport-result-row .result-score {
  overflow-wrap: anywhere;
}
.result-row h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}
.result-score {
  display: inline-grid;
  place-items: center;
  min-width: 74px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #f0f3f6;
  border: 1px solid #dfe6ec;
  font-size: 16px;
  font-weight: 950;
}
.game-context-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(220px, auto);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}
.game-context-sport,
.game-context-item,
.game-context-pills {
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(12, 24, 38, .06);
}
.game-context-sport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon title";
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  text-decoration: none;
}
.game-context-sport span {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 18px;
}
.game-context-sport small,
.game-context-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.game-context-sport strong {
  grid-area: title;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.game-context-main {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 12px;
}
.game-context-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  text-decoration: none;
}
.game-context-item > .bi {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--blue);
  background: #eef6ff;
  font-size: 17px;
}
.game-context-item strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.game-context-item em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.game-context-pills {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
}
.game-context-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  color: var(--ink);
  background: #f2f5f8;
  border: 1px solid #dfe6ec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}
.game-context-pills .bi {
  color: var(--blue);
}
.game-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.game-meta-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.game-meta-card small,
.game-meta-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.game-meta-card strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}
.game-detail-grid {
  align-items: start;
}
.linked-athlete-note {
  --linked-color: var(--blue);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 14px 0 18px;
  padding: 10px 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--linked-color) 10%, var(--white));
  border: 2px solid color-mix(in srgb, var(--linked-color) 62%, var(--line));
  border-radius: 8px;
}
.linked-athlete-note > .bi {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  background: var(--linked-color);
}
.linked-athlete-note span {
  display: grid;
  gap: 2px;
}
.linked-athlete-note small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}
.linked-athlete-note strong {
  font-size: 14px;
}
.linked-athlete-note b {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: var(--linked-color);
  font-size: 12px;
}
.is-linked-athlete { --linked-color: var(--blue); }
.linked-medal-gold { --linked-color: #c89000; }
.linked-medal-silver { --linked-color: #737b84; }
.linked-medal-bronze { --linked-color: #a45c19; }
.game-result-table tr.is-linked-athlete td {
  background: color-mix(in srgb, var(--linked-color, var(--blue)) 13%, var(--white));
  border-top: 2px solid color-mix(in srgb, var(--linked-color, var(--blue)) 48%, var(--line));
  border-bottom: 2px solid color-mix(in srgb, var(--linked-color, var(--blue)) 48%, var(--line));
}
.game-result-table tr.is-linked-athlete td:first-child {
  border-left: 4px solid var(--linked-color, var(--blue));
}
.is-linked-athlete-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--linked-color, var(--blue)) 76%, var(--ink)) !important;
  background: color-mix(in srgb, var(--linked-color, var(--blue)) 13%, transparent);
  outline: 1px solid color-mix(in srgb, var(--linked-color, var(--blue)) 38%, transparent);
}
.game-result-table-card {
  overflow-x: auto;
}
.game-result-table {
  min-width: 680px;
}
.game-result-table a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}
.game-delegation-cell {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: min(230px, 100%);
  min-height: 44px;
  padding: 6px 9px;
  color: var(--ink) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--deleg-color, var(--blue)) 13%, var(--white)), rgba(255, 255, 255, .94)),
    var(--deleg-flag, none) right center / auto 120% no-repeat;
  border: 1px solid color-mix(in srgb, var(--deleg-color, var(--blue)) 22%, var(--line));
  border-radius: 8px;
}
.game-delegation-flag {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--deleg-color, var(--blue)), var(--deleg-color-dark, var(--green)));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .78);
}
.game-delegation-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-delegation-flag .bi {
  color: var(--white);
  font-size: 14px;
}
.game-delegation-cell strong,
.game-delegation-cell small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.game-delegation-cell strong {
  font-size: 13px;
  font-weight: 850;
}
.game-delegation-cell small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.game-winners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.game-winner-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
}
.game-winner-card.is-linked-athlete {
  border-color: color-mix(in srgb, var(--linked-color, var(--gold)) 42%, var(--line));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--linked-color, var(--gold)) 22%, transparent);
}
.game-winner-card .is-linked-athlete-row {
  padding: 8px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--linked-color, var(--gold)) 10%, transparent);
}
.game-winner-card.silver { border-top-color: var(--silver); }
.game-winner-card.bronze { border-top-color: var(--bronze); }
.game-winner-card strong {
  font-size: 18px;
  font-weight: 950;
}
.game-winner-card p {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.game-winner-card a {
  color: var(--ink);
  text-decoration: none;
}
.game-winner-card small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.roster-group {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, var(--deleg-color, var(--blue)), var(--deleg-color-dark, var(--green))) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(12, 24, 38, .08);
}
.roster-group::before {
  content: none;
}
.roster-group::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: -1;
}
.roster-group.has-linked-athlete {
  border-color: transparent;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--linked-color, var(--blue)) 22%, transparent);
}
.roster-group h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 850;
}
.roster-group h3 a {
  color: var(--ink);
  text-decoration: none;
}
.roster-list {
  display: grid;
  gap: 8px;
}
.roster-athlete {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(12, 24, 38, .05);
}
.roster-athlete.is-linked-athlete {
  border: 2px solid color-mix(in srgb, var(--linked-color, var(--blue)) 56%, var(--line));
  background: color-mix(in srgb, var(--linked-color, var(--blue)) 8%, var(--white));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--linked-color, var(--blue)) 14%, transparent);
}
.roster-athlete.is-linked-athlete .dorsal {
  color: var(--white);
  background: var(--linked-color, var(--blue));
}
.roster-athlete .dorsal {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  color: var(--ink);
  background: #eef3f7;
  border-radius: 999px;
  font-weight: 850;
}
.roster-athlete strong {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.roster-athlete small {
  grid-column: 2;
  color: var(--muted);
  font-weight: 650;
}
.roster-athlete .result-medal {
  font-size: 12px;
}
.game-venue-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 10%, rgba(22, 104, 176, .12), transparent 32%),
    var(--white);
  text-decoration: none;
}
.game-venue-card .bi {
  color: var(--blue);
  font-size: 24px;
}
.game-summary-list > div {
  grid-template-columns: auto 1fr;
  padding: 12px;
}
.game-summary-list strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.game-summary-list small {
  font-size: 11px;
  font-weight: 650;
}
.game-summary-list .bi {
  color: var(--blue);
  font-size: 18px;
}
.game-summary-list a {
  color: var(--blue);
  text-decoration: none;
}
.summary-list > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.summary-list strong { font-size: 26px; }
.summary-list small { grid-column: 2; color: var(--muted); }
.metric-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.metric-matrix div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.metric-matrix div > .bi {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 22px;
}
.metric-matrix b { display: block; font-size: 32px; }
.record-grid, .medal-summary, .media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.record-grid div {
  min-height: 120px;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(145deg, var(--dark), #1a2731);
  border-radius: 8px;
  border-bottom: 4px solid var(--green);
}
.record-grid b { display: block; margin: 12px 0; font-size: 27px; }
.medal-summary { grid-template-columns: repeat(4, 1fr); padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.medal-summary div {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.medal-summary div:last-child {
  padding-right: 0;
  border-right: 0;
}
.medal-summary strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}
.medal-summary-badge {
  justify-self: end;
  min-width: 54px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #f3f7fa;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.medal-summary em {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.medal-summary .medal-progress {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--progress-color, var(--gold)) var(--p), #e8edf1 var(--p));
  animation: medalProgress 850ms ease-out both;
}
.medal-summary .medal-progress.gold { --progress-color: var(--gold); }
.medal-summary .medal-progress.silver { --progress-color: var(--silver); }
.medal-summary .medal-progress.bronze { --progress-color: var(--bronze); }
.medal-summary .medal-progress.total { --progress-color: var(--green); }
.medal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-weight: 950;
}
.medal .bi { font-size: 21px; }
.medal.gold,
.medal.oro { background: var(--gold); }
.medal.silver,
.medal.plata { background: var(--silver); }
.medal.bronce { background: var(--bronze); }
.medal.total { background: var(--green); }
.medal.bronze,
.medal.bronce { background: var(--bronze); }
.medal-mini-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.medal-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 36px;
  color: var(--ink);
  font-size: 13px;
}
.athlete-card .medal-mini-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 18px 18px;
}
.athlete-card .medal-mini {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
}
.athlete-card .medal-mini .bi {
  font-size: 17px;
}
.athlete-card .medal-mini strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}
.medal-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.chart-card {
  min-height: 250px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 32, 42, .06);
}
.chart-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.chart-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}
.donut-chart {
  width: 168px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--white) 0 56%, transparent 57%),
    conic-gradient(var(--gold) 0 var(--gold-share), var(--silver) var(--gold-share) var(--silver-share), var(--bronze) var(--silver-share) 100%);
  animation: chartRise 700ms ease-out both;
}
.donut-chart strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}
.donut-chart span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.chart-legend {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chart-legend .gold { color: #c89000; }
.chart-legend .silver { color: #737b84; }
.chart-legend .bronze { color: #a45c19; }
.chart-card-bars {
  grid-template-columns: 1fr;
  align-content: center;
}
.bar-chart {
  display: grid;
  gap: 14px;
}
.bar-chart div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
}
.bar-chart span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.bar-chart i {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf1;
}
.bar-chart i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  animation: barGrow 850ms ease-out both;
}
.bar-chart b {
  text-align: right;
  font-size: 14px;
}
.quick-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quick-filters button, .quick-filters a {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 850;
  text-align: left;
}
.download-card, .detail-shell { padding: 20px; margin-top: 18px; }
.map-card {
  min-height: 220px;
  position: relative;
  padding: 18px;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 55%, rgba(126,188,65,.9), transparent 12%),
    linear-gradient(135deg, #18232c, #071018);
  border-radius: 8px;
  border: 1px solid #263845;
}
.map-card span { position: absolute; font-weight: 850; }
.map-card span:nth-child(1) { right: 18px; top: 72px; }
.map-card span:nth-child(2) { left: 65px; top: 95px; }
.map-card span:nth-child(3) { left: 30px; top: 35px; }
.venue-strip, .athlete-rail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.venue-mini {
  min-height: 120px;
  padding: 12px;
  display: grid;
  align-content: end;
  color: var(--white);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--dark));
}
.venue-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.notice {
  padding: 14px 18px;
  border-radius: 8px;
  color: #624100;
  background: #fff3cc;
  border: 1px solid #f3d77b;
}
.detail-hero, .match-hero, .scoreboard-hero, .news-detail-hero {
  position: relative;
  min-height: 320px;
  padding: 74px clamp(18px, 8vw, 160px) 38px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .98), rgba(5, 11, 16, .72), rgba(5, 11, 16, .35)),
    url("/img/hero/jdn-hero.png") center right / cover no-repeat;
}
.athlete-profile-hero {
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .98) 0%, rgba(5, 11, 16, .82) 42%, rgba(5, 11, 16, .38) 100%),
    radial-gradient(circle at 74% 38%, color-mix(in srgb, var(--athlete-color, var(--green)) 46%, transparent), transparent 34%),
    linear-gradient(135deg, var(--athlete-color-dark, #0b4e70), var(--athlete-color, #2f8e36));
}
.athlete-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--athlete-flag, none) right center / min(44vw, 620px) auto no-repeat;
  opacity: .22;
  filter: blur(1px) saturate(1.12);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.2) 42%, #000 100%);
}
.athlete-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, transparent 54%, color-mix(in srgb, var(--athlete-color, var(--green)) 30%, transparent) 74%, transparent 100%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,255,255,.06) 18px 24px);
  opacity: .55;
  animation: athleteHeroFlow 12s ease-in-out infinite alternate;
}
.detail-hero h1, .match-hero h1, .news-detail-hero h1 {
  margin: 8px 0 12px;
  max-width: 760px;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: 1;
  font-weight: 950;
  font-style: italic;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-weight: 850;
  margin-bottom: 10px;
}
.result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.medal-line, .venue-sports, .doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.medal-line b, .medal-line strong, .venue-sports span {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
}
.profile-silhouette {
  position: absolute;
  right: 12vw;
  bottom: 0;
  font-size: 220px;
  color: rgba(255,255,255,.18);
}
.profile-portrait {
  position: absolute;
  right: clamp(24px, 10vw, 150px);
  bottom: 34px;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  z-index: 2;
}
.profile-photo-large {
  width: clamp(150px, 18vw, 230px);
  aspect-ratio: 1;
  align-content: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: rgba(255,255,255,.9);
  background:
    radial-gradient(circle at 36% 22%, rgba(255,255,255,.24), transparent 28%),
    linear-gradient(135deg, var(--blue), var(--green));
  border: 5px solid rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.profile-photo-large .bi {
  font-size: clamp(78px, 9vw, 130px);
  transform: translateY(10px);
}
.profile-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-portrait figcaption {
  max-width: 230px;
  color: rgba(255,255,255,.84);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}
.profile-medal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.profile-medal-strip span,
.profile-medal-strip strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
}
.profile-medal-strip b {
  color: var(--white);
  font-size: 18px;
}
.profile-medal-strip .gold { color: #f1b400; }
.profile-medal-strip .silver { color: #c9d0d6; }
.profile-medal-strip .bronze { color: #d58a43; }
.result-medal.neutral {
  color: #53606c;
  background: #eef2f6;
  border-color: #dbe3ea;
}
.floating-card {
  position: absolute;
  right: clamp(18px, 5vw, 90px);
  bottom: 34px;
  width: 270px;
  padding: 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-meta-list,
.venue-sports-text {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  color: rgba(255,255,255,.82);
  font-weight: 800;
}
.hero-meta-list span,
.venue-sports-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.state-detail-hero {
  --deleg-color: var(--green);
  --deleg-color-dark: #1d6f35;
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding: 70px clamp(24px, 8vw, 160px) 56px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4, 10, 15, .96), rgba(4, 10, 15, .76) 48%, rgba(4, 10, 15, .46)),
    var(--deleg-banner, url("/img/hero/jdn-hero.png")) center right / cover no-repeat;
}
.state-detail-hero::before {
  content: "";
  position: absolute;
  inset: -42%;
  background:
    radial-gradient(circle at 18% 28%, var(--deleg-color) 0 10%, transparent 32%),
    radial-gradient(circle at 78% 22%, var(--deleg-color-dark) 0 12%, transparent 34%),
    linear-gradient(120deg, var(--deleg-color), var(--deleg-color-dark));
  opacity: .5;
  mix-blend-mode: screen;
  animation: delegationHeroFlow 13s ease-in-out infinite alternate;
}
.state-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 15, .08), rgba(4, 10, 15, .72)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 16px);
  opacity: .55;
}
.state-detail-hero-content,
.state-hero-flag {
  position: relative;
  z-index: 2;
}
.state-detail-hero h1 {
  margin: 8px 0 16px;
  max-width: 760px;
  font-size: clamp(54px, 6vw, 86px);
  line-height: .95;
  font-weight: 950;
  font-style: italic;
}
.state-detail-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  line-height: 1.55;
}
.state-hero-meta {
  margin-top: 22px;
}
.state-hero-flag {
  justify-self: end;
  width: min(100%, 330px);
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.state-hero-flag img,
.state-hero-flag .state-flag-icon {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}
.state-hero-flag figcaption {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 950;
  letter-spacing: 0;
}
.state-detail-page {
  display: grid;
  gap: 24px;
}
.state-detail-stats {
  margin-top: 0;
}
.state-detail-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 18px;
  align-items: start;
}
.state-detail-main-stack {
  display: grid;
  gap: 18px;
}
.state-medal-panel,
.state-sports-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}
.state-medal-panel {
  padding: 16px;
}
.state-panel-heading {
  display: grid;
  gap: 3px;
}
.state-medal-panel .state-panel-heading h2 {
  margin-bottom: 0;
  font-size: 18px;
  font-style: normal;
  text-transform: none;
}
.state-medal-summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.state-total-orb {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  color: var(--white);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .32), transparent 26%),
    linear-gradient(135deg, rgba(7, 16, 24, .78), rgba(7, 16, 24, .52)),
    linear-gradient(135deg, var(--deleg-color), var(--deleg-color-dark));
  box-shadow: 0 18px 45px rgba(17, 24, 32, .14);
}
.state-total-orb::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: inherit;
  animation: stateOrbRing 2.8s ease-in-out infinite;
}
.state-total-orb-icon {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  color: var(--gold);
  background: rgba(7, 16, 24, .82);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .18);
  animation: stateOrbIconFloat 2.6s ease-in-out infinite;
}
.state-total-orb strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 34px;
  line-height: .95;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .34);
}
.state-total-orb span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .32);
}
.state-medal-bars {
  display: grid;
  gap: 10px;
}
.state-medal-bar {
  display: grid;
  grid-template-columns: 74px 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.state-medal-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.state-medal-bar b {
  color: var(--ink);
  font-size: 16px;
  text-align: right;
}
.state-medal-bar > i {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
}
.state-medal-bar > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  animation: barGrow 850ms ease-out both;
}
.state-medal-bar.gold span .bi { color: #c89000; }
.state-medal-bar.gold > i::after { background: linear-gradient(90deg, #f0b51b, #d79300); }
.state-medal-bar.silver span .bi { color: #737b84; }
.state-medal-bar.silver > i::after { background: linear-gradient(90deg, #c9d0d6, #8c969f); }
.state-medal-bar.bronze span .bi { color: #a45c19; }
.state-medal-bar.bronze > i::after { background: linear-gradient(90deg, #d58a43, #9c581d); }
.state-sport-medal-list {
  display: grid;
  gap: 10px;
}
.state-sport-medal-list-full {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.state-sport-medal-row {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform .22s ease, border-color .22s ease;
}
.state-sport-medal-row:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 151, 49, .35);
}
.state-sport-medal-row .dot {
  grid-row: 1 / 3;
}
.state-sport-medal-row strong {
  min-width: 0;
  line-height: 1.2;
}
.state-sport-medal-row small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}
.state-sport-medal-row b {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  font-size: 21px;
}
.state-sport-progress {
  position: relative;
  grid-column: 2 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf2;
}
.state-sport-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--deleg-color), var(--deleg-color-dark));
}
.state-detail-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 26px;
  align-items: start;
}
.state-athlete-rail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.state-featured-athletes .section-head {
  margin-top: 0;
}
.state-activity-row,
.state-result-row {
  grid-template-columns: auto minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
}
.state-activity-main,
.state-result-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.state-activity-main strong,
.state-result-main strong {
  line-height: 1.2;
}
.state-activity-main small,
.state-result-main small {
  grid-column: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.25;
}
.state-result-main strong {
  color: var(--ink);
  font-size: 14px;
}
.state-result-main small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}
.state-activity-main small .bi,
.state-result-main small .bi {
  margin-right: 0;
  flex: none;
}
.state-activity-time,
.state-result-score,
.state-result-action {
  justify-self: end;
  min-width: 92px;
  max-width: 150px;
  justify-content: flex-end;
  text-align: right;
  white-space: normal;
  line-height: 1.2;
}
.state-result-action {
  color: var(--blue);
  background: rgba(20, 100, 173, .08);
}
@keyframes delegationHeroFlow {
  0% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) rotate(7deg) scale(1.06); }
}
.venue-sports-text {
  margin-top: 14px;
}
.venue-live-card {
  display: grid;
  gap: 10px;
}
.venue-live-card span,
.venue-live-card b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.venue-live-card span {
  color: var(--red);
  font-weight: 900;
}
.panel-card, .info-card, .featured-document, .report-card, .timeline-card, .bracket-card, .article-body, .compare-card, .court-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 32, 42, .06);
}
.panel-card { padding: 20px; }
.panel-card.center { text-align: center; }
.panel-card h2 { margin-top: 0; text-transform: uppercase; font-style: italic; font-size: 20px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card { padding: 18px; }
.info-card p {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.info-card p:last-child { border-bottom: 0; }
.info-card p > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.info-card p > .bi {
  color: var(--blue);
}
.athlete-info-card {
  --gender-accent: #1464ad;
  --gender-soft: #eef6ff;
  border-color: color-mix(in srgb, var(--gender-accent) 28%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gender-accent) 10%, transparent), transparent 48%),
    var(--white);
}
.athlete-info-card.gender-female {
  --gender-accent: #d9358a;
  --gender-soft: #fff0f7;
}
.athlete-info-card.gender-male {
  --gender-accent: #1464ad;
  --gender-soft: #eef6ff;
}
.athlete-info-card p > .bi {
  color: var(--gender-accent);
}
.athlete-info-card p > span {
  min-width: 92px;
  padding: 5px 8px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--gender-accent) 78%, #101923);
  background: var(--gender-soft);
  text-align: center;
}
.athlete-competition-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
.athlete-competition-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}
.athlete-competition-item span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--muted);
  background: #f1f5f8;
  font-size: 11px;
  font-weight: 850;
}
.athlete-competition-item strong {
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.athlete-results-table {
  min-width: 0;
}
.athlete-results-table td {
  vertical-align: middle;
}
.athlete-results-table time {
  color: var(--muted);
  font-weight: 850;
}
.athlete-results-table td span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.athlete-results-table td span .bi {
  color: var(--blue);
}
.result-medal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.result-medal.gold { color: #9a6a00; }
.result-medal.silver { color: #646d75; }
.result-medal.bronze { color: #965315; }
.result-medal.gold .bi { color: #c89000; }
.result-medal.silver .bi { color: #737b84; }
.result-medal.bronze .bi { color: #a45c19; }
.narrow { max-width: 330px; }
.gallery-albums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-albums.small { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
.album-card, .moment-card, .media-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.album-image {
  min-height: 140px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--white);
  font-size: 44px;
  background: linear-gradient(135deg, var(--blue), var(--dark));
}
.album-image.tone-red { background: linear-gradient(135deg, var(--red), var(--dark)); }
.moment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.moment-card .bi { font-size: 28px; color: var(--green); }
.media-card {
  min-height: 110px;
  color: var(--white);
  background: linear-gradient(135deg, var(--dark), var(--blue));
}
.featured-document {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(135deg, #071018, #142330);
}
.document-cover {
  min-height: 160px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0b1620, #274052);
  display: grid;
  align-content: space-between;
}
.document-cover img { width: 86px; }
.document-cover strong { font-size: 26px; font-style: italic; }
.document-actions { display: grid; gap: 12px; }
.doc-meta { color: rgba(255,255,255,.8); font-weight: 800; }
.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.document-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.doc-type {
  color: var(--ink);
  font-weight: 850;
}
.report-card { padding: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.dark-card { color: var(--white); background: linear-gradient(135deg, var(--dark), #132331); }
.dark-card strong { font-size: 36px; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.donut-stat {
  width: 170px;
  height: 170px;
  margin: 10px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, var(--white) 0 52%, transparent 53%),
    conic-gradient(var(--gold) 0 40%, var(--silver) 40% 74%, var(--bronze) 74% 100%);
}
.donut-stat strong { font-size: 42px; }
.sport-medal-strip, .info-chip-grid, .podium-cards, .leader-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sport-medal-strip a, .info-chip-grid a, .info-chip-grid span, .podium-cards a, .leader-grid a {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  gap: 7px;
}
.sport-medal-strip .bi, .info-chip-grid .bi { font-size: 25px; color: var(--blue); }
.news-detail-hero {
  min-height: 350px;
  display: flex;
  align-items: end;
}
.article-body {
  padding: 28px;
  font-size: 17px;
  line-height: 1.65;
}
.article-body blockquote {
  margin: 26px 0;
  padding: 24px;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #f2f7ef;
  font-size: 22px;
  font-weight: 850;
}
.match-hero {
  display: grid;
  grid-template-columns: 1fr 320px 1fr;
  gap: 20px;
  align-items: end;
}
.fighter h2 { font-size: 30px; margin: 18px 0 0; }
.fighter strong {
  display: block;
  font-size: 86px;
  color: var(--blue);
  line-height: .95;
}
.fighter.right { text-align: right; }
.fighter.right strong { color: var(--red); }
.versus { text-align: center; }
.versus span {
  display: inline-flex;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--green);
  font-weight: 950;
  text-transform: uppercase;
}
.versus b {
  width: 80px;
  height: 80px;
  margin: 20px auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  font-size: 32px;
}
.fighter-state,
.fighter-result,
.combat-status,
.combat-venue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}
.fighter-state .bi,
.fighter-result .bi,
.combat-status .bi,
.combat-venue .bi {
  color: var(--gold);
  font-size: 15px;
}
.fighter-result,
.combat-status {
  color: #dff3d8;
}
.fighter-result.muted {
  color: rgba(255,255,255,.64);
}
.combat-meta-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 10px;
}
.combat-meta-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border-radius: 0;
  color: rgba(255,255,255,.78);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}
.combat-meta-list .bi {
  color: var(--gold);
}
.combat-status {
  margin-top: 12px;
}
.versus .combat-status {
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-transform: none;
}
.combat-venue {
  justify-content: center;
}
.timeline-card, .bracket-card { padding: 18px; }
.timeline-card p, .bracket-card p { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); }
.bracket-card p { display: flex; justify-content: space-between; }
.live-feed p {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.play-time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.panel-score {
  display: inline-grid;
  place-items: center;
  min-width: 112px;
  min-height: 44px;
  margin: 4px auto;
  border-radius: 8px;
  color: var(--ink);
  background: #f1f4f7;
  border: 1px solid #dde5ec;
  font-size: 24px;
  font-weight: 950;
}
.outcome-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2f7d24;
  font-weight: 850;
}
.result-time-hero .podium-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
  margin-top: 18px;
}
.podium-strip a {
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.54);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.podium-strip a:hover {
  transform: translateY(-2px);
}
.podium-strip .podium-rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-weight: 950;
}
.podium-strip .podium-item.silver .podium-rank { background: #858e98; }
.podium-strip .podium-item.bronze .podium-rank { background: var(--bronze); }
.podium-strip strong {
  display: block;
  color: var(--ink);
  line-height: 1.15;
}
.podium-strip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.podium-strip .bi {
  color: #c89000;
  font-size: 20px;
}
.podium-strip .podium-item.silver .bi { color: #737b84; }
.podium-strip .podium-item.bronze .bi { color: #a45c19; }
.podium-card-item {
  border-top: 4px solid var(--gold);
}
.podium-card-item.silver { border-top-color: var(--silver); }
.podium-card-item.bronze { border-top-color: var(--bronze); }
.podium-card-item b {
  color: var(--ink);
  font-size: 22px;
}
.podium-card-item small {
  color: var(--muted);
  font-weight: 800;
}
.podium-strip b {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
}
.podium-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.venue-info-card {
  overflow: hidden;
}
.venue-info-card .venue-image {
  height: 156px;
}
.venue-info-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}
.venue-info-body h3 {
  margin: 0;
}
.venue-info-body p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.venue-info-body .bi {
  color: var(--blue);
}
.scoreboard-hero {
  min-height: 270px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
.team-side { display: grid; gap: 8px; }
.team-side .bi { font-size: 54px; color: var(--gold); }
.team-side h2 { margin: 0; font-size: 34px; }
.team-side.right { text-align: right; justify-items: end; }
.team-side .live-pill .bi {
  color: currentColor;
  font-size: 14px;
}
.team-record,
.score-state,
.score-venue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}
.team-record .bi,
.score-state .bi,
.score-venue .bi {
  color: var(--gold);
  font-size: 15px;
}
.score-center {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.score-center strong { font-size: 92px; line-height: .9; }
.score-center span { font-weight: 950; color: var(--green); }
.score-center em { grid-column: 1 / -1; font-style: normal; color: rgba(255,255,255,.8); }
.compare-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 20px; }
.compare-card span {
  display: block;
  margin: 12px 0;
  padding-top: 8px;
  border-top: 8px solid var(--blue);
}
.compare-card .stat-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
  border-top-width: 4px;
}
.compare-card .stat-line .bi {
  color: var(--blue);
}
.court-card {
  min-height: 220px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.8) 50%, transparent 51%),
    #f3d4a5;
}
.court-card span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-weight: 950;
}
.leader-grid { grid-template-columns: repeat(3, 1fr); }
.athlete-detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.athlete-result-grid {
  display: grid;
  gap: 10px;
}
.athlete-result-card {
  --result-accent: transparent;
  --result-soft: var(--white);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(120px, auto) 34px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--result-accent) 12%, transparent), transparent 56%),
    var(--result-soft);
  border: 1px solid color-mix(in srgb, var(--result-accent) 32%, var(--line));
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(21, 32, 42, .055);
}
.athlete-result-card.result-tone-gold {
  --result-accent: #c89000;
  --result-soft: #fffaf0;
}
.athlete-result-card.result-tone-silver {
  --result-accent: #737b84;
  --result-soft: #f6f8fa;
}
.athlete-result-card.result-tone-bronze {
  --result-accent: #a45c19;
  --result-soft: #fff6ee;
}
.athlete-result-icon,
.athlete-result-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
}
.athlete-result-icon {
  color: color-mix(in srgb, var(--result-accent) 72%, #1464ad);
  background: color-mix(in srgb, var(--result-accent) 12%, #eef6ff);
}
.athlete-result-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.athlete-result-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--result-accent) 24%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--result-accent) 64%, var(--ink));
  background: color-mix(in srgb, var(--result-accent) 10%, #f6f8fa);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.athlete-result-main small,
.athlete-result-main time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}
.athlete-result-main .bi {
  color: var(--blue);
}
.athlete-result-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.athlete-result-side em,
.athlete-result-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 74px;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--ink);
  background: color-mix(in srgb, var(--result-accent) 12%, #f1f5f8);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}
.athlete-result-value .gold { color: #c89000; }
.athlete-result-value .silver { color: #737b84; }
.athlete-result-value .bronze { color: #a45c19; }
.athlete-result-arrow {
  color: var(--muted);
  background: #f4f7fa;
}
.auth-page {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 440px);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 6vw, 96px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .96), rgba(5, 11, 16, .68)),
    url("/img/hero/jdn-hero.png") center right / cover no-repeat;
}
.auth-visual {
  max-width: 760px;
}
.auth-visual h1 {
  margin: 10px 0 16px;
  max-width: 720px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: .96;
  font-style: italic;
}
.auth-visual p {
  max-width: 560px;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.6;
}
.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 850;
}
.auth-benefits .bi {
  color: var(--gold);
}
.auth-card,
.profile-panel,
.profile-summary-card,
.follow-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(10, 25, 40, .13);
}
.auth-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
}
.auth-card h2,
.profile-panel h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-style: italic;
  text-transform: uppercase;
}
.auth-card p,
.auth-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.provider-stack,
.auth-form,
.security-list,
.preference-list {
  display: grid;
  gap: 10px;
}
.google-auth-box {
  display: grid;
  gap: 8px;
}
.google-auth-button {
  min-height: 44px;
}
.google-auth-button > div {
  width: 100% !important;
}
.google-auth-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.auth-provider-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--muted);
  background: #f4f7fa;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font-weight: 900;
}
.provider-button .bi {
  font-size: 18px;
}
.provider-button.muted {
  justify-content: space-between;
  color: var(--muted);
  background: #f7f9fb;
}
.provider-button.muted span {
  margin-right: auto;
}
.provider-button.muted small {
  color: var(--blue);
  font-size: 11px;
  text-transform: uppercase;
}
.swal-auth-fields {
  display: grid;
  gap: 9px;
  text-align: left;
}
.swal-auth-fields label {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}
.swal-auth-fields .swal2-input {
  width: 100%;
  height: 42px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}
.swal-check-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-top: 4px !important;
}
.swal-check-row input {
  width: 16px;
  height: 16px;
}
.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.auth-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}
.auth-note {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.profile-page {
  background: var(--soft);
}
.profile-hero-panel {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: end;
  padding: 74px clamp(18px, 8vw, 160px) 38px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .98), rgba(5, 11, 16, .72), rgba(5, 11, 16, .35)),
    url("/img/hero/jdn-hero.png") center right / cover no-repeat;
}
.profile-hero-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  font-style: italic;
}
.profile-summary-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  color: var(--ink);
}
.profile-summary-card strong {
  font-size: 18px;
}
.profile-summary-card small {
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}
.profile-content {
  padding-top: 28px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 16px;
  padding: 18px;
}
.profile-sidebar,
.profile-favorites {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.security-list p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.security-list .bi {
  color: var(--green);
}
.security-list b,
.security-list small {
  display: block;
}
.security-list small {
  margin-top: 3px;
  color: var(--muted);
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-security-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.follow-grid {
  display: grid;
  gap: 10px;
}
.follow-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}
.follow-card strong,
.follow-card small {
  display: block;
}
.follow-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.follow-card small .bi {
  margin-right: 6px;
  color: var(--blue);
}
.empty-follow {
  cursor: default;
  border-style: dashed;
}
.empty-follow .athlete-avatar {
  color: var(--muted);
  background: #eef3f8;
}
.state-follow .state-flag-icon {
  width: 50px;
  height: 32px;
}
.preference-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}
.preference-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.preference-list .bi {
  color: var(--blue);
}
.preference-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef4fb;
  --muted: #aab5c0;
  --line: #273544;
  --soft: #071018;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .page-band,
html[data-theme="dark"] .profile-page {
  color: var(--ink);
  background: #071018;
}
html[data-theme="dark"] .site-header {
  background: rgba(3, 8, 13, .96);
}
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .sport-card,
html[data-theme="dark"] .athlete-card,
html[data-theme="dark"] .state-card,
html[data-theme="dark"] .venue-card,
html[data-theme="dark"] .venue-info-card,
html[data-theme="dark"] .game-meta-card,
html[data-theme="dark"] .game-winner-card,
html[data-theme="dark"] .roster-group,
html[data-theme="dark"] .news-card:not(.media-card),
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .download-card,
html[data-theme="dark"] .table-card,
html[data-theme="dark"] .detail-shell,
html[data-theme="dark"] .compact-row,
html[data-theme="dark"] .athlete-result-card,
html[data-theme="dark"] .summary-list > div,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .category-row,
html[data-theme="dark"] .tabs,
html[data-theme="dark"] .date-carousel,
html[data-theme="dark"] .live-ribbon,
html[data-theme="dark"] .sport-detail-intro,
html[data-theme="dark"] .sport-panel-placeholder,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .sport-inline-loading,
html[data-theme="dark"] .tourney-card,
html[data-theme="dark"] .metric-matrix > div,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .bracket-card,
html[data-theme="dark"] .compare-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .profile-summary-card,
html[data-theme="dark"] .follow-card,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .pagination-bar,
html[data-theme="dark"] .quick-filters button,
html[data-theme="dark"] .documents-table,
html[data-theme="dark"] .info-card {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .news-card:not(.media-card) {
  background:
    linear-gradient(180deg, rgba(7, 16, 24, .18), rgba(7, 16, 24, .92)),
    linear-gradient(135deg, #12395e, #101923 54%, #5e1520);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .auth-form input {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #7f8b97;
}
html[data-theme="dark"] table th {
  color: #c7d1dc;
  background: #0b141d;
}
html[data-theme="dark"] table td {
  border-color: var(--line);
}
html[data-theme="dark"] .compact-score,
html[data-theme="dark"] .final-time,
html[data-theme="dark"] .row-action,
html[data-theme="dark"] .rank-pill,
html[data-theme="dark"] .result-score,
html[data-theme="dark"] .panel-score,
html[data-theme="dark"] .medal-total {
  color: var(--ink);
  background: #162231;
  border-color: #2d3b4a;
}
html[data-theme="dark"] .pagination-page,
html[data-theme="dark"] .pagination-control {
  color: var(--ink);
  background: #0b141d;
  border-color: #2d3b4a;
}
html[data-theme="dark"] .pagination-page:hover,
html[data-theme="dark"] .pagination-control:hover {
  color: #8fdd81;
  border-color: rgba(143, 221, 129, .4);
}
html[data-theme="dark"] .pagination-page.active {
  color: #071018;
  background: #8fdd81;
  border-color: #8fdd81;
}
html[data-theme="dark"] .btn.ghost.light,
html[data-theme="dark"] .provider-button {
  color: var(--ink);
  background: #111d28;
  border-color: var(--line);
}
html[data-theme="dark"] .provider-button.muted,
html[data-theme="dark"] .auth-provider-empty {
  color: var(--muted);
  background: #0b141d;
  border-color: #2d3b4a;
}
html[data-theme="dark"] .google-auth-status,
html[data-theme="dark"] .swal-auth-fields label {
  color: var(--muted);
}
html[data-theme="dark"] .empty-follow .athlete-avatar {
  color: var(--muted);
  background: #162231;
}
html[data-theme="dark"] .section-head a,
html[data-theme="dark"] .stat-card em {
  color: #78bdf7;
}
html[data-theme="dark"] .sport-detail-description,
html[data-theme="dark"] .sport-summary-grid span,
html[data-theme="dark"] .sport-summary-grid small {
  color: #aeb9c4;
}
html[data-theme="dark"] .record-grid.sport-summary-grid div {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  border-bottom-color: rgba(80, 168, 50, .7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .detail-follow-strip {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .sport-summary-grid b {
  color: var(--ink);
}
html[data-theme="dark"] .state-pill,
html[data-theme="dark"] .security-list p,
html[data-theme="dark"] .preference-list label,
html[data-theme="dark"] .info-chip-grid span {
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .state-name-badge {
  color: var(--ink);
  background: transparent;
}
html[data-theme="dark"] .state-code,
html[data-theme="dark"] .state-medal,
html[data-theme="dark"] .top-delegation-medals b {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .result-medal.neutral {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .athlete-result-icon {
  color: #8fc9ff;
  background: rgba(23, 103, 177, .16);
}
html[data-theme="dark"] .athlete-result-side em,
html[data-theme="dark"] .athlete-result-arrow {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .athlete-result-title {
  color: var(--ink);
  background: color-mix(in srgb, var(--result-accent) 18%, #0b141d);
  border-color: color-mix(in srgb, var(--result-accent) 34%, var(--line));
}
html[data-theme="dark"] .game-context-sport,
html[data-theme="dark"] .game-context-item,
html[data-theme="dark"] .game-context-pills {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .26);
}
html[data-theme="dark"] .game-context-pills span,
html[data-theme="dark"] .game-context-item > .bi {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .game-delegation-cell {
  color: var(--ink) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--deleg-color, var(--blue)) 18%, #101923), rgba(16, 25, 35, .94)),
    var(--deleg-flag, none) right center / auto 120% no-repeat;
  border-color: color-mix(in srgb, var(--deleg-color, var(--blue)) 38%, var(--line));
}
html[data-theme="dark"] .roster-group {
  color: var(--ink);
  background:
    linear-gradient(#101923, #101923) padding-box,
    linear-gradient(135deg, var(--deleg-color, var(--blue)), var(--deleg-color-dark, var(--green))) border-box;
  border-color: transparent;
}
html[data-theme="dark"] .roster-group h3 a {
  color: var(--ink);
}
html[data-theme="dark"] .roster-athlete {
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .roster-athlete small {
  color: #9da9b6;
}
html[data-theme="dark"] .athlete-info-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gender-accent) 16%, transparent), transparent 48%),
    #101923;
  border-color: color-mix(in srgb, var(--gender-accent) 36%, var(--line));
}
html[data-theme="dark"] .athlete-info-card p > span {
  color: #f7fbff;
  background: color-mix(in srgb, var(--gender-accent) 25%, #0b141d);
}
html[data-theme="dark"] .athlete-competition-item {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .athlete-competition-item span {
  color: var(--ink);
  background: #162231;
}
html[data-theme="dark"] .athlete-result-card.result-tone-gold {
  --result-soft: #1e1a0d;
}
html[data-theme="dark"] .athlete-result-card.result-tone-silver {
  --result-soft: #171d23;
}
html[data-theme="dark"] .athlete-result-card.result-tone-bronze {
  --result-soft: #21160e;
}
html[data-theme="dark"] .athlete-card::before {
  background: none;
}
html[data-theme="dark"] .athlete-meta-list span,
html[data-theme="dark"] .athlete-card .medal-mini {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .athlete-card .medal-mini strong {
  color: var(--ink);
}
html[data-theme="dark"] .organizers {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .follow a,
html[data-theme="dark"] .follow .social-link {
  background: #162231;
}
html[data-theme="dark"] table,
html[data-theme="dark"] .medal-table,
html[data-theme="dark"] .table-card table,
html[data-theme="dark"] .documents-table table {
  color: var(--ink);
  background: #101923;
}
html[data-theme="dark"] .medal-group-card {
  background: #101923;
}
html[data-theme="dark"] .medal-group-head p,
html[data-theme="dark"] .medal-group-label small,
html[data-theme="dark"] .medal-table-empty {
  color: #9da9b6;
}
html[data-theme="dark"] .medal-group-icon {
  color: #8fc9ff;
  background: rgba(23, 103, 177, .16);
}
html[data-theme="dark"] .history-context-card {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .history-context-card strong {
  color: var(--ink);
}
html[data-theme="dark"] .history-context-card small,
html[data-theme="dark"] .history-context-card p {
  color: #9da9b6;
}
html[data-theme="dark"] .medal-table-full th {
  color: #c7d1dc;
  background: #0b141d;
}
html[data-theme="dark"] .medal-table-full th,
html[data-theme="dark"] .medal-table-full td {
  border-color: var(--line);
}
html[data-theme="dark"] .medal-table-full tbody tr:nth-child(even) {
  background: #0d1721;
}
html[data-theme="dark"] .medal-table-full tfoot td {
  color: var(--ink);
  background: #162231;
  border-color: #2d3b4a;
}
html[data-theme="dark"] .documents-table tr,
html[data-theme="dark"] .athlete-results-table tr {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
}
html[data-theme="dark"] .album-card,
html[data-theme="dark"] .moment-card,
html[data-theme="dark"] .quick-filters a {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .album-card b,
html[data-theme="dark"] .moment-card strong,
html[data-theme="dark"] .quick-filters a {
  color: var(--ink);
}
html[data-theme="dark"] .moment-card .bi,
html[data-theme="dark"] .quick-filters .bi {
  color: #78bdf7;
}
html[data-theme="dark"] .agenda-row,
html[data-theme="dark"] .result-row,
html[data-theme="dark"] .medal-summary,
html[data-theme="dark"] .report-card,
html[data-theme="dark"] .featured-document,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .court-card,
html[data-theme="dark"] .sport-medal-strip a,
html[data-theme="dark"] .info-chip-grid a,
html[data-theme="dark"] .podium-cards a,
html[data-theme="dark"] .leader-grid a,
html[data-theme="dark"] .state-sport-medal-row,
html[data-theme="dark"] .podium-card-item {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .state-medal-bar > i,
html[data-theme="dark"] .state-sport-progress {
  background: #1a2835;
}
html[data-theme="dark"] .state-medal-bar b,
html[data-theme="dark"] .state-sport-medal-row b {
  color: var(--ink);
}
html[data-theme="dark"] .medal-summary-badge {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .tabs button,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .date-carousel span,
html[data-theme="dark"] .sport-date-carousel button {
  color: var(--ink);
  background: #0b141d;
  border-color: #2d3b4a;
}
html[data-theme="dark"] .tabs button.active,
html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .date-carousel .active,
html[data-theme="dark"] .sport-date-carousel button.active {
  color: #f7fbff;
  background: linear-gradient(135deg, #4b9639, #1464ad);
  border-color: transparent;
}
html[data-theme="dark"] .podium-strip a {
  color: var(--ink);
  background: rgba(11, 20, 29, .94);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
}
html[data-theme="dark"] .status-chip {
  background: #121f2b;
  border-color: #2d3b4a;
}
html[data-theme="dark"] .status-chip.badge-live { color: #ff7b85; background: rgba(239, 51, 64, .14); border-color: rgba(239, 51, 64, .28); }
html[data-theme="dark"] .status-chip.badge-success { color: #8bd279; background: rgba(80, 168, 50, .14); border-color: rgba(80, 168, 50, .26); }
html[data-theme="dark"] .status-chip.badge-warning { color: #ffd46f; background: rgba(246, 184, 0, .14); border-color: rgba(246, 184, 0, .28); }
html[data-theme="dark"] .status-chip.badge-muted { color: #bdc6cf; background: rgba(155, 163, 170, .12); border-color: rgba(155, 163, 170, .24); }
html[data-theme="dark"] .status-chip.badge-info { color: #8fc9ff; background: rgba(23, 103, 177, .16); border-color: rgba(23, 103, 177, .32); }
html[data-theme="dark"] .mini-official { color: #8bd279; }
html[data-theme="dark"] .mini-official.badge-warning { color: #ffd46f; }
html[data-theme="dark"] .mini-official.badge-muted { color: #bdc6cf; }
html[data-theme="dark"] .competition-detail-head,
html[data-theme="dark"] .competition-bracket-shell,
html[data-theme="dark"] .competition-result-card,
html[data-theme="dark"] .competition-participant-list > a:not(.competition-participant-card),
html[data-theme="dark"] .competition-participant-list > span:not(.competition-participant-card) {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
}
html[data-theme="dark"] .competition-result-side,
html[data-theme="dark"] .competition-result-score {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .competition-result-side strong,
html[data-theme="dark"] .competition-result-score b {
  color: var(--ink);
}
html[data-theme="dark"] .competition-result-flag {
  color: #8fc9ff;
  background: #101923;
  border-color: var(--line);
}
html[data-theme="dark"] .competition-result-side.tone-gold { background: rgba(244, 180, 0, .15); border-color: rgba(244, 180, 0, .3); }
html[data-theme="dark"] .competition-result-side.tone-silver { background: rgba(141, 153, 164, .14); border-color: rgba(141, 153, 164, .28); }
html[data-theme="dark"] .competition-result-side.tone-bronze { background: rgba(178, 99, 35, .14); border-color: rgba(178, 99, 35, .28); }
html[data-theme="dark"] .competition-result-side.tone-winner { background: rgba(80, 168, 50, .13); border-color: rgba(80, 168, 50, .28); }
html[data-theme="dark"] .competition-result-card-foot b {
  color: #8bd279;
  background: rgba(80, 168, 50, .14);
}
html[data-theme="dark"] .competition-format-pill,
html[data-theme="dark"] .tourney-format {
  color: #8fc9ff;
  background: rgba(23, 103, 177, .16);
  border-color: rgba(23, 103, 177, .32);
}
html[data-theme="dark"] .sport-position-table th {
  color: #b7c3cf;
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .sport-position-table td {
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="dark"] .sport-position-table td.is-entity a {
  color: var(--ink);
}
html[data-theme="dark"] .sport-position-table td.is-entity a:hover {
  color: #8fc9ff;
}
html[data-theme="dark"] .position-entity-flag {
  color: #8fc9ff;
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .position-delegation-badge {
  color: #8fc9ff;
  background: rgba(23, 103, 177, .16);
  border-color: rgba(23, 103, 177, .3);
}
html[data-theme="dark"] .position-entity-copy strong {
  color: var(--ink);
}
html[data-theme="dark"] .position-medal-tag.medal-gold {
  color: #ffd666;
  background: rgba(244, 180, 0, .16);
  border-color: rgba(244, 180, 0, .28);
}
html[data-theme="dark"] .position-medal-tag.medal-silver {
  color: #cbd5df;
  background: rgba(141, 153, 164, .14);
  border-color: rgba(141, 153, 164, .28);
}
html[data-theme="dark"] .position-medal-tag.medal-bronze {
  color: #f0b077;
  background: rgba(178, 99, 35, .14);
  border-color: rgba(178, 99, 35, .28);
}
html[data-theme="dark"] .bracket-result {
  color: #8bd279;
  background: rgba(80, 168, 50, .14);
  border-color: rgba(80, 168, 50, .26);
}
html[data-theme="dark"] .bracket-stage-tabs button,
html[data-theme="dark"] .bracket-actions button,
html[data-theme="dark"] .bracket-round h4,
html[data-theme="dark"] .bracket-side {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .bracket-match {
  color: var(--ink);
  background: #0d1721;
  border-color: var(--line);
}
html[data-theme="dark"] .bracket-match.is-empty {
  background: linear-gradient(90deg, #0b141d, #101923, #0b141d);
}
html[data-theme="dark"] .bracket-side-flag {
  color: #8fc9ff;
  background: #101923;
  border-color: var(--line);
}
html[data-theme="dark"] .bracket-side.is-pending {
  color: #8e9aa6;
  background: #0b141d;
}
html[data-theme="dark"] .competition-bracket-shell.is-expanded {
  background: #101923;
}
html[data-theme="dark"] .roster-athlete {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .roster-athlete .dorsal {
  color: var(--ink);
  background: #162231;
}
html[data-theme="dark"] .linked-athlete-note,
html[data-theme="dark"] .roster-athlete.is-linked-athlete,
html[data-theme="dark"] .game-result-table tr.is-linked-athlete td {
  color: var(--ink);
  background: color-mix(in srgb, var(--linked-color, var(--blue)) 16%, #101923);
}
html[data-theme="dark"] .game-winner-card .is-linked-athlete-row,
html[data-theme="dark"] .is-linked-athlete-link {
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--linked-color, var(--blue)) 18%, #0b141d);
}
html[data-theme="dark"] .roster-athlete.is-linked-athlete .dorsal {
  color: #f7fbff;
  background: var(--linked-color, var(--blue));
}
html[data-theme="dark"] .roster-group .roster-athlete {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}
html[data-theme="dark"] .roster-group .roster-athlete.is-linked-athlete {
  color: var(--ink);
  background: color-mix(in srgb, var(--linked-color, var(--blue)) 16%, #101923);
}
html[data-theme="dark"] .roster-group .roster-athlete .dorsal,
html[data-theme="dark"] .roster-group .roster-athlete strong {
  color: var(--ink);
}
html[data-theme="dark"] .roster-group .roster-athlete .dorsal {
  background: #162231;
}
html[data-theme="dark"] .roster-group .roster-athlete small {
  color: #9da9b6;
}
html[data-theme="dark"] .badge:not(.badge-dark),
html[data-theme="dark"] .doc-type {
  color: #dce7f2;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .follow-action {
  color: #ffd46f;
  background: #162231;
  border-color: #344457;
}
html[data-theme="dark"] .follow-action.active {
  color: #071018;
  background: var(--gold);
  border-color: rgba(241, 180, 0, .5);
}
html[data-theme="dark"] .detail-follow-action {
  color: #111820;
  background: linear-gradient(135deg, #ffedb0, #f1b400);
  border-color: rgba(241, 180, 0, .55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28), 0 0 0 1px rgba(241, 180, 0, .1);
}
html[data-theme="dark"] .detail-follow-action .bi {
  color: #ffd46f;
  background: #111820;
}
html[data-theme="dark"] .detail-follow-action.active {
  color: #071018;
  background: linear-gradient(135deg, var(--gold), #ffe190);
  border-color: rgba(255, 220, 114, .74);
}
html[data-theme="dark"] .medal-summary .medal-progress {
  background: #223143;
}
html[data-theme="dark"] .notice {
  color: #ffe4a3;
  background: rgba(246, 184, 0, .12);
  border-color: rgba(246, 184, 0, .28);
}
.organizers {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 20px clamp(18px, 4vw, 64px);
  background: var(--white);
  border-top: 1px solid var(--line);
}
.organizers strong {
  font-size: 24px;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 950;
}
.org-strip {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
}
.org-strip img {
  max-width: 210px;
  max-height: 48px;
  object-fit: contain;
}
.follow { display: flex; align-items: center; gap: 10px; font-weight: 850; }
.follow a,
.follow .social-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--dark);
  font-size: 14px;
}
.site-footer {
  display: grid;
  grid-template-columns: 210px 1.2fr 1fr 1fr 1.25fr;
  gap: 34px;
  padding: 36px clamp(18px, 4vw, 64px) 44px;
  color: rgba(255,255,255,.78);
  background: linear-gradient(135deg, #111c25, #061019);
}
.footer-brand img {
  width: auto;
  height: 74px;
  max-width: 170px;
  object-fit: contain;
}
.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  font-size: 13px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.site-footer p .bi {
  margin-right: 6px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes heroDrift {
  from { transform: scale(1.02) translateX(0); }
  to { transform: scale(1.06) translateX(-18px); }
}
@keyframes gameHeroGradient {
  from { background-position: center, center, 0% 50%; }
  to { background-position: center, center, 100% 50%; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 51, 64, .45); }
  50% { box-shadow: 0 0 0 8px rgba(239, 51, 64, 0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes barGrow {
  from { width: 0; }
  to { width: var(--value); }
}
@keyframes medalProgress {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes stateNextGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes athleteHeroFlow {
  0% { transform: translateX(0); opacity: .45; }
  100% { transform: translateX(28px); opacity: .68; }
}
@keyframes stateOrbIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.06); }
}
@keyframes stateOrbRing {
  0%, 100% { opacity: .52; transform: scale(.96); }
  50% { opacity: .92; transform: scale(1.04); }
}
@keyframes chartRise {
  from { opacity: .2; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 1360px) and (min-width: 1181px) {
  .site-header { grid-template-columns: 130px 1fr auto; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    padding: 20px;
    background: rgba(4,10,16,.98);
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .main-nav a::after { bottom: 2px; }
  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 7px;
    background: transparent;
  }
  .menu-toggle span { width: 22px; height: 2px; background: var(--white); }
  .header-actions { justify-self: end; }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: 130px 1fr auto; }
  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    padding: 20px;
    background: rgba(4,10,16,.98);
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; }
  .main-nav a::after { bottom: 2px; }
  .menu-toggle {
    display: inline-grid;
    justify-self: end;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 7px;
    background: transparent;
  }
  .menu-toggle span { width: 22px; height: 2px; background: var(--white); }
  .header-actions { justify-self: end; }
  .social-nav { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .athlete-detail-layout, .match-hero, .scoreboard-hero, .featured-document, .auth-page, .profile-hero-panel, .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-panel.wide { grid-column: auto; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .fighter.right, .team-side.right { text-align: left; justify-items: start; }
  .floating-card { position: relative; right: auto; bottom: auto; margin-top: 18px; }
  .profile-portrait {
    position: relative;
    right: auto;
    bottom: auto;
    justify-items: start;
    width: fit-content;
    margin-top: 24px;
  }
  .profile-photo-large {
    width: 150px;
  }
  .profile-summary-card {
    justify-items: start;
    width: fit-content;
  }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hero { min-height: 330px; }
  .hero-content { margin-left: 20px; padding-top: 62px; }
  .hero-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .event-countdown {
    width: min(100%, 360px);
  }
  .profile-portrait {
    justify-items: center;
  }
  .profile-photo-large {
    width: 132px;
  }
  .auth-page {
    padding-top: 36px;
  }
  .auth-visual h1,
  .profile-hero-panel h1 {
    font-size: 42px;
  }
  .profile-hero-panel {
    padding: 38px 18px 28px;
  }
  .stat-grid, .featured-sports, .cards-grid.sports-list, .athlete-grid, .state-grid, .venue-grid, .news-grid, .news-grid.large, .event-grid, .live-grid, .record-grid, .medal-summary, .medal-analytics, .media-grid, .gallery-albums, .moment-grid, .sport-medal-strip, .info-chip-grid, .podium-cards, .leader-grid, .result-time-hero .podium-strip, .split-grid, .compare-card, .game-meta-grid, .game-winners-grid, .roster-grid {
    grid-template-columns: 1fr;
  }
  .tourney-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-bar { grid-template-columns: 1fr; }
  .tabs, .category-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .tabs button,
  .category-row .chip {
    flex: 1 1 140px;
  }
  .tabs .btn {
    margin-left: 0;
  }
  .sport-card { grid-template-columns: 110px 1fr; }
  .agenda-row, .result-row {
    grid-template-columns: auto 1fr;
  }
  .agenda-row > *, .result-row > * { min-width: 0; }
  .agenda-row .status-chip,
  .agenda-row .row-action {
    grid-column: 2;
  }
  .chart-card {
    grid-template-columns: 1fr;
  }
  .donut-chart {
    justify-self: center;
  }
  .documents-table {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .documents-table table,
  .documents-table tbody,
  .documents-table tr,
  .documents-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .documents-table thead {
    display: none;
  }
  .documents-table tr {
    margin-bottom: 12px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(21, 32, 42, .06);
  }
  .documents-table td {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border: 0;
  }
  .documents-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .documents-table td:first-child {
    grid-template-columns: 1fr;
    padding-top: 0;
  }
  .documents-table td:first-child::before {
    display: none;
  }
  .athlete-results-table,
  .athlete-results-table tbody,
  .athlete-results-table tr,
  .athlete-results-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .athlete-results-table tr {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }
  .athlete-results-table td {
    padding: 7px 0;
    border: 0;
  }
  .athlete-results-table td:last-child {
    padding-bottom: 0;
  }
  .organizers, .site-footer { grid-template-columns: 1fr; }
  .org-strip { flex-wrap: wrap; }
  .org-strip img { max-width: 160px; }
}

@media (max-width: 520px) {
  .page-band { padding-left: 12px; padding-right: 12px; }
  .site-header { padding-left: 14px; padding-right: 14px; }
  .profile-name { display: none; }
  .profile-chip, .login-chip { padding-right: 4px; }
  .theme-toggle { width: 34px; min-height: 34px; }
  .hero h1 { font-size: 39px; }
  .stat-grid { grid-template-columns: 1fr; }
  .sport-card { grid-template-columns: 1fr; }
  .sport-media { min-height: 100px; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-matrix, .quick-filters, .venue-strip, .athlete-rail, .tourney-picker { grid-template-columns: 1fr; }
  .auth-card,
  .profile-panel {
    padding: 14px;
  }
  .auth-benefits,
  .profile-actions {
    display: grid;
  }
  .follow-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .follow-card .follow-action {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .sport-final-row {
    grid-template-columns: 1fr;
  }
  .sport-final-row .final-time {
    justify-self: end;
  }
  .bar-chart div {
    grid-template-columns: 1fr 42px;
  }
  .bar-chart span {
    grid-column: 1 / -1;
  }
}

body {
  font-family: var(--font-main);
  font-optical-sizing: auto;
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
.page-title,
.hero-title,
.hero h1,
.detail-hero h1 {
  font-weight: 800;
  letter-spacing: 0;
}
h2,
.section-title,
.section-head h2 {
  font-weight: 750;
  letter-spacing: 0;
}
.card-title,
.stat-value,
.table-total,
.stat-card b,
.state-card > strong,
.medal-table tfoot td,
.compact-row b {
  font-weight: 700;
}
.nav-link,
.main-nav a,
.badge,
.button,
.btn,
.pill,
.status,
.state-pill,
.next-sport-badge,
.next-event-badge,
.state-next-button {
  font-weight: 600;
}

/* Final desktop density overrides. The site uses Inter; this keeps it lighter and less oversized. */
body {
  font-size: 14px;
  line-height: 1.45;
}

.section-head h2,
.panel-card h2,
.result-kicker,
.eyebrow,
.document-kicker,
.tabs button,
.chip,
.btn {
  font-style: normal;
}

.section-head h2,
.panel-card h2 {
  text-transform: none;
}

h1,
.page-title,
.hero-title,
.hero h1,
.detail-hero h1,
.match-hero h1,
.news-detail-hero h1,
.state-detail-hero h1,
.auth-visual h1,
.profile-hero-panel h1 {
  font-weight: 700;
}

h2,
h3,
.section-title,
.section-head h2,
.panel-card h2,
.auth-card h2,
.profile-panel h2,
.sport-detail-intro h2,
.fighter h2,
.team-side h2 {
  font-weight: 650;
}

.main-nav,
.main-nav a,
.profile-chip,
.login-chip,
.btn,
.chip,
.tabs button,
.compact-score,
.stat-card small,
.stat-card em,
.athlete-meta-list span,
.state-pill,
.quick-filters button,
.quick-filters a,
.section-head a,
.provider-button,
.follow-card small {
  font-weight: 560;
}

.stat-card b,
.compact-row b,
.athlete-card .medal-mini strong,
.medal-total,
.rank-pill,
.state-card > strong,
.record-grid b,
.metric-matrix b,
.summary-list strong,
.dark-card strong {
  font-weight: 650;
}

.site-header {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 62px;
  padding: 7px clamp(18px, 4vw, 56px);
}

.brand img {
  height: 48px;
  max-width: 112px;
}

.main-nav {
  gap: clamp(8px, 1vw, 18px);
  font-size: 12px;
}

.main-nav a {
  gap: 6px;
  padding: 22px 0;
}

.main-nav a::after {
  bottom: 13px;
  height: 2px;
}

.theme-toggle,
.profile-chip,
.login-chip {
  min-height: 34px;
}

.theme-toggle {
  width: 34px;
}

.profile-chip,
.login-chip {
  gap: 8px;
  padding: 3px 9px 3px 3px;
  font-size: 12px;
}

.profile-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
}

.page-band {
  padding: 20px clamp(18px, 4vw, 56px) 34px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.cards-grid,
.featured-sports,
.state-grid,
.venue-grid,
.news-grid,
.event-grid,
.live-grid {
  gap: 14px;
}

.section-head {
  margin: 18px 0 12px;
}

.section-head h2 {
  font-size: 21px;
  line-height: 1.05;
}

.section-head a {
  font-size: 12px;
}

.category-row,
.tabs,
.date-carousel,
.live-ribbon {
  gap: 10px;
  padding: 10px;
  margin: 12px 0;
}

.chip,
.tabs button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
}

.btn {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 560;
}

.sport-card,
.athlete-card,
.state-card,
.venue-card,
.venue-info-card,
.news-card,
.event-card,
.download-card,
.table-card,
.detail-shell,
.panel-card,
.info-card {
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.sport-body h3,
.athlete-card h3,
.state-card h3,
.venue-card h3,
.news-card h3,
.event-card h3 {
  font-size: 18px;
  line-height: 1.14;
}

.athlete-card-banner {
  min-height: 112px;
}

.athlete-card-banner .athlete-photo {
  left: 16px;
  bottom: 14px;
}

.athlete-card .athlete-photo {
  width: 66px;
  height: 66px;
  border-width: 3px;
}

.athlete-card h3 {
  margin: 14px 16px 0;
  font-size: 18px;
}

.athlete-meta-list {
  gap: 7px;
  margin: 12px 16px 0;
  padding-top: 10px;
}

.athlete-meta-list span {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 12px;
}

.athlete-card .medal-mini-row {
  gap: 7px;
  margin: 12px 16px 16px;
}

.athlete-card .medal-mini {
  min-height: 38px;
  padding: 7px;
}

.athlete-card .medal-mini .bi {
  font-size: 15px;
}

.athlete-card .medal-mini strong {
  font-size: 17px;
}

.favorite,
.follow-action {
  width: 30px;
  height: 30px;
}

.favorite {
  top: 10px;
  right: 10px;
}

.compact-row {
  min-height: 58px;
  padding: 10px;
}

.compact-score {
  min-height: 26px;
  min-width: 46px;
  padding: 0 8px;
  font-size: 12px;
}

.dot {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.stat-card {
  min-height: 78px;
  gap: 14px;
  padding: 14px;
}

.stat-icon {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
  font-size: 21px;
}

.stat-card b {
  font-size: 24px;
}

.stat-card small,
.stat-card em {
  font-size: 11px;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .site-header {
    grid-template-columns: 112px minmax(0, 1fr) auto;
    padding-left: 42px;
    padding-right: 42px;
  }

  .brand img {
    height: 44px;
    max-width: 96px;
  }

  .main-nav {
    gap: 13px;
    font-size: 11.5px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
  }

  .page-band {
    padding-left: 42px;
    padding-right: 42px;
  }

  .athlete-grid,
  .state-grid {
    gap: 14px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .sport-body h3,
  .athlete-card h3,
  .state-card h3,
  .venue-card h3,
  .news-card h3,
  .event-card h3 {
    font-size: 17px;
  }
}

/* Sports page final overrides: keep at EOF after shared desktop compaction rules. */
.sports-page [hidden] {
  display: none !important;
}

.dashboard-grid.sports-dashboard {
  display: block;
  width: 100%;
}

.sports-dashboard .main-column {
  width: 100%;
  max-width: none;
}

.sports-page .cards-grid.sports-list {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  width: 100%;
}

.sports-page .sport-card {
  grid-template-columns: 78px minmax(0, 1fr);
}

.sports-page .sport-media {
  min-height: 108px;
}

@media (max-width: 1500px) {
  .sports-page .cards-grid.sports-list {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  }
}

@media (max-width: 1180px) {
  .sports-page .cards-grid.sports-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  .sports-page .cards-grid.sports-list {
    grid-template-columns: 1fr;
  }
}

.hero.sport-hero {
  min-height: 290px;
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .92), rgba(5, 11, 16, .52)),
    linear-gradient(120deg, var(--sport-hero-a, var(--green)), var(--sport-hero-b, var(--blue)), var(--sport-hero-a, var(--green)));
  background-size: 100% 100%, 240% 240%;
  animation: sportHeroGradient 28s ease-in-out infinite;
}

.hero.sport-hero .hero-bg {
  background: linear-gradient(90deg, rgba(5, 11, 16, .7), transparent 62%);
  opacity: .32;
}

.hero-sport-mark {
  position: absolute;
  right: clamp(44px, 8vw, 140px);
  top: 50%;
  z-index: 2;
  width: clamp(105px, 13vw, 180px);
  height: clamp(105px, 13vw, 180px);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .24);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 30px;
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
  transform: translateY(-50%);
}

.hero-sport-mark::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
}

.hero-sport-mark .bi {
  font-size: clamp(54px, 7vw, 96px);
  line-height: 1;
}

@keyframes sportHeroGradient {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
}

.sport-summary-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.sport-overview-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sport-color, var(--green)) 9%, transparent), transparent 42%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 32, 42, .055);
}

.sport-overview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.sport-overview-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--sport-color, var(--green)), var(--sport-color-dark, var(--blue)));
  border-radius: 8px;
  font-size: 28px;
}

.sport-overview-head small,
.sport-medal-share small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.sport-overview-head h2 {
  margin: 2px 0 4px;
  font-size: 25px;
  line-height: 1;
}

.sport-overview-head p {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

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

.sport-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-fact > .bi {
  grid-row: span 2;
  color: var(--blue);
  font-size: 21px;
}

.sport-fact small,
.sport-fact em,
.sport-fact b {
  display: block;
}

.sport-fact small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.sport-fact strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.sport-fact em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-fact b {
  grid-column: 2;
  width: fit-content;
  min-height: 22px;
  padding: 3px 8px;
  color: var(--blue);
  background: rgba(20, 100, 173, .1);
  border-radius: 999px;
  font-size: 11px;
}

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

.sport-chart-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 285px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-chart-card h3 {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.sport-pie-chart,
.sport-coverage-chart {
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
}

.sport-pie-chart {
  background:
    radial-gradient(circle, var(--white) 0 48%, transparent 49%),
    conic-gradient(#4c91dc 0 var(--male-end), #e84d7c var(--male-end) var(--female-end), #aeb7c1 var(--female-end) 100%);
}

.sport-coverage-chart {
  background:
    radial-gradient(circle, var(--white) 0 48%, transparent 49%),
    conic-gradient(#69bd6b 0 var(--game-end), #70b7ef var(--game-end) var(--delegation-end), #f0c82a var(--delegation-end) var(--inscription-end), #417d45 var(--inscription-end) var(--judge-end), #09005c var(--judge-end) var(--medal-end), #e8edf2 var(--medal-end) 100%);
}

.sport-pie-chart strong,
.sport-coverage-chart strong {
  font-size: 25px;
  line-height: 1;
}

.sport-pie-chart span,
.sport-coverage-chart span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sport-chart-legend,
.sport-coverage-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sport-chart-legend span,
.sport-coverage-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--blue);
}

.legend-dot.male { background: #4c91dc; }
.legend-dot.female { background: #e84d7c; }
.legend-dot.games { background: #69bd6b; }
.legend-dot.delegations { background: #70b7ef; }
.legend-dot.inscriptions { background: #f0c82a; }
.legend-dot.judges { background: #417d45; }
.legend-dot.medals { background: #09005c; }

.sport-gender-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.sport-gender-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.sport-gender-card .bi {
  grid-row: span 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
}

.sport-gender-card b {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.sport-gender-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.sport-gender-card em {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.sport-gender-card.male {
  background: rgba(76, 145, 220, .12);
  border-color: rgba(76, 145, 220, .26);
}

.sport-gender-card.male .bi {
  background: #4c91dc;
}

.sport-gender-card.female {
  background: rgba(232, 77, 124, .12);
  border-color: rgba(232, 77, 124, .28);
}

.sport-gender-card.female .bi {
  background: #e84d7c;
}

.sport-medal-share {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  background: linear-gradient(135deg, rgba(241, 180, 0, .1), rgba(20, 100, 173, .08));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-medal-share strong {
  display: block;
  margin: 4px 0;
  font-size: 34px;
  line-height: 1;
}

.sport-medal-share span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.sport-medal-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sport-medal-bars span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 10px;
  color: #071018;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
}

.sport-medal-bars span.gold {
  background: linear-gradient(135deg, #f7c948, #c98500);
}

.sport-medal-bars span.silver {
  background: linear-gradient(135deg, #f0f3f6, #9aa5ad);
}

.sport-medal-bars span.bronze {
  color: var(--white);
  background: linear-gradient(135deg, #d18a43, #8a4617);
}

.sport-medal-bars .bi {
  grid-row: span 2;
  color: currentColor;
  font-size: 21px;
}

.sport-medal-bars b {
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}

.sport-medal-bars em {
  color: currentColor;
  opacity: .78;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sport-next-list,
.featured-athlete-list {
  display: grid;
  gap: 10px;
}

.sport-next-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.sport-next-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-radius: 8px;
}

.sport-next-card strong,
.sport-next-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-next-card strong {
  font-size: 14px;
}

.sport-next-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sport-next-card small .bi {
  margin-right: 5px;
  color: var(--blue);
}

.sport-next-card time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px;
  background: #f1f4f7;
  border: 1px solid #e0e6eb;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.athlete-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 86px;
  padding: 10px;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--athlete-color, var(--green)) 14%, transparent), transparent 58%),
    var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.athlete-feature-photo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--athlete-color-dark, var(--blue)), var(--athlete-color, var(--green)));
  border: 3px solid color-mix(in srgb, var(--athlete-color, var(--green)) 55%, var(--white));
  border-radius: 50%;
}

.athlete-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-feature-main {
  min-width: 0;
}

.athlete-feature-main strong,
.athlete-feature-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-feature-main strong {
  font-size: 14px;
}

.athlete-feature-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.athlete-feature-main small .bi {
  margin-right: 5px;
  color: var(--blue);
}

.athlete-feature-card > .bi {
  color: var(--blue);
}

html[data-theme="dark"] .sport-overview-panel,
html[data-theme="dark"] .sport-chart-card,
html[data-theme="dark"] .sport-fact,
html[data-theme="dark"] .sport-medal-share,
html[data-theme="dark"] .sport-next-card,
html[data-theme="dark"] .athlete-feature-card {
  color: var(--ink);
  background-color: #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .sport-next-card time {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}

html[data-theme="dark"] .sport-gender-card b,
html[data-theme="dark"] .sport-gender-card em {
  color: var(--ink);
}

html[data-theme="dark"] .sport-pie-chart,
html[data-theme="dark"] .sport-coverage-chart {
  background:
    radial-gradient(circle, #101923 0 48%, transparent 49%),
    conic-gradient(#4c91dc 0 var(--male-end, var(--game-end)), #e84d7c var(--male-end, var(--game-end)) var(--female-end, var(--delegation-end)), #aeb7c1 var(--female-end, var(--delegation-end)) 100%);
}

html[data-theme="dark"] .sport-coverage-chart {
  background:
    radial-gradient(circle, #101923 0 48%, transparent 49%),
    conic-gradient(#69bd6b 0 var(--game-end), #70b7ef var(--game-end) var(--delegation-end), #f0c82a var(--delegation-end) var(--inscription-end), #417d45 var(--inscription-end) var(--judge-end), #09005c var(--judge-end) var(--medal-end), #273544 var(--medal-end) 100%);
}

@media (max-width: 1500px) {
  .sport-summary-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
  }

  .sport-fact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sport-chart-grid {
    grid-template-columns: 1fr;
  }
}

.sport-result-card-list {
  display: grid;
  gap: 12px;
}

.sport-result-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr) auto;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(21, 32, 42, .055);
}

.sport-result-preview-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sport-result-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sport-result-date .bi {
  color: var(--blue);
}

.sport-result-preview-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.sport-result-preview-main h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.12;
}

.sport-result-preview-main small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-result-preview-main small .bi {
  margin-right: 5px;
  color: var(--blue);
}

.sport-result-highlight {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sport-result-highlight > span {
  min-width: 0;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-result-highlight small,
.sport-result-highlight em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sport-result-highlight small .bi {
  margin-right: 5px;
  color: var(--blue);
}

.sport-result-highlight strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-result-highlight em {
  margin-top: 3px;
  color: var(--blue);
}

.sport-result-participants {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sport-result-person,
.sport-result-more {
  min-width: 0;
  padding: 9px;
  color: var(--ink);
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-result-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
}

.sport-result-person strong,
.sport-result-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-result-person strong {
  font-size: 12px;
}

.sport-result-person small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.sport-result-person b {
  color: var(--ink);
  font-size: 14px;
}

.sport-result-person em {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  min-height: 22px;
  padding: 2px 7px;
  color: var(--muted);
  background: rgba(108, 119, 130, .1);
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.sport-result-gold {
  background: rgba(241, 180, 0, .16);
  border-color: rgba(241, 180, 0, .36);
}

.sport-result-gold em,
.sport-result-gold .bi {
  color: #b47b00;
}

.sport-result-silver {
  background: rgba(151, 163, 174, .16);
  border-color: rgba(151, 163, 174, .36);
}

.sport-result-silver em,
.sport-result-silver .bi {
  color: #6f7a83;
}

.sport-result-bronze {
  background: rgba(177, 96, 31, .16);
  border-color: rgba(177, 96, 31, .34);
}

.sport-result-bronze em,
.sport-result-bronze .bi {
  color: #9b561e;
}

.sport-result-winner {
  background: rgba(62, 151, 49, .13);
  border-color: rgba(62, 151, 49, .32);
}

.sport-result-winner em {
  color: var(--green);
}

.sport-result-more {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.sport-result-detail {
  grid-column: 3;
  grid-row: 2 / 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 46px;
  padding: 0 12px;
  color: var(--blue);
  background: rgba(20, 100, 173, .08);
  border: 1px solid rgba(20, 100, 173, .16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.sport-result-detail .bi {
  transform: rotate(90deg);
}

html[data-theme="dark"] .sport-result-preview,
html[data-theme="dark"] .sport-result-highlight > span,
html[data-theme="dark"] .sport-result-person,
html[data-theme="dark"] .sport-result-more {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .sport-result-highlight > span,
html[data-theme="dark"] .sport-result-person {
  background: #0b141d;
}

@media (max-width: 1500px) {
  .sport-result-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .sport-result-participants,
  .sport-result-detail {
    grid-column: 1;
  }

  .sport-result-detail {
    grid-row: auto;
    min-height: 38px;
    writing-mode: horizontal-tb;
  }

  .sport-result-detail .bi {
    transform: none;
  }

  .sport-result-participants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sport-result-preview {
  grid-template-columns: minmax(0, 1fr) minmax(150px, .32fr) minmax(180px, .4fr) 42px;
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
}

.sport-result-preview-main h3 {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 850;
}

.sport-result-preview-main small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 2px;
  white-space: normal;
}

.sport-result-preview-main small span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.sport-result-score,
.sport-result-gold-summary,
.sport-result-winner-summary {
  min-width: 0;
  padding: 9px 10px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sport-result-score small,
.sport-result-gold-summary span,
.sport-result-winner-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.sport-result-score strong,
.sport-result-gold-summary strong,
.sport-result-winner-summary strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-result-gold-summary {
  color: #8a6100;
  background: rgba(241, 180, 0, .14);
  border-color: rgba(241, 180, 0, .34);
}

.sport-result-gold-summary span,
.sport-result-gold-summary .bi {
  color: #a56f00;
}

.sport-result-winner-summary span {
  color: var(--green);
}

.sport-result-detail {
  grid-column: auto;
  grid-row: auto;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  writing-mode: horizontal-tb;
}

.sport-result-detail span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sport-result-detail .bi {
  transform: none;
}

html[data-theme="dark"] .sport-result-score,
html[data-theme="dark"] .sport-result-winner-summary {
  background: #0b141d;
  border-color: var(--line);
}

html[data-theme="dark"] .sport-result-gold-summary {
  background: rgba(241, 180, 0, .18);
  border-color: rgba(241, 180, 0, .38);
}

.hero.calendar-hero {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .9), rgba(5, 11, 16, .48)),
    linear-gradient(120deg, var(--blue), var(--green), var(--gold), var(--blue));
  background-size: 100% 100%, 260% 260%;
  animation: sportHeroGradient 30s ease-in-out infinite;
}

.hero.calendar-hero .hero-bg {
  background:
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(90deg, rgba(5, 11, 16, .5), transparent 62%);
  opacity: .5;
}

.calendar-page {
  position: relative;
}

.calendar-page.is-loading {
  cursor: progress;
}

.calendar-page.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(244, 246, 248, .66);
  backdrop-filter: blur(1.5px);
}

.calendar-page.is-loading::after {
  content: "Actualizando calendario...";
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(20, 100, 173, .22);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  animation: pulse 1.1s ease-in-out infinite;
}

.calendar-page.is-loading .calendar-filter-panel,
.calendar-page.is-loading .calendar-download-row,
.calendar-page.is-loading .calendar-date-strip,
.calendar-page.is-loading .calendar-dashboard {
  opacity: .42;
  filter: saturate(.55);
}

.calendar-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  margin: 18px 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 42, .045);
}

.calendar-filter-panel label {
  min-width: 0;
}

.calendar-filter-panel label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.calendar-filter-panel input,
.calendar-filter-panel select {
  width: 100%;
  height: 40px;
  border: 1px solid #ccd6df;
  border-radius: 7px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.calendar-search-field {
  position: relative;
}

.calendar-search-field .bi {
  position: absolute;
  left: 11px;
  bottom: 11px;
  color: var(--blue);
}

.calendar-search-field input {
  padding-left: 34px;
}

.calendar-clear-btn {
  min-height: 40px;
  white-space: nowrap;
}

.calendar-download-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, .95fr);
  gap: 10px;
  margin-bottom: 14px;
}

.calendar-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--green), var(--blue), var(--gold), var(--red), var(--green));
  background-size: 280% 280%;
  box-shadow: 0 12px 26px rgba(20, 100, 173, .16);
  font-size: 12.5px;
  font-weight: 850;
  animation: stateNextGradient 9s ease infinite;
}

.calendar-download-btn.alt {
  animation-duration: 12s;
}

.calendar-download-btn.filters {
  animation-duration: 15s;
}

.calendar-download-btn.social {
  min-height: 48px;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .22);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .24), transparent 26%),
    linear-gradient(120deg, #ff3045, #b31325 46%, #ef3340 100%);
  background-size: 180% 180%;
  box-shadow: 0 16px 34px rgba(239, 51, 64, .28);
  animation-duration: 7s;
}

.calendar-download-btn.social::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .22) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: calendarSocialShine 5.5s ease-in-out infinite;
}

.calendar-download-btn.social i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  color: #ef3340;
  background: rgba(255, 255, 255, .92);
}

@keyframes calendarSocialShine {
  0%, 54% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

.calendar-date-strip {
  padding: 10px;
  gap: 8px;
  scrollbar-width: none;
}

.calendar-date-strip::-webkit-scrollbar {
  display: none;
}

.calendar-date-strip button {
  min-width: 92px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--ink);
  border: 1px solid #bfd0df;
  border-radius: 7px;
  background: var(--white);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
  white-space: nowrap;
}

.calendar-date-strip button small {
  color: inherit;
  font-size: 10px;
  font-weight: 720;
}

.calendar-date-strip button.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  border-color: transparent;
}

.calendar-dashboard {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.calendar-section-head {
  align-items: center;
}

.calendar-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

.calendar-agenda {
  gap: 10px;
}

.calendar-agenda-row {
  display: grid;
  grid-template-columns: 86px 42px minmax(0, 1.35fr) minmax(160px, .9fr) auto 34px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 42, .045);
  transition: transform .2s ease, border-color .2s ease;
}

.calendar-agenda-row:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 143, 58, .34);
}

.calendar-agenda-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f7fa;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.calendar-agenda-time .bi {
  color: var(--blue);
}

.calendar-agenda-sport {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(31, 103, 191, .1);
}

.calendar-agenda-sport img {
  width: 24px;
  height: 24px;
}

.calendar-agenda-main,
.calendar-agenda-place {
  min-width: 0;
}

.calendar-agenda-main strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-agenda-main p,
.calendar-agenda-place span,
.calendar-agenda-place small {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-agenda-place {
  display: grid;
  gap: 5px;
}

.calendar-agenda-place .bi,
.calendar-agenda-main .bi {
  color: var(--blue);
}

.calendar-summary-list {
  gap: 8px;
}

.calendar-summary-list > div {
  grid-template-columns: 38px 1fr;
  gap: 9px 10px;
  padding: 10px;
}

.calendar-summary-list .stat-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  font-size: 16px;
}

.calendar-summary-list strong {
  font-size: 20px;
  line-height: 1;
}

.calendar-summary-list small {
  font-size: 11px;
  font-weight: 720;
}

.calendar-finals-list .final-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.compact-empty {
  padding: 18px;
  text-align: left;
}

.compact-empty strong {
  display: block;
  margin-top: 8px;
}

.compact-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

html[data-theme="dark"] .calendar-filter-panel,
html[data-theme="dark"] .calendar-agenda-row,
html[data-theme="dark"] .calendar-date-strip,
html[data-theme="dark"] .compact-empty {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .calendar-agenda-time,
html[data-theme="dark"] .calendar-date-strip button {
  color: var(--ink);
  background: #0b141d;
  border-color: #2d3b4a;
}

html[data-theme="dark"] .calendar-date-strip button.active {
  color: #f7fbff;
  background: linear-gradient(135deg, #4b9639, #1464ad);
  border-color: transparent;
}

@media (max-width: 1500px) {
  .calendar-filter-panel {
    grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(130px, 1fr)) auto;
  }

  .calendar-filter-panel label:nth-of-type(4),
  .calendar-filter-panel label:nth-of-type(5) {
    grid-column: span 1;
  }

  .calendar-dashboard {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
  }

  .calendar-agenda-row {
    grid-template-columns: 78px 38px minmax(0, 1.25fr) minmax(140px, .8fr) auto 34px;
    gap: 10px;
  }
}

@media (max-width: 1500px) {
  .sport-result-preview {
    grid-template-columns: minmax(0, 1fr) minmax(140px, .34fr) 42px;
  }

  .sport-result-gold-summary,
  .sport-result-winner-summary {
    grid-column: 1 / 3;
  }

  .sport-result-detail {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

.sport-pictogram {
  display: inline-grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

.sport-pictogram img {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.sport-pictogram-dark {
  display: none !important;
}

html[data-theme="dark"] .sport-pictogram.has-image .sport-pictogram-light {
  display: none !important;
}

html[data-theme="dark"] .sport-pictogram.has-image .sport-pictogram-dark {
  display: block !important;
}

.sport-pictogram.is-fallback .bi {
  line-height: 1;
}

.dot.sport-pictogram img,
.inline-sport-pictogram img,
.athlete-card-sport-pictogram img {
  width: 18px;
  height: 18px;
}

.inline-sport-pictogram,
.athlete-card-sport-pictogram {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: -3px;
}

.sport-card-pictogram {
  width: 100%;
  height: 100%;
}

.sport-card-pictogram img {
  width: 46px;
  height: 46px;
}

.hero-sport-pictogram {
  width: 100%;
  height: 100%;
}

.hero-sport-pictogram img {
  width: 68%;
  height: 68%;
  opacity: .28;
}

.sport-overview-icon.sport-pictogram img,
.game-context-sport-pictogram img,
.medal-group-icon.sport-pictogram img,
.athlete-result-icon.sport-pictogram img {
  width: 62%;
  height: 62%;
}

.game-context-sport-pictogram {
  width: 44px;
  height: 44px;
}

/* Home page polish */
.hero.home-hero {
  min-height: 330px;
}

.hero.home-hero .hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .98) 0%, rgba(5, 11, 16, .86) 42%, rgba(5, 11, 16, .46) 73%, rgba(5, 11, 16, .9) 100%),
    linear-gradient(180deg, rgba(5, 11, 16, .3), rgba(5, 11, 16, .86)),
    var(--hero-bg-image, url("/img/hero/jdn-hero.png")) center right / cover no-repeat;
  filter: saturate(.9) contrast(.95);
}

.hero.home-hero .hero-content {
  width: min(1280px, calc(100% - var(--hero-side) - 40px));
  padding: 76px 0 60px;
}

.hero.home-hero .hero-title-row {
  align-items: flex-end;
}

.hero.home-hero h1 {
  max-width: 650px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.03;
}

.hero.home-hero p {
  max-width: 570px;
  font-size: clamp(15px, 1.2vw, 18px);
}

.home-page-band {
  padding-top: 22px;
}

.home-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.home-stat-grid .stat-card {
  min-height: 76px;
  padding: 13px;
}

.home-stat-grid .stat-icon {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  font-size: 19px;
}

.home-stat-grid .stat-card b {
  font-size: 21px;
}

.home-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.home-empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 22px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.home-empty-state .bi {
  color: var(--blue);
  font-size: 24px;
}

.home-empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.home-featured-sports {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.home-sport-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .055);
}

.home-sport-card.tone-blue { border-left-color: var(--blue); }
.home-sport-card.tone-gold { border-left-color: var(--gold); }
.home-sport-card.tone-red { border-left-color: var(--red); }

.home-sport-pictogram {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.home-sport-pictogram img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.home-sport-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-sport-copy small,
.home-sport-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.home-sport-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-sport-card > .bi {
  color: var(--blue);
  font-size: 22px;
}

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

.home-news-card {
  display: grid;
  grid-template-columns: minmax(140px, 38%) minmax(0, 1fr);
  grid-template-areas:
    "media meta"
    "media title"
    "media lead"
    "media action";
  gap: 10px 14px;
  min-height: 190px;
  padding: 12px;
  color: var(--white);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, .08), rgba(7, 16, 24, .9)),
    linear-gradient(135deg, var(--blue), var(--charcoal) 56%, var(--red));
}

.home-news-card:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.home-news-media {
  position: relative;
  grid-area: media;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 185, 0, .28), rgba(19, 105, 183, .35)),
    linear-gradient(135deg, #102233, #071018);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
}

.home-news-media img {
  width: 100%;
  height: 100%;
  min-height: 166px;
  object-fit: cover;
  display: block;
}

.home-news-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 16, 24, 0), rgba(7, 16, 24, .32));
}

.home-news-media span {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 166px;
  color: rgba(255, 255, 255, .82);
  font-size: 38px;
  place-items: center;
}

.home-news-card .news-meta {
  grid-area: meta;
  align-self: start;
}

.home-news-card h3 {
  grid-area: title;
  font-size: 18px;
  line-height: 1.15;
}

.home-news-card p {
  grid-area: lead;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-news-card .badge-link {
  grid-area: action;
  align-self: end;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.home-summary-panel {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 32, 42, .06);
}

.home-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-summary-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.home-summary-card > .bi {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #eaf4ff;
  border-radius: 9px;
}

.home-summary-card small,
.home-summary-card em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.home-summary-card strong {
  display: block;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.05;
}

.home-summary-visuals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-summary-meter {
  --summary-bar: var(--summary-ring, 0%);
  --summary-color: var(--blue);
  min-height: 174px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--summary-color) 10%, transparent), transparent 58%),
    #f7fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--summary-color);
  border-radius: 8px;
}

.home-summary-meter-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--summary-color);
  border-radius: 10px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--summary-color) 22%, transparent);
}

.home-summary-meter-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.home-summary-meter-copy small,
.home-summary-meter-copy em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.home-summary-meter-copy strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.home-summary-meter-copy > i {
  position: relative;
  height: 8px;
  overflow: hidden;
  background: #e4ebf1;
  border-radius: 999px;
}

.home-summary-meter-copy > i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--summary-bar);
  background: var(--summary-color);
  border-radius: inherit;
}

.home-summary-bars {
  min-height: 174px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.home-summary-bars h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 14px;
}

.home-summary-bar {
  --summary-bar: 0%;
  --summary-color: var(--blue);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.home-summary-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
}

.home-summary-bar span .bi {
  color: var(--summary-color);
}

.home-summary-bar b {
  font-size: 13px;
}

.home-summary-bar em {
  color: var(--muted);
  font-style: normal;
}

.home-summary-bar > i:last-child {
  grid-column: 1 / -1;
  position: relative;
  height: 7px;
  overflow: hidden;
  background: #e4ebf1;
  border-radius: 999px;
}

.home-summary-bar > i:last-child::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--summary-bar);
  background: var(--summary-color);
  border-radius: inherit;
}

.home-results-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.home-results-strip::-webkit-scrollbar {
  display: none;
}

.home-result-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .055);
}

.home-result-chip strong,
.home-result-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-result-chip strong {
  font-size: 13px;
}

.home-result-chip small {
  color: var(--muted);
  font-size: 11px;
}

.home-result-chip b {
  max-width: 145px;
  overflow: hidden;
  padding: 5px 8px;
  color: var(--blue);
  background: #edf6ff;
  border-radius: 6px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-result-chip > .bi {
  color: var(--blue);
  font-size: 20px;
}

html[data-theme="dark"] .home-empty-state,
html[data-theme="dark"] .home-sport-card,
html[data-theme="dark"] .home-summary-panel,
html[data-theme="dark"] .home-summary-card,
html[data-theme="dark"] .home-summary-meter,
html[data-theme="dark"] .home-summary-bars,
html[data-theme="dark"] .home-result-chip {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .home-summary-card,
html[data-theme="dark"] .home-summary-meter,
html[data-theme="dark"] .home-summary-bars {
  background: #0b141d;
}

html[data-theme="dark"] .home-summary-meter-copy > i,
html[data-theme="dark"] .home-summary-bar > i:last-child {
  background: #273544;
}

html[data-theme="dark"] .home-result-chip b {
  color: #8fc8ff;
  background: rgba(20, 100, 173, .18);
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .home-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .home-summary-cards,
  .home-summary-visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .home-dashboard-grid,
  .home-summary-cards,
  .home-summary-visuals,
  .home-news-grid {
    grid-template-columns: 1fr;
  }
}

/* Venues page */
.venues-page .venues-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.venue-search-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0 22px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.venue-search-bar label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.venue-search-bar input {
  width: 100%;
  height: 42px;
  border: 1px solid #ccd6df;
  border-radius: 7px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
}

.venue-download-btn {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 0 15px;
  color: var(--white);
  background: linear-gradient(110deg, #0e5599, #1a7bd5, #0e5599);
  background-size: 220% 220%;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(20, 100, 173, .18);
  animation: animatedGradient 8s ease-in-out infinite alternate;
}

.venue-download-btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.venues-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.venue-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.venue-card-pro {
  display: grid;
  overflow: hidden;
  min-height: 100%;
}

.venue-card-pro h3,
.venue-card-pro p,
.venue-card-pro small,
.venue-card-pro b,
.venue-card-pro .venue-next-link {
  margin-left: 0;
  margin-right: 0;
}

.venue-card-media {
  position: relative;
  min-height: 128px;
  display: block;
  background:
    linear-gradient(135deg, rgba(7, 16, 24, .15), rgba(7, 16, 24, .72)),
    var(--venue-image, linear-gradient(135deg, var(--green), var(--blue))) center / cover no-repeat;
}

.venue-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(255,255,255,.34), transparent 20%),
    linear-gradient(135deg, transparent, rgba(7,16,24,.22));
}

.venue-card-media.tone-blue { --venue-fallback: linear-gradient(135deg, var(--blue), #0a2b4b); }
.venue-card-media.tone-gold { --venue-fallback: linear-gradient(135deg, var(--gold), var(--red)); }
.venue-card-media.tone-red { --venue-fallback: linear-gradient(135deg, var(--red), #27141a); }

.venue-card-media:not([style]) {
  background:
    linear-gradient(135deg, rgba(7, 16, 24, .16), rgba(7, 16, 24, .76)),
    var(--venue-fallback, linear-gradient(135deg, var(--green), var(--blue)));
}

.venue-card-map-pin {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(7, 16, 24, .62);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}

.venue-card-pro .venue-card-status {
  top: 12px;
  left: 12px;
  z-index: 3;
}

.venue-card-body {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.venue-card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.venue-card-title h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.12;
}

.venue-card-title h3 a {
  color: var(--ink);
}

.venue-card-title span {
  max-width: 92px;
  overflow: hidden;
  padding: 4px 7px;
  color: var(--blue);
  background: #edf6ff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-card-address {
  display: flex;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.venue-card-address .bi {
  flex: none;
  color: var(--blue);
}

.venue-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.venue-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  color: var(--muted);
  background: #f3f6f9;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.venue-card-meta .bi {
  color: var(--blue);
}

.venue-card-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--ink);
  background: linear-gradient(110deg, rgba(20,100,173,.09), rgba(62,151,49,.08));
  border: 1px solid rgba(20,100,173,.12);
  border-radius: 8px;
}

.venue-card-next small,
.venue-card-next strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-card-next small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.venue-card-next strong {
  margin-top: 2px;
  font-size: 12px;
}

.venue-card-next b {
  padding: 5px 7px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(20,100,173,.14);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.venue-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.venue-card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--blue);
  background: #edf6ff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.venue-map-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 32, 42, .06);
}

.venue-map {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(20,100,173,.12), rgba(62,151,49,.12)),
    #eef3f7;
}

.venue-map-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  text-align: center;
}

.venue-map-empty strong {
  color: var(--ink);
}

.venue-map .leaflet-popup-content-wrapper,
.venue-map .leaflet-popup-tip {
  border-radius: 8px;
}

.venue-map-popup {
  display: grid;
  gap: 4px;
  min-width: 170px;
  color: #111820;
}

.venue-map-popup strong {
  font-size: 13px;
}

.venue-map-popup small {
  color: #66717c;
}

.venue-map-popup a {
  color: #1464ad;
  font-weight: 750;
}

.venue-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
}

.venue-map-footer span,
.venue-map-footer small,
.venue-map-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.venue-map-footer a {
  color: var(--blue);
}

.venue-map-footer .bi {
  color: var(--blue);
}

.venue-detail-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(5, 11, 16, .96) 0%, rgba(5, 11, 16, .76) 46%, rgba(5, 11, 16, .38) 100%),
    var(--venue-hero-image, none) center / cover no-repeat,
    linear-gradient(115deg, #071018, #12395e, #1f6c38);
}

.venue-detail-hero.no-image {
  background:
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, .16), transparent 24%),
    linear-gradient(115deg, #071018, #12395e, #1f6c38, #071018);
  background-size: 100% 100%, 240% 240%;
  animation: animatedGradient 16s ease-in-out infinite alternate;
}

.venue-detail-hero h1 {
  max-width: 920px;
}

.venue-hero-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.9);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.28);
  text-underline-offset: 4px;
}

.venue-hero-map-link .bi {
  color: var(--gold);
}

.venue-detail-agenda {
  display: grid;
  gap: 10px;
}

.venue-detail-agenda-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) max-content max-content 34px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .04);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.venue-detail-agenda-row:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 100, 173, .24);
  box-shadow: 0 14px 28px rgba(21, 32, 42, .07);
}

.venue-agenda-picto {
  display: grid;
  place-items: center;
}

.venue-agenda-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.venue-agenda-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-agenda-main span,
.venue-detail-agenda-row time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.venue-detail-agenda-row time {
  min-height: 30px;
  padding: 0 9px;
  color: var(--blue);
  background: #edf6ff;
  border-radius: 999px;
  white-space: nowrap;
}

.venue-detail-agenda-row time .bi {
  color: var(--blue);
}

.venue-agenda-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: #f1f4f7;
  border: 1px solid #dde5ec;
  border-radius: 999px;
}

.venue-medal-card {
  --venue-medal-color: var(--gold);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--venue-medal-color) 12%, transparent), transparent 46%),
    var(--white);
  border: 1px solid color-mix(in srgb, var(--venue-medal-color) 34%, var(--line));
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(21, 32, 42, .06);
}

.venue-medal-card.medal-silver { --venue-medal-color: var(--silver); }
.venue-medal-card.medal-bronze { --venue-medal-color: var(--bronze); }
.venue-medal-card.is-empty { --venue-medal-color: var(--blue); }

.venue-medal-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #071018;
  background: var(--venue-medal-color);
  border-radius: 50%;
  font-size: 24px;
}

.venue-medal-card.medal-bronze .venue-medal-icon,
.venue-medal-card.is-empty .venue-medal-icon {
  color: var(--white);
}

.venue-medal-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.venue-medal-body small {
  width: max-content;
  padding: 4px 7px;
  color: #071018;
  background: color-mix(in srgb, var(--venue-medal-color) 26%, #fff);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.venue-medal-body strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.venue-medal-body em,
.venue-medal-body b {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.3;
}

.venue-medal-body em img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.venue-medal-result {
  justify-self: end;
  min-width: 48px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.venue-news-list {
  display: grid;
  gap: 10px;
}

.venue-news-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .04);
}

.venue-news-card > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #edf6ff;
  border-radius: 10px;
}

.venue-news-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-news-card small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.venue-side-empty {
  display: grid;
  gap: 7px;
  padding: 16px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.venue-side-empty .bi {
  color: var(--blue);
  font-size: 26px;
}

.venue-side-empty strong {
  color: var(--ink);
}

.venue-activity-list {
  gap: 8px;
}

.venue-activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  min-height: 70px;
  padding: 11px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.venue-activity-card strong,
.venue-activity-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-activity-card strong {
  font-size: 13px;
}

.venue-activity-card small,
.venue-activity-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.venue-activity-card b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 9px;
  font-size: 12px;
}

.venue-activity-card em {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html[data-theme="dark"] .venue-search-bar,
html[data-theme="dark"] .venue-card-pro,
html[data-theme="dark"] .venue-map-card,
html[data-theme="dark"] .venue-detail-agenda-row,
html[data-theme="dark"] .venue-medal-card,
html[data-theme="dark"] .venue-news-card,
html[data-theme="dark"] .venue-side-empty,
html[data-theme="dark"] .venue-activity-card {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .venue-search-bar input,
html[data-theme="dark"] .venue-card-next b,
html[data-theme="dark"] .venue-medal-result {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}

html[data-theme="dark"] .venue-card-title span,
html[data-theme="dark"] .venue-card-actions a,
html[data-theme="dark"] .venue-detail-agenda-row time,
html[data-theme="dark"] .venue-news-card > span {
  color: #8fc8ff;
  background: rgba(20, 100, 173, .18);
}

html[data-theme="dark"] .venue-card-meta span,
html[data-theme="dark"] .venue-card-next,
html[data-theme="dark"] .venue-agenda-arrow {
  background: #0b141d;
  border-color: var(--line);
}

html[data-theme="dark"] .venue-agenda-main strong,
html[data-theme="dark"] .venue-medal-body strong,
html[data-theme="dark"] .venue-news-card strong,
html[data-theme="dark"] .venue-side-empty strong {
  color: var(--ink);
}

html[data-theme="dark"] .venue-map {
  background:
    linear-gradient(135deg, rgba(20,100,173,.14), rgba(62,151,49,.12)),
    #0b141d;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .venues-dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

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

@media (max-width: 1180px) {
  .venue-search-bar,
  .venues-dashboard-grid,
  .venue-list-grid {
    grid-template-columns: 1fr;
  }
  .venue-detail-agenda-row {
    grid-template-columns: 40px minmax(0, 1fr) max-content;
  }
  .venue-detail-agenda-row time,
  .venue-detail-agenda-row .status-chip {
    grid-column: 2;
    justify-self: start;
  }
  .venue-agenda-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .venue-medal-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .venue-medal-result {
    grid-column: 2;
    justify-self: start;
  }
}

@keyframes animatedGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Gallery page */
.hero.gallery-hero .hero-bg {
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(110deg, rgba(5, 11, 16, .92), rgba(18, 57, 94, .78), rgba(47, 143, 58, .72), rgba(5, 11, 16, .9));
  background-size: 100% 100%, 220% 220%;
  animation: animatedGradient 14s ease-in-out infinite alternate;
}

.gallery-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.gallery-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0 24px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.gallery-filter-bar label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.gallery-filter-bar input,
.gallery-filter-bar select {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid #ccd6df;
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

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

.gallery-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-media-card {
  display: grid;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(21, 32, 42, .055);
  cursor: zoom-in;
}

.gallery-media-cover {
  position: relative;
  min-height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 16, 24, .04), rgba(7, 16, 24, .72)),
    var(--gallery-cover, linear-gradient(135deg, var(--blue), var(--green))) center / cover no-repeat;
}

.gallery-media-card.video .gallery-media-cover {
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, .18), rgba(7, 16, 24, .82)),
    var(--gallery-cover, linear-gradient(135deg, var(--dark), var(--blue))) center / cover no-repeat;
}

.gallery-media-cover .bi {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(7, 16, 24, .54);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  font-size: 22px;
  backdrop-filter: blur(8px);
}

.gallery-media-card.video .gallery-media-cover .bi {
  width: 56px;
  height: 56px;
  color: var(--white);
  background: rgba(239, 51, 64, .88);
  font-size: 28px;
}

.gallery-media-cover em {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(7, 16, 24, .62);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-media-body {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.gallery-media-body strong {
  min-height: 38px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.gallery-media-body small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.gallery-media-body small .bi,
.gallery-media-meta .bi {
  color: var(--blue);
}

.gallery-media-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gallery-media-meta b {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  gap: 5px;
  overflow: hidden;
  padding: 0 8px;
  color: var(--muted);
  background: #f3f6f9;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.gallery-empty-state .bi {
  color: var(--blue);
  font-size: 34px;
}

.gallery-empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

html[data-theme="dark"] .gallery-filter-bar,
html[data-theme="dark"] .gallery-media-card,
html[data-theme="dark"] .gallery-empty-state {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .gallery-filter-bar input,
html[data-theme="dark"] .gallery-filter-bar select {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}

html[data-theme="dark"] .gallery-media-meta b {
  background: #0b141d;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 14px;
  padding: 28px;
  color: var(--white);
  background: rgba(5, 11, 16, .92);
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  background: rgba(255,255,255,.1);
  cursor: pointer;
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  z-index: 2;
}

.gallery-lightbox-nav {
  width: 52px;
  height: 64px;
  border-radius: 8px;
  font-size: 28px;
}

.gallery-lightbox-nav:disabled {
  opacity: .34;
  cursor: default;
}

.gallery-lightbox-frame {
  min-width: 0;
  max-width: min(1180px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.gallery-lightbox-stage {
  min-height: min(70vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(0,0,0,.32);
}

.gallery-lightbox-stage img,
.gallery-lightbox-stage video,
.gallery-lightbox-stage iframe {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 720px);
  border: 0;
}

.gallery-lightbox-stage img {
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox-stage video,
.gallery-lightbox-stage iframe {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  height: auto;
}

.gallery-lightbox-frame figcaption {
  display: grid;
  gap: 4px;
  padding: 0 4px;
}

.gallery-lightbox-frame strong {
  color: var(--white);
  font-size: 18px;
  line-height: 1.2;
}

.gallery-lightbox-frame span {
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.gallery-lightbox-external {
  display: inline-grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  color: var(--white);
}

.gallery-lightbox-external .bi {
  font-size: 32px;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .gallery-filter-bar {
    grid-template-columns: repeat(2, minmax(130px, 1fr)) auto;
  }

  .gallery-media-grid,
  .gallery-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .gallery-filter-bar,
  .gallery-media-grid,
  .gallery-video-grid {
    grid-template-columns: 1fr;
  }
  .gallery-lightbox {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 58px;
  }
  .gallery-lightbox-nav.prev { left: 12px; }
  .gallery-lightbox-nav.next { right: 12px; }
}

/* News page */
.hero.news-hero .hero-bg {
  background:
    linear-gradient(110deg, rgba(5, 11, 16, .94), rgba(16, 83, 138, .72), rgba(47, 143, 58, .68), rgba(5, 11, 16, .92));
  background-size: 220% 220%;
  animation: animatedGradient 16s ease-in-out infinite alternate;
}

.news-feature-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 28px) / 3);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.news-feature-slider::-webkit-scrollbar {
  display: none;
}

.news-feature-card {
  position: relative;
  min-height: 320px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: 0 14px 28px rgba(21, 32, 42, .08);
}

.news-feature-card img,
.news-detail-hero-live > img,
.news-editorial-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature-card img {
  position: absolute;
  inset: 0;
}

.news-feature-shade,
.news-detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 16, .04), rgba(5, 11, 16, .78)),
    linear-gradient(90deg, rgba(5, 11, 16, .58), rgba(5, 11, 16, .08));
}

.news-feature-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  padding: 18px;
}

.news-feature-content strong {
  color: var(--white);
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.08;
}

.news-feature-content small {
  max-width: 56ch;
  color: rgba(255,255,255,.84);
  font-size: 13px;
  line-height: 1.45;
}

.news-date-pill {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: var(--white);
  background: rgba(7, 16, 24, .58);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.news-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-tag-row em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: var(--white);
  background: rgba(47, 143, 58, .88);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.news-tag-row.compact em,
.article-tags em {
  color: var(--green);
  background: rgba(47, 143, 58, .1);
  border-color: rgba(47, 143, 58, .18);
}

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

.news-editorial-card {
  display: grid;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(21, 32, 42, .055);
}

.news-editorial-cover {
  min-height: 136px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.news-editorial-cover .bi {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(7, 16, 24, .5);
  border-radius: 50%;
  font-size: 24px;
}

.news-editorial-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.news-editorial-body small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.news-editorial-body small .bi {
  color: var(--blue);
}

.news-editorial-body strong {
  min-height: 38px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.24;
}

.news-editorial-body > span:not(.news-tag-row) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.news-detail-hero-live {
  position: relative;
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .74fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  padding: 34px clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, .14), transparent 25%),
    linear-gradient(115deg, rgba(5, 11, 16, .98), rgba(20, 100, 173, .82), rgba(47, 143, 58, .72), rgba(5, 11, 16, .94));
  background-size: 100% 100%, 240% 240%;
  animation: animatedGradient 18s ease-in-out infinite alternate;
}

.news-detail-hero-live.no-image {
  grid-template-columns: minmax(0, 1fr);
}

.news-detail-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 11px;
  max-width: 860px;
}

.news-detail-copy .back-link,
.news-detail-copy .eyebrow {
  color: rgba(255,255,255,.86);
}

.news-detail-copy h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 4.2vw, 70px);
  line-height: .98;
}

.news-detail-copy p {
  max-width: 72ch;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.5;
}

.news-detail-meta {
  margin-top: 4px;
}

.news-detail-meta .badge {
  color: var(--white);
  background: rgba(7, 16, 24, .55);
  border: 1px solid rgba(255,255,255,.18);
}

.news-detail-meta .badge .bi {
  color: var(--gold);
}

.news-detail-tags {
  margin-top: 2px;
}

.news-detail-photo {
  position: relative;
  z-index: 1;
  min-height: 300px;
  max-height: 430px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(7, 16, 24, .62);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.news-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-article-body {
  display: grid;
  gap: 16px;
}

.news-article-body p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

.article-tags {
  margin-bottom: 4px;
}

.news-detail-grid {
  align-items: start;
}

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

.news-recent-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(21, 32, 42, .055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-recent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 100, 173, .24);
  box-shadow: 0 16px 34px rgba(21, 32, 42, .09);
}

.news-recent-thumb {
  min-height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.news-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-recent-thumb .bi {
  font-size: 28px;
}

.news-recent-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px 12px 12px 0;
}

.news-recent-content small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.news-recent-content small .bi {
  color: var(--blue);
}

.news-recent-content strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.22;
}

.news-recent-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

html[data-theme="dark"] .news-editorial-card {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .news-detail-photo {
  background: rgba(7, 16, 24, .82);
  border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] .news-recent-card {
  color: var(--ink);
  background: #101923;
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .news-recent-content strong {
  color: var(--ink);
}

html[data-theme="dark"] .news-recent-content small {
  color: #9da9b6;
}

html[data-theme="dark"] .news-tag-row.compact em,
html[data-theme="dark"] .article-tags em {
  color: #a7e6af;
  background: rgba(80, 168, 50, .14);
  border-color: rgba(80, 168, 50, .24);
}

@media (max-width: 1500px) and (min-width: 1181px) {
  .news-editorial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .news-feature-slider,
  .news-editorial-grid {
    grid-template-columns: 1fr;
    grid-auto-columns: minmax(280px, 92%);
  }
  .news-detail-hero-live {
    grid-template-columns: 1fr;
  }
  .news-detail-copy h1 {
    max-width: 18ch;
  }
  .news-detail-photo {
    min-height: 240px;
    max-height: 360px;
  }
}

/* Documents page */
.hero.documents-hero .hero-bg {
  background:
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, .16), transparent 23%),
    linear-gradient(110deg, rgba(5, 11, 16, .95), rgba(18, 57, 94, .76), rgba(47, 143, 58, .68), rgba(239, 51, 64, .54), rgba(5, 11, 16, .92));
  background-size: 100% 100%, 240% 240%;
  animation: animatedGradient 18s ease-in-out infinite alternate;
}

.document-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.documents-dashboard-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
}

.documents-page .featured-document {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(135deg, #071018, #12395e 48%, #1f6c38);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(21, 32, 42, .08);
}

.documents-page .document-cover {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(7, 16, 24, .9), rgba(47, 143, 58, .72));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
}

.documents-page .document-cover.tone-blue { background: linear-gradient(145deg, #0b1620, #176db8); }
.documents-page .document-cover.tone-gold { background: linear-gradient(145deg, #31210a, #f4b400); }
.documents-page .document-cover.tone-red { background: linear-gradient(145deg, #240d13, #ef3340); }

.documents-page .document-cover img {
  width: 92px;
  max-height: 92px;
  object-fit: contain;
}

.documents-page .document-cover span {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: var(--white);
  background: rgba(7, 16, 24, .55);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.document-feature-content {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.document-feature-content h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(23px, 1.7vw, 30px);
  line-height: 1.12;
}

.document-feature-content p {
  max-width: 66ch;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.document-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--white);
}

.document-feature-meta span {
  min-height: 30px;
  padding: 0 9px;
  background: rgba(7, 16, 24, .42);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.documents-page .document-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-content: end;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.documents-page .document-actions .btn {
  min-height: 40px;
}

.document-search-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 18px 0 20px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(21, 32, 42, .045);
}

.document-search-bar label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.document-search-bar input {
  width: 100%;
  height: 40px;
  border: 1px solid #ccd6df;
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.documents-page .doc-type {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.documents-page .doc-type.tone-green { color: var(--green); background: rgba(47,143,58,.12); }
.documents-page .doc-type.tone-blue { color: var(--blue); background: rgba(25,113,184,.12); }
.documents-page .doc-type.tone-gold { color: #9c6a00; background: rgba(244,180,0,.16); }
.documents-page .doc-type.tone-red { color: var(--red); background: rgba(239,51,64,.12); }

.disabled-download {
  color: var(--muted);
}

.documents-side-column .section-head {
  margin-top: 2px;
}

.document-report-card {
  min-height: auto;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
  margin-bottom: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(21, 32, 42, .045);
}

.document-report-card strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.document-report-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.document-type-list .compact-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.document-download-center {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7,16,24,.98), rgba(18,57,94,.92), rgba(47,143,58,.72));
  border: 1px solid rgba(255,255,255,.1);
}

.document-download-glow {
  position: absolute;
  inset: -40% -30% auto auto;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(244,180,0,.32), transparent 62%);
  pointer-events: none;
}

.document-download-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.document-download-head small {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.document-download-head strong {
  display: block;
  color: var(--white);
  font-size: 42px;
  line-height: 1;
}

.document-download-head > .bi {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  font-size: 22px;
}

.document-download-center p {
  position: relative;
  margin: 10px 0 14px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.45;
}

.document-download-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.document-download-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
}

.document-download-metrics i {
  color: var(--gold);
}

.document-download-metrics b {
  color: var(--white);
  font-size: 18px;
  line-height: 1;
}

.document-download-metrics small {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
}

.document-download-note {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.document-download-note .bi {
  flex: none;
  color: var(--gold);
}

html[data-theme="dark"] .document-search-bar,
html[data-theme="dark"] .document-report-card {
  background: #101923;
  border-color: var(--line);
}

html[data-theme="dark"] .document-search-bar input {
  color: var(--ink);
  background: #0b141d;
  border-color: var(--line);
}

html[data-theme="dark"] .documents-page .doc-type.tone-green { color: #a7e6af; background: rgba(80,168,50,.14); }
html[data-theme="dark"] .documents-page .doc-type.tone-blue { color: #94c8ff; background: rgba(25,113,184,.18); }
html[data-theme="dark"] .documents-page .doc-type.tone-gold { color: #ffd666; background: rgba(244,180,0,.16); }
html[data-theme="dark"] .documents-page .doc-type.tone-red { color: #ff9aa2; background: rgba(239,51,64,.16); }

@media (max-width: 1500px) and (min-width: 1181px) {
  .documents-page .featured-document {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .documents-page .document-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .document-stat-grid,
  .documents-page .featured-document,
  .document-search-bar,
  .document-download-metrics {
    grid-template-columns: 1fr;
  }
}

/* Shared page heroes without decorative overlays */
.hero.medals-hero .hero-bg,
.hero.sports-hero .hero-bg,
.hero.athletes-hero .hero-bg,
.hero.delegations-hero .hero-bg,
.hero.venues-hero .hero-bg {
  background-size: 240% 240%;
  animation: animatedGradient 20s ease-in-out infinite alternate;
  filter: saturate(.98) contrast(.98);
}

.hero.medals-hero .hero-bg {
  background:
    linear-gradient(115deg, rgba(5, 11, 16, .98), rgba(78, 48, 5, .9), rgba(244, 180, 0, .72), rgba(5, 11, 16, .94));
}

.hero.sports-hero .hero-bg {
  background:
    linear-gradient(115deg, rgba(5, 11, 16, .98), rgba(17, 83, 132, .88), rgba(47, 143, 58, .78), rgba(5, 11, 16, .94));
}

.hero.athletes-hero .hero-bg {
  background:
    linear-gradient(115deg, rgba(5, 11, 16, .98), rgba(18, 88, 151, .88), rgba(194, 42, 96, .72), rgba(5, 11, 16, .94));
}

.hero.delegations-hero .hero-bg {
  background:
    linear-gradient(115deg, rgba(5, 11, 16, .98), rgba(40, 119, 51, .86), rgba(187, 46, 51, .72), rgba(5, 11, 16, .94));
}

.hero.venues-hero .hero-bg {
  background:
    linear-gradient(115deg, rgba(5, 11, 16, .98), rgba(15, 93, 126, .88), rgba(67, 151, 110, .72), rgba(5, 11, 16, .94));
}
