/* =============================================
   ODFC — Outlaw Dogs Fighting Championship
   Design system: navy-black / crimson
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------- CSS Variables ---------- */
:root {
  --bg:           #0c1018;
  --bg2:          #131923;
  --bg3:          #1a2232;
  --bg4:          #222d3d;
  --red:          #c41e1e;
  --red-dim:      #9b1616;
  --red-glow:     rgba(196,30,30,0.18);
  --gold:         #c8992a;
  --text:         #eef2f7;
  --text-muted:   #7d8fa3;
  --text-faint:   #4a5768;
  --border:       rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.13);
  --radius:       4px;
  --transition:   0.22s ease;
  --nav-h:        64px;
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
  --bg:           #f0f2f5;
  --bg2:          #e4e7ec;
  --bg3:          #d8dce3;
  --bg4:          #cdd2da;
  --text:         #0c1018;
  --text-muted:   #4a5768;
  --text-faint:   #8a95a3;
  --border:       rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.14);
  --red-glow:     rgba(196,30,30,0.10);
}
[data-theme="light"] .hero { background: var(--bg2); }
[data-theme="light"] .hero-title { color: #fff; }
[data-theme="light"] .hero-slogan { color: rgba(255,255,255,0.65); }
[data-theme="light"] .hero-bg-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.05) 100%);
}
[data-theme="light"] .nav { background: rgba(240,242,245,0.95); border-bottom-color: var(--border); }
[data-theme="light"] .fighter-photo-wrap img { filter: none; }
[data-theme="light"] .fighter-photo-wrap::after { display: none; }
[data-theme="light"] .champ-card:hover { background: var(--bg3); }

/* ---------- Announcement Bar ---------- */
#announcement-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  background: var(--red); color: #fff; font-size: 12px;
  height: 36px; display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 0 48px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  letter-spacing: 0.02em;
}
#announcement-bar.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.ann-message { font-weight: 500; }
.ann-link { color: #fff; text-decoration: underline; opacity: 0.85; margin-left: 6px; }
.ann-link:hover { opacity: 1; }
.ann-dismiss {
  position: absolute; right: 14px;
  background: none; border: none; color: #fff; font-size: 16px;
  cursor: pointer; opacity: 0.7; line-height: 1;
  padding: 4px 6px;
}
.ann-dismiss:hover { opacity: 1; }
body.has-announcement .nav { top: 36px; }
body.has-announcement .mobile-menu { top: calc(36px + var(--nav-h)); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  background: rgba(12,16,24,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center;
  padding: 0 40px;
  gap: 32px;
}
.nav-logo {
  font-size: 20px; font-weight: 900; letter-spacing: 0.06em;
  color: var(--text); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-right: auto;
}
.nav-logo span.accent { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg3); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.theme-toggle:hover { background: var(--bg4); color: var(--text); }
.nav-tickets {
  padding: 7px 18px; border-radius: var(--radius);
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  transition: background var(--transition);
}
.nav-tickets:hover { background: var(--red-dim); }

/* ---------- Section base ---------- */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-head {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 56px;
  padding-left: 20px;
  border-left: 4px solid var(--red);
}
.section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-faint);
}
.section-sub {
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 900; letter-spacing: -0.03em;
  color: var(--text); line-height: 1; text-transform: uppercase;
}
.section-divider {
  width: 100%;
  border: none;
  border-top: 0.5px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) 40px 60px;
  position: relative; overflow: hidden;
  background: var(--bg2);
}
/* 이미지 배경 */
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.6;
}
/* 유튜브 배경 — cover 기법 */
.hero-bg-yt-wrap {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.hero-bg-yt-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* 16:9 커버: 뷰포트 너비 기준 높이 vs 뷰포트 높이 기준 너비 중 큰 쪽 */
  width: 177.78vh;   /* 100/56.25 */
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  opacity: 0.65;
  border: none;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--bg) 0%, rgba(12,16,24,0.35) 50%, rgba(12,16,24,0.05) 100%);
}
/* Hero image Ken Burns */
.hero-bg-video {
  animation: heroBgZoom 8s ease forwards;
}
@keyframes heroBgZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
/* Banner progress bar */
.banner-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--red); z-index: 10;
  pointer-events: none;
}
@keyframes bannerProgressAnim {
  from { width: 0%; }
  to   { width: 100%; }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; gap: 24px;
}
.hero-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red);
}
.hero-title {
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 0.92; color: var(--text);
  text-transform: uppercase;
}
.hero-title span.red { color: var(--red); }
.hero-slogan {
  font-size: 13px; color: var(--text-muted); letter-spacing: 0.05em;
  font-style: italic; margin-top: -4px;
}
.hero-next {
  display: flex; align-items: center; gap: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border-light);
  border-radius: var(--radius);
  margin-top: 8px;
  backdrop-filter: blur(4px);
}
.hero-next-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); white-space: nowrap;
}
.hero-next-event {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.hero-next-name {
  font-size: 16px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
}
.hero-next-meta {
  font-size: 12px; color: var(--text-muted);
}
.hero-countdown {
  display: flex; gap: 20px;
}
.countdown-block {
  display: flex; flex-direction: column; align-items: center; min-width: 44px;
}
.countdown-val {
  font-size: 28px; font-weight: 900; letter-spacing: -0.02em; color: var(--text);
  line-height: 1;
}
.countdown-lbl {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint); margin-top: 2px;
}
.hero-cta {
  display: flex; gap: 12px; margin-top: 8px;
}
.btn-primary {
  padding: 12px 28px; border-radius: var(--radius);
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--red-dim); transform: translateY(-1px); }
.btn-outline {
  padding: 12px 28px; border-radius: var(--radius);
  background: transparent; color: var(--text);
  border: 0.5px solid var(--border-light);
  font-size: 12px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover { background: var(--bg3); border-color: var(--text-faint); }

/* ---------- Live Bar ---------- */
#live-bar {
  background: var(--red);
  padding: 14px 40px;
  display: none;
}
#live-bar.active { display: flex; }
.live-bar-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; flex-shrink: 0;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}
.live-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
}
.live-match { font-size: 13px; font-weight: 600; color: #fff; }
.live-round { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); }
.live-watch {
  margin-left: auto;
  padding: 6px 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: 0.5px solid rgba(255,255,255,0.4);
  transition: background var(--transition);
  cursor: pointer;
}
.live-watch:hover { background: rgba(255,255,255,0.3); }

