:root {
  color-scheme: dark;
  --bg: #101214;
  --sidebar-bg: #141719;
  --panel: #1b1f22;
  --panel-strong: #24292d;
  --panel-soft: rgba(255, 255, 255, 0.05);
  --text: #f5f2ea;
  --muted: #b9b2a4;
  --line: rgba(255, 255, 255, 0.12);
  --red: #c84a42;
  --amber: #d0a446;
  --blue: #5f8fc8;
  --green: #62ad7d;
  --brand-bg: #0c0d0f;
  --nav-icon-bg: rgba(255, 255, 255, 0.08);
  --hero-bg: #08090a;
  --hero-overlay: rgba(10, 11, 12, 0.62);
  --hero-text: #f1e8d2;
  --input-bg: #101214;
  --danger-solid: #c84a42;
  --on-solid: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1eb;
  --sidebar-bg: #fbfaf7;
  --panel: #ffffff;
  --panel-strong: #f0ede6;
  --panel-soft: rgba(29, 31, 34, 0.045);
  --text: #222428;
  --muted: #6f685c;
  --line: rgba(33, 36, 40, 0.13);
  --red: #b9473e;
  --amber: #b8872d;
  --blue: #3d74ad;
  --green: #438c61;
  --brand-bg: #ede8df;
  --nav-icon-bg: rgba(35, 38, 42, 0.07);
  --hero-bg: #ded6c8;
  --hero-overlay: rgba(255, 250, 239, 0.76);
  --hero-text: #24211c;
  --input-bg: #fbfaf7;
  --danger-solid: #b9473e;
  --on-solid: #ffffff;
  --shadow: 0 18px 50px rgba(46, 38, 28, 0.13);
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.fighter-initial {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--amber));
  color: #fff;
  font-weight: 900;
}

.brand-mark {
  overflow: hidden;
  background: var(--brand-bg);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.side-note span,
.eyebrow,
.fighter-block small,
.fight-meta dt,
.score-status,
.timeline small {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--text);
}

.theme-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.theme-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

.theme-toggle button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

:root[data-theme-mode="auto"] [data-theme-choice="auto"],
:root[data-theme-mode="light"] [data-theme-choice="light"],
:root[data-theme-mode="dark"] [data-theme-choice="dark"] {
  border-color: rgba(200, 74, 66, 0.44);
  background: rgba(200, 74, 66, 0.13);
  color: var(--text);
}

.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: currentColor;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-icon::before,
.nav-icon::after {
  display: none;
}

.nav-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-home svg {
  width: 19px;
  height: 19px;
}

.nav-news::before {
  width: 15px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.nav-news::after {
  width: 8px;
  height: 2px;
  top: 9px;
  left: 9px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.nav-calendar::before {
  width: 15px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.nav-calendar::after {
  width: 15px;
  height: 2px;
  top: 9px;
  background: currentColor;
}

.nav-results::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-results::after {
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.nav-score::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-score::after {
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(-35deg);
}

.nav-boxer::before {
  width: 14px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 8px 8px 5px 5px;
  top: 7px;
}

.nav-boxer::after {
  width: 17px;
  height: 7px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  bottom: 5px;
}

.nav-history::before {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.nav-history::after {
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  left: 12px;
  top: 7px;
}

.nav-live {
  color: #e04a45;
}

.nav-daily {
  width: 30px;
  height: 30px;
}

.nav-daily-glyph {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 950;
}

.nav-daily-glyph {
  line-height: 1;
}

.nav-live svg {
  stroke: currentColor;
}

.topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 310px;
  overflow: hidden;
  min-height: 38px;
  padding: 5px 7px 5px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--red) 55%, var(--line));
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
}

.account-identity {
  display: grid;
  min-width: 68px;
  gap: 1px;
  text-align: left;
}

.account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-role {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.topbar-account.is-signed-in .account-name {
  font-weight: 850;
}

.account-record {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  align-self: stretch;
  flex: 0 0 auto;
  border-left: 1px solid var(--line);
}

.account-record > span {
  display: grid;
  place-content: center;
  text-align: center;
}

.account-record b {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1;
}

.account-record small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.5rem;
  font-weight: 900;
}

.topbar-account:hover,
.topbar-account.is-signed-in {
  border-color: var(--red);
  color: var(--text);
}

.account-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 28px;
}

.account-dialog h2 {
  margin: 8px 0 6px;
}

.account-intro {
  margin: 0 0 20px;
  color: var(--muted);
}

.account-field {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.account-dialog input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--input-bg, var(--panel));
  color: var(--text);
  font: inherit;
}

.account-dialog input:focus {
  outline: 2px solid color-mix(in srgb, var(--red) 60%, transparent);
  outline-offset: 2px;
}

.account-dialog form .primary-action {
  width: 100%;
  margin-top: 20px;
}

.account-oauth {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.account-oauth > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.oauth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.oauth-button:hover,
.oauth-button:focus-visible {
  border-color: var(--amber);
}

.oauth-button b {
  font-size: 1rem;
}

.account-status {
  min-height: 22px;
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.account-switch {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.account-profile {
  display: grid;
  gap: 18px;
  margin: 6px 0 12px;
}

.account-prediction-record {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(208, 164, 70, 0.38);
  border-radius: 8px;
  background: rgba(208, 164, 70, 0.1);
}

.account-record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-tier {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line));
  border-radius: 5px;
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-record-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-record-score > span {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 68px;
  border-right: 1px solid color-mix(in srgb, var(--amber) 30%, var(--line));
}

.profile-record-score > span:last-child {
  border-right: 0;
}

.profile-record-score b {
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
}

.profile-record-score small {
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.account-prediction-record small {
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-form {
  display: grid;
  gap: 8px;
}

.profile-form .account-field {
  margin: 0;
}

.profile-form .secondary-action {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
}

.profile-preferences {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-preferences > div {
  display: grid;
  gap: 3px;
}

.profile-preferences p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.live-eyebrow {
  color: #e04a45;
}

.live-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 54px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
}

.live-empty-state strong {
  font-size: 1.1rem;
}

.live-empty-state p {
  margin: 0 0 8px;
  color: var(--muted);
}

.live-empty-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #e04a45;
  font-size: 0.7rem;
  box-shadow: 0 0 0 7px color-mix(in srgb, #e04a45 10%, transparent);
}

.nav-rankings::before {
  width: 14px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.nav-rankings::after {
  width: 8px;
  height: 2px;
  top: 9px;
  left: 9px;
  background: currentColor;
  box-shadow:
    0 4px 0 currentColor,
    0 8px 0 currentColor;
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.side-note.is-live {
  border-color: rgba(82, 170, 117, 0.44);
  background: rgba(82, 170, 117, 0.1);
}

.side-note.is-offline {
  border-color: rgba(240, 198, 108, 0.34);
  background: rgba(240, 198, 108, 0.08);
}

.side-note span,
.side-note strong {
  display: block;
}

.support-button {
  width: 100%;
  min-height: 40px;
  margin-top: 12px;
  border: 1px solid rgba(216, 168, 63, 0.55);
  border-radius: 6px;
  background: rgba(216, 168, 63, 0.12);
  color: var(--text);
  font-weight: 800;
}

.topbar-donate {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(216, 168, 63, 0.55);
  border-radius: 6px;
  background: rgba(216, 168, 63, 0.12);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(8px);
}

.support-modal[hidden] {
  display: none;
}

.support-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.support-dialog h2 {
  margin: 8px 0;
}

.support-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.support-intro {
  max-width: 38rem;
}

.support-options {
  display: grid;
  gap: 10px;
}

.support-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
}

.support-option:hover,
.support-option:focus-visible {
  border-color: rgba(216, 168, 63, 0.7);
  background: rgba(216, 168, 63, 0.1);
}

.support-option:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.support-option strong,
.support-option small {
  display: block;
}

.support-option strong {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.support-option small,
.support-payment-note {
  color: var(--muted);
  line-height: 1.4;
}

.support-option-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 168, 63, 0.38);
  border-radius: 50%;
  background: rgba(216, 168, 63, 0.12);
  color: var(--gold);
  font-weight: 900;
}

.support-option-share .support-option-icon::before,
.support-option-share .support-option-icon::after {
  content: "";
  position: absolute;
}

.support-option-share .support-option-icon::before {
  width: 15px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-1px, 3px);
}

.support-option-share .support-option-icon::after {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(3px, -4px) rotate(45deg);
}

.support-payment-note {
  display: block;
  margin-top: 14px;
  font-size: 0.73rem;
}

.support-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 1.5rem;
}

.scorecard-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.scorecard-help {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.scorecard-help:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.scorecard-help:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 45%, transparent);
  outline-offset: 2px;
}

.scorecard-help-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.scorecard-tutorial-dialog {
  width: min(100%, 480px);
}

.scorecard-tutorial-steps {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.scorecard-tutorial-steps > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.scorecard-tutorial-steps > div > strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: #111315;
}

.scorecard-tutorial-steps span {
  color: var(--muted);
  line-height: 1.45;
}

.scorecard-tutorial-steps b {
  color: var(--text);
}

.scorecard-tutorial-dialog .scorecard-tutorial-note {
  margin-bottom: 18px;
  font-size: 0.82rem;
}

.scorecard-tutorial-done {
  width: 100%;
}

.side-note strong {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.main-content {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 18px;
  overflow-x: hidden;
}

.hero-panel {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(310px, 44vh, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--hero-bg);
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.9), rgba(8, 9, 10, 0.58) 52%, rgba(8, 9, 10, 0.22)),
    linear-gradient(0deg, rgba(8, 9, 10, 0.78), rgba(8, 9, 10, 0.08) 58%),
    url("assets/ringside.png") center / cover;
}

:root[data-theme="light"] .hero-media {
  background:
    linear-gradient(90deg, rgba(255, 250, 239, 0.92), rgba(255, 250, 239, 0.68) 54%, rgba(255, 250, 239, 0.18)),
    linear-gradient(0deg, rgba(255, 250, 239, 0.76), rgba(255, 250, 239, 0.08) 58%),
    url("assets/ringside.png") center / cover;
}

.hero-content {
  position: relative;
  max-width: 680px;
  padding: clamp(24px, 5vw, 56px);
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 7px 11px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--hero-overlay);
  color: var(--hero-text);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.hero-brand-lockup img {
  width: 38px;
  height: 38px;
  display: block;
  border-radius: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.hero-content p {
  max-width: 560px;
  color: var(--hero-text);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.55;
}

.hero-actions,
.prediction-form,
.round-control,
.score-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.secondary-action,
.score-option,
.icon-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
}

.primary-action {
  padding: 0 16px;
  border-color: transparent;
  background: var(--danger-solid);
  color: var(--on-solid);
}

.secondary-action,
.score-option,
.icon-button {
  background: var(--panel-soft);
}

.ad-slot {
  position: relative;
  min-height: 110px;
  padding: 22px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.ad-disclosure {
  position: absolute;
  top: 5px;
  left: 10px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

#adsense-unit {
  width: 100%;
  min-width: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.boxer-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 14px;
}

.panel,
.view-section,
.news-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel {
  padding: 18px;
}

.view-section {
  padding: 22px;
}

.section-heading {
  margin-bottom: 14px;
}

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

.matchup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.fighter-block {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.fighter-block strong {
  overflow-wrap: anywhere;
}

.fighter-initial {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--blue), #86a7ce);
}

.fighter-initial.is-red {
  background: linear-gradient(135deg, var(--red), #e3a15c);
}

.fighter-photo {
  width: min(132px, 30vw);
  height: min(132px, 30vw);
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

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

.versus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.fight-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 0;
}

.fight-meta div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.fight-meta dt {
  margin-bottom: 4px;
  font-size: 0.76rem;
}

.fight-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

select,
input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 12px;
}

select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.prediction-form {
  align-items: end;
}

.prediction-form label {
  flex: 1 1 130px;
}

.saved-pick {
  margin-top: 14px;
  padding: 12px;
  border-left: 3px solid var(--amber);
  background: rgba(216, 168, 63, 0.1);
  color: #efe3bd;
}

.prediction-meter {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.meter-heading,
.meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.meter-heading span,
.meter-labels {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.prediction-bar,
.fight-card-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216, 74, 63, 0.36);
}

.prediction-bar span,
.fight-card-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #78a8dc);
}

.score-closed {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(240, 198, 108, 0.28);
  border-radius: 8px;
  background: rgba(240, 198, 108, 0.08);
}

.score-closed strong {
  color: #f0c66c;
}

.score-closed span {
  color: var(--muted);
  line-height: 1.4;
}

.score-table-panel.is-official-only .section-heading .eyebrow {
  color: #f0c66c;
}

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

.birthday-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.birthday-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.birthday-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.birthday-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(216, 168, 63, 0.14);
  color: #f3d889;
  font-weight: 950;
}

