/* LSL50 Nivel C — público premium (posiciones / líderes / calendario) */

/* ── Standings panel ── */
.lsl-standings-panel {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 37, 72, 0.55), rgba(8, 12, 20, 0.92));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.lsl-standings-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #d7a72f, #f5d78a 45%, transparent 85%);
}

.lsl-standings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lsl-standings-head .lsl-brand-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--lsl-brand-gold, #d7a72f);
}

.lsl-standings-head h2 {
  margin: 0;
  font-family: var(--lsl-font-display, "Oswald", sans-serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.lsl-standings-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lsl-brand-gold, #d7a72f);
  text-decoration: none;
}

.lsl-standings-link:hover {
  color: #f5d78a;
}

.lsl-standings-table {
  width: 100%;
  border-collapse: collapse;
}

.lsl-standings-table th,
.lsl-standings-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.lsl-standings-table thead th {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.28);
}

.lsl-standings-table tbody tr:hover td {
  background: rgba(215, 167, 47, 0.06);
}

.lsl-standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.lsl-standings-pos {
  font-family: var(--lsl-font-display, "Oswald", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.lsl-team-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Logos de equipo: caja fija + contain (misma escala visual entre PNG distintos) */
.lsl-team-logo,
.lsl-team-cell img,
.lsl-cal-team img,
.lsl-team-card img {
  display: block;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lsl-team-logo--sm {
  width: 24px;
  height: 24px;
  padding: 2px;
  border-radius: 7px;
}

.lsl-team-logo--md {
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 10px;
}

.lsl-team-logo--lg {
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 12px;
}

.lsl-team-logo--xl,
.lsl-gc-logo:not(.lsl-gc-logo-fallback) {
  width: 72px;
  height: 72px;
  padding: 6px;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.lsl-team-card .lsl-team-logo,
.lsl-team-card img {
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.lsl-team-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.lsl-num-win { color: #34d399; font-weight: 800; }
.lsl-num-loss { color: #f87171; font-weight: 700; }
.lsl-num-pct {
  color: var(--lsl-brand-gold, #d7a72f);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}
.lsl-num-streak { font-weight: 800; color: #fff; }
.lsl-num-muted { color: rgba(255, 255, 255, 0.45); font-size: 12px; font-weight: 700; }

.lsl-standings-panel.is-compact .lsl-standings-head {
  padding: 14px 16px 12px;
}

.lsl-standings-panel.is-compact .lsl-standings-table th,
.lsl-standings-panel.is-compact .lsl-standings-table td {
  padding: 10px 12px;
}

/* ── Rule notes (brand, not blue alert) ── */
.lsl-rule-note--brand,
.lsl-rule-note.lsl-rule-note--brand {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(215, 167, 47, 0.22);
  background: rgba(215, 167, 47, 0.07);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

/* ── Department / leader boards ── */
.lsl-dept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lsl-dept-card {
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.95), rgba(8, 12, 20, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  position: relative;
}

.lsl-dept-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #d7a72f, transparent 70%);
}

.lsl-dept-head {
  padding: 14px 16px;
  font-family: var(--lsl-font-display, "Oswald", sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 37, 72, 0.45);
}

.lsl-dept-head span {
  color: rgba(215, 167, 47, 0.85);
  font-weight: 600;
}

.lsl-dept-body {
  padding: 6px;
}

.lsl-rank-row {
  display: grid;
  grid-template-columns: 28px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.lsl-rank-row:hover {
  background: rgba(215, 167, 47, 0.07);
}

.lsl-rank-num {
  font-family: var(--lsl-font-display, "Oswald", sans-serif);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.lsl-rank-row:nth-child(1) .lsl-rank-num { color: #f5d78a; }
.lsl-rank-row:nth-child(2) .lsl-rank-num { color: #cbd5e1; }
.lsl-rank-row:nth-child(3) .lsl-rank-num { color: #d97706; }

.lsl-rank-meta {
  min-width: 0;
}

.lsl-rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.lsl-rank-team {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.lsl-rank-val {
  font-family: var(--lsl-font-display, "Oswald", sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lsl-brand-gold, #d7a72f);
  font-variant-numeric: tabular-nums;
}

/* Feature heroes */
.lsl-feature-hero--photo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(215, 167, 47, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 167, 47, 0.16), transparent 42%),
    linear-gradient(135deg, #0a2548, #08101c 60%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.lsl-feature-hero--photo .lsl-feature-name {
  font-family: var(--lsl-font-display, "Oswald", sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Calendar / panel shell */
.lsl-panel-shell {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 37, 72, 0.4), rgba(8, 12, 20, 0.95));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  padding: 16px 18px 18px;
  position: relative;
}

.lsl-panel-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #d7a72f, transparent 75%);
}

@media (max-width: 1100px) {
  .lsl-dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lsl-standings-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .lsl-dept-grid {
    grid-template-columns: 1fr;
  }
  .lsl-feature-hero--photo {
    grid-template-columns: 1fr;
  }
}

/* ── Stats hub tabs (Líderes | Por equipo | General) ── */
.lsl-stats-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 8px;
  padding: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.85);
  scrollbar-width: none;
  position: sticky;
  top: 64px;
  z-index: 20;
}

.lsl-stats-tabs::-webkit-scrollbar {
  display: none;
}

.lsl-stats-tab {
  flex: 1 1 0;
  min-width: 6.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--lsl-font-display, "Oswald", sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.lsl-stats-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lsl-stats-tab.is-active {
  color: #0b1f3a;
  background: linear-gradient(180deg, #e6c04a, #d7a72f);
  box-shadow: 0 6px 16px rgba(215, 167, 47, 0.28);
}

.lsl-team-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 28rem;
}

.lsl-team-filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lsl-team-select {
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 24, 40, 0.95);
  color: #fff;
  padding: 12px 14px;
  font-size: 1rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d7a72f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.lsl-team-select:focus {
  outline: none;
  border-color: #d7a72f;
  box-shadow: 0 0 0 1px rgba(215, 167, 47, 0.45);
}

@media (max-width: 720px) {
  .lsl-stats-tabs {
    top: 56px;
  }
  .lsl-stats-tab {
    flex: 1 0 auto;
    font-size: 0.78rem;
    padding: 10px 12px;
  }
}