/* ---------- Fight Card Section ---------- */
#fightcard { background: var(--bg); }
.fightcard-wrap {
  display: flex; flex-direction: column; gap: 0;
}
.fight-row {
  display: flex; align-items: center;
  padding: 32px 0;
  border-bottom: 0.5px solid var(--border);
  gap: 16px; position: relative;
}
.fight-row:last-child { border-bottom: none; }
.fight-row.main-event {
  padding: 48px 0;
}
.fight-type-badge {
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; letter-spacing: 0.20em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 2px;
  background: var(--red); color: #fff;
  white-space: nowrap;
}
.fight-type-badge.prelim { background: var(--bg3); color: var(--text-faint); border: 0.5px solid var(--border); }
.fight-fighter {
  display: flex; align-items: center; gap: 20px;
  flex: 1;
}
.fight-fighter.right { flex-direction: row-reverse; text-align: right; }
.fight-fighter-photo {
  width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden;
  border: 0.5px solid var(--border-light); flex-shrink: 0;
  background: var(--bg3);
  position: relative;
}
.fight-fighter-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.fight-fighter-photo.champ::before {
  content: 'C';
  position: absolute; top: 0; left: 0;
  font-size: 10px; font-weight: 900; line-height: 1;
  background: var(--gold); color: #000;
  padding: 2px 5px; z-index: 1; letter-spacing: 0.05em;
}
.fight-row.main-event .fight-fighter-photo { width: 108px; height: 108px; }
.fight-info { display: flex; flex-direction: column; gap: 3px; }
.fight-nickname { font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: -0.02em; text-transform: uppercase; }
.fight-row.main-event .fight-nickname { font-size: 24px; }
.fight-realname { font-size: 12px; color: var(--text-muted); }
.fight-record { font-size: 13px; color: var(--text-muted); font-weight: 700; margin-top: 1px; }
.fight-vs {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 90px;
}
.fight-vs-text {
  font-size: 28px; font-weight: 900; letter-spacing: 0.04em;
  color: var(--text-faint); text-transform: uppercase; line-height: 1;
}
.fight-row.main-event .fight-vs-text { font-size: 38px; color: var(--text); }
.fight-vs-meta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--text-faint); text-transform: uppercase; text-align: center;
}
.fight-result-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 2px;
  background: var(--bg4); color: var(--text-muted);
}
.fight-result-badge.win { background: rgba(34,130,80,0.2); color: #4caf82; }

/* ---------- Champions ---------- */
#champions { background: var(--bg2); }
.champs-grid { width: 100%; }
.champ-vacant {
  font-size: 12px; font-weight: 600; color: var(--text-faint); letter-spacing: 0.06em;
  padding: 40px 0;
}

/* Featured single champion card */
.champ-featured {
  display: flex; gap: 0;
  background: var(--bg3); border: 0.5px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}
.champ-featured:hover { border-color: var(--gold); }
.champ-featured:hover .champ-featured-photo img { transform: scale(1.03); }

/* Left: photo */
.champ-featured-left {
  flex: 0 0 340px; position: relative; overflow: hidden;
}
.champ-featured-photo {
  width: 100%; height: 100%; min-height: 420px; overflow: hidden;
  background: var(--bg4);
}
.champ-featured-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.5s ease;
}
.champ-featured-placeholder {
  width: 100%; height: 100%; min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  font-size: 160px; font-weight: 900; color: rgba(255,255,255,0.06);
  font-family: 'Inter','Arial Black',sans-serif; letter-spacing: -0.04em; user-select: none;
}

