@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-700.woff2") format("woff2");
}

:root {
  --content-width: 600px;
  --content-width-wide: 1120px;

  /* Grounds */
  --night: #121014;
  --night-2: #1c191e;
  --night-3: #27232a;
  --stone: #f2efe8;
  --surface: #ffffff;
  --surface-2: #e9e4d9;

  /* Ink */
  --ink: #18161b;
  --ink-muted: #5d5861;
  --ink-faint: #6e6876;
  --ink-on-night: #f2efe8;
  --ink-on-night-muted: #aaa3ac;

  /* Accent: trophy gold (see DESIGN.md for why this isn't Inter Miami pink) */
  --gold: #cd9a3f;
  --gold-hover: #b1812f;
  --gold-ink: #7a4f10;
  --gold-soft: #f4e4c3;
  --gold-on-night: #e7b65c;

  --good: #2f8f5b;
  --good-ink: #15532f;
  --good-soft: #e1f3e8;
  --bad: #c0392b;
  --bad-soft: #fbe9e7;

  --hairline: rgba(24, 22, 27, 0.12);
  --hairline-on-night: rgba(242, 239, 232, 0.14);

  --shadow-sm: 0 1px 2px rgba(18, 16, 20, 0.06), 0 4px 10px -4px rgba(18, 16, 20, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(18, 16, 20, 0.45), 0 2px 8px -2px rgba(18, 16, 20, 0.2);
  --shadow-night: 0 10px 30px -10px rgba(0, 0, 0, 0.6);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --nav-h: 60px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
  font-size: 16px;
  line-height: 1.5;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

button {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--stone);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 999px;
  border: 3px solid var(--stone);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------- */
/* Header / persistent chrome                          */
/* -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--night);
  border-bottom: 1px solid var(--hairline-on-night);
}

.site-header-inner {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink-on-night);
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gold-on-night);
  border-radius: 6px;
  color: var(--gold-on-night);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--hairline-on-night);
  border-radius: 999px;
  color: var(--ink-on-night-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--ink-on-night);
  border-color: var(--gold-on-night);
}

.site-nav {
  display: none;
}

@media (min-width: 880px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .site-nav a {
    text-decoration: none;
    color: var(--ink-on-night-muted);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover {
    color: var(--ink-on-night);
  }

  .site-nav a.active {
    color: var(--ink-on-night);
    border-bottom-color: var(--gold-on-night);
  }
}

/* Ticker */

.ticker-wrap {
  background: var(--night-2);
  border-bottom: 1px solid var(--hairline-on-night);
}

.ticker {
  max-width: var(--content-width-wide);
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 26s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold-on-night);
  font-variant-numeric: tabular-nums;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    overflow-x: auto;
  }
}

/* -------------------------------------------------- */
/* Main / content width                                */
/* -------------------------------------------------- */

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
}

@media (min-width: 880px) {
  main {
    max-width: var(--content-width-wide);
    padding: 0 2rem 4rem;
  }
}

/* -------------------------------------------------- */
/* Reels page layout: left rail + reel                 */
/* -------------------------------------------------- */

.reel-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-top: 1.25rem;
}

@media (min-width: 880px) {
  .reel-layout {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 2rem;
    gap: 1.25rem;
  }
}

.rail-stack {
  flex: 0 0 auto;
  width: 78px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.category-rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  text-align: center;
}

.category-tab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.category-tab .tab-label {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.category-tab:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.category-tab.active {
  background: var(--night);
  color: var(--gold-on-night);
}

.reel-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.reel-card {
  background: var(--night);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-night);
  display: flex;
  flex-direction: column;
}

.reel-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--night-2);
}

.reel-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-caption {
  padding: 0.85rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-on-night-muted);
}

.reel-error {
  padding: 2.5rem 1rem;
  color: #e18f85;
  font-size: 0.85rem;
  text-align: center;
}

.pager {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--hairline);
}

