.player-link { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.player-link:hover, .player-link:focus-visible { color: var(--color-primary); text-decoration: underline; }
.dp-grid { display: grid; gap: 10px; }
.dp-row { display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 8px; }
.dp-row > b { padding-top: 8px; color: var(--color-text-muted); font-size: 12px; }
.dp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-p { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 20px; padding: 4px 10px 4px 4px; font: inherit; font-size: 12px; color: inherit; background: transparent; opacity: .6; cursor: pointer; }
.dp-p img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.dp-p.top { opacity: 1; background: var(--color-surface); }
.dp-p:hover, .dp-p.selected { opacity: 1; border-color: var(--color-primary); }
.dp-tag { display: inline-block; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.dp-tag.top { color: var(--color-primary); background: var(--color-primary-soft); }
/* ===== Base & Design Tokens (Yahoo Fantasy Dark Broadcast System) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem); /* 12px floor -> 13px */
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9rem);   /* 13px -> 14.4px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);    /* 15px -> 16px */
  --text-lg: clamp(1.125rem, 1.02rem + 0.4vw, 1.35rem);   /* 18px -> 21.6px */
  --text-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);    /* 22px -> 28px */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  --color-bg: #0b0e14;
  --color-surface: #121722;
  --color-surface-2: #171d2b;
  --color-surface-offset: #1d2436;
  --color-border: #263047;
  --color-divider: #1d2538;

  --color-text: #eef2ff;
  --color-text-muted: #9aa6bf;
  --color-text-faint: #7d8ba7;

  /* Yahoo Fantasy Violet + Emerald Win + Amber My-Team/Live */
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-primary-soft: rgba(139, 92, 246, 0.16);
  --color-win: #22c55e;
  --color-win-soft: rgba(34, 197, 94, 0.14);
  --color-loss: #f87171;
  --color-loss-soft: rgba(248, 113, 113, 0.13);
  --color-amber: #f59e0b;
  --color-amber-soft: rgba(245, 158, 11, 0.15);
  --color-blue: #38bdf8;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.65);

  --transition-interactive: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: 'Satoshi', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-num: 'Barlow Condensed', 'Satoshi', sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text);
  background:
    radial-gradient(900px 380px at 15% -8%, rgba(139, 92, 246, 0.14), transparent 65%),
    radial-gradient(700px 320px at 88% -10%, rgba(56, 189, 248, 0.08), transparent 60%),
    var(--color-bg);
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
}