/* Right: info */
.champ-featured-right {
  flex: 1; padding: 40px 44px; display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
}
.champ-featured-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 6px;
}
.champ-featured-nickname {
  font-size: 48px; font-weight: 900; letter-spacing: -0.03em; color: var(--text);
  text-transform: uppercase; line-height: 0.9; margin-top: 2px;
}
.champ-featured-realname {
  font-size: 13px; color: var(--text-muted); margin-top: 2px;
}
.champ-featured-record {
  font-size: 26px; font-weight: 900; color: var(--text); letter-spacing: -0.02em;
  margin-top: 4px;
}
.champ-featured-styles {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px;
}
.champ-style-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg4);
  border: 0.5px solid var(--border); padding: 3px 9px; border-radius: 2px;
}
.champ-featured-divider {
  height: 0.5px; background: var(--border); margin: 6px 0;
}
.champ-featured-bio {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
}
.champ-bio-item {
  display: flex; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text);
}
.champ-bio-lbl {
  font-size: 11px; font-weight: 700; color: var(--text-faint);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.champ-featured-stats {
  display: flex; flex-direction: column; gap: 7px; margin-top: 4px;
}
.champ-stat-row { display: flex; align-items: center; gap: 10px; }
.champ-stat-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted); width: 74px; flex-shrink: 0;
}
.champ-stat-bar-wrap {
  flex: 1; height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden;
}
.champ-stat-bar {
  height: 100%; background: var(--red); border-radius: 2px;
  transition: width 0.6s ease;
}
.champ-stat-val {
  font-size: 12px; font-weight: 700; color: var(--text); width: 26px; text-align: right; flex-shrink: 0;
}
.champ-featured-cta {
  font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.06em;
  text-transform: uppercase; margin-top: 8px;
}
@media (max-width: 900px) {
  .champ-featured { flex-direction: column; }
  .champ-featured-left { flex: none; }
  .champ-featured-photo { min-height: 280px; }
  .champ-featured-placeholder { min-height: 280px; }
  .champ-featured-right { padding: 28px 28px; }
  .champ-featured-nickname { font-size: 36px; }
}

