: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;
}

.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;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--nav-icon-bg);
  color: currentColor;
}

.nav-icon::before,
.nav-icon::after {
  content: "";
  position: absolute;
  border-color: currentColor;
}

.nav-home::before {
  width: 12px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  bottom: 6px;
}

.nav-home::after {
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  top: 6px;
  transform: rotate(45deg);
}

.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-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;
}

.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;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.ad-slot strong {
  display: block;
  margin-top: 2px;
}

.ad-slot p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.ad-tag {
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.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;
}

.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;
}

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

.news-strip {
  padding: 18px;
}

.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-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;
}

.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;
}

.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 h3 {
  margin: 4px 0 6px;
  font-size: 1.1rem;
}

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

.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;
}

.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;
}

.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: 340px minmax(0, 1fr);
  gap: 18px;
}

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

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

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

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

.country-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.country-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

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

.country-fighters,
.country-upcoming {
  display: grid;
  gap: 8px;
}

.country-fighter,
.country-fight {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

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

.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-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;
}

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

.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-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 {
  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 {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.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;
}

.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;
}

.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-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) {
  .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;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .main-content {
    padding: 8px;
  }

  .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-bout-media {
    width: fit-content;
  }

  .compact-action {
    width: 100%;
  }

  .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-soft);
  color: var(--red);
}

.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;
}

.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: 470px;
  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: 730px;
  padding: 52px;
}

.hero-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.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: 15px;
  color: #fff;
  font-size: 4.8rem;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 610px;
  margin-bottom: 25px;
  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.65fr));
  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: 96px;
  padding: 16px 18px;
  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: 62px;
  padding: 12px 16px;
  border-style: solid;
  background: var(--panel-soft);
}

.ad-slot .eyebrow {
  color: var(--amber);
  font-size: 0.65rem;
}

.ad-slot strong {
  font-size: 0.88rem;
}

.ad-slot p {
  font-size: 0.82rem;
}

.ad-tag {
  min-width: 38px;
  min-height: 28px;
  border-radius: 5px;
  font-size: 0.62rem;
}

.content-grid,
.boxer-home-grid {
  gap: 16px;
}

.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;
}

.section-heading h2 {
  margin-top: 5px;
  font-size: 1.55rem;
}

.next-fight-panel {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--red);
}

.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-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;
}

@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: 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: 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,
  .side-note {
    display: none;
  }

  .theme-card {
    width: min(230px, 54vw);
    margin: 0;
    padding: 5px;
    border: 0;
  }

  .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(5),
  .nav-item:nth-child(6),
  .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(4),
  .nav-list.is-expanded .nav-item:nth-child(7),
  .nav-list.is-expanded .nav-item:nth-child(8) {
    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(242px + env(safe-area-inset-bottom)); }
  .nav-list.is-expanded .nav-item:nth-child(4) { bottom: calc(190px + env(safe-area-inset-bottom)); }
  .nav-list.is-expanded .nav-item:nth-child(7) { bottom: calc(138px + env(safe-area-inset-bottom)); }
  .nav-list.is-expanded .nav-item:nth-child(8) { 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) {
  .main-content {
    gap: 10px;
    padding: 0 8px 18px;
  }

  .app-topbar {
    min-height: 54px;
    padding: 8px 2px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .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: 430px;
  }

  .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: 22px 18px;
  }

  .hero-status-row {
    margin-bottom: 16px;
  }

  .hero-edition {
    display: none;
  }

  .hero-content h1 {
    font-size: 3.4rem;
  }

  .hero-content p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

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

  .hero-corner-mark {
    right: 8px;
    bottom: -16px;
    font-size: 8rem;
  }

  .pulse-rail button {
    min-height: 88px;
    padding: 13px;
  }

  .pulse-rail strong {
    font-size: 1.2rem;
  }

  .pulse-rail button:first-child strong {
    font-size: 0.88rem;
  }

  .ad-slot {
    display: flex;
    min-height: 56px;
  }

  .ad-slot p {
    display: none;
  }

  .ad-tag {
    margin-left: auto;
  }

  .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));
  }
}