.birthday-action {
  white-space: nowrap;
}

.boxer-search-form {
  display: flex;
  gap: 10px;
  align-items: end;
}

.boxer-search-form label {
  flex: 1 1 220px;
}

.fighter-sex-switch,
.ranking-sex-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.fighter-sex-switch {
  width: 100%;
  margin-top: 10px;
}

.ranking-sex-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 190px;
}

.fighter-sex-switch button,
.ranking-sex-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.fighter-sex-switch button.is-active,
.ranking-sex-switch button.is-active {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.advanced-boxer-search {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  overflow: hidden;
}

.advanced-boxer-search summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 12px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.advanced-boxer-search summary::-webkit-details-marker {
  display: none;
}

.advanced-search-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.advanced-search-title > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.advanced-search-title strong {
  font-size: 0.82rem;
  font-weight: 900;
}

.advanced-search-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-icon {
  width: 18px;
  height: 14px;
  flex: 0 0 18px;
  background: linear-gradient(var(--muted), var(--muted)) 0 1px / 18px 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 3px 6px / 12px 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) 6px 11px / 6px 2px no-repeat;
}

.advanced-filter-count {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.advanced-search-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform 160ms ease;
}

.advanced-boxer-search[open] .advanced-search-chevron {
  transform: rotate(225deg) translate(-2px, 2px);
}

.advanced-boxer-search[open] summary {
  border-bottom: 1px solid var(--line);
}

.advanced-boxer-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: var(--panel-soft);
}

.advanced-boxer-fields label,
.filter-picker-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.advanced-boxer-fields select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 32px 0 10px;
}

.filter-picker {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.filter-picker-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--text);
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.filter-picker-trigger > span:first-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.filter-picker-trigger small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
}

.filter-picker-trigger strong {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-picker-trigger:hover,
.filter-picker-trigger:focus-visible,
.filter-picker.is-open .filter-picker-trigger {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  background: var(--panel-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

.filter-picker-trigger.has-value {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}

.filter-picker-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform 160ms ease;
}

.filter-picker.is-open .filter-picker-chevron {
  transform: rotate(225deg) translate(-2px, 2px);
}

.filter-picker-menu {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.filter-picker-menu[hidden] {
  display: none;
}

.filter-picker-search {
  position: relative;
  display: block;
}

.filter-picker-search .search-glyph {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  transform: translateY(-50%);
}

.filter-picker-search input {
  min-height: 38px;
  padding-left: 36px;
  font-size: 0.78rem;
}

.filter-picker-options {
  display: grid;
  gap: 3px;
  max-height: 220px;
  margin-top: 7px;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.filter-picker-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
}

.filter-picker-option:hover,
.filter-picker-option:focus-visible {
  background: var(--panel-soft);
}

.filter-picker-option.is-selected {
  background: color-mix(in srgb, var(--accent) 11%, var(--panel-strong));
  color: var(--accent);
}

.filter-picker-option span:last-child {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 0.72rem;
}

.filter-picker-option.is-selected span:last-child {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.filter-picker-empty {
  padding: 16px 8px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.stance-filter-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.stance-filter-field legend {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.stance-filter-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--input-bg);
}

.stance-filter-options button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.stance-filter-options button.is-active {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

.advanced-filter-clear {
  justify-self: start;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.popular-boxers {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.popular-boxers-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.popular-boxers > div {
  display: flex;
  gap: 7px;
  padding-bottom: 3px;
  overflow-x: auto;
}

.popular-boxers button {
  display: grid;
  grid-template-columns: 34px minmax(72px, 1fr);
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 5px 9px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
}

.popular-boxers button:hover,
.popular-boxers button:focus-visible {
  border-color: var(--gold);
}

.popular-boxer-photo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--panel-soft);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
}

.popular-boxer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-boxers button strong {
  max-width: 118px;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.news-strip {
  padding: 18px;
}

.feed-freshness {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.feed-slider {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.feed-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.feed-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.feed-slide-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.feed-empty {
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 18px;
  align-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-soft);
}

.feed-empty strong {
  color: var(--text);
}

.feed-slide-image,
.feed-image,
.blog-image,
.timeline-media {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-strong);
}

.feed-slide-image {
  height: 120px;
}

.feed-image,
.blog-image {
  height: 112px;
}

.blog-image {
  height: auto;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: var(--panel-soft);
}

.feed-slide-image img,
.feed-image img,
.blog-image img,
.timeline-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-image img {
  object-fit: contain;
  object-position: center;
}

.is-image-unavailable {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline-media img {
  object-fit: cover;
  object-position: center 20%;
}

.feed-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.source-pill,
.time-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.source-pill {
  background: rgba(75, 131, 196, 0.16);
  color: var(--blue);
}

.source-pill.is-x {
  background: var(--panel-soft);
  color: var(--text);
}

.source-pill.is-blog {
  background: rgba(216, 168, 63, 0.14);
  color: var(--amber);
}

.time-pill {
  background: var(--panel-soft);
  color: var(--muted);
}

.feed-slide h3,
.feed-item h3,
.blog-card h3 {
  margin: 0;
  line-height: 1.2;
}

.feed-slide h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-slide p,
.feed-item p,
.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feed-slide p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.feed-column,
.blog-column,
.feed-list,
.blog-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.large-feed {
  min-height: 176px;
}

.feed-item,
.blog-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.feed-item {
  display: grid;
  gap: 9px;
}

.blog-card {
  display: grid;
  gap: 10px;
}

.blog-card a,
.feed-item a {
  color: #f0c66c;
  font-weight: 900;
  text-decoration: none;
}

.fight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.calendar-group-title {
  margin: 16px 0 8px;
  color: #f0c66c;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-group-title:first-child {
  margin-top: 0;
}

.upcoming-month-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.upcoming-month-heading {
  display: grid;
  gap: 3px;
}

.upcoming-month-heading strong {
  font-size: 1rem;
}

.upcoming-month-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 2px 1px 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.upcoming-month-tab {
  display: grid;
  flex: 0 0 auto;
  min-width: 126px;
  gap: 2px;
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.upcoming-month-tab span {
  color: var(--text);
  font-weight: 850;
}

.upcoming-month-tab small {
  font-size: 0.72rem;
}

.upcoming-month-tab:hover {
  border-color: var(--muted);
}

.upcoming-month-tab.is-active {
  border-color: var(--amber);
  background: rgba(208, 164, 70, 0.1);
  box-shadow: inset 0 -3px 0 var(--amber);
}

.upcoming-month-summary {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.upcoming-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.upcoming-scope-tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.upcoming-scope-tab:hover,
.upcoming-scope-tab.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel-soft));
  color: var(--text);
}

.upcoming-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 14px 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.upcoming-search input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

@media (max-width: 680px) {
  .upcoming-month-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.fight-card.is-recent-result {
  border-color: rgba(240, 198, 108, 0.34);
  background: linear-gradient(180deg, rgba(240, 198, 108, 0.08), rgba(255, 255, 255, 0.035));
}

.event-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.event-card + .event-card {
  margin-top: 12px;
}

.event-card.is-recent-result {
  border-color: rgba(240, 198, 108, 0.34);
  background: linear-gradient(180deg, rgba(240, 198, 108, 0.08), rgba(255, 255, 255, 0.035));
}

.event-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.event-card-header.has-poster {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
}

.event-poster {
  display: block;
  width: 180px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel-soft);
}

.event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card-header h3 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
}

.event-card-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.event-card-header > div:not(.event-card-actions) {
  min-width: 0;
}

.event-alert-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #17191c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.event-alert-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-alert-button:hover,
.event-alert-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: #090a0b;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22), 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent);
  transform: translateY(-1px);
}

.event-alert-button.is-active {
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--red);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--red) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.event-alert-button.is-active::after {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.event-calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 82%, #fff 8%);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.calendar-brand-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
}

.calendar-brand-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.calendar-brand-icon.is-apple {
  color: #fff;
}

.event-calendar-button:hover,
.event-calendar-button:focus-visible {
  border-color: rgba(216, 168, 63, 0.72);
  background: rgba(216, 168, 63, 0.14);
  color: var(--gold);
  transform: translateY(-1px);
}

.event-calendar-button.is-google {
  color: #6aa6ff;
}

.calendar-brand-icon.is-google {
  color: #4285f4;
  font-family: Arial, sans-serif;
}

@media (max-width: 640px) {
  .event-calendar-button {
    width: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50%;
  }

  .calendar-button-label {
    display: none;
  }
}

body.is-offline-mode .connection-chip {
  border-color: rgba(216, 168, 63, 0.55);
}

.app-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: min(360px, calc(100% - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(216, 168, 63, 0.65);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 800;
}

.app-toast[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .event-card-actions {
    align-self: start;
  }

  .event-card-actions .pill {
    display: none;
  }
}

.app-download-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: center;
  margin-top: 30px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.app-download-footer[hidden] {
  display: none;
}

.app-download-copy {
  max-width: 610px;
}

.app-download-copy h2 {
  margin: 4px 0 7px;
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  letter-spacing: 0;
}

.app-download-copy p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.store-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 176px));
  gap: 9px;
}

.store-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  text-decoration: none;
}

.store-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.62;
}

.store-link.is-live:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.store-link-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  font-size: 0.68rem;
  font-weight: 950;
}

.store-link-icon-play::before {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--text);
  content: "";
}

.store-link span:last-child {
  display: grid;
  min-width: 0;
}

.store-link small {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.2;
}

.store-link strong {
  margin-top: 2px;
  font-size: 0.92rem;
  line-height: 1.1;
}

.app-download-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.68rem;
}

@media (max-width: 760px) {
  .app-download-footer {
    grid-template-columns: 1fr;
    margin-top: 20px;
    padding: 22px 16px;
  }

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

@media (max-width: 430px) {
  .store-link-list {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(250px, 1.2fr) minmax(220px, 0.9fr);
  gap: 24px;
  align-items: start;
  padding: 30px 28px calc(30px + env(safe-area-inset-bottom));
  background: var(--panel-strong);
  color: var(--text);
}

.site-footer-brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.site-footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 7px;
}

.site-footer-brand span {
  display: grid;
  gap: 2px;
}

.site-footer-brand strong {
  font-size: 1rem;
}

.site-footer-brand small,
.site-footer-social > span,
.site-footer-social small,
.site-footer-bottom {
  color: var(--muted);
  font-size: 0.68rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
}

.site-footer-links button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 850;
}

.site-footer-links button:hover {
  color: var(--red);
}

.site-footer-links .site-footer-support {
  color: var(--red);
}

.site-footer-social {
  display: grid;
  gap: 8px;
}

.site-footer-social > span {
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer-social > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.site-footer-social a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 850;
  text-decoration: none;
}

.site-footer-social a[aria-disabled="true"] {
  cursor: default;
  opacity: 0.45;
}

.site-footer-social a:not([aria-disabled="true"]):hover {
  border-color: var(--red);
  color: var(--red);
}

.site-footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.info-dialog {
  width: min(100%, 720px);
  max-height: min(82vh, 760px);
  overflow-y: auto;
}

.info-page h2 {
  margin-bottom: 14px;
}

.info-page h3 {
  margin: 18px 0 5px;
  font-size: 0.86rem;
}

.info-page p {
  line-height: 1.65;
}

.info-help-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.info-help-list details {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

.info-help-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
}

.info-help-list details p {
  margin: 9px 0 0;
  font-size: 0.76rem;
}

.info-support-action {
  width: 100%;
}

@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px 18px calc(92px + env(safe-area-inset-bottom));
  }

  .site-footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer-social,
  .site-footer-bottom {
    grid-column: 1;
  }

  .site-footer-bottom {
    flex-direction: column;
  }
}