/* ---------- Fighters ---------- */
#fighters { background: var(--bg); }
.wc-tabs {
  display: flex; gap: 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wc-tabs::-webkit-scrollbar { display: none; }
.wc-tab {
  padding: 12px 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-faint); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -0.5px;
  transition: color var(--transition), border-color var(--transition);
}
.wc-tab:hover { color: var(--text-muted); }
.wc-tab.active { color: var(--text); border-bottom-color: var(--red); }
.fighters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.fighter-card {
  background: var(--bg2);
  cursor: pointer; position: relative; overflow: hidden;
  aspect-ratio: 3/4;
  transition: background var(--transition);
}
.fighter-card:hover .fighter-photo-wrap img { transform: scale(1.03); }
.fighter-photo-wrap {
  position: absolute; inset: 0;
  overflow: hidden;
}
.fighter-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.5s ease;
  filter: brightness(0.75) contrast(1.05);
}
.fighter-photo-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,16,24,0.95) 0%, rgba(12,16,24,0.3) 55%, transparent 100%);
}
.fighter-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 16px; z-index: 2;
}
.fighter-card-nickname {
  font-size: 18px; font-weight: 900; letter-spacing: -0.02em; color: #fff;
  text-transform: uppercase; line-height: 1;
}
.fighter-card-realname { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 3px; }
.fighter-card-record { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 700; margin-top: 2px; }
.fighter-champ-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--gold); color: #1a1000;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.fighter-rank-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--bg3); color: var(--text-muted);
  border: 0.5px solid var(--border-light);
  font-size: 12px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}
.placeholder-fighter {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg3) 0%, var(--bg4) 100%);
  color: rgba(255,255,255,0.15); font-size: 48px; font-weight: 900;
  font-family: 'Inter','Arial Black',sans-serif; letter-spacing: -0.04em;
  user-select: none;
}

