/* Partido Mundial 2026 — estilos */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@75..125,400..900&family=Archivo+Black&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  background: #06103E;
  font-family: 'Archivo', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  color: #fff;
}

/* Responsive: el diseño nació landscape fijo (1180×820 escalado). Acá es FLUIDO —
   en ancho (iPad) se ve el layout rico; en angosto (iPhone) reflota a una columna
   y la página scrollea (ver media queries al final del archivo). */
.viewport {
  min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  background: #06103E;
}

.stage {
  width: 100%; max-width: 1280px;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(160deg, #1B3BFF 0%, #0F27D8 55%, #0A1BA8 100%);
  display: flex; flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* rayos diagonales sutiles de fondo */
.bg-rays {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 210deg at 85% -10%,
    rgba(255,255,255,0.05) 0deg 7deg, transparent 7deg 21deg);
}

/* cinta tricolor superior */
.ribbon { display: flex; height: 8px; flex-shrink: 0; position: relative; z-index: 2; }
.ribbon span { flex: 1; }

/* ---------- barra superior ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px 6px; position: relative; z-index: 2;
}
.topbar-title { display: flex; align-items: center; gap: 14px; }
.wc-mark {
  font-family: 'Archivo Black', sans-serif;
  background: var(--accent, #FFE600); color: #0A1BA8;
  font-size: 26px; line-height: 1;
  padding: 9px 12px; border-radius: 12px;
}
.topbar-title div { display: flex; flex-direction: column; gap: 1px; }
.topbar-title b { font-family: 'Archivo Black', sans-serif; font-size: 20px; letter-spacing: 0.5px; }
.topbar-title span { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.65); }
.topbar-venue { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,0.75); }
.topbar-right { display: flex; align-items: center; gap: 18px; }

/* ===================== Feature "Escuchar el partido" ===================== */
/* glifos play/pausa reutilizables */
.glyph-play { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.glyph-pause { display: flex; gap: 4px; }
.glyph-pause i { width: 4px; height: 16px; background: currentColor; border-radius: 2px; }

/* ecualizador animado */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eqbar 0.9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq i:nth-child(2) { height: 13px; animation-delay: 0.25s; }
.eq i:nth-child(3) { height: 9px; animation-delay: 0.5s; }
@keyframes eqbar { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; } }

/* logo de transmisión */
.bcast-logo {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; flex-shrink: 0;
  font-family: 'Archivo Black', sans-serif; letter-spacing: 0.5px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

/* botón de entrada en el header */
.btn-listen {
  display: flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 18px;
  border: none; cursor: pointer; border-radius: 99px;
  background: var(--accent, #FFE600); color: #0B0D16;
  font-family: 'Archivo Black', sans-serif; font-size: 13px; letter-spacing: 1.2px;
  transition: filter .15s, background .15s;
}
.btn-listen:hover { filter: brightness(1.08); }
.btn-listen.is-active { background: rgba(255,255,255,0.14); color: #fff; }
.btn-listen.is-active:hover { background: rgba(255,255,255,0.22); }
.btn-listen-sub {
  font-size: 11px; letter-spacing: 1px;
  background: var(--accent, #FFE600); color: #0B0D16;
  padding: 2px 7px; border-radius: 6px;
}

/* scrim + sheet */
.audio-scrim {
  position: absolute; inset: 0; z-index: 110;
  background: rgba(4, 8, 30, 0.62);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-end;
}
.audio-sheet {
  width: 100%;
  margin: 0 16px;
  background: #0B0D16;
  border-radius: 26px 26px 0 0;
  border-top: 3px solid var(--accent, #FFE600);
  padding: 22px 26px 26px;
  box-shadow: 0 -18px 50px rgba(0,0,0,0.5);
}

.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head-text b { display: flex; align-items: center; gap: 10px; font-family: 'Archivo Black', sans-serif; font-size: 19px; letter-spacing: 0.5px; }
.sheet-head-text span { display: block; margin-top: 5px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.55); }
.sheet-x {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  border: none; cursor: pointer; background: rgba(255,255,255,0.1); color: #fff;
  font-size: 15px; font-weight: 900;
}
.sheet-x:hover { background: rgba(255,255,255,0.2); }

/* (a) elegir transmisión */
.bcast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcast-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: none; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.06); border-radius: 16px;
  transition: background .15s, transform .1s;
}
.bcast-card:hover { background: rgba(255,255,255,0.12); }
.bcast-card:active { transform: scale(0.99); }
.bcast-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bcast-info b { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 16px; }
.bcast-info span { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.5); }
.bcast-lang {
  font-size: 10px; font-weight: 900; letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.2); border-radius: 6px;
  padding: 3px 7px; flex-shrink: 0;
}
.bcast-go {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent, #FFE600); color: #0B0D16; font-size: 11px;
}
.sheet-foot {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
}
.bt-dot { width: 8px; height: 8px; border-radius: 50%; background: #16D5FF; box-shadow: 0 0 0 4px rgba(22,213,255,0.18); }

/* (b) sincronizar con video */
.sync-body { display: flex; gap: 26px; align-items: stretch; }
.vid-frame {
  flex: 1.25; position: relative; cursor: pointer;
  border-radius: 16px; overflow: hidden;
  min-height: 300px;
  background: #06140C;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}
.vid-pitch { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, #1f9b46 0%, #137a34 60%, #0d5e28 100%); }
.vid-line { position: absolute; background: rgba(255,255,255,0.4); }
.vid-mid { left: 0; right: 0; top: 50%; height: 2px; }
.vid-circle { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,0.4); border-radius: 50%; }
.vid-bug {
  position: absolute; left: 14px; top: 14px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11,13,22,0.9); border-radius: 9px; padding: 7px 11px;
  font-family: 'Archivo Black', sans-serif; font-size: 14px;
}
.vid-bug-score { color: var(--accent, #FFE600); }
.vid-bug-min { font-size: 11px; color: rgba(255,255,255,0.65); padding-left: 4px; border-left: 1px solid rgba(255,255,255,0.2); }
.vid-live {
  position: absolute; right: 14px; top: 14px;
  display: flex; align-items: center; gap: 6px;
  background: #E1003C; color: #fff; border-radius: 7px; padding: 5px 9px;
  font-size: 11px; font-weight: 900; letter-spacing: 1px;
}
.vid-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
.vid-src {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.vid-play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.32); }
.vid-play-big { width: 0; height: 0; border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent #fff; margin-left: 6px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }

.sync-controls-col { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.offset { text-align: center; }
.offset-num { font-family: 'Archivo Black', sans-serif; font-size: 54px; line-height: 1; }
.offset-num.live { color: #4DE38A; }
.offset-label { margin-top: 6px; font-size: 12px; font-weight: 900; letter-spacing: 2px; color: rgba(255,255,255,0.5); }
.jumps { display: flex; align-items: center; justify-content: center; gap: 10px; }
.jump-btn {
  height: 62px; min-width: 60px; padding: 0 8px;
  border: none; cursor: pointer; border-radius: 16px;
  background: rgba(255,255,255,0.08); color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 15px;
  transition: background .12s, transform .08s;
}
.jump-btn:hover { background: rgba(255,255,255,0.18); }
.jump-btn:active { transform: scale(0.94); }
.play-big {
  width: 86px; height: 86px; border-radius: 50%; flex-shrink: 0;
  border: none; cursor: pointer; background: var(--accent, #FFE600); color: #0B0D16;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35); transition: transform .08s, filter .15s;
}
.play-big:hover { filter: brightness(1.08); }
.play-big:active { transform: scale(0.95); }
.sync-actions { display: flex; gap: 12px; }
.btn-ghost {
  flex: 1; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 1.5px solid rgba(255,255,255,0.22); cursor: pointer; border-radius: 14px;
  background: transparent; color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 14px; letter-spacing: 1px;
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-solo {
  flex: 1.3; min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: none; cursor: pointer; border-radius: 14px;
  background: var(--accent, #FFE600); color: #0B0D16;
  font-family: 'Archivo Black', sans-serif; font-size: 14px; letter-spacing: 1px;
  transition: filter .15s;
}
.btn-solo:hover { filter: brightness(1.08); }

/* (c) barra compacta solo-audio (docked) */
.audio-bar {
  position: absolute; left: 16px; right: 16px; bottom: 0; z-index: 110;
  height: 94px;
  display: flex; align-items: center; gap: 22px;
  padding: 0 22px;
  background: #0B0D16; border-radius: 22px 22px 0 0;
  border-top: 3px solid var(--accent, #FFE600);
  box-shadow: 0 -14px 40px rgba(0,0,0,0.45);
}
.ab-id { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; }
.ab-id-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-id-text b { font-family: 'Archivo Black', sans-serif; font-size: 16px; }
.ab-id-text span { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; letter-spacing: 1px; color: var(--accent, #FFE600); }
.ab-controls { display: flex; align-items: center; gap: 9px; }
.jb-sm { height: 48px; min-width: 50px; font-size: 14px; border-radius: 13px; }
.play-mid {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  border: none; cursor: pointer; background: var(--accent, #FFE600); color: #0B0D16;
  display: flex; align-items: center; justify-content: center;
  transition: filter .15s, transform .08s;
}
.play-mid:hover { filter: brightness(1.08); }
.play-mid:active { transform: scale(0.95); }
.play-mid .glyph-play { border-width: 7px 0 7px 12px; }
.play-mid .glyph-pause i { height: 13px; }
.ab-offset {
  min-width: 78px; text-align: center;
  font-family: 'Archivo Black', sans-serif; font-size: 22px;
  padding: 0 6px;
}
.ab-offset.live { color: #4DE38A; }
.ab-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost-sm { flex: none; min-height: 44px; padding: 0 14px; font-size: 12px; }
.ab-min {
  width: 40px; height: 44px; border-radius: 12px;
  border: none; cursor: pointer; background: rgba(255,255,255,0.08); color: #fff;
  font-size: 20px; line-height: 1;
}
.ab-min:hover { background: rgba(255,255,255,0.18); }

/* mini-player */
.audio-mini {
  position: absolute; left: 16px; right: 16px; bottom: 0; z-index: 110;
  height: 60px; cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  background: #0B0D16; border-radius: 18px 18px 0 0;
  border-top: 2px solid var(--accent, #FFE600);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.4);
}
.mini-head { color: var(--accent, #FFE600); display: flex; }
.mini-name { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mini-name b { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 14px; }
.mini-name span { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; letter-spacing: 1px; color: var(--accent, #FFE600); }
.mini-offset { font-family: 'Archivo Black', sans-serif; font-size: 16px; }
.mini-offset.live { color: #4DE38A; }
.mini-play {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  border: none; cursor: pointer; background: var(--accent, #FFE600); color: #0B0D16;
  display: flex; align-items: center; justify-content: center;
}
.mini-play .glyph-play { border-width: 6px 0 6px 10px; }
.mini-play .glyph-pause i { height: 11px; width: 3px; }
.mini-up, .mini-x {
  width: 36px; height: 40px; border-radius: 10px;
  border: none; cursor: pointer; background: rgba(255,255,255,0.08); color: #fff;
  font-size: 17px; font-weight: 900; line-height: 1;
}
.mini-up:hover, .mini-x:hover { background: rgba(255,255,255,0.18); }

/* ---------- marcador ---------- */
.scoreboard {
  position: relative; z-index: 20;
  margin: 14px 36px 0;
  background: #0B0D16;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 22px 34px 16px;
  gap: 4px 24px;
  box-shadow: 0 12px 30px rgba(3,8,40,0.45);
}
.sb-team { display: flex; align-items: center; gap: 18px; }
.sb-home { justify-content: flex-start; }
.sb-away { justify-content: flex-end; }
.sb-team-text { display: flex; flex-direction: column; }
.sb-right { align-items: flex-end; }
.sb-code { font-family: 'Archivo Black', sans-serif; font-size: 44px; line-height: 1; }
.sb-name { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.sb-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sb-score {
  font-family: 'Archivo Black', sans-serif;
  font-size: 64px; line-height: 1;
  display: flex; align-items: baseline; gap: 14px;
}
.sb-dash { color: var(--accent, #FFE600); font-size: 44px; }
.sb-live-row { display: flex; align-items: center; gap: 8px; position: relative; }
.sync-wrap { position: relative; }
.sync-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.sync-btn:hover { background: rgba(255,255,255,0.22); color: #fff; }
.sync-pop {
  position: absolute; top: calc(100% + 10px); right: -8px;
  width: 218px; z-index: 50;
  background: #161A2A;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 6px;
}
.sync-pop-head {
  font-family: 'Archivo Black', sans-serif;
  font-size: 10px; letter-spacing: 1.8px;
  color: var(--accent, #FFE600);
  padding: 2px 4px 6px;
}
.sync-opt {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.07); color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 12px; font-weight: 900; letter-spacing: 1.2px;
  border-radius: 10px; padding: 0 12px;
  text-align: left;
  transition: background .15s;
}
.sync-opt:hover { background: rgba(255,255,255,0.15); }
.sync-opt-ico {
  flex-shrink: 0; min-width: 34px; text-align: center;
  font-size: 11px; font-weight: 900;
  color: var(--accent, #FFE600);
}

.sb-live {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent, #FFE600); color: #0B0D16;
  font-size: 13px; font-weight: 900; letter-spacing: 1.5px;
  padding: 6px 14px; border-radius: 99px;
}
.sync-pop-note {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  text-align: center; padding-top: 2px;
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E1003C;
  animation: pulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.sb-scorers {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5); min-height: 16px;
}
.sb-scorers-home { grid-column: 1; text-align: left; }
.sb-scorers-away { grid-column: 3; text-align: right; }

/* ---------- pestañas ---------- */
.tabs {
  position: relative; z-index: 2;
  display: flex; gap: 10px;
  margin: 18px 36px 0;
}
.tab {
  flex: 1; min-height: 48px;
  border: none; cursor: pointer;
  font-family: 'Archivo', sans-serif;
  font-size: 15px; font-weight: 900; letter-spacing: 2px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  transition: background .15s, color .15s;
}
.tab:hover { background: rgba(255,255,255,0.2); }
.tab-on { background: var(--accent, #FFE600); color: #0B0D16; }

/* ---------- contenido ---------- */
.content {
  position: relative; z-index: 2;
  flex: 1; margin: 16px 36px 28px;
  min-height: 0;
}

.panel {
  background: #0B0D16;
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 12px 30px rgba(3,8,40,0.45);
}
.panel-head {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px; letter-spacing: 2.5px;
  color: var(--accent, #FFE600);
  margin-bottom: 14px;
}

.panel-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px;
  height: 100%;
}
.panel-grid > .panel { min-height: 0; }

/* ---------- cronología ---------- */
.timeline-panel { display: flex; flex-direction: column; }
.timeline {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent;
  padding-right: 6px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.ev-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center; gap: 8px;
}
.ev-min {
  justify-self: center;
  background: rgba(255,255,255,0.1);
  font-weight: 900; font-size: 14px;
  padding: 6px 0; width: 52px; text-align: center;
  border-radius: 99px;
}
.ev-content {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px; padding: 10px 14px;
}
.ev-home .ev-content { grid-column: 1; justify-self: stretch; }
.ev-home .ev-spacer { grid-column: 3; }
.ev-away .ev-content { grid-column: 3; grid-row: 1; flex-direction: row-reverse; text-align: right; }
.ev-away .ev-spacer { grid-column: 1; grid-row: 1; }
.ev-away .ev-min { grid-column: 2; grid-row: 1; }
.ev-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-player { font-weight: 900; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.ev-away .ev-player { flex-direction: row-reverse; }
.ev-tag {
  font-size: 10px; letter-spacing: 1.5px; font-weight: 900;
  color: var(--accent, #FFE600);
}
.ev-detail { font-size: 12.5px; color: rgba(255,255,255,0.55); font-weight: 600; }
.ev-center { display: flex; justify-content: center; margin-top: 6px; }
.ev-kickoff {
  font-size: 11px; font-weight: 900; letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  padding: 8px 0;
}

.ev-ico {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); flex-shrink: 0;
  font-size: 15px; font-weight: 900;
}
.ev-goal { background: var(--accent, #FFE600); }
.ev-goal-inner {
  width: 14px; height: 14px; border-radius: 50%;
  background: #0B0D16;
  box-shadow: inset 0 0 0 2.5px var(--accent, #FFE600), inset 0 0 0 5px #0B0D16;
}
.card-shape { width: 12px; height: 17px; border-radius: 3px; display: block; }
.ev-sub { color: #4DE38A; }

/* ---------- panel lateral resumen ---------- */
.side-panel { display: flex; flex-direction: column; overflow-y: auto; }
.meta-list { display: flex; flex-direction: column; }
.meta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.meta-row span { color: rgba(255,255,255,0.5); font-weight: 700; letter-spacing: 1px; font-size: 11px; }
.meta-row b { font-weight: 800; text-align: right; }

/* ---------- estadísticas ---------- */
.stats-wrap { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.stats-teams {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.stats-team { display: flex; align-items: center; gap: 10px; font-family: 'Archivo Black', sans-serif; font-size: 18px; }
.stats-grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  align-content: start;
  overflow-y: auto;
}
.stat { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.stat-nums {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 17px;
}
.stat-nums b { font-family: 'Archivo Black', sans-serif; color: rgba(255,255,255,0.45); }
.stat-nums b.stat-lead { color: #fff; }
.stat-label { font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px; color: rgba(255,255,255,0.55); }
.stat-track {
  display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px;
}
.stat-fill { border-radius: 99px; }
.stat-fill-home { background: var(--accent, #FFE600); }
.stat-fill-away { background: #16D5FF; }
.stat-compact .stat-nums { font-size: 15px; }
.stat-compact .stat-track { height: 8px; }
.ministats { display: flex; flex-direction: column; gap: 2px; }

/* ---------- alineaciones ---------- */
.pitches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 100%; }
.pitch-card {
  background: #0B0D16; border-radius: 22px;
  display: flex; flex-direction: column;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(3,8,40,0.45);
  min-height: 0;
}
.pitch-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pitch-head-text { display: flex; flex-direction: column; gap: 1px; }
.pitch-head b { font-family: 'Archivo Black', sans-serif; font-size: 17px; letter-spacing: 0.5px; }
.pitch-head span { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); letter-spacing: 1px; }
.pitch {
  flex: 1; min-height: 0; position: relative;
  border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(0deg, #1B8A3E 0 12.5%, #15803A 12.5% 25%);
  border: 2px solid rgba(255,255,255,0.25);
}
.pitch-lines { position: absolute; inset: 0; pointer-events: none; }
.pl-box {
  position: absolute; left: 28%; right: 28%; bottom: 0; height: 16%;
  border: 2px solid rgba(255,255,255,0.35); border-bottom: none;
  border-radius: 4px 4px 0 0;
}
.pl-arc {
  position: absolute; left: 50%; top: 0; width: 30%; height: 16%;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,0.35); border-top: none;
  border-radius: 0 0 999px 999px;
}
.player {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.player-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}
.player-name {
  font-size: 10px; font-weight: 800; letter-spacing: 0.3px;
  background: rgba(11,13,22,0.85);
  padding: 2px 7px; border-radius: 99px;
  white-space: nowrap;
}
.bench {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 12px;
}
.bench-label {
  font-family: 'Archivo Black', sans-serif; font-size: 11px;
  letter-spacing: 2px; color: var(--accent, #FFE600); flex-shrink: 0;
}
.bench-names { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); }

/* scrollbars discretos */
.stats-grid, .side-panel { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.25) transparent; }
.timeline::-webkit-scrollbar, .stats-grid::-webkit-scrollbar, .side-panel::-webkit-scrollbar { width: 4px; height: 0; }
.timeline::-webkit-scrollbar-track, .stats-grid::-webkit-scrollbar-track, .side-panel::-webkit-scrollbar-track { background: transparent; }
.timeline::-webkit-scrollbar-thumb, .stats-grid::-webkit-scrollbar-thumb, .side-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2); border-radius: 99px;
}

/* ============================ v2: integración real ============================ */

/* Video real de la transmisión dentro del frame de sincronización */
.vid-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; z-index: 0;
}
.vid-frame .vid-bug, .vid-frame .vid-live, .vid-frame .vid-src, .vid-frame .vid-play-overlay { z-index: 2; }

/* La página scrollea: los paneles crecen con el contenido (no scroll interno) */
.timeline, .side-panel, .stats-grid, .stats-wrap { overflow: visible; max-height: none; }
.panel-grid, .pitches { height: auto; }
.content { flex: 1 0 auto; }

/* La cancha ya no hereda altura de un lienzo fijo (layout fluido): le damos
   altura propia con proporción, si no colapsa a 0 y los titulares (position:absolute)
   no se ven — solo quedaba visible la banca. */
.pitch { flex: none; aspect-ratio: 3 / 4; min-height: 440px; }

/* Docks de audio: fijos al borde inferior de la pantalla (sobre la página) */
.audio-bar, .audio-mini { position: fixed; }
.audio-scrim { position: fixed; }

/* logo de equipo (reemplaza las banderas CSS del mock) */
.team-logo { object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }

/* ---------- estados de carga / vacío ---------- */
.wc-loading, .wc-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; padding: 40px;
  font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,0.6); text-align: center;
}

/* ---------- lista de partidos (home) ---------- */
.mlist { display: flex; flex-direction: column; gap: 12px; }
.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.day-tab {
  border: none; cursor: pointer; border-radius: 12px; padding: 10px 16px;
  background: rgba(255,255,255,0.12); color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 13px; letter-spacing: 1px;
}
.day-tab.on { background: var(--accent, #FFE600); color: #0B0D16; }
.mcard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: #0B0D16; border-radius: 18px; padding: 16px 20px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(3,8,40,0.4); text-align: center;
  transition: transform .08s, background .15s;
}
.mcard:hover { background: #11142099; transform: translateY(-1px); }
.mcard:active { transform: scale(0.995); }
.mcard-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mcard-team.home { justify-content: flex-end; }
.mcard-team.away { justify-content: flex-start; }
.mcard-team b { font-family: 'Archivo Black', sans-serif; font-size: 18px; }
.mcard-team .team-logo { width: 40px; height: 40px; }
.mcard-center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 96px; }
.mcard-score { font-family: 'Archivo Black', sans-serif; font-size: 30px; line-height: 1; }
.mcard-score .sb-dash { font-size: 22px; }
.mcard-status {
  font-size: 11px; font-weight: 900; letter-spacing: 1px; padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7);
}
.mcard-status.live { background: #E1003C; color: #fff; }
.mcard-sub { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: rgba(255,255,255,0.45); }

/* ---------- grupos ---------- */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.group { background: #0B0D16; border-radius: 18px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(3,8,40,0.4); }
.group h3 { font-family: 'Archivo Black', sans-serif; font-size: 14px; letter-spacing: 2px; color: var(--accent, #FFE600); margin-bottom: 10px; }
.grow { display: grid; grid-template-columns: 18px 1fr 26px 32px 28px; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; font-weight: 700; border-top: 1px solid rgba(255,255,255,0.07); }
.grow:first-of-type { border-top: none; }
.grow .team-logo { width: 22px; height: 22px; }
.grow-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow-pts { font-family: 'Archivo Black', sans-serif; text-align: right; }
.grow-head { color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 1px; }
.grow-head span:nth-child(3), .grow-head span:nth-child(4), .grow span:nth-child(3), .grow span:nth-child(4) { text-align: right; }
.grow-q { position: relative; }
.grow-q::before { content: ''; position: absolute; left: -14px; top: 5px; bottom: 5px; width: 3px; border-radius: 99px; background: var(--accent, #FFE600); }
.grow-q .grow-name { color: #fff; }

/* lista de canales IPTV dentro de la hoja "elegir transmisión" */
.bcast-search {
  width: 100%; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; font-size: 15px;
}
.bcast-grid.channels { max-height: 46vh; overflow-y: auto; grid-template-columns: 1fr; }

/* ===================== RESPONSIVE: iPhone (portrait angosto) ===================== */
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 14px 16px 4px; }
  .topbar-venue { display: none; }
  .scoreboard { margin: 12px 14px 0; padding: 16px 16px 12px; gap: 4px 12px; }
  .sb-code { font-size: 30px; }
  .sb-score { font-size: 44px; gap: 10px; }
  .sb-dash { font-size: 30px; }
  .sb-name { font-size: 10px; letter-spacing: 2px; }
  .sb-team { gap: 10px; }
  .tabs { margin: 14px 14px 0; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { flex: 1 0 auto; padding: 0 12px; font-size: 11px; letter-spacing: 0.5px; min-height: 44px; white-space: nowrap; }
  .content { margin: 14px 14px 110px; }

  /* todo a una columna */
  .panel-grid, .pitches, .stats-grid, .bcast-grid { grid-template-columns: 1fr !important; }
  .panel-grid { gap: 14px; }
  .stats-grid { gap: 4px 0; }

  /* sincronizar: video arriba, controles abajo */
  .sync-body { flex-direction: column; gap: 16px; }
  .vid-frame { min-height: 200px; }
  .offset-num { font-size: 44px; }
  .jump-btn { height: 54px; min-width: 0; flex: 1; font-size: 14px; }
  .play-big { width: 72px; height: 72px; }

  /* barra solo-audio: apilar id + controles */
  .audio-bar { height: auto; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .ab-actions { width: 100%; justify-content: space-between; }

  .mcard-team b { font-size: 15px; }
  .mcard-team .team-logo { width: 30px; height: 30px; }
  .mcard-score { font-size: 24px; }
}

@media (max-width: 480px) {
  .sb-code { font-size: 24px; }
  .sb-score { font-size: 36px; }
  .mcard { padding: 12px 14px; gap: 8px; }
}

/* ===================== jugador clickeable + cambios + tarjeta ===================== */
.player { border: none; background: transparent; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.player:active { transform: translate(-50%, -50%) scale(0.92); }
.player-dot { position: relative; }
.player-sub {
  position: absolute; top: -7px; right: -9px;
  width: 15px; height: 15px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; line-height: 1; color: #06210F; background: #1DE26A;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
/* banca: chips clickeables */
.bench { flex-wrap: wrap; }
.bench-names { display: flex; flex-wrap: wrap; gap: 6px; }
.bench-chip {
  border: 1px solid rgba(255,255,255,0.14); cursor: pointer;
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8);
  border-radius: 99px; padding: 5px 10px; font-size: 11px; font-weight: 800;
}
.bench-chip:hover { background: rgba(255,255,255,0.16); color: #fff; }
/* log de cambios */
.subs-log { margin-top: 12px; }
.subs-rows { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.sub-row { display: grid; grid-template-columns: 34px 1fr 1fr; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; }
.sub-min { color: var(--accent, #FFE600); font-weight: 900; }
.sub-in { color: #5CE08A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-out { color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tarjeta de jugador */
.player-sheet { max-width: 520px; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pstat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.06); border-radius: 14px; padding: 14px 8px;
}
.pstat b { font-family: 'Archivo Black', sans-serif; font-size: 26px; line-height: 1; }
.pstat span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px; color: rgba(255,255,255,0.55); text-align: center; }

/* posiciones: resaltar los 2 equipos del partido */
.groups-one { grid-template-columns: 1fr; max-width: 520px; }
.grow-hl { background: rgba(22,213,255,0.10); border-radius: 8px; }

@media (max-width: 480px) {
  .pstats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pstat b { font-size: 22px; }
}

/* ===================== diagnóstico de sincronía ===================== */
.diag-toggle {
  margin-top: 12px; width: 100%; border: 1px dashed rgba(255,255,255,0.2);
  background: transparent; color: rgba(255,255,255,0.6); cursor: pointer;
  border-radius: 10px; padding: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
}
.diag-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.diag-panel {
  margin-top: 10px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace;
}
.diag-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; font-size: 12px; }
.diag-row span { color: rgba(255,255,255,0.55); }
.diag-row b { color: #fff; font-weight: 800; }
.diag-hot { color: #FF6B6B !important; }
.diag-copy {
  margin-top: 8px; width: 100%; border: none; cursor: pointer; border-radius: 10px;
  padding: 10px; background: var(--accent, #FFE600); color: #0B0D16; font-weight: 900; font-size: 12px; letter-spacing: 0.5px;
}
/* panel flotante sobre la barra de solo-audio */
.diag-float {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; z-index: 60;
  width: min(420px, calc(100vw - 24px));
  background: #0B0D16; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.diag-float .diag-panel { margin-top: 0; background: transparent; border: none; padding: 0; }
.ab-min.on { background: var(--accent, #FFE600); color: #0B0D16; }

/* ===================== botón de icono (topbar) ===================== */
.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: none; cursor: pointer; border-radius: 99px;
  background: rgba(255,255,255,0.12); color: #fff; transition: background .15s;
}
.btn-icon:hover { background: rgba(255,255,255,0.22); }

/* botón escuchar = icono circular (acento). Activo => translúcido con ecualizador. */
.btn-listen-ico { background: var(--accent, #FFE600); color: #0B0D16; }
.btn-listen-ico:hover { background: var(--accent, #FFE600); filter: brightness(1.08); }
.btn-listen-ico.is-active { background: rgba(255,255,255,0.14); color: #fff; }
.btn-listen-ico.is-active:hover { background: rgba(255,255,255,0.22); filter: none; }

/* ===================== modo TV: pantalla completa ===================== */
.watch-full { position: fixed; inset: 0; z-index: 100; background: #000; }
.watch-video { position: absolute; inset: 0; }
.watch-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0));
}
.watch-name { font-family: 'Archivo Black', sans-serif; font-size: 14px; letter-spacing: 0.5px; color: #fff; text-shadow: 0 1px 4px #000; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-top-btns { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* al entrar en pantalla completa nativa, el overlay y el video llenan todo */
.watch-full:fullscreen, .watch-full:-webkit-full-screen { width: 100vw; height: 100vh; }
.watch-full:fullscreen .watch-video video, .watch-full:-webkit-full-screen .watch-video video { object-fit: contain; }
.watch-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.6));
}

/* flecha "atrás" en cabecera de hoja */
.sheet-back {
  border: none; cursor: pointer; background: rgba(255,255,255,0.14); color: #fff;
  width: 30px; height: 30px; border-radius: 99px; font-size: 22px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 4px;
}
.sheet-back:hover { background: rgba(255,255,255,0.24); }

/* estrella de favorito en tarjeta de canal */
.bcast-fav {
  border: none; cursor: pointer; background: transparent; padding: 6px;
  color: rgba(255,255,255,0.35); transition: color .15s, transform .1s; flex-shrink: 0;
}
.bcast-fav:hover { color: #fff; }
.bcast-fav.on { color: var(--accent, #FFE600); }
.bcast-fav:active { transform: scale(0.85); }

/* categorías en la hoja de elegir relato */
.cat-section {
  font-family: 'Archivo Black', sans-serif; font-size: 11px; letter-spacing: 2px;
  color: rgba(255,255,255,0.45); padding: 10px 4px 4px;
}
.cat-card { cursor: pointer; }
.cat-folder { background: rgba(255,255,255,0.1) !important; color: #fff !important; font-size: 20px !important; }

/* ===================== panel de cuentas IPTV ===================== */
.acc-list { display: flex; flex-direction: column; gap: 10px; max-height: 50vh; overflow-y: auto; }
.acc-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 14px 16px;
}
.acc-card.active { border-color: var(--accent, #FFE600); background: rgba(255,230,0,0.07); }
.acc-main { min-width: 0; flex: 1; }
.acc-name { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.acc-badge { font-size: 10px; letter-spacing: 1px; background: var(--accent, #FFE600); color: #0B0D16; padding: 2px 8px; border-radius: 99px; }
.acc-sub { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.5); margin-top: 3px; word-break: break-all; }
.acc-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.acc-btn {
  border: 1px solid rgba(255,255,255,0.18); cursor: pointer; background: rgba(255,255,255,0.06);
  color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 800; font-size: 12px; min-height: 40px;
}
.acc-btn:hover { background: rgba(255,255,255,0.16); }
.acc-btn-go { background: var(--accent, #FFE600); color: #0B0D16; border-color: transparent; }
.acc-btn-del { color: #FF7A7A; }
.acc-add { width: 100%; margin-top: 14px; }

.acc-probe { font-size: 12px; font-weight: 800; margin-top: 8px; }
.acc-probe.ok { color: #5CE08A; }
.acc-probe.bad { color: #FF7A7A; }

.acc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.acc-field-full { grid-column: 1 / -1; }
.acc-field span { font-size: 11px; font-weight: 900; letter-spacing: 1px; color: rgba(255,255,255,0.5); }
.acc-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #fff; font-size: 15px;
}
.acc-form-actions { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 4px; }
.acc-form .acc-probe { grid-column: 1 / -1; margin-top: 0; }

@media (max-width: 820px) {
  .acc-form { grid-template-columns: 1fr; }
  .acc-card { flex-direction: column; }
  .acc-actions { width: 100%; }
  .acc-btn { flex: 1; }
}
