/* Public live games — scoreboard hub */

:root {
  --navy: #0a1931;
  --navy-2: #0d2242;
  --red: #c8102e;
  --red-hot: #e01830;
  --ink: #0a1931;
  --muted: #6b7c8f;
  --line: #e8eef5;
  --bg: #eef2f7;
  --font: "Montserrat", "Segoe UI", sans-serif;
}

body.lv2 {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(200, 16, 46, .08), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.lv2-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* ── Hero ── */
.lv2-hero {
  position: relative;
  min-height: clamp(300px, 42vh, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.lv2-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--red-hot), transparent);
  box-shadow: 0 0 18px rgba(224, 24, 48, .7);
}

.lv2-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lv2-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.lv2-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(6, 12, 28, 0.94) 0%, rgba(10, 25, 49, 0.78) 46%, rgba(10, 25, 49, 0.38) 100%),
    linear-gradient(180deg, transparent 35%, rgba(6, 12, 28, 0.7) 100%);
}

.lv2-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 2.6rem;
}

.lv2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, .28);
  border: 1px solid rgba(255, 90, 110, .45);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, .12);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd8de;
}
.lv2-kicker.is-scheduled {
  color: #d7e4f5;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: none;
}

.lv2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 0 0 rgba(224, 24, 48, .55);
  animation: lv2-pulse 1.45s ease-out infinite;
}

@keyframes lv2-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 24, 48, .55); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(224, 24, 48, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 24, 48, 0); }
}

.lv2-hero-title {
  margin: 0 0 0.7rem;
  font-size: clamp(2.15rem, 6vw, 3.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.98;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.lv2-hero-title em {
  font-style: normal;
  color: var(--red-hot);
}

.lv2-hero-lead {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}
.lv2-hero-hint {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.lv2-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.lv2-stat {
  min-width: 92px;
  padding: 0.7rem 0.95rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.lv2-stat strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.lv2-stat span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.lv2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.lv2-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(10, 25, 49, .04);
}
.lv2-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.lv2-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin: 0 0 0.75rem;
}
.lv2-board-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}
.lv2-click-hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
}

/* ── Scoreboard list ── */
.lv2-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lv2-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lv2-event-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  flex: 0 0 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.lv2-event-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lv2-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 80% at 100% 0%, rgba(200, 16, 46, .18), transparent 50%),
    linear-gradient(180deg, #16345c 0%, #0a1931 100%);
  box-shadow:
    0 10px 28px rgba(10, 25, 49, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.lv2-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red-hot);
  box-shadow: 0 0 16px rgba(224, 24, 48, .7);
}
.lv2-row:hover,
.lv2-row:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(10, 25, 49, .22),
    0 0 0 1px rgba(200, 16, 46, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.lv2-row.has-stream {
  box-shadow:
    0 12px 32px rgba(200, 16, 46, .16),
    inset 0 0 0 1px rgba(255, 90, 110, .22);
}
.lv2-row.is-scheduled {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 25, 49, .07), inset 0 0 0 1px #e8eef5;
}
.lv2-row.is-scheduled::before { background: #94a3b8; box-shadow: none; }
.lv2-row.is-scheduled:hover,
.lv2-row.is-scheduled:focus-within {
  box-shadow: 0 12px 26px rgba(10, 25, 49, .12), inset 0 0 0 1px #d5dee8;
}

.lv2-row-hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}

.lv2-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.lv2-row-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.lv2-row-event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-align: right;
}
.lv2-row-event-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.lv2-row-event-copy strong {
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.lv2-row-event-copy small {
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .62);
}
.lv2-row.is-scheduled .lv2-row-event-copy small { color: var(--muted); }

.lv2-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, .16);
}

.lv2-sched-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #e8eef5;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lv2-stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lv2-stream-badge svg {
  width: 11px;
  height: 11px;
}

.lv2-row-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
}

.lv2-team {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.lv2-team--home { justify-content: flex-end; text-align: right; }
.lv2-team-name {
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
}

.lv2-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--navy);
  flex: 0 0 44px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.lv2-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lv2-row-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  min-width: 5.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.lv2-row.is-scheduled .lv2-row-score { background: #f1f5f9; }
.lv2-score {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lv2-row-score small {
  color: rgba(255, 255, 255, .45);
  font-size: 1.15rem;
  font-weight: 700;
}
.lv2-row.is-scheduled .lv2-row-score small { color: var(--muted); }
.lv2-score-muted {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}
.lv2-score.is-flash {
  animation: lv2-score-flash .55s ease;
}
@keyframes lv2-score-flash {
  0% { color: #fff; text-shadow: 0 0 18px rgba(255, 90, 110, .9); transform: scale(1.18); }
  100% { color: inherit; text-shadow: none; transform: scale(1); }
}

.lv2-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.lv2-row.is-scheduled .lv2-row-foot { border-top-color: #eef2f7; }

.lv2-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .68);
  line-height: 1.35;
  min-width: 0;
}
.lv2-row.is-scheduled .lv2-row-meta { color: var(--muted); }

.lv2-inning,
.lv2-outs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lv2-row.is-scheduled .lv2-inning,
.lv2-row.is-scheduled .lv2-outs {
  background: #eef3f8;
  color: var(--navy);
}

.lv2-row-go {
  position: relative;
  z-index: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.lv2-row.is-scheduled .lv2-row-go {
  background: var(--red);
  color: #fff;
}
.lv2-row:hover .lv2-row-go,
.lv2-row:focus-within .lv2-row-go {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

.lv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--navy);
  color: #fff;
}
.lv2-btn-red { background: var(--red); color: #fff; }

.lv2-empty {
  padding: 3.4rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(10, 25, 49, .05);
}
.lv2-empty-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lv2-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}
.lv2-empty p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.lv2-upcoming { margin-top: 2.4rem; }
.lv2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.lv2-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
}
.lv2-section-head a {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.lv2-up-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 25, 49, .05);
}
.lv2-up-row {
  display: grid;
  grid-template-columns: 44px 88px 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.05rem;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: background .15s ease;
}
.lv2-up-row:hover { background: #f8fafc; }
.lv2-up-go {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}
.lv2-up-row:first-child { border-top: 0; }
.lv2-up-when {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
}
.lv2-up-match {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.lv2-up-match small { color: var(--muted); font-weight: 700; }
.lv2-up-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .lv2-dot,
  .lv2-score.is-flash { animation: none; }
  .lv2-row { transition: none; }
}

@media (max-width: 720px) {
  .lv2-hero-inner { padding: 2.4rem 1.15rem 2rem; }
  .lv2-row { padding: 0.9rem 0.9rem 0.95rem; }
  .lv2-row-top { flex-wrap: wrap; }
  .lv2-row-event { width: 100%; text-align: left; }
  .lv2-row-event-copy strong { max-width: none; }
  .lv2-row-board {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .lv2-team,
  .lv2-team--home {
    justify-content: space-between;
    text-align: left;
  }
  .lv2-team--home { flex-direction: row-reverse; }
  .lv2-row-score {
    justify-content: space-between;
    width: 100%;
    padding: 0.45rem 0.75rem;
  }
  .lv2-row-foot { flex-wrap: wrap; }
  .lv2-up-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .lv2-up-meta { text-align: left; }
}