/* ---------- Rankings ---------- */
#rankings { background: var(--bg2); }
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.ranking-col {}
.ranking-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 0.5px solid var(--border);
}
.ranking-col-limit { color: var(--text-faint); font-size: 12px; margin-left: 4px; font-weight: 500; }
.ranking-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
  padding: 6px 8px; margin: 0 -8px;
  border-radius: var(--radius);
}
.ranking-row:hover { background: var(--bg3); }
.ranking-pos {
  font-size: 12px; font-weight: 700; color: var(--text-faint);
  min-width: 20px; text-align: right;
}
.ranking-pos.champ { color: var(--gold); }
.ranking-photo {
  width: 36px; height: 36px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0;
  background: var(--bg4); border: 0.5px solid var(--border);
}
.ranking-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ranking-info { flex: 1; overflow: hidden; }
.ranking-nickname {
  font-size: 13px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ranking-record { font-size: 11px; color: var(--text-faint); font-weight: 600; }
.ranking-belt { font-size: 14px; }

/* ---------- Past Events ---------- */
#past-events { background: var(--bg); }
.events-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.event-row {
  display: flex; align-items: center; gap: 24px;
  background: var(--bg2); padding: 24px 28px;
  cursor: pointer;
  transition: background var(--transition);
}
.event-row:hover { background: var(--bg3); }
.event-date-block {
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px; text-align: center;
  padding: 8px 12px;
  background: var(--bg3); border-radius: var(--radius);
  border: 0.5px solid var(--border);
}
.event-month { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.event-day { font-size: 32px; font-weight: 900; line-height: 1; color: var(--text); letter-spacing: -0.03em; }
.event-year { font-size: 11px; color: var(--text-faint); font-weight: 600; }
.event-divider { width: 0.5px; height: 40px; background: var(--border); flex-shrink: 0; }
.event-info { flex: 1; }
.event-name { font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: 0.02em; text-transform: uppercase; }
.event-subtitle { font-size: 11px; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.event-venue { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.event-main-event { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.event-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.event-status.completed { background: var(--bg4); color: var(--text-faint); border: 0.5px solid var(--border); }
.event-status.upcoming { background: var(--red-glow); color: var(--red); border: 0.5px solid var(--red); }

/* ---------- Sponsors ---------- */
#sponsors { background: var(--bg2); }
.sponsors-grid {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.sponsor-item {
  flex: 0 0 calc(100% / 3);
  display: flex; align-items: center; justify-content: center;
  padding: 36px 24px;
  background: var(--bg2);
  border-right: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  transition: background var(--transition);
}
.sponsor-item:hover { background: var(--bg3); }
.sponsor-item img { max-height: 36px; object-fit: contain; opacity: 0.6; filter: brightness(0) invert(1); transition: opacity var(--transition); }
.sponsor-item:hover img { opacity: 0.9; }
.sponsor-name-only { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
[data-theme="light"] .sponsor-item img { filter: brightness(0); }

/* ---------- Media Kit ---------- */
#mediakit { background: var(--bg); }
.mediakit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 0.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.mediakit-item {
  background: var(--bg2); padding: 32px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background var(--transition);
}
.mediakit-item:hover { background: var(--bg3); }
.mediakit-icon { font-size: 24px; }
.mediakit-label { font-size: 13px; font-weight: 700; color: var(--text); }
.mediakit-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.mediakit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  background: var(--bg3); border: 0.5px solid var(--border-light);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  transition: background var(--transition), color var(--transition);
  margin-top: 4px; width: fit-content;
}
.mediakit-btn:hover { background: var(--bg4); color: var(--text); }
.mediakit-btn.no-file { opacity: 0.4; pointer-events: none; }

/* ---------- Popup / Overlay ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.popup-overlay.open { display: flex; }
.popup {
  background: var(--bg2); border: 0.5px solid var(--border-light);
  border-radius: var(--radius);
  width: 100%; max-width: 900px; max-height: 90vh;
  display: flex; overflow: hidden;
  position: relative;
}
.popup-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg3); border: 0.5px solid var(--border);
  color: var(--text-muted); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition), color var(--transition);
}
.popup-close:hover { background: var(--bg4); color: var(--text); }
.popup-left {
  width: 40%; flex-shrink: 0; position: relative; background: var(--bg3);
  display: flex; flex-direction: column;
}
.popup-media-wrap {
  flex: 1; overflow: hidden; position: relative;
}
.popup-highlight-iframe {
  width: 100%; height: 100%; border: none; display: none;
}
.popup-fighter-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.popup-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg3) 0%, var(--bg4) 100%);
}
.popup-placeholder-initial {
  font-size: 96px; font-weight: 900; color: var(--bg4);
  letter-spacing: -0.04em; line-height: 1; user-select: none;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  font-family: 'Inter', 'Arial Black', sans-serif;
}
.popup-right {
  flex: 1; padding: 32px 28px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
}
.popup-right::-webkit-scrollbar { width: 4px; }
.popup-right::-webkit-scrollbar-track { background: var(--bg3); }
.popup-right::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 2px; }
.popup-champ-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(200,153,42,0.15); border: 0.5px solid var(--gold);
  color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 2px; width: fit-content;
}
.popup-nickname {
  font-size: 34px; font-weight: 900; letter-spacing: -0.03em; color: var(--text);
  text-transform: uppercase; line-height: 0.95;
}
.popup-realname { font-size: 13px; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.02em; }
.popup-class {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-top: 4px;
}
.popup-record {
  font-size: 24px; font-weight: 900; letter-spacing: 0.02em; color: var(--text);
}
.popup-record span { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.popup-divider { border: none; border-top: 0.5px solid var(--border); }
.popup-bio-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.popup-bio-item { display: flex; flex-direction: column; gap: 2px; }
.popup-bio-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.popup-bio-val { font-size: 13px; font-weight: 600; color: var(--text); }
.popup-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
/* Stats hexagons */
.popup-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.popup-stat-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; background: var(--bg3); border-radius: var(--radius);
  border: 0.5px solid var(--border);
}
.popup-stat-bar-wrap {
  width: 100%; height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden;
}
.popup-stat-bar { height: 100%; background: var(--red); border-radius: 2px; }
.popup-stat-val { font-size: 14px; font-weight: 800; color: var(--text); }
.popup-stat-lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--text-faint); }
/* Finish breakdown */
.popup-finishes {
  display: flex; gap: 8px;
}
.popup-finish-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px; background: var(--bg3); border-radius: var(--radius);
  border: 0.5px solid var(--border);
}
.popup-finish-val { font-size: 20px; font-weight: 900; color: var(--text); }
.popup-finish-lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
/* Recent fights table */
.popup-fights-table { width: 100%; border-collapse: collapse; }
.popup-fights-table th {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); padding: 6px 8px; text-align: left;
  border-bottom: 0.5px solid var(--border);
}
.popup-fights-table td {
  font-size: 12px; color: var(--text-muted); padding: 8px 8px;
  border-bottom: 0.5px solid var(--border);
}
.popup-fights-table tr:last-child td { border-bottom: none; }
.popup-fights-table td:first-child { font-weight: 700; color: var(--text); font-size: 12px; }
.result-W { color: #4caf82; font-weight: 700; }
.result-L { color: var(--red); font-weight: 700; }
/* Career */
.popup-career-list { display: flex; flex-direction: column; gap: 10px; }
.popup-career-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 8px;
  font-size: 12px;
}
.popup-career-year { color: var(--text-faint); font-weight: 600; font-size: 12px; }
.popup-career-detail { display: flex; flex-direction: column; gap: 1px; }
.popup-career-org { font-weight: 700; color: var(--text); }
.popup-career-role { color: var(--text-muted); }
/* Titles */
.popup-titles-list { display: flex; flex-direction: column; gap: 6px; }
.popup-title-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
}
.popup-title-item::before { content: '🏆'; font-size: 14px; flex-shrink: 0; }
/* Style tags */
.popup-style-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.popup-style-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 2px;
  background: var(--bg4); border: 0.5px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  padding: 60px 40px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.footer-logo {
  font-size: 20px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); margin-bottom: 10px;
}
.footer-logo span.accent { color: var(--red); }
.footer-slogan { font-size: 12px; color: var(--text-faint); font-style: italic; }
.footer-col-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 13px; color: var(--text-faint); transition: color var(--transition); }
.footer-link:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-faint);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a { font-size: 12px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; transition: color var(--transition); }
.footer-social a:hover { color: var(--text); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Admin toggle bar ---------- */
#admin-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: var(--red); color: #fff;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px; font-size: 12px;
  transform: translateY(100%); transition: transform 0.3s ease;
}
#admin-bar.visible { transform: none; }
#admin-bar a {
  color: #fff; font-weight: 700; text-decoration: underline;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  /* .champs-grid — single card, no grid needed */
  .fighters-grid { grid-template-columns: repeat(3, 1fr); }
  .rankings-grid { grid-template-columns: repeat(3, 1fr); }
  .mediakit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