.pager button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.5rem 0.2rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.pager button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.pager button:not(:disabled):hover {
  background: var(--surface-2);
  color: var(--gold-ink);
}

.pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-indicator {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* -------------------------------------------------- */
/* Homepage: hero                                      */
/* -------------------------------------------------- */

.hero {
  position: relative;
  margin: 0 calc(-1 * 1rem);
  min-height: 62vw;
  max-height: 86vh;
  overflow: hidden;
  background: var(--night);
  display: flex;
  align-items: flex-end;
}

@media (min-width: 880px) {
  .hero {
    margin: 0;
    min-height: 46vw;
    max-height: 640px;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
  }
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 20, 0.15) 0%, rgba(18, 16, 20, 0.55) 55%, rgba(18, 16, 20, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 1.75rem;
  width: 100%;
}

@media (min-width: 880px) {
  .hero-content {
    padding: 3rem 2.5rem 2.5rem;
  }
}

.hero-content h1 {
  margin: 0;
  color: var(--ink-on-night);
  font-size: clamp(2.3rem, 9vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 14ch;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--gold-hover);
}

/* -------------------------------------------------- */
/* Homepage: spotlight ticket cards                     */
/* -------------------------------------------------- */

.spotlight-feed {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.5rem;
}

@media (min-width: 880px) {
  .spotlight-feed {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 2.5rem;
    gap: 1.4rem;
  }
}

.spotlight {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
}

.spotlight.on-night {
  background: var(--night);
  color: var(--ink-on-night);
}

.spotlight.on-stone {
  background: var(--surface);
  color: var(--ink);
}

.spotlight-head {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin: 0 0 0.75rem;
}

.spotlight-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.85;
}

.spotlight-date-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
}

.spotlight.on-stone .spotlight-date-num {
  color: var(--gold-ink);
}

.spotlight-date-month {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-on-night-muted);
}

.spotlight.on-stone .spotlight-date-month {
  color: var(--ink-faint);
}

.spotlight h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.spotlight.on-night h2 {
  color: var(--ink-on-night);
}

.spotlight > p {
  margin: 0 0 1.25rem;
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 62ch;
}

.spotlight.on-night > p {
  color: var(--ink-on-night-muted);
}

.spotlight.on-stone > p {
  color: var(--ink-muted);
}

.farewell-match {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  padding: 1.1rem 0 0;
  margin-bottom: 1.3rem;
  border-top: 1px solid var(--hairline-on-night);
}

.spotlight.on-stone .farewell-match {
  border-top-color: var(--hairline);
}

.farewell-match-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.farewell-match-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-on-night-muted);
}

.spotlight.on-stone .farewell-match-label {
  color: var(--ink-faint);
}

.farewell-match-value {
  font-weight: 700;
  font-size: 0.95rem;
}

.farewell-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
}

.farewell-links a {
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--gold-on-night);
}

.spotlight.on-stone .farewell-links a {
  color: var(--gold-ink);
}

.farewell-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.farewell-links a.hero-cta {
  color: var(--night);
  text-decoration: none;
}

.browse-cta {
  text-align: center;
  padding: 2.5rem 1rem 0.5rem;
}

@media (min-width: 880px) {
  .browse-cta {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 3rem;
  }
}

.browse-cta h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--ink);
}

.browse-cta p {
  margin: 0 auto 1.2rem;
  max-width: 42ch;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.browse-cta .hero-cta {
  background: var(--night);
  color: var(--ink-on-night);
}

.browse-cta .hero-cta:hover {
  background: var(--night-2);
}

/* -------------------------------------------------- */
/* Generic page content                                 */
/* -------------------------------------------------- */

.page-intro {
  padding: 1.75rem 0 1.5rem;
}

@media (min-width: 880px) {
  .page-intro {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 3rem;
  }
}

.page-intro h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
}

.page-intro p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}

.page-intro.not-found {
  text-align: center;
  padding-top: 3rem;
}

