:root {
  --red: #dc2626;
  --red-dark: #7f1d1d;
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --gold: #f59e0b;
  --primary: #e11d48;
  --bg-dark: rgba(11, 13, 18, 0.94);
  --bg-panel: rgba(17, 20, 28, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --font-display: 'Barlow Condensed', 'Impact', 'Arial Narrow', sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: var(--font-ui);
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Virtual 1920x1080 broadcast stage that scales cleanly to any viewport/preview */
.stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* =========================================================
   1. EVENT BUG (Top Left)
   ========================================================= */
.event-bug {
  position: absolute;
  top: 38px;
  left: 48px;
  z-index: 30;
  animation: fadeSlideDown 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-bug-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(12, 15, 22, 0.9), rgba(22, 26, 36, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--primary);
  padding: 10px 20px 10px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.bug-logo {
  height: 44px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
}

.bug-live-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e2e8f0;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDot 1.6s infinite;
}

.live-label {
  color: #f87171;
}

.bug-fight-num {
  color: #94a3b8;
  font-weight: 700;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.bug-event-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 2px;
}

/* =========================================================
   2. SCOREBUG (Lower / Top Broadcast Bar + Timer)
   ========================================================= */
.scorebug {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  animation: scorebugIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scorebug.pos-bottom {
  bottom: 42px;
}

.scorebug.pos-top {
  top: 38px;
}

.scorebug-shell {
  width: 1120px;
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.96) 0%, rgba(9, 11, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.scorebug-shell.is-title {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), 0 0 24px rgba(245, 158, 11, 0.18);
}

.sb-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.sb-title-badge {
  background: linear-gradient(90deg, #b45309, #f59e0b, #fbbf24);
  color: #0b0d12;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.sb-main-row {
  display: grid;
  grid-template-columns: 1fr 250px 1fr;
  align-items: stretch;
  min-height: 82px;
}

.sb-fighter {
  display: flex;
  align-items: stretch;
  position: relative;
}

.sb-red {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.22) 0%, rgba(220, 38, 38, 0.03) 70%, transparent 100%);
}

.sb-blue {
  background: linear-gradient(270deg, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0.03) 70%, transparent 100%);
  justify-content: flex-end;
}

.sb-corner-bar {
  width: 12px;
  flex-shrink: 0;
}

.red-bar {
  background: linear-gradient(180deg, #ef4444, var(--red));
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.6);
}

.blue-bar {
  background: linear-gradient(180deg, #3b82f6, var(--blue));
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.6);
}

.sb-fighter-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 22px;
  min-width: 0;
  flex: 1;
}

.sb-fighter-info.right {
  align-items: flex-end;
  text-align: right;
}

.sb-name-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.sb-name-line.right {
  justify-content: flex-end;
}

.sb-flag {
  font-size: 24px;
  line-height: 1;
  align-self: center;
}

