:root {
  --bg: #121712;
  --bg-elev: #192018;
  --surface: #20281d;
  --surface-2: #273023;
  --border: rgba(242, 237, 224, 0.14);
  --border-strong: rgba(226, 190, 108, 0.4);
  --ink: #faf7ef;
  --ink-muted: #c6cbc3;
  --ink-dim: #8c968e;
  --gold: #e6c473;
  --gold-soft: rgba(226, 190, 108, 0.15);
  --turf: #226842;
  --turf-soft: rgba(36, 118, 72, 0.22);
  --era-accent: #e6c473;
  --era-soft: rgba(226, 190, 108, 0.18);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Oswald', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, #1d291c 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.ui-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon-sm {
  width: 13px;
  height: 13px;
}

.ui-icon-lg {
  width: 18px;
  height: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  width: min(1380px, 100% - 24px);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 13, 11, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, #1a2d23, #0b120e);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 15px;
}

.brand-text small {
  font-size: 11px;
  color: var(--ink-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(242, 237, 224, 0.06);
}

.main-nav a.is-active {
  color: var(--gold);
  background: var(--gold-soft);
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--era-accent);
  box-shadow: 0 0 10px var(--era-accent);
}

/* HERO */
.hero-section {
  position: relative;
  padding: 38px 0 36px;
  border-bottom: 1px solid var(--border);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 52% 38% at 24% 12%, rgba(226, 190, 108, 0.16), transparent 68%),
    radial-gradient(ellipse 46% 36% at 80% 18%, rgba(36, 118, 72, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(8, 13, 11, 0.52) 0%, rgba(8, 13, 11, 0.74) 50%, var(--bg) 100%),
    url('assets/bg/museum_hero_bg.webp?v=2026112226') center 22% / cover no-repeat;
  pointer-events: none;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: center;
}

/* COMPACT FOOTBALL SCOREBOARD STRIP */
.football-ticker-strip {
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 19, 0.88);
  border: 1px solid rgba(226, 190, 108, 0.22);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ticker-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  min-width: 0;
}

.ticker-cell .ui-icon {
  color: var(--gold);
}

.ticker-cell strong {
  color: var(--ink);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(214, 177, 94, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 640px;
}

.hero-lead strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #e5c171, #c4983f);
  color: #13110b;
  box-shadow: 0 10px 26px rgba(214, 177, 94, 0.24);
}

.btn-ghost {
  background: rgba(243, 237, 225, 0.04);
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: rgba(214, 177, 94, 0.1);
}

.hero-stats-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 16, 0.62);
  border: 1px solid rgba(240, 236, 226, 0.08);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.05;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* TIMELINE */
.timeline-shell {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.section-subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.subhead-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.section-subhead h2,
.section-header-row h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.16;
}

.hint-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(243, 237, 225, 0.05);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.period-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.period-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.period-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.period-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 600;
}

.timeline-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  align-items: stretch;
}

.timeline-node {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(242, 237, 224, 0.03);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.16s ease;
}

.timeline-node:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.timeline-node.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
}

.timeline-node-year {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.timeline-node-title {
  display: block;
  font-size: 11.5px;
  color: var(--ink);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.milestone-card {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(20, 34, 26, 0.94), rgba(10, 17, 13, 0.97));
  border: 1px solid rgba(226, 190, 108, 0.24);
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: start;
}

.milestone-side-col {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.milestone-photo-frame {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 13, 11, 0.88);
  border: 1px solid rgba(226, 190, 108, 0.28);
}

.milestone-photo {
  display: block;
  width: 100%;
  height: 235px;
  object-fit: contain;
  object-position: center center;
}

.milestone-photo-caption {
  padding: 7px 11px;
  font-size: 11.5px;
  color: var(--ink-muted);
  border-top: 1px solid rgba(242, 237, 224, 0.08);
  background: rgba(8, 13, 11, 0.84);
}

.milestone-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 237, 224, 0.08);
}

.milestone-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.milestone-pos-readout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

.milestone-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.milestone-year-pill {
  font-family: var(--font-display);
  font-size: 15px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--gold);
  color: #14110b;
  font-weight: 700;
}

.milestone-tag-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--gold);
}

.milestone-location {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.milestone-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.25;
}

.milestone-summary {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

.milestone-detail {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-muted);
}

.milestone-rule-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(8, 13, 11, 0.62);
  border-left: 3px solid var(--gold);
}

.milestone-rule-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.milestone-rule-box p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}

.milestone-facts {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 237, 224, 0.08);
}

.milestone-fact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.milestone-fact-row small {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.milestone-fact-row strong {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

/* SECTION HEADERS */
.teams-section,
.museum-section,
.atlas-section,
.comparison-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}

.museum-balls {
  background: radial-gradient(circle at 20% 20%, rgba(226, 190, 108, 0.06), transparent 60%);
}

.museum-kits {
  background: radial-gradient(circle at 80% 25%, rgba(36, 118, 72, 0.08), transparent 60%);
}

.atlas-section {
  background: radial-gradient(circle at 50% 0%, rgba(36, 118, 72, 0.07), transparent 62%);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-desc {
  margin: 0;
  max-width: 480px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ERA TABS & SYMMETRIC 6-CARD SELECTOR GRIDS (ZERO ORPHAN TABS) */
.era-tabs,
.museum-selector-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.era-tab-btn,
.museum-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.tab-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.era-tab-btn > span:not(.tab-year):not(.era-photo-badge):not(.tab-head-row):not(.era-tab-sub),
.museum-tab-btn > span:not(.tab-year) {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.era-tab-btn:hover,
.museum-tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.era-tab-btn.is-active,
.museum-tab-btn.is-active {
  background: var(--era-soft);
  border-color: var(--era-accent);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--era-accent) inset;
}

.era-photo-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d6b15e, #f1cf7c);
  color: #13110b;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.tab-year {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.04em;
}

.era-tab-btn.is-active .tab-year {
  color: var(--era-accent);
}

/* TEAM BANNER & MATCHDAY SCOREBOARD */
.team-banner {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(125deg, var(--surface-2), var(--bg-elev));
  border: 1px solid var(--border);
  border-left: 4px solid var(--era-accent);
  margin-bottom: 16px;
}

.team-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.team-match-facts {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.match-fact-cell {
  min-width: 0;
}

.match-fact-cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.match-fact-cell strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-banner-main h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
}

.team-banner-sub {
  margin: 0 0 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

.team-match-context {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--era-accent);
}

.team-banner-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.formation-badge {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 16, 0.76);
  border: 1px solid var(--era-accent);
  text-align: center;
}

.formation-badge small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.formation-badge strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--era-accent);
  letter-spacing: 0.06em;
}

/* SQUAD STAGE GRID */
.squad-stage-grid {
  display: grid;
  grid-template-columns: 1.48fr 0.92fr;
  gap: 22px;
  align-items: start;
}

/* BOTTOM DOSSIER PANEL */
.carousel-panel {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ============================================================
   STUDIO LOOKBOOK CYCLORAMA ("TRY THE LOOK" STYLE + 11 POSES + COACH)
   ============================================================ */
.studio-lookbook-shell {
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.studio-pose-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--era-soft);
  border: 1px solid var(--era-accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--era-accent);
}

.live-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 51, 86, 0.18);
  border: 1px solid rgba(255, 92, 128, 0.52);
  color: #ff9eb5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.live-video-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4f79;
  box-shadow: 0 0 8px rgba(255, 79, 121, 0.85);
  animation: liveDotBlink 1.3s ease-in-out infinite;
}

@keyframes liveDotBlink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.38;
    transform: scale(0.8);
  }
}

.studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.replay-btn,
.zoom-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(224, 190, 112, 0.12);
  border: 1px solid rgba(224, 190, 112, 0.42);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  transition: background 0.2s ease, transform 0.16s ease, border-color 0.2s ease;
}

.replay-btn:hover,
.zoom-topbar-btn:hover {
  background: rgba(224, 190, 112, 0.22);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.studio-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

.studio-counter strong {
  font-size: 17px;
  color: var(--era-accent);
}

.wheel-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 236, 226, 0.04);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.wheel-toggle-btn.is-active {
  background: var(--era-soft);
  border-color: var(--era-accent);
  color: var(--ink);
}

.arrow-pair {
  display: inline-flex;
  gap: 6px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--era-accent);
  background: var(--era-soft);
}

/* MAIN STUDIO 3-COLUMN COCKPIT: PITCH + CLOSE-UP STAGE + RIGHT GEAR SIDEBAR */
.studio-main-grid {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 284px;
  gap: 14px;
  align-items: stretch;
}

.studio-cyclorama {
  position: relative;
  height: 640px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  overscroll-behavior-x: contain;
  user-select: none;
  touch-action: pan-y;
  outline: none;
  cursor: grab;
  color: #141715;
}

.studio-cyclorama:active,
.studio-cyclorama.is-dragging {
  cursor: grabbing;
}

.studio-cyclorama:focus-visible {
  box-shadow: 0 0 0 2px var(--era-accent);
}

.studio-cyclorama-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 124px;
  background: linear-gradient(180deg, rgba(226, 228, 232, 0) 0%, rgba(212, 215, 220, 0.22) 100%);
  pointer-events: none;
}

.studio-track {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
}

.studio-figure-item {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 340px;
  height: 560px;
  margin-left: -170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transform-origin: center bottom;
  transition:
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.36s ease,
    filter 0.36s ease;
  cursor: pointer;
}

.studio-figure-art {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transform-origin: center bottom;
}

.studio-figure-svg {
  width: 100%;
  height: 510px;
  display: block;
  overflow: visible;
}

.studio-figure-photo {
  position: relative;
  z-index: 2;
  height: 530px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(15, 20, 24, 0.07));
}

.studio-figure-dual {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.studio-figure-dual .studio-figure-pose {
  will-change: opacity;
}

.studio-figure-dual .studio-figure-walk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 3;
  will-change: opacity;
}

.studio-figure-video {
  position: relative;
  z-index: 2;
  height: 446px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  object-position: bottom center;
  mix-blend-mode: multiply;
  display: block;
  pointer-events: none;
}

/* FULL-STAGE RETINA CANVAS + LIVE VIDEO FIGURE (ZERO BOX BORDER VIA #FFFFFF + MULTIPLY + SOFT EDGE MASK) */
.studio-figure-item.has-stage-video,
.studio-figure-item.has-stage-canvas {
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin-left: 0;
  justify-content: flex-end;
  mix-blend-mode: multiply;
  transition: opacity 0.24s ease, transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.studio-figure-item.has-stage-canvas.is-scrub-driven,
.studio-figure-item.is-scrub-driven {
  transition: none !important;
  will-change: transform, opacity;
}

.studio-figure-item.has-stage-video .studio-figure-art,
.studio-figure-item.has-stage-canvas .studio-figure-art {
  width: 100%;
  height: 100%;
  animation: none !important;
}

.studio-stage-video-wrap,
.studio-stage-canvas-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
  pointer-events: none;
}

.studio-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: block;
  pointer-events: none;
}

.studio-stage-video-wrap.is-edge-entering {
  animation: stageVideoEdgeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stageVideoEdgeIn {
  0% {
    opacity: 0;
    transform: translate3d(56px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.studio-stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: #ffffff;
  display: block;
  pointer-events: none;
}

.studio-stage-video-exit {
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}

.studio-stage-video-wrap.is-playing-exit .studio-stage-video-enter {
  opacity: 0;
  visibility: hidden;
}

.studio-stage-video-wrap.is-playing-exit .studio-stage-video-exit {
  opacity: 1;
  visibility: visible;
}

.studio-figure-item.has-stage-video .studio-figure-caption,
.studio-figure-item.has-stage-canvas .studio-figure-caption {
  position: absolute;
  top: 14px;
  left: 14px;
  bottom: auto;
  transform: translate3d(0, 4px, 0);
  z-index: 6;
}

.studio-figure-item.has-stage-video.is-center .studio-figure-caption,
.studio-figure-item.has-stage-canvas.is-center .studio-figure-caption {
  transform: translate3d(0, 0, 0);
}

.studio-figure-item.is-leaving-video {
  opacity: 1 !important;
  filter: none !important;
  z-index: 24 !important;
  pointer-events: none !important;
}

.studio-figure-item.is-leaving-video .studio-figure-caption,
.studio-figure-item.is-leaving-left .studio-figure-caption,
.studio-figure-item.is-leaving-right .studio-figure-caption {
  opacity: 0 !important;
}

.studio-figure-item.is-leaving-left,
.studio-figure-item.is-leaving-right {
  opacity: 1 !important;
  filter: none !important;
  z-index: 22 !important;
  pointer-events: none !important;
  transition: none !important;
}

.studio-figure-item.is-leaving-left .studio-figure-art {
  animation: exitWalkLeft 0.56s cubic-bezier(0.32, 0, 0.67, 0) forwards !important;
}

.studio-figure-item.is-leaving-right .studio-figure-art {
  animation: exitWalkRight 0.56s cubic-bezier(0.32, 0, 0.67, 0) forwards !important;
}

@keyframes exitWalkLeft {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0);
  }
  38% {
    opacity: 1;
    transform: translate3d(-96px, -4px, 0) rotate(-1.8deg) scale(0.99);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(-340px, 0, 0) rotate(-1.2deg) scale(0.94);
    filter: blur(4px);
  }
}

@keyframes exitWalkRight {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0);
  }
  38% {
    opacity: 1;
    transform: translate3d(96px, -4px, 0) rotate(1.8deg) scale(0.99);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(340px, 0, 0) rotate(1.2deg) scale(0.94);
    filter: blur(4px);
  }
}

.studio-floor-shadow {
  position: relative;
  z-index: 1;
  width: 146px;
  height: 18px;
  margin-top: -12px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(20, 22, 20, 0.28) 0%, rgba(20, 22, 20, 0) 72%);
  pointer-events: none;
}

/* LIVE BREATHING IDLE ENGAGES ONLY WHEN SETTLED AT CENTER (NO CONFLICT WITH 60FPS SCRUB) */
.studio-figure-item.is-settled:not(.has-stage-canvas):not(.has-stage-video) .studio-figure-art,
.studio-figure-item.is-center:not(.is-scrub-driven) .studio-figure-art {
  animation: studioAliveIdle 4.4s ease-in-out infinite;
}

.studio-figure-item.is-settled:not(.has-stage-canvas):not(.has-stage-video) .studio-floor-shadow,
.studio-figure-item.is-center:not(.is-scrub-driven) .studio-floor-shadow {
  animation: shadowIdlePulse 4.4s ease-in-out infinite;
}

.studio-figure-item.enter-from-right .studio-figure-art {
  animation:
    enterFromRight 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    studioAliveIdle 4.4s ease-in-out 0.72s infinite;
}

.studio-figure-item.enter-from-left .studio-figure-art {
  animation:
    enterFromLeft 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    studioAliveIdle 4.4s ease-in-out 0.72s infinite;
}

.studio-figure-item.choreo-maestro-enter.enter-from-right .studio-figure-art {
  animation:
    enterMaestroRight 0.84s cubic-bezier(0.18, 1, 0.3, 1) forwards,
    studioAliveIdle 4.6s ease-in-out 0.84s infinite;
}

.studio-figure-item.choreo-gk-drop.enter-from-right .studio-figure-art,
.studio-figure-item.choreo-gk-drop.enter-from-left .studio-figure-art {
  animation:
    enterGkDrop 0.68s cubic-bezier(0.18, 1, 0.3, 1) forwards,
    studioAliveIdle 4.2s ease-in-out 0.68s infinite;
}

.studio-figure-item.choreo-wing-sprint.enter-from-right .studio-figure-art,
.studio-figure-item.choreo-striker-burst.enter-from-right .studio-figure-art {
  animation:
    enterBurstRight 0.62s cubic-bezier(0.14, 1, 0.28, 1) forwards,
    studioAliveIdle 4.1s ease-in-out 0.62s infinite;
}

.studio-figure-item.choreo-dribble-feint.enter-from-right .studio-figure-art {
  animation:
    enterFeintRight 0.76s cubic-bezier(0.18, 1, 0.3, 1) forwards,
    studioAliveIdle 4.3s ease-in-out 0.76s infinite;
}

@keyframes enterFromRight {
  0% {
    opacity: 0;
    transform: translate3d(205px, 0, 0) scale(0.95);
    filter: blur(5px);
  }
  65% {
    opacity: 1;
    transform: translate3d(-4px, -2px, 0) scale(1.01, 0.99);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes enterFromLeft {
  0% {
    opacity: 0;
    transform: translate3d(-205px, 0, 0) scale(0.95);
    filter: blur(5px);
  }
  65% {
    opacity: 1;
    transform: translate3d(4px, -2px, 0) scale(1.01, 0.99);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes enterMaestroRight {
  0% {
    opacity: 0;
    transform: translate3d(220px, 0, 0) rotate(1.6deg) scale(0.96);
    filter: blur(4px);
  }
  58% {
    opacity: 1;
    transform: translate3d(-3px, -5px, 0) rotate(-0.8deg) scale(1.01, 0.985);
    filter: blur(0);
  }
  80% {
    transform: translate3d(0, 1px, 0) rotate(0deg) scale(1, 0.992);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes enterGkDrop {
  0% {
    opacity: 0;
    transform: translate3d(140px, -22px, 0) scale(0.96);
    filter: blur(4px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, 5px, 0) scale(1.02, 0.965);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes enterBurstRight {
  0% {
    opacity: 0;
    transform: translate3d(240px, 0, 0) skewX(-3.5deg) scale(0.94);
    filter: blur(6px);
  }
  68% {
    opacity: 1;
    transform: translate3d(-6px, 0, 0) skewX(1deg) scale(1.015, 0.985);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes enterFeintRight {
  0% {
    opacity: 0;
    transform: translate3d(195px, 0, 0) rotate(2deg);
    filter: blur(4px);
  }
  45% {
    opacity: 1;
    transform: translate3d(38px, 3px, 0) rotate(-2.4deg);
    filter: blur(0);
  }
  75% {
    transform: translate3d(-6px, -2px, 0) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes studioAliveIdle {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleY(1);
  }
  50% {
    transform: translate3d(0, -3px, 0) scale(1.006, 1.008);
  }
}

@keyframes shadowIdlePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.94);
    opacity: 0.78;
  }
}

.studio-figure-caption {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(20, 23, 21, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  color: #151816;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.studio-figure-item.is-center .studio-figure-caption {
  opacity: 1;
  transform: translateY(0);
}

.fig-num-tag {
  font-family: var(--font-display);
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #141715;
  color: #f6f4ef;
}

.studio-figure-item.is-coach .fig-num-tag {
  background: #9f7928;
  color: #ffffff;
}

.studio-back-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 35;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 23, 21, 0.16);
  color: #141715;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.18s ease, background 0.2s ease;
}

.studio-back-pill:hover {
  transform: translateX(-2px);
  background: #ffffff;
}

/* FLOATING GEAR POPOVER (FRAME 00:06 LOOK) */
.studio-gear-popover {
  position: absolute;
  top: 58px;
  right: 18px;
  z-index: 38;
  width: 248px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(20, 23, 21, 0.14);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
  color: #141715;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.popover-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: #777368;
}

.popover-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(20, 23, 21, 0.14);
  background: #f4f3ee;
  color: #141715;
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.popover-thumb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.popover-thumb-box {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(17, 21, 29, 0.1);
  padding: 5px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.popover-thumb-box .gear-thumb-svg,
.popover-thumb-box .gear-thumb-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popover-title {
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #141715;
}

.popover-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #6b685f;
}

.popover-detail {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.42;
  color: #3f423f;
}

.popover-museum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: #141821;
  border: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

/* STAGE EDGE LEFT / RIGHT NAVIGATION ARROWS & DIRECTIONAL HINT */
.stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 32;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(20, 23, 21, 0.78);
  color: #f6f4ef;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.2s ease;
}

.stage-nav-prev {
  left: 14px;
}

.stage-nav-next {
  right: 14px;
}

.stage-nav-arrow:hover:not(.is-disabled) {
  background: rgba(20, 23, 21, 0.94);
  border-color: var(--era-accent);
  transform: translateY(-50%) scale(1.04);
}

.stage-nav-arrow.is-disabled {
  opacity: 0.24;
  pointer-events: none;
}

.stage-nav-chevron {
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
}

.stage-nav-label {
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* STUDIO BOTTOM BAR & CONCISE GESTURE WHISPER */
.studio-bottom-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.stage-gesture-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(17, 21, 29, 0.58);
  backdrop-filter: blur(8px);
  color: #f4f3ee;
  font-family: var(--font-mono);
  font-size: 10.5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease;
}

.stage-gesture-hint .hint-text strong {
  color: var(--gold);
  font-weight: 600;
}

.stage-gesture-hint .hint-arrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(244, 243, 238, 0.65);
  transition: transform 0.16s ease, color 0.16s ease;
}

.stage-gesture-hint.is-dir-left .hint-arrow-left {
  color: var(--gold);
  transform: translateX(-3px);
}

.stage-gesture-hint.is-dir-right .hint-arrow-right {
  color: var(--gold);
  transform: translateX(3px);
}

/* ACTIVE-ONLY PLAYER BAR + COLLAPSIBLE ROSTER DRAWER */
.active-player-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(10, 12, 16, 0.72);
  border: 1px solid var(--border);
  border-left: 3px solid var(--era-accent);
}

.active-strip-info {
  min-width: 0;
  flex: 1;
}

.active-strip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
}

.active-strip-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--era-soft);
  border: 1px solid var(--era-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--era-accent);
}

.active-strip-name {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
}

.active-strip-scenario {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.scrub-progress-track {
  margin-top: 8px;
  width: 100%;
  max-width: 560px;
  height: 6px;
  padding: 0;
  position: relative;
  cursor: ew-resize;
  border-radius: 999px;
  background: rgba(243, 237, 225, 0.12);
  overflow: hidden;
  transition: height 0.15s ease, background 0.15s ease;
}

.scrub-progress-track:hover {
  height: 8px;
  background: rgba(243, 237, 225, 0.2);
}

.scrub-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214, 177, 94, 0.72), var(--era-accent));
  transition: none;
}

.active-strip-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.studio-dot-rail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot-rail-btn {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(243, 237, 225, 0.22);
  transition: width 0.22s ease, background 0.22s ease;
}

.dot-rail-btn:hover {
  background: rgba(243, 237, 225, 0.55);
}

.dot-rail-btn.is-active {
  width: 24px;
  background: var(--era-accent);
}

.roster-drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.roster-drawer-btn:hover,
.roster-drawer-btn[aria-expanded='true'] {
  border-color: var(--era-accent);
  color: var(--ink);
}

.roster-drawer {
  margin-top: 10px;
}

.pose-tester-strip {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.68);
  border: 1px solid var(--border-strong);
}

.pose-tester-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.pose-reset-btn {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
}

.pose-tester-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pose-pill-btn {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.pose-pill-btn:hover {
  border-color: var(--era-accent);
  color: var(--ink);
}

.pose-pill-btn.is-active {
  background: var(--era-accent);
  color: #13110b;
  border-color: var(--era-accent);
}

/* RIGHT SIDEBAR: GEAR CARDS ("TRY THE LOOK" SIDEBAR) */
.studio-gear-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf9f6 0%, #f1efe9 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  color: #141821;
  min-width: 0;
  overflow: hidden;
}

.gear-sidebar-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #747066;
}

.gear-sidebar-head h3 {
  margin: 2px 0 2px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.2;
  color: #141715;
}

.gear-sidebar-head p {
  margin: 0;
  font-size: 11.5px;
  color: #5d615e;
}

.studio-gear-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.studio-gear-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 23, 21, 0.09);
  text-align: left;
  transition: border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.studio-gear-card:hover {
  border-color: rgba(20, 23, 21, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.07);
}

.studio-gear-card.is-active {
  border-color: #141715;
  box-shadow: 0 0 0 1px #141715 inset;
}

.gear-thumb-box {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid rgba(17, 21, 29, 0.08);
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gear-thumb-svg,
.gear-thumb-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gear-card-meta {
  flex: 1;
  min-width: 0;
}

.gear-card-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: #7b776c;
}

.gear-card-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #141715;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gear-card-sub {
  display: block;
  font-size: 10.5px;
  color: #5e625e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-cta-btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  border: none;
  background: #141715;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.16s ease;
}

.studio-cta-btn:hover {
  background: #272b28;
  transform: translateY(-1px);
}

/* FULL-WIDTH PLAYER BIO DOSSIER BELOW 3-COLUMN COCKPIT */
.squad-bottom-grid {
  grid-template-columns: 1fr;
}

.dossier-panel-wrap {
  height: 100%;
}

.dossier-panel-top {
  margin-bottom: 8px;
}

/* COMPACT 2-COLUMN PLAYER SCOUTING DOSSIER */
.active-player-dossier {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(8, 13, 11, 0.68);
  border: 1px solid var(--border);
  border-left: 3px solid var(--era-accent);
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  align-items: start;
}

.dossier-scout-side {
  padding-left: 18px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossier-scout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.scout-cell {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(242, 237, 224, 0.03);
  border: 1px solid rgba(242, 237, 224, 0.08);
}

.scout-cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.scout-cell strong {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
}

.dossier-quick-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dossier-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.dossier-quick-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.dossier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dossier-head h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
}

.dossier-orig {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
}

.dossier-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.meta-pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.meta-pill strong {
  color: var(--ink);
}

.dossier-highlight {
  margin: 0 0 8px;
  font-size: 13.8px;
  color: var(--gold);
  font-weight: 500;
}

.dossier-bio {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-muted);
}

/* ROTARY FILMSTRIP (12 SLOTS = 11 PLAYERS + COACH) */
.rotary-strip-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.filmstrip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.scrub-label {
  font-family: var(--font-mono);
  color: var(--era-accent);
}

.player-scrub-slider {
  width: 100%;
  accent-color: var(--era-accent);
  margin-bottom: 10px;
  cursor: pointer;
}

.player-filmstrip {
  display: grid;
  grid-template-columns: repeat(12, minmax(74px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filmstrip-item {
  padding: 7px 6px;
  border-radius: 8px;
  background: rgba(243, 237, 225, 0.03);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.18s ease;
}

.filmstrip-item.is-coach {
  border-color: rgba(214, 177, 94, 0.34);
  background: rgba(214, 177, 94, 0.06);
}

.filmstrip-item:hover {
  border-color: var(--border-strong);
}

.filmstrip-item.is-active {
  background: var(--era-soft);
  border-color: var(--era-accent);
}

.filmstrip-num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--era-accent);
}

.filmstrip-name {
  display: block;
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitch-coach-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  transition: all 0.2s ease;
}

.pitch-coach-btn:hover {
  border-color: var(--era-accent);
}

.pitch-coach-btn.is-active {
  background: var(--era-soft);
  border-color: var(--era-accent);
}

.coach-badge-tr {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--gold);
  color: #13110b;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

/* TACTICAL PITCH PANEL */
.pitch-panel {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pitch-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.mini-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold);
}

.pitch-panel-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pitch-hint {
  font-size: 12px;
  color: var(--ink-muted);
}

.tactical-pitch-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 440;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(235, 244, 232, 0.18);
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.36);
}

.pitch-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pitch-tokens-layer {
  position: absolute;
  inset: 0;
}

.pitch-token {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}

.pitch-token-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  background: #102117;
  color: var(--ink);
  border: 2px solid rgba(243, 237, 225, 0.65);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pitch-token.is-gk .pitch-token-circle {
  background: #1f3329;
  border-color: var(--gold);
}

.pitch-token-name {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(10, 12, 16, 0.86);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.pitch-token:hover .pitch-token-circle {
  transform: scale(1.12);
}

.pitch-token.is-active {
  z-index: 6;
}

.pitch-token.is-active .pitch-token-circle {
  background: var(--era-accent);
  color: #12100a;
  border-color: #ffffff;
  transform: scale(1.18);
  animation: pulseToken 1.9s infinite;
}

.pitch-token.is-active .pitch-token-name {
  background: var(--era-accent);
  color: #12100a;
}

@keyframes pulseToken {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 177, 94, 0.65);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(214, 177, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 177, 94, 0);
  }
}

.tactical-note-box {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 16, 0.64);
  border: 1px solid var(--border);
}

.note-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.note-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.note-row strong {
  font-size: 13.5px;
}

.note-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.era-museum-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  transition: background 0.2s ease, transform 0.16s ease, border-color 0.2s ease;
}

.jump-pill:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* COMPACT LEFT TACTICAL PITCH PANEL INSIDE 3-COLUMN COCKPIT */
.studio-main-grid > .pitch-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, #131e18 0%, #0d1511 100%);
  border: 1px solid var(--border);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
  min-width: 0;
  overflow: hidden;
}

.studio-main-grid > .pitch-panel .pitch-panel-head {
  margin-bottom: 0;
  gap: 4px 8px;
  align-items: center;
}

.studio-main-grid > .pitch-panel .pitch-panel-head h3 {
  font-size: 17px;
}

.studio-main-grid > .pitch-panel .pitch-hint {
  font-size: 10.5px;
}

.studio-main-grid > .pitch-panel .tactical-pitch-wrap {
  max-width: 222px;
  margin: 0 auto;
  aspect-ratio: 320 / 430;
}

.studio-main-grid > .pitch-panel .pitch-token-circle {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.studio-main-grid > .pitch-panel .pitch-token-name {
  font-size: 8.5px;
  padding: 1px 4px;
}

.studio-main-grid > .pitch-panel .tactical-note-box {
  margin-top: 0;
  padding: 10px;
}

.studio-main-grid > .pitch-panel .note-row {
  margin-bottom: 6px;
}

.studio-main-grid > .pitch-panel .pitch-coach-btn {
  width: 100%;
  padding: 5px 9px;
  font-size: 12px;
}

.studio-main-grid > .pitch-panel .note-desc {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.studio-main-grid > .pitch-panel .era-museum-jumps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.studio-main-grid > .pitch-panel .jump-pill {
  min-height: 31px;
  padding: 4px 7px;
  font-size: 10.5px;
  gap: 5px;
  white-space: nowrap;
}

/* ERA SEASON CHRONICLE (HISTORY PHOTO, MATCHES W/D/L, BEST MOMENTS) */
.era-chronicle-card {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 34, 26, 0.95), rgba(10, 17, 13, 0.98));
  border: 1px solid rgba(226, 190, 108, 0.26);
  box-shadow: var(--shadow);
}

.chronicle-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.chronicle-header h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 1.9vw, 1.48rem);
  line-height: 1.25;
}

.chronicle-record-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.record-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(242, 237, 224, 0.06);
  border: 1px solid var(--border);
  color: var(--ink);
}

.record-pill.is-win {
  background: rgba(46, 160, 92, 0.16);
  border-color: rgba(74, 204, 125, 0.36);
  color: #8be7ac;
}

.record-pill.is-draw {
  background: rgba(226, 190, 108, 0.14);
  border-color: rgba(226, 190, 108, 0.34);
  color: var(--gold);
}

.record-pill.is-loss {
  background: rgba(217, 83, 79, 0.15);
  border-color: rgba(229, 107, 102, 0.36);
  color: #f6a4a1;
}

.record-pill.is-gold {
  background: var(--gold-soft);
  border-color: var(--border-strong);
  color: var(--gold);
}

.chronicle-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

/* ALL TEAMS OF THE YEAR DIRECTORY (SHARED IN #history & #teams) */
.milestone-teams-panel {
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(16, 28, 22, 0.94), rgba(9, 15, 12, 0.98));
  border: 1px solid rgba(226, 190, 108, 0.22);
}

.year-teams-directory {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.yt-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.yt-header h4 {
  margin: 2px 0 2px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.25;
}

.yt-subtitle {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.yt-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-search-input {
  width: min(230px, 100%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.78);
  border: 1px solid var(--border);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.yt-search-input::placeholder {
  color: var(--ink-dim);
}

.yt-search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(226, 190, 108, 0.18);
}

.yt-group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yt-detail-drawer {
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(8, 13, 11, 0.72);
  border: 1px solid rgba(226, 190, 108, 0.28);
  border-left-width: 4px;
  display: grid;
  gap: 8px;
}

.yt-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.yt-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.yt-detail-title-row strong {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
}

.yt-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(242, 237, 224, 0.08);
}

.yt-detail-cell {
  min-width: 0;
}

.yt-detail-cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.yt-detail-cell span {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
}

.yt-detail-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

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

.yt-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(8, 13, 11, 0.54);
  border: 1px solid var(--border);
  text-align: left;
  min-width: 0;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

.yt-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.yt-card.is-active {
  background: rgba(226, 190, 108, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(226, 190, 108, 0.35) inset;
}

.yt-swatch {
  width: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.yt-card-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}

.yt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.yt-group-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.yt-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(242, 237, 224, 0.08);
  color: var(--ink-muted);
}

.yt-badge.is-gold {
  background: rgba(226, 190, 108, 0.22);
  color: #f3d27d;
}

.yt-badge.is-silver {
  background: rgba(190, 206, 222, 0.18);
  color: #d6e4f0;
}

.yt-badge.is-bronze {
  background: rgba(205, 133, 63, 0.2);
  color: #eab27d;
}

.yt-badge.is-playoff {
  background: rgba(46, 160, 92, 0.18);
  color: #8be7ac;
}

.yt-record {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-toggle-more-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.chronicle-tab-btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(8, 13, 11, 0.56);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  transition: all 0.18s ease;
}

.chronicle-tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.chronicle-tab-btn.is-active {
  background: var(--era-soft);
  border-color: var(--era-accent);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--era-accent) inset;
}

.chronicle-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: center;
}

.chronicle-photo-frame {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 190, 108, 0.26);
  background: rgba(8, 13, 11, 0.88);
}

.chronicle-photo {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center center;
}

.chronicle-photo-caption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  border-top: 1px solid rgba(242, 237, 224, 0.08);
}

.chronicle-story-col p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-muted);
}

.chronicle-trophy-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(226, 190, 108, 0.1);
  border: 1px solid rgba(226, 190, 108, 0.28);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.match-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

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

.match-log-row {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(8, 13, 11, 0.58);
  border: 1px solid var(--border);
  display: grid;
  gap: 5px;
  min-width: 0;
}

.match-log-row.is-win {
  border-left: 3px solid #4acc7d;
}

.match-log-row.is-draw {
  border-left: 3px solid var(--gold);
}

.match-log-row.is-loss {
  border-left: 3px solid #e56b66;
}

.match-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.match-log-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}

.match-log-score-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-log-score {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.result-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.result-badge.is-win {
  background: rgba(46, 160, 92, 0.22);
  color: #8be7ac;
}

.result-badge.is-draw {
  background: rgba(226, 190, 108, 0.2);
  color: var(--gold);
}

.result-badge.is-loss {
  background: rgba(217, 83, 79, 0.22);
  color: #f6a4a1;
}

.match-log-opponent {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.match-log-note {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.42;
}

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

.moment-card {
  padding: 13px;
  border-radius: 14px;
  background: rgba(8, 13, 11, 0.62);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.moment-card-photo {
  width: 100%;
  height: 158px;
  object-fit: contain;
  background: rgba(8, 13, 11, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(226, 190, 108, 0.22);
  cursor: zoom-in;
}

.moment-date-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.moment-card h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.25;
}

.moment-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* BALL & KIT MUSEUMS */
.museum-showcase-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.ball-vitrine-card,
.kit-vitrine-card,
.museum-dossier-card {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.vitrine-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vitrine-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
}

.vitrine-actions,
.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(8, 13, 11, 0.72);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.mini-icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.mini-btn,
.view-switch-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.72);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
  transition: all 0.2s ease;
}

.mini-btn.is-active,
.view-switch-btn.is-active {
  background: var(--gold);
  color: #13110b;
  border-color: var(--gold);
  font-weight: 600;
}

/* 25-BALL SELECTOR GRID WITH REAL THUMBNAILS */
.ball-selector-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ball-tab-btn {
  flex-direction: row !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 7px 10px !important;
}

.ball-tab-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(226, 190, 108, 0.34);
  background: #0b120e;
}

.ball-tab-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ball-tab-name {
  display: block;
  width: 100%;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ball-canvas-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0 4px;
  background: radial-gradient(circle at 50% 48%, rgba(36, 118, 72, 0.14), rgba(226, 190, 108, 0.05) 36%, transparent 68%);
}

.ball-photo-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ball-photo-stage[hidden],
#ball-3d-canvas[hidden],
.mini-btn[hidden] {
  display: none !important;
}

.ball-real-photo {
  width: min(370px, 100%);
  height: 336px;
  object-fit: contain;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(25, 42, 33, 0.92), rgba(8, 13, 11, 0.96));
  border: 1px solid rgba(226, 190, 108, 0.3);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  padding: 10px;
  cursor: zoom-in;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ball-real-photo.is-zoomed {
  transform: scale(1.26);
  cursor: zoom-out;
  z-index: 5;
}

.ball-photo-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.72);
  border: 1px solid var(--border);
}

#ball-3d-canvas {
  width: min(350px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  cursor: grab;
  touch-action: none;
}

#ball-3d-canvas:active {
  cursor: grabbing;
}

.canvas-drag-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* KIT VITRINE + HOTSPOTS */
.kit-mannequin-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kit-aspect-frame {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 360 / 480;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(224, 190, 112, 0.34);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
  padding: 12px;
  overflow: hidden;
}

.kit-svg-container,
.kit-svg-art,
.kit-museum-photo {
  width: 100%;
  height: 100%;
  display: block;
}

.kit-museum-photo {
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.kit-hotspot-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s ease;
}

.kit-hotspot-layer.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #141821;
  border: 2px solid var(--gold);
  color: #f4d88f;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(10, 12, 16, 0.28), 0 0 0 4px rgba(224, 190, 112, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hotspot-pin:hover,
.hotspot-pin.is-active {
  transform: translate(-50%, -50%) scale(1.22);
  background: var(--gold);
  color: #11151d;
  border-color: #11151d;
  box-shadow: 0 0 0 8px rgba(224, 190, 112, 0.35);
}

/* DOSSIER DETAILS */
.dossier-title {
  margin: 4px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.spec-cell {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 16, 0.56);
  border: 1px solid rgba(240, 236, 226, 0.08);
}

.spec-cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.spec-cell span {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.metric-bars {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.metric-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.metric-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(243, 237, 225, 0.08);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c4983f, #f0cf7b);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.innovation-callout {
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  margin: 14px 0;
  font-size: 13.5px;
}

.innovation-callout strong {
  display: block;
  color: var(--gold);
  margin-bottom: 3px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.dossier-story {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.hotspot-inspector {
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 16, 0.68);
  border: 1px solid var(--border-strong);
}

.hotspot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.hotspot-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
}

.hotspot-chip.is-active {
  background: var(--gold);
  color: #13110b;
  border-color: var(--gold);
  font-weight: 600;
}

.hotspot-detail-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--gold);
}

.hotspot-detail-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
}

/* FOOTBALL ATLAS: COMPACT 3-TAB ENCYCLOPEDIA */
.atlas-shell {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.atlas-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.atlas-tab-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.18s ease;
}

.atlas-tab-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.atlas-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(226, 190, 108, 0.18), rgba(36, 118, 72, 0.22));
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(226, 190, 108, 0.28) inset;
}

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

.tactic-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(8, 13, 11, 0.62);
  border: 1px solid var(--border);
}

.tactic-mini-pitch {
  width: 78px;
  height: 106px;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(235, 244, 232, 0.22);
}

.tactic-card-meta {
  min-width: 0;
}

.tactic-era-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.tactic-card-meta h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.tactic-card-meta p {
  margin: 0 0 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.38;
}

.tactic-card-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.tactic-edge-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8dd4a8;
}