.page-intro.not-found h1 {
  font-size: clamp(3rem, 12vw, 5rem);
}

.page-intro.not-found p {
  margin: 0 auto 1.5rem;
  max-width: 36ch;
}

.page-intro.not-found .hero-cta {
  margin-bottom: 1.5rem;
  background: var(--gold);
  color: var(--night);
}

.not-found-links {
  font-size: 0.88rem;
}

.not-found-links a {
  color: var(--ink-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-found-links a:hover {
  color: var(--ink);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

@media (min-width: 880px) {
  .card {
    padding: 2rem;
  }
}

/* -------------------------------------------------- */
/* About page                                          */
/* -------------------------------------------------- */

.about-hero {
  padding: 1.75rem 0 2rem;
}

@media (min-width: 880px) {
  .about-hero {
    max-width: 760px;
    margin: 0 auto;
    padding-top: 3rem;
  }
}

.about-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 6vw, 3rem);
  letter-spacing: -0.005em;
  line-height: 1.05;
  text-transform: uppercase;
}

.about-hero p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 62ch;
}

.pull-quote {
  margin: 1.75rem 0;
  padding-top: 1.1rem;
  border-top: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  max-width: 44ch;
}

.hero-cta {
  display: inline-flex;
}

.about-hero .hero-cta {
  background: var(--night);
  color: var(--ink-on-night);
  margin-top: 0.75rem;
}

.about-hero .hero-cta:hover {
  background: var(--night-2);
}

.about-hero > p a {
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}

.about-hero > p a:hover {
  text-decoration: underline;
}

/* Official links */

.official-links {
  padding: 1rem 0 2rem;
}

@media (min-width: 880px) {
  .official-links {
    max-width: 760px;
    margin: 0 auto;
  }
}

.official-links h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--ink);
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (min-width: 560px) {
  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.link-grid a:hover {
  background: var(--night);
  color: var(--gold-on-night);
}

/* -------------------------------------------------- */
/* Trophies page                                        */
/* -------------------------------------------------- */

.trophies-hero {
  padding: 2rem 0 2rem;
  text-align: center;
  background: var(--night);
  color: var(--ink-on-night);
  margin: 0 calc(-1 * 1rem);
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 880px) {
  .trophies-hero {
    margin: 1.5rem 0 0;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
  }
}

.trophies-hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: -0.005em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink-on-night);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.trophies-giant-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.trophies-giant-number {
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 24vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--gold-on-night);
}

.trophies-giant-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-on-night-muted);
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}