.home-fighter-photo,
.birthday-photo-button {
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.home-fighter-photo {
  position: relative;
}

.home-fighter-photo::after,
.birthday-photo-button::after {
  content: "View";
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(8, 10, 12, 0.78);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.home-fighter-photo::after {
  content: "Compare";
}

.home-fighter-photo:hover::after,
.home-fighter-photo:focus-visible::after,
.birthday-photo-button:hover::after,
.birthday-photo-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.home-fighter-photo:hover,
.home-fighter-photo:focus-visible {
  border-color: color-mix(in srgb, var(--amber) 58%, var(--line));
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.birthday-photo-button {
  position: relative;
  border: 0;
  background: var(--panel-soft);
}

.quick-profile-dialog {
  width: min(100%, 540px);
  padding: 24px;
  overflow: hidden;
  border-top: 3px solid var(--red);
}

.quick-profile-hero {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 28px;
}

.quick-profile-photo {
  display: grid;
  width: 138px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--red);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 1.6rem;
  font-weight: 950;
}

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

.quick-profile-heading {
  min-width: 0;
}

.quick-profile-heading h2 {
  margin: 5px 0 3px;
  overflow-wrap: anywhere;
  font-size: 1.45rem;
}

.quick-profile-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-profile-heading > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
}

.quick-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.quick-profile-stats span {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px 8px;
  background: var(--panel-soft);
  text-align: center;
}

.quick-profile-stats small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-profile-stats strong {
  overflow-wrap: anywhere;
  font-size: 0.75rem;
}

.quick-profile-bio {
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.quick-profile-next {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 11px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
}

.quick-profile-next strong {
  font-size: 0.82rem;
}

.quick-profile-next small {
  color: var(--muted);
  font-size: 0.72rem;
}

.quick-profile-full {
  width: 100%;
}

@media (max-width: 520px) {
  .quick-profile-dialog {
    padding: 18px 14px;
  }

  .quick-profile-hero {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding-right: 22px;
  }

  .quick-profile-photo {
    width: 100px;
  }

  .quick-profile-heading h2 {
    font-size: 1.15rem;
  }

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

.desktop-sticky-nav {
  display: none;
}

@media (min-width: 921px) {
  html.website-mode .desktop-sticky-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 244px;
    z-index: 90;
    display: flex;
    justify-content: center;
    min-height: 58px;
    padding: 8px 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--sidebar-bg) 92%, transparent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    scrollbar-width: none;
    transform: translateY(-105%);
    transition: opacity 180ms ease, transform 300ms var(--ease-out);
  }

  html.website-mode .desktop-sticky-nav::-webkit-scrollbar {
    display: none;
  }

  html.website-mode .desktop-sticky-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .desktop-sticky-nav button {
    position: relative;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
  }

  .desktop-sticky-nav button::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 2px;
    left: 14px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--red);
    opacity: 0;
    transform: scaleX(0.35);
    transition: opacity 180ms ease, transform 240ms var(--ease-out);
  }

  .desktop-sticky-nav button:hover,
  .desktop-sticky-nav button.is-active {
    background: var(--panel-soft);
    color: var(--text);
  }

  .desktop-sticky-nav button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (min-width: 921px) and (max-width: 1120px) {
  html.website-mode .desktop-sticky-nav {
    justify-content: flex-start;
  }

  .desktop-sticky-nav button {
    padding-inline: 11px;
  }
}

/* Interaction and surface polish */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --focus-ring: color-mix(in srgb, var(--amber) 72%, transparent);
}

::selection {
  background: color-mix(in srgb, var(--red) 30%, transparent);
  color: var(--text);
}

button,
a,
input,
select,
summary {
  transition:
    color 180ms var(--ease-standard),
    background-color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    box-shadow 220ms var(--ease-out),
    opacity 180ms var(--ease-standard),
    transform 220ms var(--ease-out);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--focus-ring);
}

input,
select {
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 220ms var(--ease-out);
}

input:hover,
select:hover {
  border-color: color-mix(in srgb, var(--muted) 48%, transparent);
}

input:focus,
select:focus {
  border-color: color-mix(in srgb, var(--amber) 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 11%, transparent);
}

.primary-action:not(:disabled):hover {
  background: color-mix(in srgb, var(--danger-solid) 88%, #000);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--danger-solid) 26%, transparent);
  transform: translateY(-1px);
}

.secondary-action:not(:disabled):hover,
.icon-button:not(:disabled):hover,
.topbar-search:hover,
.topbar-donate:hover {
  border-color: color-mix(in srgb, var(--amber) 36%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 88%, var(--amber) 4%);
  transform: translateY(-1px);
}

button:not(:disabled):active,
.primary-action:not(:disabled):active,
.secondary-action:not(:disabled):active {
  box-shadow: none;
  transform: scale(0.985);
  transition-duration: 80ms;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::after {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--red);
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 180ms ease, transform 260ms var(--ease-out);
}

.nav-item.is-active::after {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item.is-active {
  box-shadow: none;
}

.nav-item.is-active .nav-icon {
  transform: scale(1.04);
}

.brand-mark img,
.fighter-photo img,
.mini-fighter img,
.profile-avatar img,
.feed-slide-image img,
.event-poster img,
.country-fighter-photo img,
.boxer-result-photo img {
  transition: transform 500ms var(--ease-out), filter 280ms ease;
}

.feed-slide-image:hover img,
.event-poster:hover img,
.boxer-result:hover .boxer-result-photo img,
.country-fighter-row:hover .country-fighter-photo img {
  transform: scale(1.035);
}

.view-enter {
  animation: view-enter 440ms var(--ease-out) both;
  animation-delay: var(--view-delay, 0ms);
}

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

.support-modal:not([hidden]) {
  animation: modal-backdrop-in 180ms ease both;
}

.support-modal:not([hidden]) .support-dialog {
  animation: modal-dialog-in 300ms var(--ease-out) both;
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.event-card,
.event-bout,
.boxer-result,
.birthday-card,
.ranking-card,
.official-ranking-row,
.country-fighter-row,
.timeline-item,
.favorite-boxer-card {
  transition:
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .event-card:hover {
    border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  }

  .event-bout:hover,
  .boxer-result:hover,
  .birthday-card:hover,
  .ranking-card:hover,
  .country-fighter-row:hover,
  .timeline-item:hover,
  .favorite-boxer-card:hover {
    border-color: color-mix(in srgb, var(--amber) 24%, var(--line));
    transform: translateY(-2px);
  }
}

body,
.sidebar,
.app-topbar,
.nav-list,
.panel,
.view-section,
.news-strip,
.pulse-rail,
.event-card,
.support-dialog {
  transition:
    background-color 260ms var(--ease-standard),
    border-color 260ms var(--ease-standard),
    color 220ms var(--ease-standard),
    box-shadow 260ms var(--ease-out);
}

@media (min-width: 921px) {
  * {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 42%, transparent) transparent;
  }
}

.feed-slider {
  overflow: hidden;
}

.feed-slide.is-active .feed-slide-copy {
  animation: feed-copy-in 420ms 70ms var(--ease-out) both;
}

@keyframes feed-copy-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.app-toast:not([hidden]) {
  animation: toast-in 300ms var(--ease-out) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .nav-item::after {
    top: auto;
    right: 24%;
    bottom: 0;
    left: 24%;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0.35);
  }

  .nav-item.is-active::after {
    transform: scaleX(1);
  }

  .nav-list.is-expanded .nav-item::after {
    top: 9px;
    right: auto;
    bottom: 9px;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(1);
  }
}

.event-bout-list {
  display: grid;
  gap: 10px;
}

.event-bout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.event-bout.is-main {
  background: rgba(82, 170, 117, 0.1);
}

.event-bout-media {
  display: grid;
  grid-template-columns: auto 24px auto;
  align-items: center;
}

.event-bout-copy {
  min-width: 0;
}

.event-bout-copy h4 {
  margin: 4px 0;
  font-size: 0.98rem;
}

.event-bout-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.community-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 7px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 850;
}

.community-pick strong {
  color: var(--amber);
}

