/* MLP live session — strip legacy dark sticky footer (load last; new file avoids stale cache) */
#live-session .next-round-bar,
#live-session .next-round-bar.show,
#live-session .mlp-action-bar,
#live-session .mlp-week-finish-row {
  background: #ECEFF1 !important;
  background-color: #ECEFF1 !important;
  background-image: none !important;
  box-shadow: none !important;
  position: static !important;
}

#live-session.ls-mlp-live,
#live-session.ls-mlp-live .ls-body,
#live-session:has(.ls-mlp-screen),
#live-session:has(.ls-mlp-screen) .ls-body {
  background-color: #ECEFF1 !important;
}

#live-session .mlp-matchup-finish-btn {
  box-shadow: 0 2px 8px rgba(249, 168, 37, 0.22) !important;
}

.mlp-lineup-sub-banner {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid #FFB74D;
  background: linear-gradient(90deg, #FFF8E1 0%, #FFF3E0 100%);
  color: #E65100;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mlp-lineup-sub-banner i {
  font-size: 15px;
  color: #F57C00;
  flex-shrink: 0;
}
.mlp-lineup-block--has-sub {
  border-color: #FFB74D;
  box-shadow: 0 0 0 1px rgba(245, 124, 0, 0.14), 0 2px 8px rgba(245, 124, 0, 0.1);
}
.mlp-lu-player--sub {
  background: #FFF3E0 !important;
  border-color: #FFB74D !important;
  color: #E65100 !important;
}
.mlp-lu-sub-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: #F57C00;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
}

.mlp-sub-card-status--locked {
  color: #E65100;
  background: #FFF3E0;
  border: 1px solid #FFB74D;
}
.mlp-sub-locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #E65100;
  background: #FFF3E0;
  border: 1px solid #FFB74D;
  border-radius: 6px;
  padding: 4px 8px;
}

.mlp-lineup-captain {
  font-weight: 500;
  color: #546E7A;
  font-size: 0.92em;
}

.mlp-subs-bar--collapsible summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.mlp-subs-bar--collapsible summary::-webkit-details-marker { display: none; }
.mlp-subs-summary-meta { font-size: 13px; color: #607D8B; }

.ls-mlp-playoffs-screen .mrr-bracket-team {
  color: #1A237E !important;
}
.ls-mlp-playoffs-screen .mrr-bracket-match {
  background: #fff;
  border: 1px solid #CFD8DC;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.ls-mlp-playoffs-screen .mrr-bracket-score {
  color: #37474F;
}
.ls-mlp-playoffs-screen .mlp-po-bracket {
  gap: 16px;
}
.ls-mlp-playoffs-screen .mrr-round-lbl,
.ls-mlp-playoffs-screen .mrr-bronze-sub {
  color: #455A64 !important;
}
.ls-mlp-playoffs-screen .mrr-bracket-round {
  margin-bottom: 12px;
}

.mlp-my-match-sub-banner {
  padding: 10px 12px;
  border-radius: 8px;
  background: #FFF3E0;
  color: #E65100;
}

.mlp-po-tie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.mlp-po-podium {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #FFFDE7 0%, #FFF8E1 55%, #FFECB3 100%);
  border: 1px solid #FFE082;
}
.mlp-po-podium-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #E65100;
  margin-bottom: 12px;
}
.mlp-po-podium-places {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: flex-end;
}
.mlp-po-podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 88px;
  padding: 10px 12px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #E0E0E0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.mlp-po-podium-place--gold {
  order: 2;
  border-color: #FFD54F;
  background: linear-gradient(180deg, #FFFDE7 0%, #fff 100%);
  transform: scale(1.05);
}
.mlp-po-podium-place--silver { order: 1; }
.mlp-po-podium-place--bronze { order: 3; }
.mlp-po-podium-name {
  font-size: 12px;
  font-weight: 700;
  color: #263238;
  text-align: center;
  line-height: 1.25;
}
.mlp-po-podium-rank {
  font-size: 10px;
  font-weight: 600;
  color: #78909C;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mlp-po-medal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  font-size: 13px;
  vertical-align: middle;
}
.mlp-po-medal-badge--gold {
  color: #F57F17;
  background: linear-gradient(145deg, #FFF9C4, #FFD54F);
}
.mlp-po-medal-badge--silver {
  color: #546E7A;
  background: linear-gradient(145deg, #ECEFF1, #B0BEC5);
}
.mlp-po-medal-badge--bronze {
  color: #5D4037;
  background: linear-gradient(145deg, #EFEBE9, #BCAAA4);
}
.ls-mlp-playoffs-screen .mrr-bracket-team--medal-gold {
  font-weight: 700;
  color: #E65100 !important;
}
.ls-mlp-playoffs-screen .mrr-bracket-team--medal-silver {
  font-weight: 600;
  color: #455A64 !important;
}
.ls-mlp-playoffs-screen .mrr-bracket-team--medal-bronze {
  font-weight: 600;
  color: #6D4C41 !important;
}

/* Playoff bracket tree — IPL-style stacked slots + connector lines */
.mlp-po-tree {
  margin-top: 8px;
}
.mlp-po-tree-board {
  --mlp-po-card-w: 176px;
  display: grid;
  align-items: center;
  justify-content: center;
  gap: 12px 44px;
  overflow-x: auto;
  padding: 4px 8px 12px;
  position: relative;
}
.mlp-po-tree-board .mlp-po-tree-match,
.mlp-po-tree-board .mlp-po-tree-col-hd {
  position: relative;
  z-index: 1;
  justify-self: center;
}
.mlp-po-tree-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.mlp-po-tree-col-hd {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  text-align: center;
}
.mlp-po-tree-board--qf {
  grid-template-columns: repeat(3, var(--mlp-po-card-w));
  grid-template-rows: auto repeat(4, auto);
}
.mlp-po-tree-board--semi-only {
  grid-template-columns: repeat(2, var(--mlp-po-card-w));
  grid-template-rows: auto repeat(2, auto);
}
.mlp-po-grid-hd-qf { grid-column: 1; grid-row: 1; }
.mlp-po-grid-hd-semi { grid-column: 2; grid-row: 1; }
.mlp-po-grid-hd-medal { grid-column: 3; grid-row: 1; }
.mlp-po-tree-board--semi-only .mlp-po-grid-hd-semi { grid-column: 1; }
.mlp-po-tree-board--semi-only .mlp-po-grid-hd-medal { grid-column: 2; }
.mlp-po-grid-qf-0 { grid-column: 1; grid-row: 2; }
.mlp-po-grid-qf-1 { grid-column: 1; grid-row: 3; }
.mlp-po-grid-qf-2 { grid-column: 1; grid-row: 4; }
.mlp-po-grid-qf-3 { grid-column: 1; grid-row: 5; }
.mlp-po-grid-semi-0 { grid-column: 2; grid-row: 2 / 4; align-self: center; }
.mlp-po-grid-semi-1 { grid-column: 2; grid-row: 4 / 6; align-self: center; }
.mlp-po-grid-gold { grid-column: 3; grid-row: 2 / 4; align-self: center; }
.mlp-po-grid-bronze { grid-column: 3; grid-row: 4 / 6; align-self: center; }
.mlp-po-tree-board--semi-only .mlp-po-grid-semi-0 { grid-column: 1; grid-row: 2; }
.mlp-po-tree-board--semi-only .mlp-po-grid-semi-1 { grid-column: 1; grid-row: 3; }
.mlp-po-tree-board--semi-only .mlp-po-grid-gold { grid-column: 2; grid-row: 2; }
.mlp-po-tree-board--semi-only .mlp-po-grid-bronze { grid-column: 2; grid-row: 3; }
.mlp-po-tree-match {
  display: flex;
  flex-direction: column;
  width: var(--mlp-po-card-w);
  max-width: 100%;
  background: #fff;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.07);
}
.mlp-po-tree-match--active {
  border-color: var(--py, #FBBF24);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35), 0 6px 16px rgba(30, 58, 138, 0.1);
}
.mlp-po-tree-match--gold {
  border-top: 4px solid #F59E0B;
  background: linear-gradient(180deg, #FFFBEB 0%, #fff 28%);
}
.mlp-po-tree-match--bronze {
  border-top: 4px solid #B45309;
  background: linear-gradient(180deg, #FFF7ED 0%, #fff 28%);
}
.mlp-po-tree-head {
  padding: 10px 12px 8px;
  text-align: center;
  background: linear-gradient(180deg, var(--pnl, #DBEAFE) 0%, #EFF6FF 100%);
  border-bottom: 1px solid #BFDBFE;
}
.mlp-po-tree-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: #fff;
}
.mlp-po-tree-vs {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
  text-align: center;
  line-height: 1;
}
.mlp-po-tree-foot {
  padding: 8px 10px 10px;
  text-align: center;
  border-top: 1px solid #E0E7FF;
  background: #F8FAFC;
}
.mlp-po-tree-slot {
  background: linear-gradient(180deg, #F8FAFF 0%, #EEF2FF 100%);
  color: var(--pn, #1E3A8A);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  min-height: 54px;
  border-radius: 10px;
  border: 1px solid #C7D7FE;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mlp-po-tree-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}
.mlp-po-tree-team-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
}
.mlp-po-tree-dot {
  font-size: 10px;
  line-height: 1;
  flex: 0 0 auto;
}
.mlp-po-tree-team-name {
  font-weight: 700;
  line-height: 1.25;
}
.mlp-po-tree-captain {
  font-size: 10px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.2;
}
.mlp-po-tree-slot--won {
  background: linear-gradient(180deg, #DCFCE7 0%, #BBF7D0 100%);
  border-color: #86EFAC;
  color: #166534;
}
.mlp-po-tree-slot--lost {
  opacity: 0.58;
}
.mlp-po-tree-tbd {
  font-style: italic;
  font-weight: 500;
  color: #64748B;
}
.mlp-po-tree-seed {
  font-weight: 800;
  color: var(--pgd, #1D4ED8);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.mlp-po-tree-meta-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--pn, #1E3A8A);
  line-height: 1.25;
}
.mlp-po-tree-match--gold .mlp-po-tree-meta-title {
  color: #B45309;
}
.mlp-po-tree-match--bronze .mlp-po-tree-meta-title {
  color: #92400E;
}
.mlp-po-tree-meta-sub {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.3;
}
.mlp-po-modal-lead {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #546E7A;
}
.mlp-po-modal-score-big {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #263238;
  line-height: 1.1;
}
.mlp-po-modal-score-unit {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #78909C;
  margin-top: 2px;
}
.mlp-po-modal-mid {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 8px;
}
.mlp-po-modal-table-cap {
  margin: 0 0 8px;
  font-size: 11px;
  color: #78909C;
}
.mlp-po-modal-cell-win {
  display: inline-block;
  font-weight: 800;
  color: #2E7D32;
}
.mlp-po-modal-cell-loss {
  display: inline-block;
  font-weight: 600;
  color: #90A4AE;
}
.mlp-po-modal-cell-score {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: #37474F;
}
.mlp-po-modal-cell-score--win {
  color: #2E7D32;
}
.mlp-po-modal-line--win .mlp-po-modal-cell-score {
  font-weight: 800;
}
.mlp-po-modal-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ECEFF1;
  font-size: 12px;
  color: #37474F;
}
.mlp-po-tree-meta-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--pn, #1E3A8A);
}
.mlp-po-tree-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--py, #FBBF24) 0%, #F59E0B 100%);
  color: var(--pn, #1E3A8A);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.mlp-po-tree-play:hover {
  filter: brightness(1.03);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.42);
  transform: translateY(-1px);
}
.mlp-po-tree-play .ti {
  font-size: 14px;
}
.mlp-po-tree-svg {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: block;
}
.mlp-po-tree-line {
  fill: none;
  stroke: #93C5FD;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mlp-po-tree-node--win {
  fill: #FF9800;
}
.mlp-po-tree-node--lose {
  fill: #607D8B;
}
.mlp-po-tree-lbl {
  font-size: 9px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}
.mlp-po-tree-lbl--win {
  fill: #E65100;
}
.mlp-po-tree-lbl--lose {
  fill: #546E7A;
}
.mlp-po-tree-match--clickable {
  cursor: pointer;
}
.mlp-po-tree-match--clickable:hover {
  border-color: #A5B4FC;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.12);
}
.mlp-po-tree-view-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #64748B;
}

.mlp-po-detail-overlay.overlay--viewport {
  z-index: calc(var(--z-live-session, 1330) + 25);
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 0)) 16px max(20px, env(safe-area-inset-bottom, 0));
}
.mlp-po-detail-modal {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 24px 22px 20px;
  border-radius: 18px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
}
.mlp-po-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #F1F5F9;
  color: #546E7A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.mlp-po-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, #FFF8E1, #FFE082);
  color: #E65100;
  font-size: 24px;
}
.mlp-po-detail-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #263238;
}
.mlp-po-detail-sub {
  margin: 0 0 16px;
  font-size: 12px;
  font-style: italic;
  color: #C62828;
}
.mlp-po-detail-body {
  text-align: left;
  margin-bottom: 16px;
}
.mlp-po-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #ECEFF1;
}
.mlp-po-modal-squad {
  flex: 1;
  text-align: center;
}
.mlp-po-modal-squad-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1A237E;
}
.mlp-po-modal-squad-lines {
  display: block;
  font-size: 11px;
  color: #607D8B;
  margin-top: 2px;
}
.mlp-po-modal-vs {
  font-size: 11px;
  font-weight: 700;
  color: #90A4AE;
}
.mlp-po-modal-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.mlp-po-modal-lines th,
.mlp-po-modal-lines td {
  padding: 8px 10px;
  border-bottom: 1px solid #ECEFF1;
  text-align: center;
}
.mlp-po-modal-lines th:first-child,
.mlp-po-modal-lines td:first-child {
  text-align: left;
  font-weight: 600;
  color: #455A64;
}
.mlp-po-modal-line--win {
  font-weight: 700;
  color: #2E7D32;
  background: #E8F5E9;
}
.mlp-po-modal-db td {
  font-style: italic;
}
.mlp-po-modal-outcome {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFF8E1;
  color: #E65100;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mlp-po-modal-winner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(145deg, #E8F5E9, #C8E6C9);
  color: #1B5E20;
  font-size: 13px;
}
.mlp-po-detail-done {
  width: 100%;
  justify-content: center;
}
.mlp-standings-controls-grid--view-only {
  grid-template-columns: 1fr;
}
.mlp-po-tree-prelude {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #CFD8DC;
}
.mlp-po-tree-prelude-round {
  margin-bottom: 12px;
}
.mlp-po-tree-prelude-round .mlp-po-tree-match {
  max-width: 220px;
  margin-bottom: 8px;
}
.mlp-po-tree-prelude-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #78909C;
  margin-top: 8px;
}
.ls-mlp-playoffs-screen .mlp-po-tree-slot .mlp-po-medal-badge {
  margin-right: 4px;
  width: 18px;
  height: 18px;
  font-size: 11px;
}
@media (min-width: 768px) {
  .mlp-po-tree-board {
    --mlp-po-card-w: 220px;
    gap: 16px 52px;
  }
  .mlp-po-tree-slot {
    font-size: 13px;
    min-height: 62px;
    padding: 11px 14px;
  }
  .mlp-po-tree-captain {
    font-size: 11px;
  }
  .mlp-po-tree-meta-title {
    font-size: 13px;
  }
}
@media (min-width: 1024px) {
  .mlp-po-tree-board {
    --mlp-po-card-w: 252px;
    gap: 18px 60px;
  }
  .mlp-po-tree-slot {
    font-size: 14px;
    min-height: 68px;
    padding: 12px 14px;
  }
  .mlp-po-tree-captain {
    font-size: 12px;
  }
  .mlp-po-tree-meta-title {
    font-size: 14px;
  }
  .mlp-po-tree-play {
    font-size: 14px;
    padding: 9px 20px;
  }
}
@media (max-width: 520px) {
  .mlp-po-tree-board--qf,
  .mlp-po-tree-board--semi-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .mlp-po-tree-board .mlp-po-tree-match {
    width: 100%;
    max-width: 200px;
  }
  .mlp-po-tree-board .mlp-po-tree-col-hd {
    width: 100%;
    max-width: 200px;
  }
  .mlp-po-tree-overlay {
    display: none;
  }
}

