/* SNS My Leagues v2.0 — page-specific styles only.
   All chrome (sidebar, hero, ticker, .card, .card-head, .card-title, .card-link,
   .ml-text, .ml-helmet, .stat-row, .btn-primary, .reveal, animations) is INHERITED
   from style.base.css (verbatim /var/www/test/style.css = dashboard v2.7+).
   This file ONLY defines patterns NOT present on the dashboard:
   league-selector, standings list, matchup rows, rules rows, activity rows,
   invite rows, transfer-portal grid, my-lineup horizontal slots. */


/* ============ LEAGUE SELECTOR — full-width row of league avatar cards ============ */
.row-mly-selector { display: grid; }
.sn--c_selector .card-head { padding-bottom: 16px; }
.lg-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.lg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, var(--black-soft) 0%, var(--black-card) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  min-height: 168px;
}
.lg-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-primary);
  box-shadow: 0 6px 22px rgba(255, 26, 26, 0.32);
}
.lg-card.is-active {
  border-color: var(--red-primary);
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.10), rgba(240, 189, 48, 0.04)), var(--black-card);
  box-shadow: inset 0 0 0 1px rgba(255, 26, 26, 0.35), 0 0 18px rgba(255, 26, 26, 0.20);
}
.lg-badge-active {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 7px;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .14em;
  background: var(--red-primary); color: #fff;
  border-radius: 3px;
}
.lg-helmet {
  width: 64px; height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.lg-card.is-active .lg-helmet {
  filter: drop-shadow(0 0 14px rgba(255, 26, 26, 0.5)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.lg-name {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .03em;
  color: var(--white-bright);
  line-height: 1.1;
}
.lg-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gray-light);
  letter-spacing: .08em;
}
.lg-record {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--gold-accent);
  letter-spacing: .04em;
  margin-top: auto;
}

/* ============ 3-COL ROWS ============ */
.row-mly-3col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: var(--col-gap);
  align-items: stretch;
}
.row-mly-3col-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: stretch;
}