.tactic-jump-btn {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gold);
}

.tactic-jump-btn:hover {
  background: var(--gold);
  color: #13110b;
}

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

.laws-blueprint-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  align-content: start;
  gap: 10px;
}

.law-blueprint-card {
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(8, 13, 11, 0.62);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.law-blueprint-card .law-badge {
  margin-bottom: 1px;
}

.law-blueprint-card h4 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--ink);
}

.law-blueprint-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.pitch-blueprint-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(8, 13, 11, 0.65);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.pitch-blueprint-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.pitch-blueprint-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

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

.law-card,
.record-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(8, 13, 11, 0.62);
  border: 1px solid var(--border);
}

.law-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.law-card h4,
.record-card h4 {
  margin: 0 0 5px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.25;
}

.law-card p,
.record-card p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.42;
}

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

.record-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.05;
  margin-bottom: 6px;
}

/* COMPARISON TABLE */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(226, 190, 108, 0.08);
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(242, 237, 224, 0.02);
}

.comparison-table td:last-child {
  color: var(--ink);
  font-weight: 500;
  background: rgba(36, 118, 72, 0.08);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.comparison-table td {
  color: var(--ink-muted);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* FOOTER */
.site-footer {
  padding: 28px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 4px;
}

.footer-inner p {
  margin: 0;
  max-width: 580px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

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

.footer-mini-link {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.footer-mini-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* FULL-HEIGHT CLOSE-UP STUDIO ZOOM LIGHTBOX */
.closeup-modal {
  position: fixed;
  inset: 0;
  z-index: 1550;
  display: grid;
  place-items: center;
  padding: 16px;
}

.closeup-modal[hidden] {
  display: none !important;
}

.closeup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(12px);
}

.closeup-dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 32px));
  height: min(94vh, 920px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 22px;
  overflow: hidden;
  background: #11151d;
  border: 1px solid rgba(224, 190, 112, 0.28);
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.72);
}

.closeup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 10px 16px;
  background: #11151d;
  border-bottom: 1px solid rgba(240, 236, 226, 0.1);
}

.closeup-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.closeup-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--era-soft);
  border: 1px solid var(--era-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--era-accent);
}

.closeup-identity-text {
  min-width: 0;
}

.closeup-identity-text h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closeup-identity-text span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closeup-presets {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.closeup-preset-btn {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(240, 236, 226, 0.05);
  border: 1px solid rgba(240, 236, 226, 0.14);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: all 0.16s ease;
}

.closeup-preset-btn:hover {
  border-color: rgba(224, 190, 112, 0.5);
  color: var(--ink);
}

.closeup-preset-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #11151d;
}

.closeup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.closeup-zoom-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(240, 236, 226, 0.06);
  border: 1px solid rgba(240, 236, 226, 0.14);
}

.closeup-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.closeup-step-btn:hover {
  background: rgba(224, 190, 112, 0.18);
  color: var(--gold);
}

.closeup-zoom-readout {
  min-width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.closeup-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(240, 236, 226, 0.06);
  border: 1px solid rgba(240, 236, 226, 0.16);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.closeup-close-btn:hover {
  background: rgba(224, 190, 112, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.closeup-stage {
  position: relative;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: zoom-in;
}

.closeup-stage.is-zoomed {
  cursor: grab;
}

.closeup-stage.is-panning {
  cursor: grabbing;
}

.closeup-canvas-wrap {
  position: absolute;
  inset: 0;
  padding: 12px 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.closeup-stage.is-panning .closeup-canvas-wrap {
  transition: none;
}

.closeup-hero-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.closeup-hero-img[hidden] {
  display: none !important;
}

.closeup-svg-fallback {
  height: 92%;
  width: 100%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.closeup-svg-fallback[hidden] {
  display: none !important;
}

.closeup-svg-fallback svg {
  height: 100%;
  width: auto;
  max-width: 90%;
}

.closeup-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(17, 21, 29, 0.8);
  color: #f4f0e8;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.closeup-nav-btn:hover:not(:disabled) {
  background: #141821;
  border-color: var(--gold);
  color: var(--gold);
}

.closeup-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.closeup-prev-btn {
  left: 16px;
}

.closeup-next-btn {
  right: 16px;
}

.closeup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 18px;
  background: #11151d;
  border-top: 1px solid rgba(240, 236, 226, 0.1);
}

.closeup-gear-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.closeup-gear-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(240, 236, 226, 0.06);
  border: 1px solid rgba(240, 236, 226, 0.14);
  font-size: 11.5px;
  color: var(--ink);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.closeup-gear-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
}

.closeup-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* RESPONSIVE */
@media (max-width: 1140px) {
  .studio-main-grid {
    grid-template-columns: minmax(0, 1fr) 284px;
  }

  .studio-main-grid > .pitch-panel {
    grid-column: 1 / -1;
    order: 3;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 14px;
    align-items: center;
  }

  .studio-main-grid > .pitch-panel .pitch-panel-head {
    grid-column: 1 / -1;
  }

  .studio-main-grid > .pitch-panel .note-desc {
    -webkit-line-clamp: unset;
  }

  .football-ticker-strip,
  .era-tabs,
  .museum-selector-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline-ribbon,
  .ball-selector-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tactics-grid,
  .records-grid,
  .moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 1080px) {
  .hero-grid,
  .milestone-card,
  .squad-stage-grid,
  .squad-bottom-grid,
  .museum-showcase-grid,
  .active-player-dossier,
  .chronicle-overview-grid,
  .laws-blueprint-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .dossier-scout-side {
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 820px) {
  .studio-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-main-grid > .pitch-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-cyclorama {
    height: 500px;
  }

  .team-match-facts,
  .laws-cards-grid,
  .tactics-grid,
  .records-grid,
  .match-log-grid,
  .moments-grid,
  .yt-detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 980px) {
  .closeup-topbar {
    flex-wrap: wrap;
  }

  .closeup-presets {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1380px);
  }

  .football-ticker-strip,
  .era-tabs,
  .museum-selector-row,
  .ball-selector-grid,
  .dossier-scout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-ribbon,
  .chronicle-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .milestone-teams-panel {
    padding: 15px 14px;
  }

  .era-chronicle-card {
    padding: 15px 14px;
  }

  .chronicle-photo,
  .milestone-photo {
    height: 190px;
  }

  .ball-real-photo {
    height: 270px;
  }

  main,
  section {
    max-width: 100%;
    overflow-x: clip;
  }

  .team-match-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-cyclorama {
    height: 460px;
  }

  .closeup-modal {
    padding: 8px;
  }

  .closeup-dialog {
    width: calc(100vw - 16px);
    height: 94vh;
    border-radius: 16px;
  }

  .closeup-topbar,
  .closeup-footer {
    padding: 10px 12px;
  }

  .closeup-presets {
    order: 3;
    width: 100%;
  }

  .closeup-hint {
    display: none;
  }

  .studio-figure-item:not(.has-stage-video):not(.has-stage-canvas),
  .studio-figure-item.is-photo-figure:not(.has-stage-video):not(.has-stage-canvas) {
    width: 210px;
    height: 382px;
    margin-left: -105px;
    bottom: 36px;
  }

  .studio-figure-item.has-stage-video .studio-figure-caption,
  .studio-figure-item.has-stage-canvas .studio-figure-caption {
    top: 10px;
    left: 10px;
    bottom: auto;
  }

  .studio-figure-svg,
  .studio-figure-photo,
  .studio-figure-video {
    height: 348px;
    max-width: 240px;
  }

  .studio-gear-popover {
    width: min(220px, calc(100% - 24px));
    top: 48px;
    right: 12px;
  }

  .stage-nav-label {
    display: none;
  }

  .stage-nav-arrow {
    height: 36px;
    padding: 0 11px;
  }

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

  .team-banner {
    padding: 16px;
  }
}

@media (max-width: 540px) {
  .yt-grid,
  .chronicle-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   6-HALL INTERACTIVE SLIDE DECK, MULTI-TRACK HISTORY & ARCHIVAL LIGHTBOX
   ========================================================================== */
body {
  padding-bottom: 84px;
}

.site-header .main-nav a.is-active {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: var(--border-strong);
}

.museum-deck {
  position: relative;
}

.museum-slide {
  display: none;
}

.museum-slide.is-active {
  display: block;
  animation: slideFadeIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.history-slide {
  padding: 26px 0 42px;
}

.history-slide .timeline-shell {
  margin-top: 0;
}

/* Home slide hero spacing & 6-Hall Launcher */
.hall-launcher-head {
  margin-top: 18px;
  margin-bottom: 10px;
}

.hall-launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hall-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 15px 16px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(19, 32, 24, 0.94), rgba(10, 16, 12, 0.98));
  border: 1px solid rgba(226, 190, 108, 0.22);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}

.hall-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(28, 44, 34, 0.96), rgba(13, 21, 16, 0.98));
}

.hall-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hall-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.hall-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
}

.hall-card strong {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
}

.hall-card > span:last-child {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.42;
}

/* 6-track History / Tournaments / All-World Switcher */
.history-track-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.history-track-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(8, 13, 11, 0.72);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.18s ease;
}

.history-track-btn:hover {
  border-color: var(--border-strong);
}

.history-track-btn.is-active {
  background: linear-gradient(145deg, rgba(226, 190, 108, 0.2), rgba(226, 190, 108, 0.08));
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(226, 190, 108, 0.35) inset;
}

.history-track-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.history-track-btn.is-active .history-track-title {
  color: var(--gold);
}

.history-track-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

/* Compact ribbon mode for 23 World Cups / 17 Euros */
.timeline-ribbon.is-compact-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.timeline-ribbon.is-compact-grid .timeline-node {
  padding: 7px 9px;
}

.timeline-ribbon.is-compact-grid .timeline-node-year {
  font-size: 14px;
}

.timeline-ribbon.is-compact-grid .timeline-node-title {
  font-size: 10.5px;
}

/* Sub-slide Switcher (Story vs All Teams; 2K Podium vs Year Chronicle) */
.subslide-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.subslide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(8, 13, 11, 0.66);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.18s ease;
}

.subslide-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.subslide-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 700;
}

.period-filter-row[hidden],
.history-subpane[hidden],
.teams-subpane[hidden],
.atlas-comparison-wrap[hidden] {
  display: none !important;
}

.history-subpane.is-active,
.teams-subpane.is-active {
  animation: slideFadeIn 0.25s ease both;
}

/* Uncropped Full-Frame Archival Photo Stage (Blurred Ambient + Crisp Contain FG) */
.archival-photo-stage {
  position: relative;
  width: 100%;
  height: 245px;
  overflow: hidden;
  background: #070b09;
  cursor: zoom-in;
}

.chronicle-photo-frame .archival-photo-stage {
  height: 265px;
}

.archival-photo-bg {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  filter: blur(18px) saturate(1.1) brightness(0.32);
  transform: scale(1.12);
  pointer-events: none;
}

.archival-photo-fg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.25s ease;
}

.archival-photo-stage:hover .archival-photo-fg {
  transform: scale(1.02);
}

.archival-zoom-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 11, 9, 0.84);
  border: 1px solid rgba(226, 190, 108, 0.38);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  backdrop-filter: blur(8px);
}

/* Tournament Match & Scoreboard Strip inside History Card */
.tournament-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.score-stat-pill {
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(8, 13, 11, 0.58);
  border: 1px solid rgba(242, 237, 224, 0.1);
}

.score-stat-pill span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.score-stat-pill strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.3;
}

.score-stat-pill.is-gold {
  border-color: rgba(226, 190, 108, 0.35);
  background: rgba(226, 190, 108, 0.08);
}

.score-stat-pill.is-gold strong {
  color: var(--gold);
}

.tournament-cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cross-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(226, 190, 108, 0.14);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  transition: all 0.18s ease;
}

.cross-link-btn:hover {
  background: var(--gold);
  color: #13110b;
}

/* Atlas 4 Tabs Override */
.atlas-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.atlas-comparison-wrap {
  margin-top: 4px;
}

/* Persistent Bottom Deck Stepper Bar */
.deck-stepper-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(9, 14, 11, 0.9);
  border-top: 1px solid rgba(226, 190, 108, 0.25);
  backdrop-filter: blur(14px);
}

.deck-stepper-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stepper-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.06);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.stepper-nav-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.stepper-nav-btn:disabled {
  opacity: 0.36;
  cursor: default;
}

.stepper-next-btn {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 700;
}

.stepper-next-btn:hover:not(:disabled) {
  background: #f0cf7b;
  color: #13110b;
}

.stepper-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.stepper-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stepper-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.22);
  border: 1px solid transparent;
  transition: width 0.2s ease, background 0.2s ease;
}

.stepper-dot.is-active {
  width: 26px;
  background: var(--gold);
}

.stepper-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

/* Universal Archival Photo Modal Lightbox */
.archival-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 18px;
}

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

.archival-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 6, 0.88);
  backdrop-filter: blur(10px);
}

.archival-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #0d1510;
  border: 1px solid rgba(226, 190, 108, 0.36);
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.archival-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(242, 237, 224, 0.08);
}

.archival-modal-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.archival-modal-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
}

.archival-modal-stage {
  flex: 1 1 auto;
  min-height: 260px;
  max-height: calc(92vh - 118px);
  display: grid;
  place-items: center;
  background: #050806;
  padding: 12px;
}

.archival-modal-img {
  max-width: 100%;
  max-height: calc(92vh - 142px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.archival-modal-caption {
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
  border-top: 1px solid rgba(242, 237, 224, 0.08);
  background: rgba(7, 11, 9, 0.9);
}

.hero-section.museum-slide {
  padding: 20px 0 26px;
}

.hero-section.museum-slide .hero-grid {
  gap: 20px;
}

.hero-section.museum-slide .hero-copy h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  margin: 8px 0 10px;
}

.hero-section.museum-slide .football-ticker-strip {
  margin-top: 14px;
}

.hero-section.museum-slide .hall-launcher-head {
  margin-top: 14px;
  margin-bottom: 8px;
}

.hero-section.museum-slide .hall-card {
  padding: 12px 14px;
  gap: 4px;
}

.history-slide {
  padding: 16px 0 28px;
}

.history-slide .timeline-shell {
  padding: 18px 20px;
}

.teams-section.museum-slide {
  padding: 18px 0 28px;
}

.teams-section.museum-slide .section-header-row {
  margin-bottom: 12px;
}

.teams-section.museum-slide .era-tabs {
  margin-bottom: 10px;
}

.teams-section.museum-slide .team-banner {
  padding: 14px 18px;
  margin-bottom: 10px;
}

@media (max-width: 1140px) {
  .hall-launcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-track-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline-ribbon.is-compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .hall-launcher-grid,
  .tournament-scoreboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .atlas-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .atlas-tab-btn {
    padding: 8px 9px;
    font-size: 11.5px;
    line-height: 1.25;
  }

  .history-track-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .history-track-btn {
    padding: 8px 10px;
  }

  .history-track-sub {
    display: none;
  }

  .timeline-ribbon.is-compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .archival-photo-stage,
  .chronicle-photo-frame .archival-photo-stage {
    height: 210px;
  }

  .stepper-status {
    display: none;
  }

  .stepper-nav-btn {
    padding: 7px 11px;
    font-size: 12px;
  }
}

/* ==========================================================================
   ERA HERALDRY, TEAM MUSEUM PASSPORT, TOURNAMENT STRIP & 8-TAB ENCYCLOPEDIA
   ========================================================================== */

/* Team Cards: Mini Flag + Crest Stack & Formation Chip */
.yt-emblem-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 30px;
  flex-shrink: 0;
}

.yt-flag-mini {
  width: 28px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-flag-mini svg {
  width: 28px;
  height: 19px;
  display: block;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.yt-crest-mini {
  width: 26px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-crest-mini svg {
  width: 26px;
  height: 29px;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.yt-formation-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(226, 190, 108, 0.14);
  border: 1px solid rgba(226, 190, 108, 0.34);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Selected Team Museum Passport Drawer */
.yt-era-passport {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 190, 108, 0.22);
  display: grid;
  gap: 10px;
  min-width: 0;
}

.yt-era-passport-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-era-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.yt-artifact-card {
  padding: 10px 11px;
  border-radius: 11px;
  background: linear-gradient(150deg, rgba(16, 29, 22, 0.92), rgba(8, 13, 11, 0.96));
  border: 1px solid rgba(226, 190, 108, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.yt-artifact-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.yt-artifact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.yt-stars-pill {
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-muted);
  background: rgba(242, 237, 224, 0.08);
  border: 1px solid rgba(242, 237, 224, 0.14);
  white-space: nowrap;
}

.yt-stars-pill.is-gold {
  color: #f3d27d;
  background: rgba(226, 190, 108, 0.2);
  border-color: rgba(226, 190, 108, 0.45);
}

.yt-artifact-visual {
  min-height: 78px;
  padding: 7px;
  border-radius: 9px;
  background: rgba(6, 10, 8, 0.78);
  border: 1px solid rgba(242, 237, 224, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yt-artifact-visual svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.yt-artifact-visual .era-flag-svg.is-large {
  width: 96px;
  height: 64px;
}

.yt-artifact-visual .era-crest-svg.is-large {
  width: 72px;
  height: 82px;
}

.yt-artifact-visual .era-minikit-svg {
  width: 64px;
  height: 80px;
}

.yt-ball-thumb-img {
  width: 72px;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.yt-artifact-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}

.yt-artifact-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.4;
  word-break: break-word;
}

.yt-ball-link-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(226, 190, 108, 0.16);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.yt-ball-link-btn:hover {
  background: var(--gold);
  color: #13110b;
}

/* Tactical & Rules Context inside Drawer */
.yt-era-context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 10px;
  min-width: 0;
}

.yt-pitch-card,
.yt-rules-card {
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(12, 22, 16, 0.84);
  border: 1px solid rgba(226, 190, 108, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.yt-pitch-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.yt-pitch-body {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.yt-pitch-svg-wrap {
  width: 110px;
  max-width: 100%;
  flex-shrink: 0;
}

.formation-pitch-svg {
  width: 100%;
  max-width: 110px;
  height: auto;
  display: block;
  border-radius: 9px;
  border: 1px solid rgba(248, 250, 252, 0.16);
}

.yt-pitch-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.yt-pitch-copy strong {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.28;
}

.yt-pitch-copy p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.44;
}

.yt-pitch-subdesc {
  font-size: 11px;
  color: var(--ink-dim);
  line-height: 1.38;
}

.yt-format-lead {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.42;
}

.yt-rules-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.yt-rule-pill {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(8, 13, 11, 0.72);
  border: 1px solid rgba(242, 237, 224, 0.08);
  min-width: 0;
}

.yt-rule-pill small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--gold);
}

.yt-rule-pill span {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.35;
  word-break: break-word;
}

/* Compact Era Passport Strip inside Slide 2 (#milestone-detail) */
.era-passport-strip {
  display: grid;
  grid-template-columns: minmax(150px, auto) repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 30, 22, 0.88), rgba(8, 13, 11, 0.94));
  border: 1px solid rgba(226, 190, 108, 0.28);
  align-items: stretch;
  min-width: 0;
}

.era-passport-ball-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(226, 190, 108, 0.12);
  border: 1px solid rgba(226, 190, 108, 0.34);
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.era-passport-ball-btn:hover {
  border-color: var(--gold);
  background: rgba(226, 190, 108, 0.22);
}

.era-passport-ball-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.era-passport-ball-meta {
  display: grid;
  min-width: 0;
}

.era-passport-ball-meta small {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--gold);
}

.era-passport-ball-meta strong {
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.era-passport-cell {
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(8, 13, 11, 0.62);
  border: 1px solid rgba(242, 237, 224, 0.08);
  min-width: 0;
}

.era-passport-cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--gold);
}

.era-passport-cell span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.32;
  word-break: break-word;
}

/* Slide 6: 8-Tab Atlas & Full Encyclopedia Grids */
.atlas-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.encyc-flow {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.encyc-summary-banner {
  padding: 12px 15px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(226, 190, 108, 0.14), rgba(30, 91, 57, 0.18));
  border: 1px solid rgba(226, 190, 108, 0.34);
}

.encyc-summary-banner p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.48;
}

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

.encyc-note-box {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(8, 13, 11, 0.68);
  border: 1px solid var(--border);
  min-width: 0;
}

.encyc-note-box small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.encyc-note-box p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.44;
}

.encyc-section-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(242, 237, 224, 0.1);
  display: grid;
  gap: 12px;
  min-width: 0;
}

.encyc-section-block.is-first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.encyc-section-head h4 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
}

.encyc-laws-grid,
.encyc-timeline-grid,
.encyc-women-grid,
.encyc-stadiums-grid,
.encyc-confed-grid,
.encyc-positions-grid,
.encyc-glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  min-width: 0;
}

.encyc-podium-grid,
.encyc-leagues-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.encyc-card,
.encyc-podium-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(8, 13, 11, 0.66);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.encyc-podium-card.is-top {
  background: linear-gradient(145deg, rgba(226, 190, 108, 0.14), rgba(14, 24, 18, 0.86));
  border-color: rgba(226, 190, 108, 0.42);
}

.encyc-podium-top,
.encyc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.encyc-rank-pill,
.encyc-year-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold);
  color: #14110b;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.encyc-count-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(30, 91, 57, 0.45);
  border: 1px solid rgba(139, 231, 172, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #a7f3c4;
}

.encyc-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.encyc-card h4,
.encyc-podium-card h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.28;
}

.encyc-meta-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.encyc-years-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #f3d27d;
  background: rgba(226, 190, 108, 0.1);
  border: 1px solid rgba(226, 190, 108, 0.24);
  border-radius: 7px;
  padding: 4px 8px;
}

.encyc-record-line {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
}

.encyc-record-line strong {
  color: var(--gold);
  font-weight: 600;
}

.encyc-card p,
.encyc-podium-card p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.44;
}

.encyc-subnote {
  padding-top: 6px;
  border-top: 1px solid rgba(242, 237, 224, 0.08);
  font-size: 11.5px !important;
  color: var(--ink-dim) !important;
}

@media (max-width: 1140px) {
  .atlas-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yt-era-artifacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .encyc-laws-grid,
  .encyc-timeline-grid,
  .encyc-women-grid,
  .encyc-stadiums-grid,
  .encyc-confed-grid,
  .encyc-positions-grid,
  .encyc-glossary-grid,
  .encyc-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .era-passport-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .yt-era-context-grid,
  .encyc-podium-grid,
  .encyc-leagues-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .encyc-laws-grid,
  .encyc-timeline-grid,
  .encyc-women-grid,
  .encyc-stadiums-grid,
  .encyc-confed-grid,
  .encyc-positions-grid,
  .encyc-glossary-grid,
  .encyc-notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .yt-era-artifacts-grid,
  .yt-rules-pills,
  .era-passport-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .yt-pitch-body {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }

  .yt-pitch-svg-wrap {
    width: 96px;
  }
}

/* =========================================================
   COMPACT MUSEUM PASSIVE ACCORDIONS, POSTERS & MODAL (v14)
   ========================================================= */
.yt-click-hint {
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(226, 190, 108, 0.08);
  border: 1px dashed rgba(226, 190, 108, 0.34);
  font-size: 12px;
  color: var(--gold);
}

.compact-acc {
  margin-top: 10px;
  border-radius: 11px;
  border: 1px solid rgba(242, 237, 224, 0.12);
  background: rgba(7, 12, 10, 0.72);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.compact-acc[open] {
  border-color: rgba(226, 190, 108, 0.38);
  background: rgba(11, 18, 14, 0.9);
}

.compact-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}

.compact-acc > summary::-webkit-details-marker {
  display: none;
}

.compact-acc > summary::after {
  content: '▾';
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 12px;
  transition: transform 0.18s ease;
}

.compact-acc[open] > summary::after {
  transform: rotate(180deg);
}

.compact-acc-body {
  padding: 0 13px 12px;
  border-top: 1px solid rgba(242, 237, 224, 0.08);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.compact-acc-body > p:first-child,
.compact-acc-body > .milestone-summary:first-child {
  margin-top: 10px;
}

.compact-acc--inline {
  margin-top: 10px;
}

.acc-sum-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.acc-sum-left strong {
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-sum-right {
  margin-left: auto;
  flex-shrink: 0;
}

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

.encyc-acc-item {
  margin-top: 0;
}

.atlas-search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.atlas-search-input {
  flex: 1 1 260px;
  min-width: 0;
}

/* Cross-link primary pill */
.cross-link-btn.is-primary-link {
  border-color: var(--gold);
  background: rgba(226, 190, 108, 0.16);
  color: var(--gold);
}

/* Authentic Matchday Vector Poster (tournaments without authentic era photo) */
.tournament-poster-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: radial-gradient(circle at top right, rgba(226, 190, 108, 0.14), transparent 62%),
    linear-gradient(155deg, #0d1d16 0%, #07100c 100%);
  border: 1px solid rgba(226, 190, 108, 0.34);
}

.poster-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.poster-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

.poster-host {
  font-size: 12px;
  color: var(--ink-muted);
}

.poster-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(5, 9, 7, 0.65);
  border: 1px solid rgba(242, 237, 224, 0.09);
}

.poster-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0;
}

.poster-side small {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.poster-side strong {
  font-size: 13.5px;
  line-height: 1.25;
  color: var(--ink);
  word-break: normal;
  overflow-wrap: break-word;
}

.poster-side-sub {
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.2;
}

.poster-emblem-pair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.poster-emblem-pair .era-flag-svg {
  width: 58px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

.poster-emblem-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-score-note {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.poster-side.is-champion strong {
  color: var(--gold);
}

.timeline-ribbon[hidden],
.subslide-bar[hidden],
.period-filter-row[hidden],
.history-subpane[hidden] {
  display: none !important;
}

.yt-controls-right .yt-search-input {
  min-width: 248px;
}

.poster-flag-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.poster-flag-wrap .era-flag-svg {
  width: 72px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.poster-crest-pin {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0a140f;
  border: 1px solid rgba(226, 190, 108, 0.5);
  display: grid;
  place-items: center;
  padding: 2px;
}

.poster-score-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(226, 190, 108, 0.1);
  border: 1px solid rgba(226, 190, 108, 0.34);
}

.poster-vs {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.poster-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

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

.poster-ball-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(15, 29, 22, 0.85);
  border: 1px solid rgba(226, 190, 108, 0.3);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.poster-ball-pill:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.poster-ball-pill img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
}

.poster-ball-pill span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.poster-ball-pill strong {
  font-size: 11.5px;
  color: var(--ink);
}

.poster-ball-pill small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
}

.poster-scorer-pill {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.poster-scorer-pill strong {
  color: var(--ink);
}

/* Interactive Team & World Nation Passport Modal */
.passport-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

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

.passport-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 6, 0.88);
  backdrop-filter: blur(10px);
}

.passport-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #0c1510;
  border: 1px solid rgba(226, 190, 108, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.passport-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(242, 237, 224, 0.1);
  background: rgba(8, 13, 10, 0.94);
}

.passport-modal-title-group {
  min-width: 0;
}

.passport-modal-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
}

.passport-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.passport-pos-readout {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  min-width: 48px;
  text-align: center;
}

.passport-modal-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.passport-modal-body > * {
  flex-shrink: 0;
}

.passport-modal-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 25, 19, 0.8);
  border-left: 4px solid var(--gold);
}

.passport-acc-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.passport-acc-stack .compact-acc {
  margin-top: 0;
}

/* All World 211+ directory tuning */
.aw-confed-pills {
  margin-bottom: 10px;
}

