.lmc-overlay {
  --lmc-bg: #080d17;
  --lmc-surface: #101827;
  --lmc-surface-2: #172235;
  --lmc-border: rgba(148, 163, 184, 0.16);
  --lmc-text: #f8fafc;
  --lmc-muted: #94a3b8;
  --lmc-blue: #4facfe;
  --lmc-cyan: #00f0ff;
  --lmc-live: #38e07b;
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 15, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--lmc-text);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

.lmc-overlay[hidden] {
  display: none;
}

.lmc-shell {
  width: min(100%, 980px);
  max-height: min(880px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid var(--lmc-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 0%, rgba(13, 89, 242, 0.19), transparent 34%),
    var(--lmc-bg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.lmc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--lmc-border);
}

.lmc-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--lmc-cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lmc-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lmc-live);
  box-shadow: 0 0 14px rgba(56, 224, 123, 0.8);
}

.lmc-title {
  margin: 0;
  color: var(--lmc-text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lmc-subtitle {
  margin: 6px 0 0;
  color: var(--lmc-muted);
  font-size: 0.84rem;
}

.lmc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lmc-icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--lmc-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--lmc-text);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lmc-icon-button:hover {
  border-color: rgba(79, 172, 254, 0.55);
  background: rgba(79, 172, 254, 0.1);
  transform: translateY(-1px);
}

.lmc-icon-button:focus-visible,
.lmc-tab:focus-visible,
.lmc-primary-button:focus-visible {
  outline: 2px solid var(--lmc-cyan);
  outline-offset: 2px;
}

.lmc-sourcebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 24px;
  border-bottom: 1px solid var(--lmc-border);
  background: rgba(15, 23, 42, 0.72);
  color: var(--lmc-muted);
  font-size: 0.76rem;
}

.lmc-source-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.lmc-source-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lmc-live);
  content: '';
}

.lmc-source-status[data-status='partial']::before {
  background: #fbbf24;
}

.lmc-source-status[data-status='unavailable']::before {
  background: #fb7185;
}

.lmc-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  overflow-x: auto;
  border-bottom: 1px solid var(--lmc-border);
  scrollbar-width: none;
}

.lmc-tabs::-webkit-scrollbar {
  display: none;
}

.lmc-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--lmc-border);
  border-radius: 999px;
  background: transparent;
  color: var(--lmc-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.lmc-tab[aria-selected='true'] {
  border-color: rgba(79, 172, 254, 0.48);
  background: linear-gradient(135deg, rgba(13, 89, 242, 0.24), rgba(0, 240, 255, 0.1));
  color: var(--lmc-text);
}

.lmc-count {
  min-width: 21px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  color: currentColor;
  font-size: 0.68rem;
  text-align: center;
}

.lmc-tab[data-feed='live'][aria-selected='true'] .lmc-count {
  background: rgba(56, 224, 123, 0.18);
  color: #83f5ad;
}

.lmc-content {
  min-height: 300px;
  max-height: calc(100vh - 235px);
  padding: 20px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lmc-message {
  margin: 0 0 16px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.lmc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lmc-match {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--lmc-border);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23, 34, 53, 0.98), rgba(12, 19, 32, 0.98));
}

.lmc-match[data-live='true'] {
  grid-column: 1 / -1;
  border-color: rgba(56, 224, 123, 0.26);
  box-shadow: inset 0 1px 0 rgba(56, 224, 123, 0.08);
}

.lmc-match-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 0;
  color: var(--lmc-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lmc-live-badge,
.lmc-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  white-space: nowrap;
}

.lmc-live-badge {
  background: rgba(56, 224, 123, 0.14);
  color: #83f5ad;
}

.lmc-live-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
  content: '';
}

.lmc-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
}

.lmc-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--lmc-text);
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

.lmc-team-logo,
.lmc-team-fallback {
  width: 44px;
  height: 44px;
}

.lmc-team-logo {
  object-fit: contain;
}

.lmc-team-fallback {
  display: grid;
  place-items: center;
  border: 1px solid var(--lmc-border);
  border-radius: 50%;
  background: rgba(79, 172, 254, 0.1);
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 800;
}

.lmc-team-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lmc-score {
  color: var(--lmc-text);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.lmc-kickoff {
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.lmc-venue {
  margin-top: 4px;
  color: var(--lmc-muted);
  font-size: 0.67rem;
  font-weight: 500;
}

.lmc-details {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  padding: 0 14px 14px;
}

.lmc-detail-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 13px;
  background: rgba(2, 6, 15, 0.32);
}

.lmc-detail-title {
  margin: 0 0 10px;
  color: var(--lmc-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lmc-event-list {
  display: grid;
  gap: 8px;
}

.lmc-event {
  display: grid;
  grid-template-columns: 38px 20px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  color: #e2e8f0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.lmc-event-minute {
  color: #83f5ad;
  font-weight: 800;
}

.lmc-event-detail {
  color: var(--lmc-muted);
  font-size: 0.67rem;
}

.lmc-stat-grid {
  display: grid;
  gap: 10px;
}

.lmc-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.lmc-stat-label {
  color: var(--lmc-muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.lmc-data-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--lmc-muted);
  font-size: 0.66rem;
}

.lmc-verified {
  color: #83f5ad;
}

.lmc-empty,
.lmc-error,
.lmc-loading {
  display: grid;
  min-height: 290px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.5);
  text-align: center;
}

.lmc-empty-icon,
.lmc-error-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: rgba(79, 172, 254, 0.1);
  color: #7dd3fc;
  font-size: 1.45rem;
}

.lmc-empty h3,
.lmc-error h3 {
  margin: 0;
  color: var(--lmc-text);
  font-size: 1rem;
}

.lmc-empty p,
.lmc-error p {
  max-width: 480px;
  margin: 0;
  color: var(--lmc-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.lmc-primary-button {
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #0d59f2, #4facfe);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.77rem;
  font-weight: 800;
}

.lmc-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(148, 163, 184, 0.18);
  border-top-color: var(--lmc-cyan);
  border-radius: 50%;
  animation: lmc-spin 700ms linear infinite;
}

@keyframes lmc-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
  .lmc-overlay {
    align-items: end;
    padding: 0;
  }

  .lmc-shell {
    width: 100%;
    max-height: 94dvh;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
  }

  .lmc-header {
    padding: 18px 16px 13px;
  }

  .lmc-sourcebar,
  .lmc-tabs {
    padding-right: 16px;
    padding-left: 16px;
  }

  .lmc-sourcebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .lmc-content {
    max-height: calc(94dvh - 220px);
    padding: 16px 16px 26px;
  }

  .lmc-grid {
    grid-template-columns: 1fr;
  }

  .lmc-match[data-live='true'] {
    grid-column: auto;
  }

  .lmc-details {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmc-icon-button,
  .lmc-spinner {
    transition: none;
    animation-duration: 1.5s;
  }
}
