:root{
  --bg: #0b0b0d;
  --panel: rgba(18,18,22,.86);
  --panel2: rgba(12,12,16,.68);
  --text: #ececec;
  --muted: rgba(236,236,236,.72);

  --accent: #ff8a00; /* RLOL orange */
  --stroke: rgba(255,255,255,.10);

  --font-body: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-head: 'Anton', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Glow tuned to your standings vibe */
  --glow-strong: 0 0 0 1px rgba(255,138,0,.30), 0 0 22px rgba(255,138,0,.14), 0 0 60px rgba(255,138,0,.08);
  --glow-soft:   0 0 0 1px rgba(255,138,0,.18), 0 0 18px rgba(255,138,0,.10);
}

*{ box-sizing:border-box; }
html, body{
  height: 100%;
  background: var(--bg);
}

body{
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  position: relative;
  background: transparent;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,138,0,.12), transparent 70%),
    radial-gradient(900px 520px at 50% 10%, rgba(255,255,255,.06), transparent 70%),
    radial-gradient(1400px 700px at 50% 85%, rgba(255,138,0,.06), transparent 75%),
    linear-gradient(to bottom, rgba(11,11,13,0) 55%, rgba(11,11,13,1) 100%);
}

/* --- bottom fade to remove that “band” --- */
body::after{
  content:"";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,11,13,0), rgba(11,11,13,1));
  z-index: -1;
}

a{ color:inherit; text-decoration:none; }

.rlol-wrap{
  position: relative;
  z-index: 1;

  max-width: 1380px;
  margin: 0 auto;
  padding: 42px 26px 78px;
}