/* Compact Hero tweaks */
.hero-section.museum-slide .hero-lead {
  font-size: 15px;
  line-height: 1.48;
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .encyc-acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .history-track-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passport-modal {
    padding: 8px;
  }

  .passport-modal-dialog {
    max-height: 94vh;
    border-radius: 14px;
  }

  .passport-modal-head {
    padding: 10px 12px;
  }

  .passport-modal-head h3 {
    font-size: 17px;
  }

  .passport-modal-body {
    padding: 12px;
  }

  .poster-matchup {
    gap: 8px;
    padding: 9px;
  }

  .poster-flag-wrap .era-flag-svg {
    width: 56px;
  }

  .yt-controls-right,
  .yt-controls-right .yt-search-input {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- Worldwide Clubs + Nations Directory & Cross-Navigation (?v=2026112215) ---------- */
.aw-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.aw-mode-btn {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(12, 20, 17, 0.9);
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.aw-mode-btn:hover {
  color: var(--ink);
  border-color: rgba(226, 190, 108, 0.45);
}

.aw-mode-btn.is-active {
  background: linear-gradient(135deg, rgba(226, 190, 108, 0.22), rgba(92, 169, 156, 0.18));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 14px rgba(226, 190, 108, 0.16);
}

.aw-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.aw-filter-row .aw-confed-pills {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.aw-country-select {
  flex: 0 0 auto;
  min-width: 210px;
  max-width: 270px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 11, 0.94);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.aw-country-select:focus {
  outline: none;
  border-color: var(--gold);
}

.aw-club-tag {
  background: rgba(92, 169, 156, 0.14);
  border-color: rgba(92, 169, 156, 0.35);
  color: #9de2d5;
}

.aw-club-badge {
  white-space: normal;
  line-height: 1.3;
  text-align: left;
}

.passport-cross-btn {
  margin-top: 2px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .aw-mode-switch {
    gap: 6px;
  }

  .aw-mode-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 7px 10px;
    font-size: 12px;
  }

  .aw-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .aw-country-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

/* ---------- Quiet-Luxury Real Crests, Kits, Live Squads & Aesthetic Directory (?v=2026112216) ---------- */
#milestone-teams-panel {
  scroll-margin-top: 84px;
}

.aw-count-muted {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9em;
}

.aw-subtitle-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.aw-search-v2 {
  min-width: 260px;
}

.aw-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.aw-card-v2 {
  position: relative;
  appearance: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 26, 22, 0.94), rgba(10, 17, 14, 0.98));
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aw-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--card-accent, #144e46), var(--card-accent2, #e2be6c));
  opacity: 0.85;
}

.aw-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 190, 108, 0.48);
  background: linear-gradient(180deg, rgba(22, 34, 29, 0.96), rgba(12, 20, 17, 0.99));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.aw-emblem-plinth {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.aw-flag-dock {
  position: absolute;
  right: -5px;
  bottom: -4px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 0;
  background: #0a120f;
}

.aw-card-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aw-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.aw-card-title {
  font-size: 14.5px;
  font-weight: 650;
  color: #f6f4ee;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-card-year {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(212, 224, 218, 0.56);
}

.aw-card-sub {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  min-width: 0;
}

.aw-card-honour {
  font-size: 11.5px;
  color: rgba(212, 224, 218, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.aw-card-honour.is-gold {
  color: #e8cf8e;
}

.aw-card-chips {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.aw-meta-dot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(92, 169, 156, 0.14);
  border: 1px solid rgba(92, 169, 156, 0.28);
  color: #9de2d5;
  white-space: nowrap;
}

.aw-meta-dot.is-kit {
  background: rgba(226, 190, 108, 0.12);
  border-color: rgba(226, 190, 108, 0.3);
  color: #eed69a;
}

/* Real official images & typographic seals */
.real-crest-img {
  display: block;
  object-fit: contain;
}

.real-crest-img.is-mini {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.42));
}

.real-crest-img.is-large {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.real-flag-img {
  display: block;
  object-fit: cover;
}

.real-flag-img.is-mini {
  width: 21px;
  height: 14px;
}

.aw-flag-dock .era-flag-svg.is-mini {
  width: 21px;
  height: 14px;
  display: block;
}

.real-flag-img.is-large {
  width: 52px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.heraldic-crest-svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.heraldic-crest-svg.is-mini {
  width: 30px;
  height: 36px;
}

.heraldic-crest-svg.is-large {
  width: 56px;
  height: 68px;
}

.monogram-seal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 25%, var(--seal-a, #144e46), #09110e 85%);
  border: 1.5px solid var(--seal-b, #e2be6c);
  color: #f7f4ec;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 10px rgba(0, 0, 0, 0.42);
}

.monogram-seal.is-mini {
  width: 38px;
  height: 38px;
  font-size: 11px;
}

.monogram-seal.is-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 16px;
}

.monogram-seal-stars {
  font-size: 7px;
  line-height: 1;
  color: #facc15;
  margin-bottom: 1px;
}

.monogram-seal.is-large .monogram-seal-stars {
  font-size: 9px;
}

.monogram-seal-abbr {
  line-height: 1;
  font-weight: 700;
}

/* Real studio jersey pedestal & textile spec card */
.yt-artifact-visual.is-tall-kit {
  min-height: 224px;
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-kit-stage {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 32%, rgba(28, 48, 39, 0.42), #0a120f 78%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.real-kit-photo {
  max-width: 92%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.yt-ball-thumb-img.is-showcase {
  width: 220px;
  height: 196px;
  max-width: 94%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

.kit-textile-card {
  width: 100%;
  height: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(16, 28, 23, 0.95), rgba(9, 15, 12, 0.98));
  border: 1px solid rgba(226, 190, 108, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.kit-textile-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kit-swatch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.kit-swatch-chip {
  width: 100%;
  height: 58px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.kit-swatch-chip.is-jersey {
  height: 76px;
}

.kit-swatch-col small {
  font-size: 11px;
  color: var(--muted);
}

.kit-textile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.kit-textile-meta strong {
  font-size: 12.5px;
  color: var(--gold);
}

.kit-textile-meta span {
  font-size: 11.5px;
  color: var(--muted);
}

/* 3-tab Team Passport Modal */
.passport-hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(125deg, rgba(20, 34, 28, 0.96), rgba(10, 17, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--club-a, #e2be6c);
}

.passport-hero-emblems {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.passport-crest-box {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.passport-flag-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.passport-flag-box small {
  font-size: 11px;
  color: var(--muted);
}

.passport-hero-copy {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.passport-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.passport-coach-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #edf1ee;
}

.passport-hero-actions {
  flex: 0 0 auto;
}

.passport-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.passport-tab-btn {
  appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(12, 20, 17, 0.85);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.passport-tab-btn:hover {
  color: var(--ink);
  border-color: rgba(226, 190, 108, 0.45);
}

.passport-tab-btn.is-active {
  background: linear-gradient(135deg, rgba(226, 190, 108, 0.22), rgba(92, 169, 156, 0.18));
  border-color: var(--gold);
  color: var(--gold);
}

.passport-visual-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.passport-squad-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(12, 20, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.passport-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.passport-preview-head small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.passport-preview-head strong {
  font-size: 14px;
  color: var(--ink);
}

.passport-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-player-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #edf1ee;
}

.preview-player-chip b {
  color: var(--gold);
  margin-right: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.passport-history-box {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(12, 20, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.passport-history-box small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 6px;
}

/* Interactive Starting XI Pitch + Full Squad Table */
.passport-squad-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pitch-v2-board {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 190, 108, 0.24);
  background: #0b1c14;
}

.pitch-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(8, 15, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.pitch-v2-head > span {
  white-space: nowrap;
}

.pitch-v2-head strong {
  color: var(--gold);
}

.pitch-v2-head small {
  color: var(--muted);
  font-size: 11.5px;
}

.pitch-v2-field {
  position: relative;
  padding: 20px 12px;
  min-height: 290px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(22, 74, 46, 0.55) 0 36px,
      rgba(17, 59, 36, 0.55) 36px 72px
    ),
    radial-gradient(circle at 50% 50%, #14492d, #0a2517);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pitch-v2-halfline {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.pitch-v2-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pitch-v2-box-top,
.pitch-v2-box-bot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pitch-v2-box-top {
  top: 0;
  border-top: none;
}

.pitch-v2-box-bot {
  bottom: 0;
  border-bottom: none;
}

.pitch-v2-rows {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pitch-v2-row {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 6px;
}

.pitch-player-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pitch-pin-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pin-bg, #144e46);
  border: 2px solid var(--pin-ring, #e2be6c);
  color: #ffffff;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.pitch-pin-name {
  font-size: 11px;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(7, 13, 10, 0.84);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.squad-coach-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(226, 190, 108, 0.08);
  border: 1px solid rgba(226, 190, 108, 0.25);
}

.squad-coach-bar small {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.squad-coach-bar strong {
  font-size: 14px;
  color: #f8fafc;
}

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

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

.squad-line-col {
  border-radius: 12px;
  background: rgba(12, 20, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.squad-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.squad-line-head strong {
  font-size: 12.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.squad-line-head span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.squad-line-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.squad-player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.squad-num {
  flex: 0 0 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.squad-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f3f5f4;
}

.squad-pos-chip {
  font-size: 10px;
  color: var(--muted);
}

/* Slide 3 Non-Cartoon Era Figure Studio Card (1872-1986 real museum photography) */
.studio-cyclorama:has(.real-era-figure-card) {
  background: radial-gradient(circle at 50% 42%, #13261e 0%, #09110d 80%);
  border-color: rgba(226, 190, 108, 0.24);
  height: 520px;
}

.studio-cyclorama:has(.real-era-figure-card) .studio-cyclorama-horizon {
  background: linear-gradient(180deg, rgba(10, 18, 15, 0) 0%, rgba(226, 190, 108, 0.08) 100%);
}

.studio-cyclorama:has(.real-era-figure-card) .studio-figure-item {
  height: 465px;
  bottom: 58px;
}

.studio-cyclorama:has(.real-era-figure-card) .studio-figure-caption {
  background: rgba(9, 15, 12, 0.92);
  color: #f3f1ea;
  border: 1px solid rgba(226, 190, 108, 0.34);
  margin-top: 8px;
}

.real-era-figure-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 368px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 28, 23, 0.96), rgba(9, 15, 12, 0.98));
  border: 1px solid rgba(226, 190, 108, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 8px;
}

.real-era-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: blur(3px) saturate(0.7);
}

.real-era-kit-layer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 304px;
  padding: 10px;
  border-radius: 12px;
  background: #f9f8f4;
  border: 1px solid rgba(226, 190, 108, 0.25);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.08);
}

.real-era-kit-photo {
  max-width: 92%;
  max-height: 282px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.real-era-tag-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.88);
  border: 1px solid rgba(226, 190, 108, 0.32);
  font-size: 11.5px;
}

.real-era-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--gold);
}

.real-era-role {
  color: var(--ink);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .aw-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .aw-grid-v2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .aw-search-v2 {
    min-width: 0;
    width: 100%;
  }

  .passport-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .passport-visual-duo,
  .passport-squad-grid,
  .squad-flat-grid {
    grid-template-columns: 1fr;
  }

  .pitch-pin-name {
    max-width: 60px;
    font-size: 10px;
    padding: 1px 5px;
  }

  .pitch-pin-num {
    width: 27px;
    height: 27px;
    font-size: 11.5px;
  }
}

/* =========================================================
   MUSEUM 2.0 (v2026112218): MATCHDAY, PASSPORT 2x2, GROUP TABLE,
   BALL 2.5x LOUPE, STUDIO KITS GALLERY & 21-TROPHY ROOM
   ========================================================= */

/* 1. Tournament Matchday Banner & Clickable Trophy Chip */
.final-matchday-banner {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(16, 28, 22, 0.94), rgba(8, 13, 11, 0.96));
  border: 1px solid rgba(226, 190, 108, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 12px;
}

.matchday-vs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.matchday-summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.matchday-side-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(242, 237, 224, 0.14);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  min-width: 0;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.matchday-side-btn.is-champion {
  background: linear-gradient(135deg, rgba(226, 190, 108, 0.16), rgba(30, 91, 57, 0.18));
  border-color: rgba(226, 190, 108, 0.44);
}

.matchday-side-btn.is-runnerup {
  justify-content: flex-end;
  background: linear-gradient(135deg, rgba(20, 32, 26, 0.85), rgba(11, 18, 15, 0.92));
  border-color: rgba(148, 163, 184, 0.28);
}

.matchday-side-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 190, 108, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.matchday-flag-wrap {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.matchday-flag-wrap svg,
.matchday-flag-wrap img {
  width: 44px;
  height: 30px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
}

.matchday-crest-pin {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0d1612;
  border: 1px solid rgba(226, 190, 108, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.matchday-crest-pin svg,
.matchday-crest-pin img {
  width: 100%;
  height: 100%;
  border: none;
  box-shadow: none;
  object-fit: contain;
}

.matchday-side-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.matchday-side-text.is-right {
  text-align: right;
  align-items: flex-end;
}

.matchday-side-text small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.matchday-side-btn.is-runnerup .matchday-side-text small {
  color: var(--ink-muted);
}

.matchday-side-text strong {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--ink);
  word-break: normal;
  overflow-wrap: break-word;
}

.matchday-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(8, 13, 11, 0.9);
  border: 1px solid rgba(226, 190, 108, 0.34);
  min-width: 82px;
  max-width: 175px;
}

.matchday-score-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(226, 190, 108, 0.07);
  border: 1px solid rgba(226, 190, 108, 0.18);
}

.matchday-score-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.matchday-score-val {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.18;
  white-space: nowrap;
}

.final-trophy-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(226, 190, 108, 0.08);
  border: 1px solid rgba(226, 190, 108, 0.28);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.final-trophy-chip:hover {
  background: rgba(226, 190, 108, 0.15);
  border-color: rgba(226, 190, 108, 0.62);
  transform: translateY(-1px);
}

.final-trophy-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: #0a100d;
  border: 1px solid rgba(226, 190, 108, 0.36);
  flex: 0 0 auto;
}

.final-trophy-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.final-trophy-meta small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.final-trophy-meta strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.final-trophy-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  white-space: nowrap;
  flex: 0 0 auto;
}

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

/* 2. Clean 2x2 Era Passport Strip */
.era-passport-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.era-passport-grid-v2 .era-passport-cell {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(8, 13, 11, 0.72);
  border: 1px solid rgba(242, 237, 224, 0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.era-passport-grid-v2 .era-passport-cell.is-ball-cell {
  justify-content: center;
  padding: 8px;
}

.era-passport-grid-v2 .era-passport-cell strong {
  font-size: 13.5px;
  line-height: 1.32;
  color: var(--ink);
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.era-passport-grid-v2 .era-passport-cell span,
.era-passport-grid-v2 .era-cell-sub {
  font-size: 12.2px;
  line-height: 1.44;
  color: var(--ink-muted);
  margin: 0;
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.era-rule-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.era-rule-chip {
  display: inline-block !important;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(242, 237, 224, 0.12);
  font-size: 11.2px !important;
  line-height: 1.35 !important;
  color: var(--ink-muted);
}

.era-rule-chip b {
  color: var(--gold);
  font-weight: 600;
  margin-right: 4px;
}

/* 3. Clean 3-Column Tournament Grid & Full-Width Group Table */
.yt-grid.yt-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yt-card-v2 {
  padding-left: 14px;
  border-left: 3px solid var(--card-accent, var(--gold));
}

.yt-group-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(226, 190, 108, 0.24);
  background: rgba(8, 13, 11, 0.72);
}

.yt-group-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.yt-group-table thead th {
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(226, 190, 108, 0.07);
  border-bottom: 1px solid rgba(226, 190, 108, 0.2);
}

.yt-table-row {
  cursor: pointer;
  border-bottom: 1px solid rgba(242, 237, 224, 0.07);
  transition: background 0.15s ease;
}

.yt-table-row:last-child {
  border-bottom: none;
}

.yt-table-row:hover,
.yt-table-row:focus-visible,
.yt-table-row.is-active {
  background: rgba(226, 190, 108, 0.12);
  outline: none;
}

.yt-group-table td {
  padding: 11px 12px;
  font-size: 13px;
  color: var(--ink);
  vertical-align: middle;
}

.yt-td-pos {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
  width: 34px;
}

.yt-table-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-table-emblem {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.yt-table-emblem .yt-flag-mini svg,
.yt-table-emblem .yt-flag-mini img {
  width: 28px;
  height: 19px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

.yt-table-emblem .yt-crest-mini svg,
.yt-table-emblem .yt-crest-mini img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.yt-table-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-table-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.yt-td-record {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.yt-table-open {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  white-space: nowrap;
}

/* 4. Champion Photo Banner inside Team Passport Modal */
.passport-champ-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 190, 108, 0.36);
  background: #0a100d;
  cursor: zoom-in;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.passport-champ-banner img,
.passport-champ-img {
  width: 100%;
  min-height: 220px;
  max-height: 280px;
  height: clamp(220px, 28vw, 270px);
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.35s ease;
}

.passport-champ-banner:hover .passport-champ-img {
  transform: scale(1.02);
}

.passport-champ-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.passport-champ-tag,
.passport-champ-zoom {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.84);
  border: 1px solid rgba(226, 190, 108, 0.45);
  color: var(--gold);
  backdrop-filter: blur(6px);
}

.passport-champ-caption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  background: rgba(8, 13, 11, 0.92);
  border-top: 1px solid rgba(242, 237, 224, 0.08);
}

/* 5. Real Ball Museum 2.5x Macro Loupe Lens */
.ball-photo-stage {
  position: relative;
}

.ball-loupe-lens {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  background-color: #0b130f;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 12;
}

/* 6. Kit Museum 1872-2026 Stage Framing & World Gallery */
.kit-mannequin-stage.is-vintage-plate .kit-aspect-frame {
  background: linear-gradient(155deg, #f3efe4 0%, #e7dfd0 100%);
  border: 1px solid rgba(224, 190, 112, 0.48);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44), inset 0 0 24px rgba(24, 22, 16, 0.12);
}

.kit-mannequin-stage.is-dark-studio .kit-aspect-frame {
  background: radial-gradient(circle at 50% 38%, #1d2e26 0%, #09100d 82%);
  border: 1px solid rgba(226, 190, 108, 0.36);
}

#kit-svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#kit-svg-container .kit-studio-photo,
#kit-svg-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.kit-world-gallery {
  margin-top: 26px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 28, 22, 0.88), rgba(8, 13, 11, 0.94));
  border: 1px solid var(--border);
}

.kit-world-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}

.kit-world-head h3 {
  margin: 4px 0;
  font-size: 20px;
}

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

.kit-world-card {
  display: flex;
  flex-direction: column;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(242, 237, 224, 0.12);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.kit-world-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 190, 108, 0.6);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.kit-world-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 42%, #192921 0%, #09100d 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.kit-world-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kit-world-meta {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kit-world-meta strong {
  font-size: 13.5px;
  color: var(--ink);
}

.kit-world-meta span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* 7. Atlas Single-Row Tabs, Flat Tactics & 21-Trophy Room */
.atlas-tabs.atlas-tabs-v2 {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.atlas-tabs.atlas-tabs-v2 .atlas-tab-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tactic-card {
  align-items: stretch;
}

.tactic-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tactic-card-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.tactic-card-pills {
  margin-top: auto;
  padding-top: 6px;
}

.trophy-hall-wrap {
  display: grid;
  gap: 14px;
}

.trophy-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.trophy-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 28, 22, 0.92), rgba(8, 13, 11, 0.96));
  border: 1px solid rgba(242, 237, 224, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trophy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 190, 108, 0.5);
}

.trophy-card.is-highlighted {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(226, 190, 108, 0.45), 0 18px 38px rgba(0, 0, 0, 0.45);
}

.trophy-pedestal {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 42%, #1d2c24 0%, #070c0a 88%);
  overflow: hidden;
  cursor: zoom-in;
}

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

.trophy-pedestal-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.85);
  border: 1px solid rgba(226, 190, 108, 0.42);
  color: var(--gold);
}

.trophy-zoom-hint {
  position: absolute;
  right: 10px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.8);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.trophy-pedestal:hover .trophy-zoom-hint {
  opacity: 1;
}

.trophy-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.trophy-card-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
}

.trophy-card-body h4 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.28;
  color: var(--ink);
}

.trophy-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.trophy-spec-row b,
.trophy-meta-line small {
  color: var(--gold);
  font-weight: 600;
}

.trophy-meta-line {
  font-size: 11.8px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.trophy-records-box {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(226, 190, 108, 0.08);
  border: 1px solid rgba(226, 190, 108, 0.22);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trophy-records-box small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.trophy-records-box strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.38;
}

.trophy-story {
  margin: 0;
  font-size: 12px;
  line-height: 1.48;
  color: var(--ink-muted);
}

@media (max-width: 1040px) {
  .yt-grid.yt-grid-v2,
  .trophy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .matchday-vs-row,
  .matchday-summary-row,
  .tournament-meta-row,
  .era-passport-grid-v2,
  .yt-grid.yt-grid-v2,
  .trophy-grid {
    grid-template-columns: 1fr;
  }

  .kit-world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .matchday-side-btn.is-runnerup {
    justify-content: flex-start;
    flex-direction: row-reverse;
  }

  .matchday-side-text.is-right {
    text-align: left;
    align-items: flex-start;
  }

  .final-trophy-chip {
    flex-wrap: wrap;
  }

  .final-trophy-arrow {
    margin-left: auto;
  }

  .kit-world-gallery {
    padding: 14px;
  }

  .passport-champ-banner img,
  .passport-champ-img {
    height: 220px;
    min-height: 220px;
    max-height: 280px;
  }
}

/* =====================================================================
   v18 ("История футбола 3.0") — Daylight-First Quiet Luxury Theme,
   Compact Collapsible Home, Legend Dossier Modal, Zero-Void Grids,
   Stadium Photos & 4-Column Kit Museum (24 Kits + All 614 Teams)
   ===================================================================== */

/* 1. Header controls & Theme Toggle Button */
.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(242, 237, 224, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.16s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.theme-icon-sun,
.theme-icon-moon {
  display: none;
}

html[data-theme='dark'] .theme-icon-sun {
  display: inline-block;
}

html:not([data-theme='dark']) .theme-icon-moon {
  display: inline-block;
}

/* 2. Zero-Void Grid Alignment Across All Accordion & Card Grids */
.encyc-acc-grid,
.encyc-podium-grid,
.encyc-leagues-grid,
.hall-launcher-grid,
.tactics-grid,
.kit-columns-grid,
.kit-world-columns {
  align-items: start;
}

/* 3. Compact Slide 1 Home Hero + KPI Rail + Collapsible Hall Cards */
.hero-section.museum-slide {
  padding: 18px 0 24px;
}

.hero-compact-band {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-compact-band .hero-copy h1 {
  font-size: clamp(1.68rem, 2.75vw, 2.38rem);
  line-height: 1.1;
  margin: 6px 0 8px;
}

.hero-compact-band .hero-lead {
  margin: 0 0 12px;
  font-size: 13.5px;
  max-width: 60ch;
}

.hero-compact-band .hero-actions {
  gap: 8px;
}

.hero-compact-band .hero-actions .btn {
  padding: 9px 14px;
  font-size: 12.5px;
}

.hero-kpi-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hero-kpi-pill {
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(12, 20, 16, 0.56);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-kpi-pill strong {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.hero-kpi-pill span {
  font-size: 11.5px;
  line-height: 1.32;
  color: var(--ink-muted);
}

.hall-launcher-grid {
  gap: 11px;
}

.hero-section.museum-slide .hall-card {
  padding: 13px 15px;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
}

.hall-card-trigger {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hall-card-trigger strong {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.24;
  color: var(--ink);
}

.hall-card-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

.hall-card-acc {
  border-top: 1px solid var(--border);
  padding-top: 7px;
  margin-top: 1px;
}

.hall-card-acc > summary {
  list-style: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.hall-card-acc > summary::-webkit-details-marker {
  display: none;
}

.hall-card-acc > summary::after {
  content: '▾';
  color: var(--gold);
  font-size: 11px;
  transition: transform 0.16s ease;
}

.hall-card-acc[open] > summary::after {
  transform: rotate(180deg);
}

.hall-card-acc p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* 4. Ballon d'Or Portrait Cards & Legend Dossier Modal */
.legend-podium-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.legend-podium-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.legend-podium-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.legend-avatar {
  width: 58px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: #101915;
}

.legend-podium-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-card-cta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

.legend-timeline-card {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11, 18, 14, 0.72);
  color: inherit;
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.legend-timeline-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.legend-timeline-card.is-multi {
  flex-direction: column;
  align-items: flex-start;
  cursor: default;
}

.legend-timeline-thumb {
  width: 44px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: #101915;
}

.legend-timeline-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legend-timeline-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.legend-timeline-card strong {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.24;
}

.legend-timeline-arrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.legend-multi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.legend-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.legend-mini-chip:hover {
  border-color: var(--gold);
}

.legend-mini-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

/* Legend Athlete Dossier Modal (z-index 1280) */
.legend-modal {
  position: fixed;
  inset: 0;
  z-index: 1280;
  display: grid;
  place-items: center;
  padding: 18px;
}

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

.legend-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 8, 0.82);
  backdrop-filter: blur(8px);
}

.legend-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
  display: flex;
  flex-direction: column;
}

.legend-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}

.legend-modal-title-group h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
}

.legend-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-modal-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legend-dossier-hero {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legend-dossier-photo-btn {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: #0d1511;
  cursor: zoom-in;
  display: block;
  aspect-ratio: 4 / 5;
}

.legend-dossier-photo-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.legend-photo-zoom-hint {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10, 16, 13, 0.78);
  color: #f8f5ec;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.legend-dossier-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

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

.legend-flag-wrap {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
  border: 1px solid var(--border);
}

.legend-flag-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.legend-country-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.legend-dossier-identity h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.2;
}

.legend-years-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
}

.legend-bio-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
}

.legend-bio-specs > div {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legend-bio-specs small,
.legend-stat-box small,
.legend-iconic-box small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.legend-bio-specs strong {
  font-size: 12px;
  color: var(--ink);
}

.legend-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.legend-stat-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legend-stat-box strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
  line-height: 1.2;
}

.legend-iconic-box {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
}

.legend-iconic-box p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink);
}

.legend-acc-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-clubs-list,
.legend-honours-list {
  margin: 8px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
}

.legend-clubs-list {
  list-style: none;
  padding-left: 0;
}

.legend-clubs-list li {
  display: grid;
  grid-template-columns: 95px minmax(120px, 1fr) auto;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
}

.legend-club-years {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}

/* 5. Stadiums Cards with Thumbnails & Zoomable Photos */
.stadium-card-v2 > summary {
  gap: 9px;
}

.stadium-summary-thumb {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: #0d1511;
}

.stadium-year-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

.stadium-cap-pill {
  flex-shrink: 0;
  white-space: nowrap;
}

.stadium-photo-btn {
  position: relative;
  width: 100%;
  margin: 10px 0 8px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #0e1612;
  cursor: zoom-in;
  display: block;
}

.stadium-body-photo {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
}

.stadium-photo-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 16, 13, 0.82);
  color: #faf7ef;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* 6. 4-Column Historical Kit Museum + 614-Team World Directory */
#kit-tabs.museum-selector-row {
  display: block;
}

.kit-columns-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.kit-col-card {
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.kit-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kit-col-head small {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-size: 10px;
}

.kit-col-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kit-col-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 7px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.kit-col-btn .tab-year {
  flex-shrink: 0;
}

.kit-col-team {
  min-width: 0;
  white-space: normal;
  line-height: 1.24;
  font-size: 12px;
}

.kit-world-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 8px;
}

.kit-gal-search {
  min-width: 240px;
  flex: 0 1 320px;
}

.kit-world-section-label {
  margin: 14px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
}

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

.kit-world-col-acc {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.kit-world-col-acc[open] {
  border-color: var(--border-strong);
}

.kit-world-col-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  user-select: none;
}

.kit-world-col-acc > summary::-webkit-details-marker {
  display: none;
}

.kit-col-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold);
  margin-left: auto;
}

.kit-world-col-acc > summary::after {
  content: '▾';
  color: var(--gold);
  font-size: 11px;
}

.kit-world-col-acc[open] > summary::after {
  transform: rotate(180deg);
}

.kit-world-col-list {
  padding: 4px 8px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 360px;
  overflow-y: auto;
}

.kit-world-mini-row {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding: 5px 7px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.kit-world-mini-row:hover {
  background: var(--gold-soft);
  border-color: var(--border-strong);
}

.kit-mini-thumb {
  width: 28px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
  background: #0d1511;
  flex-shrink: 0;
}

.kit-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.kit-mini-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.kit-mini-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kit-mini-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kit-mini-text strong {
  font-size: 12.5px;
  line-height: 1.25;
  color: var(--ink);
}

.kit-mini-text small {
  font-size: 10.5px;
  color: var(--ink-muted);
}

/* =====================================================================
   7. DAYLIGHT-FIRST QUIET LUXURY LIGHT THEME ([data-theme="light"])
   ===================================================================== */
html[data-theme='light'] {
  --bg: #e6e8db;
  --bg-elev: #eef0e4;
  --surface: #f4f5ec;
  --surface-2: #dde0cf;
  --border: rgba(54, 65, 46, 0.15);
  --border-strong: rgba(145, 108, 28, 0.44);
  --ink: #172017;
  --ink-muted: #495446;
  --ink-dim: #667263;
  --gold: #8c6312;
  --gold-soft: rgba(145, 108, 28, 0.13);
  --turf: #1e5b3a;
  --turf-soft: rgba(30, 91, 58, 0.12);
  --era-accent: #8c6312;
  --era-soft: rgba(145, 108, 28, 0.14);
  --shadow: 0 14px 34px rgba(32, 42, 26, 0.09);
}

html[data-theme='light'] body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 85% 55% at 50% -12%, #f1f2e6 0%, #e6e8db 54%, #dce0ce 100%);
  color: var(--ink);
}

html[data-theme='light'] .hero-backdrop {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(30, 91, 58, 0.09), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 10%, rgba(145, 108, 28, 0.11), transparent 65%);
}

html[data-theme='light'] .site-header {
  background: rgba(235, 237, 224, 0.92);
  border-bottom-color: rgba(54, 65, 46, 0.14);
}

html[data-theme='light'] .brand-crest {
  background: linear-gradient(145deg, #f4f5ec, #dde0cf);
  color: #8c6312;
  border-color: rgba(145, 108, 28, 0.45);
}

html[data-theme='light'] .main-nav a:hover {
  background: rgba(54, 65, 46, 0.08);
  color: #172017;
}

html[data-theme='light'] .main-nav a.is-active {
  background: rgba(145, 108, 28, 0.15);
  color: #77510a;
  border-color: rgba(145, 108, 28, 0.4);
}

html[data-theme='light'] .theme-toggle-btn {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.18);
  color: #172017;
}

html[data-theme='light'] .header-badge {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.17);
  color: #172017;
}

html[data-theme='light'] .btn-primary,
html[data-theme='light'] .stepper-next-btn {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

html[data-theme='light'] .btn-primary:hover,
html[data-theme='light'] .stepper-next-btn:hover:not(:disabled) {
  background: #15452b;
  color: #ffffff;
}

html[data-theme='light'] .btn-ghost,
html[data-theme='light'] .stepper-nav-btn:not(.stepper-next-btn),
html[data-theme='light'] .mini-btn,
html[data-theme='light'] .mini-icon-btn {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.18);
  color: #172017;
}

html[data-theme='light'] .btn-ghost:hover,
html[data-theme='light'] .mini-btn:hover,
html[data-theme='light'] .mini-icon-btn:hover {
  border-color: #8c6312;
  color: #8c6312;
}

html[data-theme='light'] .hero-compact-band,
html[data-theme='light'] .timeline-shell,
html[data-theme='light'] .milestone-card,
html[data-theme='light'] .team-banner,
html[data-theme='light'] .studio-gear-sidebar,
html[data-theme='light'] .ball-vitrine-card,
html[data-theme='light'] .kit-vitrine-card,
html[data-theme='light'] .museum-dossier-card,
html[data-theme='light'] .atlas-shell,
html[data-theme='light'] .era-chronicle-card,
html[data-theme='light'] .tactic-board-card,
html[data-theme='light'] .match-log-panel,
html[data-theme='light'] .kit-world-gallery,
html[data-theme='light'] .passport-modal-dialog,
html[data-theme='light'] .legend-modal-dialog,
html[data-theme='light'] .archival-modal-dialog {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.15);
}

html[data-theme='light'] .site-footer {
  background: #dce0ce;
  border-top-color: rgba(54, 65, 46, 0.15);
}

html[data-theme='light'] .deck-stepper-bar {
  background: rgba(235, 237, 224, 0.95);
  border-top-color: rgba(145, 108, 28, 0.34);
}

html[data-theme='light'] .hero-kpi-pill,
html[data-theme='light'] .compact-acc,
html[data-theme='light'] .encyc-card,
html[data-theme='light'] .encyc-podium-card,
html[data-theme='light'] .encyc-note-box,
html[data-theme='light'] .tactic-card,
html[data-theme='light'] .legend-timeline-card,
html[data-theme='light'] .legend-stat-box,
html[data-theme='light'] .legend-bio-specs > div,
html[data-theme='light'] .legend-clubs-list li,
html[data-theme='light'] .yt-team-card,
html[data-theme='light'] .aw-group-box,
html[data-theme='light'] .kit-col-card,
html[data-theme='light'] .kit-world-col-acc,
html[data-theme='light'] .kit-world-card,
html[data-theme='light'] .trophy-card,
html[data-theme='light'] .trophy-records-box,
html[data-theme='light'] .studio-gear-card,
html[data-theme='light'] .dossier-spec-card,
html[data-theme='light'] .fact-row,
html[data-theme='light'] .matchday-panel,
html[data-theme='light'] .matchday-side-btn,
html[data-theme='light'] .milestone-teams-panel {
  background: #eceee1;
  border-color: rgba(54, 65, 46, 0.14);
  color: #172017;
}

html[data-theme='light'] .compact-acc[open],
html[data-theme='light'] .encyc-podium-card.is-top {
  background: #e3e6d5;
  border-color: rgba(145, 108, 28, 0.44);
}

html[data-theme='light'] .compact-acc-body {
  border-top-color: rgba(54, 65, 46, 0.12);
}

html[data-theme='light'] .hall-card {
  background: linear-gradient(145deg, #f4f5ec, #e5e8d8);
  border-color: rgba(145, 108, 28, 0.28);
  box-shadow: 0 8px 22px rgba(32, 42, 26, 0.06);
}

html[data-theme='light'] .hall-card:hover {
  background: #f4f5ec;
  border-color: #8c6312;
}

html[data-theme='light'] .museum-tab-btn,
html[data-theme='light'] .atlas-tab-btn,
html[data-theme='light'] .period-pill,
html[data-theme='light'] .history-track-btn,
html[data-theme='light'] .era-tab-btn,
html[data-theme='light'] .subslide-btn,
html[data-theme='light'] .view-switch-btn,
html[data-theme='light'] .milestone-node-btn,
html[data-theme='light'] .studio-controls-bar,
html[data-theme='light'] .filmstrip-rail,
html[data-theme='light'] .filmstrip-pill {
  background: #eceee1;
  border-color: rgba(54, 65, 46, 0.16);
  color: #172017;
}

html[data-theme='light'] .museum-tab-btn.is-active,
html[data-theme='light'] .atlas-tab-btn.is-active,
html[data-theme='light'] .period-pill.is-active,
html[data-theme='light'] .history-track-btn.is-active,
html[data-theme='light'] .era-tab-btn.is-active,
html[data-theme='light'] .subslide-btn.is-active,
html[data-theme='light'] .view-switch-btn.is-active,
html[data-theme='light'] .milestone-node-btn.is-active,
html[data-theme='light'] .filmstrip-pill.is-active {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

html[data-theme='light'] .museum-tab-btn.is-active .tab-year,
html[data-theme='light'] .history-track-btn.is-active small {
  color: #f9e2a2;
}

html[data-theme='light'] input[type='search'],
html[data-theme='light'] .yt-search-input,
html[data-theme='light'] .atlas-search-input {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.2);
  color: #172017;
}

html[data-theme='light'] .encyc-count-pill {
  background: rgba(23, 92, 56, 0.12);
  border-color: rgba(23, 92, 56, 0.34);
  color: #124b2e;
}

html[data-theme='light'] .encyc-rank-pill,
html[data-theme='light'] .encyc-year-pill {
  background: #e2be6c;
  color: #16120b;
}

html[data-theme='light'] .yt-badge.is-gold {
  background: rgba(154, 110, 23, 0.16);
  border-color: rgba(154, 110, 23, 0.4);
  color: #6b4908;
}

html[data-theme='light'] .yt-badge.is-green {
  background: rgba(23, 92, 56, 0.14);
  border-color: rgba(23, 92, 56, 0.36);
  color: #124b2e;
}

html[data-theme='light'] .yt-badge.is-neutral,
html[data-theme='light'] .yt-badge.is-silver {
  background: rgba(22, 33, 28, 0.08);
  border-color: rgba(22, 33, 28, 0.16);
  color: #2f3b35;
}

html[data-theme='light'] .comparison-table th {
  background: #efe9da;
  color: #16211c;
  border-color: rgba(22, 33, 28, 0.14);
}

html[data-theme='light'] .comparison-table td {
  background: #ffffff;
  color: #16211c;
  border-color: rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .trophy-card-body h4,
html[data-theme='light'] .encyc-card h4,
html[data-theme='light'] .encyc-podium-card h4,
html[data-theme='light'] .milestone-card h3 {
  color: #16211c;
}

html[data-theme='light'] .trophy-card-kicker {
  color: #8c6211;
}

/* Keep photographic studio boxes rich charcoal/obsidian for clean spotlight contrast */
html[data-theme='light'] .trophy-pedestal,
html[data-theme='light'] .kit-mannequin-stage.is-dark-studio,
html[data-theme='light'] .kit-world-thumb,
html[data-theme='light'] .ball-photo-stage,
html[data-theme='light'] .stage-viewport,
html[data-theme='light'] .archival-modal-stage {
  background-color: #0e1712;
  color: #faf7ef;
}

html[data-theme='light'] .gear-thumb-box,
html[data-theme='light'] .popover-thumb-box {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.14);
}

html[data-theme='light'] .studio-gear-popover {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.44);
  color: #16211c;
  box-shadow: 0 20px 50px rgba(22, 33, 28, 0.16);
}

html[data-theme='light'] .popover-close {
  color: #16211c;
}

.legend-flag-wrap img,
.legend-flag-wrap svg,
.kit-mini-flag img,
.kit-mini-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

html[data-theme='light'] .spec-cell {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
}

html[data-theme='light'] .spec-cell small {
  color: #8c6211;
}

html[data-theme='light'] .spec-cell span {
  color: #16211c;
}

html[data-theme='light'] .hotspot-inspector {
  background: #f6f1e4;
  border-color: rgba(154, 110, 23, 0.34);
}

html[data-theme='light'] .hotspot-chip {
  background: #ffffff;
  color: #16211c;
  border-color: rgba(22, 33, 28, 0.18);
}

html[data-theme='light'] .hotspot-chip.is-active {
  background: #175c38;
  color: #ffffff;
  border-color: #175c38;
}

html[data-theme='light'] .hotspot-detail-title {
  color: #7c560d;
}

html[data-theme='light'] .hotspot-detail-text {
  color: #16211c;
}

html[data-theme='light'] .formation-badge {
  background: #fbf9f3;
  border-color: var(--era-accent);
}

html[data-theme='light'] .formation-badge small {
  color: #4b5851;
}

html[data-theme='light'] .studio-main-grid > .pitch-panel {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  box-shadow: none;
}

html[data-theme='light'] .tactical-note-box {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .pitch-coach-btn,
html[data-theme='light'] .jump-pill {
  background: #f6f2e7;
  border-color: rgba(22, 33, 28, 0.16);
  color: #16211c;
}

html[data-theme='light'] .pitch-token-circle,
html[data-theme='light'] .pitch-token-name {
  color: #faf7ef;
}

html[data-theme='light'] .pitch-token.is-active .pitch-token-circle,
html[data-theme='light'] .pitch-token.is-active .pitch-token-name {
  color: #ffffff;
}

html[data-theme='light'] .live-video-chip {
  background: rgba(212, 51, 86, 0.12);
  border-color: rgba(190, 24, 93, 0.38);
  color: #9f1239;
}

html[data-theme='light'] .encyc-years-tag {
  background: rgba(154, 110, 23, 0.14);
  border-color: rgba(154, 110, 23, 0.36);
  color: #6e4b08;
}

/* Responsive v18 breakpoints */
@media (max-width: 1120px) {
  .kit-columns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .hero-compact-band {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
  }

  .legend-dossier-hero {
    grid-template-columns: 1fr;
  }

  .legend-dossier-photo-btn {
    max-width: 190px;
  }

  .legend-bio-specs,
  .legend-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legend-clubs-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .kit-columns-grid,
  .kit-world-columns {
    grid-template-columns: 1fr;
  }

  .kit-gal-search {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .stadium-body-photo {
    height: 155px;
  }
}

/* =====================================================================
   8. v19 MUSEUM UPGRADE: GOALS PANEL, KIT DOSSIER v2,
      GOAL REPLAY CINEMA MODAL & COMPLETE LIGHT-THEME POLISH
   ===================================================================== */

:root {
  --muted: var(--ink-muted);
}

/* Interactive Final Score Box in Matchday Banner */
.matchday-score-box.is-clickable {
  cursor: pointer;
  background: linear-gradient(145deg, rgba(23, 92, 56, 0.45), rgba(10, 18, 14, 0.95));
  border: 1.5px solid rgba(226, 190, 108, 0.62);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.matchday-score-box.is-clickable:hover,
.matchday-score-box.is-clickable:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(226, 190, 108, 0.22);
  outline: none;
}

.matchday-goals-pill,
.matchday-score-box.is-clickable .score-replay-tag,
.matchday-score-box.is-clickable .matchday-score-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: #13110b;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

/* PART 2 — Slide 2 Bottom-Left Highlights & Goals Panel */
.milestone-goals-panel {
  margin-top: 12px;
  border-radius: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.milestone-goals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.milestone-goals-head small,
.milestone-goals-kicker {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.milestone-goals-head strong,
.milestone-goals-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--ink);
}

.milestone-match-chip {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(8, 13, 11, 0.5);
  border: 1px solid var(--border);
  min-width: 0;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.milestone-match-chip:hover {
  border-color: var(--border-strong);
}

.milestone-match-row,
.milestone-match-top,
.match-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.milestone-match-teams,
.match-chip-teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--ink);
}

.match-chip-team {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.milestone-match-chip .yt-flag-mini,
.milestone-match-chip .match-chip-flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.milestone-match-chip .yt-flag-mini svg,
.milestone-match-chip .era-flag-svg,
.milestone-match-chip .match-chip-flag svg {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.milestone-match-stage,
.match-chip-stage {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.milestone-match-scorers,
.goal-scorers-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.score-replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.score-replay-btn:hover,
.score-replay-btn:focus-visible {
  transform: translateY(-1px);
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  box-shadow: 0 6px 16px rgba(226, 190, 108, 0.28);
  outline: none;
}

.score-replay-btn.is-compact {
  padding: 3px 8px;
  font-size: 11px;
}

.goal-scorer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.06);
  border: 1px solid var(--border);
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.goal-scorer-pill b,
.goal-scorer-pill strong {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
}

.goal-scorer-pill:hover,
.goal-scorer-pill:focus-visible {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold-soft);
  outline: none;
}

/* PART 3 — Slide 5 Kit Museum Category Bar, Obsidian Studio & Dossier v2 */
.kit-comp-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.kit-comp-tab,
.kit-comp-btn,
.kit-comp-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.kit-comp-tab:hover,
.kit-comp-btn:hover,
.kit-comp-tabs button:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.kit-comp-tab.is-active,
.kit-comp-btn.is-active,
.kit-comp-tabs button.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 700;
}

.kit-mannequin-stage.is-dark-studio {
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 35%, #16241d 0%, #09100d 82%);
  border: 1px solid rgba(226, 190, 108, 0.28);
  overflow: hidden;
}

.kit-aspect-frame {
  aspect-ratio: 3 / 4;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.kit-mannequin-stage.is-dark-studio .kit-aspect-frame {
  width: min(370px, 100%);
  aspect-ratio: 3 / 4;
  padding: 0;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 38%, #15231c 0%, #0c130f 85%);
  border: 1px solid rgba(226, 190, 108, 0.36);
  cursor: zoom-in;
}

.kit-aspect-frame.is-zoomed,
.kit-mannequin-stage.is-zoomed .kit-aspect-frame,
#kit-svg-container.is-zoomed,
.kit-studio-photo.is-zoomed {
  transform: scale(2.15);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 38%);
  cursor: zoom-out;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

#kit-zoom-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 700;
}

@keyframes hotspotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 190, 108, 0.72), 0 0 0 4px rgba(226, 190, 108, 0.35);
  }
  70% {
    box-shadow: 0 0 0 11px rgba(226, 190, 108, 0), 0 0 0 6px rgba(226, 190, 108, 0.22);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 190, 108, 0), 0 0 0 4px rgba(226, 190, 108, 0.35);
  }
}

.hotspot-pin {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48), 0 0 0 3px rgba(226, 190, 108, 0.32);
}

.hotspot-pin.is-active {
  box-shadow: 0 0 0 6px rgba(226, 190, 108, 0.34);
  animation: hotspotPulse 1.85s ease-out infinite;
}

.kit-dossier-v2 {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.kit-dossier-v2 .dossier-title {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.16;
  margin: 0;
}

.kit-dossier-v2 .spec-grid {
  gap: 8px;
}

.kit-dossier-v2 .spec-cell {
  padding: 8px 10px;
}

.kit-dossier-v2 .hotspot-inspector {
  padding: 10px 12px;
}

.kit-dossier-header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.kit-dossier-flag,
.kit-dossier-header-row .era-flag-svg {
  width: 30px;
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.kit-comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--turf-soft);
  border: 1px solid rgba(74, 204, 125, 0.36);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #8be7ac;
}

.kit-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
}

.kit-weight-bars {
  display: grid;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.45);
  border: 1px solid var(--border);
}

.kit-weight-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kit-weight-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.kit-weight-head strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
}

.kit-weight-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.08);
  overflow: hidden;
}

.kit-weight-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b88b2e, #f0cf7b);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.kit-weight-fill.is-boot {
  background: linear-gradient(90deg, #1d6b43, #4acc7d);
}

.kit-weight-compare {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
}

.kit-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
}

.kit-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.kit-action-btn:hover {
  transform: translateY(-1px);
  background: var(--gold);
  color: #13110b;
}

.kit-action-btn.is-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
}

.kit-action-btn.is-primary:hover {
  background: #f0cf7b;
}

/* PART 4 — Goal Replay Cinema Modal (#goal-replay-modal) */
.goal-modal {
  position: fixed;
  inset: 0;
  z-index: 1320;
  display: grid;
  place-items: center;
  padding: 16px;
}

.goal-modal[hidden] {
  display: none !important;
}

.goal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 8, 0.86);
  backdrop-filter: blur(10px);
}

.goal-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #0c1410;
  color: #faf7ef;
  border: 1px solid rgba(226, 190, 108, 0.4);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  --ink: #faf7ef;
  --ink-muted: #c6cbc3;
  --ink-dim: #8c968e;
  --gold: #e6c473;
  --gold-soft: rgba(226, 190, 108, 0.16);
  --border: rgba(242, 237, 224, 0.15);
  --border-strong: rgba(226, 190, 108, 0.44);
  --surface: #132019;
  --bg-elev: #0c1410;
}

.goal-modal-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: rgba(10, 18, 14, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226, 190, 108, 0.22);
}

.goal-modal-title-group,
.goal-modal-title-wrap {
  min-width: 0;
}

.goal-modal-head h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.22;
  color: #faf7ef;
}

.goal-modal-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #c6cbc3;
}

.goal-modal-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.goal-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07100b;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 190, 108, 0.25);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}

.goal-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.goal-hud-top,
.goal-hud-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.goal-hud-top {
  top: 10px;
}

.goal-hud-bottom {
  bottom: 10px;
}

.goal-hud-badge,
.goal-hud-score,
.goal-hud-angle,
.goal-hud-telemetry,
.goal-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 13, 10, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 190, 108, 0.34);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #faf7ef;
  pointer-events: none;
}

.goal-hud-badge.is-gold,
.goal-hud-pill.is-gold,
.goal-hud-score {
  color: #e6c473;
  border-color: rgba(226, 190, 108, 0.54);
}

.goal-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4acc7d;
  box-shadow: 0 0 8px rgba(74, 204, 125, 0.85);
}

@keyframes goalWipeFlash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.goal-wipe-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(10, 18, 14, 0.92);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(226, 190, 108, 0.78);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f4d88f;
  white-space: nowrap;
  pointer-events: none;
  animation: goalWipeFlash 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.goal-wipe-banner[hidden] {
  display: none !important;
}

.goal-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(19, 32, 25, 0.85);
  border: 1px solid rgba(226, 190, 108, 0.22);
}

.goal-controls-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.goal-ctrl-btn,
.goal-controls-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(242, 237, 224, 0.16);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #faf7ef;
  cursor: pointer;
  transition: all 0.16s ease;
}

.goal-ctrl-btn:hover,
.goal-controls-bar button:hover {
  border-color: #e6c473;
  color: #e6c473;
  background: rgba(226, 190, 108, 0.12);
}

.goal-ctrl-btn.is-active,
.goal-controls-bar button.is-active {
  background: #e6c473;
  border-color: #e6c473;
  color: #13110b;
  font-weight: 700;
}

.goal-list-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 118px;
  overflow-y: auto;
  padding: 2px;
}

.goal-rail-btn,
.goal-chip-btn,
.goal-list-rail button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 237, 224, 0.14);
  font-size: 12px;
  font-weight: 600;
  color: #c6cbc3;
  cursor: pointer;
  transition: all 0.16s ease;
}

.goal-rail-btn:hover,
.goal-chip-btn:hover,
.goal-list-rail button:hover {
  border-color: rgba(226, 190, 108, 0.55);
  color: #faf7ef;
}

.goal-rail-btn.is-active,
.goal-chip-btn.is-active,
.goal-list-rail button.is-active {
  background: linear-gradient(135deg, rgba(226, 190, 108, 0.24), rgba(30, 91, 57, 0.3));
  border-color: #e6c473;
  color: #faf7ef;
  box-shadow: 0 0 0 1px rgba(226, 190, 108, 0.36) inset;
}

.goal-rail-btn b,
.goal-chip-btn b,
.goal-list-rail button b,
.goal-list-rail button small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #e6c473;
  font-weight: 700;
}

.goal-story-caption {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(19, 32, 25, 0.72);
  border: 1px solid rgba(226, 190, 108, 0.2);
  border-left: 3px solid #e6c473;
  font-size: 13px;
  line-height: 1.5;
  color: #d8ddd6;
}

.goal-story-caption strong {
  color: #e6c473;
}

/* =====================================================================
   PART 1 — COMPLETE LIGHT THEME OVERRIDES FOR ALL REMAINING DARK BOXES
   ===================================================================== */
html[data-theme='light'] {
  --muted: #4b5851;
}

/* Slide 1 & Global Light Polish */
html[data-theme='light'] .football-ticker-strip,
html[data-theme='light'] .stat-item {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .football-ticker-strip {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.3);
}

