:root {
  --bg: #0a0a0c;
  --bg-elevated: #121218;
  --bg-card: #16161f;
  --border: #2a2a36;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #ef4444;
  --accent-soft: rgba(239, 68, 68, 0.15);
  --accent-2: #f97316;
  --success: #22c55e;
  --warning: #eab308;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.main { padding: 0.85rem 0 4rem; min-height: 60vh; }

.market-context {
  margin-bottom: 0.65rem;
}

.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.9rem 0.45rem 0.65rem;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.market-badge-flag {
  font-size: 1.75rem;
  line-height: 1;
}

.market-badge-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 0.95rem;
}

.nav-primary {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.search-form {
  flex: 1 1 12rem;
  min-width: 0;
}

.search-form input,
.search-form-lg input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  width: 100%;
  min-width: 0;
  font: inherit;
}

.search-form-lg {
  display: flex;
  gap: 0.75rem;
  max-width: 560px;
}

.selectors {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 0 0 auto;
}

.market-selector,
.country-selector,
.locale-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 0.75rem 0 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

.market-selector-icon,
.country-selector-flag {
  font-size: 1.35rem;
  line-height: 1;
  flex: 0 0 auto;
}

.market-selector-copy,
.country-selector-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

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

.market-selector-input,
.country-selector-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0;
  padding-right: 1.25rem;
  margin: 0;
  cursor: pointer;
  min-width: 5.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M2.2 4.5 6 8.3l3.8-3.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  color-scheme: dark;
}

.locale-selector .market-selector-input {
  min-width: 4.75rem;
}

.market-selector-input:focus,
.country-selector-input:focus {
  outline: none;
}

.market-selector-input option,
.country-selector-input option {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}

.hero {
  padding: 0.25rem 0 2rem;
}

.hero-empty { padding: 2rem 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0;
}

.page-header { margin: 0 0 2rem; }
.page-header h1 { margin: 0 0 0.5rem; font-size: 2rem; letter-spacing: -0.02em; }

.promotion-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.promotion-page-header-text {
  flex: 1;
  min-width: 0;
}

.promotion-page-logo-wrap {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  margin-left: auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.promotion-page-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; color: var(--text-muted); font-size: 0.9rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

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

@media (max-width: 719px) {
  .stats-grid-home .stat-card:nth-child(3),
  .stats-grid-home .stat-card:nth-child(4) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .stats-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-grid-home .stat-card:nth-child(3),
  .stats-grid-home .stat-card:nth-child(4) {
    grid-column: auto;
  }
}

.stats-grid-inline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

.stat-card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.stat-card-sm { padding: 0.85rem 1rem; }

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: block;
}

.section { margin-top: 2.5rem; }
.section-compact { margin-top: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section h2 { margin: 0 0 1rem; font-size: 1.25rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.card-promotion {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card-promotion:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.promotion-logo-wrap {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.promotion-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promotion-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.promotion-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.promotion-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.promotion-location-icon {
  flex: 0 0 auto;
  display: block;
  opacity: 0.9;
}

.promotion-location-name {
  font-weight: 500;
}

.promotion-country-flag {
  font-size: 0.95em;
  line-height: 1;
}

.promotion-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.promotion-event-count {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.promotion-last-event {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.promotion-last-event strong {
  font-weight: 700;
  color: var(--text);
}

.promotion-upcoming {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.1rem 0 0;
  line-height: 1.35;
}

.promotion-upcoming-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-meta .badge,
.event-card-badges .badge,
.promotion-upcoming .badge {
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.badge-complete,
.badge-partial,
.badge-upcoming {
  border: 1px solid transparent;
}

.badge-complete { background: rgba(34, 197, 94, 0.15); color: var(--success); border-color: rgba(34, 197, 94, 0.25); }
.badge-partial { background: rgba(234, 179, 8, 0.15); color: var(--warning); border-color: rgba(234, 179, 8, 0.25); }
.badge-upcoming { background: rgba(249, 115, 22, 0.15); color: var(--accent-2); border-color: rgba(249, 115, 22, 0.25); }
.badge-confidence { background: var(--accent-soft); color: #fca5a5; text-transform: none; letter-spacing: 0; font-weight: 500; }

.event-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-card {
  display: block;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.event-card-status {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

.event-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.event-card-title a {
  color: var(--text);
}

.event-card-title a:hover {
  color: var(--accent-2);
}

.event-card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.event-card-meta a {
  color: #fdba74;
}

.empty-state-compact {
  padding: 1rem 0;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  transform: translateY(-2px);
}

.card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.card-sub { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.card-meta { margin-top: 0.75rem; font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.card-meta time {
  font-weight: 600;
  color: var(--text);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table a { color: #fdba74; }
.fighter-cell { font-weight: 600; }

.muted { color: var(--text-muted); font-size: 0.85rem; }

.link-list, .result-list { list-style: none; padding: 0; margin: 0; }
.link-list li, .result-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

.external-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.external-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.external-link:hover,
.external-link:focus-visible {
  border-color: #d4d4d8;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--text);
}
.result-list li { display: flex; flex-direction: column; gap: 0.15rem; }

.text-link { color: var(--accent-2); font-weight: 600; font-size: 0.9rem; }

.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.empty-state { color: var(--text-muted); padding: 2rem 0; }

.pagination { display: flex; gap: 0.35rem; margin-top: 1.5rem; flex-wrap: wrap; }
.page-link {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.page-link.is-active { background: var(--accent-soft); color: var(--text); border-color: rgba(239, 68, 68, 0.35); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-brand { font-weight: 700; color: var(--text); margin: 0; }

@media (max-width: 900px) {
  .main { padding: 1.25rem 0 3rem; }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .header-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    width: 100%;
    flex-basis: auto;
  }

  .selectors {
    width: 100%;
    flex-direction: row;
  }

  .market-selector,
  .country-selector,
  .locale-selector {
    flex: 1;
    min-width: 0;
  }

  .market-selector-input,
  .country-selector-input {
    width: 100%;
    min-width: 0;
  }

  .nav-primary {
    order: 3;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .nav-primary::-webkit-scrollbar { display: none; }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero h1 { max-width: none; }

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

  .stat-value { font-size: 1.65rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .promotion-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    padding: 0.9rem;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.65rem 0.75rem;
  }

  .page-header h1 {
    font-size: 1.65rem;
  }

  .promotion-page-header {
    gap: 1rem;
  }

  .promotion-page-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .external-link {
    width: 3.15rem;
    height: 3.15rem;
  }

  .search-form-lg {
    flex-direction: column;
    max-width: none;
  }

  .search-form-lg .btn {
    width: 100%;
  }
}