.bout-more {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.bout-more summary {
  width: fit-content;
  cursor: pointer;
  color: var(--amber);
  font-weight: 900;
}

.bout-more div {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.compact-action {
  min-width: 64px;
  padding-inline: 10px;
}

.event-bout-actions {
  display: grid;
  min-width: 76px;
  gap: 6px;
}

.bout-view-action {
  background: transparent;
}

body.modal-open {
  overflow: hidden;
}

.tale-modal {
  overflow-y: auto;
}

.tale-dialog {
  width: min(100%, 760px);
  max-height: min(880px, calc(100dvh - 32px));
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  border-top: 3px solid var(--amber);
}

.tale-heading {
  padding-right: 34px;
  text-align: center;
}

.tale-heading h2 {
  margin: 5px 0;
  font-size: 1.55rem;
}

.tale-heading p {
  margin: 0;
  font-size: 0.82rem;
}

.tale-matchup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.tale-fighter {
  display: grid;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.tale-blue {
  animation: tale-enter-blue 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tale-red {
  animation: tale-enter-red 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tale-fighter-photo {
  display: grid;
  width: min(148px, 100%);
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 1.5rem;
  font-weight: 950;
}

.tale-blue .tale-fighter-photo {
  border-bottom: 4px solid var(--blue);
}

.tale-red .tale-fighter-photo {
  border-bottom: 4px solid var(--red);
}

.tale-fighter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tale-corner-label {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tale-fighter h3 {
  max-width: 100%;
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.tale-fighter > strong {
  font-size: 0.8rem;
}

.tale-fighter > small {
  margin-top: 2px;
  color: var(--muted);
}

.tale-vs {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 950;
  animation: tale-vs-pop 440ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tale-stats {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.tale-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 12px;
  background: var(--panel-soft);
  text-align: center;
}

.tale-stat-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.tale-stat-row span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tale-form {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  text-align: center;
}

.tale-form > strong {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.tale-form > span {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.tale-form-result {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 950;
}

.tale-form-result.is-win { background: var(--green); }
.tale-form-result.is-loss { background: var(--red); }
.tale-form-result.is-draw { background: var(--muted); }

.tale-form-empty {
  color: var(--muted);
  font-size: 0.7rem;
}

.tale-event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.tale-event-meta span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.75rem;
}

.tale-event-meta strong {
  color: var(--text);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.tale-result {
  margin-top: 10px;
  padding: 11px;
  border-left: 3px solid var(--amber);
  background: rgba(216, 168, 63, 0.1);
  font-weight: 850;
}

.tale-score-action {
  width: 100%;
  margin-top: 12px;
}

@keyframes tale-enter-blue {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tale-enter-red {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tale-vs-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tale-fighter,
  .tale-vs,
  .next-fight-panel.is-switching .matchup-row,
  .next-fight-panel.is-switching .fight-meta {
    animation: none;
  }
}

.fight-card-media {
  display: grid;
  grid-template-columns: auto 24px auto;
  align-items: center;
}

.mini-fighter {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  font-weight: 950;
}

.mini-fighter.red {
  margin-left: -8px;
}

.mini-fighter.blue {
  margin-right: -8px;
}

.mini-fighter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fight-card-vs {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
}

.fight-card-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.fight-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.fight-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.official-fight-line {
  color: #f0d58f !important;
  font-weight: 850;
}

.bout-result-callout {
  display: grid;
  gap: 3px;
  margin-top: 2px;
  padding: 9px 11px;
  border-left: 3px solid #d8b55b;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(216, 181, 91, 0.14), rgba(216, 181, 91, 0.03));
}

.bout-result-callout span {
  color: #d8b55b;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bout-result-callout strong {
  color: var(--text);
  font-size: 0.86rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(82, 170, 117, 0.14);
  color: #aee0c0;
  font-size: 0.8rem;
  font-weight: 900;
}

.scorecard-layout {
  display: grid;
  grid-template-columns: minmax(500px, 0.95fr) minmax(460px, 1.05fr);
  gap: 18px;
}

.scorecard-layout > * {
  min-width: 0;
}

.boxer-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}

.country-section {
  margin-top: 24px;
}

.country-globe-stage {
  position: relative;
  width: 100%;
  height: clamp(310px, 42vw, 470px);
  margin-bottom: 16px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  isolation: isolate;
  background:
    radial-gradient(circle at 65% 45%, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 28% 28%, rgba(76, 162, 190, 0.2), transparent 36%),
    linear-gradient(145deg, #11181c 0%, #05090c 54%, #10171a 100%);
}

.country-globe-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to right, transparent, #000 24%, #000 76%, transparent);
}

.country-globe-stage::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.32), transparent);
  content: "";
}

#country-globe {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

#country-globe:active {
  cursor: grabbing;
}

.country-globe-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.country-globe-fallback[hidden] {
  display: none;
}

.fallback-earth {
  position: relative;
  display: block;
  width: min(56vw, 330px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(176, 218, 232, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #3f6a78 0, #173d4b 35%, #102d38 68%, #07171d 100%);
  box-shadow: inset -34px -18px 55px rgba(0, 0, 0, 0.5), 0 0 34px rgba(87, 163, 190, 0.18);
}

.fallback-earth::before,
.fallback-earth::after,
.fallback-earth i {
  position: absolute;
  border: 1px solid rgba(196, 225, 233, 0.18);
  border-radius: 50%;
  content: "";
}

.fallback-earth::before {
  inset: 0 28%;
}

.fallback-earth::after {
  inset: 0 42%;
}

.fallback-earth i:nth-child(1) { inset: 22% 0; }
.fallback-earth i:nth-child(2) { inset: 38% 0; }
.fallback-earth i:nth-child(3) {
  top: 31%;
  left: 62%;
  width: 38%;
  height: 38%;
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  box-shadow: none;
  transform: rotate(-18deg);
}
.fallback-earth i:nth-child(4) { display: none; }

.country-globe-copy {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid rgba(255, 255, 255, 0.62);
  background: rgba(9, 12, 14, 0.68);
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.country-globe-copy strong {
  font-size: 1.55rem;
}

.country-globe-copy small {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}

.country-globe-copy em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-style: normal;
}

.country-globe-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 5px 0 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.country-globe-facts b {
  margin-right: 3px;
  color: #fff;
  font-size: 0.9rem;
}

.country-globe-controls {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 7px;
}

.country-globe-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(9, 12, 14, 0.74);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.country-globe-controls button:hover,
.country-globe-controls button:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.country-globe-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.country-grid {
  display: grid;
  gap: 12px;
}

.country-tabs {
  display: flex;
  gap: 6px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.country-tab {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 850;
}

.country-tab span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
}

.country-tab:hover,
.country-tab:focus-visible,
.country-tab.is-active {
  border-color: var(--gold);
  background: rgba(216, 168, 63, 0.1);
  color: var(--text);
}

.country-feature {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.country-feature-intro {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--panel-strong);
}

.country-feature-intro.has-country-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: var(--country-art);
  background-position: var(--country-art-position, center);
  background-size: cover;
  content: "";
  filter: grayscale(1) contrast(0.82);
  opacity: 0.2;
  transform: scale(1.02);
}

.country-feature-intro.has-country-art::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: color-mix(in srgb, var(--panel-strong) 28%, transparent);
  content: "";
}

.country-feature-intro h3 {
  position: relative;
  margin: 5px 0 10px;
  font-size: 2rem;
}

.country-feature-intro p {
  position: relative;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.country-feature-meta {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: auto;
}

.country-feature-meta strong {
  font-size: 1.7rem;
}

.country-feature-meta span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.country-show-all {
  position: relative;
  width: 100%;
  margin-top: 14px;
}

.country-art-credit {
  position: relative;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
  text-decoration: none;
}

.country-art-credit:hover,
.country-art-credit:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.country-roster {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 22px;
}

.country-roster-heading {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.country-roster-heading h4 {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.country-roster-heading > span {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: right;
}

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

.country-fighter-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  gap: 11px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.country-fighter-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.country-fighter-row:hover,
.country-fighter-row:focus-visible {
  background: var(--panel-soft);
}

.country-fighter-photo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 56px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--gold);
  font-weight: 950;
}

.country-fighter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-fighter-copy,
.country-fighter-copy strong,
.country-fighter-copy small {
  display: block;
  min-width: 0;
}

.country-fighter-copy strong {
  overflow-wrap: anywhere;
}

.country-fighter-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-fighter-arrow {
  color: var(--muted);
}

.country-next-fights {
  display: grid;
  gap: 7px;
  padding-top: 16px;
}

.country-next-fights button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
}

.country-next-fights small,
.country-empty {
  color: var(--muted);
}

.p4p-source-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.p4p-source-bar > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
}

.p4p-source-bar small {
  grid-column: 2;
  color: var(--muted);
}

.p4p-source-bar a {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.p4p-source-bar .live-dot {
  grid-row: 1 / span 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(82, 170, 117, 0.12);
}

@media (max-width: 760px) {
  .p4p-source-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .country-feature {
    grid-template-columns: 1fr;
  }

  .country-feature-intro {
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .country-feature-intro h3 {
    font-size: 1.65rem;
  }

  .country-roster {
    padding: 14px;
  }

  .country-roster-heading > span {
    display: none;
  }

  .country-fighter-list {
    grid-template-columns: 1fr;
  }

  .country-fighter-row:nth-child(odd) {
    border-right: 0;
  }
}

.boxer-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.boxer-results-summary {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.boxer-load-more {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}

.boxer-result {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
}

.boxer-result.is-active {
  border-color: rgba(216, 168, 63, 0.75);
  background: rgba(216, 168, 63, 0.12);
}

.boxer-result strong,
.profile-head strong {
  overflow-wrap: anywhere;
}

.boxer-result > span:last-child {
  display: grid;
  gap: 3px;
}

.boxer-level {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.boxer-level:not(.is-compact) {
  padding: 6px 9px;
  border: 1px solid rgba(216, 168, 63, 0.28);
  border-radius: 6px;
  background: rgba(216, 168, 63, 0.08);
}

.boxer-level b {
  color: var(--text);
  font-size: 0.72rem;
}

.boxer-level-stars {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 1px;
  color: color-mix(in srgb, var(--muted) 48%, transparent);
  line-height: 1;
}

.boxer-level-stars > span {
  display: inline-block;
  width: 0.78rem;
  text-align: center;
}

.boxer-level-score {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.boxer-level small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 950;
}

.boxer-level-stars .is-filled {
  color: var(--gold);
}

.boxer-level-stars .is-half {
  color: transparent;
  background: linear-gradient(90deg, var(--gold) 50%, color-mix(in srgb, var(--muted) 48%, transparent) 50%);
  background-clip: text;
  -webkit-background-clip: text;
}

.boxer-level.is-compact {
  gap: 4px;
  margin-top: 3px;
  padding: 3px 6px;
  border: 1px solid rgba(216, 168, 63, 0.22);
  border-radius: 5px;
  background: rgba(216, 168, 63, 0.07);
  white-space: nowrap;
}

.boxer-level-compact-star {
  color: var(--gold);
  font-size: 0.75rem;
  line-height: 1;
}

.boxer-level.is-compact small {
  color: var(--text);
  font-size: 0.66rem;
}

.favorite-boxer-card .boxer-level {
  display: inline-flex;
  margin: 0 0 0 5px;
  vertical-align: middle;
}

.boxer-result span,
.profile-subtitle,
.stat-label,
.fight-row span,
.recent-fight span {
  color: var(--muted);
}

.profile-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 950;
  overflow: hidden;
}

.profile-avatar img,
.result-photo img,
.birthday-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar.has-photo {
  width: 96px;
  height: 96px;
  background: var(--panel-strong);
}

.result-photo,
.birthday-photo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  font-weight: 950;
}

.boxer-result {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.profile-head h2 {
  margin-bottom: 6px;
}

.profile-bio {
  margin: -4px 0 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  line-height: 1.5;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.stat-label,
.stat-value {
  display: block;
}

.stat-label {
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 800;
}

.stat-value {
  font-weight: 950;
}

.profile-section {
  margin-top: 18px;
}

.profile-section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.boxer-profile-panel {
  scroll-margin-top: 18px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.boxer-profile-panel.is-revealed {
  border-color: rgba(216, 168, 63, 0.9);
  box-shadow: 0 0 0 3px rgba(216, 168, 63, 0.18);
}

.profile-section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.profile-section-heading h3 {
  margin: 0;
}

.boxer-source-link {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
  text-decoration: none;
}

.boxer-photo-credit {
  display: block;
  width: fit-content;
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  text-decoration: none;
}

.boxer-photo-credit:hover,
.boxer-photo-credit:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

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

.ranking-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 360px);
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.ranking-view-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.ranking-view-button.is-active {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
}

.official-ranking-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.official-ranking-controls {
  display: flex;
  gap: 10px;
  align-items: end;
}

.official-division-label {
  display: grid;
  gap: 7px;
  min-width: min(100%, 320px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.official-division-label select {
  min-height: 46px;
  padding: 0 40px 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}

.ranking-source-note {
  display: grid;
  gap: 3px;
  text-align: right;
}

.ranking-source-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.ranking-source-note strong,
.ranking-source-note a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.official-rankings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.organization-ranking {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--organization-color, var(--gold));
  border-radius: 8px;
  background: var(--panel-soft);
}

.organization-ibf { --organization-color: #c73039; }
.organization-wba { --organization-color: #2e76c5; }
.organization-wbc { --organization-color: #2d9c66; }
.organization-wbo { --organization-color: #9a63c8; }
.organization-world { --organization-color: #c24c78; }

.organization-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.organization-heading strong { font-size: 1.08rem; }

.organization-heading span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-champion-label {
  padding: 9px 10px 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.official-ranking-row {
  display: grid;
  grid-template-columns: 25px 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  padding: 6px 8px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.official-ranking-row:hover { background: rgba(216, 168, 63, 0.1); }

.official-ranking-row.is-champion {
  border-top: 0;
  background: rgba(216, 168, 63, 0.11);
}

.official-ranking-number {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

.is-champion .official-ranking-number { color: var(--gold); }

.official-ranking-photo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
}

.official-ranking-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.official-ranking-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.official-ranking-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}

.official-ranking-name strong,
.official-ranking-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-ranking-name strong {
  min-width: 0;
  font-size: 0.78rem;
}

.ranking-title-badge {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.ranking-title-badge.is-silver {
  border-color: rgba(177, 187, 198, 0.58);
  background: rgba(177, 187, 198, 0.15);
  color: var(--text);
}

.ranking-title-badge.is-interim {
  border-color: rgba(199, 48, 55, 0.52);
  background: rgba(199, 48, 55, 0.12);
  color: var(--red);
}

.ranking-title-badge.is-international {
  border-color: rgba(216, 168, 63, 0.5);
  background: rgba(216, 168, 63, 0.12);
  color: var(--gold-strong);
}

.official-ranking-name small {
  color: var(--muted);
  font-size: 0.67rem;
}

.ranking-vacant {
  padding: 12px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.organization-contenders { display: grid; }

.official-rankings-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.ranking-division-banner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ranking-division-banner h3 {
  margin: 4px 0 5px;
  font-size: 1.55rem;
}

.ranking-division-banner p {
  margin: 0;
  color: var(--muted);
}

.championship-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.women-ranking-banner {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-left: 3px solid #c24c78;
  border-radius: 7px;
  background: var(--panel-strong);
}

.women-ranking-banner span {
  color: var(--muted);
  font-size: 0.8rem;
}

.championship-chip {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--organization-color);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
}

.championship-chip span {
  color: var(--organization-color);
  font-size: 0.7rem;
  font-weight: 950;
}

.championship-chip strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.championship-chip:hover,
.championship-chip:focus-visible,
.championship-chip.is-active {
  border-color: var(--organization-color);
  background: color-mix(in srgb, var(--organization-color) 11%, var(--panel-strong));
}

.ranking-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ranking-board-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.ranking-board-header > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ranking-board-header h3 {
  margin: 3px 0 0;
  font-size: 1.18rem;
}

.organization-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 7px;
  background: var(--organization-color);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.ranking-board-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.ranking-board-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.55fr);
  min-width: 0;
}

.ranking-champion-stage {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--organization-color) 8%, var(--panel-strong));
}

.ranking-champion-stage > button {
  display: grid;
  gap: 14px;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.ranking-champion-stage > button > span:last-child,
.ranking-champion-stage > button strong,
.ranking-champion-stage > button small {
  display: block;
  min-width: 0;
}

.ranking-champion-stage > button strong {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.ranking-champion-stage > button small {
  margin-top: 4px;
  color: var(--muted);
}

.ranking-champion-photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--organization-color);
  font-size: 1.5rem;
  font-weight: 950;
}

.ranking-champion-photo.is-identity-mark,
.official-ranking-photo.is-identity-mark {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--organization-color) 18%, var(--panel-strong)), var(--panel-soft));
}

.ranking-champion-photo.is-identity-mark::before,
.official-ranking-photo.is-identity-mark::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--organization-color) 28%, transparent);
  border-radius: inherit;
}

.ranking-champion-photo.is-identity-mark > span {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.ranking-champion-photo.is-identity-mark > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.official-ranking-photo.is-identity-mark > span {
  font-size: 0.72rem;
  font-weight: 950;
}

.ranking-profile-cue {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.ranking-profile-cue b { color: var(--organization-color); }

.ranking-champion-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.ranking-board .organization-contenders {
  align-content: start;
  min-width: 0;
  padding: 0 16px 12px;
}

.contenders-heading {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.contenders-heading em {
  font-style: normal;
  text-transform: none;
}

.ranking-board .official-ranking-row {
  grid-template-columns: 40px 52px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 74px;
  padding: 10px 4px;
  border-radius: 6px;
}

.ranking-board .official-ranking-row:hover,
.ranking-board .official-ranking-row:focus-visible {
  background: color-mix(in srgb, var(--organization-color) 8%, var(--panel-strong));
}

.ranking-board .official-ranking-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--organization-color);
}

.ranking-board .official-ranking-photo {
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--organization-color) 45%, var(--line));
  background: var(--panel-soft);
  color: var(--organization-color);
}

.ranking-board .official-ranking-name strong {
  font-size: 0.88rem;
}

.official-ranking-arrow {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.official-ranking-row.is-vacant {
  opacity: 0.72;
  cursor: default;
  background: color-mix(in srgb, var(--panel-soft) 72%, transparent);
}

.official-ranking-row.is-vacant:hover {
  background: color-mix(in srgb, var(--panel-soft) 72%, transparent);
}

.official-ranking-vacant-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 1.15rem;
}

.official-ranking-row.is-vacant .official-ranking-name strong {
  color: var(--muted);
}

.ranking-vacant.is-large {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.ranking-vacant.is-large span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .country-globe-stage {
    height: 310px;
  }

  .country-globe-copy {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .ranking-division-banner,
  .ranking-board-body {
    grid-template-columns: 1fr;
  }

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

  .official-ranking-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-sex-switch {
    width: 100%;
  }

  .ranking-champion-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ranking-champion-stage > button {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
  }

  .ranking-champion-photo {
    aspect-ratio: 4 / 5;
  }

  .ranking-board .organization-contenders {
    padding-inline: 10px;
  }

  .ranking-board .official-ranking-row {
    grid-template-columns: 34px 44px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .ranking-board .official-ranking-photo {
    width: 44px;
    height: 44px;
  }

  .official-ranking-vacant-mark {
    width: 44px;
    height: 44px;
  }

  .contenders-heading em {
    display: none;
  }
}

.ranking-panel {
  min-width: 0;
}

.ranking-list {
  display: grid;
  gap: 9px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 34px 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
}

.ranking-card:hover {
  border-color: rgba(216, 168, 63, 0.58);
  background: rgba(216, 168, 63, 0.1);
}

.ranking-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(216, 168, 63, 0.14);
  color: #f2d37b;
  font-weight: 950;
}

.ranking-photo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: #fff;
  font-weight: 950;
}

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

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

.ranking-copy strong,
.ranking-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy span,
.ranking-record {
  color: var(--muted);
}

.ranking-record {
  justify-self: end;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.fight-row,
.recent-fight {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.fight-row + .fight-row,
.recent-fight + .recent-fight {
  margin-top: 8px;
}

.fight-select-label {
  margin-bottom: 16px;
}

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

.score-fight-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
}

.score-fight-picker:hover,
.score-fight-picker:focus-visible {
  border-color: var(--gold);
}

.score-fight-picker > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.score-fight-picker small,
.score-fight-picker em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.score-fight-picker strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-fight-picker b {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.76rem;
}

.fight-picker-dialog {
  width: min(100%, 580px);
  max-height: min(760px, calc(100vh - 32px));
  overflow: hidden;
}

.fight-picker-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin: 16px 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--input-bg);
}

.fight-picker-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.fight-picker-list {
  max-height: min(560px, calc(100vh - 210px));
  overflow-y: auto;
}

.fight-picker-group + .fight-picker-group {
  margin-top: 18px;
}

.fight-picker-group h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.fight-picker-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.fight-picker-option + .fight-picker-option {
  border-top-color: var(--line);
}

.fight-picker-option:hover,
.fight-picker-option:focus-visible,
.fight-picker-option.is-selected {
  border-color: rgba(216, 168, 63, 0.48);
  background: rgba(216, 168, 63, 0.09);
}

.fight-picker-option span {
  display: grid;
  min-width: 0;
}

.fight-picker-option strong,
.fight-picker-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-picker-option small,
.fight-picker-option em,
.fight-picker-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.score-fight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.corner-card,
.summary-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.corner-card.blue,
.summary-card.blue {
  border-color: rgba(75, 131, 196, 0.55);
  background: rgba(75, 131, 196, 0.12);
}

.corner-card.red,
.summary-card.red {
  border-color: rgba(216, 74, 63, 0.58);
  background: rgba(216, 74, 63, 0.12);
}

.corner-card strong,
.summary-card strong {
  min-width: 0;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.corner-card small {
  display: block;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.corner-card small,
.corner-card span,
.summary-card span {
  color: var(--muted);
}

.corner-label {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.corner-vs {
  display: grid;
  place-items: center;
  width: 34px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.round-control {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.round-control div {
  display: grid;
  justify-items: center;
}

.round-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.round-control strong {
  font-size: 2rem;
}

.icon-button {
  width: 42px;
  padding: 0;
  font-size: 1.3rem;
}

.score-buttons {
  display: grid;
  grid-template-columns: 1fr;
}

.score-instruction {
  margin-bottom: 10px;
  text-align: center;
}

.score-instruction h3,
.score-instruction p {
  margin: 0;
}

.score-instruction h3 {
  margin-top: 3px;
  font-size: 1.3rem;
}

.score-instruction p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.round-winner-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-option {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 92px;
  padding: 12px 54px 12px 12px;
  text-align: center;
}

.score-choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.score-option strong {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.results-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.results-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(100%, 380px);
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
}

.results-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.results-search-summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

@media (max-width: 1260px) {
  .scorecard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .results-heading-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .results-search {
    width: 100%;
  }
}

.score-choice-copy > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.score-choice-photo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 950;
}

.score-choice-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-option em {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 30px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  font-style: normal;
  font-weight: 950;
}

.score-option.blue {
  border-color: rgba(75, 131, 196, 0.42);
}

.score-option.red {
  border-color: rgba(216, 74, 63, 0.46);
}

.score-option.even {
  border-color: rgba(216, 168, 63, 0.42);
}

.score-option.is-active {
  border-color: var(--green);
  background: rgba(82, 170, 117, 0.18);
}

.score-even-button {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 9px 58px 9px 12px;
  border: 1px solid rgba(216, 168, 63, 0.42);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
}

.score-even-button span {
  color: var(--muted);
  font-size: 0.8rem;
}

.score-even-button em {
  position: absolute;
  top: 10px;
  right: 10px;
  font-style: normal;
  font-weight: 950;
}

.score-even-button.is-active {
  border-color: var(--green);
  background: rgba(82, 170, 117, 0.18);
}

.advanced-score-options {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.advanced-score-options summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.advanced-score-options > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.score-option.is-compact {
  grid-template-columns: 1fr;
  min-height: 60px;
  padding-left: 10px;
}

.score-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.scorecard-share {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.scorecard-share[hidden] {
  display: none;
}

.scorecard-share > div {
  display: grid;
  gap: 4px;
}

.scorecard-share > div > strong {
  font-size: 1rem;
}

.scorecard-share > div > small {
  color: var(--muted);
  line-height: 1.4;
}

.scorecard-share-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  white-space: nowrap;
}

.scorecard-share-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.scorecard-share-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.scorecard-share-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.scorecard-share-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 2px;
  height: 13px;
  background: currentColor;
  transform: translateX(-50%);
}

.summary-card {
  position: relative;
  padding-right: 56px;
}

.summary-card em {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 950;
}

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

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
}

td {
  font-weight: 850;
}

td:first-child strong,
.round-call {
  display: block;
}

.round-call {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.active-round td,
.active-round th {
  background: rgba(255, 255, 255, 0.04);
}

.round-winner {
  color: #aee0c0;
}

tfoot th {
  color: var(--text);
  font-size: 1rem;
}

.score-status {
  margin: 14px 0 0;
}

.official-score {
  margin-top: 14px;
}

.official-result-card {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(216, 168, 63, 0.3);
  border-radius: 8px;
  background: rgba(216, 168, 63, 0.08);
}

.official-result-card.is-pending {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.official-result-card h3,
.official-result-card p {
  margin: 0;
}

.official-result-card h3 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 1.05rem;
}

.official-result-card p {
  color: var(--muted);
  line-height: 1.45;
}

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

.official-cards span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--muted);
  font-size: 0.82rem;
}

.official-cards strong {
  color: var(--text);
}

.winner-crown {
  position: relative;
  top: -1px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 18px;
  margin-right: 6px;
  font-size: 0;
  vertical-align: middle;
}

.winner-crown::before {
  content: "";
  width: 20px;
  height: 15px;
  clip-path: polygon(0 100%, 0 34%, 24% 64%, 50% 10%, 76% 64%, 100% 34%, 100% 100%);
  border-radius: 2px;
  background: linear-gradient(180deg, #ffe08a, #d8a83f 72%, #9e6d18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.winner-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 7px;
  padding: 0 8px;
  border: 1px solid rgba(216, 168, 63, 0.28);
  border-radius: 999px;
  background: rgba(216, 168, 63, 0.12);
  color: #f4d987;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
  vertical-align: middle;
}

.timeline {
  display: grid;
  gap: 10px;
}

.history-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 12px;
  padding: 24px 26px;
  border: 1px solid #252b30;
  border-radius: 8px;
  background: #11161a;
  color: #fff;
}

.history-masthead h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.history-masthead p {
  max-width: 620px;
  margin: 0;
  color: #aeb7bd;
  line-height: 1.5;
}

.history-date-block {
  display: grid;
  min-width: 220px;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.history-date-block > small {
  color: #909ba3;
  font-weight: 800;
  text-transform: uppercase;
}

.history-date-block > strong {
  font-size: 1.45rem;
}

.history-topic-strip {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  overflow-x: auto;
  border-block: 1px solid var(--line);
}

.history-topic-strip span {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.history-topic-strip span:first-child {
  padding-left: 0;
  border-left: 0;
  color: var(--text);
}

.history-live-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.history-masthead .history-live-status {
  color: #9aa5ad;
}

.history-live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.history-live-status.is-live i {
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}

.history-empty {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.history-empty strong {
  color: var(--text);
}

.history-empty span {
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.timeline-item.is-featured {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--line));
}

.timeline-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 7px;
}

.timeline-kicker span {
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--gold) 36%, var(--line));
  border-radius: 4px;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-kicker small {
  color: var(--muted);
  font-weight: 750;
}

@media (max-width: 700px) {
  .history-masthead {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .history-date-block {
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }
}

.timeline-media {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: #111;
}

.timeline-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.timeline-media figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 1;
  color: #f7d56f;
  font-size: 1.05rem;
  font-weight: 950;
}

.timeline-year {
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 950;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.timeline-copy {
  min-width: 0;
}

.timeline-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.timeline-details summary {
  width: fit-content;
  padding: 10px 22px 2px 0;
  color: #f0c66c;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.timeline-details summary::after {
  content: "+";
  margin-left: 8px;
  color: var(--muted);
}

.timeline-details[open] summary::after {
  content: "-";
}

.timeline-details-copy {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.timeline-links a {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

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

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    width: 100%;
    max-width: 100%;
    padding: 14px;
    overflow: hidden;
  }

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

  .nav-item {
    justify-content: center;
    min-height: 52px;
  }

  .nav-item span:last-child {
    font-size: 0.76rem;
  }

  .side-note {
    display: none;
  }

  .content-grid,
  .scorecard-layout,
  .news-layout,
  .boxer-home-grid,
  .boxer-layout,
  .country-grid,
  .rankings-layout {
    grid-template-columns: 1fr;
  }

  .advanced-boxer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .official-ranking-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-source-note {
    text-align: left;
  }

  .official-rankings-grid {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 14px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .main-content {
    padding: 8px;
  }

  .advanced-boxer-fields {
    grid-template-columns: 1fr;
  }

  .advanced-boxer-fields > *,
  .stance-filter-field {
    grid-column: 1;
  }

  .hero-panel {
    min-height: 320px;
  }

  .hero-content {
    padding: 16px;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .content-grid,
  .main-content {
    gap: 10px;
  }

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

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .ad-slot {
    grid-template-columns: 1fr;
    min-height: 76px;
    padding: 12px;
  }

  .sidebar {
    gap: 12px;
    padding: 10px 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .brand small {
    font-size: 0.76rem;
  }

  .nav-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
  }

  .theme-card {
    padding: 9px;
  }

  .theme-toggle button {
    min-height: 32px;
    font-size: 0.74rem;
  }

  .nav-item {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 48px;
    padding: 6px 2px;
    font-size: 0.72rem;
  }

  .nav-item span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .ranking-card {
    grid-template-columns: 30px 42px minmax(0, 1fr);
  }

  .ranking-record {
    grid-column: 3;
    justify-self: start;
  }

  .panel,
  .view-section,
  .news-strip {
    min-width: 0;
    max-width: 100%;
    padding: 12px;
    overflow: hidden;
  }

  .matchup-row,
  .fight-meta,
  .ad-slot,
  .fight-card,
  .event-bout,
  .timeline-item,
  .birthday-card,
  .profile-stats,
  .score-fight-card,
  .score-summary {
    grid-template-columns: 1fr;
  }

  .event-card-header {
    display: grid;
  }

  .event-card-header.has-poster {
    grid-template-columns: 1fr;
  }

  .event-poster {
    width: 100%;
    max-width: 420px;
  }

  .event-bout-media {
    width: fit-content;
  }

  .compact-action {
    width: 100%;
  }

  .event-bout-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tale-dialog {
    padding: 18px 14px;
  }

  .tale-matchup {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 6px;
  }

  .tale-vs {
    width: 34px;
    height: 34px;
  }

  .tale-stat-row {
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    padding-inline: 7px;
  }

  .tale-form {
    grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr);
    padding-inline: 7px;
  }

  .boxer-search-form {
    display: grid;
  }

  .prediction-form,
  .score-buttons,
  .round-control,
  .feed-source-row,
  .hero-actions {
    min-width: 0;
    max-width: 100%;
  }

  select,
  input {
    min-height: 40px;
    font-size: 1rem;
  }

  .primary-action,
  .secondary-action,
  .score-option,
  .icon-button {
    min-height: 40px;
  }

  .boxer-result {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .boxer-result strong {
    font-size: 1rem;
  }

  .boxer-result span span {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .result-photo,
  .birthday-photo {
    width: 48px;
    height: 48px;
  }

  .profile-avatar.has-photo {
    width: 76px;
    height: 76px;
  }

  .profile-head {
    gap: 10px;
  }

  .stat-card,
  .fight-row,
  .recent-fight,
  .country-card,
  .feed-item,
  .blog-card {
    padding: 10px;
  }

  .feed-slider {
    min-height: 170px;
  }

  .feed-slide {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
  }

  .feed-slide-image {
    height: 124px;
  }

  .official-cards {
    grid-template-columns: 1fr;
  }

  .feed-slide {
    padding: 12px;
  }

  .timeline-media {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .matchup-row {
    padding: 12px;
  }

  .fighter-photo {
    width: 96px;
    height: 96px;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    padding: 9px;
    overflow-wrap: anywhere;
  }

  .versus {
    justify-self: center;
  }

  .fight-card {
    align-items: start;
    gap: 12px;
  }

  .fight-card-media {
    justify-content: start;
  }

  .score-buttons {
    grid-template-columns: 1fr;
  }

  .round-winner-choices,
  .advanced-score-options > div {
    grid-template-columns: 1fr;
  }

  .score-option {
    text-align: left;
  }
}

/* Live data and favorites */
.connection-chip {
  background: transparent;
}

.connection-chip:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.connection-chip.is-refreshing i {
  animation: live-pulse 800ms ease infinite alternate;
}

@keyframes live-pulse {
  from { opacity: 0.35; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.15); }
}

.favorite-callout {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid rgba(213, 170, 75, 0.32);
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
}

.bout-favorite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 2px solid var(--amber);
  background: var(--gold-soft);
  font-size: 0.76rem;
}

.bout-favorite span {
  color: var(--muted);
  font-weight: 800;
}

.bout-favorite strong {
  color: var(--text);
}

.bout-favorite em {
  color: var(--amber);
  font-style: normal;
  font-weight: 900;
}

.favorite-star {
  margin-left: 6px;
  color: var(--amber) !important;
  font-size: 0.82rem;
}

.favorite-boxer-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.favorite-boxer-button span {
  color: var(--amber);
  font-size: 1.05rem;
}

.favorite-boxer-button.is-favorite {
  border-color: rgba(213, 170, 75, 0.38);
  background: var(--gold-soft);
  color: var(--amber);
}

.favorites-shelf {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: 8px;
  background: var(--panel);
}

.favorite-boxer-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.favorite-boxer-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
}

.favorite-boxer-card:hover {
  border-color: rgba(213, 170, 75, 0.35);
}

.favorite-boxer-card > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 52px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--amber);
  font-weight: 950;
}

.favorite-boxer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-boxer-card strong,
.favorite-boxer-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-boxer-card small {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .favorite-boxer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .favorites-shelf {
    padding: 14px;
  }

  .favorite-boxer-list {
    grid-template-columns: 1fr;
  }

  .favorite-boxer-button {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

/* Elevated fight-night visual system */
:root {
  --bg: #0b0d0f;
  --sidebar-bg: #0e1113;
  --panel: #15191c;
  --panel-strong: #1b2024;
  --panel-soft: rgba(255, 255, 255, 0.045);
  --text: #f6f3ec;
  --muted: #aaa69d;
  --line: rgba(255, 255, 255, 0.1);
  --red: #df3f35;
  --amber: #d5aa4b;
  --blue: #4b8fd8;
  --green: #56b77a;
  --brand-bg: #080a0b;
  --nav-icon-bg: rgba(255, 255, 255, 0.06);
  --hero-bg: #080a0b;
  --hero-overlay: rgba(8, 10, 11, 0.74);
  --hero-text: #f6f3ec;
  --input-bg: #0f1214;
  --danger-solid: #df3f35;
  --on-solid: #fff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --gold-soft: rgba(213, 170, 75, 0.12);
  --red-soft: rgba(223, 63, 53, 0.12);
  --blue-soft: rgba(75, 143, 216, 0.12);
}

:root[data-theme="light"] {
  --bg: #f1f0ec;
  --sidebar-bg: #faf9f6;
  --panel: #fff;
  --panel-strong: #f5f3ee;
  --panel-soft: rgba(17, 22, 26, 0.04);
  --text: #171a1c;
  --muted: #716e67;
  --line: rgba(20, 24, 27, 0.12);
  --red: #c9352d;
  --amber: #a8791f;
  --blue: #276eb7;
  --green: #328653;
  --brand-bg: #eeece6;
  --nav-icon-bg: rgba(20, 24, 27, 0.06);
  --hero-bg: #101315;
  --hero-overlay: rgba(255, 255, 255, 0.84);
  --hero-text: #f6f3ec;
  --input-bg: #fbfaf7;
  --danger-solid: #cc382f;
  --shadow: 0 24px 60px rgba(35, 28, 18, 0.13);
  --gold-soft: rgba(168, 121, 31, 0.1);
  --red-soft: rgba(201, 53, 45, 0.09);
  --blue-soft: rgba(39, 110, 183, 0.09);
}

body {
  background-color: var(--bg);
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

button:active {
  transform: translateY(1px);
}

.app-shell {
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  z-index: 20;
  gap: 22px;
  padding: 22px 18px;
  border-right-color: var(--line);
}

.brand {
  padding: 2px 4px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
}

.brand strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.brand small {
  margin-top: 2px;
  font-size: 0.72rem;
}

.nav-list {
  gap: 5px;
}

.nav-item {
  min-height: 42px;
  padding: 7px 9px;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: transparent;
  background: var(--panel-strong);
}

.nav-item.is-active {
  box-shadow: inset 3px 0 0 var(--red);
}

.nav-item.is-active .nav-icon {
  background: var(--red);
  color: #fff;
  box-shadow: 0 5px 14px rgba(200, 74, 66, 0.24);
}

.nav-item:hover .nav-icon {
  transform: translateY(-1px);
}

.nav-more {
  display: none;
}

.nav-more-icon::before,
.nav-more-icon::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.nav-more-icon::before {
  left: 5px;
  box-shadow: 6px 0 0 currentColor, 12px 0 0 currentColor;
}

.theme-card {
  margin-top: auto;
  padding: 10px;
  background: transparent;
}

.theme-card > span {
  font-size: 0.66rem;
}

.theme-toggle button {
  min-height: 30px;
  border-radius: 6px;
  font-size: 0.7rem;
}

.language-card {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.language-card select {
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background-color: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: none;
}

html[dir="rtl"] .nav-item.is-active {
  box-shadow: inset -3px 0 0 var(--red);
}

html[dir="rtl"] .side-note::before {
  right: 0;
  left: auto;
}

html[dir="rtl"] .support-close {
  right: auto;
  left: 10px;
}

html[dir="rtl"] .summary-card {
  padding-right: 12px;
  padding-left: 56px;
}

html[dir="rtl"] .summary-card em {
  right: auto;
  left: 12px;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  text-align: right;
}

html[dir="rtl"] .country-fighter-arrow,
html[dir="rtl"] .event-card-arrow {
  transform: scaleX(-1);
}

.side-note {
  position: relative;
  overflow: hidden;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.side-note::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--amber);
}

.side-note.is-live::before {
  background: var(--green);
}

.side-note strong {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  line-height: 1.4;
}

.main-content {
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.app-topbar > div:first-child {
  display: grid;
  gap: 2px;
}

.topbar-kicker {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-topbar strong {
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.connection-chip,
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.connection-chip i,
.hero-status i,
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(213, 170, 75, 0.12);
}

.connection-chip.is-live i,
.hero-status i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(86, 183, 122, 0.12);
}

.topbar-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
}

.search-glyph {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.hero-panel {
  min-height: 270px;
  border-color: rgba(255, 255, 255, 0.1);
  background: #090b0d;
}

.hero-media,
:root[data-theme="light"] .hero-media {
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.94) 0%, rgba(5, 7, 8, 0.71) 48%, rgba(5, 7, 8, 0.16) 78%),
    linear-gradient(0deg, rgba(5, 7, 8, 0.9), transparent 62%),
    url("assets/ringside.png") center / cover;
  transform: scale(1.01);
}

.hero-content {
  z-index: 2;
  max-width: 680px;
  padding: 32px;
}

.hero-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-status {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(6, 8, 9, 0.56);
  color: #f5f2eb;
  backdrop-filter: blur(12px);
}

.hero-edition {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-content h1 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 2.65rem;
  line-height: 1;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 610px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.62;
}

.hero-actions {
  gap: 10px;
}

.hero-actions .primary-action {
  min-height: 48px;
  padding: 0 20px;
}

.hero-actions .primary-action span {
  margin-left: 12px;
  font-size: 1.1rem;
}

.hero-secondary {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 11, 0.48);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-corner-mark {
  position: absolute;
  right: 24px;
  bottom: -34px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.08);
  font-size: 13rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.pulse-rail {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.72fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pulse-rail button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 82px;
  padding: 13px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.pulse-rail button:last-child {
  border-right: 0;
}

.pulse-rail button:hover {
  background: var(--panel-soft);
}

.pulse-rail span,
.pulse-rail small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-rail span {
  text-transform: uppercase;
}

.pulse-rail strong {
  overflow: hidden;
  font-size: 1.35rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-rail button:first-child strong {
  font-size: 1rem;
}

.ad-slot {
  min-height: 110px;
  padding: 22px 12px 10px;
  background: var(--panel-soft);
}

.content-grid,
.boxer-home-grid {
  gap: 16px;
}

.boxer-home-grid {
  grid-template-columns: 1fr;
}

.content-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.panel,
.view-section,
.news-strip {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.panel {
  padding: 20px;
}

.view-section {
  padding: 26px;
}

.section-heading .eyebrow {
  gap: 8px;
  color: var(--amber);
  font-size: 0.68rem;
}

.fight-night-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 27px;
  padding: 4px 9px 4px 7px;
  border: 1px solid rgba(240, 198, 108, 0.34);
  border-radius: 999px;
  background: rgba(240, 198, 108, 0.08);
  color: var(--amber);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.fight-night-kicker.is-upcoming .eyebrow-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(86, 183, 122, 0.12);
}

.fight-night-kicker.is-complete {
  border-color: rgba(240, 198, 108, 0.28);
  background: rgba(240, 198, 108, 0.06);
}

.fight-night-kicker.is-complete .eyebrow-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(240, 198, 108, 0.11);
}

.section-heading h2 {
  margin-top: 5px;
  font-size: 1.55rem;
}

.next-fight-panel {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--red);
}

.next-fight-panel > .section-heading {
  position: relative;
  padding-right: 116px;
}

.fight-carousel-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-columns: 32px auto 32px;
  gap: 5px;
  align-items: center;
}

.fight-carousel-controls button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.fight-carousel-controls button:hover,
.fight-carousel-controls button:focus-visible {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, var(--panel-soft));
  color: var(--amber);
  transform: translateY(-1px);
}

.fight-carousel-controls button:disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
}

.fight-carousel-controls span {
  min-width: 34px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.next-fight-panel.is-switching .matchup-row,
.next-fight-panel.is-switching .fight-meta {
  animation: featured-fight-enter 280ms var(--ease-out) both;
}

@keyframes featured-fight-enter {
  from { opacity: 0.25; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.matchup-row {
  min-height: 230px;
  padding: 20px;
  border: 0;
  background: var(--panel-strong);
}

.fighter-photo {
  width: 118px;
  height: 142px;
  border: 0;
  border-radius: 7px;
  background: var(--blue-soft);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.fighter-initial.is-red {
  background: var(--red-soft);
}

.fighter-block strong {
  max-width: 210px;
  font-size: 1.05rem;
}

.fighter-block small {
  font-weight: 800;
}

.versus {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--amber);
}

.fight-meta {
  gap: 8px;
}

.fight-meta div {
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.fight-meta dd {
  font-size: 0.83rem;
  line-height: 1.35;
}

.featured-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}

.reminder-button.is-saved {
  border-color: rgba(86, 183, 122, 0.42);
  background: rgba(86, 183, 122, 0.12);
  color: var(--green);
}

.prediction-panel {
  border-top: 3px solid var(--blue);
}

.prediction-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.prediction-form label:first-child,
.prediction-form button {
  grid-column: 1 / -1;
}

.prediction-form.is-full-distance label:nth-child(2) {
  grid-column: 1 / -1;
}

.prediction-meter {
  border: 0;
  background: var(--panel-strong);
}

.saved-pick {
  border-left-color: var(--amber);
  background: var(--gold-soft);
  color: var(--text);
}

.news-strip {
  padding: 20px;
}

.feed-slider {
  min-height: 204px;
  border: 0;
  background: var(--panel-strong);
}

.feed-slide {
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
}

.feed-slide-image {
  height: 170px;
}

.feed-slide h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.source-pill,
.time-pill,
.pill {
  border-radius: 5px;
}

.event-card {
  padding: 18px;
  border-left: 3px solid var(--blue);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.event-card.is-recent-result {
  border-left-color: var(--amber);
  background: var(--panel);
}

.event-card-header {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.event-card-header h3 {
  font-size: 1.25rem;
}

.event-bout {
  padding: 12px;
  border-color: transparent;
  background: var(--panel-strong);
}

.event-bout.is-main {
  border-color: rgba(86, 183, 122, 0.28);
  background: rgba(86, 183, 122, 0.07);
}

.mini-fighter {
  border: 0;
  border-radius: 6px;
}

.profile-avatar.has-photo {
  width: 118px;
  height: 144px;
  border-radius: 7px;
}

.profile-stats {
  gap: 8px;
}

.stat-card {
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
}

.ranking-card {
  border-color: transparent;
}

.ranking-rank {
  border-radius: 5px;
}

.score-input-panel {
  border-top: 3px solid var(--red);
}

.score-table-panel {
  border-top: 3px solid var(--blue);
}

.score-option {
  border-width: 1px 1px 1px 3px;
}

.timeline-item {
  border-color: transparent;
}

/* Rankings experience */
#rankings { width: 100%; min-width: 0; overflow: hidden; }
.rankings-masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 24px 26px;
  border: 1px solid #242a30;
  border-radius: 8px;
  background: #11161a;
  color: #fff;
}

.rankings-masthead::after {
  position: absolute;
  right: -50px;
  bottom: -110px;
  width: 310px;
  height: 190px;
  border: 26px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.rankings-masthead > * { position: relative; z-index: 1; }
.rankings-masthead .eyebrow { color: #d8a83f; }
.rankings-masthead h2 { margin: 5px 0 7px; color: #fff; font-size: clamp(1.8rem, 4vw, 2.65rem); }
.rankings-masthead p { max-width: 620px; margin: 0; color: #aeb7bd; line-height: 1.5; }

.rankings-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  min-width: 300px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.rankings-snapshot span { display: grid; gap: 2px; padding: 13px 14px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.rankings-snapshot span:first-child { border-left: 0; }
.rankings-snapshot strong { color: #fff; font-size: 1.25rem; }
.rankings-snapshot small { color: #919ca4; font-size: 0.66rem; font-weight: 800; }

#rankings .ranking-view-switch { display: grid; width: min(100%, 720px); }
#rankings .ranking-view-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 12px;
  text-align: left;
}

.ranking-view-button > span:last-child { display: grid; gap: 1px; }
.ranking-view-button strong { color: inherit; font-size: 0.82rem; }
.ranking-view-button small { color: var(--muted); font-size: 0.66rem; font-weight: 750; }
.ranking-view-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--gold); font-size: 0.88rem; }
.ranking-view-icon.is-belt::before { width: 18px; height: 10px; border: 2px solid currentColor; border-radius: 2px; box-shadow: -7px 0 0 -4px currentColor, 7px 0 0 -4px currentColor; content: ""; }

#rankings .official-ranking-toolbar { padding: 12px 14px; background: var(--panel-soft); }
#official-rankings-view,
#rankings .official-rankings-grid,
#rankings .ranking-division-banner,
#rankings .ranking-board,
#rankings .championship-strip,
#rankings .ranking-board-body,
#rankings .organization-contenders { width: 100%; min-width: 0; }
#rankings .championship-chip { overflow: hidden; }
#rankings .championship-chip strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.official-division-label { display: none; }

.ranking-division-picker {
  margin: 0 0 14px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--panel-soft);
}

.ranking-division-picker-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px 10px;
}

.ranking-division-picker-header > div {
  display: grid;
  gap: 2px;
}

.ranking-division-picker-header strong {
  color: var(--text);
  font-size: 1rem;
}

.ranking-division-picker-header > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.ranking-division-rail {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.ranking-division-rail::-webkit-scrollbar { display: none; }

.ranking-division-button {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(94px, 1fr);
  flex: 0 0 auto;
  gap: 9px;
  align-items: center;
  min-width: 170px;
  min-height: 64px;
  padding: 8px 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--text);
  text-align: left;
  scroll-snap-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ranking-division-button:hover,
.ranking-division-button:focus-visible {
  border-color: color-mix(in srgb, var(--gold) 64%, var(--line));
  transform: translateY(-1px);
}

.ranking-division-weight {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
}

.ranking-division-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ranking-division-copy strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-division-copy small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.ranking-division-button.is-active {
  grid-template-columns: 42px minmax(100px, 1fr);
  min-width: 200px;
  border-color: #20262b;
  background: #15191d;
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}

.ranking-division-button.is-active .ranking-division-weight {
  border-color: rgba(216, 168, 63, 0.5);
  background: rgba(216, 168, 63, 0.14);
  color: #e6bd64;
}

.ranking-division-button.is-active .ranking-division-copy small { color: #aeb7bd; }

.ranking-division-selected {
  position: absolute;
  top: 5px;
  right: 7px;
  color: #e6bd64;
  font-size: 0.5rem;
  font-weight: 950;
  text-transform: uppercase;
}

#rankings .ranking-division-banner { background: linear-gradient(110deg, var(--panel-strong), var(--panel)); }
#rankings .championship-chip { min-height: 92px; padding: 10px 11px; }
.championship-chip-org { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.championship-chip-org b { color: var(--organization-color); font-size: 0.7rem; font-weight: 950; }
.championship-chip-org i { color: var(--muted); font-size: 0.58rem; font-style: normal; font-weight: 800; }
.championship-chip-holder { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: center; }
.championship-chip-holder > span:last-child { display: grid; min-width: 0; gap: 1px; }
.championship-chip-holder small { color: var(--muted); font-size: 0.58rem; font-weight: 800; }
.championship-chip-photo { display: grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, var(--organization-color) 13%, var(--panel-soft)); color: var(--organization-color); font-size: 0.58rem; font-weight: 950; }
.championship-chip-photo img { width: 100%; height: 100%; object-fit: cover; }

#rankings .ranking-board { border-top: 3px solid var(--organization-color); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }
#rankings .ranking-champion-stage { background: color-mix(in srgb, var(--organization-color) 10%, var(--panel-strong)); }
.ranking-champion-kicker { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.ranking-champion-kicker > span:last-child { color: var(--muted); font-size: 0.64rem; font-weight: 800; }
#rankings .ranking-champion-photo { aspect-ratio: 4 / 3; }
#rankings .official-ranking-row.is-leading-contender { border-left: 3px solid color-mix(in srgb, var(--organization-color) 72%, transparent); background: color-mix(in srgb, var(--organization-color) 4%, transparent); }
#rankings .official-ranking-row.is-leading-contender .official-ranking-number { background: var(--organization-color); color: #fff; }
#rankings .official-ranking-arrow { font-size: 1rem; }

.ranking-card.is-podium { border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 7%, var(--panel-strong)); }
.ranking-card.rank-1 .ranking-rank { background: #d8a83f; color: #15120b; }
.ranking-card.rank-2 .ranking-rank { background: #b7bec4; color: #11161a; }
.ranking-card.rank-3 .ranking-rank { background: #a86f45; color: #fff; }

@media (max-width: 760px) {
  .rankings-masthead { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .rankings-snapshot { min-width: 0; }
  #rankings .ranking-view-button { grid-template-columns: 28px minmax(0, 1fr); padding: 7px 9px; }
  .ranking-view-icon { width: 28px; height: 28px; }
  .ranking-view-button small { display: none; }
  #rankings .championship-strip { display: flex; grid-template-columns: none; overflow-x: auto; }
  #rankings .championship-chip { flex: 0 0 min(220px, 78vw); }
  #rankings .ranking-board .official-ranking-name small { white-space: normal; }
}

@media (min-width: 921px) {
  .main-content > [data-view]:not([hidden]),
  .main-content > .content-grid,
  .main-content > .boxer-home-grid,
  .main-content > .news-strip,
  .main-content > .ad-slot,
  .main-content > .pulse-rail {
    animation: bapp-rise 420ms ease both;
  }

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

@media (max-width: 1100px) and (min-width: 921px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .pulse-rail {
    grid-template-columns: 1.35fr repeat(2, minmax(0, 0.8fr));
  }

  .pulse-rail button:nth-child(2) {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand small,
  .theme-card > span,
  .language-card > span,
  .side-note {
    display: none;
  }

  .theme-card {
    width: min(160px, 42vw);
    flex: 0 0 min(160px, 42vw);
    margin: 0;
    padding: 5px;
    border: 0;
  }

  .language-card {
    width: 86px;
    flex: 0 0 86px;
    margin: 0;
  }

  .language-card select {
    min-height: 36px;
    padding: 0 24px 0 7px;
    font-size: 0.7rem;
  }

  .nav-list {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--sidebar-bg);
    background: color-mix(in srgb, var(--sidebar-bg) 94%, transparent);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(20px);
  }

  .nav-item {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 4px 2px;
    border: 0;
    font-size: 0.64rem;
    text-align: center;
  }

  .nav-item:nth-child(1),
  .nav-item:nth-child(3),
  .nav-item:nth-child(4),
  .nav-item:nth-child(5),
  .nav-item:nth-child(10),
  .nav-more {
    display: flex;
  }

  .nav-item.is-active {
    box-shadow: none;
    color: var(--red);
  }

  .nav-list.is-expanded .nav-item:nth-child(2),
  .nav-list.is-expanded .nav-item:nth-child(6),
  .nav-list.is-expanded .nav-item:nth-child(7),
  .nav-list.is-expanded .nav-item:nth-child(8),
  .nav-list.is-expanded .nav-item:nth-child(9) {
    position: fixed;
    right: 12px;
    left: 12px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 0.82rem;
    text-align: left;
  }

  .nav-list.is-expanded .nav-item:nth-child(2) { bottom: calc(294px + env(safe-area-inset-bottom)); }
  .nav-list.is-expanded .nav-item:nth-child(6) { bottom: calc(242px + env(safe-area-inset-bottom)); }
  .nav-list.is-expanded .nav-item:nth-child(7) { bottom: calc(190px + env(safe-area-inset-bottom)); }
  .nav-list.is-expanded .nav-item:nth-child(8) { bottom: calc(138px + env(safe-area-inset-bottom)); }
  .nav-list.is-expanded .nav-item:nth-child(9) { bottom: calc(86px + env(safe-area-inset-bottom)); }

  .main-content {
    padding: 0 14px 24px;
  }

  .app-topbar {
    min-height: 60px;
  }

  .content-grid,
  .scorecard-layout,
  .news-layout,
  .boxer-home-grid,
  .boxer-layout,
  .country-grid,
  .rankings-layout {
    grid-template-columns: 1fr;
  }

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

  .pulse-rail button:nth-child(2) {
    border-right: 0;
  }

  .pulse-rail button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .sidebar {
    gap: 7px;
    padding-inline: 10px;
  }

  .brand {
    flex: 0 0 auto;
    gap: 7px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand > span:last-child strong {
    font-size: 0.82rem;
  }

  .theme-card {
    width: min(146px, 39vw);
    flex-basis: min(146px, 39vw);
  }

  .language-card {
    width: 78px;
    flex-basis: 78px;
  }

  html[dir="rtl"] .brand > span:last-child {
    display: none;
  }

  .main-content {
    gap: 10px;
    padding: 0 8px 18px;
  }

  .app-topbar {
    min-height: 54px;
    padding: 8px 2px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .topbar-account {
    max-width: 150px;
    gap: 7px;
  }

  .account-avatar {
    display: none;
  }

  .account-role {
    display: none;
  }

  .account-record {
    grid-template-columns: repeat(3, 20px);
  }

  .account-record small {
    display: none;
  }

  .topbar-actions:has(.topbar-account.is-signed-in) .topbar-donate {
    display: none;
  }

  .topbar-kicker,
  .topbar-search span:last-child,
  .connection-chip {
    display: none;
  }

  .topbar-search {
    width: 38px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
  }

  .hero-panel {
    min-height: 250px;
  }

  .hero-media,
  :root[data-theme="light"] .hero-media {
    background:
      linear-gradient(0deg, rgba(5, 7, 8, 0.94) 0%, rgba(5, 7, 8, 0.5) 70%, rgba(5, 7, 8, 0.18)),
      url("assets/ringside.png") 62% center / cover;
  }

  .hero-content {
    padding: 20px 18px;
  }

  .hero-status-row {
    margin-bottom: 16px;
  }

  .hero-edition {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }

  .hero-content p {
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-actions {
    display: flex;
  }

  .hero-corner-mark {
    right: 8px;
    bottom: -16px;
    font-size: 8rem;
  }

  .pulse-rail button {
    min-height: 74px;
    padding: 10px;
  }

  .pulse-rail strong {
    font-size: 1.2rem;
  }

  .pulse-rail button:first-child strong {
    font-size: 0.88rem;
  }

  .ad-slot {
    min-height: 100px;
  }

  .panel,
  .view-section,
  .news-strip {
    padding: 14px;
  }

  .section-heading h2 {
    font-size: 1.35rem;
  }

  .matchup-row {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    gap: 6px;
    min-height: 190px;
    padding: 14px 8px;
  }

  .fighter-photo {
    width: 82px;
    height: 104px;
  }

  .fighter-block strong {
    font-size: 0.88rem;
  }

  .versus {
    width: 38px;
    height: 38px;
  }

  .fight-meta {
    grid-template-columns: 1fr;
  }

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

  .prediction-form {
    grid-template-columns: 1fr;
  }

  .prediction-form label:first-child,
  .prediction-form button {
    grid-column: auto;
  }

  .feed-slider {
    min-height: 310px;
  }

  .feed-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
  }

  .feed-slide-image {
    height: 132px;
  }

  .feed-slide h3 {
    font-size: 1.05rem;
  }

  .event-bout {
    grid-template-columns: 1fr;
  }

  .event-bout-media {
    width: fit-content;
  }

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

  .score-fight-card,
  .score-summary {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

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

  .scorecard-share {
    align-items: stretch;
    flex-direction: column;
  }

  .scorecard-share-button {
    width: 100%;
  }
}

/* Keep motion polish above the final responsive visual rules. */
button,
a,
input,
select,
summary {
  transition:
    color 180ms var(--ease-standard),
    background-color 180ms var(--ease-standard),
    border-color 180ms var(--ease-standard),
    box-shadow 220ms var(--ease-out),
    opacity 180ms var(--ease-standard),
    transform 220ms var(--ease-out);
}

.nav-item.is-active {
  box-shadow: none;
}

.main-content > [data-view].view-enter:not([hidden]),
.main-content > .view-enter:not([hidden]) {
  animation: view-enter 440ms var(--ease-out) both;
  animation-delay: var(--view-delay, 0ms);
}

@media (hover: hover) and (pointer: fine) {
  .primary-action:not(:disabled):hover,
  .secondary-action:not(:disabled):hover,
  .topbar-search:hover,
  .topbar-donate:hover {
    transform: translateY(-1px);
  }
}

.prediction-fight-label {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.saved-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.saved-pick button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--amber) 38%, var(--line));
  border-radius: 6px;
  background: transparent;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 900;
}

.bout-predict-action.has-pick {
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
  background: color-mix(in srgb, var(--green) 10%, var(--panel-soft));
  color: var(--green);
}

.bout-user-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 8px;
  border-left: 2px solid var(--green);
  background: color-mix(in srgb, var(--green) 9%, transparent);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.bout-user-pick strong {
  color: var(--green);
}

.fight-prediction-dialog {
  width: min(100%, 620px);
}

.fight-prediction-dialog h2 {
  max-width: calc(100% - 34px);
  overflow-wrap: anywhere;
  font-size: 1.35rem;
}

.fight-prediction-meta {
  margin-bottom: 18px;
  font-size: 0.8rem;
}

.fight-prediction-form,
.fight-prediction-form fieldset {
  display: grid;
  gap: 12px;
}

.fight-prediction-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fight-prediction-form legend,
.fight-prediction-form label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.fight-prediction-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fight-prediction-choice {
  display: grid;
  justify-items: center;
  min-width: 0;
  min-height: 122px;
  gap: 7px;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: center;
}

.fight-prediction-choice > span {
  display: grid;
  width: 64px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 950;
}

.fight-prediction-choice > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.fight-prediction-choice strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  line-height: 1.25;
}

.fight-prediction-choice.blue.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.fight-prediction-choice.red.is-active {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: inset 0 -3px 0 var(--red);
}

.fight-prediction-choice.draw.is-active {
  border-color: var(--amber);
  background: var(--gold-soft);
  box-shadow: inset 0 -3px 0 var(--amber);
}

.daily-panel {
  min-width: 0;
}

.daily-home-teaser {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(208, 164, 70, 0.38);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(208, 164, 70, 0.12), rgba(255, 255, 255, 0.035));
}

.daily-home-teaser-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font-weight: 950;
}

.daily-home-teaser h2,
.daily-home-teaser p {
  margin: 0;
}

.daily-home-teaser h2 {
  margin-top: 3px;
  font-size: 1.02rem;
}

.daily-home-teaser p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .daily-home-teaser {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .daily-home-teaser .secondary-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.daily-challenge-spotlight {
  margin: 14px 0 18px;
  padding: 1px;
  border: 1px solid rgba(208, 164, 70, 0.45);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(208, 164, 70, 0.25), rgba(200, 74, 66, 0.16) 48%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.daily-challenge-spotlight-inner {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(180px, 230px);
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border-radius: 9px;
  background: var(--panel);
  min-width: 0;
}

.daily-challenge-copy {
  min-width: 0;
}

.daily-challenge-mark {
  display: grid;
  place-items: center;
  align-content: center;
  aspect-ratio: 1;
  border: 1px solid rgba(208, 164, 70, 0.58);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(208, 164, 70, 0.26), transparent 62%), var(--panel-strong);
  color: var(--amber);
  text-align: center;
}

.daily-challenge-mark span {
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.daily-challenge-mark strong {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.daily-challenge-copy .section-heading {
  min-width: 0;
  margin-bottom: 10px;
}

.daily-challenge-copy .section-heading h2 {
  margin-top: 3px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

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

.daily-badge {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  opacity: 0.48;
}

.daily-badge b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.72rem;
}

.daily-badge small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.daily-badge.is-unlocked {
  border-color: rgba(208, 164, 70, 0.55);
  opacity: 1;
}

.daily-badge.is-unlocked b {
  background: var(--amber);
  color: #17130d;
}

.daily-badge.is-unlocked small {
  color: var(--text);
}

@media (max-width: 760px) {
  .daily-challenge-spotlight-inner {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .daily-challenge-mark {
    width: 62px;
  }

  .daily-badges {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .daily-badge {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.featured-event-summary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.featured-refresh-note {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--muted) 82%, white 18%);
  font-size: 0.76rem;
  line-height: 1.35;
}

.daily-panel .section-heading p {
  margin: 4px 0 0;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
}

.daily-question {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 6px 0 14px;
}

.daily-question strong {
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.daily-question span,
.daily-complete p,
.daily-complete small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.daily-choices button {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
  color: var(--text);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 750;
  overflow-wrap: anywhere;
  white-space: normal;
}

.daily-choices button:hover,
.daily-choices button:focus-visible {
  border-color: var(--amber);
  background: rgba(208, 164, 70, 0.1);
}

.daily-complete {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(208, 164, 70, 0.32);
  border-radius: 7px;
  background: rgba(208, 164, 70, 0.08);
}

.daily-complete strong,
.daily-complete p,
.daily-complete small {
  margin: 0;
}

.fight-prediction-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.fight-prediction-details.is-full-distance {
  grid-template-columns: minmax(0, 1fr);
}

.fight-prediction-details label {
  display: grid;
  gap: 6px;
}

.fight-prediction-details select,
.fight-prediction-details input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 10px;
}

.fight-prediction-save {
  width: 100%;
}

@media (max-width: 640px) {
  .event-bout-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fight-prediction-dialog {
    padding: 20px 14px;
  }

  .fight-prediction-choice {
    min-height: 108px;
  }

  .fight-prediction-choice > span {
    width: 54px;
    height: 56px;
  }

  .fight-prediction-details {
    grid-template-columns: minmax(0, 1fr) 92px;
  }
}

/* Rankings polish */
#rankings.view-section {
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#rankings .rankings-masthead {
  min-height: 210px;
  margin-bottom: 12px;
  padding: 30px 32px;
  border: 0;
  border-top: 3px solid var(--red);
  background:
    linear-gradient(90deg, rgba(198, 47, 55, 0.09), transparent 38%),
    #101417;
  box-shadow: inset 0 0 0 1px #242a30;
}

#rankings .rankings-masthead::after {
  display: none;
}

#rankings .rankings-masthead h2 {
  max-width: 720px;
  font-size: 2.45rem;
}

#rankings .rankings-snapshot {
  align-self: stretch;
  min-width: 330px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.18);
}

#rankings .rankings-snapshot span {
  align-content: end;
  padding: 18px 16px;
}

#rankings .rankings-snapshot strong {
  color: #e6bd64;
  font-size: 1.65rem;
}

#rankings .ranking-view-switch {
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

#rankings .ranking-view-button {
  position: relative;
  min-height: 68px;
  padding: 10px 16px 12px;
  border-radius: 0;
}

#rankings .ranking-view-button.is-active {
  background: color-mix(in srgb, var(--red) 7%, transparent);
  box-shadow: none;
}

#rankings .ranking-view-button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--red);
  content: "";
}

#rankings .ranking-view-button.is-active .ranking-view-icon {
  border-color: color-mix(in srgb, var(--red) 62%, var(--line));
  background: color-mix(in srgb, var(--red) 12%, var(--panel-strong));
  color: var(--text);
}

#rankings .official-ranking-toolbar {
  margin-bottom: 0;
  padding: 14px 16px;
  border: 0;
  background: var(--panel);
}

#rankings .ranking-sex-switch {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-soft);
}

#rankings .ranking-sex-switch button {
  min-width: 104px;
  min-height: 39px;
}

#rankings .ranking-sex-switch button.is-active {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

#rankings .ranking-division-picker {
  margin-bottom: 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

#rankings .ranking-division-picker-header {
  padding: 16px 16px 12px;
}

#rankings .ranking-division-rail {
  gap: 6px;
  padding: 0 16px 16px;
}

#rankings .ranking-division-button {
  grid-template-columns: 38px minmax(90px, 1fr);
  min-width: 156px;
  min-height: 58px;
  border-color: transparent;
  background: var(--panel-soft);
}

#rankings .ranking-division-button.is-active {
  grid-template-columns: 38px minmax(96px, 1fr);
  min-width: 180px;
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  background: color-mix(in srgb, var(--gold) 8%, var(--panel-strong));
  box-shadow: inset 3px 0 0 var(--gold);
}

#rankings .ranking-division-weight {
  width: 38px;
  height: 38px;
}

#rankings .ranking-division-banner {
  padding: 18px 20px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

#rankings .championship-chip {
  border-top-width: 2px;
  background: var(--panel);
}

#rankings .championship-chip.is-active {
  box-shadow: inset 0 0 0 1px var(--organization-color);
}

#rankings .p4p-source-bar {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

#rankings .rankings-layout {
  gap: 12px;
}