html[data-theme='light'] .hint-chip,
html[data-theme='light'] .timeline-node {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .timeline-node.is-active {
  background: #f5ebd3;
  border-color: #8c6211;
}

/* Slide 2 (#history): Matchday Banner, Score Box, Trophy Chip, Era Passport & Facts */
html[data-theme='light'] .final-matchday-banner {
  background: linear-gradient(155deg, #ffffff, #f7f3e8);
  border-color: rgba(154, 110, 23, 0.38);
  box-shadow: 0 12px 30px rgba(22, 33, 28, 0.08);
  color: #16211c;
}

html[data-theme='light'] .matchday-side-btn.is-champion {
  background: linear-gradient(135deg, #fcf6e6, #edf6ef);
  border-color: rgba(154, 110, 23, 0.45);
  color: #16211c;
}

html[data-theme='light'] .matchday-side-btn.is-runnerup {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.16);
  color: #16211c;
}

html[data-theme='light'] .matchday-side-btn:hover {
  border-color: #8c6211;
  box-shadow: 0 10px 24px rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .matchday-side-btn.is-champion .matchday-side-text small {
  color: #8c6211;
}

html[data-theme='light'] .matchday-side-btn.is-runnerup .matchday-side-text small {
  color: #4b5851;
}

html[data-theme='light'] .matchday-side-text strong {
  color: #16211c;
}

html[data-theme='light'] .matchday-crest-pin {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.48);
  box-shadow: 0 2px 6px rgba(22, 33, 28, 0.14);
}

html[data-theme='light'] .matchday-score-box {
  background: #fffdf7;
  border: 1.5px solid rgba(154, 110, 23, 0.4);
  color: #16211c;
  box-shadow: 0 4px 12px rgba(22, 33, 28, 0.06);
}

html[data-theme='light'] .matchday-score-label {
  color: #4b5851;
}

html[data-theme='light'] .matchday-score-val {
  color: #8c6211;
}

html[data-theme='light'] .matchday-score-box.is-clickable {
  background: linear-gradient(145deg, #175c38, #11472b);
  border: 1.5px solid #8c6211;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 92, 56, 0.22);
}

html[data-theme='light'] .matchday-score-box.is-clickable:hover,
html[data-theme='light'] .matchday-score-box.is-clickable:focus-visible {
  background: linear-gradient(145deg, #1c6d43, #145332);
  border-color: #b88a24;
  box-shadow: 0 12px 26px rgba(23, 92, 56, 0.28);
}

html[data-theme='light'] .matchday-score-box.is-clickable .matchday-score-label {
  color: rgba(255, 250, 235, 0.85);
}

html[data-theme='light'] .matchday-score-box.is-clickable .matchday-score-val {
  color: #ffffff;
}

html[data-theme='light'] .matchday-score-box.is-clickable .matchday-goals-pill,
html[data-theme='light'] .matchday-score-box.is-clickable .score-replay-tag,
html[data-theme='light'] .matchday-score-box.is-clickable .matchday-score-cta {
  background: #e6c473;
  color: #16211c;
}

html[data-theme='light'] .final-trophy-chip {
  background: #fbf7eb;
  border-color: rgba(154, 110, 23, 0.36);
  color: #16211c;
}

html[data-theme='light'] .final-trophy-chip:hover {
  background: #f4ebd3;
  border-color: #8c6211;
}

html[data-theme='light'] .final-trophy-meta small,
html[data-theme='light'] .final-trophy-arrow {
  color: #8c6211;
}

html[data-theme='light'] .final-trophy-meta strong {
  color: #16211c;
}

html[data-theme='light'] .final-trophy-thumb {
  background: #0e1712;
}

html[data-theme='light'] .score-stat-pill {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .score-stat-pill span {
  color: #4b5851;
}

html[data-theme='light'] .score-stat-pill strong {
  color: #16211c;
}

html[data-theme='light'] .score-stat-pill.is-gold {
  background: linear-gradient(135deg, #fcf5e3, #f5ebd1);
  border-color: rgba(154, 110, 23, 0.42);
}

html[data-theme='light'] .score-stat-pill.is-gold strong {
  color: #8c6211;
}

html[data-theme='light'] .cross-link-btn,
html[data-theme='light'] .cross-link-btn.is-primary-link {
  background: rgba(154, 110, 23, 0.12);
  border-color: rgba(154, 110, 23, 0.38);
  color: #7c560d;
}

html[data-theme='light'] .cross-link-btn:hover,
html[data-theme='light'] .cross-link-btn.is-primary-link:hover {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .era-passport-strip {
  background: linear-gradient(135deg, #ffffff, #f7f3e8);
  border-color: rgba(154, 110, 23, 0.34);
  color: #16211c;
}

html[data-theme='light'] .era-passport-grid-v2 .era-passport-cell,
html[data-theme='light'] .era-passport-cell {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .era-passport-ball-btn {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.36);
  color: #16211c;
}

html[data-theme='light'] .era-passport-ball-btn:hover {
  background: #f4ebd3;
  border-color: #8c6211;
}

html[data-theme='light'] .era-passport-ball-img {
  background: radial-gradient(circle, #18271f 0%, #0d1611 100%);
  padding: 2px;
  border-radius: 50%;
}

html[data-theme='light'] .era-passport-cell small,
html[data-theme='light'] .era-passport-ball-meta small {
  color: #8c6211;
}

html[data-theme='light'] .era-passport-cell strong,
html[data-theme='light'] .era-passport-ball-meta strong {
  color: #16211c;
}

html[data-theme='light'] .era-passport-cell span,
html[data-theme='light'] .era-passport-grid-v2 .era-cell-sub {
  color: #4b5851;
}

html[data-theme='light'] .era-rule-chip {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .era-rule-chip b {
  color: #8c6211;
}

html[data-theme='light'] .milestone-rule-box {
  background: #fbf9f3;
  border: 1px solid rgba(22, 33, 28, 0.12);
  border-left: 3px solid #8c6211;
  color: #16211c;
}

html[data-theme='light'] .milestone-rule-box span {
  color: #8c6211;
}

html[data-theme='light'] .milestone-rule-box p {
  color: #16211c;
}

html[data-theme='light'] .milestone-facts {
  background: transparent;
  border-top-color: rgba(22, 33, 28, 0.1);
  color: #16211c;
}

html[data-theme='light'] .milestone-fact-row {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .milestone-fact-row small {
  color: #4b5851;
}

html[data-theme='light'] .milestone-fact-row strong {
  color: #16211c;
}

html[data-theme='light'] .milestone-nav-row {
  border-top-color: rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .milestone-photo-caption,
html[data-theme='light'] .chronicle-photo-caption {
  background: #fbf9f3;
  color: #4b5851;
  border-top-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .yt-click-hint {
  background: rgba(154, 110, 23, 0.1);
  border-color: rgba(154, 110, 23, 0.38);
  color: #7c560d;
}

/* Part 2 Goals Panel Light Theme */
html[data-theme='light'] .milestone-goals-panel {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .milestone-match-chip {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.12);
  color: #16211c;
}

html[data-theme='light'] .score-replay-btn {
  background: rgba(154, 110, 23, 0.14);
  border-color: rgba(154, 110, 23, 0.44);
  color: #7c560d;
}

html[data-theme='light'] .score-replay-btn:hover,
html[data-theme='light'] .score-replay-btn:focus-visible {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 92, 56, 0.24);
}

html[data-theme='light'] .goal-scorer-pill {
  background: #f6f2e7;
  border-color: rgba(22, 33, 28, 0.14);
  color: #4b5851;
}

html[data-theme='light'] .goal-scorer-pill b,
html[data-theme='light'] .goal-scorer-pill strong {
  color: #8c6211;
}

html[data-theme='light'] .goal-scorer-pill:hover,
html[data-theme='light'] .goal-scorer-pill:focus-visible {
  background: #f4ebd3;
  border-color: #8c6211;
  color: #16211c;
}

/* Slide 3 & Chronicle & Year Teams Cards, Drawers, Tables */
html[data-theme='light'] .match-log-row {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .match-log-row.is-win {
  border-left: 3px solid #175c38;
}

html[data-theme='light'] .match-log-row.is-draw {
  border-left: 3px solid #8c6211;
}

html[data-theme='light'] .match-log-row.is-loss {
  border-left: 3px solid #b91c1c;
}

html[data-theme='light'] .result-badge.is-win,
html[data-theme='light'] .record-pill.is-win {
  background: rgba(23, 92, 56, 0.13);
  border-color: rgba(23, 92, 56, 0.34);
  color: #124b2e;
}

html[data-theme='light'] .result-badge.is-draw,
html[data-theme='light'] .record-pill.is-draw,
html[data-theme='light'] .record-pill.is-gold {
  background: rgba(154, 110, 23, 0.14);
  border-color: rgba(154, 110, 23, 0.36);
  color: #7c560d;
}

html[data-theme='light'] .result-badge.is-loss,
html[data-theme='light'] .record-pill.is-loss {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(185, 28, 28, 0.32);
  color: #991b1b;
}

html[data-theme='light'] .record-pill {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.16);
  color: #16211c;
}

html[data-theme='light'] .moment-card {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .chronicle-tab-btn {
  background: #f6f2e7;
  border-color: rgba(22, 33, 28, 0.14);
  color: #4b5851;
}

html[data-theme='light'] .chronicle-tab-btn.is-active {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme='light'] .chronicle-trophy-banner {
  background: rgba(154, 110, 23, 0.12);
  border-color: rgba(154, 110, 23, 0.36);
  color: #7c560d;
}

html[data-theme='light'] .yt-card {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .yt-card.is-active {
  background: #f5f0e2;
  border-color: #8c6211;
  box-shadow: 0 0 0 1px rgba(140, 98, 17, 0.32) inset;
}

html[data-theme='light'] .yt-detail-drawer {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.38);
  color: #16211c;
}

html[data-theme='light'] .yt-detail-meta {
  border-top-color: rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .yt-artifact-card {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .yt-artifact-visual {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .yt-stars-pill {
  background: rgba(22, 33, 28, 0.06);
  border-color: rgba(22, 33, 28, 0.14);
  color: #4b5851;
}

html[data-theme='light'] .yt-stars-pill.is-gold {
  background: rgba(154, 110, 23, 0.15);
  border-color: rgba(154, 110, 23, 0.38);
  color: #7c560d;
}

html[data-theme='light'] .yt-ball-link-btn {
  background: rgba(154, 110, 23, 0.14);
  border-color: rgba(154, 110, 23, 0.4);
  color: #7c560d;
}

html[data-theme='light'] .yt-ball-link-btn:hover {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .yt-pitch-card,
html[data-theme='light'] .yt-rules-card {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .yt-rule-pill {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .yt-rule-pill small {
  color: #8c6211;
}

html[data-theme='light'] .yt-rule-pill span {
  color: #4b5851;
}

html[data-theme='light'] .yt-badge.is-bronze {
  background: rgba(180, 83, 9, 0.14);
  color: #92400e;
}

html[data-theme='light'] .yt-badge.is-playoff {
  background: rgba(23, 92, 56, 0.14);
  color: #124b2e;
}

html[data-theme='light'] .yt-formation-chip {
  background: rgba(154, 110, 23, 0.14);
  border-color: rgba(154, 110, 23, 0.36);
  color: #7c560d;
}

html[data-theme='light'] .yt-group-table-wrap {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.34);
  color: #16211c;
}

html[data-theme='light'] .yt-group-table thead th {
  background: #efe9da;
  color: #7c560d;
  border-bottom-color: rgba(22, 33, 28, 0.14);
}

html[data-theme='light'] .yt-table-row {
  border-bottom-color: rgba(22, 33, 28, 0.08);
}

html[data-theme='light'] .yt-table-row:hover,
html[data-theme='light'] .yt-table-row:focus-visible,
html[data-theme='light'] .yt-table-row.is-active {
  background: rgba(154, 110, 23, 0.1);
}

html[data-theme='light'] .yt-group-table td {
  color: #16211c;
}

html[data-theme='light'] .yt-table-open {
  color: #175c38;
  font-weight: 700;
}

/* All-World 614 Teams & Modals Light Theme */
html[data-theme='light'] .aw-card-v2 {
  background: linear-gradient(180deg, #ffffff, #fbf9f3);
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
  box-shadow: 0 4px 14px rgba(22, 33, 28, 0.05);
}

html[data-theme='light'] .aw-card-v2:hover {
  background: #ffffff;
  border-color: #8c6211;
  box-shadow: 0 12px 26px rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .aw-emblem-plinth {
  background: #f5f0e2;
  border-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .aw-flag-dock {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.22);
  box-shadow: 0 2px 5px rgba(22, 33, 28, 0.18);
}

html[data-theme='light'] .aw-card-title {
  color: #16211c;
}

html[data-theme='light'] .aw-card-year {
  color: #6f7c74;
}

html[data-theme='light'] .aw-card-sub,
html[data-theme='light'] .aw-card-honour {
  color: #4b5851;
}

html[data-theme='light'] .aw-card-honour.is-gold {
  color: #8c6211;
}

html[data-theme='light'] .aw-meta-dot {
  background: rgba(23, 92, 56, 0.12);
  border-color: rgba(23, 92, 56, 0.32);
  color: #124b2e;
}

html[data-theme='light'] .aw-meta-dot.is-kit {
  background: rgba(154, 110, 23, 0.14);
  border-color: rgba(154, 110, 23, 0.36);
  color: #7c560d;
}

html[data-theme='light'] .aw-mode-btn {
  background: #f6f2e7;
  border-color: rgba(22, 33, 28, 0.14);
  color: #4b5851;
}

html[data-theme='light'] .aw-mode-btn:hover {
  color: #16211c;
  border-color: #8c6211;
}

html[data-theme='light'] .aw-mode-btn.is-active {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 92, 56, 0.22);
}

html[data-theme='light'] .aw-country-select {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.2);
  color: #16211c;
}

html[data-theme='light'] .passport-modal-head,
html[data-theme='light'] .archival-modal-head {
  background: #fbf9f3;
  border-bottom-color: rgba(22, 33, 28, 0.12);
  color: #16211c;
}

html[data-theme='light'] .archival-modal-caption,
html[data-theme='light'] .passport-champ-caption {
  background: #fbf9f3;
  color: #4b5851;
  border-top-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .closeup-close-btn {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.18);
  color: #16211c;
}

html[data-theme='light'] .closeup-close-btn:hover {
  background: #f4ebd3;
  border-color: #8c6211;
  color: #8c6211;
}

html[data-theme='light'] .passport-modal-top-strip {
  background: #fbf9f3;
  border-left-color: #8c6211;
  color: #16211c;
}

html[data-theme='light'] .passport-hero-banner {
  background: linear-gradient(135deg, #ffffff, #f5f0e3);
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .passport-crest-box {
  background: #f5f0e2;
  border-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .passport-coach-pill {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.16);
  color: #16211c;
}

html[data-theme='light'] .passport-tabs {
  border-bottom-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .passport-tab-btn {
  background: #f6f2e7;
  border-color: rgba(22, 33, 28, 0.14);
  color: #4b5851;
}

html[data-theme='light'] .passport-tab-btn:hover {
  color: #16211c;
  border-color: #8c6211;
}

html[data-theme='light'] .passport-tab-btn.is-active {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .passport-squad-preview,
html[data-theme='light'] .passport-history-box,
html[data-theme='light'] .squad-line-col {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .preview-player-chip {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .preview-player-chip b {
  color: #8c6211;
}

html[data-theme='light'] .squad-coach-bar {
  background: #f5f0e2;
  border-color: rgba(154, 110, 23, 0.34);
  color: #16211c;
}

html[data-theme='light'] .squad-coach-bar strong {
  color: #16211c;
}

html[data-theme='light'] .squad-line-head {
  border-bottom-color: rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .squad-player-row {
  background: #ffffff;
  border: 1px solid rgba(22, 33, 28, 0.08);
}

html[data-theme='light'] .squad-name {
  color: #16211c;
}

html[data-theme='light'] .pitch-v2-board {
  background: #fbf9f3;
  border-color: rgba(154, 110, 23, 0.34);
}

html[data-theme='light'] .pitch-v2-head {
  background: #ffffff;
  border-bottom-color: rgba(22, 33, 28, 0.12);
  color: #16211c;
}

/* Slide 3 Studio, Slide 5 Kits, Slide 6 Laws/Records & Posters */
html[data-theme='light'] .law-card,
html[data-theme='light'] .law-blueprint-card,
html[data-theme='light'] .record-card,
html[data-theme='light'] .pitch-blueprint-card {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .tactic-edge-badge {
  color: #175c38;
  font-weight: 600;
}

html[data-theme='light'] .encyc-summary-banner {
  background: linear-gradient(135deg, #fcf5e3, #edf6ef);
  border-color: rgba(154, 110, 23, 0.38);
  color: #16211c;
}

html[data-theme='light'] .encyc-subnote {
  border-top-color: rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .active-player-strip,
html[data-theme='light'] .pose-tester-strip,
html[data-theme='light'] .active-player-dossier {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .active-player-dossier {
  background: #ffffff;
}

html[data-theme='light'] .scrub-progress-track {
  background: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .dot-rail-btn {
  background: rgba(22, 33, 28, 0.22);
}

html[data-theme='light'] .dot-rail-btn:hover {
  background: rgba(22, 33, 28, 0.5);
}

html[data-theme='light'] .roster-drawer-btn,
html[data-theme='light'] .pose-pill-btn,
html[data-theme='light'] .filmstrip-item,
html[data-theme='light'] .wheel-toggle-btn,
html[data-theme='light'] .icon-btn,
html[data-theme='light'] .scout-cell,
html[data-theme='light'] .dossier-quick-btn,
html[data-theme='light'] .meta-pill {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.16);
  color: #16211c;
}

html[data-theme='light'] .pose-pill-btn.is-active {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .filmstrip-item.is-active,
html[data-theme='light'] .wheel-toggle-btn.is-active {
  background: rgba(154, 110, 23, 0.14);
  border-color: #8c6211;
  color: #16211c;
}

html[data-theme='light'] .replay-btn,
html[data-theme='light'] .zoom-topbar-btn {
  background: rgba(154, 110, 23, 0.12);
  border-color: rgba(154, 110, 23, 0.4);
  color: #7c560d;
}

html[data-theme='light'] .studio-cta-btn {
  background: #175c38;
  color: #ffffff;
  border: 1px solid #175c38;
}

html[data-theme='light'] .studio-cta-btn:hover {
  background: #11472b;
}

html[data-theme='light'] .tournament-poster-card {
  background: linear-gradient(155deg, #ffffff, #f6f1e4);
  border-color: rgba(154, 110, 23, 0.36);
  color: #16211c;
}

html[data-theme='light'] .poster-matchup {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .poster-ball-pill {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.36);
  color: #16211c;
}

html[data-theme='light'] .poster-score-core {
  background: rgba(154, 110, 23, 0.12);
  border-color: rgba(154, 110, 23, 0.36);
}

html[data-theme='light'] .poster-crest-pin {
  background: #ffffff;
  border-color: rgba(154, 110, 23, 0.45);
}

html[data-theme='light'] .kit-textile-card {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .kit-swatch-chip {
  border-color: rgba(22, 33, 28, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 10px rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .kit-textile-meta {
  border-top-color: rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .kit-comp-tab,
html[data-theme='light'] .kit-comp-btn,
html[data-theme='light'] .kit-comp-tabs button {
  background: #f6f2e7;
  border-color: rgba(22, 33, 28, 0.14);
  color: #4b5851;
}

html[data-theme='light'] .kit-comp-tab:hover,
html[data-theme='light'] .kit-comp-btn:hover,
html[data-theme='light'] .kit-comp-tabs button:hover {
  color: #16211c;
  border-color: #8c6211;
}

html[data-theme='light'] .kit-comp-tab.is-active,
html[data-theme='light'] .kit-comp-btn.is-active,
html[data-theme='light'] .kit-comp-tabs button.is-active {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] #kit-zoom-btn.is-active {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .kit-comp-badge {
  background: rgba(23, 92, 56, 0.12);
  border-color: rgba(23, 92, 56, 0.34);
  color: #124b2e;
}

html[data-theme='light'] .kit-legend-pill {
  background: rgba(154, 110, 23, 0.14);
  border-color: rgba(154, 110, 23, 0.38);
  color: #7c560d;
}

html[data-theme='light'] .kit-weight-bars {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
}

html[data-theme='light'] .kit-weight-track {
  background: rgba(22, 33, 28, 0.1);
}

html[data-theme='light'] .kit-action-btn {
  background: rgba(154, 110, 23, 0.12);
  border-color: rgba(154, 110, 23, 0.38);
  color: #7c560d;
}

html[data-theme='light'] .kit-action-btn:hover {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .kit-action-btn.is-primary {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .kit-action-btn.is-primary:hover {
  background: #11472b;
}

html[data-theme='light'] .metric-track {
  background: rgba(22, 33, 28, 0.1);
}

/* Keep ONLY true photographic spotlight frames dark in Light Mode */
html[data-theme='light'] .trophy-pedestal,
html[data-theme='light'] .kit-mannequin-stage.is-dark-studio,
html[data-theme='light'] .kit-world-thumb,
html[data-theme='light'] .ball-photo-stage,
html[data-theme='light'] .stage-viewport,
html[data-theme='light'] .closeup-dialog,
html[data-theme='light'] .archival-modal-stage,
html[data-theme='light'] .goal-stage-wrap,
html[data-theme='light'] .pitch-v2-field,
html[data-theme='light'] .tactical-pitch-wrap {
  background-color: #0e1712;
  color: #faf7ef;
}

html[data-theme='light'] .closeup-dialog {
  background: #11151d;
  color: #faf7ef;
  --ink: #faf7ef;
  --ink-muted: #c6cbc3;
  --ink-dim: #8c968e;
  --gold: #e6c473;
  --gold-soft: rgba(226, 190, 108, 0.16);
}

html[data-theme='light'] .closeup-dialog .closeup-close-btn {
  background: rgba(240, 236, 226, 0.08);
  border-color: rgba(240, 236, 226, 0.22);
  color: #faf7ef;
}

html[data-theme='light'] .closeup-dialog .closeup-close-btn:hover {
  background: rgba(224, 190, 112, 0.22);
  border-color: #e6c473;
  color: #e6c473;
}

html[data-theme='light'] .kit-mannequin-stage.is-dark-studio .canvas-drag-caption,
html[data-theme='light'] .ball-photo-stage .ball-photo-meta {
  color: #c6cbc3;
}

html[data-theme='light'] .ball-photo-stage .ball-photo-meta {
  background: rgba(8, 13, 11, 0.84);
  border-color: rgba(226, 190, 108, 0.28);
}

html[data-theme='light'] .trophy-zoom-hint,
html[data-theme='light'] .real-era-tag-badge .real-era-role {
  color: #faf7ef;
}

html[data-theme='light'] .trophy-pedestal-badge,
html[data-theme='light'] .archival-zoom-chip,
html[data-theme='light'] .passport-champ-tag,
html[data-theme='light'] .passport-champ-zoom,
html[data-theme='light'] .real-era-tag-badge .real-era-num {
  color: #e6c473;
}

.kit-filtered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  width: 100%;
}

/* v20 — Clickable Broadcast TV Jerseys on Lineup Pitch & Player Inspection Card */
.pitch-jersey-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 3px 4px 4px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  color: #f8fafc;
  min-width: 0;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.pitch-jersey-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(226, 190, 108, 0.55);
}

.pitch-jersey-btn.is-selected {
  background: rgba(226, 190, 108, 0.18);
  border-color: #e6c473;
  box-shadow: 0 0 0 3px rgba(226, 190, 108, 0.28);
}

.pitch-tv-jersey {
  width: 44px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

.passport-player-card {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.passport-player-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.passport-player-card-jersey .pitch-tv-jersey {
  width: 64px;
  height: 55px;
}

.passport-player-card-meta small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.passport-player-card-meta strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  margin: 2px 0;
}

.passport-player-card-meta span {
  font-size: 12px;
  color: var(--ink-muted);
}

.passport-player-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

button.squad-player-row.is-clickable {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

button.squad-player-row.is-clickable:hover {
  background: var(--gold-soft);
  border-color: var(--border-strong);
}

button.squad-player-row.is-clickable.is-selected {
  background: rgba(226, 190, 108, 0.18);
  border-color: var(--gold);
}

/* v20 — Two-Sided Match Goal Cinema + YouTube Live Mode */
.goal-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.goal-modal-head .closeup-close-btn {
  background: rgba(242, 237, 224, 0.1);
  border: 1px solid rgba(226, 190, 108, 0.34);
  color: #faf7ef;
  flex-shrink: 0;
}

.goal-modal-head .closeup-close-btn:hover {
  background: rgba(226, 190, 108, 0.22);
  border-color: var(--gold);
}

.goal-mode-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.06);
  border: 1px solid rgba(226, 190, 108, 0.28);
  gap: 3px;
  flex-shrink: 0;
}

.goal-mode-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #c6cbc3;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.goal-mode-btn.is-active {
  background: #e6c473;
  color: #13110b;
  font-weight: 700;
}

.goal-youtube-panel[hidden],
.goal-3d-panel[hidden] {
  display: none !important;
}

.goal-yt-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(16, 28, 22, 0.92);
  border: 1px solid rgba(226, 190, 108, 0.3);
  margin-bottom: 12px;
}

.goal-yt-sb-team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.goal-yt-sb-team.is-away {
  justify-content: flex-end;
  text-align: right;
}

.goal-yt-sb-team strong {
  font-size: 14px;
  color: #faf7ef;
  word-break: normal;
  overflow-wrap: break-word;
}

.goal-yt-sb-flag .era-flag-svg {
  width: 34px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.goal-yt-sb-crest .real-crest-img.is-mini,
.goal-yt-sb-crest .heraldic-crest-svg.is-mini {
  width: 26px;
  height: 26px;
}

.goal-yt-sb-score {
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(226, 190, 108, 0.14);
  border: 1px solid rgba(226, 190, 108, 0.45);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #e6c473;
  white-space: nowrap;
}

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

.goal-side-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(14, 24, 19, 0.88);
  border: 1px solid rgba(242, 237, 224, 0.14);
  min-width: 0;
}

.goal-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.goal-side-head-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.goal-side-head-team strong {
  font-size: 13.5px;
  color: #faf7ef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goal-side-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(226, 190, 108, 0.14);
  border: 1px solid rgba(226, 190, 108, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #e6c473;
  flex-shrink: 0;
}

.goal-side-video,
.moment-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  overflow: hidden;
  background: #070d0a;
  border: 1px solid rgba(226, 190, 108, 0.28);
}

.goal-yt-play-poster,
.moment-video-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: #070d0a;
  cursor: pointer;
  display: block;
}

.goal-yt-play-poster img,
.moment-video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.goal-yt-play-poster:hover img,
.moment-video-trigger:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.yt-play-overlay-pill {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(12, 20, 16, 0.88);
  backdrop-filter: blur(8px);
  border: 1.5px solid #e6c473;
  color: #faf7ef;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.yt-play-overlay-pill b {
  color: #e6c473;
}

.goal-yt-iframe,
.moment-yt-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.goal-side-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.goal-yt-ext-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #e6c473;
  text-decoration: none;
}

.goal-yt-ext-link:hover {
  text-decoration: underline;
}

.goal-side-goals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.goal-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.06);
  border: 1px solid rgba(242, 237, 224, 0.16);
  color: #faf7ef;
  font-size: 11.5px;
  cursor: pointer;
}

.goal-mini-pill b {
  font-family: var(--font-mono);
  color: #e6c473;
}

.goal-mini-pill:hover {
  border-color: #e6c473;
  background: rgba(226, 190, 108, 0.15);
}

.moment-card-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* v20 — 3-Level Geographic World Drilldown (Continent -> Country -> Nation + All Clubs) */
.world-geo-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.world-geo-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.world-geo-crumb {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.world-geo-crumb.is-current {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 700;
}

.world-geo-sep {
  color: var(--ink-dim);
  font-size: 12px;
}

.world-geo-continents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.world-geo-continent-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.world-geo-continent-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.world-geo-continent-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.world-geo-continent-top strong {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--ink);
}

.world-geo-count-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.world-geo-continent-flags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.world-geo-continent-flags .era-flag-svg {
  width: 24px;
  height: auto;
  border-radius: 3px;
}

.world-geo-continent-sub {
  font-size: 12px;
  color: var(--ink-muted);
}

.world-geo-countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 9px;
}

.world-geo-country-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.world-geo-country-card:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
}

.world-geo-country-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.world-geo-country-left .era-flag-svg {
  width: 32px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.world-geo-country-names strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.world-geo-country-names small {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
}

.world-country-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.world-country-nation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--gold-soft), var(--surface));
  border: 1px solid var(--border-strong);
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--ink);
}

.world-country-nation-card:hover {
  border-color: var(--gold);
}

.world-country-nation-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.world-country-nation-left .era-flag-svg {
  width: 48px;
  height: auto;
  border-radius: 6px;
}

html[data-theme='light'] .pitch-jersey-btn .pitch-pin-name {
  background: rgba(7, 13, 10, 0.88);
  color: #f8fafc;
}

html[data-theme='light'] .passport-player-card,
html[data-theme='light'] .world-geo-breadcrumbs,
html[data-theme='light'] .world-geo-continent-card,
html[data-theme='light'] .world-geo-country-card {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .world-geo-crumb.is-current {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .world-country-nation-card {
  background: linear-gradient(135deg, rgba(154, 110, 23, 0.12), #fbf9f3);
  border-color: rgba(154, 110, 23, 0.42);
  color: #16211c;
}

html[data-theme='light'] .matchday-score-note {
  background: rgba(154, 110, 23, 0.1);
  border-color: rgba(154, 110, 23, 0.28);
  color: #4b5851;
}

/* Mobile Responsive Guardrails (<= 390px zero overflow) */
@media (max-width: 720px) {
  .milestone-goals-panel {
    padding: 11px 12px;
  }

  .milestone-match-chip {
    padding: 9px 10px;
  }

  .kit-comp-tabs {
    gap: 6px;
  }

  .kit-comp-tab,
  .kit-comp-btn,
  .kit-comp-tabs button {
    padding: 6px 10px;
    font-size: 11.5px;
  }

  .kit-mannequin-stage.is-dark-studio {
    padding: 12px 10px;
  }

  .kit-weight-bars {
    padding: 10px 11px;
  }

  .goal-modal {
    padding: 8px;
  }

  .goal-modal-dialog {
    max-height: 95vh;
    border-radius: 15px;
  }

  .goal-modal-head {
    padding: 10px 12px;
  }

  .goal-modal-head h3 {
    font-size: 16px;
  }

  .goal-modal-body {
    padding: 10px 12px 14px;
    gap: 9px;
  }

  .goal-hud-top,
  .goal-hud-bottom {
    left: 7px;
    right: 7px;
    gap: 4px;
  }

  .goal-hud-top {
    top: 7px;
  }

  .goal-hud-bottom {
    bottom: 7px;
  }

  .goal-hud-badge,
  .goal-hud-score,
  .goal-hud-angle,
  .goal-hud-telemetry,
  .goal-hud-pill {
    padding: 3px 7px;
    font-size: 9.5px;
  }

  .goal-wipe-banner {
    font-size: 10.5px;
    padding: 6px 12px;
    max-width: calc(100% - 20px);
    white-space: normal;
    text-align: center;
  }

  .goal-controls-bar {
    padding: 8px 9px;
    gap: 6px;
  }

  .goal-ctrl-btn,
  .goal-controls-bar button {
    padding: 5px 9px;
    font-size: 10.5px;
  }

  .goal-list-rail {
    max-height: 136px;
  }

  .goal-split-arena,
  .moments-grid,
  .world-geo-continents-grid,
  .world-geo-countries-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .goal-modal-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .goal-head-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .goal-yt-scoreboard {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 8px 10px;
    gap: 6px;
  }

  .goal-yt-sb-team {
    gap: 5px;
    min-width: 0;
  }

  .goal-yt-sb-flag .era-flag-svg {
    width: 22px;
  }

  .goal-yt-sb-crest .heraldic-crest-svg {
    width: 18px;
    height: 21px;
  }

  .goal-yt-sb-team strong {
    font-size: 11.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .goal-yt-sb-score {
    padding: 4px 8px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .goal-mode-btn {
    padding: 5px 9px;
    font-size: 11px;
  }

  .pitch-tv-jersey {
    width: 34px;
    height: 29px;
  }

  .pitch-jersey-btn .pitch-pin-name {
    font-size: 9.5px;
    max-width: 68px;
    padding: 1px 5px;
  }
}

/* =========================================================
   v21 (v2026112221) — Personal Trophy Modal, 2-Sided 3D Cinema,
   Passport Real Portraits, 3-Level Match Cards & Compact IFAB Laws
   ========================================================= */

/* 1. Personal Trophy Detail Modal (z-index 1240) */
.trophy-modal {
  position: fixed;
  inset: 0;
  z-index: 1240;
  display: grid;
  place-items: center;
  padding: 18px;
}

.trophy-modal[hidden] {
  display: none !important;
}

.trophy-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 8, 0.84);
  backdrop-filter: blur(8px);
}

.trophy-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  display: flex;
  flex-direction: column;
}

.trophy-modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}

.trophy-modal-title-group {
  min-width: 0;
}

.trophy-modal-title-group h3 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.22;
  color: var(--ink);
}

.trophy-modal-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trophy-modal-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.trophy-modal-photo-btn {
  position: relative;
  width: 100%;
  height: 240px;
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(226, 190, 108, 0.16), #09110d 82%);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}

.trophy-modal-photo-btn img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.trophy-modal-photo-btn:hover img {
  transform: scale(1.04);
}

.trophy-modal-hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.trophy-era-awarded {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink);
}

.trophy-era-awarded small {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
}

.trophy-modal-ctx-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trophy-modal-ctx-box small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.trophy-modal-ctx-box strong {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.25;
  color: var(--ink);
}

.trophy-ctx-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

.trophy-ctx-result b {
  color: var(--ink);
}

.trophy-ctx-score {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(8, 13, 11, 0.45);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

.trophy-modal-story {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.trophy-modal-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.trophy-spec-card {
  padding: 9px 11px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trophy-spec-card small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.trophy-spec-card strong {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 600;
}

.trophy-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trophy-highlight-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trophy-highlight-card small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.trophy-highlight-card strong {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
}

.trophy-champions-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trophy-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.trophy-section-head span {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.trophy-section-head small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.trophy-champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 7px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 2px;
}

.trophy-champ-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.15s ease;
}

.trophy-champ-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.trophy-champ-chip.is-current {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.trophy-champ-top {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.trophy-champ-flag .era-flag-svg {
  width: 20px;
  height: auto;
  border-radius: 3px;
  display: block;
}

.trophy-champ-top b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold);
  flex-shrink: 0;
}

.trophy-champ-top strong {
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trophy-champ-note {
  font-size: 11px;
  line-height: 1.32;
  color: var(--ink-muted);
}

.trophy-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* 2. 3-Level Slide 2 Match & Goal Strip */
.match-card-meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.match-card-cinema-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.match-card-cinema-badge:hover {
  background: var(--gold);
  color: #13110b;
}

.match-card-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.match-card-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.match-card-team.is-away {
  justify-content: flex-end;
  text-align: right;
}

.match-card-team span:not(.match-chip-flag) {
  min-width: 0;
  overflow-wrap: break-word;
}

.match-card-goals-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
}

.match-goals-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(242, 237, 224, 0.03);
  border: 1px solid var(--border);
  min-width: 0;
}

.match-goals-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.match-goals-col-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-goals-col-head b {
  color: var(--gold);
  flex-shrink: 0;
}

.match-goals-col-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.match-goals-empty,
.match-goals-none {
  font-size: 11px;
  color: var(--ink-dim);
  font-style: italic;
}

/* 3. Passport Lineup Stage + Real Player Portrait Spotlight */
.passport-lineup-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 12px;
  align-items: stretch;
}

.passport-lineup-stage .pitch-v2-board {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.passport-lineup-stage .pitch-v2-field {
  flex: 1 1 auto;
}

.passport-lineup-stage .passport-player-card {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.passport-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.passport-spotlight-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.passport-spotlight-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.passport-spotlight-nav .mini-btn {
  padding: 3px 8px;
  font-size: 11px;
}

.passport-spotlight-pos {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  min-width: 34px;
  text-align: center;
}

.passport-spotlight-media {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 25%, rgba(226, 190, 108, 0.16), #08110c 85%);
  padding: 0;
  display: block;
}

button.portrait-frame {
  cursor: zoom-in;
}

.portrait-frame img.passport-player-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.25s ease;
}

button.portrait-frame:hover img.passport-player-portrait-img {
  transform: scale(1.03);
}

.portrait-frame img.passport-player-portrait-img.is-kit {
  object-fit: contain;
  padding: 12px;
}

.portrait-frame.is-svg-jersey {
  display: grid;
  place-items: center;
  padding: 18px;
}

.portrait-frame.is-svg-jersey .pitch-tv-jersey {
  width: 120px;
  height: 106px;
}

.portrait-authenticity-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  background: rgba(7, 13, 10, 0.86);
  border: 1px solid rgba(226, 190, 108, 0.55);
  color: #e6c473;
  backdrop-filter: blur(6px);
}

.portrait-authenticity-badge.is-real {
  border-color: rgba(74, 204, 125, 0.65);
  color: #8be7ac;
}

.portrait-num-chip,
.portrait-kit-overlay {
  position: absolute;
  bottom: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(7, 13, 10, 0.88);
  border: 1px solid rgba(226, 190, 108, 0.52);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #faf7ef;
}

.portrait-kit-crest .heraldic-crest-svg,
.portrait-kit-crest .real-crest-img {
  width: 16px;
  height: 16px;
  display: block;
}

.passport-player-role-line {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.passport-spotlight-caption {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.36;
  color: var(--ink-dim);
}

.squad-coach-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.squad-coach-avatar-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  background: #0a120d;
  cursor: zoom-in;
  flex-shrink: 0;
}

.squad-coach-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.squad-coach-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.squad-coach-tag {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--turf-soft);
  border: 1px solid rgba(74, 204, 125, 0.4);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #8be7ac;
}

/* 4. 3-Tab Goal Replay Cinema Modal */
.goal-split3d-panel[hidden] {
  display: none !important;
}

.goal-side-3d-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  overflow: hidden;
  background: #07100b;
  border: 1px solid rgba(226, 190, 108, 0.28);
}

.goal-side-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.goal-side-empty-banner {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(7, 13, 10, 0.88);
  border: 1px solid rgba(226, 190, 108, 0.36);
  font-size: 11px;
  line-height: 1.3;
  color: #e6c473;
  text-align: center;
  pointer-events: none;
}

.goal-side-empty-note {
  font-size: 11.5px;
  color: #c6cbc3;
  line-height: 1.35;
}

.goal-side-ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.goal-side-ctrl-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.goal-ctrl-btn.is-accent {
  border-color: rgba(226, 190, 108, 0.56);
  color: #e6c473;
  background: rgba(226, 190, 108, 0.12);
}

.goal-ctrl-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.goal-mini-pill.is-active {
  background: rgba(226, 190, 108, 0.22);
  border-color: #e6c473;
  color: #fef08a;
}

/* 5. Light Theme Overrides for New Components */
html[data-theme='light'] .trophy-modal-dialog,
html[data-theme='light'] .trophy-modal-head {
  background: #ffffff;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .trophy-spec-card,
html[data-theme='light'] .trophy-highlight-card,
html[data-theme='light'] .trophy-champ-chip {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.14);
  color: #16211c;
}

html[data-theme='light'] .trophy-champ-chip:hover,
html[data-theme='light'] .trophy-champ-chip.is-current {
  background: #f4ebd3;
  border-color: #8c6211;
}

html[data-theme='light'] .trophy-ctx-score {
  background: #ffffff;
  color: #8c6211;
}

html[data-theme='light'] .match-goals-col {
  background: #fbf9f3;
  border-color: rgba(22, 33, 28, 0.12);
}

html[data-theme='light'] .match-card-cinema-badge {
  background: rgba(154, 110, 23, 0.12);
  border-color: rgba(154, 110, 23, 0.36);
  color: #7c560d;
}

html[data-theme='light'] .match-card-cinema-badge:hover {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .squad-coach-tag {
  background: rgba(23, 92, 56, 0.12);
  border-color: rgba(23, 92, 56, 0.32);
  color: #175c38;
}

@media (max-width: 980px) {
  .laws-blueprint-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .passport-lineup-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .trophy-modal-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .trophy-modal-photo-btn {
    height: 210px;
  }

  .trophy-modal-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .laws-blueprint-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .match-card-goals-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .goal-mode-tabs {
    flex-wrap: wrap;
    width: 100%;
    border-radius: 14px;
  }

  .goal-mode-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .goal-head-right {
    flex-wrap: wrap;
  }
}

/* =====================================================================
   v22 ("Хроника Футбола · Кино-пролог, 3-уровневая Витрина и Карусель эпох")
   ===================================================================== */

/* 1. Slide 1 69s World Cup Heroes Cinema Prologue */
.hero-cinema-band {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: stretch;
  padding: 18px 20px;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.hero-cinema-band .hero-copy h1 {
  font-size: clamp(1.5rem, 2.35vw, 2.15rem);
  line-height: 1.12;
  margin: 6px 0 8px;
}

.hero-cinema-band .hero-kpi-rail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-cinema-band .hero-kpi-pill {
  padding: 9px 11px;
}

.intro-trailer-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0d1612, #070c09);
  border: 1px solid rgba(230, 196, 115, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  min-width: 0;
}

.intro-trailer-card.is-cinema-theater {
  position: fixed;
  inset: 0;
  z-index: 1450;
  border-radius: 0;
  padding: 20px;
  justify-content: center;
  background: rgba(5, 8, 6, 0.97);
}

.intro-trailer-card.is-cinema-theater .intro-trailer-viewport {
  max-height: 74vh;
  margin: 0 auto;
  width: min(1240px, 100%);
}

.intro-trailer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.intro-trailer-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.intro-trailer-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f6e7c1;
}

.intro-trailer-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.intro-era-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(230, 196, 115, 0.16);
  border: 1px solid rgba(230, 196, 115, 0.42);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #f3d586;
  white-space: nowrap;
}

.intro-time-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #c6cbc3;
  white-space: nowrap;
}

.intro-trailer-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #040705;
  border: 1px solid rgba(230, 196, 115, 0.25);
}

.intro-trailer-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #040705;
}

.intro-trailer-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.intro-trailer-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #c69a38, #f3d586);
  transition: width 0.12s linear;
}

.intro-trailer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.intro-trailer-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.trailer-ctrl-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(242, 237, 224, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2eb;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.trailer-ctrl-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.trailer-ctrl-btn.is-primary,
.trailer-ctrl-btn.is-active {
  background: #e6c473;
  border-color: #e6c473;
  color: #13110b;
  font-weight: 700;
}

.intro-trailer-epochs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.trailer-epoch-btn {
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(242, 237, 224, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #b7beb5;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.trailer-epoch-btn:hover {
  border-color: rgba(230, 196, 115, 0.55);
  color: #faf7ef;
}

.trailer-epoch-btn.is-active {
  background: linear-gradient(135deg, #e6c473, #cfa242);
  border-color: #f3d586;
  color: #13110b;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(230, 196, 115, 0.3);
}

/* 2. Slide 3 (#teams) Luxury Era Navigation Header & Nominative Cards */
.era-nav-shell {
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.era-nav-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.era-nav-prompt {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.era-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(230, 196, 115, 0.65);
  flex-shrink: 0;
}

.era-allworld-gold-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6c473, #d1a33f);
  border: 1px solid #f2d58b;
  color: #13110b;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(230, 196, 115, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.era-allworld-gold-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(230, 196, 115, 0.35);
}

.era-nav-shell .era-tabs {
  margin-bottom: 0 !important;
}

.era-tab-card {
  gap: 5px;
  padding: 10px 11px;
  overflow: hidden;
}

.era-tab-card .tab-head-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  gap: 6px;
  overflow: visible;
}

.era-tab-card .era-photo-badge {
  flex-shrink: 0;
  padding: 2px 6px;
  font-size: 9px;
}

.era-tab-emblem {
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.era-tab-emblem .era-flag-svg,
.era-tab-emblem .real-crest-img,
.era-tab-emblem .heraldic-crest-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
  display: block;
}

.era-tab-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.era-tab-sub {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.era-tab-card.is-active .era-tab-title {
  color: var(--era-accent);
}

.era-tab-card.is-active .era-tab-sub {
  color: var(--ink);
}

/* 3. Slide 5 (#kit-museum) 2-Column Layout: Left 3-Level Accordion + Right Vitrine */
.kit-museum-layout {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.kit-tree-sidebar {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 104px);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.kit-tree-search-box {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  flex-shrink: 0;
}

.kit-tree-search-input {
  width: 100%;
  padding: 9px 32px 9px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.16s ease;
}

.kit-tree-search-input:focus {
  border-color: var(--gold);
}

.kit-tree-search-clear {
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(242, 237, 224, 0.12);
  color: var(--ink-muted);
  font-size: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.kit-tree-search-clear[hidden] {
  display: none !important;
}

.kit-tree-content {
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.kit-tree-section-divider {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.kit-tree-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.kit-tree-folder {
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(242, 237, 224, 0.02);
  overflow: hidden;
}

.kit-tree-folder.is-open {
  border-color: var(--border-strong);
}

.kit-tree-folder-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.kit-tree-folder-head:hover {
  background: rgba(230, 196, 115, 0.08);
}

.kit-tree-folder-head.is-exhibits {
  background: linear-gradient(135deg, rgba(230, 196, 115, 0.12), rgba(34, 104, 66, 0.08));
}

.kit-tree-folder-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.kit-tree-folder-title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}

.kit-tree-flag-strip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.kit-tree-flag-dot {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-left: -4px;
}

.kit-tree-flag-dot:first-child {
  margin-left: 0;
}

.kit-tree-flag-dot svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kit-tree-count {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold);
  flex-shrink: 0;
}

.kit-tree-chevron {
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.kit-tree-folder-body {
  padding: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.kit-tree-comp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.kit-tree-comp-btn {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.kit-tree-comp-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 700;
}

.kit-tree-exhibits-list {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}

.kit-tree-countries {
  flex: 0 0 auto;
  padding: 5px 6px 8px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kit-tree-country-group {
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid transparent;
}

.kit-tree-country-group.is-open {
  border-color: var(--border);
  background: rgba(242, 237, 224, 0.03);
}

.kit-tree-country-btn {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.kit-tree-country-btn:hover {
  background: rgba(230, 196, 115, 0.08);
}

.kit-tree-country-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kit-tree-subcount {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.kit-tree-teams {
  flex: 0 0 auto;
  padding: 4px 6px 6px 14px;
  margin-left: 10px;
  border-left: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kit-tree-item {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.kit-tree-item:hover {
  background: var(--gold-soft);
  border-color: var(--border-strong);
}

.kit-tree-item.is-active {
  background: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

.kit-tree-nation-btn {
  background: rgba(34, 104, 66, 0.1);
  border-color: rgba(74, 204, 125, 0.24);
}

.kit-tree-year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 44px;
}

.kit-tree-crest-mini {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kit-tree-crest-mini img,
.kit-tree-crest-mini svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.kit-tree-item-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kit-tree-item-text strong {
  font-size: 12px;
  line-height: 1.24;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kit-tree-item-text small {
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kit-tree-search-results {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kit-tree-search-group {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kit-tree-search-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  padding: 2px 4px;
}

.kit-tree-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  flex-shrink: 0;
}

.kit-tree-empty {
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Right Main Stage (.kit-stage-main) & Team Vitrine */
.kit-stage-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kit-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
}

.kit-stage-status-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
}

.kit-stage-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kit-stage-mode-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.kit-stage-mode-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.kit-stage-mode-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #13110b;
  font-weight: 700;
}

.kit-stage-vitrine-wrap[hidden],
.kit-showcase-grid[hidden],
.kit-team-vitrine[hidden],
#kit-world-gallery[hidden] {
  display: none !important;
}

.kit-team-vitrine {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kit-team-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(125deg, var(--surface), var(--bg-elev));
  border: 1px solid var(--border);
  border-left: 4px solid var(--club-a, var(--gold));
  box-shadow: var(--shadow);
}

.kit-team-emblems {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.kit-team-crest-wrap {
  width: 56px;
  height: 56px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(10, 14, 12, 0.52);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.kit-team-crest-wrap .real-crest-img,
.kit-team-crest-wrap .heraldic-crest-svg,
.kit-team-crest-wrap img,
.kit-team-crest-wrap svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.kit-team-flag-wrap {
  width: 48px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kit-team-flag-wrap svg,
.kit-team-flag-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.kit-team-hero-copy {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kit-team-hero-copy h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.15;
}

.kit-team-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.kit-team-palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kit-swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(242, 237, 224, 0.04);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--ink-muted);
}

.kit-swatch-pill i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.kit-team-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink-muted);
}

.kit-team-roster-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(10, 14, 12, 0.42);
  border: 1px solid var(--border);
}

.kit-team-roster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.kit-team-roster-head strong {
  font-size: 13px;
  color: var(--gold);
}

.kit-team-roster-head small {
  font-size: 11px;
  color: var(--ink-muted);
}

.kit-team-roster-groups {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}

.kit-team-roster-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kit-team-roster-pos {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.kit-team-roster-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kit-team-player-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.kit-team-player-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.kit-player-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
}

.kit-team-dossier-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 4. Light Theme Overrides for v22 Components */
html[data-theme='light'] .era-nav-shell,
html[data-theme='light'] .kit-tree-sidebar,
html[data-theme='light'] .kit-stage-toolbar,
html[data-theme='light'] .kit-team-hero {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.15);
}

html[data-theme='light'] .kit-tree-search-box {
  background: #eceee1;
}

html[data-theme='light'] .kit-tree-search-input {
  background: #f4f5ec;
  color: #172017;
  border-color: rgba(54, 65, 46, 0.18);
}

html[data-theme='light'] .kit-tree-folder,
html[data-theme='light'] .kit-team-roster-panel {
  background: #eceee1;
  border-color: rgba(54, 65, 46, 0.14);
}

html[data-theme='light'] .kit-tree-folder-head.is-exhibits {
  background: linear-gradient(135deg, rgba(145, 108, 28, 0.14), rgba(30, 91, 58, 0.09));
}

html[data-theme='light'] .kit-tree-nation-btn {
  background: rgba(30, 91, 58, 0.08);
  border-color: rgba(30, 91, 58, 0.25);
}

html[data-theme='light'] .kit-tree-comp-btn,
html[data-theme='light'] .kit-stage-mode-btn,
html[data-theme='light'] .kit-team-player-chip,
html[data-theme='light'] .kit-swatch-pill {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.16);
  color: #172017;
}

html[data-theme='light'] .kit-tree-comp-btn.is-active,
html[data-theme='light'] .kit-stage-mode-btn.is-active {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

html[data-theme='light'] .kit-tree-item.is-active {
  background: rgba(23, 92, 56, 0.12);
  border-color: #175c38;
  box-shadow: 0 0 0 1px #175c38 inset;
}

html[data-theme='light'] .era-allworld-gold-btn {
  background: linear-gradient(135deg, #d7ab47, #b7851e);
  color: #13110b;
}

html[data-theme='light'] .era-tab-card.is-active .era-tab-title,
html[data-theme='light'] .era-tab-card.is-active .era-tab-sub {
  color: #ffffff;
}

html[data-theme='light'] .kit-team-crest-wrap {
  background: #fbf9f3;
}

/* 5. Responsive Breakpoints (<=1060px, <=960px, <=720px, <=480px) */
@media (max-width: 1060px) {
  .hero-cinema-band {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .kit-museum-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .kit-tree-sidebar {
    position: static;
    max-height: 440px;
    overflow: hidden;
  }

  .kit-tree-content {
    min-height: 0;
    overflow-y: auto;
  }
}

@media (max-width: 720px) {
  .hero-cinema-band {
    padding: 14px;
  }

  .intro-trailer-epochs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .era-nav-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .era-allworld-gold-btn {
    justify-content: center;
  }

  .kit-team-hero {
    padding: 13px;
  }
}

@media (max-width: 520px) {
  .intro-trailer-epochs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .era-tab-card {
    padding: 8px 9px;
  }

  .era-tab-card .tab-head-row {
    gap: 5px;
  }

  .era-tab-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 11.5px;
    line-height: 1.22;
    word-break: break-word;
  }

  .era-tab-sub {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: 10px;
    line-height: 1.24;
  }
}

/* =====================================================================
   v23 LUXURY UPGRADE: STUDIO FABRIC COMPOSITOR, BROADCAST MEDALLIONS,
   1-ROW HEADER, MOBILE KIT DRAWER, SYMMETRIC ATLAS & KHAKI PALETTE
   ===================================================================== */

/* 1. Single-Line Header (>=1160px), 2-Row Tablet (760–1159px), Clean Mobile */
@media (min-width: 1160px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 58px;
  }

  .brand-mark {
    flex-shrink: 0;
    gap: 9px;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    min-width: 0;
  }

  .main-nav a {
    padding: 6px 9px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  .header-controls {
    gap: 6px;
    flex-shrink: 0;
  }
}

@media (min-width: 1160px) and (max-width: 1320px) {
  .main-nav a {
    padding: 5px 7px;
    font-size: 12px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .lang-toggle-btn,
  .header-badge {
    padding: 5px 8px;
    font-size: 11px;
  }

  .theme-toggle-btn {
    width: 30px;
    height: 30px;
    padding: 0;
  }
}

@media (min-width: 760px) and (max-width: 1159px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 0;
    min-height: 0;
  }

  .brand-mark {
    order: 1;
    flex-shrink: 0;
  }

  .header-controls {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }

  .main-nav {
    order: 3;
    display: flex;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
    padding-top: 7px;
    border-top: 1px solid var(--border);
    scrollbar-width: none;
  }

  .main-nav a {
    padding: 5px 10px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 759px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 7px 0;
    min-height: 0;
  }

  .brand-mark {
    order: 1;
    min-width: 0;
    flex-shrink: 1;
  }

  .header-back-world-btn {
    order: 2;
    flex-shrink: 0;
  }

  .header-controls {
    order: 3;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 5px;
    flex-shrink: 0;
    max-width: 100%;
  }

  html[dir='rtl'] .header-controls {
    margin-left: 0;
    margin-right: auto;
  }

  .main-nav {
    order: 4;
    flex: 1 0 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    padding: 6px 0 2px;
    border-top: 1px solid var(--border);
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 5px 10px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .brand-text small {
    display: none;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }

  .lang-toggle-btn,
  .header-badge {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .theme-toggle-btn {
    width: 30px;
    height: 30px;
    padding: 0;
  }
}

/* 2. Elite Cinema Prologue Card (#intro-trailer-card) */
.intro-trailer-card {
  background: linear-gradient(155deg, #1b2219, #0e130e);
  border: 1px solid rgba(230, 196, 115, 0.36);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(230, 196, 115, 0.14);
}

.intro-trailer-head {
  flex-wrap: nowrap;
  gap: 8px;
}

.intro-trailer-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.intro-trailer-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3dc9b;
}

.intro-trailer-badges {
  flex-shrink: 0;
  white-space: nowrap;
}

.intro-trailer-progress {
  height: 6px;
  overflow: visible;
}

.intro-trailer-progress-fill {
  position: relative;
}

.intro-trailer-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fbe6a4;
  box-shadow: 0 0 8px rgba(230, 196, 115, 0.9);
}

.trailer-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trailer-epoch-btn.is-active {
  box-shadow: 0 0 14px rgba(230, 196, 115, 0.42), 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 440px) {
  .intro-trailer-title {
    font-size: 10px;
  }

  .intro-era-pill,
  .intro-time-pill {
    font-size: 9.5px;
    padding: 2px 6px;
  }
}

/* 3. Photorealistic Studio Jersey Fabric Compositor (.studio-jersey-composite) */
.studio-jersey-composite {
  position: relative;
  width: 100%;
  height: 100%;
  background: #080f0b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.studio-jersey-canvas {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 896 / 1200;
  background: #080f0b;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
}

.studio-jersey-dye {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.studio-jersey-plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.22);
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}

.studio-jersey-sheen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.24;
  filter: contrast(1.18) brightness(0.92);
  z-index: 3;
  pointer-events: none;
}

.studio-jersey-crest {
  position: absolute;
  top: 29%;
  left: 57%;
  width: 12%;
  aspect-ratio: 1;
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.52));
}

.studio-jersey-crest .real-crest-img,
.studio-jersey-crest .heraldic-crest-svg,
.studio-jersey-crest img,
.studio-jersey-crest svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.studio-jersey-backprint {
  position: absolute;
  top: 21%;
  left: 20%;
  right: 20%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2%;
  text-align: center;
  pointer-events: none;
  color: var(--print-col, #faf7ef);
  text-shadow:
    0 2px 8px var(--print-stroke, rgba(8, 15, 11, 0.88)),
    0 0 2px var(--print-stroke, rgba(8, 15, 11, 0.88));
}

.studio-back-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.05;
  font-size: clamp(10px, 6.2cqi, 22px);
  white-space: nowrap;
}

.studio-back-num {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.96;
  font-size: clamp(32px, 28cqi, 96px);
}

.studio-jersey-kitbar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 15, 11, 0.84);
  border: 1px solid rgba(230, 196, 115, 0.3);
  backdrop-filter: blur(6px);
}

.studio-kitbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #e4e7dd;
  white-space: nowrap;
}

.studio-kitbar-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-block;
}

.real-kit-stage.is-studio-composite-stage {
  padding: 0;
  min-height: 224px;
  background: #080f0b;
}

.portrait-frame.is-studio-jersey {
  padding: 0;
  display: block;
  position: relative;
  width: min(220px, 100%);
  height: 275px;
  min-height: 275px;
  flex: 0 0 auto;
  background: #080f0b;
}

.portrait-frame.is-studio-jersey .studio-jersey-composite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portrait-frame.is-studio-jersey .studio-jersey-kitbar {
  display: none;
}

.portrait-frame.is-studio-jersey .portrait-authenticity-badge,
.portrait-frame.is-studio-jersey .portrait-kit-overlay {
  z-index: 6;
}

/* 4. UEFA/FIFA Broadcast Medallions on Tactical Pitch */
.pitch-medallion {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(230, 196, 115, 0.88);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.54);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, var(--med-a, #144e46), #0b140e);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pitch-medallion.is-gk {
  border-color: #f59e0b;
  box-shadow: 0 5px 14px rgba(217, 119, 6, 0.45);
}

.pitch-jersey-btn:hover .pitch-medallion {
  transform: scale(1.06);
}

.pitch-jersey-btn.is-selected .pitch-medallion {
  border-color: #ffe393;
  box-shadow: 0 0 0 3px rgba(230, 196, 115, 0.42), 0 8px 18px rgba(0, 0, 0, 0.6);
  transform: scale(1.08);
}

.pitch-medallion-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pitch-medallion-num-chip {
  position: absolute;
  right: -4px;
  bottom: -3px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #0d1611;
  border: 1px solid #e6c473;
  color: #faf7ef;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pitch-medallion-ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.pitch-medallion-num {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #faf7ef;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.92),
    0 0 2px rgba(0, 0, 0, 0.92);
}

@media (max-width: 520px) {
  .pitch-medallion {
    width: 34px;
    height: 34px;
  }

  .pitch-medallion-num {
    font-size: 13px;
  }

  .pitch-medallion-num-chip {
    min-width: 15px;
    height: 14px;
    font-size: 8.5px;
  }
}

/* 5. Slide 5 Mobile Drawer (#kit-mobile-drawer-btn) */
.kit-mobile-drawer-btn {
  display: none;
}

@media (max-width: 960px) {
  .kit-stage-main,
  .kit-stage-toolbar {
    scroll-margin-top: 114px;
  }

  .kit-mobile-drawer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }

  .kit-mobile-drawer-btn.is-open {
    background: var(--gold);
    color: #13110b;
    border-color: var(--gold);
  }

  .kit-tree-sidebar[data-mobile-open='false'] {
    display: none;
  }

  .kit-tree-sidebar[data-mobile-open='true'] {
    display: flex;
    max-height: 68vh;
    overflow: hidden;
  }

  .kit-tree-sidebar[data-mobile-open='true'] .kit-tree-content {
    max-height: calc(68vh - 64px);
    overflow-y: auto;
  }
}

html[data-theme='light'] .kit-mobile-drawer-btn {
  background: rgba(145, 108, 28, 0.14);
  border-color: rgba(145, 108, 28, 0.46);
  color: #77510a;
}

html[data-theme='light'] .kit-mobile-drawer-btn.is-open {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

/* 6. Symmetric 2-Row Atlas Accordion Cards (.encyc-acc-grid) */
.encyc-acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.encyc-acc-item {
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

.compact-acc > summary.acc-card-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 7px;
  padding: 12px 14px;
  min-height: 78px;
}

.compact-acc > summary.acc-card-summary::after {
  display: none;
}

.acc-sum-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.acc-sum-meta-row .encyc-year-pill {
  max-width: 64%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-sum-meta-row .encyc-year-pill.is-spacer {
  visibility: hidden;
  padding: 0;
  min-height: 18px;
  border: 0;
}

.acc-sum-meta-row .acc-sum-right {
  max-width: 48%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-sum-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.acc-sum-title-row strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.32;
  color: var(--ink);
}

.acc-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform 0.18s ease;
}

.compact-acc[open] > summary.acc-card-summary .acc-chevron {
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .encyc-acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 7. Final Light Khaki Consistency Override (Zero Stark White Cards) */
html[data-theme='light'] .passport-modal-head,
html[data-theme='light'] .legend-modal-head,
html[data-theme='light'] .archival-modal-head,
html[data-theme='light'] .trophy-modal-dialog,
html[data-theme='light'] .trophy-modal-head,
html[data-theme='light'] .pitch-v2-head,
html[data-theme='light'] .active-player-dossier,
html[data-theme='light'] .tournament-poster-card,
html[data-theme='light'] .studio-gear-popover {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.15);
  color: #172017;
}

html[data-theme='light'] .roster-drawer-btn,
html[data-theme='light'] .pose-pill-btn,
html[data-theme='light'] .filmstrip-item,
html[data-theme='light'] .wheel-toggle-btn,
html[data-theme='light'] .icon-btn,
html[data-theme='light'] .scout-cell,
html[data-theme='light'] .dossier-quick-btn,
html[data-theme='light'] .meta-pill,
html[data-theme='light'] .preview-player-chip,
html[data-theme='light'] .squad-player-row,
html[data-theme='light'] .hotspot-chip,
html[data-theme='light'] .poster-ball-pill,
html[data-theme='light'] .tactical-note-box {
  background: #eef0e4;
  border-color: rgba(54, 65, 46, 0.16);
  color: #172017;
}

html[data-theme='light'] .comparison-table td {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.12);
  color: #172017;
}

html[data-theme='light'] .comparison-table th {
  background: #dde0cf;
  border-color: rgba(54, 65, 46, 0.16);
  color: #172017;
}

/* =====================================================================
   v24 WORLD-CLASS UI: LIVE ARENA HEADER + DRAWER, 3D PITCH JERSEYS,
   684-TEAM SLIDE 3 PODIUM, 3-COL BALLON D'OR DOSSIER & AFFILIATE SLOT
   ===================================================================== */

/* 1. Header Live Pill (#header-live-btn) & Single-Row Width Discipline */
.header-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 204, 125, 0.45);
  background: linear-gradient(135deg, rgba(34, 104, 66, 0.28), rgba(20, 42, 29, 0.65));
  color: #8be7ac;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.header-live-btn:hover {
  transform: translateY(-1px);
  border-color: #8be7ac;
  background: #226842;
  color: #ffffff;
}

.header-live-btn.has-live {
  border-color: rgba(248, 113, 113, 0.55);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.25), rgba(34, 104, 66, 0.28));
  color: #fecaca;
}

.la-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: v24LivePulse 1.8s infinite;
  flex-shrink: 0;
}

.header-live-btn.has-live .la-live-pulse {
  background: #f87171;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.65);
}

@keyframes v24LivePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}

.header-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.header-live-btn.has-live .header-live-badge {
  background: #dc2626;
  color: #ffffff;
}

html[data-theme='light'] .header-live-btn {
  background: linear-gradient(135deg, rgba(30, 91, 58, 0.13), rgba(145, 108, 28, 0.11));
  border-color: rgba(30, 91, 58, 0.42);
  color: #175c38;
}

html[data-theme='light'] .header-live-btn:hover {
  background: #175c38;
  border-color: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .header-live-btn.has-live {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.12), rgba(244, 245, 236, 0.96));
  border-color: rgba(185, 28, 28, 0.44);
  color: #991b1b;
}

html[data-theme='light'] .header-live-badge {
  background: rgba(30, 91, 58, 0.14);
  color: #175c38;
}

html[data-theme='light'] .header-live-btn.has-live .header-live-badge {
  background: #b91c1c;
  color: #ffffff;
}

@media (min-width: 1160px) and (max-width: 1360px) {
  .header-inner {
    gap: 8px;
  }

  .brand-crest {
    width: 36px;
    height: 36px;
    font-size: 12.5px;
  }

  .brand-text strong {
    font-size: 13.5px;
    letter-spacing: 0.05em;
  }

  .brand-text small {
    font-size: 9.5px;
  }

  .main-nav {
    gap: 1px;
  }

  .main-nav a {
    padding: 5px 7px;
    font-size: 11.5px;
  }

  .header-controls {
    gap: 5px;
  }

  .header-live-btn,
  .lang-toggle-btn,
  .header-badge {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }

  .theme-toggle-btn {
    width: 30px;
    height: 30px;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .header-live-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
}

/* 2. Live Arena Drawer & PiP Player Light/Dark Theme Harmonization */
html[data-theme='light'] #live-arena-drawer {
  background: #f4f5ec;
  color: #172017;
  border-left-color: rgba(54, 65, 46, 0.18);
  box-shadow: -18px 0 44px rgba(32, 42, 26, 0.18);
}

html[data-theme='light'] #live-arena-drawer .la-drawer-head,
html[data-theme='light'] #live-arena-drawer .la-tabs,
html[data-theme='light'] #live-arena-drawer .la-match-card,
html[data-theme='light'] #live-arena-drawer .la-player-card,
html[data-theme='light'] #live-arena-drawer .la-kpi-box,
html[data-theme='light'] #live-arena-drawer .la-coupon-card,
html[data-theme='light'] #live-arena-drawer .la-leader-row,
html[data-theme='light'] #live-arena-drawer .la-pro-card,
html[data-theme='light'] #live-arena-drawer .la-owner-card {
  background: #eef0e4;
  border-color: rgba(54, 65, 46, 0.16);
  color: #172017;
}

html[data-theme='light'] #live-arena-drawer .la-tab.is-active,
html[data-theme='light'] #live-arena-drawer .la-odd-btn,
html[data-theme='light'] #live-arena-drawer .la-score-box,
html[data-theme='light'] #live-arena-drawer .la-slip,
html[data-theme='light'] #live-arena-drawer .la-player-meta {
  background: #f4f5ec;
}

html[data-theme='light'] #live-arena-drawer .la-ev-chip,
html[data-theme='light'] #live-arena-drawer .la-rules-panel,
html[data-theme='light'] #live-arena-drawer .la-stats-bar {
  background: #dde0cf;
}

html[data-theme='dark'] #live-arena-drawer {
  background: #192018;
  color: #faf7ef;
  border-left-color: rgba(242, 237, 224, 0.15);
}

html[data-theme='dark'] #live-arena-drawer .la-drawer-head,
html[data-theme='dark'] #live-arena-drawer .la-tabs,
html[data-theme='dark'] #live-arena-drawer .la-match-card,
html[data-theme='dark'] #live-arena-drawer .la-player-card,
html[data-theme='dark'] #live-arena-drawer .la-kpi-box,
html[data-theme='dark'] #live-arena-drawer .la-coupon-card,
html[data-theme='dark'] #live-arena-drawer .la-leader-row,
html[data-theme='dark'] #live-arena-drawer .la-pro-card,
html[data-theme='dark'] #live-arena-drawer .la-owner-card {
  background: #20281d;
  border-color: rgba(242, 237, 224, 0.14);
  color: #faf7ef;
}

html[data-theme='dark'] #live-arena-drawer .la-tab.is-active,
html[data-theme='dark'] #live-arena-drawer .la-odd-btn,
html[data-theme='dark'] #live-arena-drawer .la-score-box,
html[data-theme='dark'] #live-arena-drawer .la-slip,
html[data-theme='dark'] #live-arena-drawer .la-player-meta {
  background: #141a13;
  color: #faf7ef;
}

#live-pip-player {
  border-color: rgba(230, 196, 115, 0.55);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.48);
}

/* 3. Transparent 3D Jerseys on All Tactical Pitches (.pitch-3d-jersey) */
.pitch-3d-jersey {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.55));
  transition: transform 0.18s ease, filter 0.18s ease;
  user-select: none;
}

.pitch-3d-jersey.is-size-sm {
  width: 34px;
  height: 38px;
}

.pitch-3d-jersey.is-size-md {
  width: 44px;
  height: 50px;
}

.pitch-3d-jersey.is-size-lg {
  width: 96px;
  height: 112px;
}

@media (min-width: 1280px) {
  .studio-main-grid > .pitch-panel .pitch-3d-jersey.is-size-sm {
    width: 38px;
    height: 43px;
  }
}

@media (max-width: 540px) {
  .studio-main-grid > .pitch-panel .pitch-3d-jersey.is-size-sm {
    width: 28px;
    height: 32px;
  }

  .pitch-3d-jersey.is-size-md {
    width: 36px;
    height: 42px;
  }
}

.pitch-3d-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.pitch-3d-dye-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  isolation: isolate;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.pitch-3d-dye {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pitch-3d-plate {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  filter: brightness(1.06) contrast(1.12);
  z-index: 2;
  pointer-events: none;
}

.pitch-3d-sheen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.24;
  z-index: 3;
  pointer-events: none;
}

.pitch-3d-num {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 15px;
  padding: 0 3.5px;
  border-radius: 5px;
  background: rgba(9, 15, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #faf7ef;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.92);
  pointer-events: none;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pitch-3d-jersey.is-size-md .pitch-3d-num {
  min-width: 19px;
  height: 17px;
  font-size: 12px;
  padding: 0 4px;
}

.pitch-3d-jersey.is-size-lg .pitch-3d-num {
  min-width: 34px;
  height: 28px;
  font-size: 20px;
  padding: 0 7px;
  border-radius: 8px;
  top: 45%;
}

.pitch-3d-jersey.is-gk .pitch-3d-num {
  border-color: rgba(245, 158, 11, 0.85);
}

.pitch-token:hover .pitch-3d-jersey,
.pitch-jersey-btn:hover .pitch-3d-jersey {
  transform: scale(1.1);
}

.pitch-token.is-active .pitch-3d-jersey,
.pitch-jersey-btn.is-selected .pitch-3d-jersey {
  transform: scale(1.14);
  filter: drop-shadow(0 0 8px rgba(230, 196, 115, 0.85)) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.58));
}

.pitch-token.is-active .pitch-3d-num,
.pitch-jersey-btn.is-selected .pitch-3d-num {
  background: var(--gold, #e6c473);
  color: #12100a;
  border-color: #ffffff;
  text-shadow: none;
}

html[data-theme='light'] .pitch-token-name,
html[data-theme='light'] .pitch-pin-name {
  background: rgba(10, 16, 12, 0.88);
  color: #faf7ef;
}

html[data-theme='light'] .pitch-token.is-active .pitch-token-name,
html[data-theme='light'] .pitch-jersey-btn.is-selected .pitch-pin-name {
  background: #e6c473;
  color: #12100a;
}

/* 4. Slide 3 (#teams): Why 11 + Coach Callout & 684-Team World Picker */
.teams-why-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(230, 196, 115, 0.08);
  border: 1px solid rgba(230, 196, 115, 0.26);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.teams-why-callout p {
  margin: 0;
}

.teams-why-callout strong {
  color: var(--ink);
}

.teams-why-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  margin-top: 1px;
}

html[data-theme='light'] .teams-why-callout {
  background: #eceee1;
  border-color: rgba(145, 108, 28, 0.28);
  color: #495446;
}

html[data-theme='light'] .teams-why-callout strong {
  color: #172017;
}

.teams-world-picker-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teams-picker-inputs {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(240px, 1.1fr);
  gap: 8px;
}

.teams-custom-search,
.teams-custom-select {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease;
}

.teams-custom-search:focus,
.teams-custom-select:focus {
  border-color: var(--gold);
}

.teams-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.teams-quick-chip {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.teams-quick-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.teams-quick-chip.is-active {
  background: var(--turf);
  border-color: var(--turf);
  color: #ffffff;
}

html[data-theme='light'] .teams-custom-search,
html[data-theme='light'] .teams-custom-select,
html[data-theme='light'] .teams-quick-chip {
  background: #eef0e4;
  border-color: rgba(54, 65, 46, 0.18);
  color: #172017;
}

html[data-theme='light'] .teams-quick-chip.is-active {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

@media (max-width: 720px) {
  .teams-picker-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.team-banner-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-banner-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.team-banner-emblem svg,
.team-banner-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.real-era-figure-card.is-custom-team .is-custom-kit-layer {
  inset: 14% 12% 18%;
}

.real-era-figure-card.is-custom-team .studio-jersey-composite {
  max-width: 300px;
  max-height: 100%;
  margin: 0 auto;
}

.real-era-custom-crest {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.real-era-custom-crest svg,
.real-era-custom-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 5. 3-Column Ballon d'Or Luxury Collector Dossier (.active-player-dossier.is-collector-3col) */
.active-player-dossier.is-collector-3col {
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(22, 30, 23, 0.94), rgba(11, 16, 12, 0.96));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--era-accent);
  display: grid;
  grid-template-columns: 164px minmax(0, 1.35fr) minmax(260px, 0.92fr);
  gap: 18px;
  align-items: start;
}

html[data-theme='light'] .active-player-dossier.is-collector-3col {
  background: linear-gradient(155deg, #f4f5ec, #eceee1);
  border-color: rgba(145, 108, 28, 0.36);
  border-left: 3px solid var(--turf);
  color: #172017;
}

.dossier-col-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dossier-portrait-frame {
  position: relative;
  width: 152px;
  height: 178px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 25%, rgba(230, 196, 115, 0.16), #0b140d 86%);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dossier-portrait-frame.is-jersey-frame {
  cursor: default;
  padding: 10px;
}

.dossier-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.dossier-media-num {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(9, 15, 11, 0.88);
  border: 1px solid rgba(230, 196, 115, 0.65);
  color: #faf7ef;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.dossier-media-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.dossier-weight-chip,
.dossier-num-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

html[data-theme='light'] .dossier-weight-chip,
html[data-theme='light'] .dossier-num-chip {
  background: #eef0e4;
  color: #172017;
}

.dossier-col-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dossier-col-main .dossier-head {
  margin-bottom: 0;
}

.dossier-col-main .dossier-head h4 {
  font-size: 22px;
  line-height: 1.18;
}

.dossier-gold-subtitle {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
}

.dossier-clubs-line {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.dossier-clubs-line small {
  color: var(--gold);
  font-weight: 600;
}

.dossier-wiki-extra,
.passport-bio-extra {
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(242, 237, 224, 0.04);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

html[data-theme='light'] .dossier-wiki-extra,
html[data-theme='light'] .passport-bio-extra {
  background: #eef0e4;
  border-color: rgba(54, 65, 46, 0.16);
}

.dossier-wiki-extra[hidden],
.passport-bio-extra[hidden] {
  display: none !important;
}

.dossier-col-telemetry {
  padding-left: 16px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.dossier-weight-meter {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(242, 237, 224, 0.03);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

html[data-theme='light'] .dossier-weight-meter {
  background: #eef0e4;
}

.dossier-weight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
}

.dossier-weight-head strong {
  color: var(--gold);
  font-family: var(--font-mono);
}

.dossier-weight-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

html[data-theme='light'] .dossier-weight-track {
  background: #dde0cf;
}

.dossier-weight-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--turf), var(--gold));
}

.dossier-weight-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--ink-dim);
}

@media (max-width: 1039px) and (min-width: 720px) {
  .active-player-dossier.is-collector-3col {
    grid-template-columns: 156px minmax(0, 1fr);
  }

  .dossier-col-telemetry {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 719px) {
  .active-player-dossier.is-collector-3col {
    grid-template-columns: minmax(0, 1fr);
  }

  .dossier-col-telemetry {
    padding-left: 0;
    padding-top: 14px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* 6. Colorful SVG Player Icon Dock & Passport Bio Chips */
.player-icon-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.player-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease;
}

.player-dock-btn:hover {
  transform: translateY(-1px);
}

.dock-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-dock-btn.is-yt {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.player-dock-btn.is-yt:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.player-dock-btn.is-info {
  background: rgba(230, 196, 115, 0.16);
  border-color: rgba(230, 196, 115, 0.46);
  color: #f3dca0;
}

.player-dock-btn.is-info:hover,
.player-dock-btn.is-info.is-active {
  background: #d4a644;
  border-color: #d4a644;
  color: #13110b;
}

.player-dock-btn.is-stats {
  background: rgba(34, 104, 66, 0.24);
  border-color: rgba(74, 204, 125, 0.44);
  color: #8be7ac;
}

.player-dock-btn.is-stats:hover {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

.player-dock-btn.is-photo,
.player-dock-btn.is-macro {
  background: rgba(242, 237, 224, 0.08);
  border-color: var(--border-strong);
  color: var(--gold);
}

.player-dock-btn.is-photo:hover,
.player-dock-btn.is-macro:hover {
  background: var(--gold);
  color: #13110b;
}

html[data-theme='light'] .player-dock-btn.is-yt {
  background: rgba(185, 28, 28, 0.1);
  border-color: rgba(185, 28, 28, 0.36);
  color: #b91c1c;
}

html[data-theme='light'] .player-dock-btn.is-yt:hover {
  background: #b91c1c;
  color: #ffffff;
}

html[data-theme='light'] .player-dock-btn.is-info {
  background: rgba(145, 108, 28, 0.13);
  border-color: rgba(145, 108, 28, 0.42);
  color: #7c560d;
}

html[data-theme='light'] .player-dock-btn.is-info:hover,
html[data-theme='light'] .player-dock-btn.is-info.is-active {
  background: #8c6312;
  color: #ffffff;
}

html[data-theme='light'] .player-dock-btn.is-stats {
  background: rgba(30, 91, 58, 0.12);
  border-color: rgba(30, 91, 58, 0.38);
  color: #175c38;
}

html[data-theme='light'] .player-dock-btn.is-stats:hover {
  background: #175c38;
  color: #ffffff;
}

html[data-theme='light'] .player-dock-btn.is-step {
  background: #eef0e4;
  border-color: rgba(54, 65, 46, 0.18);
  color: #172017;
}

.passport-bio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.passport-bio-chip,
.passport-player-card-meta .passport-bio-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--ink-muted);
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.passport-bio-chip small,
.passport-player-card-meta .passport-bio-chip small {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-dim);
  margin: 0;
}

.passport-bio-chip strong,
.passport-player-card-meta .passport-bio-chip strong {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

.passport-bio-box {
  margin-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.passport-bio-summary {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.44;
  color: var(--ink-muted);
}

.bio-honours-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bio-honour-pill {
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.gear-thumb-box .pitch-3d-jersey {
  width: 42px;
  height: 48px;
}

.popover-thumb-box .pitch-3d-jersey {
  width: 66px;
  height: 74px;
}

.passport-bio-wiki-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bio-wiki-ext-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portrait-frame.is-3d-jersey-lg {
  display: grid;
  place-items: center;
  padding: 16px;
}

/* 7. Slide 5 Official Shop Partner Slot (.kit-affiliate-slot) */
.kit-affiliate-slot {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(230, 196, 115, 0.08), rgba(34, 104, 66, 0.1));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.kit-affiliate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.kit-affiliate-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.kit-affiliate-partner {
  font-size: 10.5px;
  color: var(--ink-dim);
}

.kit-affiliate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.kit-affiliate-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.kit-affiliate-copy strong {
  font-size: 12.5px;
  color: var(--ink);
}

.kit-affiliate-copy small {
  font-size: 11px;
  color: var(--ink-muted);
}

.kit-affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--turf);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.kit-affiliate-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kit-affiliate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--ink-muted);
  text-decoration: none;
}

.kit-affiliate-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.kit-affiliate-pill strong {
  color: var(--gold);
  font-family: var(--font-mono);
}

html[data-theme='light'] .kit-affiliate-slot {
  background: linear-gradient(145deg, #eceee1, #f4f5ec);
  border-color: rgba(145, 108, 28, 0.34);
}

html[data-theme='light'] .kit-affiliate-pill {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.16);
  color: #172017;
}

/* =====================================================================
   v25 PANTHEON OF FOOTBALL: EMBLEM HEADER, HERITAGE TROPHY RIBBON,
   ORDERLY 1930-2026 WC CHRONICLE PANEL & ICON-DRIVEN 3D GOAL CONTROLS
   ===================================================================== */

/* 1. Header Brand Emblem, Nav Count Badges & Single-Row Layout */
.brand-emblem-wrap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 35%, rgba(230, 196, 115, 0.18), rgba(14, 22, 16, 0.94));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

html[data-theme='light'] .brand-emblem-wrap {
  background: radial-gradient(circle at 50% 35%, #fdfcf6, #e2e4d3);
  border-color: rgba(145, 108, 28, 0.45);
  box-shadow: 0 3px 10px rgba(32, 42, 26, 0.12);
}

.brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 2px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--border-strong);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 1160px) and (max-width: 1420px) {
  .header-inner {
    gap: 10px;
  }

  .brand-emblem-wrap {
    width: 34px;
    height: 34px;
  }

  .brand-text strong {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .brand-text small {
    font-size: 9.5px;
  }

  .main-nav {
    gap: 2px;
    flex-wrap: nowrap;
  }

  .main-nav a {
    padding: 5px 7px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-count-badge {
    height: 15px;
    min-width: 16px;
    padding: 0 4px;
    margin-left: 2px;
    font-size: 9.5px;
  }

  .header-badge {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* 2. Dual Heritage Trophy Ribbon (1863 Left · Emblem Center · 2026 Right) */
.brand-heritage-ribbon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 30, 22, 0.96), rgba(14, 19, 14, 0.98));
  border: 1px solid rgba(230, 196, 115, 0.34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(230, 196, 115, 0.14);
}

html[data-theme='light'] .brand-heritage-ribbon {
  background: linear-gradient(135deg, #f6f6ed 0%, #eceee0 50%, #f4f5eb 100%);
  border-color: rgba(145, 108, 28, 0.34);
  box-shadow: 0 8px 24px rgba(32, 42, 26, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.heritage-trophy-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(230, 196, 115, 0.24);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.heritage-trophy-side.is-right {
  text-align: right;
}

html[data-theme='light'] .heritage-trophy-side {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(145, 108, 28, 0.26);
}

.heritage-trophy-side:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.heritage-trophy-img {
  height: 54px;
  width: auto;
  max-width: 30px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.32));
}

.heritage-year-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}

.heritage-year {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.heritage-year-block small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.heritage-center-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}

.heritage-seal-rule {
  flex: 1 1 24px;
  height: 1px;
  min-width: 12px;
  background: linear-gradient(90deg, transparent, rgba(230, 196, 115, 0.68), transparent);
}

html[data-theme='light'] .heritage-seal-rule {
  background: linear-gradient(90deg, transparent, rgba(145, 108, 28, 0.56), transparent);
}

.heritage-seal-core {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.heritage-emblem-main {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 11px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.heritage-seal-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
  min-width: 0;
}

.heritage-seal-copy strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--ink);
}

.heritage-seal-copy span {
  font-size: 11px;
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  .brand-heritage-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px 12px;
  }

  .heritage-center-seal {
    grid-column: 1 / -1;
    order: -1;
    gap: 10px;
  }

  .heritage-trophy-side {
    width: 100%;
    justify-content: center;
    padding: 6px 8px;
  }
}

@media (max-width: 460px) {
  .heritage-seal-rule {
    display: none;
  }

  .heritage-emblem-main {
    width: 38px;
    height: 38px;
  }

  .heritage-seal-copy strong {
    font-size: 13.5px;
    letter-spacing: 0.06em;
  }

  .heritage-seal-copy span {
    font-size: 10px;
  }

  .heritage-trophy-img {
    height: 42px;
  }

  .heritage-year {
    font-size: 17px;
  }

  .heritage-year-block small {
    font-size: 9.5px;
  }
}

/* 3. Hero Left Balance & World Cup Champions 1930-2026 Widget */
.hero-cinema-band .hero-left-col {
  justify-content: flex-start;
  gap: 16px;
}

.wc-chronicle-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
  background: linear-gradient(155deg, #f6f6ed, #ebede0);
  border: 1px solid rgba(145, 108, 28, 0.34);
  color: #172017;
  min-width: 0;
}

html[data-theme='dark'] .wc-chronicle-widget {
  background: linear-gradient(155deg, #1b2419, #131a12);
  border-color: rgba(230, 196, 115, 0.32);
  color: #faf7ef;
}

.wc-chronicle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-chronicle-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #172017;
}

html[data-theme='dark'] .wc-chronicle-title {
  color: #faf7ef;
}

.wc-chronicle-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(30, 91, 58, 0.11);
  border: 1px solid rgba(30, 91, 58, 0.3);
  color: #175c38;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme='dark'] .wc-chronicle-pill {
  background: rgba(230, 196, 115, 0.16);
  border-color: rgba(230, 196, 115, 0.38);
  color: #e6c473;
}

.wc-chronicle-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.wc-year-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 5px 6px;
  border-radius: 9px;
  border: 1px solid rgba(54, 65, 46, 0.17);
  background: rgba(255, 255, 255, 0.72);
  color: #172017;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.wc-year-tile:hover {
  transform: translateY(-1px);
  border-color: #8c6312;
  background: #ffffff;
}

.wc-year-tile.is-active {
  background: linear-gradient(135deg, #1b5737, #144329);
  border-color: #c89d3c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 87, 55, 0.28);
}

html[data-theme='dark'] .wc-year-tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(242, 237, 224, 0.15);
  color: #faf7ef;
}

html[data-theme='dark'] .wc-year-tile:hover {
  border-color: #e6c473;
  background: rgba(230, 196, 115, 0.11);
}

html[data-theme='dark'] .wc-year-tile.is-active {
  background: linear-gradient(135deg, rgba(34, 104, 66, 0.94), rgba(20, 62, 39, 0.96));
  border-color: #e6c473;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(230, 196, 115, 0.24);
}

.wc-tile-top {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.wc-tile-flag {
  display: inline-flex;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.wc-tile-flag svg,
.wc-tile-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wc-tile-year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: #172017;
}

html[data-theme='dark'] .wc-tile-year {
  color: #e6c473;
}

.wc-year-tile.is-active .wc-tile-year {
  color: #f6dc93;
}

.wc-tile-champ {
  font-size: 9.5px;
  font-weight: 600;
  color: #495446;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

html[data-theme='dark'] .wc-tile-champ {
  color: #c6cbc3;
}

.wc-year-tile.is-active .wc-tile-champ {
  color: #f3f7f2;
}

.wc-chronicle-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(54, 65, 46, 0.15);
}

html[data-theme='dark'] .wc-chronicle-detail {
  background: rgba(11, 16, 12, 0.68);
  border-color: rgba(230, 196, 115, 0.24);
}

.wc-detail-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.wc-sb-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.wc-sb-team.is-away {
  justify-content: flex-end;
  text-align: right;
}

.wc-sb-team strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wc-sb-flag {
  display: inline-flex;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.wc-sb-flag svg,
.wc-sb-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wc-sb-score {
  padding: 3px 10px;
  border-radius: 999px;
  background: #1e5b3a;
  border: 1px solid #8c6312;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme='dark'] .wc-sb-score {
  background: rgba(230, 196, 115, 0.18);
  border-color: rgba(230, 196, 115, 0.5);
  color: #f6dc93;
}

.wc-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
  color: #546151;
}

html[data-theme='dark'] .wc-detail-meta {
  color: #b7beb5;
}

.wc-meta-trophy-link {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(145, 108, 28, 0.36);
  background: rgba(145, 108, 28, 0.1);
  color: #7c560d;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.wc-meta-trophy-link:hover {
  background: #8c6312;
  color: #ffffff;
}

html[data-theme='dark'] .wc-meta-trophy-link {
  border-color: rgba(230, 196, 115, 0.4);
  background: rgba(230, 196, 115, 0.12);
  color: #e6c473;
}

html[data-theme='dark'] .wc-meta-trophy-link:hover {
  background: #e6c473;
  color: #13110b;
}

.wc-detail-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wc-detail-subhead {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #616e5e;
}

html[data-theme='dark'] .wc-detail-subhead {
  color: #a9b4a7;
}

.wc-scorers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wc-scorer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(30, 91, 58, 0.28);
  background: rgba(30, 91, 58, 0.09);
  color: #164b2e;
}

.wc-scorer-pill.is-away {
  border-color: rgba(145, 108, 28, 0.35);
  background: rgba(145, 108, 28, 0.11);
  color: #6e4c0b;
}

html[data-theme='dark'] .wc-scorer-pill {
  border-color: rgba(74, 204, 125, 0.34);
  background: rgba(34, 104, 66, 0.28);
  color: #aef0c4;
}

html[data-theme='dark'] .wc-scorer-pill.is-away {
  border-color: rgba(230, 196, 115, 0.42);
  background: rgba(230, 196, 115, 0.14);
  color: #f6dc93;
}

.wc-scorer-pill b {
  font-family: var(--font-mono);
  font-size: 10px;
}

.wc-heroes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wc-hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #eef0e4;
  border: 1px solid rgba(54, 65, 46, 0.14);
  font-size: 10.5px;
  color: #36412e;
  line-height: 1.3;
}

.wc-hero-badge small {
  color: #667263;
  font-weight: 600;
}

.wc-hero-badge em {
  font-style: normal;
  color: #546151;
}

html[data-theme='dark'] .wc-hero-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(242, 237, 224, 0.12);
  color: #faf7ef;
}

