/* Pro Tourny — public live scores page */
body.ls-page {
  --ls-navy: #0c1a3a;
  --ls-blue: #2563eb;
  --ls-live: #16a34a;
  --ls-line: rgba(15, 23, 42, 0.08);
  background: #f4f7fc;
}

.ls-hero {
  background: linear-gradient(165deg, var(--ls-navy) 0%, #132a5c 55%, #1e3a8a 100%);
  color: #fff;
  padding: 1.75rem 0 1.25rem;
}

.ls-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ls-hero h1 {
  margin: 0 0 0.85rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
}

.ls-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.ls-live-banner-wrap {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 45%, #fef3c7 100%);
  border-bottom: 2px solid #f59e0b;
  overflow: hidden;
}

.ls-live-banner-container {
  overflow: hidden;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.ls-live-banner-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.ls-live-banner-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  padding-left: 100%;
  animation: ls-banner-marquee-rtl 22s linear infinite;
  will-change: transform;
}

.ls-live-banner-text {
  margin: 0;
  padding: 0 3rem 0 0;
  flex: 0 0 auto;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #78350f;
  white-space: nowrap;
}

.ls-live-banner-text--dup {
  padding-right: 0;
}

@keyframes ls-banner-marquee-rtl {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-live-banner-track {
    animation: none;
    padding-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .ls-live-banner-text--dup {
    display: none;
  }

  .ls-live-banner-text {
    white-space: normal;
    text-align: center;
    padding: 0;
  }
}

.ls-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ls-filter {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ls-filter.is-active {
  background: #fff;
  color: var(--ls-navy);
  border-color: #fff;
}

.ls-filter[data-filter="court"].is-active {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0c1a3a;
  border-color: #fcd34d;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
}

.ls-filter[data-filter="court"].is-active.ls-filter--umpire-active {
  animation: ls-court-pulse 2s ease-in-out infinite;
}

@keyframes ls-court-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.28);
  }
}

.ls-refresh-note {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.88;
}

body.ls-page .header .auth-buttons .ls-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-sizing: border-box;
}

.ls-body {
  padding: 1.25rem 0 2.5rem;
}

.ls-live-board-view {
  display: grid;
  gap: 1rem;
}

body.ls-page.dashboard-v2 .ls-board-empty {
  margin: 0;
  padding: 1rem 0.25rem;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

body.ls-page.dashboard-v2 .tdb-live-board-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ls-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.ls-event-block {
  margin-bottom: 1.5rem;
}

.ls-event-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ls-navy);
}

.ls-match-list {
  display: grid;
  gap: 0.65rem;
}

.ls-match-card {
  background: #fff;
  border: 1px solid var(--ls-line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 24px rgba(12, 26, 58, 0.06);
}

.ls-match-card.is-live {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35), 0 8px 28px rgba(22, 163, 74, 0.1);
}

.ls-match-card.is-umpire-live {
  border-color: rgba(245, 158, 11, 0.75);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 10px 28px rgba(245, 158, 11, 0.12);
}

.ls-match-card.is-umpire-live.is-live {
  border-color: rgba(245, 158, 11, 0.9);
  animation: ls-umpire-live-glow 2.2s ease-in-out infinite;
}

@keyframes ls-umpire-live-glow {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35), 0 10px 28px rgba(245, 158, 11, 0.12);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22), 0 12px 32px rgba(245, 158, 11, 0.18);
  }
}

.ls-match-card.ls-match-card--flash {
  animation: ls-score-flash 0.85s ease;
}

@keyframes ls-score-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  40% {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.ls-match-chip--umpire {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.ls-match-meta--umpire {
  color: #b45309;
  font-weight: 600;
}

.ls-match-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ls-match-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ls-match-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
}

.ls-match-chip--live {
  background: #dcfce7;
  color: #166534;
}

.ls-match-chip--done {
  background: #f1f5f9;
  color: #475569;
}

.ls-match-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.ls-match-side {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.35;
}

.ls-match-side--won {
  color: var(--ls-blue);
}

.ls-match-vs {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.ls-match-foot {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--ls-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.ls-match-score {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ls-navy);
  font-variant-numeric: tabular-nums;
}

.ls-match-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.ls-rubber-stack {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.ls-rubber-row {
  font-size: 0.82rem;
  color: #334155;
  padding: 0.35rem 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .ls-match-sides {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ls-match-vs {
    display: none;
  }
}
