/* LEVEL-ONE live display layer */

.live-display-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--theme-primary-rgb), 0.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(var(--theme-secondary-rgb), 0.16), transparent 30%),
    var(--theme-bg);
  color: var(--theme-text);
}

.live-shell {
  width: min(calc(100% - (var(--lo-page-gutter) * 2)), var(--lo-shell));
  margin-inline: auto;
  padding: clamp(1rem, 2.4vw, 2rem) 0;
}

.live-page,
.live-shell--all {
  display: grid;
  gap: var(--lo-grid-gap);
}

.live-shell--all {
  --lo-shell: 1680px;
}

.live-header,
.live-hero-card,
.live-section-card,
.live-card,
.live-result-card,
.live-empty-state {
  border: 1px solid rgba(var(--theme-primary-rgb), 0.24);
  border-radius: var(--lo-radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)), var(--theme-surface);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.live-header,
.live-hero-card,
.live-section-card,
.live-card {
  padding: var(--lo-card-padding);
}

.live-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lo-grid-gap);
  flex-wrap: wrap;
}

.live-header h1,
.live-hero-card h1,
.live-section-card h2,
.live-card h2 {
  margin: 0;
  color: var(--theme-text);
  line-height: 1.08;
}

.live-header p,
.live-hero-card p,
.live-subtitle {
  margin: 0.55rem 0 0;
  color: var(--theme-text-muted);
  font-size: var(--lo-text-md);
  line-height: 1.38;
}

.live-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.live-badge,
.live-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.28);
  border-radius: var(--lo-radius-pill);
  background: rgba(0, 0, 0, 0.24);
  color: var(--theme-text);
  font-weight: 800;
  line-height: 1;
}

.live-badge--status {
  border-color: rgba(var(--theme-secondary-rgb), 0.48);
}

.live-grid,
.live-grid--all,
.live-match-grid,
.live-results-grid {
  display: grid;
  gap: var(--lo-grid-gap);
}

.live-grid,
.live-grid--all {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.live-match-grid,
.live-results-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 0.8rem;
}

.live-result-card,
.live-empty-state {
  padding: clamp(0.72rem, 1.4vw, 1rem);
}

.live-result-meta,
.live-result-note {
  margin: 0;
  color: var(--theme-text-muted);
  font-size: var(--lo-text-sm);
  line-height: 1.3;
}

.live-result-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.live-result-team {
  margin: 0;
  color: var(--theme-text);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.live-result-team:last-child {
  text-align: right;
}

.live-result-team.is-winner {
  color: var(--theme-primary);
}

.live-score-pill--muted {
  color: var(--theme-text-muted);
}

.live-empty-state h3 {
  margin: 0;
}

.live-empty-state p {
  margin: 0.35rem 0 0;
  color: var(--theme-text-muted);
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.72rem;
  overflow: hidden;
  border-radius: var(--lo-radius-md);
}

.live-table th,
.live-table td {
  padding: 0.55rem 0.68rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.live-table th {
  color: var(--theme-text-muted);
  font-size: var(--lo-text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-rank-row--top td {
  color: var(--theme-primary);
  font-weight: 900;
}

@media (max-width: 820px) {
  .live-shell {
    width: min(calc(100% - 1.5rem), var(--lo-shell));
  }

  .live-hero-head,
  .live-hero-badges {
    justify-content: flex-start;
  }

  .live-grid,
  .live-grid--all,
  .live-match-grid,
  .live-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .live-header,
  .live-hero-card,
  .live-section-card,
  .live-card {
    padding: 0.82rem;
    border-radius: var(--lo-radius-md);
  }

  .live-result-teams {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .live-result-team:last-child {
    text-align: left;
  }

  .live-score-pill {
    min-height: 1.82rem;
    padding: 0.28rem 0.62rem;
  }
}