html[data-theme='dark'] .wc-hero-badge small,
html[data-theme='dark'] .wc-hero-badge em {
  color: #b7beb5;
}

.wc-moment-box {
  padding: 9px 11px;
  border-radius: 10px;
  background: #eef0e4;
  border: 1px solid rgba(145, 108, 28, 0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-theme='dark'] .wc-moment-box {
  background: rgba(230, 196, 115, 0.07);
  border-color: rgba(230, 196, 115, 0.28);
}

.wc-moment-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8c6312;
}

html[data-theme='dark'] .wc-moment-kicker {
  color: #e6c473;
}

.wc-moment-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #172017;
}

html[data-theme='dark'] .wc-moment-title {
  color: #faf7ef;
}

.wc-moment-desc {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.42;
  color: #434e40;
}

html[data-theme='dark'] .wc-moment-desc {
  color: #c6cbc3;
}

.wc-moment-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.wc-moment-3d-btn,
.wc-moment-yt-btn,
.wc-moment-atlas-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.wc-moment-3d-btn {
  border: 1px solid #1e5b3a;
  background: #1e5b3a;
  color: #ffffff;
}

.wc-moment-3d-btn:hover {
  transform: translateY(-1px);
  background: #144329;
  border-color: #144329;
}

html[data-theme='dark'] .wc-moment-3d-btn {
  border-color: #e6c473;
  background: #e6c473;
  color: #13110b;
}

.wc-moment-yt-btn {
  border: 1px solid rgba(220, 38, 38, 0.36);
  background: rgba(220, 38, 38, 0.09);
  color: #991b1b;
}

.wc-moment-yt-btn:hover {
  transform: translateY(-1px);
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.18);
}

html[data-theme='dark'] .wc-moment-yt-btn {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(220, 38, 38, 0.18);
  color: #fecaca;
}

.wc-moment-atlas-btn {
  margin-left: auto;
  border: 1px solid rgba(54, 65, 46, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #172017;
}

.wc-moment-atlas-btn:hover {
  border-color: #8c6312;
  color: #8c6312;
}

html[data-theme='dark'] .wc-moment-atlas-btn {
  border-color: rgba(242, 237, 224, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #faf7ef;
}

html[data-theme='dark'] .wc-moment-atlas-btn:hover {
  border-color: #e6c473;
  color: #e6c473;
}

@media (max-width: 640px) {
  .wc-chronicle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .wc-chronicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wc-moment-atlas-btn {
    margin-left: 0;
  }
}

/* 4. Icon-Driven Split 3D Goal Controls & Modal Toolbar */
.goal-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.yt-brand-svg {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
}

.goal-split3d-panel[hidden] {
  display: none !important;
}

.goal-side-ctrl-bar {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(12, 20, 15, 0.55);
  border: 1px solid rgba(242, 237, 224, 0.12);
}

.goal-side-ctrl-left,
.goal-side-ctrl-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.goal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(242, 237, 224, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #eef2eb;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.goal-icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #e6c473;
  color: #e6c473;
  background: rgba(230, 196, 115, 0.14);
}

.goal-icon-btn.is-active {
  background: #e6c473;
  border-color: #e6c473;
  color: #13110b;
}

.goal-icon-btn.is-accent {
  border-color: rgba(230, 196, 115, 0.5);
  color: #e6c473;
  background: rgba(230, 196, 115, 0.12);
}

.goal-icon-btn.is-youtube {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.12);
  padding: 0 7px;
}

.goal-icon-btn.is-youtube:hover {
  border-color: #ef4444;
  background: rgba(220, 38, 38, 0.25);
}

.goal-icon-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}

.goal-cam-pill {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* =====================================================================
   v26 PANTHEON UPGRADE:
   1) ICON-ONLY HEADER CONTROLS + 6-LANGUAGE SWITCHER (#lang-switcher)
   2) WC23 CINEMA SYNC HIGHLIGHT (.wc-year-tile.is-playing)
   3) OFFICIAL TEAM UNIFORM STUDIO CARDS (.player-in-kit-card)
   4) COMPLETE ARABIC RTL MIRRORING & LTR NUMERIC/TELEMETRY ISOLATION
   ===================================================================== */

/* 1. Compact Icon-Only Header Live Pill & 6-Language Switcher */
.header-live-btn {
  gap: 5px;
  padding: 5px 9px;
  min-height: 32px;
}

.header-live-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.header-badge {
  white-space: nowrap;
  max-width: 224px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header-era-pill {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(242, 237, 224, 0.06);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.lang-toggle-btn:hover,
.lang-toggle-btn[aria-expanded='true'] {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(230, 196, 115, 0.12);
}

.lang-active-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.lang-caret {
  width: 11px;
  height: 11px;
  opacity: 0.75;
  transition: transform 0.16s ease;
}

.lang-toggle-btn[aria-expanded='true'] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(230, 196, 115, 0.34);
  background: rgba(12, 19, 14, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(14px);
  z-index: 95;
  display: grid;
  gap: 3px;
}

.lang-menu[hidden] {
  display: none !important;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #eef2eb;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.lang-option:hover {
  background: rgba(230, 196, 115, 0.14);
  color: #f6dc93;
}

.lang-option.is-active {
  background: rgba(34, 104, 66, 0.36);
  border-color: rgba(230, 196, 115, 0.45);
  color: #f6dc93;
}

.lang-opt-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.78;
}

html[data-theme='light'] .lang-toggle-btn {
  background: #f4f5ec;
  border-color: rgba(54, 65, 46, 0.18);
  color: #172017;
}

html[data-theme='light'] .lang-toggle-btn:hover,
html[data-theme='light'] .lang-toggle-btn[aria-expanded='true'] {
  border-color: #916c1c;
  color: #77510a;
  background: rgba(145, 108, 28, 0.12);
}

html[data-theme='light'] .lang-menu {
  background: #f8f8f0;
  border-color: rgba(145, 108, 28, 0.34);
  box-shadow: 0 14px 32px rgba(28, 36, 22, 0.18);
}

html[data-theme='light'] .lang-option {
  color: #172017;
}

html[data-theme='light'] .lang-option:hover {
  background: rgba(145, 108, 28, 0.12);
  color: #6b4908;
}

html[data-theme='light'] .lang-option.is-active {
  background: rgba(30, 91, 58, 0.14);
  border-color: rgba(30, 91, 58, 0.38);
  color: #15452b;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .header-badge {
    max-width: 138px;
  }
}

@media (max-width: 520px) {
  .header-live-btn {
    padding: 4px 8px;
    min-height: 30px;
  }

  .lang-toggle-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* 2. WC23 Cinema Reel Sync Highlight (.wc-year-tile.is-playing) */
.wc-year-tile.is-playing {
  border-color: #d9a73b;
  box-shadow: 0 0 0 1.5px rgba(217, 167, 59, 0.65), 0 4px 12px rgba(217, 167, 59, 0.22);
}

.wc-year-tile.is-playing .wc-tile-year::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  border-radius: 50%;
  background: #e6c473;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(230, 196, 115, 0.85);
}

html[data-theme='light'] .wc-year-tile.is-playing:not(.is-active) {
  background: rgba(230, 196, 115, 0.16);
  border-color: #9e7319;
}

/* 3. Official Team Uniform Studio Card (.player-in-kit-card) */
.player-in-kit-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(230, 196, 115, 0.34);
  background:
    radial-gradient(ellipse 75% 48% at 50% 18%, rgba(230, 196, 115, 0.16), transparent 68%),
    linear-gradient(172deg, #16231a 0%, #0d1610 62%, #080e0a 100%);
  color: #f6f4ec;
  padding: 10px 12px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 32px rgba(0, 0, 0, 0.42);
}

.player-in-kit-card.is-podium {
  height: 100%;
  min-height: 356px;
  max-width: 312px;
  margin: 0 auto;
  padding: 12px 14px 12px;
}

.player-in-kit-card.is-passport {
  min-height: 292px;
}

.pik-watermark-crest {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  transform: scale(1.6);
}

.pik-watermark-crest svg,
.pik-watermark-crest img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

.pik-top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pik-top-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pik-num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(230, 196, 115, 0.18);
  border: 1px solid rgba(230, 196, 115, 0.48);
  color: #f6dc93;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
}

.pik-role-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dfe6dc;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pik-crest-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(230, 196, 115, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.pik-crest-pin svg,
.pik-crest-pin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pik-stage-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 0 4px;
}

.pik-head-medallion {
  position: relative;
  z-index: 3;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(230, 196, 115, 0.86);
  background: radial-gradient(circle at 50% 25%, rgba(230, 196, 115, 0.28), #0d1610 85%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -12px;
}

.player-in-kit-card.is-podium .pik-head-medallion {
  width: 92px;
  height: 92px;
  margin-bottom: -14px;
}

.pik-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  transform: scale(1.24);
  transform-origin: 50% 22%;
  display: block;
}

.pik-silhouette-svg {
  width: 68%;
  height: 68%;
  display: block;
  color: rgba(230, 196, 115, 0.72);
}

.pik-kit-body {
  position: relative;
  z-index: 2;
  width: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48));
}

.player-in-kit-card.is-podium .pik-kit-body {
  width: 172px;
}

.pik-kit-body .pitch-3d-jersey,
.pik-kit-body svg {
  width: 100%;
  height: auto;
  max-height: 172px;
  display: block;
}

.player-in-kit-card.is-podium .pik-kit-body .pitch-3d-jersey,
.player-in-kit-card.is-podium .pik-kit-body svg {
  max-height: 204px;
}

.pik-coach-blazer {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48));
}

.pik-meta-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pik-name-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pik-player-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pik-player-team {
  font-size: 11px;
  color: #b8c4b4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pik-archival-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(230, 196, 115, 0.48);
  background: rgba(230, 196, 115, 0.14);
  color: #f6dc93;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.pik-archival-btn:hover {
  background: rgba(230, 196, 115, 0.28);
  border-color: #f6dc93;
  transform: translateY(-1px);
}

.real-era-figure-card.is-pik-host {
  padding: 0;
  height: 368px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.passport-spotlight-media.is-pik-host {
  height: auto;
  min-height: 292px;
  padding: 0;
  border: none;
  background: transparent;
}

html[data-theme='light'] .player-in-kit-card {
  background:
    radial-gradient(ellipse 75% 48% at 50% 18%, rgba(212, 168, 67, 0.2), transparent 68%),
    linear-gradient(172deg, #1f3325 0%, #122116 62%, #0c170f 100%);
  border-color: rgba(145, 108, 28, 0.54);
}

/* 4. Arabic RTL Layout Mirroring & Strict LTR Isolation for Scores/Telemetry */
html[dir='rtl'] body {
  text-align: right;
}

html[dir='rtl'] .acc-sum-right,
html[dir='rtl'] .final-trophy-arrow,
html[dir='rtl'] .squad-coach-tag,
html[dir='rtl'] .wc-meta-trophy-link,
html[dir='rtl'] .wc-moment-atlas-btn,
html[dir='rtl'] .era-allworld-gold-btn {
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 760px) and (max-width: 1159px) {
  html[dir='rtl'] .header-controls {
    margin-left: 0;
    margin-right: auto;
  }
}

html[dir='rtl'] .milestone-fact-row strong,
html[dir='rtl'] .matchday-side-text.is-right,
html[dir='rtl'] .goal-yt-sb-team.is-away,
html[dir='rtl'] .match-card-team.is-away,
html[dir='rtl'] .wc-sb-team.is-away,
html[dir='rtl'] .heritage-trophy-side.is-right {
  text-align: left;
}

html[dir='rtl'] .heritage-trophy-side:not(.is-right),
html[dir='rtl'] .wc-year-tile,
html[dir='rtl'] .lang-option {
  text-align: right;
}

html[dir='rtl'] .wc-year-tile.is-playing .wc-tile-year::after {
  margin-left: 0;
  margin-right: 4px;
}

html[dir='rtl'] .active-player-dossier.is-collector-3col {
  border-left: 1px solid var(--border-strong);
  border-right: 3px solid var(--era-accent);
}

html[dir='rtl'][data-theme='light'] .active-player-dossier.is-collector-3col {
  border-left-color: rgba(145, 108, 28, 0.36);
  border-right: 3px solid var(--turf);
}

html[dir='rtl'] .lang-menu {
  right: auto;
  left: 0;
}

html[dir='rtl'] .kit-tree-search-clear {
  right: auto;
  left: 8px;
}

html[dir='rtl'] .nav-count-badge {
  margin-left: 0;
  margin-right: 2px;
}

html[dir='rtl'] .stepper-nav-btn .ui-icon,
html[dir='rtl'] .stage-nav-chevron .ui-icon,
html[dir='rtl'] #player-prev-btn .ui-icon,
html[dir='rtl'] #player-next-btn .ui-icon,
html[dir='rtl'] #ball-prev-btn .ui-icon,
html[dir='rtl'] #ball-next-btn .ui-icon,
html[dir='rtl'] #kit-prev-btn .ui-icon,
html[dir='rtl'] #kit-next-btn .ui-icon,
html[dir='rtl'] #passport-prev-btn .ui-icon,
html[dir='rtl'] #passport-next-btn .ui-icon,
html[dir='rtl'] #legend-prev-btn .ui-icon,
html[dir='rtl'] #legend-next-btn .ui-icon,
html[dir='rtl'] #closeup-prev-btn .ui-icon,
html[dir='rtl'] #closeup-next-btn .ui-icon {
  transform: scaleX(-1);
}

/* Isolate numeric scores, clocks, telemetry, 3D canvases and tactical pitches in RTL */
html[dir='rtl'] .wc-chronicle-score,
html[dir='rtl'] .wc-sb-score,
html[dir='rtl'] .la-score-box,
html[dir='rtl'] .goal-yt-sb-score,
html[dir='rtl'] .heritage-year,
html[dir='rtl'] .intro-time-pill,
html[dir='rtl'] .goal-stage-wrap,
html[dir='rtl'] .goal-side-3d-stage,
html[dir='rtl'] .formation-badge,
html[dir='rtl'] .pitch-v2-field,
html[dir='rtl'] .tactical-pitch-wrap,
html[dir='rtl'] .hero-kpi-pill strong,
html[dir='rtl'] .matchday-score-val,
html[dir='rtl'] .poster-score,
html[dir='rtl'] .score-replay-btn,
html[dir='rtl'] .studio-counter,
html[dir='rtl'] .trailer-epoch-chip {
  direction: ltr;
  unicode-bidi: isolate;
}

html[dir='rtl'] .container,
html[dir='rtl'] .site-main,
html[dir='rtl'] .museum-slide {
  max-width: 100%;
}

/* Prevent positive letter-spacing from breaking Arabic cursive glyph joining in RTL */
html[dir='rtl'],
html[dir='rtl'] * {
  letter-spacing: 0 !important;
}

/* =====================================================================
   v2026112327: 6-Script Typography, Scroll Safety & Slide 1 Flagship Polish
   ===================================================================== */

html {
  scroll-padding-top: 84px;
}

.museum-slide {
  scroll-margin-top: 84px;
}

.history-slide {
  padding-top: 22px;
}

/* Simplified Chinese (ZH) & Arabic (AR) typography optimization */
html[lang='zh'] {
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Inter, sans-serif;
  --font-serif: 'Noto Sans SC', 'Songti SC', 'Playfair Display', serif;
  --font-display: 'Noto Sans SC', Oswald, sans-serif;
}

html[lang='zh'] h1,
html[lang='zh'] h2,
html[lang='zh'] h3,
html[lang='zh'] .hero-compact-band .hero-copy h1 {
  line-height: 1.32;
  letter-spacing: 0.01em;
}

html[lang='ar'] {
  --font-sans: 'Noto Sans Arabic', 'SF Arabic', Inter, sans-serif;
  --font-serif: 'Noto Sans Arabic', 'SF Arabic', 'Playfair Display', serif;
}

/* Slide 1 Luxury Flagship: Heritage Ribbon, KPI Plaques, Curated Artifact Strip & Hall Visuals */
.brand-heritage-ribbon {
  position: relative;
  border: 1px solid rgba(230, 196, 115, 0.42);
  box-shadow:
    0 0 0 1px rgba(230, 196, 115, 0.14),
    0 14px 34px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 244, 214, 0.14);
}

html[data-theme='light'] .brand-heritage-ribbon {
  border-color: rgba(145, 108, 28, 0.36);
  box-shadow:
    0 0 0 1px rgba(145, 108, 28, 0.12),
    0 10px 28px rgba(32, 42, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.heritage-emblem-main {
  filter: drop-shadow(0 0 14px rgba(230, 196, 115, 0.35)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.hero-compact-band.hero-cinema-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 58% at 14% 12%, rgba(30, 91, 58, 0.26), transparent 64%),
    radial-gradient(ellipse 52% 48% at 88% 8%, rgba(230, 196, 115, 0.14), transparent 62%),
    linear-gradient(148deg, #111b15 0%, #0b120e 100%);
  border: 1px solid rgba(230, 196, 115, 0.32);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 244, 214, 0.08);
}

html[data-theme='light'] .hero-compact-band.hero-cinema-band {
  background:
    radial-gradient(ellipse 64% 52% at 10% 10%, rgba(30, 91, 58, 0.07), transparent 64%),
    radial-gradient(ellipse 54% 48% at 90% 8%, rgba(168, 126, 36, 0.11), transparent 64%),
    linear-gradient(148deg, #fafaf4 0%, #f1f2e6 100%);
  border-color: rgba(145, 108, 28, 0.34);
  box-shadow:
    0 14px 36px rgba(32, 42, 26, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.hero-cinema-band .hero-kpi-pill {
  position: relative;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230, 196, 115, 0.26);
  background: linear-gradient(165deg, rgba(20, 32, 25, 0.84), rgba(11, 18, 14, 0.92));
  box-shadow: inset 0 2px 0 rgba(230, 196, 115, 0.28);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

html[data-theme='light'] .hero-cinema-band .hero-kpi-pill {
  background: linear-gradient(165deg, #ffffff 0%, #f4f5ea 100%);
  border-color: rgba(145, 108, 28, 0.26);
  box-shadow: inset 0 2px 0 rgba(145, 108, 28, 0.32), 0 4px 12px rgba(24, 34, 22, 0.04);
}

.hero-cinema-band .hero-kpi-pill:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.kpi-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(230, 196, 115, 0.14);
  border: 1px solid rgba(230, 196, 115, 0.36);
  color: var(--gold);
  flex-shrink: 0;
}

html[data-theme='light'] .kpi-icon-badge {
  background: rgba(145, 108, 28, 0.11);
  border-color: rgba(145, 108, 28, 0.3);
  color: #8c6312;
}

/* Curated Artifact Spotlight Strip inside Slide 1 left column */
.hero-curated-strip {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 4px;
}

.hero-curated-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-curated-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: nowrap;
}

.hero-curated-rule {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(230, 196, 115, 0.48), transparent);
}

html[dir='rtl'] .hero-curated-rule {
  background: linear-gradient(270deg, rgba(145, 108, 28, 0.45), transparent);
}

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

.curated-artifact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid rgba(230, 196, 115, 0.24);
  background: rgba(14, 23, 18, 0.72);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

html[dir='rtl'] .curated-artifact-card {
  text-align: right;
}

html[data-theme='light'] .curated-artifact-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(145, 108, 28, 0.26);
  box-shadow: 0 4px 12px rgba(24, 34, 22, 0.05);
}

.curated-artifact-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.curated-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(230, 196, 115, 0.3);
  background: #101913;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme='light'] .curated-thumb-wrap {
  background: #eceee2;
  border-color: rgba(145, 108, 28, 0.28);
}

.curated-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curated-thumb-wrap.is-contain {
  padding: 3px;
  background: radial-gradient(circle at center, rgba(230, 196, 115, 0.16), #0d1610);
}

html[data-theme='light'] .curated-thumb-wrap.is-contain {
  background: radial-gradient(circle at center, rgba(145, 108, 28, 0.12), #f2f3e8);
}

.curated-thumb-wrap.is-contain img {
  object-fit: contain;
}

.curated-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.curated-copy strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.curated-copy small {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 6-Hall Showcase Cards with Museum Studio Media Frames */
.hero-section.museum-slide .hall-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 196, 115, 0.26);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-section.museum-slide .hall-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(230, 196, 115, 0.65), transparent);
  opacity: 0.45;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hero-section.museum-slide .hall-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.hero-section.museum-slide .hall-card:hover::before {
  opacity: 1;
}

html[data-theme='light'] .hero-section.museum-slide .hall-card {
  background: linear-gradient(160deg, #fafaf3 0%, #f1f2e5 100%);
  border-color: rgba(145, 108, 28, 0.26);
  box-shadow: 0 6px 18px rgba(24, 34, 22, 0.06);
}

html[data-theme='light'] .hero-section.museum-slide .hall-card:hover {
  border-color: #916c1c;
  box-shadow: 0 12px 26px rgba(24, 34, 22, 0.11);
}

html[dir='rtl'] .hall-card-trigger {
  text-align: right;
}

.hall-card-media {
  width: 100%;
  height: 104px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
  border: 1px solid rgba(230, 196, 115, 0.24);
  background: #0d1611;
  position: relative;
}

.hall-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  transition: transform 0.35s ease;
}

.hero-section.museum-slide .hall-card:hover .hall-card-media img {
  transform: scale(1.04);
}

.hall-card-media.is-studio {
  padding: 6px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(230, 196, 115, 0.18), transparent 72%),
    linear-gradient(165deg, #132119, #09100c);
}

html[data-theme='light'] .hall-card-media.is-studio {
  background:
    radial-gradient(ellipse 70% 60% at 50% 42%, rgba(145, 108, 28, 0.14), transparent 72%),
    linear-gradient(165deg, #f7f7ee, #e8eadb);
}

.hall-card-media.is-studio img {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1180px) {
  .hero-cinema-band {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .hero-compact-band.hero-cinema-band {
    padding: 14px;
  }

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

  .hall-card-media {
    height: 92px;
  }
}

/* =====================================================================
   v27 GLOBAL TICKETS HUB TRIGGERS (#header-tickets-btn, .btn-gold-outline,
   .ticket-trigger-btn) — Dark / Light / RTL / 1440 / 1180 / 390px
   ===================================================================== */

.header-tickets-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(230, 196, 115, 0.44);
  background: linear-gradient(135deg, rgba(230, 196, 115, 0.16), rgba(34, 104, 66, 0.24));
  color: #f6dc93;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.header-tickets-btn:hover {
  transform: translateY(-1px);
  border-color: #e6c473;
  background: rgba(230, 196, 115, 0.28);
  color: #ffffff;
}

.header-tickets-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

html[data-theme='light'] .header-tickets-btn {
  background: linear-gradient(135deg, rgba(214, 177, 94, 0.18), rgba(30, 91, 58, 0.08));
  border-color: rgba(145, 108, 28, 0.46);
  color: #7a5508;
}

html[data-theme='light'] .header-tickets-btn:hover {
  background: #8c6312;
  border-color: #8c6312;
  color: #ffffff;
}

@media (min-width: 1160px) and (max-width: 1360px) {
  .header-tickets-btn {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 520px) {
  .header-tickets-btn {
    width: 30px;
    height: 30px;
  }
}

.btn-gold-outline {
  border: 1px solid rgba(230, 196, 115, 0.56);
  background: linear-gradient(135deg, rgba(230, 196, 115, 0.15), rgba(196, 152, 63, 0.06));
  color: #f6dc93;
  cursor: pointer;
  font-family: inherit;
}

.btn-gold-outline:hover {
  border-color: #e6c473;
  background: linear-gradient(135deg, rgba(230, 196, 115, 0.26), rgba(196, 152, 63, 0.16));
  color: #fff8e2;
}

html[data-theme='light'] .btn-gold-outline {
  border-color: rgba(145, 108, 28, 0.54);
  background: linear-gradient(135deg, rgba(214, 177, 94, 0.18), rgba(247, 245, 232, 0.96));
  color: #6e4c07;
}

html[data-theme='light'] .btn-gold-outline:hover {
  border-color: #7c5609;
  background: linear-gradient(135deg, #d8b25c, #b98a2b);
  color: #ffffff;
}

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

html[dir='rtl'] .passport-hero-actions {
  justify-content: flex-start;
}

.ticket-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230, 196, 115, 0.48);
  background: linear-gradient(135deg, rgba(230, 196, 115, 0.16), rgba(30, 91, 58, 0.24));
  color: #f6dc93;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.ticket-trigger-btn:hover {
  transform: translateY(-1px);
  border-color: #e6c473;
  background: linear-gradient(135deg, rgba(230, 196, 115, 0.28), rgba(30, 91, 58, 0.36));
  color: #ffffff;
}

.ticket-trigger-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ticket-trigger-btn.is-wc-btn {
  padding: 5px 11px;
  font-size: 11.5px;
}

html[data-theme='light'] .ticket-trigger-btn {
  border-color: rgba(145, 108, 28, 0.48);
  background: linear-gradient(135deg, rgba(214, 177, 94, 0.18), rgba(244, 245, 236, 0.98));
  color: #6e4c07;
}

html[data-theme='light'] .ticket-trigger-btn:hover {
  border-color: #8c6312;
  background: #8c6312;
  color: #ffffff;
}

.stadium-ticket-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .passport-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* =====================================================================
   v28 WORLD SPORTS PANTHEON PORTAL (.header-sports-btn,
   #world-sports-showcase, #sports-portal-drawer)
   ===================================================================== */

.header-sports-btn {
  position: relative;
}

.header-sports-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #2f8a57;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
  pointer-events: none;
}

html[dir='rtl'] .header-sports-count {
  right: auto;
  left: -4px;
}

.world-sports-showcase {
  margin-top: 20px;
}

.ws-showcase-card {
  border-radius: 20px;
  border: 1px solid rgba(230, 196, 115, 0.28);
  background: linear-gradient(155deg, rgba(16, 26, 21, 0.88), rgba(11, 18, 15, 0.94));
  padding: 18px 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme='light'] .ws-showcase-card {
  border-color: rgba(145, 108, 28, 0.26);
  background: linear-gradient(155deg, rgba(250, 249, 242, 0.96), rgba(240, 242, 232, 0.96));
  box-shadow: 0 10px 28px rgba(24, 34, 24, 0.08);
}

.ws-showcase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ws-showcase-copy {
  flex: 1 1 420px;
  min-width: 0;
}

.ws-showcase-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6c473;
  margin-bottom: 4px;
}

html[data-theme='light'] .ws-showcase-kicker {
  color: #8c6312;
}

.ws-showcase-title {
  margin: 0 0 4px;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.25;
  color: var(--ink-main, #f5f3ea);
}

.ws-showcase-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted, #bcc4b8);
}

html[data-theme='light'] .ws-showcase-title {
  color: #172017;
}

html[data-theme='light'] .ws-showcase-sub {
  color: #455245;
}

.ws-open-portal-btn {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ws-chip-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 8px;
}

.ws-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-main, #f2efe5);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: transform 0.15s ease, border-color 0.16s ease, background 0.16s ease;
}

.ws-chip:hover {
  transform: translateY(-1px);
  border-color: var(--sport-accent, #e6c473);
  background: rgba(255, 255, 255, 0.08);
}

.ws-chip.is-live {
  border-color: rgba(47, 138, 87, 0.65);
  background: linear-gradient(135deg, rgba(47, 138, 87, 0.24), rgba(230, 196, 115, 0.12));
}

html[data-theme='light'] .ws-chip {
  border-color: rgba(40, 56, 40, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #172017;
}

html[data-theme='light'] .ws-chip.is-live {
  border-color: rgba(30, 91, 58, 0.56);
  background: linear-gradient(135deg, rgba(30, 91, 58, 0.14), rgba(214, 177, 94, 0.16));
}

.ws-chip-ico,
.sport-wing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sport-accent, #e6c473);
  flex-shrink: 0;
}

html[data-theme='light'] .ws-chip-ico,
html[data-theme='light'] .sport-wing-icon {
  background: rgba(24, 34, 24, 0.06);
}

.ws-chip-ico svg,
.sport-wing-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ws-chip-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-chip-span {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted, #aeb7aa);
  flex-shrink: 0;
}

.ws-chip.is-live .ws-chip-span {
  background: #2f8a57;
  color: #ffffff;
}

html[data-theme='light'] .ws-chip-span {
  background: rgba(24, 34, 24, 0.08);
  color: #4f5b4f;
}

html[data-theme='light'] .ws-chip.is-live .ws-chip-span {
  background: #1e5b3a;
  color: #ffffff;
}

.sports-portal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1405;
  background: rgba(7, 11, 9, 0.72);
  backdrop-filter: blur(6px);
}

.sports-portal-backdrop[hidden],
.sports-portal-drawer[hidden] {
  display: none !important;
}

.sports-portal-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100dvh - 36px);
  z-index: 1410;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(230, 196, 115, 0.34);
  background: #101914;
  color: #f4f1e6;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

html[data-theme='light'] .sports-portal-drawer {
  background: #f5f5ec;
  color: #172017;
  border-color: rgba(145, 108, 28, 0.34);
}

.sports-portal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

html[data-theme='light'] .sports-portal-head,
html[data-theme='light'] .sports-portal-foot {
  border-color: rgba(24, 34, 24, 0.12);
}

.sports-portal-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6c473;
  margin-bottom: 3px;
}

html[data-theme='light'] .sports-portal-kicker {
  color: #8c6312;
}

.sports-portal-title {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.25;
}

.sports-portal-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted, #aeb7aa);
}

html[data-theme='light'] .sports-portal-sub,
html[data-theme='light'] .sports-portal-foot-hint {
  color: #455245;
}

.sports-portal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}

html[data-theme='light'] .sports-portal-close {
  border-color: rgba(24, 34, 24, 0.22);
  background: rgba(255, 255, 255, 0.8);
}

.sports-portal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .sports-portal-filters {
  border-color: rgba(24, 34, 24, 0.1);
}

.sports-filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sports-filter-pill.is-active {
  background: #2f8a57;
  border-color: #2f8a57;
  color: #ffffff;
}

html[data-theme='light'] .sports-filter-pill {
  border-color: rgba(24, 34, 24, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

html[data-theme='light'] .sports-filter-pill.is-active {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

.sports-portal-grid {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 12px;
}

.sport-wing-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.sport-wing-card.is-live {
  border-color: rgba(47, 138, 87, 0.65);
  background: linear-gradient(145deg, rgba(47, 138, 87, 0.2), rgba(230, 196, 115, 0.08));
}

html[data-theme='light'] .sport-wing-card {
  border-color: rgba(24, 34, 24, 0.12);
  background: #ffffff;
}

html[data-theme='light'] .sport-wing-card.is-live {
  border-color: rgba(30, 91, 58, 0.52);
  background: linear-gradient(145deg, rgba(30, 91, 58, 0.1), rgba(214, 177, 94, 0.12));
}

.sport-wing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sport-wing-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-muted, #aeb7aa);
}

.sport-wing-status.is-live {
  background: #2f8a57;
  color: #ffffff;
}

html[data-theme='light'] .sport-wing-status {
  background: rgba(24, 34, 24, 0.08);
  color: #4f5b4f;
}

html[data-theme='light'] .sport-wing-status.is-live {
  background: #1e5b3a;
  color: #ffffff;
}

.sport-wing-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.sport-wing-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.sport-wing-era {
  font-size: 11px;
  font-weight: 700;
  color: #e6c473;
  white-space: nowrap;
}

html[data-theme='light'] .sport-wing-era {
  color: #8c6312;
}

.sport-wing-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted, #b5beb2);
  flex: 1 1 auto;
}

html[data-theme='light'] .sport-wing-desc {
  color: #455245;
}

.sport-wing-cta {
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sport-wing-cta.is-live-cta {
  background: #2f8a57;
  border-color: #2f8a57;
  color: #ffffff;
}

html[data-theme='light'] .sport-wing-cta {
  border-color: rgba(24, 34, 24, 0.18);
  background: rgba(24, 34, 24, 0.04);
}

html[data-theme='light'] .sport-wing-cta.is-live-cta {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

.sports-portal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sports-portal-foot-hint {
  font-size: 12px;
  color: var(--ink-muted, #aeb7aa);
}

.sports-portal-foot-btn {
  padding: 7px 14px;
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .ws-showcase-card {
    padding: 14px;
  }
  .ws-chip-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sports-portal-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
  }
  .sports-portal-head,
  .sports-portal-filters,
  .sports-portal-grid,
  .sports-portal-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .sports-portal-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   V30: SPORTMYLIFE WORLD SPORTS HUB + WING #2 LIVE UFC & MMA MUSEUM
   ========================================================================== */
.nav-ufc-pill {
  border: 1px solid rgba(220, 38, 38, 0.36);
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5 !important;
  font-weight: 700 !important;
}

.nav-ufc-pill:hover,
.nav-ufc-pill.is-active {
  background: rgba(185, 28, 28, 0.24) !important;
  border-color: rgba(239, 68, 68, 0.72) !important;
  color: #ffffff !important;
}

html[data-theme='light'] .nav-ufc-pill {
  background: rgba(185, 28, 28, 0.09);
  border-color: rgba(185, 28, 28, 0.34);
  color: #991b1b !important;
}

html[data-theme='light'] .nav-ufc-pill.is-active {
  background: #991b1b !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
}

.world-sport-hero,
.world-sport-chronicle {
  margin-bottom: 18px;
  max-width: 100%;
}

.ws-hero-banner {
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(226, 190, 108, 0.28);
  background: linear-gradient(135deg, rgba(16, 26, 21, 0.94), rgba(10, 14, 18, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

html[data-theme='light'] .ws-hero-banner {
  background: linear-gradient(135deg, #fdfcf7, #f2efe4);
  border-color: rgba(145, 108, 28, 0.34);
  box-shadow: 0 18px 40px rgba(30, 42, 26, 0.08);
}

.ws-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ws-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(230, 196, 115, 0.14);
  border: 1px solid rgba(230, 196, 115, 0.34);
  color: #e6c473;
  margin-bottom: 10px;
}

html[data-theme='light'] .ws-eyebrow {
  background: rgba(145, 108, 28, 0.1);
  border-color: rgba(145, 108, 28, 0.3);
  color: #7c5610;
}

.ws-hero-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.ws-hero-sub {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.ws-hero-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px;
  max-width: 660px;
}

.ws-hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(230, 196, 115, 0.28);
  aspect-ratio: 16 / 9;
  background: #0c1410;
}

.ws-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ws-kpi-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[data-theme='light'] .ws-kpi-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(34, 52, 34, 0.14);
}

.ws-kpi-card strong {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
}

html[data-theme='light'] .ws-kpi-card strong {
  color: #8c6312;
}

.ws-kpi-card span {
  font-size: 12px;
  color: var(--ink-muted);
}

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

.ws-wing-switch {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ws-wing-switch:hover {
  transform: translateY(-2px);
}

.ws-wing-switch.is-football {
  background: linear-gradient(135deg, rgba(30, 91, 58, 0.24), rgba(16, 30, 22, 0.72));
  border-color: rgba(47, 138, 87, 0.55);
}

.ws-wing-switch.is-ufc {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.24), rgba(24, 12, 14, 0.78));
  border-color: rgba(220, 38, 38, 0.55);
}

html[data-theme='light'] .ws-wing-switch.is-football {
  background: linear-gradient(135deg, #edf7f1, #ffffff);
  border-color: rgba(30, 91, 58, 0.35);
}

html[data-theme='light'] .ws-wing-switch.is-ufc {
  background: linear-gradient(135deg, #fef2f2, #ffffff);
  border-color: rgba(185, 28, 28, 0.34);
}

.ws-wing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ws-wing-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.ws-wing-switch.is-ufc .ws-wing-live {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
}

html[data-theme='light'] .ws-wing-live {
  background: rgba(30, 91, 58, 0.14);
  color: #166534;
}

html[data-theme='light'] .ws-wing-switch.is-ufc .ws-wing-live {
  background: rgba(185, 28, 28, 0.14);
  color: #991b1b;
}

.ws-wing-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.ws-wing-meta {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.ws-wing-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
}

html[data-theme='light'] .ws-wing-cta {
  color: #8c6312;
}

.ws-next-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ws-next-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

html[data-theme='light'] .ws-next-pill {
  background: rgba(24, 34, 24, 0.04);
  border-color: rgba(24, 34, 24, 0.14);
  color: #3f4b3f;
}

/* World Sport Chronology 776 BC - 2026 */
.ws-chronicle-box {
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: rgba(12, 20, 16, 0.88);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

html[data-theme='light'] .ws-chronicle-box {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(34, 52, 34, 0.16);
}

.ws-chronicle-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.ws-chronicle-head h2,
.ws-chronicle-head h3 {
  margin: 0;
  font-size: 20px;
}

.ws-pill-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ws-filter-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #141914;
}

html[data-theme='light'] .ws-filter-btn {
  background: rgba(24, 34, 24, 0.04);
  border-color: rgba(24, 34, 24, 0.16);
  color: #2f3b2f;
}

html[data-theme='light'] .ws-filter-btn.is-active {
  background: #1e5b3a;
  border-color: #1e5b3a;
  color: #ffffff;
}

.ws-timeline-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ws-chip-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  min-width: 120px;
  max-width: 190px;
  text-align: inherit;
}

.ws-chip-btn.is-active {
  border-color: var(--gold);
  background: var(--gold-soft);
}

html[data-theme='light'] .ws-chip-btn {
  background: #faf9f4;
  border-color: rgba(24, 34, 24, 0.16);
}

html[data-theme='light'] .ws-chip-btn.is-active {
  border-color: #8c6312;
  background: #f5ebd1;
}

.ws-chip-yr {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}

html[data-theme='light'] .ws-chip-yr {
  color: #8c6312;
}

.ws-detail-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
}

html[data-theme='light'] .ws-detail-card {
  background: #faf8f0;
  border-color: rgba(24, 34, 24, 0.14);
}

.ws-detail-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.ws-detail-body h4 {
  margin: 4px 0 6px;
  font-size: 17px;
}

.ws-detail-body p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.ws-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.football-wing-anchor {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(226, 190, 108, 0.34);
}

/* ==========================================================================
   WING #2 LIVE: UFC & MMA DIGITAL MUSEUM (#ufc)
   ========================================================================== */
.ufc-museum-slide {
  padding-bottom: 42px;
}

.ufc-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ufc-hero-banner {
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(220, 38, 38, 0.34);
  background: linear-gradient(135deg, rgba(24, 12, 15, 0.96), rgba(10, 12, 16, 0.98));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
  margin-bottom: 16px;
}

html[data-theme='light'] .ufc-hero-banner {
  background: linear-gradient(135deg, #fffaf8, #f7eceb);
  border-color: rgba(185, 28, 28, 0.28);
  box-shadow: 0 18px 40px rgba(60, 16, 16, 0.08);
}

.ufc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.ufc-hero-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.36);
  aspect-ratio: 16 / 9;
  background: #0d0e12;
}

.ufc-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ufc-hall-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ufc-tab-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ufc-tab-btn.is-active {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

html[data-theme='light'] .ufc-tab-btn {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.16);
  color: #2f3b2f;
}

html[data-theme='light'] .ufc-tab-btn.is-active {
  background: #991b1b;
  border-color: #991b1b;
  color: #ffffff;
}

.ufc-hall-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.ufc-curated-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  color: inherit;
  cursor: pointer;
  text-align: start;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

html[data-theme='light'] .ufc-curated-card {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.14);
}

.ufc-curated-card img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.ufc-eras-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ufc-era-tile {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: inherit;
  text-align: inherit;
}

html[data-theme='light'] .ufc-era-tile {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.14);
}

.ufc-overview-grid,
.ufc-atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ufc-card {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 22, 0.88);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[data-theme='light'] .ufc-card {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.14);
}

.ufc-bout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

html[data-theme='light'] .ufc-bout-row {
  background: #faf8f2;
  border-color: rgba(24, 34, 24, 0.1);
}

.ufc-chronicle-detail {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 22, 0.9);
  align-items: start;
}

html[data-theme='light'] .ufc-chronicle-detail {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.16);
}

.ufc-chronicle-detail img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.ufc-facts-list {
  margin: 8px 0 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.ufc-div-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ufc-div-card {
  padding: 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 22, 0.88);
  cursor: pointer;
  color: inherit;
  text-align: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ufc-div-card.is-active {
  border-color: #dc2626;
  background: rgba(185, 28, 28, 0.16);
}

html[data-theme='light'] .ufc-div-card {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.14);
}

html[data-theme='light'] .ufc-div-card.is-active {
  border-color: #991b1b;
  background: #fef2f2;
}

.ufc-lineage-box {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(226, 190, 108, 0.34);
  background: rgba(14, 18, 22, 0.92);
}

html[data-theme='light'] .ufc-lineage-box {
  background: #fdfcf7;
  border-color: rgba(145, 108, 28, 0.3);
}

.ufc-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ufc-p4p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.ufc-p4p-row {
  border-bottom: 1px solid var(--border);
}

.ufc-p4p-row th,
.ufc-p4p-row td {
  padding: 10px 12px;
  text-align: inherit;
}

.ufc-legends-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ufc-search-input {
  min-width: 240px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-family: inherit;
  font-size: 13px;
}

html[data-theme='light'] .ufc-search-input {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.22);
}

.ufc-fighters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ufc-fighter-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(14, 18, 22, 0.9);
  color: inherit;
  cursor: pointer;
  text-align: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.ufc-fighter-card:hover {
  transform: translateY(-2px);
  border-color: #dc2626;
}

html[data-theme='light'] .ufc-fighter-card {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.14);
}

.ufc-fighter-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ufc-fighter-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

/* ==========================================================================
   V31: STRICT 3-BRANCH ISOLATION + WORLD COLUMNS + AUTHENTIC UFC DESIGN SYSTEM
   ========================================================================== */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-back-world-btn {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.header-back-world-btn:hover {
  transform: translateY(-1px);
  background: rgba(226, 190, 108, 0.16);
}

html[data-theme='light'] .header-back-world-btn {
  background: rgba(140, 99, 18, 0.08);
  color: #7c5610;
  border-color: rgba(140, 99, 18, 0.34);
}

html[data-sport-branch='football'] #header-back-world-btn,
html[data-sport-branch='ufc'] #header-back-world-btn {
  display: inline-flex;
}

.main-nav[data-nav-branch],
.header-badge[data-badge-branch],
.footer-desc-branch[data-footer-branch],
.footer-links-group[data-footer-branch] {
  display: none !important;
}

html[data-sport-branch='world'] .main-nav[data-nav-branch='world'],
html[data-sport-branch='football'] .main-nav[data-nav-branch='football'],
html[data-sport-branch='ufc'] .main-nav[data-nav-branch='ufc'] {
  display: flex !important;
}

html[data-sport-branch='world'] .header-badge[data-badge-branch='world'],
html[data-sport-branch='football'] .header-badge[data-badge-branch='football'],
html[data-sport-branch='ufc'] .header-badge[data-badge-branch='ufc'] {
  display: inline-flex !important;
}

html[data-sport-branch='world'] .footer-desc-branch[data-footer-branch='world'],
html[data-sport-branch='football'] .footer-desc-branch[data-footer-branch='football'],
html[data-sport-branch='ufc'] .footer-desc-branch[data-footer-branch='ufc'] {
  display: block !important;
}

html[data-sport-branch='world'] .footer-links-group[data-footer-branch='world'],
html[data-sport-branch='football'] .footer-links-group[data-footer-branch='football'],
html[data-sport-branch='ufc'] .footer-links-group[data-footer-branch='ufc'] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-sport-branch='world'] #deck-stepper-bar {
  display: none !important;
}

.nav-branch-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme='light'] .nav-branch-btn {
  color: #7c5610;
  background: rgba(145, 108, 28, 0.1);
}

/* Strictly Columnar World Sports Directory — 3 × 2 Symmetrical Mosaic for 6 Live Wings */
.ws-live-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px;
  margin-bottom: 16px;
}

.ws-live-col {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: rgba(14, 20, 17, 0.92);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.ws-live-col.is-ufc {
  background: linear-gradient(160deg, rgba(22, 12, 15, 0.96), rgba(11, 13, 18, 0.98));
  border-color: rgba(210, 10, 10, 0.48);
}

.ws-live-col.is-football {
  background: linear-gradient(160deg, rgba(16, 28, 21, 0.95), rgba(10, 16, 13, 0.98));
  border-color: rgba(47, 138, 87, 0.52);
}

html[data-theme='light'] .ws-live-col.is-football {
  background: linear-gradient(160deg, #f3faf5, #ffffff);
  border-color: rgba(30, 91, 58, 0.34);
}

html[data-theme='light'] .ws-live-col.is-ufc {
  background: linear-gradient(160deg, #fff6f5, #ffffff);
  border-color: rgba(185, 28, 28, 0.34);
}

.ws-live-col-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #0d1014;
}

.ws-live-col-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-live-col-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.1) 0%, rgba(8, 10, 14, 0.82) 100%);
}

.ws-live-col-badges {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ws-live-col-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #1e5b3a;
  color: #ffffff;
}

.ws-live-col.is-ufc .ws-live-col-badge {
  background: #d20a0a;
}

.ws-live-col-span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #f3e4b2;
  background: rgba(8, 10, 14, 0.72);
  padding: 3px 9px;
  border-radius: 999px;
}

.ws-live-col-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.ws-live-col-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-live-col-title-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.ws-live-col-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--sport-accent, var(--gold));
}

.ws-live-col-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.ws-live-col-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.48;
}

.ws-live-col-halls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.ws-col-hall-btn {
  padding: 7px 8px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ws-col-hall-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

html[data-theme='light'] .ws-col-hall-btn {
  background: rgba(24, 34, 24, 0.04);
  color: #1c281e;
}

.ws-live-col-cta {
  margin-top: auto;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #226842, #16472c);
}

.ws-live-col.is-ufc .ws-live-col-cta {
  background: linear-gradient(135deg, #d20a0a, #8d0b0b);
}

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

.ws-roadmap-col {
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

html[data-theme='light'] .ws-roadmap-col {
  background: #faf9f4;
  border-color: rgba(24, 34, 24, 0.14);
}

.ws-roadmap-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.ws-roadmap-col-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

html[data-theme='light'] .ws-roadmap-col-head h4 {
  color: #7c5610;
}

.ws-roadmap-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
}

.ws-roadmap-col-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ws-roadmap-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-align: start;
  width: 100%;
  transition: border-color 0.15s ease;
}

.ws-roadmap-row:hover {
  border-color: var(--gold);
}

html[data-theme='light'] .ws-roadmap-row {
  background: #ffffff;
}

.ws-roadmap-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sport-accent, var(--gold));
  flex-shrink: 0;
}

.ws-roadmap-ico svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.ws-roadmap-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ws-roadmap-info strong {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-roadmap-info small {
  font-size: 10.5px;
  color: var(--ink-muted);
}

.ws-roadmap-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ==========================================================================
   AUTHENTIC UFC DESIGN LANGUAGE (html[data-sport-branch='ufc'])
   ========================================================================== */
html[data-sport-branch='ufc'] {
  --bg: #0b0d11;
  --bg-elev: #13161d;
  --surface: #181c25;
  --surface-2: #212633;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.16);
  --era-accent: #d20a0a;
  --era-soft: rgba(210, 10, 10, 0.22);
  --border-strong: rgba(212, 175, 55, 0.42);
}

html[data-sport-branch='ufc'][data-theme='dark'] body {
  background: radial-gradient(circle at 50% -8%, rgba(210, 10, 10, 0.22) 0%, #0b0d11 54%);
}

html[data-sport-branch='ufc'][data-theme='light'] body {
  background: radial-gradient(circle at 50% -8%, rgba(210, 10, 10, 0.08) 0%, #f4f2ec 55%);
}

html[data-sport-branch='ufc'] .site-header {
  border-bottom-color: rgba(210, 10, 10, 0.36);
}

html[data-sport-branch='ufc'] .main-nav[data-nav-branch='ufc'] a.is-active {
  background: #d20a0a;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(210, 10, 10, 0.34);
}

.is-ufc-dot {
  background: #d20a0a !important;
  box-shadow: 0 0 10px #d20a0a !important;
}

.ufc-btn-crimson {
  background: linear-gradient(135deg, #d20a0a, #8d0b0b);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 26px rgba(210, 10, 10, 0.28);
}

.ufc-btn-crimson:hover {
  background: linear-gradient(135deg, #e11d1d, #9f0e0e);
}

.ufc-slide {
  padding: 28px 0 88px;
}

.ufc-heritage-ribbon {
  border-color: rgba(210, 10, 10, 0.44);
  background: linear-gradient(135deg, rgba(24, 12, 16, 0.96), rgba(11, 13, 18, 0.98));
}

html[data-theme='light'] .ufc-heritage-ribbon {
  background: linear-gradient(135deg, #fcf9f4, #f2ece4);
  border-color: rgba(185, 28, 28, 0.34);
}

.heritage-trophy-img.is-ufc-belt {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.48);
}

.ufc-octagon-seal-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #d4af37;
  background: linear-gradient(145deg, #2a0a0d, #0f1116);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  flex-shrink: 0;
}

.is-ufc-rule {
  background: linear-gradient(90deg, transparent, rgba(210, 10, 10, 0.65), rgba(212, 175, 55, 0.7), transparent) !important;
}

.ufc-eyebrow,
.ufc-subhead-tag {
  background: rgba(210, 10, 10, 0.14);
  border-color: rgba(210, 10, 10, 0.42);
  color: #f87171;
}

html[data-theme='light'] .ufc-eyebrow,
html[data-theme='light'] .ufc-subhead-tag {
  background: rgba(185, 28, 28, 0.1);
  border-color: rgba(185, 28, 28, 0.32);
  color: #991b1b;
}

.ufc-cinema-band {
  margin-bottom: 18px;
}

.ufc-cinema-card {
  border-color: rgba(210, 10, 10, 0.44);
}

.ufc-cinema-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0b0e;
}

.ufc-cinema-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ufc-cinema-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.1) 25%, rgba(10, 11, 15, 0.92) 100%);
}

.ufc-cinema-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: #faf7ef;
}

.ufc-cinema-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
}

.ufc-cinema-hero-line {
  font-size: 12.5px;
  font-weight: 700;
  color: #e6c473;
  margin-top: 2px;
}

.ufc-cinema-caption p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(250, 247, 239, 0.85);
  line-height: 1.4;
}

.is-ufc-fill {
  background: linear-gradient(90deg, #d20a0a, #d4af37) !important;
}

.ufc-cinema-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.ufc-cinema-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.is-ufc-primary {
  background: #d20a0a !important;
  border-color: #d20a0a !important;
  color: #ffffff !important;
}

.is-gold-jump {
  border-color: rgba(212, 175, 55, 0.5) !important;
  color: var(--gold) !important;
}

.ufc-cinema-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.ufc-cinema-year-pill {
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(250, 247, 239, 0.84);
}

.ufc-cinema-year-pill:hover {
  border-color: #d4af37;
  color: #ffffff;
}

.ufc-cinema-year-pill.is-active {
  background: #d20a0a;
  border-color: #d20a0a;
  color: #ffffff;
}

html[data-theme='light'] .ufc-cinema-year-pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(250, 247, 239, 0.88);
}

html[data-theme='light'] .ufc-cinema-year-pill.is-active {
  background: #d20a0a;
  border-color: #d20a0a;
  color: #ffffff;
}

.ufc-hall-panel {
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

html[data-theme='light'] .ufc-hall-panel {
  background: #ffffff;
  border-color: rgba(24, 28, 36, 0.14);
}

.ufc-card-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
}

.ufc-card-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ufc-live-subcard {
  margin-top: 8px;
  padding: 12px !important;
}

.ufc-mono-rec {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
}

.ufc-vs-sep {
  font-style: normal;
  color: #d20a0a;
  margin: 0 4px;
  font-weight: 700;
}

.ufc-weight-muted {
  color: var(--ink-muted);
  font-size: 11.5px;
}

.ufc-card-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ufc-era-tile small {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Fighter Portrait Cards & Modal */
.ufc-portrait-frame {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: radial-gradient(circle at 50% 20%, rgba(210, 10, 10, 0.34), #11151d 80%);
  flex-shrink: 0;
}

.ufc-fighter-portrait,
.ufc-modal-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ufc-fighter-ident {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ufc-fighter-name {
  font-size: 15px;
  font-weight: 700;
}

.ufc-fighter-nick {
  font-size: 11.5px;
  color: var(--gold);
}

.ufc-fighter-meta-line {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.ufc-mini-tag.is-hof {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold);
}

.ufc-mini-tag.is-champ {
  background: rgba(210, 10, 10, 0.22);
  border-color: rgba(210, 10, 10, 0.5);
  color: #fca5a5;
}

html[data-theme='light'] .ufc-mini-tag.is-champ {
  color: #991b1b;
}

.ufc-modal-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ufc-modal-identity .ufc-portrait-frame {
  width: 74px;
  height: 74px;
  border-radius: 18px;
}

.ufc-modal-nick {
  color: var(--gold);
  font-size: 16px;
}

.ufc-modal-subline {
  font-size: 13px;
  color: var(--ink-muted);
}

.ufc-modal-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ufc-win-split-bar {
  display: flex;
  height: 26px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
}

.ufc-win-split-bar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
}

.ufc-win-split-bar .is-ko { background: #c81e1e; }
.ufc-win-split-bar .is-sub { background: #1d4ed8; }
.ufc-win-split-bar .is-dec { background: #a17917; }

.ufc-modal-bio {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-muted);
}

/* Divisions Belts Duo & Gear Showcase */
.ufc-belts-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ufc-belt-showcase {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  border: 1px solid rgba(212, 175, 55, 0.36);
  background: #0d0e12;
}

.ufc-belt-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ufc-belt-showcase span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.78);
  color: #e6c473;
  font-size: 11.5px;
  font-weight: 700;
}

.ufc-gear-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.ufc-ctrl-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ufc-lineage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ufc-div-champ-line {
  font-size: 12px;
  color: var(--ink-muted);
}

.ufc-div-champ-line strong {
  color: var(--gold);
}

.ufc-chronicle-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.ufc-detail-heading {
  margin: 4px 0 8px;
  font-size: 20px;
}

.ufc-detail-summary {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.ufc-facts-wrap {
  margin-top: 8px;
}

@media (min-width: 1140px) and (max-width: 1420px) {
  .header-back-world-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .header-left-group {
    gap: 6px;
  }
  .nav-branch-btn {
    padding: 5px 9px;
    font-size: 11.5px;
  }
}

@media (max-width: 1139px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }
}

@media (max-width: 980px) {
  .ws-live-columns,
  .ws-roadmap-columns,
  .ufc-belts-duo,
  .ufc-gear-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ufc-chronicle-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
  }
  .header-badge {
    max-width: none !important;
    font-size: 10.5px;
    padding: 4px 8px;
    overflow: visible;
  }
  .ws-live-columns,
  .ws-roadmap-columns,
  .ufc-belts-duo,
  .ufc-gear-gallery-grid {
    grid-template-columns: 1fr;
  }
  .ws-live-col-halls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ufc-hall-panel {
    padding: 14px;
  }
  .ufc-modal-head {
    flex-direction: column;
  }
}

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

.ufc-mini-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

html[data-theme='light'] .ufc-mini-tag {
  background: rgba(24, 34, 24, 0.05);
  border-color: rgba(24, 34, 24, 0.14);
}

.ufc-octagon-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ufc-canvas-stage {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(220, 38, 38, 0.42);
  background: #0a0c10;
}

#ufc-octagon-canvas {
  width: 100%;
  height: 390px;
  display: block;
}

.ufc-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(16, 20, 26, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ufc-ctrl-btn,
.ufc-pill-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f5ec;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ufc-pill-btn.is-active,
.ufc-ctrl-btn.is-primary {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

html[data-theme='light'] .ufc-ctrl-btn:not(.is-primary):not(.is-bball-primary),
html[data-theme='light'] .ufc-pill-btn:not(.is-active) {
  background: rgba(24, 34, 24, 0.05);
  border-color: rgba(24, 34, 24, 0.16);
  color: #1c241c;
}

html[data-theme='light'] .ufc-pill-btn:not(.is-active):hover,
html[data-theme='light'] .ufc-ctrl-btn:not(.is-primary):not(.is-bball-primary):hover {
  background: rgba(24, 34, 24, 0.09);
  border-color: rgba(24, 34, 24, 0.28);
}

html[data-theme='light'] .ufc-stage-toolbar .ufc-ctrl-btn:not(.is-primary):not(.is-bball-primary),
html[data-theme='light'] .ufc-stage-toolbar .ufc-pill-btn:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f4f5ec;
}

.ufc-finishes-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ufc-caption-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.45;
}

html[data-theme='light'] .ufc-caption-box {
  background: #ffffff;
  border-color: rgba(24, 34, 24, 0.14);
}

.ufc-atlas-media-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ufc-atlas-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

/* UFC Fighter Dossier Modal */
.ufc-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ufc-modal[hidden] {
  display: none !important;
}

.ufc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 14, 0.72);
  backdrop-filter: blur(8px);
}

.ufc-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 88dvh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(220, 38, 38, 0.42);
  background: #10151b;
  color: #f4f5ec;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

html[data-theme='light'] .ufc-modal-dialog {
  background: #fffdf8;
  color: #1a241b;
  border-color: rgba(185, 28, 28, 0.34);
}

.ufc-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

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

.ufc-stat-cell {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

html[data-theme='light'] .ufc-stat-cell {
  background: #f7f4ea;
  border-color: rgba(24, 34, 24, 0.14);
}

/* ==========================================================================
   V33: DESIGNER PORTAL SYMMETRY, ZERO CAPSULE OVERFLOW, RTL FIX & BASKETBALL WING
   ========================================================================== */

/* 1. Zero-Overflow Universal Capsule & Control Guard (Law #18) */
.btn,
.ws-eyebrow,
.ws-kpi-card,
.ws-live-col,
.ws-roadmap-col,
.ws-roadmap-row,
.ws-mission-card,
.ws-col-hall-btn,
.ufc-pill-btn,
.ufc-hero-pill,
.bball-pill-btn,
.hero-kpi-pill,
.hero-curated-card,
.subhead-tag,
.badge,
.header-badge,
.main-nav a,
.stepper-status,
.nav-ufc-pill,
.nav-bball-pill,
.nav-tennis-pill,
.nav-f1-pill,
.nav-hockey-pill,
.tennis-pill-btn,
.f1-pill-btn,
.hockey-pill-btn {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.ws-eyebrow,
.subhead-tag,
.ws-live-col-badge,
.ws-live-col-span,
.ws-roadmap-tag,
.hero-curated-desc {
  overflow-wrap: anywhere;
}

/* 2. Arabic RTL Cursive Ligature & Spacing Fix (Zero letter-spacing stretching) */
html[dir='rtl'] .ws-eyebrow,
html[dir='rtl'] .ws-eyebrow *,
html[dir='rtl'] .eyebrow,
html[dir='rtl'] .eyebrow *,
html[dir='rtl'] .subhead-tag,
html[dir='rtl'] .badge,
html[dir='rtl'] .header-badge,
html[dir='rtl'] .btn,
html[dir='rtl'] .ws-mission-num,
html[dir='rtl'] .ws-showcase-kicker,
html[dir='rtl'] .hero-curated-eyebrow,
html[dir='rtl'] .nav-ufc-pill,
html[dir='rtl'] .nav-bball-pill,
html[dir='rtl'] .nav-tennis-pill,
html[dir='rtl'] .nav-f1-pill,
html[dir='rtl'] .nav-hockey-pill,
html[dir='rtl'] .tennis-eyebrow,
html[dir='rtl'] .tennis-subhead-tag,
html[dir='rtl'] .f1-eyebrow,
html[dir='rtl'] .f1-subhead-tag,
html[dir='rtl'] .hockey-eyebrow,
html[dir='rtl'] .hockey-subhead-tag,
html[dir='rtl'] [class*='-pill'],
html[dir='rtl'] [class*='-tag'] {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  font-family: var(--font-sans) !important;
}

/* 3. Symmetrical Hero CTA Grids (3x2 on World 6 CTAs, 2x2 on Wings) & Showcase Alignment */
.ufc-hero-actions,
.bball-hero-actions,
.tennis-hero-actions,
.f1-hero-actions,
.hockey-hero-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  max-width: 560px;
}

.ws-hero-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  max-width: 660px;
}

.ws-hero-actions .btn,
.ufc-hero-actions .btn,
.bball-hero-actions .btn,
.tennis-hero-actions .btn,
.f1-hero-actions .btn,
.hockey-hero-actions .btn {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.ws-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex-shrink: 1;
  max-width: 100%;
}

.ws-showcase-actions .btn,
.ws-detail-actions .btn,
.ufc-card-cta-row .btn,
.hero-actions .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

/* 4. Designer Homepage 4-Pillar Mission Band + 3-Col LIVE Wings + 4-Col Shelves */
.ws-mission-band {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(230, 196, 115, 0.24);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-mission-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ws-mission-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  letter-spacing: -0.01em;
}

.ws-mission-head p {
  margin: 0;
  max-width: 64ch;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-muted);
}

.ws-mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.ws-mission-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(230, 196, 115, 0.22);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ws-mission-card:hover {
  border-color: rgba(230, 196, 115, 0.48);
  transform: translateY(-2px);
}

html[data-theme='light'] .ws-mission-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(24, 34, 24, 0.14);
}

.ws-mission-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

html[data-theme='light'] .ws-mission-num {
  color: #8c6312;
}

.ws-mission-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.ws-mission-card p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.ws-live-columns {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px;
  align-items: stretch;
}

.ws-live-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ws-live-col-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
}

.ws-live-col-desc {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ws-live-col-halls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.ws-col-hall-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-roadmap-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px;
  align-items: stretch;
}

.ws-roadmap-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 5. UFC, Basketball & Tennis Cinema Overview Polish */
.ufc-cinema-card .intro-trailer-head,
.bball-cinema-card .intro-trailer-head,
.tennis-cinema-card .intro-trailer-head {
  flex-wrap: wrap;
  gap: 6px 10px;
}

.ufc-cinema-card .intro-trailer-title-wrap,
.bball-cinema-card .intro-trailer-title-wrap,
.tennis-cinema-card .intro-trailer-title-wrap {
  min-width: 0;
  flex: 1 1 210px;
}

.ufc-cinema-card .intro-trailer-badges,
.bball-cinema-card .intro-trailer-badges,
.tennis-cinema-card .intro-trailer-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.hero-curated-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 6. Wing #3: Basketball Hardwood & Championship Gold Theme */
.nav-bball-pill {
  border: 1px solid rgba(217, 119, 6, 0.38);
  background: rgba(217, 119, 6, 0.14);
  color: #fcd34d !important;
  font-weight: 700 !important;
}

.nav-bball-pill:hover,
.nav-bball-pill.is-active {
  background: rgba(180, 83, 9, 0.28) !important;
  border-color: rgba(245, 158, 11, 0.78) !important;
  color: #ffffff !important;
}

html[data-theme='light'] .nav-bball-pill {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(180, 83, 9, 0.35);
  color: #9a3412 !important;
}

html[data-theme='light'] .nav-bball-pill.is-active {
  background: #b45309 !important;
  border-color: #b45309 !important;
  color: #ffffff !important;
}

.bball-btn-amber,
.bball-btn-hardwood {
  background: linear-gradient(135deg, #c2410c, #d97706);
  color: #fffaf0 !important;
  border: 1px solid rgba(251, 191, 36, 0.52);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.28);
}

.bball-btn-amber:hover,
.bball-btn-hardwood:hover {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  border-color: #fcd34d;
  transform: translateY(-1px);
}

.live-dot.is-bball-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
}

html[data-sport-branch='basketball'] #header-back-world-btn {
  display: inline-flex !important;
}

html[data-sport-branch='basketball'] .main-nav[data-nav-branch='basketball'] {
  display: flex !important;
}

html[data-sport-branch='basketball'] .header-badge[data-badge-branch='basketball'] {
  display: inline-flex !important;
}

html[data-sport-branch='basketball'] .footer-desc-branch[data-footer-branch='basketball'] {
  display: block !important;
}

html[data-sport-branch='basketball'] .footer-links-group[data-footer-branch='basketball'] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-sport-branch='basketball'] {
  --bg: #120d08;
  --bg-elev: #1b130b;
  --surface: #23180e;
  --gold: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.16);
  --border-strong: rgba(245, 158, 11, 0.36);
}

html[data-sport-branch='basketball'][data-theme='dark'] body {
  background: radial-gradient(circle at top center, rgba(217, 119, 6, 0.14), transparent 56%), #110c07;
}

