/* Season page header (assets/season-header.js): year tabs, podium, bracket, standings, superlatives.
   Uses app.css theme tokens so light + dark both work. */

.sh-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 1rem; }
.sh-tabs a {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--main-border);
  background: var(--main-surface); color: var(--main-text); font-weight: 700; font-size: 14px;
  display: inline-flex; gap: 6px; align-items: center; text-decoration: none;
}
.sh-tabs a:hover { border-color: var(--link); color: var(--link); }
.sh-tabs a.on { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.sh-live {
  background: #dc2626; color: #fff; border-radius: 999px; padding: 1px 6px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
}

.sh-eras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sh-eras span {
  font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--main-surface-2); border: 1px solid var(--main-border); color: var(--main-text-muted);
}

.sh-hero { display: flex; flex-direction: column; gap: 1rem; margin: 0 0 1.25rem; }
.sh-muted { color: var(--main-text-muted); font-size: 12.5px; font-weight: 500; }

/* podium — same gold / silver / bronze as the team cards */
.sh-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh-card-link { text-decoration: none !important; color: inherit; display: block; }
.sh-pod { border-radius: 14px; padding: 16px 18px; height: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08); transition: transform .12s ease; }
.sh-card-link:hover .sh-pod { transform: translateY(-2px); }
.sh-place { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .8; }
.sh-nm { font-size: 22px; font-weight: 800; line-height: 1.15; margin-top: 6px; letter-spacing: -0.01em; }
.sh-meta { font-size: 13px; margin-top: 6px; opacity: .85; font-variant-numeric: tabular-nums; }
.sh-p1 { background: #FFD700; color: #1b1400; }
.sh-p2 { background: #C0C0C0; color: #111; }
.sh-p3 { background: #CD7F32; color: #fff; }

/* boxes */
.sh-box { background: var(--main-surface); border: 1px solid var(--main-border); border-radius: 14px; overflow: hidden; }
.sh-box-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 14px 18px 0; }
.sh-box-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--link); }

/* bracket */
.sh-bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 18px; overflow-x: auto; padding: 14px 18px 18px; }
.sh-round h4 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--main-text-muted); }
.sh-games { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; height: calc(100% - 26px); }
.sh-game { border: 1px solid var(--main-border); border-radius: 10px; overflow: hidden; background: var(--main-surface-2); }
.sh-side { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: 14px; color: var(--main-text); }
.sh-side + .sh-side { border-top: 1px solid var(--main-border); }
.sh-side.win { font-weight: 700; color: var(--main-text-strong); }
.sh-side.lose { color: var(--main-text-muted); }
.sh-side .num { font-variant-numeric: tabular-nums; }
.sh-game.bye { border-style: dashed; background: transparent; }
.sh-game.final { border-color: #e5b800; box-shadow: 0 0 0 1px #e5b800; }

/* moved Final Standings block */
.sh-standings { margin-top: 0 !important; max-width: none !important; }

/* all-play & luck (under Final Standings) */
.sh-allplay { margin: 18px 0 8px; padding: 14px 16px; border: 1px solid var(--main-border); border-radius: 14px; background: var(--main-surface, transparent); }
.sh-allplay h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; color: var(--main-text-strong); }
.sh-ap-sub { font-size: 12px; color: var(--main-text-muted); margin: 0 0 6px; }
.sh-ap-call { font-size: 13px; margin: 0 0 10px; }
.sh-ap-wrap { overflow-x: auto; }
.sh-ap-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sh-ap-table th, .sh-ap-table td { padding: 6px 8px; border-bottom: 1px solid var(--main-border); text-align: right; white-space: nowrap; }
.sh-ap-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--main-text-muted); }
.sh-ap-table .l { text-align: left; white-space: normal; }
.sh-ap-luck.lucky { color: #16a34a; font-weight: 800; }
.sh-ap-luck.unlucky { color: #dc2626; font-weight: 800; }

/* superlatives */
.sh-supers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; padding: 14px 18px 18px; }
.sh-sl { border: 1px solid var(--main-border); border-radius: 12px; padding: 10px 12px; background: var(--main-surface-2); }
.sh-sl .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--main-text-muted); font-weight: 800; }
.sh-sl .v { font-size: 22px; font-weight: 800; margin-top: 2px; color: var(--main-text-strong); font-variant-numeric: tabular-nums; }
.sh-sl .s { font-size: 13px; color: var(--main-text); }

