/* League-grouped collapsible fixtures (FotMob-style).
   Self-contained: only styles the .lg-* markup from fixture-groups.ejs. */

.lg-group {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.lg-header {
  position: sticky;
  top: var(--header-h, 62px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

.lg-header:hover {
  background: var(--surface);
}

.lg-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.lg-crest {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.lg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
  margin: 0 4px;
}

.lg-name {
  font-weight: 700;
  color: var(--text, #fff);
}

.lg-country {
  font-size: 0.82rem;
}

.lg-country::before {
  content: "·";
  margin-right: 6px;
  opacity: 0.6;
}

.lg-count {
  margin-left: auto;
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  line-height: 1.5;
}

.lg-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}

.lg-fixtures {
  display: block;
}

.lg-group.collapsed .lg-fixtures {
  display: none;
}

.lg-group.collapsed .lg-chevron {
  transform: rotate(-90deg);
}