html[data-sport-branch='basketball'][data-theme='light'] body {
  background: linear-gradient(180deg, #fcf6eb 0%, #f5ebd8 100%);
}

html[data-sport-branch='basketball'] .site-header {
  border-bottom-color: rgba(245, 158, 11, 0.26);
}

html[data-sport-branch='basketball'] .main-nav[data-nav-branch='basketball'] a.is-active {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fffaf0;
  border-color: rgba(251, 191, 36, 0.65);
}

.bball-cinema-band {
  border-color: rgba(245, 158, 11, 0.32) !important;
  background: linear-gradient(135deg, rgba(35, 22, 11, 0.96), rgba(18, 12, 7, 0.98)) !important;
}

html[data-theme='light'] .bball-cinema-band {
  background: linear-gradient(135deg, #fffaf0, #f5e6cb) !important;
  border-color: rgba(180, 83, 9, 0.28) !important;
}

.bball-era-pill {
  background: rgba(217, 119, 6, 0.22) !important;
  border-color: rgba(245, 158, 11, 0.48) !important;
  color: #fcd34d !important;
}

html[data-theme='light'] .bball-era-pill {
  background: rgba(180, 83, 9, 0.12) !important;
  color: #9a3412 !important;
}

.intro-trailer-progress-fill.is-bball-fill {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.trailer-ctrl-btn.is-bball-primary {
  background: #b45309;
  border-color: #d97706;
  color: #fff;
}

#bball-court-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
  background: #140d07;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.bball-modal .ufc-modal-dialog {
  border-color: rgba(245, 158, 11, 0.48);
}

html[data-theme='light'] .bball-modal .ufc-modal-dialog {
  border-color: rgba(180, 83, 9, 0.36);
}

.bball-jersey-medallion {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fffdf8;
  border: 1px solid rgba(251, 191, 36, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.bball-jersey-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.bball-jersey-init {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.92;
  line-height: 1.1;
}

.bball-eyebrow,
.bball-subhead-tag {
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.38) !important;
  background: rgba(217, 119, 6, 0.14) !important;
}

html[data-theme='light'] .bball-eyebrow,
html[data-theme='light'] .bball-subhead-tag {
  color: #9a3412 !important;
  border-color: rgba(180, 83, 9, 0.32) !important;
  background: rgba(217, 119, 6, 0.1) !important;
}

.bball-hall-panel .ws-filter-btn.is-active,
.bball-hall-panel .ws-chip-btn.is-active,
.bball-hall-panel .ufc-pill-btn.is-active,
.bball-hall-panel .ufc-ctrl-btn.is-primary,
.bball-slide .ufc-pill-btn.is-active,
.bball-slide .ufc-ctrl-btn.is-primary,
.bball-cinema-card .ufc-cinema-year-pill.is-active {
  background: linear-gradient(135deg, #c2410c, #d97706) !important;
  border-color: #f59e0b !important;
  color: #fffaf0 !important;
}

.ws-live-col.is-basketball {
  background: linear-gradient(160deg, rgba(28, 18, 9, 0.96), rgba(14, 10, 6, 0.98));
  border-color: rgba(217, 119, 6, 0.52);
}

html[data-theme='light'] .ws-live-col.is-basketball {
  background: linear-gradient(160deg, #fffaf0, #ffffff);
  border-color: rgba(180, 83, 9, 0.34);
}

.ws-live-col.is-basketball .ws-live-col-badge {
  background: #d97706 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.ws-live-col.is-basketball .ws-live-col-cta {
  background: linear-gradient(135deg, #c2410c, #d97706);
}

html[data-theme='light'] .ws-live-col.is-basketball .ws-col-hall-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #1c241c;
  border-color: rgba(180, 83, 9, 0.22);
}

/* 7. Wing #4: Tennis Wimbledon Perennial Green & Champagne Gold Theme (v2026112534) */
@media (max-width: 1320px) and (min-width: 641px) {
  .site-header .main-nav[data-nav-branch='world'] {
    gap: 2px;
    flex-wrap: nowrap;
  }
  .site-header .main-nav[data-nav-branch='world'] a,
  .site-header .main-nav[data-nav-branch='world'] .nav-branch-btn {
    padding: 4px 6px;
    font-size: 10.5px;
    letter-spacing: 0.01em;
  }
  .site-header .header-badge[data-badge-branch='world'] {
    font-size: 10px;
    padding: 3px 6px;
  }
  .site-header .brand-text small {
    font-size: 9.5px;
  }
}

.nav-tennis-pill {
  border: 1px solid rgba(22, 163, 74, 0.38);
  background: rgba(22, 163, 74, 0.14);
  color: #86efac !important;
  font-weight: 700 !important;
}

.nav-tennis-pill:hover,
.nav-tennis-pill.is-active {
  background: rgba(21, 128, 61, 0.3) !important;
  border-color: rgba(74, 222, 128, 0.78) !important;
  color: #ffffff !important;
}

html[data-theme='light'] .nav-tennis-pill {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(21, 128, 61, 0.34);
  color: #166534 !important;
}

html[data-theme='light'] .nav-tennis-pill.is-active {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

.tennis-btn-lawn {
  background: linear-gradient(135deg, #166534, #15803d);
  color: #f7fee7 !important;
  border: 1px solid rgba(134, 239, 172, 0.45);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(21, 128, 61, 0.28);
}

.tennis-btn-lawn:hover {
  background: linear-gradient(135deg, #15803d, #22c55e);
  border-color: #bbf7d0;
  transform: translateY(-1px);
}

.live-dot.is-tennis-dot {
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.24);
}

html[data-sport-branch='tennis'] #header-back-world-btn {
  display: inline-flex !important;
}

html[data-sport-branch='tennis'] .main-nav[data-nav-branch='tennis'] {
  display: flex !important;
}

html[data-sport-branch='tennis'] .header-badge[data-badge-branch='tennis'] {
  display: inline-flex !important;
}

html[data-sport-branch='tennis'] .footer-desc-branch[data-footer-branch='tennis'] {
  display: block !important;
}

html[data-sport-branch='tennis'] .footer-links-group[data-footer-branch='tennis'] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-sport-branch='tennis'] {
  --bg: #08120c;
  --bg-elev: #0e1d14;
  --surface: #13281b;
  --gold: #eab308;
  --gold-soft: rgba(234, 179, 8, 0.16);
  --border-strong: rgba(134, 239, 172, 0.3);
}

html[data-sport-branch='tennis'][data-theme='dark'] body {
  background: radial-gradient(circle at top center, rgba(22, 163, 74, 0.16), transparent 56%), #07110b;
}

html[data-sport-branch='tennis'][data-theme='light'] body {
  background: linear-gradient(180deg, #f6f9f4 0%, #ebf3e8 100%);
}

html[data-sport-branch='tennis'] .site-header {
  border-bottom-color: rgba(74, 222, 128, 0.24);
}

html[data-sport-branch='tennis'] .main-nav[data-nav-branch='tennis'] a.is-active {
  background: linear-gradient(135deg, #166534, #15803d);
  color: #f7fee7;
  border-color: rgba(134, 239, 172, 0.6);
}

.tennis-cinema-band {
  border-color: rgba(74, 222, 128, 0.28) !important;
  background: linear-gradient(135deg, rgba(13, 30, 19, 0.96), rgba(8, 17, 11, 0.98)) !important;
}

html[data-theme='light'] .tennis-cinema-band {
  background: linear-gradient(135deg, #f8fbf6, #e6f2e2) !important;
  border-color: rgba(21, 128, 61, 0.26) !important;
}

.tennis-era-pill {
  background: rgba(22, 163, 74, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  color: #86efac !important;
}

html[data-theme='light'] .tennis-era-pill {
  background: rgba(21, 128, 61, 0.1) !important;
  color: #166534 !important;
}

.intro-trailer-progress-fill.is-tennis-fill {
  background: linear-gradient(90deg, #16a34a, #eab308);
}

.trailer-ctrl-btn.is-tennis-primary {
  background: #166534;
  border-color: #22c55e;
  color: #fff;
}

#tennis-court-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
  background: #0c2214;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.tennis-modal .ufc-modal-dialog {
  border-color: rgba(74, 222, 128, 0.44);
}

html[data-theme='light'] .tennis-modal .ufc-modal-dialog {
  border-color: rgba(21, 128, 61, 0.34);
}

.tennis-seal-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #166534, #eab308);
  color: #fffef6;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.32);
}

.tennis-medallion {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fffdf8;
  border: 1px solid rgba(250, 204, 21, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.tennis-slams-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.tennis-monogram {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.92;
  line-height: 1.1;
}

.tennis-eyebrow,
.tennis-subhead-tag {
  color: #86efac !important;
  border-color: rgba(74, 222, 128, 0.35) !important;
  background: rgba(22, 163, 74, 0.14) !important;
}

html[data-theme='light'] .tennis-eyebrow,
html[data-theme='light'] .tennis-subhead-tag {
  color: #166534 !important;
  border-color: rgba(21, 128, 61, 0.3) !important;
  background: rgba(22, 163, 74, 0.1) !important;
}

.tennis-hall-panel .ws-filter-btn.is-active,
.tennis-hall-panel .ws-chip-btn.is-active,
.tennis-hall-panel .ufc-pill-btn.is-active,
.tennis-hall-panel .ufc-ctrl-btn.is-primary,
.tennis-slide .ufc-pill-btn.is-active,
.tennis-slide .ufc-ctrl-btn.is-primary,
.tennis-cinema-card .ufc-cinema-year-pill.is-active {
  background: linear-gradient(135deg, #166534, #15803d) !important;
  border-color: #22c55e !important;
  color: #f7fee7 !important;
}

.tennis-div-card.is-active,
.tennis-legend-card:hover {
  border-color: rgba(34, 197, 94, 0.55) !important;
}

.ws-live-col.is-tennis {
  background: linear-gradient(160deg, rgba(11, 27, 17, 0.96), rgba(7, 16, 10, 0.98));
  border-color: rgba(34, 197, 94, 0.44);
}

html[data-theme='light'] .ws-live-col.is-tennis {
  background: linear-gradient(160deg, #f7fbf5, #ffffff);
  border-color: rgba(21, 128, 61, 0.34);
}

.ws-live-col.is-tennis .ws-live-col-badge {
  background: #15803d !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.ws-live-col.is-tennis .ws-live-col-cta {
  background: linear-gradient(135deg, #166534, #15803d);
}

html[data-theme='light'] .ws-live-col.is-tennis .ws-col-hall-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #162419;
  border-color: rgba(21, 128, 61, 0.22);
}

@media (max-width: 1120px) and (min-width: 641px) {
  .ws-live-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .ws-live-columns > .ws-live-col {
    grid-column: auto !important;
  }
  .ws-mission-grid,
  .ws-roadmap-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .ws-hero-grid,
  .ws-wings-pair,
  .ws-detail-card,
  .ufc-hero-grid,
  .ufc-chronicle-detail,
  .ufc-overview-grid,
  .ufc-atlas-grid,
  .ufc-div-grid,
  .ufc-fighters-grid {
    grid-template-columns: 1fr;
  }
  .ws-kpi-grid,
  .ufc-curated-grid,
  .ufc-eras-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ufc-atlas-media-row,
  .ufc-modal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* Sleek 2-Row Compact Mobile Header (<= 85px tall) */
  html[data-sport-branch] .site-header .header-badge[data-badge-branch],
  .site-header .header-badge,
  .site-header .brand-text small {
    display: none !important;
  }
  .site-header .header-inner {
    flex-wrap: wrap !important;
    gap: 5px 6px;
    padding: 5px 0;
    min-height: 0;
  }
  .site-header .header-left-group {
    order: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-header .brand-mark {
    gap: 5px;
    min-width: 0;
    flex: 0 1 auto;
  }
  .site-header .brand-emblem-wrap {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  .site-header .brand-text strong {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.02em;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html:not([data-sport-branch='world']) .site-header .brand-text {
    display: none;
  }
  .site-header .header-back-world-btn {
    padding: 3px 7px;
    font-size: 10.5px;
    line-height: 1.15;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .site-header .header-controls {
    order: 2;
    flex: 0 0 auto;
    width: auto !important;
    flex-wrap: nowrap !important;
    margin-left: auto;
    justify-content: flex-end !important;
    gap: 3px !important;
  }
  html[dir='rtl'] .site-header .header-controls {
    margin-left: 0;
    margin-right: auto;
  }
  .site-header .header-live-btn {
    min-height: 26px;
    height: 26px;
    padding: 0 6px;
    font-size: 10px;
    gap: 3px;
  }
  .site-header .theme-toggle-btn,
  .site-header #header-tickets-btn,
  .site-header #header-sports-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    padding: 0;
  }
  .site-header .header-sports-count {
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    font-size: 8.5px;
    padding: 0 3px;
  }
  .site-header .lang-toggle-btn {
    height: 26px;
    min-height: 26px;
    padding: 0 5px;
    font-size: 10px;
    gap: 2px;
  }
  .site-header .main-nav {
    order: 3;
    flex: 1 0 100%;
    padding: 5px 0 1px;
    gap: 4px;
  }
  .site-header .main-nav a,
  .site-header .main-nav .nav-branch-btn {
    padding: 4px 8px;
    font-size: 11.5px;
    line-height: 1.2;
  }

  .ws-hero-banner,
  .ws-chronicle-box,
  .ufc-hero-banner {
    padding: 14px;
  }
  .ws-mission-grid,
  .ws-live-columns,
  .ws-roadmap-columns {
    grid-template-columns: 1fr !important;
  }
  .ws-live-columns > .ws-live-col {
    grid-column: auto !important;
  }
  .ws-kpi-grid,
  .ws-hero-actions,
  .ufc-hero-actions,
  .bball-hero-actions,
  .tennis-hero-actions,
  .f1-hero-actions,
  .hockey-hero-actions,
  .ws-showcase-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-cinema-band > *,
  .hero-left-col,
  .hero-copy,
  .hero-curated-deck,
  .hero-spotlight-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .eyebrow,
  .hockey-eyebrow,
  .f1-eyebrow,
  .tennis-eyebrow,
  .ufc-eyebrow {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }
  .hero-actions .btn,
  .hockey-hero-actions .btn,
  .f1-hero-actions .btn,
  .tennis-hero-actions .btn,
  .bball-hero-actions .btn,
  .ufc-hero-actions .btn {
    padding: 8px 10px;
    font-size: 12px;
    white-space: normal;
  }
  .ws-showcase-head {
    flex-direction: column;
    align-items: stretch;
  }
  .ws-showcase-actions {
    display: grid !important;
    width: 100%;
    gap: 8px;
  }
  .ws-showcase-actions .btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .ws-detail-actions,
  .ufc-card-cta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .ws-detail-actions .btn,
  .ufc-card-cta-row .btn {
    width: 100%;
  }
  .ufc-curated-grid,
  .ufc-eras-strip,
  .ufc-atlas-media-row,
  .ufc-modal-stats {
    grid-template-columns: 1fr;
  }
  .ufc-search-input {
    width: 100%;
    min-width: 0;
  }
  #ufc-octagon-canvas {
    height: 280px;
  }
  .ufc-modal-head {
    flex-direction: column;
  }
}

/* ============================================================================
   MOBILE GPU & iOS SAFARI COMPOSITOR SAFETY (v2026112532)
   Eliminate sticky/scrolling offscreen backdrop-filter blurs and heavy layers
   while keeping crisp translucent aesthetics and smooth native touch scrolling.
   ============================================================================ */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: auto;
  }
  body {
    -webkit-overflow-scrolling: touch;
  }
  .site-header,
  .deck-stepper-bar,
  .ws-hero-banner,
  .ws-chronicle-box,
  .ufc-hero-banner,
  .ufc-hall-panel,
  .studio-gear-popover,
  .lang-menu,
  .modal-backdrop,
  .ufc-modal-backdrop,
  .la-backdrop,
  .th-backdrop,
  .sp-backdrop,
  .era-pill,
  .stage-float-bar,
  .kit-lightbox-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .site-header {
    background: rgba(8, 13, 11, 0.97);
  }
  [data-theme="light"] .site-header {
    background: rgba(248, 245, 238, 0.98);
  }
  [data-sport-branch="ufc"] .site-header {
    background: rgba(11, 12, 16, 0.97);
  }
  [data-theme="light"][data-sport-branch="ufc"] .site-header {
    background: rgba(247, 244, 238, 0.98);
  }
  [data-sport-branch="basketball"] .site-header {
    background: rgba(22, 15, 9, 0.97);
  }
  [data-theme="light"][data-sport-branch="basketball"] .site-header {
    background: rgba(251, 244, 231, 0.98);
  }
  [data-sport-branch="tennis"] .site-header {
    background: rgba(9, 20, 13, 0.97);
  }
  [data-theme="light"][data-sport-branch="tennis"] .site-header {
    background: rgba(244, 249, 242, 0.98);
  }
  .deck-stepper-bar {
    background: rgba(9, 14, 11, 0.97);
  }
  [data-theme="light"] .deck-stepper-bar {
    background: rgba(248, 245, 238, 0.98);
  }
  [data-sport-branch="ufc"] .deck-stepper-bar {
    background: rgba(11, 12, 16, 0.97);
  }
  [data-sport-branch="basketball"] .deck-stepper-bar {
    background: rgba(22, 15, 9, 0.97);
  }
  [data-sport-branch="tennis"] .deck-stepper-bar {
    background: rgba(9, 20, 13, 0.97);
  }
  [data-sport-branch="motorsport"] .site-header {
    background: rgba(11, 13, 18, 0.97);
  }
  [data-theme="light"][data-sport-branch="motorsport"] .site-header {
    background: rgba(248, 245, 244, 0.98);
  }
  [data-sport-branch="motorsport"] .deck-stepper-bar {
    background: rgba(11, 13, 18, 0.97);
  }
  [data-theme="light"][data-sport-branch="motorsport"] .deck-stepper-bar {
    background: rgba(248, 245, 244, 0.98);
  }
  [data-sport-branch="hockey"] .site-header {
    background: rgba(7, 17, 28, 0.97);
  }
  [data-theme="light"][data-sport-branch="hockey"] .site-header {
    background: rgba(241, 247, 253, 0.98);
  }
  [data-sport-branch="hockey"] .deck-stepper-bar {
    background: rgba(7, 17, 28, 0.97);
  }
  [data-theme="light"][data-sport-branch="hockey"] .deck-stepper-bar {
    background: rgba(241, 247, 253, 0.98);
  }
}

/* 8. Wing #5: Formula 1 Carbon & Scarlet Theme (v2026112535) */
.nav-f1-pill {
  border: 1px solid rgba(225, 29, 72, 0.42);
  background: rgba(225, 29, 72, 0.14);
  color: #fda4af !important;
  font-weight: 700 !important;
}

.nav-f1-pill:hover,
.nav-f1-pill.is-active {
  background: rgba(190, 18, 60, 0.34) !important;
  border-color: rgba(251, 113, 133, 0.78) !important;
  color: #ffffff !important;
}

html[data-theme='light'] .nav-f1-pill {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(190, 18, 60, 0.32);
  color: #be123c !important;
}

html[data-theme='light'] .nav-f1-pill.is-active {
  background: #be123c !important;
  border-color: #be123c !important;
  color: #ffffff !important;
}

.f1-btn-crimson {
  background: linear-gradient(135deg, #be123c, #e11d48);
  color: #fff5f6 !important;
  border: 1px solid rgba(253, 164, 175, 0.42);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.28);
}

.f1-btn-crimson:hover {
  background: linear-gradient(135deg, #9f1239, #f43f5e);
  border-color: #fecdd3;
  transform: translateY(-1px);
}

.live-dot.is-f1-dot {
  background: #fb7185;
  box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.24);
}

html[data-sport-branch='motorsport'] #header-back-world-btn {
  display: inline-flex !important;
}

html[data-sport-branch='motorsport'] .main-nav[data-nav-branch='motorsport'] {
  display: flex !important;
}

html[data-sport-branch='motorsport'] .header-badge[data-badge-branch='motorsport'] {
  display: inline-flex !important;
}

html[data-sport-branch='motorsport'] .footer-desc-branch[data-footer-branch='motorsport'] {
  display: block !important;
}

html[data-sport-branch='motorsport'] .footer-links-group[data-footer-branch='motorsport'] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-sport-branch='motorsport'] {
  --bg: #0b0d12;
  --bg-elev: #12161f;
  --surface: #171c26;
  --gold: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.16);
  --border-strong: rgba(251, 113, 133, 0.28);
}

html[data-sport-branch='motorsport'][data-theme='dark'] body {
  background: radial-gradient(circle at top center, rgba(225, 29, 72, 0.15), transparent 56%), #090b10;
}

html[data-sport-branch='motorsport'][data-theme='light'] body {
  background: linear-gradient(180deg, #faf7f7 0%, #f1eaea 100%);
}

html[data-sport-branch='motorsport'] .site-header {
  border-bottom-color: rgba(251, 113, 133, 0.24);
}

html[data-sport-branch='motorsport'] .main-nav[data-nav-branch='motorsport'] a.is-active {
  background: linear-gradient(135deg, #9f1239, #e11d48);
  color: #fff5f6;
  border-color: rgba(253, 164, 175, 0.58);
}

.f1-cinema-band {
  border-color: rgba(251, 113, 133, 0.28) !important;
  background: linear-gradient(135deg, rgba(24, 15, 20, 0.96), rgba(10, 12, 17, 0.98)) !important;
}

html[data-theme='light'] .f1-cinema-band {
  background: linear-gradient(135deg, #fffafb, #f8ecee) !important;
  border-color: rgba(190, 18, 60, 0.24) !important;
}

.f1-progress-fill {
  background: linear-gradient(90deg, #e11d48, #f59e0b) !important;
}

.intro-trailer-progress-fill.is-f1-fill {
  background: linear-gradient(90deg, #e11d48, #f59e0b);
}

.trailer-ctrl-btn.is-f1-primary {
  background: #be123c;
  border-color: #fb7185;
  color: #fff;
}

.f1-era-pill {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: rgba(251, 113, 133, 0.48) !important;
  color: #fda4af !important;
}

html[data-theme='light'] .f1-era-pill {
  background: rgba(190, 18, 60, 0.1) !important;
  color: #be123c !important;
}

.f1-stage-badge {
  background: rgba(190, 18, 60, 0.92) !important;
  color: #fff5f6 !important;
}

#f1-circuit-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
}

.f1-seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #be123c, #f59e0b);
  color: #fffef6;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.34);
}

.f1-medallion {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fffdf8;
  border: 1px solid rgba(251, 113, 133, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 14px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.f1-titles-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.f1-monogram {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.92;
  line-height: 1.1;
}

.f1-eyebrow,
.f1-subhead-tag {
  color: #fda4af !important;
  border-color: rgba(251, 113, 133, 0.35) !important;
  background: rgba(225, 29, 72, 0.14) !important;
}

html[data-theme='light'] .f1-eyebrow,
html[data-theme='light'] .f1-subhead-tag {
  color: #be123c !important;
  border-color: rgba(190, 18, 60, 0.28) !important;
  background: rgba(225, 29, 72, 0.08) !important;
}

.f1-hall-panel .ws-filter-btn.is-active,
.f1-hall-panel .ws-chip-btn.is-active,
.f1-hall-panel .ufc-pill-btn.is-active,
.f1-hall-panel .ufc-ctrl-btn.is-primary,
.f1-slide .ufc-pill-btn.is-active,
.f1-slide .ufc-ctrl-btn.is-primary,
.f1-hero-spotlight .ufc-cinema-year-pill.is-active {
  background: linear-gradient(135deg, #be123c, #e11d48) !important;
  border-color: #fb7185 !important;
  color: #fff5f6 !important;
}

.f1-driver-card:hover,
.f1-circuit-pill.is-active {
  border-color: rgba(251, 113, 133, 0.56) !important;
}

.ws-live-col.is-motorsport {
  background: linear-gradient(160deg, rgba(24, 14, 20, 0.96), rgba(10, 12, 18, 0.98));
  border-color: rgba(225, 29, 72, 0.46);
}

html[data-theme='light'] .ws-live-col.is-motorsport {
  background: linear-gradient(160deg, #fff9fa, #ffffff);
  border-color: rgba(190, 18, 60, 0.32);
}

.ws-live-col.is-motorsport .ws-live-col-badge {
  background: #be123c !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.ws-live-col.is-motorsport .ws-live-col-cta {
  background: linear-gradient(135deg, #be123c, #e11d48);
}

html[data-theme='light'] .ws-live-col.is-motorsport .ws-col-hall-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #211519;
  border-color: rgba(190, 18, 60, 0.22);
}

/* 9. Wing #6: Ice Hockey Glacial Arena & Stanley Silver Theme (v2026112536) */
.nav-hockey-pill {
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(2, 132, 199, 0.16);
  color: #7dd3fc !important;
  font-weight: 700 !important;
}

.nav-hockey-pill:hover,
.nav-hockey-pill.is-active {
  background: rgba(2, 132, 199, 0.36) !important;
  border-color: rgba(125, 211, 252, 0.82) !important;
  color: #ffffff !important;
}

html[data-theme='light'] .nav-hockey-pill {
  background: rgba(2, 132, 199, 0.09);
  border-color: rgba(3, 105, 161, 0.34);
  color: #0369a1 !important;
}

html[data-theme='light'] .nav-hockey-pill.is-active {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
}

.hockey-btn-ice {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  color: #f8fcff !important;
  border: 1px solid rgba(186, 230, 253, 0.44);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
}

.hockey-btn-ice:hover {
  background: linear-gradient(135deg, #075985, #38bdf8);
  border-color: #e0f2fe;
  transform: translateY(-1px);
}

.live-dot.is-hockey-dot {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.24);
}

html[data-sport-branch='hockey'] #header-back-world-btn {
  display: inline-flex !important;
}

html[data-sport-branch='hockey'] .main-nav[data-nav-branch='hockey'] {
  display: flex !important;
}

html[data-sport-branch='hockey'] .header-badge[data-badge-branch='hockey'] {
  display: inline-flex !important;
}

html[data-sport-branch='hockey'] .footer-desc-branch[data-footer-branch='hockey'] {
  display: block !important;
}

html[data-sport-branch='hockey'] .footer-links-group[data-footer-branch='hockey'] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-sport-branch='hockey'] {
  --bg: #07111c;
  --bg-elev: #0e1c2c;
  --surface: #132539;
  --gold: #38bdf8;
  --gold-soft: rgba(56, 189, 248, 0.16);
  --border-strong: rgba(56, 189, 248, 0.34);
}

html[data-sport-branch='hockey'][data-theme='dark'] body {
  background: radial-gradient(circle at top center, rgba(14, 165, 233, 0.16), transparent 56%), #060f19;
}

html[data-sport-branch='hockey'][data-theme='light'] body {
  background: linear-gradient(180deg, #f3f9fd 0%, #e4eff8 100%);
}

html[data-sport-branch='hockey'] .site-header {
  border-bottom-color: rgba(56, 189, 248, 0.24);
}

html[data-sport-branch='hockey'] .main-nav[data-nav-branch='hockey'] a.is-active {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  color: #f8fcff;
  border-color: rgba(186, 230, 253, 0.58);
}

.hockey-cinema-band {
  border-color: rgba(56, 189, 248, 0.3) !important;
  background: linear-gradient(135deg, rgba(10, 24, 40, 0.96), rgba(7, 15, 25, 0.98)) !important;
}

html[data-theme='light'] .hockey-cinema-band {
  background: linear-gradient(135deg, #f8fcff, #e7f2fb) !important;
  border-color: rgba(3, 105, 161, 0.24) !important;
}

.intro-trailer-progress-fill.is-hockey-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.trailer-ctrl-btn.is-hockey-primary {
  background: #0369a1;
  border-color: #38bdf8;
  color: #fff;
}

.hockey-era-pill {
  background: rgba(14, 165, 233, 0.2) !important;
  border-color: rgba(125, 211, 252, 0.48) !important;
  color: #bae6fd !important;
}

html[data-theme='light'] .hockey-era-pill {
  background: rgba(3, 105, 161, 0.1) !important;
  color: #0369a1 !important;
}

#hockey-rink-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
}

.hockey-seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0369a1, #38bdf8);
  color: #f8fcff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.34);
}

.hockey-medallion {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #f8fcff;
  border: 1px solid rgba(186, 230, 253, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 6px 14px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.hockey-jersey-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.hockey-monogram {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.92;
  line-height: 1.1;
}

.hockey-eyebrow,
.hockey-subhead-tag {
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.36) !important;
  background: rgba(2, 132, 199, 0.16) !important;
}

html[data-theme='light'] .hockey-eyebrow,
html[data-theme='light'] .hockey-subhead-tag {
  color: #0369a1 !important;
  border-color: rgba(3, 105, 161, 0.28) !important;
  background: rgba(2, 132, 199, 0.09) !important;
}

.hockey-hall-panel .ws-filter-btn.is-active,
.hockey-hall-panel .ws-chip-btn.is-active,
.hockey-hall-panel .hockey-filter-btn.is-active,
.hockey-hall-panel .ufc-pill-btn.is-active,
.hockey-hall-panel .ufc-ctrl-btn.is-primary,
.hockey-slide .ufc-pill-btn.is-active,
.hockey-slide .ufc-ctrl-btn.is-primary {
  background: linear-gradient(135deg, #0369a1, #0ea5e9) !important;
  border-color: #38bdf8 !important;
  color: #f8fcff !important;
}

.hockey-legend-card:hover,
.hockey-league-pill.is-active {
  border-color: rgba(56, 189, 248, 0.58) !important;
}

.ws-live-col.is-hockey {
  background: linear-gradient(160deg, rgba(11, 27, 46, 0.96), rgba(7, 17, 29, 0.98));
  border-color: rgba(56, 189, 248, 0.46);
}

html[data-theme='light'] .ws-live-col.is-hockey {
  background: linear-gradient(160deg, #f5fbff, #ffffff);
  border-color: rgba(3, 105, 161, 0.34);
}

.ws-live-col.is-hockey .ws-live-col-badge {
  background: #0369a1 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.ws-live-col.is-hockey .ws-live-col-cta {
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
}

html[data-theme='light'] .ws-live-col.is-hockey .ws-col-hall-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #0e1e2e;
  border-color: rgba(3, 105, 161, 0.24);
}

/* ==========================================================================
   10. SportMyLife 2.0 · 3D Category Icon UI & All 16 LIVE Wings · v2026112540
   ========================================================================== */

/* --- 10.1 Header 3D Category Navigation Bar --- */
.header-left-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-inner {
  gap: 12px;
}

.main-nav.ws-cat-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

html[data-sport-branch='world'] .site-header .header-badge[data-badge-branch='world'],
.site-header .header-badge[data-badge-branch='world'] {
  display: none !important;
}

.site-header .wing-dyn-header-badge {
  flex-shrink: 0;
  max-width: 175px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 900px) {
  .ufc-canvas-stage canvas {
    max-height: 440px;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
}

.main-nav.ws-cat-nav::-webkit-scrollbar {
  display: none;
}

.nav-cat-btn,
.nav-all16-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 30, 24, 0.72);
  color: var(--ink, #f4f1e8);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nav-cat-btn:hover,
.nav-cat-btn.is-active,
.nav-all16-btn:hover {
  border-color: rgba(230, 196, 115, 0.65);
  background: linear-gradient(135deg, rgba(34, 104, 66, 0.42), rgba(226, 190, 108, 0.2));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.nav-cat-ico3d {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.nav-cat-cnt {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(226, 190, 108, 0.16);
  color: var(--gold, #e6c473);
  line-height: 1;
}

html[data-theme='light'] .nav-cat-btn,
html[data-theme='light'] .nav-all16-btn {
  background: rgba(255, 253, 248, 0.94);
  border-color: rgba(26, 58, 42, 0.16);
  color: #16261c;
}

html[data-theme='light'] .nav-cat-btn:hover,
html[data-theme='light'] .nav-cat-btn.is-active,
html[data-theme='light'] .nav-all16-btn:hover {
  background: linear-gradient(135deg, rgba(34, 104, 66, 0.12), rgba(212, 168, 72, 0.22));
  border-color: rgba(180, 132, 34, 0.55);
  color: #0e1c14;
}

html[data-theme='light'] .nav-cat-cnt {
  background: rgba(26, 94, 58, 0.1);
  color: #185c37;
}

/* --- 10.2 Header Category Popover (#world-category-popover) --- */
.site-header {
  position: relative;
}

#world-category-popover.ws-cat-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, calc(100vw - 24px));
  z-index: 1250;
  border-radius: 20px;
  border: 1px solid rgba(226, 190, 108, 0.42);
  background: rgba(15, 23, 18, 0.96);
  color: #f6f3ea;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 16px 18px;
}

#world-category-popover.ws-cat-popover[hidden] {
  display: none !important;
}

html[data-theme='light'] #world-category-popover.ws-cat-popover {
  background: rgba(252, 250, 244, 0.98);
  color: #16241b;
  border-color: rgba(180, 134, 38, 0.34);
  box-shadow: 0 22px 54px rgba(15, 30, 20, 0.18);
}

.ws-cat-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ws-cat-pop-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ws-cat-pop-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.ws-cat-pop-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #e6c473);
}

html[data-theme='light'] .ws-cat-pop-kicker {
  color: #966810;
}

.ws-cat-pop-title-row h3 {
  margin: 2px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.ws-cat-pop-close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.ws-cat-pop-close:hover {
  border-color: var(--gold, #e6c473);
  background: rgba(226, 190, 108, 0.2);
}

html[data-theme='light'] .ws-cat-pop-close {
  border-color: rgba(20, 40, 28, 0.18);
  background: rgba(20, 40, 28, 0.05);
}

.ws-cat-pop-def {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.48;
  color: rgba(240, 236, 224, 0.84);
}

html[data-theme='light'] .ws-cat-pop-def {
  color: #425348;
}

.ws-cat-pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.ws-cat-pop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--sport-accent, #226842);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ws-cat-pop-item:hover {
  transform: translateY(-2px);
  border-color: var(--sport-accent, #e6c473);
  background: rgba(255, 255, 255, 0.09);
}

html[data-theme='light'] .ws-cat-pop-item {
  background: #ffffff;
  border-color: rgba(20, 40, 28, 0.12);
  border-left: 3px solid var(--sport-accent, #226842);
}

html[data-theme='light'] .ws-cat-pop-item:hover {
  background: #f5faf6;
}

.ws-cat-pop-thumb {
  width: 54px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.ws-cat-pop-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.ws-cat-pop-meta strong {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-cat-pop-meta small {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  opacity: 0.76;
}

.ws-cat-pop-meta em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold, #e6c473);
}

html[data-theme='light'] .ws-cat-pop-meta em {
  color: var(--sport-accent, #1b653d);
}

/* --- 10.3 Hero 3D-Icon Category Dock (.ws-cat-dock) --- */
#world-sport-hero .ws-hero-actions.ws-cat-dock {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  max-width: 720px;
  align-items: stretch;
}

.ws-cat-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--cat-accent, #c9a227);
  background: rgba(18, 28, 22, 0.8);
  backdrop-filter: blur(10px);
  color: var(--ink, #f7f4ec);
  text-align: left;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ws-cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--cat-accent, #e6c473);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme='light'] .ws-cat-tile {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(22, 48, 34, 0.14);
  border-left: 3px solid var(--cat-accent, #226842);
  color: #142219;
  box-shadow: 0 4px 14px rgba(18, 35, 24, 0.06);
}

html[data-theme='light'] .ws-cat-tile:hover {
  box-shadow: 0 10px 22px rgba(18, 35, 24, 0.12);
}

.ws-cat-ico-wrap {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ws-cat-ico-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-cat-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-cat-head-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.ws-cat-head-line strong {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-cat-cnt {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(226, 190, 108, 0.18);
  color: var(--gold, #e6c473);
  flex-shrink: 0;
  line-height: 1;
}

html[data-theme='light'] .ws-cat-cnt {
  background: rgba(25, 90, 56, 0.11);
  color: #165934;
}

.ws-cat-tile small,
.ws-cat-sub {
  font-size: 10.5px;
  line-height: 1.28;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 10.4 Home Showcase: 5 Category Sections & All 16 LIVE Sport Wings --- */
.ws-cat-filter-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-bottom: 4px;
}

.ws-cat-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 32, 26, 0.78);
  color: var(--ink, #f4f1e8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ws-cat-filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cat-accent, #e6c473);
}

.ws-cat-filter-btn.is-active {
  background: linear-gradient(135deg, #1d643d, #2b8252);
  border-color: rgba(226, 190, 108, 0.7);
  color: #ffffff;
}

html[data-theme='light'] .ws-cat-filter-btn {
  background: #ffffff;
  border-color: rgba(22, 48, 34, 0.16);
  color: #182a20;
}

html[data-theme='light'] .ws-cat-filter-btn.is-active {
  background: linear-gradient(135deg, #1a5c38, #247849);
  color: #ffffff;
}

.ws-cat-filter-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ws-cat-section {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--cat-accent, #c9a227);
  background: rgba(15, 23, 18, 0.56);
}

html[data-theme='light'] .ws-cat-section {
  background: rgba(255, 253, 249, 0.88);
  border-color: rgba(22, 48, 34, 0.12);
  border-top: 3px solid var(--cat-accent, #226842);
}

.ws-cat-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ws-cat-section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ws-cat-section-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.ws-cat-section-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-cat-section-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #e6c473);
}

html[data-theme='light'] .ws-cat-section-eyebrow {
  color: #8f630c;
}

.ws-cat-section-title {
  margin: 2px 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.ws-cat-section-def {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.48;
  opacity: 0.84;
  max-width: 72ch;
}

.ws-live-columns.ws-cat-grid-cols {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
  gap: 14px !important;
  overflow: visible !important;
  flex-wrap: unset !important;
  padding-bottom: 0 !important;
}

.ws-live-columns.ws-cat-grid-cols > .ws-live-col {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
}

.ws-live-col-cat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sport-accent, var(--gold, #e6c473));
  margin-bottom: 2px;
}

/* --- 10.5 Accent Styling for Wings #7–#16 Cards --- */
.ws-live-col.is-olympics,
.ws-live-col.is-wrestling,
.ws-live-col.is-volleyball,
.ws-live-col.is-cricket,
.ws-live-col.is-rugby,
.ws-live-col.is-aquatics,
.ws-live-col.is-winter,
.ws-live-col.is-cycling,
.ws-live-col.is-chess,
.ws-live-col.is-esports {
  border-color: color-mix(in srgb, var(--sport-accent, #2563eb) 46%, rgba(255, 255, 255, 0.14));
}

html[data-theme='light'] .ws-live-col.is-olympics,
html[data-theme='light'] .ws-live-col.is-wrestling,
html[data-theme='light'] .ws-live-col.is-volleyball,
html[data-theme='light'] .ws-live-col.is-cricket,
html[data-theme='light'] .ws-live-col.is-rugby,
html[data-theme='light'] .ws-live-col.is-aquatics,
html[data-theme='light'] .ws-live-col.is-winter,
html[data-theme='light'] .ws-live-col.is-cycling,
html[data-theme='light'] .ws-live-col.is-chess,
html[data-theme='light'] .ws-live-col.is-esports {
  background: linear-gradient(160deg, #fafcf9, #ffffff);
  border-color: color-mix(in srgb, var(--sport-accent, #2563eb) 34%, rgba(20, 40, 28, 0.12));
}

.ws-live-col.is-olympics .ws-live-col-badge,
.ws-live-col.is-wrestling .ws-live-col-badge,
.ws-live-col.is-volleyball .ws-live-col-badge,
.ws-live-col.is-cricket .ws-live-col-badge,
.ws-live-col.is-rugby .ws-live-col-badge,
.ws-live-col.is-aquatics .ws-live-col-badge,
.ws-live-col.is-winter .ws-live-col-badge,
.ws-live-col.is-cycling .ws-live-col-badge,
.ws-live-col.is-chess .ws-live-col-badge,
.ws-live-col.is-esports .ws-live-col-badge,
.ws-live-col.is-olympics .ws-live-col-cta,
.ws-live-col.is-wrestling .ws-live-col-cta,
.ws-live-col.is-volleyball .ws-live-col-cta,
.ws-live-col.is-cricket .ws-live-col-cta,
.ws-live-col.is-rugby .ws-live-col-cta,
.ws-live-col.is-aquatics .ws-live-col-cta,
.ws-live-col.is-winter .ws-live-col-cta,
.ws-live-col.is-cycling .ws-live-col-cta,
.ws-live-col.is-chess .ws-live-col-cta,
.ws-live-col.is-esports .ws-live-col-cta {
  background: var(--sport-accent, #226842) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.sports-filter-ico3d {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- 10.6 Dynamic Wings #7–#16 Header Chrome + Panel Expand Button --- */
html[data-wing-active='true'] #header-back-world-btn {
  display: inline-flex !important;
}

html[data-wing-active='true'] .main-nav[data-nav-branch='world'] {
  display: none !important;
}

html[data-wing-active='true'] #header-wing-badge {
  display: inline-flex !important;
}

.world-wing-dyn-nav.is-wing-nav-active {
  display: flex !important;
}

.ufc-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

/* --- 10.7 Compact Desktop (<=1320px), Tablet (<=1180px), Mobile (<=820px / <=640px) & RTL --- */
@media (max-width: 1320px) {
  .nav-cat-btn,
  .nav-all16-btn {
    padding: 3px 8px 3px 4px;
    gap: 5px;
    font-size: 11px;
    height: 31px;
  }
  .nav-cat-ico3d {
    width: 19px;
    height: 19px;
  }
  .nav-cat-cnt {
    font-size: 9.5px;
    padding: 1px 4px;
  }
}

@media (max-width: 820px) {
  html[data-wing-active='true'] .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (max-width: 640px) {
  #world-sport-hero .ws-hero-actions.ws-cat-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .ws-cat-tile {
    padding: 8px 9px;
    gap: 8px;
  }
  .ws-cat-ico-wrap {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .ws-cat-head-line strong {
    font-size: 11.5px;
  }
  .ws-cat-section {
    padding: 12px;
  }
  .ws-live-columns.ws-cat-grid-cols {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

html[dir='rtl'] .nav-cat-btn,
html[dir='rtl'] .nav-all16-btn,
html[dir='rtl'] .ws-cat-tile,
html[dir='rtl'] .ws-cat-filter-btn,
html[dir='rtl'] .ws-cat-pop-kicker,
html[dir='rtl'] .ws-cat-section-eyebrow,
html[dir='rtl'] .ws-live-col-cat-tag {
  letter-spacing: 0 !important;
}

html[dir='rtl'] .ws-cat-tile,
html[dir='rtl'] .ws-cat-pop-item {
  text-align: right;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 3px solid var(--cat-accent, var(--sport-accent, #c9a227));
}

html[dir='rtl'][data-theme='light'] .ws-cat-tile,
html[dir='rtl'][data-theme='light'] .ws-cat-pop-item {
  border-left: 1px solid rgba(22, 48, 34, 0.14);
  border-right: 3px solid var(--cat-accent, var(--sport-accent, #226842));
}