/* ============ STANDINGS LIST ============ */
.standings-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.st-row {
  display: grid;
  grid-template-columns: 28px 36px 1fr 56px 64px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s ease, transform .15s ease, border-color .15s ease;
  min-height: 52px;
}
.st-row + .st-row { border-top: 1px solid var(--hairline); border-radius: 0; }
.st-row.st-head {
  cursor: default; padding: 6px 12px; min-height: 28px;
  border-bottom: 1px solid var(--hairline-2);
  background: transparent;
}
.st-rank-h, .st-name-h, .st-record-h, .st-pf-h {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--gray-light); text-transform: uppercase;
}
.st-name-h { text-align: left; }
.st-record-h, .st-pf-h { text-align: right; }
.st-row:hover {
  background: rgba(255, 26, 26, 0.06);
  transform: translateX(2px);
}
.st-row.is-you {
  background: linear-gradient(90deg, rgba(255, 26, 26, 0.12), transparent 70%);
  border-color: rgba(255, 26, 26, 0.35);
}
.st-rank { font-family: var(--f-display); font-size: 22px; color: var(--gold-accent); text-align: center; }
.st-row.is-you .st-rank { color: var(--red-bright); }
.st-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--black-pure); border: 1px solid var(--hairline-2); }
.st-name { font-family: var(--f-body); font-size: 16px; font-weight: 600; color: var(--white-bright); line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.you-tag { font-family: var(--f-display); font-size: 10px; letter-spacing: .14em; background: var(--red-primary); color: #fff; padding: 2px 5px; border-radius: 2px; font-style: normal; }
.st-record { font-family: var(--f-display); font-size: 19px; color: var(--gold-accent); letter-spacing: .02em; text-align: right; }
.st-pf { font-family: var(--f-numeral, var(--f-body)); font-weight: 600; font-size: 15px; color: var(--gray-light); text-align: right; }

.card-foot { padding-top: 10px; flex: 0 0 auto; }
.paginator { font-family: var(--f-mono); font-size: 11px; color: var(--gray-light); letter-spacing: .14em; }

/* ============ MATCHUPS — VS centered, 50/50 (kept from v1.1) ============ */
.mu-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.mu-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "ta vs tb" "sb sb sb";
  align-items: center;
  column-gap: 14px; row-gap: 8px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, var(--black-soft) 0%, var(--black-card) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.mu-row:hover { border-color: var(--red-primary); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255, 26, 26, 0.2); }
.mu-row.is-you-match { border-color: rgba(255, 26, 26, 0.5); background: linear-gradient(90deg, rgba(255, 26, 26, 0.10), var(--black-soft) 30%, var(--black-soft) 70%, rgba(255, 26, 26, 0.10)); }
.mu-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mu-team-a { grid-area: ta; justify-self: end; flex-direction: row-reverse; text-align: right; }
.mu-team-b { grid-area: tb; justify-self: start; flex-direction: row; text-align: left; }
.mu-logo { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; background: var(--black-pure); border: 1px solid var(--hairline-2); flex: 0 0 36px; }
.mu-name { font-family: var(--f-body); font-size: 18px; font-weight: 600; color: var(--white-bright); line-height: 1.25; display: inline-flex; align-items: center; gap: 6px; }
.mu-vs { grid-area: vs; font-family: var(--f-display); font-size: 24px; letter-spacing: .12em; color: var(--red-bright); padding: 0 10px; justify-self: center; }
.mu-score-bar { grid-area: sb; display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 8px; border-top: 1px dashed var(--hairline); }
.mu-score-a, .mu-score-b { font-family: var(--f-display); font-size: 28px; color: var(--gold-accent); line-height: 1; }
.mu-score-sep { font-family: var(--f-display); font-size: 22px; color: var(--gray-light); }
.mu-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--gray-light); padding: 3px 8px; border: 1px solid var(--hairline-2); border-radius: 3px; margin-left: 8px; }
.mu-tag.mu-tag-w { color: #6bd083; border-color: rgba(107, 208, 131, 0.4); background: rgba(107, 208, 131, 0.08); }

/* ============ LEAGUE RULES ============ */
.rules-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.rule-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--black-soft);
  border: 1px solid var(--hairline-2);
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
  min-height: 56px;
}
.rule-row:hover { border-color: var(--red-primary); transform: translateX(2px); background: var(--bg-surface-3, #1A1A1A); }
.rule-ic { font-size: 22px; text-align: center; }
.rule-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rule-lbl { font-family: var(--f-body); font-size: 15px; font-weight: 600; color: var(--white-bright); line-height: 1.3; }
.rule-desc { font-family: var(--f-body); font-size: 13px; color: var(--gray-light); line-height: 1.4; }
.rule-val { font-family: var(--f-display); font-size: 16px; letter-spacing: .04em; color: var(--gold-accent); white-space: nowrap; }

/* ============ MY LINEUP — full-width row ============ */
.row-mly-lineup { display: grid; grid-template-columns: 1fr; }
.lu-ovr-wrap { font-family: var(--f-mono); font-size: 12px; color: var(--gray-light); letter-spacing: .12em; margin-left: 8px; }
.lu-ovr-wrap .lu-ovr { color: var(--gold-accent); font-family: var(--f-display); font-size: 22px; font-style: normal; margin-left: 4px; letter-spacing: .04em; }
.lu-list-h {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}
.lu-slot {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px;
  background: var(--black-soft);
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
}
.lu-slot:hover { border-color: var(--red-primary); transform: translateY(-2px); background: var(--bg-surface-3, #1A1A1A); }
.lu-pos { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--red-bright); font-weight: 700; }
.lu-pl { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--white-bright); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-tm { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--gold-accent); text-transform: uppercase; }

/* ============ RECENT ACTIVITY ============ */
.act-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.act-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--black-soft);
  border: 1px solid var(--hairline-2);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
  min-height: 58px;
}
.act-row:hover { border-color: var(--red-primary); transform: translateX(2px); background: var(--bg-surface-3, #1A1A1A); }
.act-ic { font-size: 22px; text-align: center; }
.act-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-line { font-family: var(--f-body); font-size: 14px; font-weight: 500; color: var(--white-bright); line-height: 1.4; }
.act-line strong { color: var(--gold-accent); margin-right: 4px; font-weight: 700; }
.act-meta { font-family: var(--f-mono); font-size: 11px; color: var(--gray-light); letter-spacing: .04em; }
.act-time { font-family: var(--f-display); font-size: 14px; letter-spacing: .12em; color: var(--gray-light); }

/* ============ INVITES ============ */
.inv-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; }
.inv-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 14px;
  background: var(--black-soft);
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  transition: border-color .2s ease, transform .15s ease;
}
.inv-row:hover { border-color: var(--red-primary); transform: translateY(-1px); }
.inv-helmet { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; background: var(--black-pure); border: 1px solid var(--hairline-2); }
.inv-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inv-lg { font-family: var(--f-display); font-size: 20px; letter-spacing: .04em; color: var(--white-bright); line-height: 1.1; }
.inv-meta { font-family: var(--f-mono); font-size: 12px; color: var(--gray-light); letter-spacing: .04em; margin-bottom: 6px; }
.inv-actions { display: flex; gap: 8px; }
.btn-mini-join { padding: 10px 14px !important; font-size: 12px !important; flex: 1 1 auto; }
.btn-mini-decl { padding: 10px 12px !important; font-size: 12px !important; flex: 0 0 auto; }