.container {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* ===== Yahoo-Style League Header & Subnav ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.topbar-inner {
  max-width: 1360px;
  margin-inline: auto;
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand-group {
  min-width: 0;
  flex: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #ffffff;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

.brand-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-txt strong {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-txt small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.2;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.42);
  color: #fbbf24;
  font-size: var(--text-xs);
  font-weight: 700;
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}

.jump-pill:hover {
  background: rgba(245, 158, 11, 0.24);
  border-color: #fbbf24;
}

.ghost-link {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.ghost-link:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.updated {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch-track {
  width: 30px;
  height: 17px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  position: relative;
  transition: background var(--transition-interactive);
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-text-muted);
  transition: transform var(--transition-interactive), background var(--transition-interactive);
}

.switch input:checked + .switch-track {
  background: rgba(139, 92, 246, 0.32);
  border-color: var(--color-primary);
}

.switch input:checked + .switch-track::after {
  transform: translateX(13px);
  background: #c4b5fd;
}

.tz-seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  flex-shrink: 0;
}

.tz-seg button {
  border: 0;
  background: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.tz-seg button:hover {
  color: var(--color-text);
}

.tz-seg button.active {
  background: rgba(139, 92, 246, 0.22);
  color: #ddd6fe;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.42);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  transition: color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}

.icon-btn:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.icon-btn.spin svg {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.subnav {
  background: rgba(18, 23, 34, 0.88);
  border-top: 1px solid var(--color-divider);
}

.subnav-inner {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 42px;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-tabs button {
  padding: 9px 14px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition-interactive), border-color var(--transition-interactive);
  white-space: nowrap;
}

.nav-tabs button:hover {
  color: var(--color-text);
}

.nav-tabs button.active {
  color: #c4b5fd;
  border-bottom-color: var(--color-primary);
}

.my-team-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.my-team-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px 4px 6px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text);
  max-width: 320px;
}

.my-team-pill:hover {
  border-color: var(--color-primary);
}

.my-team-pill img,
.t-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-offset);
  flex-shrink: 0;
}

.t-logo-lg {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.t-logo-fallback {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--text-xs);
  color: #c4b5fd;
  background: var(--color-primary-soft);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* ===== Main Content & KPI Summary Strip ===== */
main.container {
  padding-block: var(--space-5) var(--space-10);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.kpi-card.clickable {
  cursor: pointer;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.kpi-card.clickable:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.kpi-card.accent {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.09), var(--color-surface));
}

.kpi-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.kpi-val {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

.kpi-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Toolbar / Week Selector / View Modes ===== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.wk-nav {
  display: inline-flex;
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wk-nav button {
  padding: 6px 11px;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: var(--text-sm);
}

.wk-nav button:hover:not(:disabled) {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.wk-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wk-select {
  background: transparent;
  border: none;
  border-inline: 1px solid var(--color-border);
  padding: 6px 10px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}

.wk-select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.wk-range {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-inline: var(--space-1);
}

.seg {
  display: inline-flex;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.seg button {
  padding: 5px 10px;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.seg button:hover {
  color: var(--color-text);
}

.seg button.active {
  background: var(--color-primary);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-live {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.38);
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.badge-mine {
  background: var(--color-amber-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.42);
}

.badge-muted {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

.badge-inj {
  background: var(--color-loss-soft);
  color: #fca5a5;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
}

/* ===== Matchup Cards Grid (Yahoo Scoreboard Modern View) ===== */
.matchups-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.m-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.m-card.is-mine {
  grid-column: 1 / -1;
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.08);
}

.m-card:hover {
  border-color: var(--color-primary);
}

.m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.m-head-left,
.m-head-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.m-open-btn {
  color: #c4b5fd;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.m-open-btn:hover {
  background: rgba(139, 92, 246, 0.28);
  color: #ffffff;
}

.m-teams {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: pointer;
}

.m-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 8px;
  border-radius: var(--radius-md);
}

.m-team-row.leading {
  background: rgba(34, 197, 94, 0.06);
}

.m-team-row.mine-row {
  background: rgba(245, 158, 11, 0.07);
}

.m-team-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.m-team-text {
  min-width: 0;
}

.m-team-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--text-base);
  min-width: 0;
}

.m-team-name .tname {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-tag {
  font-family: var(--font-num);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.rank-tag.top8 {
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.32);
}

.m-team-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gp-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.gp-live {
  color: #4ade80;
  font-weight: 700;
}

.m-score {
  font-size: 1.65rem;
  font-weight: 700;
  min-width: 34px;
  text-align: right;
  line-height: 1;
  color: var(--color-text-muted);
}

.m-score.win {
  color: #4ade80;
}

.m-score.tie {
  color: #fbbf24;
}

/* 11-Cat Strip inside each Matchup Card */
.m-cats-wrap {
  border-top: 1px solid var(--color-divider);
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.m-cats {
  width: 100%;
  min-width: 560px;
  font-size: var(--text-xs);
}

.m-cats th {
  padding: 5px 6px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: rgba(23, 29, 43, 0.7);
  text-align: right;
  border-bottom: 1px solid var(--color-divider);
}

.m-cats th:first-child,
.m-cats td:first-child {
  text-align: left;
  padding-left: var(--space-4);
  width: 112px;
  max-width: 112px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-cats td {
  padding: 5px 6px;
  text-align: right;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(29, 37, 56, 0.55);
}

.m-cats tr:last-child td {
  border-bottom: none;
}

.m-cats td.c-win {
  color: #86efac;
  background: var(--color-win-soft);
  font-weight: 700;
}

.m-cats td.c-tie {
  color: var(--color-text);
}

.m-cats td:last-child,
.m-cats th:last-child {
  padding-right: var(--space-4);
}

/* ===== Classic Yahoo Wide Scoreboard Table View & Standings Table ===== */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-head {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.panel-head h2 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.data-table {
  min-width: 820px;
  font-size: var(--text-sm);
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
}

.data-table th.sortable {
  cursor: pointer;
}

.data-table th.sortable:hover {
  color: var(--color-text);
}

.data-table th.sorted {
  color: #c4b5fd;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  padding-left: var(--space-4);
}

.data-table td {
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}

.data-table tr.row-click {
  cursor: pointer;
}

.data-table tr.row-click:hover td {
  background: var(--color-surface-2);
}

.data-table tr.mine-tr td {
  background: rgba(245, 158, 11, 0.08);
}

.data-table tr.mine-tr td:first-child {
  box-shadow: inset 3px 0 0 #f59e0b;
}

.data-table td.g1,
.data-table tr.mine-tr td.g1 {
  background: var(--good1);
}

.data-table td.g2,
.data-table tr.mine-tr td.g2 {
  background: var(--good2);
  color: #9af2bc;
  font-weight: 600;
}

.data-table td.g3,
.data-table tr.mine-tr td.g3 {
  background: var(--elite);
  color: #ffe39a;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 100, 0.55);
}

.data-table td.b1,
.data-table tr.mine-tr td.b1 {
  background: var(--bad1);
}

.data-table td.b2,
.data-table tr.mine-tr td.b2 {
  background: var(--bad2);
  color: #ffb4b4;
  font-weight: 600;
}

.data-table tr.row-click:hover td.g1 { background: var(--good1); filter: brightness(1.15); }
.data-table tr.row-click:hover td.g2 { background: var(--good2); filter: brightness(1.15); }
.data-table tr.row-click:hover td.g3 { background: var(--elite); filter: brightness(1.15); }
.data-table tr.row-click:hover td.b1 { background: var(--bad1); filter: brightness(1.15); }
.data-table tr.row-click:hover td.b2 { background: var(--bad2); filter: brightness(1.15); }

.data-table td .sub {
  font-size: 10.5px;
  margin-top: 1px;
  opacity: 0.85;
}

.standings-legend {
  padding: 10px var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.standings-legend .legend {
  margin-top: 0;
}

.opt-pill {
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-interactive);
}

.opt-pill:hover {
  color: var(--color-text);
}

.opt-pill.on {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(242, 140, 40, 0.45);
}

.data-table tr.playoff-cut td {
  border-bottom: 2px dashed rgba(139, 92, 246, 0.55);
}

.data-table tr.matchup-sep td {
  border-bottom: 2px solid var(--color-border);
}

.data-table td.c-win {
  color: #86efac;
  background: var(--color-win-soft);
  font-weight: 700;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.team-cell .tname {
  font-weight: 700;
  color: var(--color-text);
}

/* ===== Transactions + League Settings Split ===== */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.tx-list {
  display: flex;
  flex-direction: column;
}

.tx-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.tx-team {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  color: var(--color-text);
}

.tx-moves {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tx-move {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.tx-sign {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.tx-sign.add {
  background: var(--color-win-soft);
  color: #4ade80;
}

.tx-sign.drop {
  background: var(--color-loss-soft);
  color: #f87171;
}

.tx-sign.trade {
  background: var(--color-primary-soft);
  color: #c4b5fd;
}

.kv-list {
  padding: var(--space-2) var(--space-4);
}

.kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 9px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}

.kv-row:last-child {
  border-bottom: none;
}

.kv-row span:first-child {
  color: var(--color-text-muted);
}

.kv-row strong {
  text-align: right;
}

/* ===== Matchup Detail & Settings Drawer ===== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(4px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(1080px, 96vw);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.drawer.open {
  transform: translateX(0);
}

.drawer.narrow {
  width: min(460px, 94vw);
}

.drawer-head {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.drawer-head h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.roster-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.p-cell {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.p-headshot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-offset);
  flex-shrink: 0;
}

.slot-pill {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-num);
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-primary-soft);
  color: #c4b5fd;
}

.slot-pill.bench {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

.slot-pill.il {
  background: var(--color-loss-soft);
  color: #fca5a5;
}

.bench-row td {
  opacity: 0.72;
}

/* Settings Form */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.form-input {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-sm);
}

.btn-primary {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

/* Skeleton & States */
.skeleton-card {
  height: 190px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-2) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--color-border);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
}

.foot {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.foot a {
  color: #c4b5fd;
}

.foot a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .matchups-grid {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .topbar-inner,
  .subnav-inner {
    padding-inline: var(--space-3);
  }
  .topbar-inner {
    gap: var(--space-2);
  }
  .topbar-right {
    gap: 6px;
  }
  .brand {
    gap: var(--space-2);
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }
  .hide-sm,
  .hide-xs,
  .updated#updatedAt,
  .jump-pill svg {
    display: none !important;
  }
  .brand-txt small {
    display: none;
  }
  .jump-pill {
    padding: 4px 8px;
    gap: 4px;
  }
  .icon-btn {
    width: 29px;
    height: 29px;
  }
  .subnav-inner {
    flex-wrap: wrap;
    padding-block: 4px;
  }
  .my-team-pill {
    max-width: 100%;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
  .kpi-card {
    padding: var(--space-3);
  }
  .kpi-label {
    flex-wrap: wrap;
    gap: 4px;
  }
  .kpi-val {
    font-size: var(--text-lg);
  }
  .m-head {
    padding: var(--space-2) var(--space-3);
    flex-wrap: wrap;
  }
  .m-teams {
    padding: var(--space-3);
  }
  .m-team-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px var(--space-2);
  }
  .m-team-row .gp-pills {
    grid-column: 1 / 2;
    padding-left: 44px;
  }
  .m-team-row .m-score {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   Full-Screen Matchup Detail + 赛况台同款 Box 表格、五档标亮、虎扑评分与二级球员抽屉
   ========================================================================== */
:root {
  --good1: rgba(61, 220, 132, 0.13);
  --good2: rgba(61, 220, 132, 0.30);
  --elite: rgba(245, 190, 60, 0.34);
  --good-text: #4be096;
  --bad1: rgba(255, 92, 92, 0.12);
  --bad2: rgba(255, 92, 92, 0.28);
  --bad-text: #ff7a7a;
  --hupu: #e9b15f;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.14);
}

body.mfull-open {
  overflow: hidden;
}

.mfull {
  position: fixed;
  inset: 0;
  z-index: 48;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(960px 340px at 12% -6%, rgba(139, 92, 246, 0.14), transparent 65%),
    radial-gradient(760px 300px at 88% -8%, rgba(255, 122, 26, 0.08), transparent 60%),
    var(--color-bg);
  animation: mfIn 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mfull[hidden] {
  display: none !important;
}

@keyframes mfIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.mf-topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.mf-topbar-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding: 10px var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}

.mf-back:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.mf-switch-strip {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 2px;
}

.mf-switch-strip::-webkit-scrollbar {
  display: none;
}

.mf-mpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}

.mf-mpill:hover {
  color: var(--color-text);
  border-color: #3a4768;
}

.mf-mpill.active {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.mf-mpill.mine:not(.active) {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

.mf-mpill b {
  font-family: var(--font-num);
  font-size: 0.92rem;
  color: var(--color-text);
}

.mf-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mf-wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding: var(--space-4) var(--space-5) var(--space-12);
}

/* Date & Mode Strip (赛况台同款) */
.mf-ctrlbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.mf-daystrip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  padding-block: 2px;
}

.mf-daystrip::-webkit-scrollbar {
  display: none;
}

.mf-daybtn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}

.mf-daybtn:hover {
  color: var(--color-text);
  border-color: #3a4768;
}

.mf-daybtn small {
  font-size: 11px;
  opacity: 0.82;
}

.mf-daybtn b {
  font-family: var(--font-num);
  font-size: 0.95rem;
}

.mf-daybtn.today:not(.active) {
  border-color: rgba(255, 122, 26, 0.45);
  color: #fed7aa;
}

.mf-daybtn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #fff;
}

.mf-daybtn.active small {
  color: #ffb37a;
}

/* 赛况台 View Toolbar */
.mf-vbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.mf-seg {
  display: inline-flex;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.mf-seg button {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.mf-seg button:hover {
  color: var(--color-text);
}

.mf-seg button.active {
  background: var(--color-surface-offset);
  color: #fff;
  box-shadow: inset 0 0 0 1px #3a4869;
}

.mf-vbar .opts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.opt {
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  transition: color .15s, border-color .15s, background .15s;
}

.opt:hover {
  color: var(--color-text);
}

.opt.on {
  color: #ffb074;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ex-dd {
  position: relative;
}

.ex-dd summary {
  list-style: none;
  cursor: pointer;
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.ex-dd summary::-webkit-details-marker {
  display: none;
}

.ex-dd[open] summary,
.ex-dd summary:hover {
  color: var(--color-text);
  border-color: var(--accent);
}

.ex-pop {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 260px;
  padding: 10px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* 赛况台 11-Cat Matchup Head Card */
.matchup {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
}

.mu-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.mu-side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--text-base);
  min-width: 0;
}

.mu-side .mu-tmeta {
  min-width: 0;
}

.mu-side .mu-tnm {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-side .mu-tsub {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

.mu-side.opp {
  justify-content: flex-end;
  text-align: right;
}

.mu-score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-num);
}

.mu-score b {
  font-size: 1.85rem;
  line-height: 1;
}

.mu-score span {
  color: var(--color-text-faint);
}

.mu-score small {
  flex-basis: 100%;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-family: var(--font-body);
}

.mu-score.lead b:first-child {
  color: var(--good-text);
}

.mu-score.trail b:nth-of-type(2) {
  color: var(--bad-text);
}

.mu-grid {
  display: grid;
  grid-template-columns: repeat(var(--mu-cols, 11), minmax(0, 1fr));
  gap: 6px;
}

.mu-cat {
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  padding: 7px 4px;
  text-align: center;
  font-family: var(--font-num);
  border: 1px solid var(--color-divider);
  min-width: 0;
}

.mu-cat small {
  display: block;
  color: var(--color-text-faint);
  font-size: 11px;
  font-family: var(--font-body);
  margin-bottom: 2px;
}

.mu-cat b {
  display: block;
  font-size: 1.02rem;
  line-height: 1.15;
}

.mu-cat span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.15;
}

.mu-cat.win {
  border-color: rgba(61, 220, 132, 0.48);
  background: var(--good1);
}

.mu-cat.win b {
  color: #86efac;
}

.mu-cat.lose {
  border-color: rgba(255, 92, 92, 0.38);
  background: rgba(255, 92, 92, 0.08);
}

.mu-cat.lose span {
  color: #fca5a5;
  font-weight: 700;
}

.mu-note {
  margin-top: var(--space-3);
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

/* 赛况台 Section Title + Box Table + Heat Highlighting */
.mf-team-sec {
  margin-bottom: var(--space-6);
}

.mf-sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.mf-sec-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-lg);
  font-weight: 700;
}

.mf-sec-left small {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
}

.table-wrap.mf-twrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: visible;
}

table.box {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
}

table.box th,
table.box td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}

table.box th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--text-xs);
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 -1px 0 var(--color-border);
}

table.box th:hover {
  color: var(--color-text);
}

table.box th.sorted {
  color: var(--accent);
}

table.box th.cat {
  color: #ffb074;
}

table.box td {
  font-family: var(--font-num);
  font-size: 0.96rem;
}

table.box .pcol {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--color-surface);
  text-align: left;
  font-family: var(--font-body);
  min-width: 215px;
  max-width: 270px;
  box-shadow: 1px 0 0 var(--color-divider);
}

table.box thead th.pcol {
  z-index: 4;
  background: var(--color-surface-2);
}

table.box tbody tr:hover td {
  background-color: #192030;
}

table.box tbody tr:hover td.pcol {
  background-color: #192030;
}

/* 当天有比赛的阵容球员轻微底色 */
table.box tbody tr.has-game > td {
  background-image: linear-gradient(rgba(64, 196, 160, 0.065), rgba(64, 196, 160, 0.065));
}

table.box tbody tr.has-game:hover > td {
  background-image: linear-gradient(rgba(64, 196, 160, 0.11), rgba(64, 196, 160, 0.11));
}

table.box tr.dnp td {
  color: var(--color-text-faint);
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

table.box tr.has-game.dnp .pn {
  color: var(--color-text);
}

table.box tr.has-game.dnp .dnp-reason {
  color: rgba(120, 214, 186, 0.85);
}

table.box tr.bench > td {
  opacity: 0.54;
}

table.box tr.tx-out > td {
  opacity: 0.55;
}

table.box tr.totals td {
  font-weight: 700;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
}

table.box tr.totals td.pcol {
  background: var(--color-surface-2);
}

.pcell {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pcell img.pav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-offset);
  flex: none;
}

.pcell .pn-wrap {
  min-width: 0;
}

.pcell .pn {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pcell:hover .pn {
  color: #ffb074;
}

.pcell .psub {
  color: var(--color-text-faint);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.slot-mini {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 19px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  color: #d8b4fe;
  flex-shrink: 0;
}

.slot-mini.bn {
  color: var(--color-text-faint);
  background: rgba(255, 255, 255, 0.03);
}

.slot-mini.il {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

.st-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.oncourt-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.vs-link {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.vs-link:hover {
  color: var(--accent);
}

.live-clk {
  color: #4ade80;
  font-family: var(--font-num);
  font-weight: 600;
}

.sub {
  display: block;
  color: var(--color-text-faint);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.05;
}

/* 五档重点数据高亮规则（与 NBA 赛况台 100% 对齐） */
td.g1 { background: var(--good1); }
td.g2 { background: var(--good2); font-weight: 600; }
td.g3 { background: var(--elite); color: #ffe39a; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255, 210, 100, 0.55); }
td.b1 { background: var(--bad1); }
td.b2 { background: var(--bad2); color: #ffb4b4; font-weight: 600; }
td.val { font-weight: 700; cursor: help; }

/* 虎扑五档评分徽章 */
.hp {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: rgba(233, 177, 95, 0.14);
  color: var(--hupu);
  border: 1px solid transparent;
}

.hp:hover {
  border-color: currentColor;
}

.hp.t5, .hpt.t5 { background: rgba(192, 132, 252, 0.22); color: #e9d5ff; }
.hp.t4, .hpt.t4 { background: rgba(56, 189, 248, 0.18); color: #bae6fd; }
.hp.t3, .hpt.t3 { background: rgba(45, 212, 191, 0.16); color: #99f6e4; }
.hp.t2, .hpt.t2 { background: rgba(251, 146, 60, 0.16); color: #fed7aa; }
.hp.t1, .hpt.t1 { background: rgba(248, 113, 113, 0.20); color: #fecaca; }
.hpt { padding: 2px 8px; border-radius: 8px; }

.legend {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
}

.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 4px;
}

.faint { color: var(--color-text-faint); }
.win { color: var(--good-text); font-weight: 700; }
.loss { color: var(--bad-text); font-weight: 700; }
.bad { color: var(--bad-text); }

/* 二级侧滑抽屉：球员档案 / 虎扑热评 / NBA 单场统计 */
.drawer.player-dr {
  width: min(100vw, max(940px, 67vw));
  overflow-y: auto;
  overflow-x: hidden;
}

.dr-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.dr-head {
  padding: var(--space-4) var(--space-5) var(--space-2);
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.dr-head img.dr-av {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--color-surface-offset);
}

.dr-head .nm {
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.dr-head .nm small {
  display: block;
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: var(--text-xs);
  margin-top: 3px;
}

.dr-tabs {
  display: flex;
  gap: var(--space-1);
  padding: 0 var(--space-5);
}

.dr-tabs button {
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: var(--text-sm);
  border-bottom: 2px solid transparent;
}

.dr-tabs button.active {
  color: var(--color-text);
  border-bottom-color: var(--accent);
}

.dr-body {
  padding: var(--space-4) var(--space-5) var(--space-10);
  display: grid;
  gap: var(--space-5);
}

.dr-body > * {
  min-width: 0;
}

.bio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: var(--space-2);
}

.bio > div {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  min-width: 0;
}

.bio small {
  display: block;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.bio span {
  font-weight: 600;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.dr-section h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.awards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.award {
  background: var(--accent-soft);
  color: var(--color-text);
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: var(--text-xs);
}

.award b {
  color: var(--accent);
  font-family: var(--font-num);
}

.note {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: #cbd5e1;
  line-height: 1.6;
}

.statline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: var(--space-2);
}

.statline div {
  background: var(--color-surface-2);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: center;
}

.statline b {
  display: block;
  font-family: var(--font-num);
  font-size: var(--text-lg);
  line-height: 1.1;
}

.statline small {
  color: var(--color-text-faint);
  font-size: 11px;
}

.statline div.g1 { background: var(--good1); }
.statline div.g2 { background: var(--good2); }
.statline div.g3 { background: var(--elite); box-shadow: inset 0 0 0 1px rgba(255, 210, 100, 0.55); }
.statline div.g3 b { color: #ffe39a; }
.statline div.b1 { background: var(--bad1); }
.statline div.b2 { background: var(--bad2); }

table.box.mini th,
table.box.mini td {
  padding: 5px 7px;
}

table.box.mini .lcol {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.dr-score {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.dr-score .big {
  font-family: var(--font-num);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.dr-score .meta {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: 4px;
}

.dist {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 180px;
}

.dist-row {
  display: grid;
  grid-template-columns: 64px 1fr 38px;
  gap: 8px;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.dist-row .bar {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: 3px;
  overflow: hidden;
}

.dist-row .bar span {
  display: block;
  height: 100%;
  background: var(--hupu);
  border-radius: 3px;
}

.dist-row .pct {
  text-align: right;
  font-family: var(--font-num);
}

.trend-box { position: relative; }
.trend-svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend-svg .tg { stroke: var(--color-border); stroke-width: 1; stroke-dasharray: 2 3; }
.trend-svg .ty, .trend-svg .tx { fill: var(--color-text-faint); font-size: 10px; font-family: var(--font-num); }
.trend-svg .ty { text-anchor: end; }
.trend-svg .tx { text-anchor: middle; }
.trend-svg .tband { fill: rgba(255, 255, 255, 0.025); }
.trend-svg .tline { fill: none; stroke: var(--hupu); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-svg .tarea { fill: var(--hupu); opacity: 0.12; }
.trend-svg .tdot { fill: var(--hupu); stroke: var(--color-surface); stroke-width: 2; }
.trend-svg .tlast { fill: var(--color-text); font-size: 11px; font-weight: 700; text-anchor: middle; font-family: var(--font-num); }
.trend-svg .thit { fill: transparent; cursor: pointer; }
.trend-tip { position: absolute; padding: 3px 8px; font-size: 11px; background: var(--color-surface-offset); color: var(--color-text); border: 1px solid var(--color-border); border-radius: 4px; pointer-events: none; white-space: nowrap; font-family: var(--font-num); }

.trend-sec > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 2px 0;
}

.trend-sec > summary::-webkit-details-marker { display: none; }
.trend-sec > summary:hover { color: var(--color-text); }
.trend-sec > summary .faint { margin-left: auto; font-weight: 400; font-size: var(--text-xs); }
.trend-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .18s ease; margin-right: 2px; }
.trend-sec[open] > summary .trend-caret { transform: rotate(45deg); }
.trend-sec[open] > summary { margin-bottom: 10px; }

.comment {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
}

.comment img.u {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-surface-offset);
}

.comment .who {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.comment .who b { color: var(--color-text); font-weight: 600; }
.comment .stars { color: var(--hupu); letter-spacing: 1px; }
.comment .ct { font-size: var(--text-sm); margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.comment .imgs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.comment .cm-thumb { position: relative; padding: 0; border: 1px solid var(--color-border); background: var(--color-surface-offset); border-radius: 6px; cursor: zoom-in; overflow: hidden; line-height: 0; }
.comment .cm-thumb img { width: 88px; height: 88px; object-fit: cover; display: block; }
.comment .gif-tag { position: absolute; left: 4px; bottom: 4px; font-size: 10px; padding: 2px 4px; border-radius: 3px; background: rgba(0,0,0,.68); color: #fff; }
.comment .light { color: var(--hupu); font-family: var(--font-num); }

.state {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.state.err { color: var(--bad-text); }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 6, 10, 0.93); display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.lightbox[hidden] { display: none !important; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; height: 100%; justify-content: center; }
.lb-fig img { max-width: 100%; max-height: calc(100% - 32px); object-fit: contain; border-radius: 6px; }
.lb-cap { font-size: var(--text-xs); color: var(--color-text-muted); }
.lb-btn { position: fixed; z-index: 1; border: 1px solid rgba(255,255,255,.16); background: rgba(20,23,32,.85); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.lb-btn[hidden] { display: none !important; }
.lb-close { top: 12px; right: 12px; font-size: 15px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
  .tz-seg button {
    padding: 3px 6px;
    font-size: 11px;
  }
  .jump-pill {
    padding: 4px 8px;
    font-size: 11.5px;
  }
  .mf-topbar-inner,
  .mf-wrap {
    padding-inline: var(--space-3);
  }
  .mf-topbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .mf-switch-strip {
    order: 3;
    flex: 1 0 100%;
    padding-top: 2px;
  }
  .mf-actions {
    margin-left: auto;
  }
  .mf-sec-left {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .mf-sec-left small {
    flex-basis: 100%;
    margin-left: 0;
  }
  .mu-head {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .mu-side,
  .mu-side.opp {
    justify-content: center;
    text-align: center;
  }
  .mu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  table.box .pcol {
    min-width: 145px;
    max-width: 185px;
  }
  .pcell img.pav {
    width: 22px;
    height: 22px;
  }
  .dr-head,
  .dr-tabs,
  .dr-body {
    padding-inline: var(--space-3);
  }
}


/* ===== 球员（Yahoo Players）列表 ===== */
.pl-panel { overflow: hidden; }
.pl-bar { padding: 10px var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.pl-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pl-sel { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 600; }
.pl-sel select, .pl-search input {
  background: var(--color-surface-2); color: var(--color-text); border: 1px solid var(--color-border);
  border-radius: 7px; padding: 5px 8px; font-size: var(--text-xs); font-family: inherit;
}
.pl-search { display: inline-flex; gap: 6px; align-items: center; }
.pl-search input { width: 150px; }
.pl-table td, .pl-table th { white-space: nowrap; }
.pl-table .pcell { min-width: 170px; }
.pl-table .pn { font-weight: 700; }
.pl-table .psub { font-size: 11px; color: var(--color-text-muted); }
.pl-rk { color: var(--color-text-muted); width: 28px; }
.pl-av { min-width: 150px; line-height: 1.35; }
.pl-chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: var(--color-surface-2); color: var(--color-text-muted); border: 1px solid var(--color-border);
}
.pl-chip.fa { background: rgba(34, 197, 94, 0.14); color: #7be3a1; border-color: rgba(34, 197, 94, 0.4); }
.pl-chip.wv { background: rgba(250, 176, 5, 0.14); color: #ffd36b; border-color: rgba(250, 176, 5, 0.45); }
.pl-chip.tk.mine { background: rgba(124, 58, 237, 0.2); color: #c9b3ff; border-color: rgba(124, 58, 237, 0.5); }
.pl-when { font-size: 12px; color: var(--color-text); margin-top: 3px; }
.pl-left { font-size: 11px; color: var(--color-text-muted); }
.pl-delta { font-size: 10.5px; margin-left: 3px; }
.pl-delta.up { color: #6ee7a0; }
.pl-delta.down { color: #ff9b9b; }
.pl-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px var(--space-4); border-top: 1px solid var(--color-border); }
.pl-note { font-size: 11.5px; color: var(--color-text-muted); }
.pl-table th.sorted { color: var(--color-text); }
@media (max-width: 640px) {
  .pl-search input { width: 120px; }
  .pl-av { min-width: 130px; }
}
.pl-table th:nth-child(2), .pl-table th:nth-child(3) { text-align: left; }
.pl-opp { font-weight: 700; font-size: 12.5px; }
.pl-opp-td { min-width: 78px; line-height: 1.3; }
.pl-bar .pl-sel select { min-width: 110px; max-width: 190px; }

/* 虎扑评分：本场 / 本周 / 赛季 */
.hp-scope { margin-bottom: var(--space-3); }
.hp-gline { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 2px 10px; font-size: var(--text-sm); color: var(--color-text-muted); }
.hp-gline .win { color: var(--color-success, #4ade80); font-weight: 700; }
.hp-gline .loss { color: var(--color-error, #f87171); font-weight: 700; }
.hp-sum { margin-bottom: var(--space-3); }
.hp-sum .statline { flex: 1; }
.trend-svg .tavg { stroke: var(--hupu); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.7; }
.trend-svg .tbar { fill: var(--hupu); opacity: 0.18; }
.trend-svg .tsc { fill: var(--color-text); font-size: 10px; font-weight: 700; text-anchor: middle; font-family: var(--font-num); }
.trend-svg .tpt { cursor: pointer; }
tr.hp-ev { cursor: pointer; }
tr.hp-ev:hover td { background: var(--color-surface-2); }
.hp-chip { padding: 1px 7px; border-radius: 8px; font-weight: 700; font-family: var(--font-num); }
.win { color: var(--color-success, #4ade80); }
.loss { color: var(--color-error, #f87171); }