.mlp-save-prefs-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mlp-cand-move-btns {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (min-width: 641px) {
  .mlp-cand-move-btns { display: none; }
}

/* Past MLP results overlay — reuse live playoff / standings styling */
#eventResultsOverlay.event-results-overlay--mlp .ls-mlp-playoffs-screen .mrr-bracket-team,
#eventResultsOverlay.event-results-overlay--mlp .ls-mlp-playoffs-screen .mlp-po-tree-slot {
  color: var(--pn, #1E3A8A) !important;
}
#eventResultsOverlay.event-results-overlay--mlp .ls-mlp-playoffs-screen .mrr-bracket-match,
#eventResultsOverlay.event-results-overlay--mlp .ls-mlp-playoffs-screen .mlp-po-tree-match {
  background: #fff;
  border: 1px solid #CFD8DC;
}
#eventResultsOverlay.event-results-overlay--mlp .ls-mlp-playoffs-screen .mlp-po-tree-match--clickable {
  cursor: pointer;
}
#eventResultsOverlay.event-results-overlay--mlp .mlp-standings-controls-card,
#eventResultsOverlay.event-results-overlay--mlp .mlp-standings-results-card {
  background: #fff;
  border: 0.5px solid var(--pb);
  border-radius: 12px;
}
#eventResultsOverlay.event-results-overlay--mlp .mlp-standings-table-scroll {
  border-radius: 0 0 12px 12px;
  overflow-x: auto;
}