#rankings .ranking-panel {
  padding: 18px;
  border-top: 3px solid var(--gold);
  box-shadow: none;
}

#rankings .ranking-card {
  min-height: 64px;
  border-color: transparent;
  border-bottom-color: var(--line);
  border-radius: 0;
  background: transparent;
}

#rankings .ranking-card.rank-1 {
  grid-template-columns: 42px 74px minmax(0, 1fr) auto;
  min-height: 104px;
  margin-bottom: 5px;
  padding: 14px 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--gold) 8%, var(--panel-strong));
}

#rankings .ranking-card.rank-1 .ranking-rank {
  width: 38px;
  height: 38px;
  font-size: 1rem;
}

#rankings .ranking-card.rank-1 .ranking-photo {
  width: 74px;
  height: 78px;
  border-radius: 6px;
}

#rankings .ranking-card.rank-1 .ranking-copy strong {
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  #rankings .rankings-masthead {
    min-height: 0;
    padding: 22px 18px;
  }

  #rankings .rankings-masthead h2 {
    font-size: 2rem;
  }

  #rankings .rankings-masthead::after {
    display: none;
  }

  #rankings .rankings-snapshot {
    min-width: 0;
  }

  #rankings .rankings-snapshot span {
    padding: 12px 9px;
  }

  #rankings .rankings-snapshot strong {
    font-size: 1.25rem;
  }

  #rankings .ranking-view-button {
    min-height: 56px;
    padding-inline: 10px;
  }

  #rankings .ranking-division-banner {
    padding-inline: 14px;
  }

  #rankings .ranking-panel {
    padding: 14px 10px;
  }

  #rankings .ranking-card.rank-1 {
    grid-template-columns: 34px 58px minmax(0, 1fr);
  }

  #rankings .ranking-card.rank-1 .ranking-photo {
    width: 58px;
    height: 66px;
  }

  #rankings .ranking-card.rank-1 .ranking-record {
    display: none;
  }
}