.trophies-hero-copy {
  max-width: 48ch;
  margin: 1.25rem auto 0;
  color: var(--ink-on-night-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.crest-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.crest {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.crest-sm {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

@media (min-width: 880px) {
  .trophies-page-body {
    max-width: 760px;
    margin: 0 auto;
  }
}

/* Record comparison bar */

.record-compare,
.distribution,
.cabinet,
.live-status {
  margin: 1.75rem 0;
}

.record-compare h2,
.distribution h2,
.cabinet h2,
.live-status h2 {
  margin: 0 0 1.1rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--ink);
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.compare-name {
  width: 84px;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.compare-track {
  flex: 1;
  height: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.compare-fill {
  height: 100%;
  border-radius: 999px;
}

.compare-fill.messi {
  background: linear-gradient(90deg, var(--gold-hover), var(--gold-on-night));
}

.compare-fill.alves {
  background: var(--ink-faint);
}

.compare-value {
  width: 50px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.compare-note {
  margin: 0.6rem 0 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

/* Distribution bar */

.distribution > p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.dist-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.dist-seg.fcb {
  background: linear-gradient(90deg, #a50044, #004d98);
}

.dist-seg.arg {
  background: #6cace4;
}

.dist-seg.psg {
  background: #001e50;
}

.dist-seg.mia {
  background: #f7b5cd;
}

.dist-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dist-legend li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.dist-legend strong {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-ink);
}

/* Club jump bar: horizontal pill filters to each club section */

.club-jump {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1.75rem 0 0.25rem;
  scrollbar-width: none;
}

.club-jump::-webkit-scrollbar {
  display: none;
}

.club-jump a {
  flex: 0 0 auto;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  scroll-snap-align: start;
}

.club-jump a:hover {
  background: var(--night);
  color: var(--gold-on-night);
}

/* Club sections */

.club-section {
  margin: 2.5rem 0;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.club-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.club-head-text h2 {
  margin: 0;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--ink);
}

.club-head-text .era-sub {
  display: block;
  margin-top: 0.1rem;
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-family: var(--font-body);
}

.club-tally {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.75rem;
  background: var(--night);
  color: var(--gold-on-night);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.club-note {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quad-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--surface);
  padding: 0.95rem 0.9rem;
}

.quad-eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.quad-value {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid var(--surface-2);
}

.timeline li {
  position: relative;
  padding: 0 0 1.3rem 1.25rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline .trophy-year {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-ink);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.timeline .trophy-name {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0.2rem 0 0.15rem;
}

.timeline .trophy-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.arg-timeline {
  margin-bottom: 0.75rem;
}

.arg-timeline li.loss::before {
  background: var(--bad);
}

.result-tag {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  vertical-align: middle;
  text-transform: uppercase;
}

.result-tag.win {
  background: var(--good-soft);
  color: var(--good-ink);
}

.result-tag.loss {
  background: var(--bad-soft);
  color: var(--bad);
}

.timeline-divider {
  position: relative;
  margin: 0 0 1.3rem;
  padding-top: 0.1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.timeline-divider::before {
  content: "";
  display: block;
  height: 0;
  margin-bottom: 0.6rem;
  border-top: 1px dashed var(--surface-2);
}

/* Inter Miami before/after */

.stat-compare-inline {
  display: flex;
  gap: 1px;
  margin-bottom: 1.2rem;
  background: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-compare-box {
  flex: 1;
  text-align: center;
  background: var(--surface);
  padding: 0.9rem 0.6rem;
}

.stat-compare-box .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink-faint);
  line-height: 1;
}

.stat-compare-box.after .num {
  color: var(--gold-ink);
}

.stat-compare-box .lbl {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.3;
}

/* Cabinet stat rings */

.cabinet > p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.stat-ring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  padding: 1rem 0.5rem;
}

.stat-ring-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-ink);
  line-height: 1;
}

.stat-ring-label {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.stat-ring-detail {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Individual honors */

.individual-honors {
  margin: 2rem 0;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--surface-2);
}

.individual-honors h2 {
  margin: 0 0 1.1rem;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--ink);
}

.individual-honors .era-sub {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

/* Live status */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.3rem 0 0;
  font-weight: 800;
  font-size: 0.87rem;
  color: var(--good-ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-soft);
}

.trophies-footnote {
  margin-top: 1rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
  text-align: center;
}

.trophies-footnote a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* -------------------------------------------------- */
/* Facts / FAQ                                          */
/* -------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}

@media (min-width: 880px) {
  .faq-list {
    max-width: 760px;
    margin: 0 auto 2rem;
  }
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item:first-child {
  border-top: 1px solid var(--hairline);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0.1rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding: 0 0.1rem 1.2rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item p + p {
  padding-top: 0;
}

.faq-item p a {
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
}

.faq-item p a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------- */
/* Messages / guestbook                                  */
/* -------------------------------------------------- */

.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.75rem;
  font-size: 0.87rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

@media (min-width: 880px) {
  .notice,
  .message-form,
  .messages-list {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}

.notice svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  stroke: var(--gold-ink);
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.message-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.message-form input,
.message-form textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--gold);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.char-count {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.submit-btn {
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: var(--night);
  color: var(--ink-on-night);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.submit-btn:hover:not(:disabled) {
  background: var(--night-2);
}

.submit-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.form-status {
  font-size: 0.85rem;
  color: var(--good-ink);
  min-height: 1.2em;
}

.messages-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.message-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
}

.message-item .message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.message-item .message-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.message-item .pending-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.message-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.messages-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
}

/* -------------------------------------------------- */
/* Bottom tab bar (mobile)                               */
/* -------------------------------------------------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--night);
  border-top: 1px solid var(--hairline-on-night);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
}

.bottom-nav a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.25rem 0.5rem;
  color: var(--ink-on-night-muted);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.bottom-nav a svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
}

.bottom-nav a.active {
  color: var(--gold-on-night);
}

@media (min-width: 880px) {
  .bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* -------------------------------------------------- */
/* Admin: message moderation                             */
/* -------------------------------------------------- */

.admin-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
}

.admin-wrap h1 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.admin-wrap .admin-sub {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.25rem;
}

.admin-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--night);
  color: var(--gold-on-night);
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.admin-item .admin-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.admin-item .admin-item-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-item .admin-item-date {
  font-size: 0.75rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.admin-item p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
}

.admin-item-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-item-actions button {
  flex: 1;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-item-actions .approve-btn {
  background: var(--good-soft);
  color: var(--good-ink);
}

.admin-item-actions .approve-btn:hover {
  background: var(--good);
  color: #fff;
}

.admin-item-actions .reject-btn,
.admin-item-actions .delete-btn {
  background: var(--bad-soft);
  color: var(--bad);
}

.admin-item-actions .reject-btn:hover,
.admin-item-actions .delete-btn:hover {
  background: var(--bad);
  color: #fff;
}

.admin-empty {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-md);
}

.admin-cross-link {
  margin: 0 0 0.75rem;
}

.admin-cross-link a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-ink);
  text-decoration: none;
}

.admin-cross-link a:hover {
  text-decoration: underline;
}

/* Admin: reel management */

.admin-tabs {
  flex-wrap: wrap;
  border-radius: var(--radius-md);
}

.category-manager {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.category-manager summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.category-manage-list {
  list-style: none;
  margin: 0.9rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-manage-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-rename-input {
  flex: 1;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--ink);
}

.category-rename-input:focus {
  border-color: var(--gold);
}

.category-reel-count {
  flex-shrink: 0;
  font-size: 0.76rem;
  color: var(--ink-faint);
  white-space: nowrap;
}

.icon-btn-row {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold-ink);
}

.icon-btn-danger:hover {
  border-color: var(--bad);
  color: var(--bad);
}

.reel-item-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.reel-item-number {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.reel-item-url {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-ink);
  text-decoration: none;
  word-break: break-all;
}

.reel-item-url:hover {
  text-decoration: underline;
}

.reel-item-caption {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.reel-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-select {
  flex: 1;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--ink);
}

.form-row-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.export-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.export-panel textarea {
  flex-basis: 100%;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--ink);
  resize: vertical;
}

/* Admin: generic form layout (shared by add-category/add-reel/add-queue) */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-form textarea {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  line-height: 1.5;
}

.admin-form textarea:focus {
  border-color: var(--gold);
}

/* Admin: review queue */

.queue-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.queue-section h2 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--ink);
}

.queue-section .admin-sub {
  margin: 0 0 1.25rem;
}

.admin-reel-preview {
  max-width: 200px;
  margin: 0 0 0.75rem;
}

.admin-reel-preview .reel-embed {
  border-radius: var(--radius-sm);
}

.admin-reel-preview .reel-error {
  padding: 1.5rem 1rem;
  font-size: 0.78rem;
}

.queue-add-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

/* -------------------------------------------------- */
/* Footer                                                */
/* -------------------------------------------------- */

.site-footer {
  text-align: center;
  padding: 2rem 1rem 1.25rem;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 360px) {
  .rail-stack {
    width: 68px;
  }
}