/* ===== Hero ===== */
.rlol-hero{
  margin-bottom: 22px;
}
.rlol-hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: stretch;
}
.kicker{
  color: rgba(255,138,0,.92);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
.title{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 10px 0 6px;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 1;
}
.sub{
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 14px;
}

/* Nav pills */
.nav-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.pill{
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pill:hover{
  transform: translateY(-1px);
  border-color: rgba(255,138,0,.35);
  box-shadow: var(--glow-soft);
}
.pill.is-active{
  border-color: rgba(255,138,0,.55);
  box-shadow: var(--glow-strong);
}

/* Right badge */
.badge-card{
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,18,22,.82), rgba(12,12,16,.62));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 70px rgba(0,0,0,.45);
  padding: 18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.badge-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.badge-label{
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.badge-chip{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,138,0,.35);
  background: rgba(255,138,0,.08);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-title{
  font-family: var(--font-head);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 34px;
  margin-top: 10px;
}
.badge-meta{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.badge-actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,138,0,.14);
  border: 1px solid rgba(255,138,0,.40);
  box-shadow: var(--glow-soft);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn:hover{ box-shadow: var(--glow-strong); border-color: rgba(255,138,0,.60); }
.btn.ghost{
  background: rgba(0,0,0,.25);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.btn.ghost:hover{
  border-color: rgba(255,138,0,.35);
  box-shadow: var(--glow-soft);
}

/* ===== Grid / Cards ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card{
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,18,22,.82), rgba(12,12,16,.62));
  border: 1px solid rgba(255,255,255,.10);

  /* ===== Stats V2 toolbar + table ===== */
.toolbar{
  padding: 0 18px 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr auto;
  gap: 12px;
  align-items: center;
}

.field{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--text);
  outline: none;
}
.field::placeholder{ color: rgba(255,255,255,.45); font-weight: 700; }
.field:focus{
  border-color: rgba(255,138,0,.35);
  box-shadow: var(--glow-soft);
}

.select{ appearance: none; }

.toolbar-right{ justify-self: end; }

.table-wrap{
  padding: 0 18px 18px;
  overflow: auto;
}

.stats-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px; /* row gaps like your cards */
  min-width: 820px; /* keeps columns readable */
}

.stats-table thead th{
  position: sticky;
  top: 0;
  background: rgba(11,11,13,.92);
  backdrop-filter: blur(10px);
  padding: 10px 10px;
  text-align: left;
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.stats-table thead th.num{ text-align: right; }

.stats-table thead th.sort-asc{ color: rgba(255,138,0,.92); }
.stats-table thead th.sort-desc{ color: rgba(255,138,0,.92); }

.stats-table tbody tr{
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.10);
}
.stats-table tbody td{
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.stats-table tbody tr td:first-child{
  border-left: 1px solid rgba(255,255,255,.10);
  border-radius: 14px 0 0 14px;
}
.stats-table tbody tr td:last-child{
  border-right: 1px solid rgba(255,255,255,.10);
  border-radius: 0 14px 14px 0;
}

.stats-table tbody tr:hover td{
  border-color: rgba(255,138,0,.28);
  box-shadow: var(--glow-soft);
}

.stats-table td.num{
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.stats-table td.player{ font-weight: 900; }
.stats-table td.team{ color: rgba(255,255,255,.85); font-weight: 800; }

.loading{
  padding: 22px 12px !important;
  text-align: center;
  color: rgba(255,255,255,.65);
  font-weight: 800;
}

@media (max-width: 980px){
  .toolbar{
    grid-template-columns: 1fr;
  }
  .toolbar-right{ justify-self: stretch; }
}

/* ==== Stats table styles ==== */

th.active-stat,
td.active-stat {
  color: #ff8a00;
  text-shadow: 0 0 10px rgba(255,138,0,.6);
}

td.active-stat {
  background: linear-gradient(
    90deg,
    rgba(255,138,0,.08),
    rgba(255,138,0,.02)
  );
}
  
  /* NEW shadow system */
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.04),
    0 0 28px rgba(255,138,0,.06);

  overflow:hidden;
}

.card.wide{
  grid-column: 1 / -1;
}

.card-head{
  padding: 18px 18px 12px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 12px;
}
.card-title{
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 22px;
  margin:0;
}
.card-tools .hint{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.mini-link{
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .88;
}
.mini-link:hover{ opacity: 1; color: rgba(255,138,0,.95); }
.mini-link.muted{ opacity: .55; pointer-events:none; }

/* ===== Lists / Rows ===== */
.list{ padding: 6px 12px 14px; display:flex; flex-direction:column; gap: 10px; }

.match-row{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.match-row:hover{
  border-color: rgba(255,138,0,.28);
  box-shadow: var(--glow-soft);
}
.match-row.dim{ opacity:.72; }

.match-left{
  display:flex;
  align-items:center;
  gap: 12px;
}
.match-time{
  width: 86px;
  padding-right: 10px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.match-time .day{
  font-family: var(--font-head);
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 14px;
}
.match-time .clock{
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
}
.match-teams{
  font-weight: 900;
  font-size: 14px;
}
.vs{
  color: rgba(255,255,255,.55);
  margin: 0 8px;
  font-weight: 800;
}
.match-meta{
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

/* ===== Table ===== */
.table{ padding: 8px 12px 14px; }
.trow{
  display:grid;
  grid-template-columns: 48px 1fr 52px 52px 62px;
  gap: 10px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.26);
  margin-bottom: 10px;
}
.trow:hover{ border-color: rgba(255,138,0,.28); box-shadow: var(--glow-soft); }
.trow.dim{ opacity:.74; }
.trow.thead{
  border: none;
  background: transparent;
  margin-bottom: 8px;
  padding: 0 8px;
  color: rgba(255,255,255,.70);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 900;
  font-size: 11px;
}
.teamcell{ display:flex; align-items:center; gap: 10px; font-weight: 900; }
.dot{
  width: 10px; height:10px; border-radius:999px;
  background: rgba(255,138,0,.85);
  box-shadow: 0 0 14px rgba(255,138,0,.22);
}
.num{ text-align:right; font-variant-numeric: tabular-nums; font-weight: 800; }

/* ===== Playoff line ===== */
.playoff-line{
  margin: 4px 0 12px;
  border-radius: 14px;
  padding: 10px 12px;
  text-align:center;
  font-family: var(--font-head);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 14px;
  color: rgba(255,255,255,.90);
  background: rgba(255,138,0,.10);
  border: 1px solid rgba(255,138,0,.30);
  box-shadow: var(--glow-soft);
}

/* ===== Leaders ===== */
.leaders{ padding: 6px 12px 14px; display:flex; flex-direction:column; gap:10px; }
.leader-row{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
.leader-row:hover{ border-color: rgba(255,138,0,.28); box-shadow: var(--glow-soft); }
.leader-row.dim{ opacity:.72; }

.leader-name{ font-weight: 900; }
.leader-sub{ color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 700; }

.leader-stat{ text-align:right; min-width: 78px; }
.stat-num{ font-weight: 900; font-variant-numeric: tabular-nums; font-size: 18px; }
.stat-lbl{ color: rgba(255,255,255,.70); font-size: 11px; text-transform: uppercase; letter-spacing: .10em; font-weight: 900; }

/* ===== Glow tier (playoff zone) ===== */
.playoff-glow{
  border-color: rgba(255,138,0,.34) !important;
  box-shadow: var(--glow-strong) !important;
  background: linear-gradient(90deg, rgba(255,138,0,.10), rgba(0,0,0,.22));
}

/* ===== About / Footer ===== */
.about{ padding: 0 16px 18px; color: rgba(255,255,255,.84); }
.about p{ margin: 0 0 14px; line-height: 1.6; }
.cta-row{ display:flex; gap

         /* Schedule: team logos */
.match-row .teams .team.with-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Force schedule logos to behave (bulletproof) */
.match-row .team-logo{
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  display: block;
  flex: 0 0 32px;
  object-fit: contain !important;

  border-radius: 6px;
  box-shadow:
    0 0 6px rgba(255,138,0,.35),
    0 0 0 1px rgba(255,255,255,.12);
}

/* === Schedule: hard-cap ALL team logos (override any global img rules) === */
#scheduleRoot img.team-logo,
.match-row img.team-logo,
.match-row .team.with-logo > img.team-logo{
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  display: inline-block !important;
  object-fit: contain !important;
}

.match-row .team.with-logo{
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* === Schedule row hover glow === */
.match-row{
  transition: 
    box-shadow .25s ease,
    transform .18s ease,
    background .25s ease;
}

.match-row:hover{
  background: linear-gradient(
    90deg,
    rgba(255,138,0,.08),
    rgba(0,0,0,0)
  );

  box-shadow:
    0 0 0 1px rgba(255,138,0,.35),
    0 0 12px rgba(255,138,0,.35),
    inset 0 0 18px rgba(255,138,0,.12);

  transform: translateY(-1px);
}

/* === Standings page base === */
body.rlol-standings{
  font-family: var(--font-body, 'Montserrat', system-ui, sans-serif);
}

/* Title like other v2 pages */
body.rlol-standings h1{
  font-family: var(--font-head, 'Anton', system-ui, sans-serif);
  letter-spacing: .04em;
}

/* Main standings card */
body.rlol-standings .card{
  background: linear-gradient(
    180deg,
    rgba(18,18,22,.9),
    rgba(10,10,12,.9)
  );

  border-radius: 18px;
  padding: 22px 22px 18px;

  box-shadow:
    0 0 0 1px rgba(255,138,0,.25),
    0 0 22px rgba(0,0,0,.6),
    inset 0 0 18px rgba(255,138,0,.06);
}

/* Meta row spacing */
body.rlol-standings .metaRow{
  margin-bottom: 16px;
  gap: 12px;
}

/* Controls nicer */
body.rlol-standings input,
body.rlol-standings select{
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  outline: none;
}

/* Hover glow on standings rows (if JS renders rows as divs) */
body.rlol-standings .standings-row,
body.rlol-standings .row{
  transition: background .2s ease, box-shadow .2s ease;
}

body.rlol-standings .standings-row:hover,
body.rlol-standings .row:hover{
  background: rgba(255,138,0,.06);
  box-shadow:
    inset 0 0 12px rgba(255,138,0,.12);
}

/* Footer spacing */
body.rlol-standings .footer{
  margin-top: 14px;
  opacity: .8;
}

/* =========================================================
   RLOL STANDINGS (v2 look) — card spacing + playoff glow
   Targets: body.rlol-standings
   ========================================================= */

body.rlol-standings{
  font-family: var(--font-body);
}

/* Big centered heading like your screenshot */
body.rlol-standings .topbar{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 18px;
}

body.rlol-standings .topbar h1{
  font-family: var(--font-head);
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: .04em;
  margin: 0;
}

body.rlol-standings .topbar .sub{
  opacity: .85;
}

/* Pills nav to match v2 style */
body.rlol-standings .nav-btns{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

body.rlol-standings .nav-btns .btn{
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .03em;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

body.rlol-standings .nav-btns .btn:hover{
  border-color: rgba(255,138,0,.45);
  box-shadow: var(--glow-soft);
  transform: translateY(-1px);
}

/* Main card */
body.rlol-standings .card{
  background: linear-gradient(180deg, rgba(18,18,22,.86), rgba(10,10,12,.86));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 18px 18px 14px;
  box-shadow:
    0 0 0 1px rgba(255,138,0,.18),
    0 18px 48px rgba(0,0,0,.55),
    inset 0 0 22px rgba(255,138,0,.06);
}

/* Meta row / controls */
body.rlol-standings .metaRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

body.rlol-standings .controls{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

body.rlol-standings input,
body.rlol-standings select{
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

body.rlol-standings input:focus,
body.rlol-standings select:focus{
  border-color: rgba(255,138,0,.55);
  box-shadow: 0 0 0 3px rgba(255,138,0,.12);
}

/* ---------- Table / rows (works for both table or div rows) ---------- */
body.rlol-standings table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px; /* “card rows” feel */
}

body.rlol-standings thead th{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  padding: 10px 12px;
  text-align: left;
}

body.rlol-standings tbody tr{
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

body.rlol-standings tbody td{
  padding: 14px 12px;
  vertical-align: middle;
}

/* Rounded “row cards” */
body.rlol-standings tbody tr td:first-child{
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
body.rlol-standings tbody tr td:last-child{
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Hover glow */
@media (hover:hover){
  body.rlol-standings tbody tr:hover{
    box-shadow:
      0 0 0 1px rgba(255,138,0,.35),
      0 0 18px rgba(255,138,0,.18),
      inset 0 0 18px rgba(255,138,0,.10);
    background: rgba(255,138,0,.06);
  }
}

/* ---------- PLAYOFF GLOW (top 4 teams) ---------- */
/* If your JS already assigns classes like .playoff or .above-cut, this will still help.
   But if it doesn't, this nth-child approach matches your screenshot perfectly. */
body.rlol-standings tbody tr:nth-child(-n+4){
  background: linear-gradient(90deg, rgba(255,138,0,.16), rgba(0,0,0,.42));
  box-shadow:
    0 0 0 1px rgba(255,138,0,.30),
    0 0 14px rgba(255,138,0,.22),
    inset 0 0 18px rgba(255,138,0,.10);
}

/* Slightly stronger divider line under the 4th row */
body.rlol-standings tbody tr:nth-child(4){
  box-shadow:
    0 0 0 1px rgba(255,138,0,.42),
    0 0 18px rgba(255,138,0,.24),
    inset 0 0 18px rgba(255,138,0,.12);
}

/* If you have a playoff-line element already */
body.rlol-standings .playoff-line{
  margin: 8px 0 12px;
  padding: 14px 12px;
  text-align: center;
  font-family: var(--font-head);
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 16px;
  border: 1px solid rgba(255,138,0,.35);
  background: linear-gradient(90deg, rgba(255,138,0,.10), rgba(0,0,0,.18), rgba(255,138,0,.10));
  box-shadow: var(--glow-soft);
}

/* Footer */
body.rlol-standings .footer{
  margin-top: 10px;
  opacity: .82;
}

/* ===== Standings: hard-cap team logos ===== */
.standings-table .teamCell{
  display: flex;
  align-items: center;
  gap: 12px;
}

.standings-table img.logo{
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  object-fit: contain !important;
  display: inline-block !important;
  border-radius: 6px;
  box-shadow:
    0 0 6px rgba(255,138,0,.35),
    0 0 1px rgba(255,255,255,.12);
}

/* =========================
   STANDINGS — fill card + playoff glow
   ========================= */

/* Make the standings card/container use full width */
body.rlol-standings .standings-card{
  width: 100%;
}

/* Make the table actually span the full card */
body.rlol-standings .standings-table{
  width: 100%;
  table-layout: fixed;         /* keeps columns consistent */
  border-collapse: collapse;
}

/* Header + cells spacing */
body.rlol-standings .standings-table th,
body.rlol-standings .standings-table td{
  padding: 12px 14px;
  vertical-align: middle;
}

/* Give Team column room, keep stats tight */
body.rlol-standings .standings-table th:nth-child(2),
body.rlol-standings .standings-table td:nth-child(2){
  width: 44%;
}

body.rlol-standings .standings-table th:not(:nth-child(2)),
body.rlol-standings .standings-table td:not(:nth-child(2)){
  width: auto;
  text-align: right;
}

/* Team cell layout */
body.rlol-standings .standings-table .teamCell{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* allow text ellipsis */
}

body.rlol-standings .standings-table .teamName{
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Playoff teams (top 4) glow + outline ===== */
body.rlol-standings .standings-table tr.playoffRow{
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(255,138,0,.16),
    rgba(0,0,0,.22)
  );

  box-shadow: var(--glow-strong);
  outline: 1px solid rgba(255,138,0,.34);
}

/* reinforce glow in table layout */
body.rlol-standings .standings-table tr.playoffRow td{
  border-top: 1px solid rgba(255,138,0,.18);
  border-bottom: 1px solid rgba(255,138,0,.12);
}

/* optional pop on team name */
body.rlol-standings .standings-table tr.playoffRow .teamName{
  text-shadow: 0 0 14px rgba(255,138,0,.18);
}

/* ===== Make standings fill card width ===== */
body.rlol-standings .standings-card{
  width: 100%;
}

body.rlol-standings .standings-table{
  width: 100%;
  table-layout: fixed;
}

body.rlol-standings .standings-table th,
body.rlol-standings .standings-table td{
  padding: 14px 12px;
}

/* =========================================================
   RLOL STANDINGS — Mobile clamp / responsive table
   ========================================================= */
@media (max-width: 900px){

  /* Page header sizing */
  body.rlol-standings .topbar h1{
    font-size: clamp(34px, 7vw, 56px);
    line-height: 1.05;
  }

  body.rlol-standings .topbar .sub{
    font-size: clamp(12px, 2.8vw, 14px);
  }

  /* Card breathing room */
  body.rlol-standings .card{
    padding: 14px 12px 16px;
  }

  /* Controls stack cleanly */
  body.rlol-standings .metaRow{
    gap: 10px;
  }
  body.rlol-standings .controls{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.rlol-standings .controls input,
  body.rlol-standings .controls select{
    width: 100%;
    min-width: 0;
  }

  /* Make table scrollable horizontally on mobile */
  body.rlol-standings #standingsRoot{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; /* room for scrollbar */
  }

  /* Prevent columns from crushing into mush */
  body.rlol-standings .standings-table{
    width: 100%;
    min-width: 720px;           /* key: forces swipe instead of squish */
    table-layout: fixed;
  }

  /* Clamp cell sizing */
  body.rlol-standings .standings-table th,
  body.rlol-standings .standings-table td{
    padding: 10px 10px;
    font-size: clamp(12px, 2.9vw, 14px);
    white-space: nowrap;
  }

  /* Team cell: keep readable */
  body.rlol-standings .standings-table .teamCell{
    gap: 10px;
  }
  body.rlol-standings .standings-table .teamName{
    font-size: clamp(13px, 3.2vw, 15px);
  }
  body.rlol-standings .standings-table .teamAbbr{
    font-size: clamp(11px, 2.7vw, 12px);
    opacity: .85;
  }

  /* Slightly smaller logo on phones */
  body.rlol-standings .standings-table img.logo{
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
  }
}

/* Extra-small phones */
@media (max-width: 520px){
  body.rlol-standings .card{
    padding: 12px 10px 14px;
    border-radius: 16px;
  }

  /* Make the swipe feel intentional */
  body.rlol-standings #standingsRoot{
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
}

/* =========================
   STANDINGS — layout + full-width rows + playoff glow
   ========================= */
body.rlol-standings .card,
body.rlol-standings .standings-card{
  width: 100%;
}

/* Make table actually fill the card */
body.rlol-standings .standings-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;         /* needed for rounded “row pills” */
  border-spacing: 0 10px;            /* vertical gap between rows */
}

/* Header spacing */
body.rlol-standings .standings-table th{
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: rgba(255,255,255,.85);
}

/* Body cell spacing */
body.rlol-standings .standings-table td{
  padding: 12px 12px;
  vertical-align: middle;
  background: rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Round the “row pill” ends */
body.rlol-standings .standings-table tbody tr td:first-child{
  border-left: 1px solid rgba(255,255,255,.08);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
body.rlol-standings .standings-table tbody tr td:last-child{
  border-right: 1px solid rgba(255,255,255,.08);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* Column sizing so it doesn't bunch left */
body.rlol-standings .standings-table th:nth-child(2),
body.rlol-standings .standings-table td:nth-child(2){
  width: 42%;
}
body.rlol-standings .standings-table th:nth-child(1),
body.rlol-standings .standings-table td:nth-child(1){
  width: 52px;
}
body.rlol-standings .standings-table th:nth-child(n+3),
body.rlol-standings .standings-table td:nth-child(n+3){
  width: 56px;
  text-align: right;
}

/* =========================
   Standings: make table fill + pill rows + playoff glow
   ========================= */

body.rlol-standings #standingsRoot,
body.rlol-standings .standings-card{
  width: 100%;
}

/* Allow glow to render outside the OUTER card wrapper */
body.rlol-standings .card{
  overflow: visible !important;
}

/* Let the table actually span the card */
body.rlol-standings .standings-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;       /* IMPORTANT for pill rows */
  border-spacing: 0 10px;          /* vertical gaps between rows */
}

/* Base cell look (gives the “row bar” effect) */
body.rlol-standings .standings-table tbody td{
  background: linear-gradient(90deg, rgba(255,138,0,.08), rgba(0,0,0,.22));
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(0,0,0,.30);
  padding: 12px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Round the row ends so it reads as one bar */
body.rlol-standings .standings-table tbody tr td:first-child{
  border-left: 1px solid rgba(255,255,255,.08);
  border-radius: 14px 0 0 14px;
}
body.rlol-standings .standings-table tbody tr td:last-child{
  border-right: 1px solid rgba(255,255,255,.08);
  border-radius: 0 14px 14px 0;
}

/* PLAYOFF TEAMS (top 4): glow + orange outline */
body.rlol-standings .standings-table tbody tr.playoffRow td{
  background: linear-gradient(90deg, rgba(255,138,0,.14), rgba(0,0,0,.22));
  border-top: 1px solid rgba(255,138,0,.22);
  border-bottom: 1px solid rgba(255,138,0,.12);
}

/* Put the “outer glow” on the ends so it wraps the whole row */
body.rlol-standings .standings-table tbody tr.playoffRow td:first-child,
body.rlol-standings .standings-table tbody tr.playoffRow td:last-child{
  box-shadow: var(--glow-strong) !important;
  outline: 1px solid rgba(255,138,0,.34) !important;
}

/* Make team name pop a bit on playoff rows */
body.rlol-standings .standings-table tbody tr.playoffRow .teamName{
  text-shadow: 0 0 14px rgba(255,138,0,.22);
}

@media (max-width: 720px){
  body.rlol-standings h1{
    font-size: clamp(34px, 7vw, 52px);
  }

  body.rlol-standings .standings-card{
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  body.rlol-standings .standings-table{
    min-width: 640px; /* keep columns readable */
  }

  body.rlol-standings .standings-table th{
    font-size: clamp(10px, 2.6vw, 12px);
  }

  body.rlol-standings .standings-table td{
    font-size: clamp(12px, 3vw, 14px);
    padding: 10px 10px;
  }

  body.rlol-standings .teamName{
    font-size: clamp(13px, 3.4vw, 16px);
  }
}

/* === Standings: FORCE table to fill the card (kills right-side empty space) === */
body.rlol-standings .standings-card{
  width: 100% !important;
  max-width: none !important;
}

body.rlol-standings .standings-table{
  width: 100% !important;
  max-width: none !important;
  display: table !important; /* prevents shrink-to-fit behaviors */
}

/* If anything wrapped it and is doing fit-content, this breaks it */
body.rlol-standings #standingsRoot{
  width: 100% !important;
  max-width: none !important;
}

@import url("/assets/css/mobile-fix.css");