.sh-divider { display: flex; align-items: center; gap: 12px; margin-top: .5rem; color: var(--main-text-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sh-divider::before, .sh-divider::after { content: ""; flex: 1; height: 1px; background: var(--main-border); }

.sh-swipe-hint { display: none; }

@media (max-width: 767px) {
  .sh-swipe-hint {
    display: flex; align-items: center; gap: 6px; margin: 0 0 6px;
    font-size: 11.5px; font-weight: 600; color: var(--main-text-muted);
  }
  .sh-swipe-hint span { font-size: 14px; color: var(--link); }
  .sh-tabs { flex-wrap: wrap; padding-bottom: 4px; }
  .sh-tabs::-webkit-scrollbar { display: none; }
  body .sh-tabs a { flex-shrink: 0; font-size: 13px !important; padding: 5px 11px !important; min-height: 0 !important; }
  .sh-podium { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sh-pod { padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; border-radius: 12px; }
  .sh-place { grid-column: 1 / -1; font-size: 10px; }
  .sh-nm { font-size: 16px; margin-top: 2px; }
  .sh-meta { font-size: 12px; margin-top: 2px; text-align: right; }
  .sh-bracket { grid-auto-columns: minmax(190px, 78%); padding: 12px 14px 14px; }
  .sh-supers { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px 14px; gap: 8px; }
  .sh-sl .v { font-size: 19px; }
  .sh-sl .s { font-size: 12px; }
  .sh-box-head { padding: 12px 14px 0; }
}

/* Section tabs on past-season pages (season-header.js pageTabs) */
.sh-tab-hide { display: none !important; }
.sh-ptabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0 1rem; }
.sh-ptabs::-webkit-scrollbar { display: none; }
.sh-ptabs button { flex: 0 0 auto; border: 1px solid rgba(127,127,127,0.28); background: transparent; color: inherit; font: inherit; font-size: 0.86rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; cursor: pointer; opacity: 0.8; }
.sh-ptabs button:hover { opacity: 1; }
.sh-ptabs button.on { background: #1a73e8; border-color: #1a73e8; color: #fff; opacity: 1; }
@media (max-width: 767px) {
  /* phones: every button visible, no sideways scrolling; buttons stretch to fill each row */
  .sh-ptabs button { flex: 1 1 auto; font-size: 0.82rem; padding: 0.5rem 0.6rem; }
  .sh-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
  body .sh-tabs a { text-align: center; justify-content: center; }
}

/* Draft tab (assets/season-draft.js) */
.sh-draft { margin: 18px 0 8px; padding: 14px 16px; border: 1px solid var(--main-border); border-radius: 14px; background: var(--main-surface, transparent); }
.sh-draft h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; color: var(--main-text-strong); }
.sh-draft h4 { font-size: 13px; font-weight: 800; margin: 10px 0 4px; color: var(--main-text-strong); }
.sd-muted { font-size: 12px; color: var(--main-text-muted); margin: 0 0 8px; line-height: 1.4; }
.sd-views, .sd-rounds { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.sd-views button, .sd-rounds button { border: 1px solid var(--main-border); background: var(--main-surface-2, transparent); color: var(--main-text-muted); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.sd-rounds button { padding: 3px 8px; font-size: 11px; min-width: 34px; }
.sd-views button.on, .sd-rounds button.on { background: var(--link, #1a73e8); border-color: var(--link, #1a73e8); color: #fff; }
.sd-team { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--main-border); background: var(--main-surface-2, transparent); color: inherit; max-width: 100%; }
.sd-team option { color: #111; background: #fff; }
html[data-theme="dark"] .sd-team option { color: #f4f4f5; background: #18181b; }
.sd-call { font-size: 12.5px; margin: 8px 0; color: var(--main-text); line-height: 1.45; }
.sd-list { list-style: none; margin: 0; padding: 0; }
.sd-pick { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--main-border); }
.sd-pick:first-child { border-top: 0; }
.sd-no { font-size: 11px; font-weight: 800; color: var(--main-text-muted); font-variant-numeric: tabular-nums; }
.sd-main { min-width: 0; font-size: 13px; color: var(--main-text-strong); }
.sd-sub { display: block; font-size: 11px; color: var(--main-text-muted); margin-top: 1px; }
.sd-pts { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--main-text-strong); }
.sd-pos { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: rgba(127,127,127,.15); color: var(--main-text-muted); }
.sd-pos-QB { background: rgba(239,68,68,.15); color: #dc2626; } .sd-pos-RB { background: rgba(34,197,94,.15); color: #16a34a; }
.sd-pos-WR { background: rgba(59,130,246,.15); color: #2563eb; } .sd-pos-TE { background: rgba(245,158,11,.18); color: #d97706; }
html[data-theme="dark"] .sd-pos-QB { color: #f87171; } html[data-theme="dark"] .sd-pos-RB { color: #4ade80; }
html[data-theme="dark"] .sd-pos-WR { color: #93c5fd; } html[data-theme="dark"] .sd-pos-TE { color: #fbbf24; }
.sd-keep { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #7c3aed; color: #fff; }
.sd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 767px) { .sd-two { grid-template-columns: 1fr; gap: 4px; } .sh-draft { padding: 12px; } }
