/* ===== ASPL Live Cricket PWA ===== */
.lc-app { --lc-accent: #3ecf8e; --lc-accent2: #7dffb2; }

.lc-shell { padding-bottom: 16px; }

.lc-app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--line);
}

.lc-app-header.compact .crest { display: none; }

.lc-back {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 1.2rem;
}

.lc-live-pill { margin-left: auto; }

.lc-live-badge,
.lc-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.15);
  color: #ff6b6b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lc-live-badge i,
.lc-live-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4444;
  animation: lc-pulse 1.2s ease infinite;
}

@keyframes lc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.lc-tabs {
  display: flex;
  gap: 8px;
  padding: 0 4px 12px;
}

.lc-tabs.inner { margin-bottom: 12px; }

.lc-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.lc-tab.on {
  border-color: var(--lc-accent);
  color: var(--lc-accent);
  background: rgba(62, 207, 142, 0.1);
}

.lc-match-list { display: flex; flex-direction: column; gap: 10px; }

.lc-match-card {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.lc-match-card:hover { transform: translateY(-1px); border-color: var(--lc-accent); }

.lc-match-card.is-live { border-color: rgba(255, 68, 68, 0.45); }

.lc-match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lc-match-teams { font-weight: 800; font-size: 1rem; }

.lc-match-scoreline {
  font-family: var(--display, 'Bebas Neue', sans-serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.lc-match-meta { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.lc-stream-wrap { margin-bottom: 12px; }

.lc-stream-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

/* Modern broadcast-style score ticker under the video — one row, no scroll */
.lc-ticker {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(62, 207, 142, 0.18), transparent 40%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.lc-ticker > * {
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(6px, 1.3vw, 11px);
  min-height: 40px;
  min-width: 0;
}

/* Team block — solid accent chip */
.lc-tk-team {
  flex: 0 0 auto;
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  letter-spacing: 0.05em;
  color: #08130d;
  background: linear-gradient(135deg, #7dffb2, #3ecf8e);
}

/* Big live score */
.lc-tk-score {
  flex: 0 0 auto;
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  text-shadow: 0 1px 6px rgba(62, 207, 142, 0.25);
}

/* Overs pill */
.lc-tk-overs {
  flex: 0 0 auto;
  gap: 3px;
  font-size: clamp(0.66rem, 1.9vw, 0.82rem);
  font-weight: 800;
  color: var(--muted);
}
.lc-tk-overs::after {
  content: "OV";
  font-size: 0.6em;
  font-weight: 700;
  opacity: 0.7;
  letter-spacing: 0.06em;
  margin-left: 1px;
}

/* Batsman segment */
.lc-tk-bat {
  flex: 1 1 0;
  min-width: 0;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}
.lc-tk-bat.on-strike {
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.16), rgba(62, 207, 142, 0.04));
}
.lc-tk-bat .lc-tk-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.62rem, 1.9vw, 0.8rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.lc-tk-bat.on-strike .lc-tk-name { color: #7dffb2; font-weight: 800; }

/* Runs (balls) — pinned right, never shrinks */
.lc-tk-runs {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.lc-tk-runs b {
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: clamp(0.9rem, 2.6vw, 1.1rem);
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}
.lc-tk-runs small {
  font-size: clamp(0.56rem, 1.6vw, 0.68rem);
  color: rgba(255, 255, 255, 0.6);
}

.lc-tk-strike {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.25);
  animation: lc-pulse 1.4s ease infinite;
}

.lc-stream-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lc-scoreboard {
  background: linear-gradient(145deg, rgba(62, 207, 142, 0.08), transparent 55%), var(--card);
}

.lc-main-score {
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
}

.lc-score-meta,
.lc-players-line {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.lc-players-line strong { color: var(--ink); }

.lc-innings-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lc-inn-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
}

.lc-inn-chip.on { border-color: var(--lc-accent); color: var(--lc-accent); }

.lc-ball-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.lc-ball {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--line);
  color: var(--ink);
}

.lc-ball.four { background: rgba(62, 207, 142, 0.25); color: var(--lc-accent); }
.lc-ball.six { background: rgba(125, 255, 178, 0.35); color: #fff; }
.lc-ball.w { background: rgba(220, 38, 38, 0.25); color: #ff6b6b; }

.lc-commentary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.lc-comment-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  border-left: 3px solid var(--lc-accent);
}

.lc-score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.lc-score-table th,
.lc-score-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.lc-score-table th { color: var(--muted); font-weight: 600; font-size: 0.72rem; }

.lc-score-table .out { color: var(--muted); }

/* Admin score desk */
.score-desk-page .score-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.score-pad .sp-btn {
  padding: 16px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.score-pad .sp-btn.four { border-color: var(--lc-accent); color: var(--lc-accent); }
.score-pad .sp-btn.six { background: rgba(62, 207, 142, 0.15); color: var(--lc-accent2); }
.score-pad .sp-btn.wicket { background: rgba(220, 38, 38, 0.12); color: #ff6b6b; }
.score-pad .sp-btn.extra { font-size: 0.9rem; }

.lc-score-hero { text-align: center; }
.lc-teams-row { font-weight: 700; margin-bottom: 6px; }
.lc-big-score { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem; color: var(--gold-soft); }
.lc-meta, .lc-chase { font-size: 0.85rem; color: var(--muted); }

[data-theme="light"] .lc-match-card,
[data-theme="light"] .lc-scoreboard {
  background: #fff;
}

/* Fixed over-break fullscreen (locked creative) */
.lc-over-break {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lc-over-break.is-visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 9999;
}

.lc-over-break:not(.is-visible) {
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.lc-over-break-preload {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 4px;
  height: 4px;
  opacity: 0;
  pointer-events: none;
  z-index: -2;
}

body.lc-over-break-open { overflow: hidden; }

.lc-over-break-inner {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background: #000;
}

.lc-over-break-video,
.lc-over-break-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Keep video in layout — display:none blocks autoplay on mobile. */
.lc-over-break-video {
  display: block;
  opacity: 0;
  visibility: hidden;
}
.lc-over-break-video.is-playing {
  opacity: 1;
  visibility: visible;
}
.lc-over-break-img { display: none; opacity: 0; transform: scale(1); }
.lc-over-break-img.is-playing {
  display: block;
  animation: lc-over-zoom 8s ease-in-out forwards;
}

@keyframes lc-over-zoom {
  0% { opacity: 0; transform: scale(1.08); }
  12% { opacity: 1; transform: scale(1); }
  88% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.9; transform: scale(1.06); }
}

.lc-over-break-badge {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(62, 207, 142, 0.5);
  color: #7dffb2;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ===== Live Match Page — broadcast modern ===== */
.lc-match-page {
  --lc-match-bg: var(--page-bg);
  --lc-panel-bg: var(--surface);
  --lc-panel-border: var(--line);
  overflow-x: hidden;
}

html:has(body.lc-match-page),
body.lc-match-page {
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

body.lc-match-page .desktop-frame {
  display: block;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow: visible;
  place-items: unset;
}

body.lc-match-page .app.lc-match-shell {
  display: flex;
  flex-direction: column;
  height: auto !important;
  max-height: none !important;
  min-height: 100dvh;
  overflow: visible !important;
}

.lc-match-page .lc-match-shell {
  background:
    radial-gradient(ellipse 80% 36% at 50% -8%, rgba(62, 207, 142, 0.16), transparent 58%),
    var(--lc-match-bg);
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100%;
}

.lc-match-page .lc-match-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 24px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

/* Header — slim broadcast bar */
.lc-match-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 10px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  min-width: 0;
}

.lc-match-head-copy {
  flex: 1;
  min-width: 0;
}
.lc-match-head-copy p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc-match-head-copy h1 {
  margin: 2px 0 0;
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--lc-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-match-page .lc-back {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(62, 207, 142, 0.08);
  border-color: rgba(62, 207, 142, 0.25);
}

.lc-match-page .lc-match-header .theme-toggle {
  position: static;
  margin-left: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  transform: none;
  z-index: auto;
  box-shadow: none;
}
.lc-match-page .lc-match-header .theme-toggle:hover {
  transform: none;
}
.lc-match-page .lc-match-header .theme-toggle em {
  font-size: 0.62rem;
}

.lc-match-page .lc-live-badge {
  flex: 0 0 auto;
  margin-left: 0;
  box-shadow: 0 0 16px rgba(255, 68, 68, 0.28);
}

@media (max-width: 380px) {
  .lc-match-page .lc-match-header .theme-toggle em {
    display: none;
  }
  .lc-match-page .lc-match-header .theme-toggle {
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
  }
}

/* Video + scoreboard custom player */
.lc-player {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  background: #000;
  overflow: hidden;
  min-width: 0;
  max-height: none;
}
.lc-player[hidden] { display: none !important; }

.lc-player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  flex: 0 0 auto;
  min-height: 0;
  max-height: min(42dvh, 260px);
}
.lc-player-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.lc-player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(62, 207, 142, 0.12), transparent 60%),
    #050807;
}
.lc-player-empty[hidden] { display: none !important; }

.lc-player-fs {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(6, 12, 9, 0.72);
  color: var(--gold-soft);
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.lc-player-fs:hover { background: rgba(6, 12, 9, 0.9); }

/* Admin-triggered run-rate graphic over live video */
.lc-worm-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, transparent 18%, rgba(3, 8, 6, 0.55) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.lc-worm-overlay.is-on {
  opacity: 1;
  visibility: visible;
}
.lc-worm-overlay-card {
  width: min(920px, 100%);
  border-radius: 16px;
  padding: 10px 12px 8px;
  background: rgba(8, 16, 12, 0.82);
  border: 1px solid rgba(62, 207, 142, 0.38);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(62, 207, 142, 0.12);
  backdrop-filter: blur(16px) saturate(1.25);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.lc-worm-overlay.is-on .lc-worm-overlay-card {
  transform: translateY(0) scale(1);
}
.lc-worm-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.lc-worm-overlay-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #3ecf8e;
}
.lc-worm-live-tag {
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lc-worm-overlay .lc-worm-legend {
  margin-bottom: 4px;
}
.lc-worm-overlay .lc-worm-wrap {
  min-height: 0;
  background: transparent;
  border-radius: 10px;
}
.lc-worm-overlay .lc-worm-empty {
  padding: 22px 10px;
  font-size: 0.78rem;
}
.lc-worm-overlay .lc-worm-key {
  color: #e8f5ee;
}

@media (max-width: 640px) {
  .lc-worm-overlay {
    padding: 8px;
  }
  .lc-worm-overlay-card {
    padding: 8px 8px 6px;
    border-radius: 14px;
  }
  .lc-worm-overlay-head h2 {
    font-size: 0.8rem;
  }
}

.lc-pts-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, transparent 12%, rgba(3, 8, 6, 0.62) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.lc-pts-overlay.is-on {
  opacity: 1;
  visibility: visible;
}
.lc-pts-overlay-card {
  width: min(1100px, 100%);
  border-radius: 16px;
  padding: 10px 12px 8px;
  background: rgba(8, 16, 12, 0.86);
  border: 1px solid rgba(62, 207, 142, 0.38);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(62, 207, 142, 0.12);
  backdrop-filter: blur(16px) saturate(1.25);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.lc-pts-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px 14px;
}
.lc-pts-group-title {
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ff0c4;
}
.lc-pts-group-title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.lc-pts-overlay.is-on .lc-pts-overlay-card {
  transform: translateY(0) scale(1);
}
.lc-pts-table-wrap {
  max-height: min(58dvh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lc-pts-live {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.lc-pts-live th,
.lc-pts-live td {
  padding: 5px 6px;
  text-align: center;
  color: #e8f5ee;
  white-space: nowrap;
}
.lc-pts-live th {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(62, 207, 142, 0.9);
  border-bottom: 1px solid rgba(62, 207, 142, 0.22);
}
.lc-pts-live td:nth-child(2),
.lc-pts-live th:nth-child(2) {
  text-align: left;
}
.lc-pts-live tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}
.lc-pts-live td b {
  color: #7dffb2;
}
.lc-pts-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .lc-pts-overlay { padding: 8px; }
  .lc-pts-overlay-card { padding: 8px 8px 6px; border-radius: 14px; }
  .lc-pts-live { font-size: 0.64rem; }
  .lc-pts-live th, .lc-pts-live td { padding: 4px 4px; }
}

/* 4 / 6 / Wicket broadcast graphic over live video */
.lc-burst {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.lc-burst.is-on {
  opacity: 1;
  visibility: visible;
  animation: lc-burst-hold 4s ease forwards;
}
.lc-burst-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.lc-burst.is-on .lc-burst-flash {
  animation: lc-burst-flash 0.7s ease-out;
}
.lc-burst.is-four .lc-burst-flash {
  background: radial-gradient(ellipse at 50% 48%, rgba(62, 207, 142, 0.42), transparent 62%);
}
.lc-burst.is-six .lc-burst-flash {
  background: radial-gradient(ellipse at 50% 48%, rgba(255, 214, 90, 0.4), rgba(62, 207, 142, 0.18) 46%, transparent 68%);
}
.lc-burst.is-wicket .lc-burst-flash {
  background: radial-gradient(ellipse at 50% 48%, rgba(255, 61, 90, 0.46), transparent 64%);
}
.lc-burst-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 28px 14px;
  border-radius: 22px;
  background: rgba(6, 12, 9, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px) saturate(1.2);
  transform: scale(0.55);
  opacity: 0;
}
.lc-burst.is-on .lc-burst-core {
  animation: lc-burst-pop 0.7s cubic-bezier(0.16, 1.2, 0.32, 1) forwards;
}
.lc-burst.is-four .lc-burst-core {
  border-color: rgba(62, 207, 142, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(62, 207, 142, 0.28);
}
.lc-burst.is-six .lc-burst-core {
  border-color: rgba(255, 214, 90, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 48px rgba(255, 214, 90, 0.32);
}
.lc-burst.is-wicket .lc-burst-core {
  border-color: rgba(255, 77, 109, 0.6);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 48px rgba(255, 61, 90, 0.35);
}
.lc-burst-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.72);
}
.lc-burst-title {
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: clamp(3.2rem, 14vw, 6.4rem);
  line-height: 0.85;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.lc-burst.is-four .lc-burst-title {
  background: linear-gradient(180deg, #effff6, #3ecf8e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lc-burst.is-six .lc-burst-title {
  background: linear-gradient(180deg, #fff6c7, #ffd65a 55%, #3ecf8e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lc-burst.is-wicket .lc-burst-title {
  background: linear-gradient(180deg, #ffe0e6, #ff4d6d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lc-burst-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  max-width: 70vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc-burst-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.lc-burst-fx i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  opacity: 0;
}
.lc-burst.is-on .lc-burst-fx i {
  animation: lc-burst-spark 0.9s ease-out forwards;
}
.lc-burst.is-four .lc-burst-fx i { background: #3ecf8e; }
.lc-burst.is-six .lc-burst-fx i { background: #ffd65a; }
.lc-burst.is-wicket .lc-burst-fx i { background: #ff4d6d; }
.lc-burst-fx i:nth-child(1) { --dx: -120px; --dy: -70px; animation-delay: 0.02s; }
.lc-burst-fx i:nth-child(2) { --dx: 130px; --dy: -60px; animation-delay: 0.05s; }
.lc-burst-fx i:nth-child(3) { --dx: -140px; --dy: 50px; animation-delay: 0.08s; }
.lc-burst-fx i:nth-child(4) { --dx: 125px; --dy: 65px; animation-delay: 0.04s; }
.lc-burst-fx i:nth-child(5) { --dx: 0px; --dy: -110px; animation-delay: 0.1s; }
.lc-burst-fx i:nth-child(6) { --dx: 0px; --dy: 100px; animation-delay: 0.07s; }
.lc-burst-fx i:nth-child(7) { --dx: -90px; --dy: 10px; animation-delay: 0.12s; }
.lc-burst-fx i:nth-child(8) { --dx: 95px; --dy: -8px; animation-delay: 0.09s; }

@keyframes lc-burst-pop {
  0% { transform: scale(0.45) translateY(12px); opacity: 0; }
  55% { transform: scale(1.08) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes lc-burst-flash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}
@keyframes lc-burst-spark {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}
@keyframes lc-burst-hold {
  0%, 78% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@media (max-width: 640px) {
  .lc-burst-core { padding: 8px 18px 12px; border-radius: 18px; }
  .lc-burst-title { font-size: clamp(2.6rem, 18vw, 4.4rem); }
}

.lc-broadcast-wrap {
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 6;
  min-width: 0;
  flex: 0 0 auto;
  background: var(--surface);
}
.lc-broadcast-wrap[hidden] { display: none !important; }

.lc-broadcast-dock {
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(62, 207, 142, 0.16), transparent 46%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: none;
  border-top: 1px solid var(--line);
  box-shadow: none;
}

/* Full width / fullscreen keeps scoreboard attached */
.lc-player:fullscreen,
.lc-player:-webkit-full-screen,
.lc-player.is-expanded {
  width: 100vw;
  height: 100%;
  max-height: 100dvh;
  background: #000;
  border-radius: 0;
}
.lc-player.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 9990;
  height: 100dvh;
}
body.lc-player-expanded { overflow: hidden; }

.lc-player:fullscreen .lc-player-stage,
.lc-player:-webkit-full-screen .lc-player-stage,
.lc-player.is-expanded .lc-player-stage {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}
.lc-player:fullscreen .lc-broadcast-wrap,
.lc-player:-webkit-full-screen .lc-broadcast-wrap,
.lc-player.is-expanded .lc-broadcast-wrap {
  flex: 0 0 auto;
}

.lc-bc-score {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(62, 207, 142, 0.07);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.lc-bc-team {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 8px;
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #06150e;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 4px 12px rgba(62, 207, 142, 0.28);
}

.lc-bc-nums {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.lc-bc-nums strong {
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(62, 207, 142, 0.28);
}
.lc-bc-nums span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lc-bc-bowler {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 2px 8px;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
}
.lc-bc-bowl-label {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}
.lc-bc-bowl-name {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  text-transform: capitalize;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lc-bc-bowl-fig {
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  white-space: nowrap;
  line-height: 1;
}

.lc-bc-pills {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.lc-bc-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}
.lc-bc-pill span {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lc-bc-pill b {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.lc-bc-pill.target b { color: var(--danger); }

/* Batsmen — side by side, names wrap so they never clip */
.lc-bc-lineup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
}

.lc-bc-batter {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 6px;
  row-gap: 2px;
  align-items: start;
  padding: 8px 10px;
  min-width: 0;
  border-right: 1px solid var(--hairline);
}
.lc-bc-batter:last-child { border-right: none; }
.lc-bc-batter.on-strike {
  background: linear-gradient(180deg, rgba(62, 207, 142, 0.18), rgba(62, 207, 142, 0.05));
  box-shadow: inset 3px 0 0 var(--gold);
}
.lc-bc-batter.is-empty .lc-bc-name {
  color: var(--muted);
  font-style: italic;
  text-transform: none;
}

.lc-bc-mark {
  grid-column: 1;
  grid-row: 1;
  width: 10px;
  margin-top: 5px;
  display: grid;
  place-items: center;
}

.lc-bc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.28);
  animation: lc-pulse 1.4s ease infinite;
}

.lc-bc-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lc-bc-batter.on-strike .lc-bc-name { color: var(--gold-soft); }

.lc-bc-fig {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.lc-bc-fig b {
  font-family: 'Bebas Neue', var(--display), sans-serif;
  font-size: 1.15rem;
  color: var(--gold-soft);
  line-height: 1;
}
.lc-bc-fig small {
  font-size: 0.68rem;
  color: var(--muted);
}
.lc-bc-fig.lc-bc-wait { color: var(--muted); }

/* Desktop only — one inline live bar. Mobile (incl. full width) keeps 2 rows. */
@media (min-width: 900px) {
  .lc-player-stage {
    max-height: min(56dvh, 520px);
  }
  .lc-player .lc-broadcast-dock {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 56px;
  }
  .lc-player .lc-bc-score {
    flex: 1 1 auto;
    border-bottom: none;
    min-width: 0;
    padding: 8px 10px;
  }
  .lc-player .lc-bc-lineup {
    flex: 1 1 auto;
    min-width: 0;
    border-left: 1px solid var(--hairline);
  }
  .lc-player .lc-bc-nums strong {
    font-size: 1.45rem;
  }
  .lc-player .lc-bc-bowler {
    flex: 1 1 auto;
    max-width: none;
  }
  .lc-player .lc-bc-bowl-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lc-player .lc-bc-batter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
  }
  .lc-player .lc-bc-mark {
    margin-top: 0;
  }
  .lc-player .lc-bc-name {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
    word-break: normal;
  }
  .lc-player .lc-bc-fig {
    flex: 0 0 auto;
  }
}

/* Empty state */
.lc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(62, 207, 142, 0.2);
  background: rgba(62, 207, 142, 0.04);
  text-align: center;
}
.lc-empty-state .lc-empty-ico { font-size: 1.8rem; opacity: 0.85; }
.lc-empty-state p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Panels */
.lc-match-page .lc-panel {
  margin: 12px 10px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--lc-panel-bg);
  border: 1px solid var(--lc-panel-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  min-width: 0;
  overflow: hidden;
}

.lc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.lc-panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--lc-accent);
}
.lc-panel-tag {
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--lc-panel-border);
  white-space: nowrap;
}
.lc-panel-subhead {
  margin: 4px 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* This over — wrap, never clip */
.lc-this-over {
  margin-bottom: 4px;
  min-width: 0;
}
.lc-this-over-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 6px;
}

.lc-match-page .lc-ball-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  overflow: visible;
}

.lc-match-page .lc-ball {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lc-match-page .lc-ball.four {
  background: rgba(62, 207, 142, 0.22);
  border-color: rgba(62, 207, 142, 0.45);
  color: #7dffb2;
}
.lc-match-page .lc-ball.six {
  background: linear-gradient(135deg, rgba(125, 255, 178, 0.4), rgba(62, 207, 142, 0.22));
  border-color: rgba(125, 255, 178, 0.55);
  color: #fff;
  box-shadow: 0 0 14px rgba(125, 255, 178, 0.25);
}
.lc-match-page .lc-ball.w {
  background: rgba(220, 38, 38, 0.24);
  border-color: rgba(255, 107, 107, 0.5);
  color: #ff8a8a;
}
.lc-match-page .lc-ball.ex {
  background: rgba(62, 207, 142, 0.12);
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--gold-soft);
}

.lc-empty-balls {
  margin: 0;
  padding: 16px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Commentary timeline */
.lc-match-page .lc-commentary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
}

.lc-match-page .lc-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: none;
  min-width: 0;
}

.lc-comment-ball {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.lc-comment-item.four .lc-comment-ball {
  background: rgba(62, 207, 142, 0.2);
  color: #7dffb2;
}
.lc-comment-item.six .lc-comment-ball {
  background: rgba(125, 255, 178, 0.25);
  color: #fff;
}
.lc-comment-item.wicket .lc-comment-ball {
  background: rgba(220, 38, 38, 0.22);
  color: #ff8a8a;
}

.lc-comment-body {
  min-width: 0;
  flex: 1;
}
.lc-comment-body strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.lc-comment-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Scorecard tabs */
.lc-match-page .lc-score-tabs {
  padding: 4px;
  margin-bottom: 10px;
  gap: 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--lc-panel-border);
}

.lc-match-page .lc-score-tabs .lc-tab {
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lc-match-page .lc-score-tabs .lc-tab.on {
  background: linear-gradient(135deg, rgba(62, 207, 142, 0.28), rgba(62, 207, 142, 0.12));
  color: #7dffb2;
  box-shadow: 0 4px 12px rgba(62, 207, 142, 0.15);
}

/* Score tables */
.lc-match-page .lc-score-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 100%;
}

.lc-match-page .lc-score-table {
  font-size: 0.78rem;
  min-width: 320px;
}
.lc-match-page .lc-score-table th {
  position: sticky;
  top: 0;
  background: rgba(8, 12, 10, 0.95);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 8px;
  z-index: 1;
  white-space: nowrap;
}
.lc-match-page .lc-score-table td {
  padding: 10px 8px;
  vertical-align: middle;
}
.lc-match-page .lc-score-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.lc-match-page .lc-score-table tbody tr.on-strike {
  background: rgba(62, 207, 142, 0.08);
}
.lc-match-page .lc-score-table tbody tr.on-strike td {
  font-weight: 700;
}

.lc-batter-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 46vw;
}
.lc-batter-cell span {
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.lc-batter-cell small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.lc-row-strike {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2);
}
.lc-row-strike.bowl { background: var(--gold); box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.2); }

.lc-empty-row {
  text-align: center;
  color: var(--muted);
  padding: 20px !important;
}

.lc-worm-panel {
  padding-bottom: 10px;
}
.lc-worm-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 8px;
}
.lc-worm-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text, #e8f5ee);
}
.lc-worm-key i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}
.lc-worm-key i.wk { background: #ff4d6d; }
.lc-worm-wrap {
  position: relative;
  min-height: 210px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(32, 110, 62, 0.38), transparent 58%),
    linear-gradient(180deg, #0c1712 0%, #07110c 100%);
  overflow: hidden;
}
.lc-worm-svg {
  display: block;
  width: 100%;
  height: auto;
}
.lc-worm-grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.6;
}
.lc-worm-axis {
  fill: rgba(232, 245, 238, 0.55);
  font-size: 8px;
  font-family: Outfit, system-ui, sans-serif;
}
.lc-worm-label {
  fill: rgba(62, 207, 142, 0.9);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-family: Outfit, system-ui, sans-serif;
}
.lc-worm-empty {
  margin: 0;
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

[data-theme="light"] .lc-worm-wrap {
  background:
    radial-gradient(ellipse at 50% 110%, rgba(62, 207, 142, 0.18), transparent 58%),
    linear-gradient(180deg, #eef8f2 0%, #d9efe4 100%);
}
[data-theme="light"] .lc-worm-grid { stroke: rgba(15, 107, 69, 0.14); }
[data-theme="light"] .lc-worm-axis { fill: #4a6b5c; }
[data-theme="light"] .lc-worm-label { fill: #0f6b45; }
[data-theme="light"] .lc-worm-key { color: #143528; }

[data-theme="light"] .lc-match-page {
  --lc-match-bg: #e8f5ee;
  --lc-panel-bg: #fff;
  --lc-panel-border: rgba(26, 100, 65, 0.15);
}
[data-theme="light"] .lc-match-head-copy h1 {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #0f6b45;
}
[data-theme="light"] .lc-match-page .lc-score-table th {
  background: #f4faf7;
}

@media (min-width: 640px) {
  .lc-match-page .lc-panel {
    margin-left: 14px;
    margin-right: 14px;
  }
}

/* ============================================================
   Creative layer v2 — modern polish for the public surfaces
   (append-only; uses existing tokens, safe for dark + light)
   ============================================================ */

/* Match cards — premium glass surface with animated accents */
.lc-match-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(62, 207, 142, 0.06), transparent 46%),
    var(--card, var(--surface));
  box-shadow: var(--elev-1, 0 10px 30px rgba(0, 0, 0, 0.28));
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease, box-shadow 0.22s ease;
  isolation: isolate;
}

/* Shimmering hairline across the top edge */
.lc-match-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62, 207, 142, 0.55), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.lc-match-card:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 207, 142, 0.4);
  box-shadow:
    var(--elev-2, 0 22px 48px rgba(0, 0, 0, 0.4)),
    0 0 0 1px rgba(62, 207, 142, 0.12);
}

.lc-match-card:active { transform: translateY(-1px) scale(0.995); }

/* Live card — glowing pulsing accent rail on the left */
.lc-match-card.is-live {
  border-color: rgba(255, 68, 68, 0.4);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 68, 68, 0.12), transparent 42%),
    var(--card, var(--surface));
}

.lc-match-card.is-live::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6b6b, #ff2d2d);
  box-shadow: 0 0 14px rgba(255, 68, 68, 0.6);
  animation: lc-rail 1.6s ease-in-out infinite;
}

@keyframes lc-rail {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.lc-match-teams {
  letter-spacing: 0.01em;
}

.lc-match-scoreline {
  text-shadow: 0 6px 20px rgba(62, 207, 142, 0.25);
}

/* Animated ping ring on live badges */
.lc-match-card .lc-live-badge i {
  position: relative;
}
.lc-match-card .lc-live-badge i::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 68, 68, 0.6);
  animation: lc-ping 1.4s ease-out infinite;
}

@keyframes lc-ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Staggered entrance for the match list */
@keyframes lc-card-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.lc-match-list .lc-match-card {
  animation: lc-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lc-match-list .lc-match-card:nth-child(2) { animation-delay: 0.06s; }
.lc-match-list .lc-match-card:nth-child(3) { animation-delay: 0.12s; }
.lc-match-list .lc-match-card:nth-child(4) { animation-delay: 0.18s; }
.lc-match-list .lc-match-card:nth-child(5) { animation-delay: 0.24s; }

/* Home header — ambient glow behind the crest */
.portal-home .lc-app-header {
  position: relative;
}
.portal-home .lc-app-header::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.28), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.portal-home .lc-app-header > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .lc-match-card,
  .lc-match-card.is-live::after,
  .lc-match-card .lc-live-badge i::after,
  .lc-match-list .lc-match-card {
    animation: none !important;
    transition: none !important;
  }
}

[data-theme="light"] .lc-match-card {
  border: 1px solid rgba(18, 140, 90, 0.16);
  box-shadow: 0 12px 30px rgba(16, 80, 55, 0.08);
}
[data-theme="light"] .lc-match-card:hover {
  border-color: rgba(24, 181, 111, 0.4);
  box-shadow: 0 18px 42px rgba(16, 80, 55, 0.14), 0 0 0 1px rgba(62, 207, 142, 0.14);
}
[data-theme="light"] .lc-match-scoreline {
  text-shadow: none;
}

/* ============================================================
   Next Match promo poster (IND vs PAK style, team logos)
   Full-cover overlay on the live video, admin-toggled.
   ============================================================ */
.lc-next-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(62, 207, 142, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(3, 8, 6, 0.72), rgba(2, 5, 4, 0.9));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lc-next-overlay.is-on {
  opacity: 1;
  visibility: visible;
}
.lc-next-card {
  position: relative;
  width: min(760px, 100%);
  border-radius: 24px;
  padding: 30px 22px 20px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(62, 207, 142, 0.16), transparent 55%),
    linear-gradient(165deg, #0e1a14 0%, #0a120e 55%, #0d1712 100%);
  border: 1px solid rgba(62, 207, 142, 0.4);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(62, 207, 142, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(26px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.lc-next-overlay.is-on .lc-next-card {
  transform: translateY(0) scale(1);
}
.lc-next-kicker {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #06150e;
  background: linear-gradient(135deg, #3ecf8e, #7dffb2);
  box-shadow: 0 6px 18px rgba(62, 207, 142, 0.34);
}
.lc-next-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.lc-next-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.lc-next-logo {
  width: clamp(84px, 20vw, 140px);
  height: clamp(84px, 20vw, 140px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 6px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.14), transparent 60%),
    #0b1410;
  border: 3px solid var(--tc, #3ecf8e);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 0 26px color-mix(in srgb, var(--tc, #3ecf8e) 45%, transparent);
  overflow: hidden;
}
.lc-next-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.lc-next-logo-mono b {
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--tc, #3ecf8e);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.lc-next-code {
  font-size: clamp(1.5rem, 6vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #f2fff8;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}
.lc-next-name {
  font-size: clamp(0.68rem, 2.2vw, 0.9rem);
  font-weight: 700;
  color: #a9c7ba;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc-next-vs {
  display: grid;
  place-items: center;
}
.lc-next-vs span {
  display: grid;
  place-items: center;
  width: clamp(44px, 11vw, 66px);
  height: clamp(44px, 11vw, 66px);
  border-radius: 50%;
  font-size: clamp(0.9rem, 3vw, 1.4rem);
  font-weight: 900;
  font-style: italic;
  color: #fff;
  background: linear-gradient(135deg, #ff5b5b, #c0392b);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px rgba(192, 57, 43, 0.5);
}
.lc-next-foot {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: clamp(0.72rem, 2.4vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #eafff5;
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.34);
}
@media (max-width: 560px) {
  .lc-next-card { padding: 22px 14px 16px; border-radius: 18px; }
  .lc-next-teams { margin-top: 16px; }
  .lc-next-name { max-width: 10ch; }
}
[data-theme="light"] .lc-next-card {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(18, 140, 90, 0.14), transparent 55%),
    linear-gradient(165deg, #ffffff, #eef8f2 60%, #ffffff);
  border-color: rgba(18, 140, 90, 0.3);
  box-shadow: 0 26px 60px rgba(16, 80, 55, 0.22), 0 0 26px rgba(62, 207, 142, 0.12);
}
[data-theme="light"] .lc-next-code { color: #0c2117; text-shadow: none; }
[data-theme="light"] .lc-next-name { color: #3f5c4e; }
[data-theme="light"] .lc-next-logo {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), #eef6f1 70%);
}
[data-theme="light"] .lc-next-foot {
  color: #0c2117;
  background: rgba(18, 140, 90, 0.1);
  border-color: rgba(18, 140, 90, 0.28);
}