/* ── HAMBURGER ───────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  z-index: 999;
  padding: 12px 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu-link {
  padding: 14px 24px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu-link:hover { color: var(--text); background: var(--bg2); }
.mobile-menu-ticket {
  margin: 8px 16px 4px;
  padding: 12px 24px;
  background: var(--red);
  color: #fff !important;
  text-align: center;
  border-radius: 3px;
  letter-spacing: 0.08em;
}
.mobile-menu-ticket:hover { background: #b30010 !important; }

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 20px; gap: 16px; }
  .nav-links { display: none; }
  .nav-tickets { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 72px 20px; }
  .hero { padding: calc(var(--nav-h) + 24px) 20px 40px; }
  .hero-title { font-size: clamp(40px, 12vw, 64px); }
  .hero-next { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-countdown { gap: 14px; }
  .fighters-grid { grid-template-columns: repeat(2, 1fr); }
  .rankings-grid { grid-template-columns: 1fr 1fr; }
  .mediakit-grid { grid-template-columns: 1fr 1fr; }
  /* ── Fight Card mobile ── */
  .fight-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    padding: 20px 0;
  }
  .fight-row.main-event { padding: 28px 0; }
  .fight-fighter { gap: 0; }
  .fight-fighter-photo { display: none; }
  .fight-fighter.right { flex-direction: row; text-align: left; }
  .fight-fighter.right .fight-info { text-align: right; width: 100%; }
  .fight-fighter:not(.right) .fight-info { text-align: left; width: 100%; }
  .fight-nickname { font-size: 13px; letter-spacing: 0; }
  .fight-row.main-event .fight-nickname { font-size: 16px; }
  .fight-realname { font-size: 11px; }
  .fight-record { font-size: 11px; }
  .fight-vs { padding: 0 12px; min-width: 48px; }
  .fight-vs-text { font-size: 18px; }
  .fight-row.main-event .fight-vs-text { font-size: 22px; }
  .fight-vs-meta { font-size: 9px; letter-spacing: 0.06em; text-align: center; }
  .fight-type-badge { font-size: 9px; padding: 3px 10px; }
  .sponsors-grid { flex-direction: column; }
  .sponsor-item { flex: 0 0 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .popup { flex-direction: column; max-height: 95vh; }
  .popup-left { width: 100%; min-height: 220px; max-height: 280px; }
  .popup-bio-grid { grid-template-columns: 1fr 1fr 1fr; }
  .popup-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .event-row { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) {
  .fighters-grid { grid-template-columns: 1fr 1fr; }
  .rankings-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
}