/* ============ TRANSFER PORTAL ============ */
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1 1 auto; }
.tp-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--black-soft);
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s ease, transform .15s ease, background .2s ease;
  min-height: 96px;
}
.tp-btn:hover { background: var(--bg-surface-3, #1A1A1A); border-color: var(--red-primary); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(255, 26, 26, 0.2); }
.tp-ic { font-size: 28px; }
.tp-lbl { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--white-bright); letter-spacing: .04em; text-align: center; line-height: 1.3; }

/* ============ RESPONSIVE — edge-to-edge mobile (mirrors dashboard pattern) ============ */
@media (max-width: 880px) {
  .lg-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .row-mly-3col, .row-mly-3col-bottom, .row-mly-lineup { grid-template-columns: 1fr; }
  .lu-list-h { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .mu-name { font-size: 16px; }
  .mu-vs { font-size: 20px; padding: 0 6px; }
}
@media (max-width: 600px) {
  .lg-row { grid-template-columns: 1fr 1fr; }
  .lu-list-h { grid-template-columns: 1fr 1fr; }
  .tp-grid { grid-template-columns: 1fr 1fr; }
  .st-row { grid-template-columns: 24px 28px 1fr auto; gap: 8px; padding: 10px 8px; }
  .st-pf, .st-pf-h { display: none; }
  .st-name { font-size: 15px; }
  .mu-row { padding: 12px; }
  .mu-logo { width: 28px; height: 28px; flex: 0 0 28px; }
  .mu-name { font-size: 14px; }
  .mu-score-a, .mu-score-b { font-size: 22px; }
  .rule-row { grid-template-columns: 28px 1fr; grid-template-rows: auto auto; grid-template-areas: "ic body" "ic val"; }
  .rule-ic { grid-area: ic; align-self: start; font-size: 18px; }
  .rule-body { grid-area: body; }
  .rule-val { grid-area: val; justify-self: start; font-size: 13px; }
}
@media (max-width: 360px) {
  .lg-row { grid-template-columns: 1fr; }
  .lu-list-h { grid-template-columns: 1fr; }
  .tp-grid { grid-template-columns: 1fr; }
}

/* ============ v2.1: player avatars in lineup slots ============ */
.lu-slot {
  position: relative;
  padding-top: 50px;          /* room for avatar at top */
  text-align: center;
}
.lu-av {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--hairline-2);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  transition: transform .2s ease, border-color .2s ease, filter .2s ease;
}
.lu-slot:hover .lu-av {
  border-color: var(--red-primary);
  filter: drop-shadow(0 0 8px rgba(255,26,26,0.5));
  transform: translateX(-50%) translateY(-1px);
}
.lu-pos, .lu-pl, .lu-tm { text-align: center; }
.lu-pl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ v2.1: cursor + accessibility for data-href rows ============ */
[data-href] { cursor: pointer; }
[data-href]:focus-visible { outline: 2px solid var(--gold-accent); outline-offset: 2px; }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                