.sb-name {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.98;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-firstname {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1;
  white-space: nowrap;
}

.sb-sub-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.sb-sub-line.right {
  justify-content: flex-end;
}

.sb-record {
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.sb-badges {
  display: flex;
  gap: 6px;
}

.sb-badge-kd {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.sb-badge-ded {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

/* Center Timer */
.sb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #161b26 0%, #0b0e14 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  transition: background 0.25s ease;
}

.sb-center.is-rest {
  background: linear-gradient(180deg, #451a03 0%, #1c0a00 100%);
}

.sb-center.is-warning {
  background: linear-gradient(180deg, #7f1d1d 0%, #2a0707 100%);
  animation: warningPulse 0.8s infinite;
}

.sb-round-row {
  margin-bottom: 2px;
}

.sb-round-label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.sb-center.is-rest .sb-round-label {
  color: #fbbf24;
}

.sb-clock {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.sb-center.is-warning .sb-clock {
  color: #fecaca;
}

/* =========================================================
   3. VERSUS / TALE OF THE TAPE (Fighter Photos)
   ========================================================= */
.versus-card {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease;
}

.vs-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(15, 19, 28, 0.88), rgba(6, 8, 12, 0.94));
}

.vs-container {
  position: relative;
  width: 1580px;
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.97) 0%, rgba(10, 12, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
  animation: scaleIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.vs-container.is-title {
  border-color: rgba(245, 158, 11, 0.65);
}

.vs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.16), rgba(15, 23, 42, 0.6) 50%, rgba(37, 99, 235, 0.16));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vs-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.vs-event-logo {
  height: 58px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.vs-bout-meta {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #94a3b8;
  text-transform: uppercase;
}

.vs-bout-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
}

.vs-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vs-title-pill {
  background: linear-gradient(90deg, #b45309, #f59e0b, #fbbf24);
  color: #0b0d12;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 4px;
}

.vs-weight {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  text-transform: uppercase;
}

.vs-body {
  display: grid;
  grid-template-columns: 1fr 420px 1fr;
  align-items: stretch;
  padding: 32px 36px 36px;
  gap: 24px;
}

.vs-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vs-photo-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, rgba(30, 36, 50, 0.6) 0%, rgba(10, 12, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.red-glow {
  box-shadow: inset 0 0 80px rgba(220, 38, 38, 0.28);
  border-bottom: 5px solid var(--red);
}

.blue-glow {
  box-shadow: inset 0 0 80px rgba(37, 99, 235, 0.28);
  border-bottom: 5px solid var(--blue);
}

.vs-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.vs-placeholder {
  width: 240px;
  height: 280px;
  color: #94a3b8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.vs-corner-tag {
  position: absolute;
  top: 14px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  border-radius: 3px;
}

.red-tag {
  left: 14px;
  background: var(--red);
}

.blue-tag {
  right: 14px;
  background: var(--blue);
}

.vs-identity {
  width: 100%;
  margin-top: 18px;
}

.vs-identity.right {
  text-align: right;
}

.vs-nickname {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  color: #fbbf24;
  text-transform: uppercase;
  min-height: 28px;
}

.vs-name {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 0.98;
  text-transform: uppercase;
  margin-top: 2px;
}

.vs-team {
  font-size: 20px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 6px;
}

/* Center Tale of the Tape */
.vs-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vs-emblem {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

.vs-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vs-stat-row {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 12px 16px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stat-val:first-child {
  text-align: left;
}

.stat-val:last-child {
  text-align: right;
}

.red-val {
  color: #fca5a5;
}

.blue-val {
  color: #93c5fd;
}

.stat-label {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #94a3b8;
}

/* =========================================================
   4. WALKOUT LOWER-THIRD
   ========================================================= */
.walkout-card {
  position: absolute;
  bottom: 165px;
  left: 64px;
  z-index: 45;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(12, 15, 22, 0.96), rgba(20, 25, 36, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  overflow: hidden;
  min-width: 640px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.78);
  animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wo-accent {
  width: 12px;
  background: var(--red);
}

.wo-accent.blue {
  background: var(--blue);
}

.wo-photo-box {
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.wo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.wo-placeholder {
  font-size: 46px;
  opacity: 0.4;
}

.wo-info {
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wo-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.wo-corner-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--red);
}

.wo-corner-label.blue {
  background: var(--blue);
}

.wo-record {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
}

.wo-name {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.98;
  text-transform: uppercase;
}

.wo-bottom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 18px;
  color: #cbd5e1;
}

.wo-nickname {
  color: #fbbf24;
  font-weight: 700;
  font-style: italic;
}

.wo-sep {
  opacity: 0.4;
}

/* =========================================================
   5. WINNER / OFFICIAL RESULT
   ========================================================= */
.winner-card {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  animation: scorebugIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.win-shell {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 860px;
  padding: 20px 40px 20px 22px;
  background: linear-gradient(135deg, rgba(16, 19, 28, 0.98), rgba(9, 11, 16, 0.98));
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.25);
}

.win-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.win-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.win-placeholder {
  font-size: 56px;
}

.win-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #fbbf24;
  text-transform: uppercase;
}

.win-name {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

.win-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.win-pill {
  background: linear-gradient(90deg, #b45309, #f59e0b);
  color: #0b0d12;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}

.win-detail {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
}

/* =========================================================
   6. FIGHT CARD / CARTELERA
   ========================================================= */
.fight-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 12, 0.86);
  animation: fadeIn 0.35s ease;
}

.fc-panel {
  width: 1460px;
  max-height: 920px;
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.98), rgba(10, 12, 18, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.18), transparent);
}

.fc-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fc-logo {
  height: 54px;
  object-fit: contain;
}

.fc-event-name {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.fc-subtitle {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #94a3b8;
  margin-top: 4px;
}

.fc-page-badge {
  font-size: 15px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.1em;
}

.fc-list {
  padding: 20px 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-row {
  display: grid;
  grid-template-columns: 70px 1fr 70px 1fr 220px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.fc-row.is-active {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.18), rgba(255, 255, 255, 0.07), rgba(37, 99, 235, 0.18));
  border-color: rgba(245, 158, 11, 0.7);
}

.fc-row.is-finished {
  opacity: 0.65;
}

.fc-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #94a3b8;
}

.fc-fighter {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-fighter.red {
  text-align: right;
  border-right: 4px solid var(--red);
  padding-right: 14px;
}

.fc-fighter.blue {
  text-align: left;
  border-left: 4px solid var(--blue);
  padding-left: 14px;
}

.fc-vs {
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #64748b;
}

.fc-status {
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fc-status-live {
  color: #fbbf24;
}

.fc-status-done {
  color: #4ade80;
}

.fc-status-up {
  color: #94a3b8;
}

/* =========================================================
   7. AD / SPONSOR SLIDES
   ========================================================= */
.ad-fullscreen {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: #05070b;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.45s ease;
}

.ad-fullscreen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ad-corner {
  position: absolute;
  top: 38px;
  right: 48px;
  z-index: 60;
  width: 340px;
  background: rgba(12, 15, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  animation: fadeSlideDown 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-corner-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #94a3b8;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  text-align: right;
}

.ad-corner-img {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: contain;
  background: #090b10;
}

.ad-lower {
  position: absolute;
  bottom: 42px;
  right: 48px;
  z-index: 60;
  max-width: 560px;
  max-height: 140px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  animation: scorebugIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-lower-img {
  display: block;
  max-width: 560px;
  max-height: 140px;
  object-fit: contain;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scorebugIn {
  from { opacity: 0; transform: translate(-50%, 35px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes warningPulse {
  0%, 100% { box-shadow: inset 0 0 25px rgba(239, 68, 68, 0.45); }
  50% { box-shadow: inset 0 0 45px rgba(239, 68, 68, 0.85); }
}


/* =========================================================
   THEMES (V2) — 4 Additional Broadcast Visual Themes
   ========================================================= */

/* --- THEME 2: CYBER NEÓN (data-theme="neon") --- */
.stage[data-theme="neon"] .event-bug-inner {
  background: rgba(6, 9, 20, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-left: 4px solid #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.28);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.stage[data-theme="neon"] .scorebug-shell {
  background: linear-gradient(180deg, rgba(7, 10, 22, 0.95), rgba(4, 6, 14, 0.98));
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  border-radius: 2px;
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.25), 0 16px 45px rgba(0, 0, 0, 0.8);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
}

.stage[data-theme="neon"] .sb-top-strip {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.2), rgba(56, 189, 248, 0.14), rgba(59, 130, 246, 0.2));
  color: #7dd3fc;
}

.stage[data-theme="neon"] .sb-center {
  background: linear-gradient(180deg, #0b1228 0%, #050814 100%);
  border-left: 1px solid rgba(56, 189, 248, 0.45);
  border-right: 1px solid rgba(56, 189, 248, 0.45);
}

.stage[data-theme="neon"] .sb-clock {
  color: #38bdf8;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.75);
}

.stage[data-theme="neon"] .sb-round-label {
  color: #f472b6;
  text-shadow: 0 0 10px rgba(244, 114, 182, 0.6);
}

.stage[data-theme="neon"] .red-bar {
  background: #ff1e56;
  box-shadow: 0 0 22px #ff1e56;
}

.stage[data-theme="neon"] .blue-bar {
  background: #00d2ff;
  box-shadow: 0 0 22px #00d2ff;
}

.stage[data-theme="neon"] .vs-container,
.stage[data-theme="neon"] .fc-panel,
.stage[data-theme="neon"] .walkout-card,
.stage[data-theme="neon"] .win-shell {
  background: linear-gradient(180deg, rgba(7, 10, 22, 0.97), rgba(3, 5, 12, 0.99));
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.22), 0 25px 75px rgba(0, 0, 0, 0.85);
}

.stage[data-theme="neon"] .vs-emblem {
  background: linear-gradient(180deg, #38bdf8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- THEME 3: GALA ORO PPV (data-theme="gold") --- */
.stage[data-theme="gold"] .event-bug-inner {
  background: linear-gradient(135deg, rgba(10, 9, 8, 0.95), rgba(24, 20, 14, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-left: 4px solid #d4af37;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}

.stage[data-theme="gold"] .bug-event-name {
  color: #f3e5ab;
}

.stage[data-theme="gold"] .scorebug-shell {
  background: linear-gradient(180deg, #13110e 0%, #070605 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 28px rgba(212, 175, 55, 0.16);
}

.stage[data-theme="gold"] .sb-top-strip {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.22));
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: #f3e5ab;
}

.stage[data-theme="gold"] .sb-center {
  background: linear-gradient(180deg, #1d1810 0%, #0c0a07 100%);
  border-left: 1px solid rgba(212, 175, 55, 0.45);
  border-right: 1px solid rgba(212, 175, 55, 0.45);
}

.stage[data-theme="gold"] .sb-round-label {
  color: #d4af37;
}

.stage[data-theme="gold"] .sb-clock {
  color: #fffbeb;
}

.stage[data-theme="gold"] .sb-record {
  color: #d6c596;
}

.stage[data-theme="gold"] .vs-container,
.stage[data-theme="gold"] .fc-panel,
.stage[data-theme="gold"] .walkout-card,
.stage[data-theme="gold"] .win-shell {
  background: linear-gradient(180deg, #14120e 0%, #080706 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.6);
}

.stage[data-theme="gold"] .vs-header,
.stage[data-theme="gold"] .fc-header {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(20, 18, 14, 0.8), rgba(212, 175, 55, 0.18));
  border-bottom-color: rgba(212, 175, 55, 0.35);
}

.stage[data-theme="gold"] .vs-emblem {
  background: linear-gradient(180deg, #fef08a 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- THEME 4: TV CLARO / BLANCO BROADCAST (data-theme="light") --- */
.stage[data-theme="light"] .event-bug-inner {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-left: 5px solid var(--primary);
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.stage[data-theme="light"] .bug-live-row {
  color: #334155;
}

.stage[data-theme="light"] .live-label {
  color: #dc2626;
}

.stage[data-theme="light"] .bug-fight-num {
  color: #475569;
  border-left-color: rgba(15, 23, 42, 0.2);
}

.stage[data-theme="light"] .bug-event-name {
  color: #0f172a;
}

.stage[data-theme="light"] .scorebug-shell {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);
  border: 1px solid rgba(15, 23, 42, 0.16);
  color: #0f172a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.stage[data-theme="light"] .sb-top-strip {
  background: #e2e8f0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  color: #1e293b;
}

.stage[data-theme="light"] .sb-red {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.14) 0%, rgba(255, 255, 255, 0) 75%);
}

.stage[data-theme="light"] .sb-blue {
  background: linear-gradient(270deg, rgba(37, 99, 235, 0.14) 0%, rgba(255, 255, 255, 0) 75%);
}

.stage[data-theme="light"] .sb-name {
  color: #0f172a;
}

.stage[data-theme="light"] .sb-firstname {
  color: #475569;
}

.stage[data-theme="light"] .sb-record {
  color: #475569;
}

.stage[data-theme="light"] .sb-center {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-left: none;
  border-right: none;
}

.stage[data-theme="light"] .walkout-card {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

.stage[data-theme="light"] .wo-name { color: #0f172a; }
.stage[data-theme="light"] .wo-record { color: #334155; }
.stage[data-theme="light"] .wo-bottom-row { color: #475569; }
.stage[data-theme="light"] .wo-nickname { color: #b45309; }

.stage[data-theme="light"] .vs-container,
.stage[data-theme="light"] .fc-panel,
.stage[data-theme="light"] .win-shell {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
}

.stage[data-theme="light"] .vs-header,
.stage[data-theme="light"] .fc-header {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.12), #ffffff 50%, rgba(37, 99, 235, 0.12));
  border-bottom-color: rgba(15, 23, 42, 0.12);
}

.stage[data-theme="light"] .vs-bout-meta,
.stage[data-theme="light"] .vs-team,
.stage[data-theme="light"] .fc-subtitle,
.stage[data-theme="light"] .stat-label {
  color: #475569;
}

.stage[data-theme="light"] .vs-weight,
.stage[data-theme="light"] .vs-name,
.stage[data-theme="light"] .win-name,
.stage[data-theme="light"] .fc-event-name {
  color: #0f172a;
}

.stage[data-theme="light"] .vs-stat-row,
.stage[data-theme="light"] .fc-row {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
}

.stage[data-theme="light"] .red-val { color: #b91c1c; }
.stage[data-theme="light"] .blue-val { color: #1d4ed8; }
.stage[data-theme="light"] .win-detail { color: #334155; }

/* --- THEME 5: ACERO / OCTÁGONO INDUSTRIAL (data-theme="cage") --- */
.stage[data-theme="cage"] .event-bug-inner {
  background: repeating-linear-gradient(
      -45deg,
      rgba(30, 35, 44, 0.96),
      rgba(30, 35, 44, 0.96) 8px,
      rgba(22, 26, 33, 0.96) 8px,
      rgba(22, 26, 33, 0.96) 16px
    );
  border: 2px solid #64748b;
  border-left: 6px solid #f59e0b;
  border-radius: 0;
  transform: skewX(-8deg);
}

.stage[data-theme="cage"] .event-bug-inner > * {
  transform: skewX(8deg);
}

.stage[data-theme="cage"] .scorebug-shell {
  background: repeating-linear-gradient(
      -45deg,
      #1b2029,
      #1b2029 10px,
      #141820 10px,
      #141820 20px
    );
  border: 2px solid #475569;
  border-top: 3px solid #f59e0b;
  border-radius: 0;
  transform: skewX(-6deg);
}

.stage[data-theme="cage"] .sb-main-row > *,
.stage[data-theme="cage"] .sb-top-strip > * {
  transform: skewX(6deg);
}

.stage[data-theme="cage"] .sb-top-strip {
  background: rgba(15, 23, 42, 0.85);
  color: #f59e0b;
}

.stage[data-theme="cage"] .sb-center {
  background: #090b0f;
  border-left: 2px solid #475569;
  border-right: 2px solid #475569;
}

.stage[data-theme="cage"] .sb-clock {
  color: #fbbf24;
}

.stage[data-theme="cage"] .vs-container,
.stage[data-theme="cage"] .fc-panel,
.stage[data-theme="cage"] .walkout-card,
.stage[data-theme="cage"] .win-shell {
  border-radius: 0;
  border: 2px solid #475569;
  border-top: 4px solid #f59e0b;
  background: repeating-linear-gradient(
      -45deg,
      rgba(22, 26, 34, 0.98),
      rgba(22, 26, 34, 0.98) 12px,
      rgba(15, 18, 24, 0.98) 12px,
      rgba(15, 18, 24, 0.98) 24px
    );
}


/* =========================================================
   CUSTOM VERSUS POSTER & 8 GRAPHIC SAMPLES (V3)
   ========================================================= */
.vs-custom-poster {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vs-custom-poster-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cg-layer {
  position: absolute;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cg-layer.cg-mode-overlay {
  inset: 0;
  z-index: 65;
  animation: fadeIn 0.35s ease;
}

.cg-layer.cg-mode-overlay .cg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cg-layer.cg-mode-fullscreen {
  inset: 0;
  z-index: 82;
  background: rgba(5, 7, 11, 0.96);
  animation: fadeIn 0.35s ease;
}

.cg-layer.cg-mode-fullscreen .cg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cg-layer.cg-mode-lower {
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  z-index: 66;
  max-width: 1320px;
  max-height: 260px;
  animation: scorebugIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cg-layer.cg-mode-lower .cg-img {
  max-width: 1320px;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.7));
}

.cg-layer.cg-mode-corner {
  top: 38px;
  right: 48px;
  z-index: 66;
  max-width: 420px;
  max-height: 240px;
  animation: fadeSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cg-layer.cg-mode-corner .cg-img {
  max-width: 420px;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 16px 35px rgba(0, 0, 0, 0.7));
}


/* =========================================================
   MULTI-SPORT TEAM SCORE & RACKET SCOREBOARD (OverlayArena)
   ========================================================= */
.sb-team-score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0 18px;
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  background: rgba(0, 0, 0, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-variant-numeric: tabular-nums;
}

.sb-added-time {
  margin-left: 8px;
  background: #dc2626;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
}

.sb-badge-foul {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
}

.sb-badge-card {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 2px;
}

.stage[data-theme="light"] .sb-team-score {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

/* RACKET SCOREBOARD (Padel / Tennis) */
.racket-board {
  position: absolute;
  left: 56px;
  z-index: 42;
  animation: slideInLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.racket-board.pos-bottom { bottom: 48px; }
.racket-board.pos-top { top: 120px; }

.rk-shell {
  min-width: 660px;
  background: linear-gradient(180deg, rgba(16, 19, 27, 0.96), rgba(9, 11, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.78);
}

.rk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.rk-pill {
  background: linear-gradient(90deg, #b45309, #f59e0b);
  color: #0b0d12;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
}

.rk-clock {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #94a3b8;
}

.rk-row {
  display: flex;
  align-items: center;
  height: 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rk-row:last-child { border-bottom: none; }

.rk-bar {
  width: 9px;
  height: 100%;
  flex-shrink: 0;
}

.rk-serve {
  width: 30px;
  text-align: center;
  font-size: 14px;
  color: #facc15;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rk-serve.active {
  opacity: 1;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.8);
}

.rk-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-right: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rk-sets {
  display: flex;
  align-items: center;
  height: 100%;
}

.rk-set-cell {
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: #94a3b8;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.rk-games {
  width: 62px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.rk-points {
  width: 78px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  background: #f59e0b;
  color: #090c12;
}

.stage[data-theme="neon"] .rk-shell {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}
.stage[data-theme="neon"] .rk-points {
  background: #38bdf8;
  color: #040712;
}
.stage[data-theme="gold"] .rk-shell {
  border-color: rgba(212, 175, 55, 0.65);
}
.stage[data-theme="light"] .rk-shell {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
}
.stage[data-theme="light"] .rk-header {
  background: #e2e8f0;
  color: #1e293b;
}
.stage[data-theme="light"] .rk-games {
  background: #f1f5f9;
  color: #0f172a;
}
