:root {
  --navy: #06192b;
  --navy-2: #0a2136;
  --navy-3: #0d2740;
  --rule: #163b58;
  --orange: #e26f0f;
  --orange-bright: #f0872f;
  --tan: #f1e6d1;
  --dim: #8fa3b5;
  --green: #16a34a;
  --qb: #c0562f;
  --rb: #1f8a4c;
  --wr: #2b6cb0;
  --te: #7a4fb0;
}

.tabs {
  max-width: 1120px; margin: 0 auto;
  padding: 0 24px; display: flex; gap: 4px;
}
.tab {
  background: none; border: none; cursor: pointer;
  color: var(--dim); font-family: "Work Sans", sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 12px 18px; border-bottom: 2px solid transparent;
  transition: color 150ms, border-color 150ms;
}
.tab:hover { color: var(--tan); }
.tab.active { color: var(--orange); border-bottom-color: var(--orange); }

.draft-main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.panel-head h2 {
  font-family: Anton, sans-serif; font-weight: 400;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.5px; color: #fff;
}
.search {
  background: var(--navy-3); border: 1px solid var(--rule);
  border-radius: 6px; color: var(--tan);
  padding: 10px 14px; font-size: 14px; min-width: 260px;
  font-family: "Work Sans", sans-serif;
}
.search:focus { outline: none; border-color: var(--orange); }

.filter-row { margin-bottom: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.filter-row select {
  background: var(--navy-3); border: 1px solid var(--rule);
  border-radius: 6px; color: var(--tan); font-family: "Work Sans", sans-serif;
  font-size: 14px; padding: 10px 14px; cursor: pointer; min-width: 200px;
}
.filter-row select:focus { outline: none; border-color: var(--orange); }

.loading, .empty-state {
  color: var(--dim); text-align: center; padding: 60px 20px; font-size: 15px;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; }
table.data thead th {
  background: var(--navy-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--dim); text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
table.data tbody td { padding: 11px 14px; border-bottom: 1px solid var(--navy-2); font-size: 14px; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: rgba(226,111,15,0.06); }
table.data thead th.num-th { text-align: right; }
.mono { font-family: "IBM Plex Mono", monospace; }
.player-cell { font-weight: 600; }
.faab-cell { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--orange-bright); text-align: right; }
.num-td { text-align: right; }
.date-cell { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--dim); white-space: nowrap; }

.pos-badge {
  display: inline-block; font-family: "IBM Plex Mono", monospace;
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 3px;
  letter-spacing: 0.5px;
}
.pos-badge.QB { background: rgba(192,86,47,0.2); color: #e8926a; }
.pos-badge.RB { background: rgba(31,138,76,0.2); color: #4fbf82; }
.pos-badge.WR { background: rgba(43,108,176,0.2); color: #6ba3dd; }
.pos-badge.TE { background: rgba(122,79,176,0.2); color: #a985d6; }
.pos-badge.K, .pos-badge.DEF { background: rgba(143,163,181,0.2); color: var(--dim); }

.add-tag { color: #4fbf82; font-weight: 600; }
.drop-tag { color: #e8926a; font-weight: 600; }

.pname {
  cursor: pointer; text-decoration: none; border-bottom: 1px dashed transparent;
  transition: border-color 150ms;
}
.pname:hover { border-bottom-color: currentColor; }

/* ---------- Player modal ---------- */
.pm-overlay {
  position: fixed; inset: 0; background: rgba(4,14,24,0.72);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.pm-card {
  background: var(--navy-3); border: 1px solid var(--rule); border-radius: 12px;
  max-width: 480px; width: 100%; max-height: 82vh; overflow-y: auto;
  padding: 26px; position: relative;
}
.pm-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--dim); font-size: 26px;
  cursor: pointer; line-height: 1; padding: 4px;
}
.pm-close:hover { color: var(--tan); }
.pm-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 20px; }
.pm-headshot {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  background: var(--navy-2); border: 1px solid var(--rule); flex-shrink: 0;
}
.pm-name { font-family: Anton, sans-serif; font-size: 22px; color: #fff; letter-spacing: 0.3px; }
.pm-sub { color: var(--dim); font-size: 13px; margin-top: 3px; font-family: "IBM Plex Mono", monospace; }
.pm-pct-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.pm-pct-row .own-bar-wrap { flex: 1; }
.pm-pct-row .own-pct { width: auto; }
.pm-leagues { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.pm-league-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 6px; background: var(--navy-2);
  font-size: 14px;
}
.pm-league-row .div-name { color: var(--tan); font-weight: 600; }
.pm-league-row .status.owned { color: #4fbf82; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.pm-league-row .status.available { color: var(--dim); font-family: "IBM Plex Mono", monospace; font-size: 13px; }

/* ---------- Ownership bars ---------- */
.own-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-bottom: 1px solid var(--navy-2);
}
.own-row:last-child { border-bottom: none; }
.own-row:hover { background: rgba(226,111,15,0.06); }
.own-name { width: 220px; flex-shrink: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.own-nfl { color: var(--dim); font-size: 12px; font-family: "IBM Plex Mono", monospace; }
.own-bar-wrap {
  flex: 1; height: 10px; background: var(--navy-2); border-radius: 5px; overflow: hidden;
}
.own-bar { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-bright)); }
.own-pct {
  width: 110px; flex-shrink: 0; text-align: right;
  font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--tan);
}
.own-pct .frac { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 6px; }

/* ---------- Hero (shared with draft-tool) ---------- */
.draft-central-hero {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 20px;
}
.draft-central-hero .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.dc-brand { display: flex; align-items: center; gap: 16px; }
.dc-logo { height: 52px; width: auto; display: block; }
.dc-brand h1 {
  font-family: Anton, sans-serif; font-weight: 400;
  font-size: 30px; letter-spacing: 0.5px; text-transform: uppercase;
  color: #fff; line-height: 1;
}
.dc-brand p { color: var(--orange); font-size: 13px; font-weight: 600; margin-top: 4px; }
.last-sync { color: var(--dim); font-size: 12px; font-family: "IBM Plex Mono", monospace; text-align: right; }

nav.tabs.wrap {
  display: flex; gap: 4px; border-bottom: 1px solid var(--rule);
  margin-top: 0; margin-bottom: 0; padding-top: 8px;
}
.draft-main.wrap { padding-top: 30px; padding-bottom: 70px; }

@media (max-width: 780px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .last-sync { text-align: left; }
  .search { min-width: 0; width: 100%; }
  .own-name { width: 140px; }
  .own-pct { width: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }