:root {
  --bg: #0f1115; --panel: #181b22; --line: #2a2f3a; --text: #eef0f4;
  --muted: #9aa3b2; --accent: #e5383b; --live: #ff3b3b; --gold: #f2c94c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { position: sticky; top: 0; z-index: 2; background: var(--bg);
  border-bottom: 1px solid var(--line); padding: 10px 14px 0; }
/* Logo: red "FS" tile (same art as the favicon) + all-caps wordmark. Tagline shows on wider screens only. */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; max-width: calc(100% - 96px); }
.brand-mark { display: block; width: 30px; height: 30px; border-radius: 7px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 900; font-size: 20px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.brand-tag { display: none; margin-top: 3px; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (min-width: 600px) { .brand-tag { display: block; } }
.sports { display: flex; gap: 18px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.sports a, .sports span { white-space: nowrap; font-weight: 600; color: var(--muted); text-decoration: none; padding-bottom: 6px; }
.sports .active { color: var(--text); border-bottom: 3px solid var(--accent); }
.sports .soon { opacity: .45; }
.sports a.is-live { color: var(--text); }
.tab-live { display: inline-block; width: 7px; height: 7px; margin-left: 5px; vertical-align: 2px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { max-width: 680px; margin: 0 auto; padding: 8px 12px 24px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 4px 8px; display: flex; align-items: center; gap: 8px; }
#live h2 { color: var(--live); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.status { color: var(--muted); text-align: center; padding: 16px; }
.status.sample { background: #2b2410; color: var(--gold); border-radius: 10px; padding: 10px; font-size: 14px; }
.event { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; overflow: hidden; }
#live .event { border-color: var(--live); }
.event summary { list-style: none; cursor: pointer; padding: 14px 16px; }
.event summary::-webkit-details-marker { display: none; }
.when { color: var(--muted); font-size: 13px; }
.title { font-weight: 700; font-size: 17px; margin: 2px 0; }
.times { font-size: 14px; }
.venue { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cancelled .title { text-decoration: line-through; color: var(--muted); }
.bouts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.bout { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.bout:last-child { border-bottom: 0; }
.names { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-weight: 600; }
.vs { color: var(--muted); font-size: 12px; font-weight: 400; }
.meta { color: var(--muted); font-size: 13px; }
.side { display: inline-flex; align-items: baseline; gap: 4px; }
.side.lost, .side.lost a { color: var(--muted); font-weight: 500; }
.wmark { background: #1f7a3a; color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 0 4px; line-height: 16px; align-self: center; }
.bout.live { box-shadow: inset 3px 0 0 var(--live); }
.fight-tag { color: var(--live); font-weight: 700; margin-right: 6px; }
.empty { color: var(--muted); padding: 0 16px 14px; margin: 0; }
.past { margin-top: 18px; }
.past > summary { cursor: pointer; color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 4px; }
.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 10px 16px 40px; }
.foot p { margin: 4px 0; }
.small { font-size: 12px; opacity: .8; }
a { color: #ff6b6d; }
.more { display: block; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.prose { line-height: 1.6; }
.prose h1 { font-size: 26px; margin: 18px 0 8px; }
.prose h2 { text-transform: none; letter-spacing: 0; font-size: 18px; color: var(--text); margin: 22px 0 6px; }
.event-page h1 { font-size: 24px; margin: 6px 0 4px; }
.crumbs { margin: 12px 0 0; font-size: 14px; }
.start-times { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.start-times li { display: flex; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.start-times span { color: var(--muted); font-weight: 400; }
.watch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.watch li { display: flex; flex-direction: column; gap: 4px; }
.watch-btn { display: inline-block; align-self: flex-start; background: var(--accent); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.disclose { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 10px 2px; }
.disclose a { color: inherit; }
.watch-btn.plain { background: var(--panel); border: 1px solid var(--line); }
.card-full .pad { padding: 14px 16px 0; margin: 0 0 10px; }
/* Football pages */
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 4px 0; }
.pagehead h1 { font-size: 20px; margin: 0; }
.weekno { color: var(--muted); font-weight: 500; font-size: 15px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.chip input { accent-color: var(--accent); margin: 0; }
.day { font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 4px 6px; }
.game { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 8px; }
.game.live { border-color: var(--live); }
.game.redzone { box-shadow: inset 4px 0 0 var(--live); }
.game.cancelled .tname { text-decoration: line-through; color: var(--muted); }
.teams { display: grid; gap: 4px; min-width: 0; }
.team { display: flex; align-items: baseline; gap: 8px; }
.tname { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { color: var(--muted); font-size: 12px; font-weight: 600; margin-right: 5px; }
.ball { color: var(--gold); font-size: 10px; margin-left: 6px; vertical-align: 2px; }
.rec { color: var(--muted); font-size: 12px; }
.score { font-weight: 800; font-size: 18px; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.team.lost { color: var(--muted); }
.team.lost .score { font-weight: 600; }
.gstatus { min-width: 96px; justify-content: flex-end; font-size: 14px; font-weight: 600; text-align: right; color: var(--text); white-space: nowrap; border-left: 1px solid var(--line); padding-left: 12px; align-self: stretch; display: flex; align-items: center; }
.game.live .gstatus { color: var(--live); }
.game.final .gstatus { color: var(--muted); }
.gmeta { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
/* Fighter links and fighter pages */
a.f { color: inherit; text-decoration: underline; text-decoration-color: rgba(154,163,178,.45); text-underline-offset: 3px; }
a.f:hover, a.f:focus-visible { text-decoration-color: var(--accent); }
.fighter-page h1 { font-size: 26px; margin: 6px 0 2px; }
.fighter-page .nick { color: var(--muted); margin: 0 0 8px; font-style: italic; }
.fighter-page .record { font-size: 18px; margin: 8px 0 4px; }
.fighter-page .record span:first-child { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }
.fighter-page .facts { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.next-fight { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.next-fight h2 { margin: 0 0 6px; }
.next-fight p { margin: 2px 0; }
.fights { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fight { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.fight:last-child { border-bottom: 0; }
.fight .res { flex: 0 0 34px; text-align: center; font-weight: 800; font-size: 13px; border-radius: 8px; padding: 6px 0; background: var(--line); color: var(--text); }
.res-w .res { background: #1f7a3d; color: #fff; }
.res-l .res { background: #8a2328; color: #fff; }
.fight-body { min-width: 0; }
.fight .opp { font-weight: 600; }
.fight .how { font-size: 14px; }
.note { color: var(--muted); margin-top: 12px; }
.seg { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 8px 16px; background: #12151b; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.seg-time { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text); }
.seg + .bouts { border-top: 1px solid var(--line); }
/* Segment colors: main card red, prelims blue, early prelims green. */
.seg-main { background: #3a1416; color: #ffb3b5; border-left: 4px solid var(--accent); }
.seg-prelims { background: #142238; color: #a9c8ff; border-left: 4px solid #4a8cff; }
.seg-early { background: #132a1f; color: #a3e3bf; border-left: 4px solid #33b36b; }
.seg-other { background: #1d2028; border-left: 4px solid var(--line); }
/* Season and team pages */
/* Team links: same look as fighter links, so they read as tappable. */
a.tlink, .team a, .team-page .opp a { color: inherit; text-decoration: underline; text-decoration-color: rgba(154,163,178,.45); text-underline-offset: 3px; }
a.tlink:hover, a.tlink:focus-visible, .team a:hover, .team a:focus-visible, .team-page .opp a:hover { text-decoration-color: var(--accent); }
.season-link { max-width: 680px; margin: 0 auto; padding: 0 16px 8px; font-weight: 600; font-size: 15px; }
.season-link a { text-decoration: none; }
.season-page h1 { font-size: 22px; margin: 6px 0 10px; }
.weeks { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.weeks .wk { flex: 0 0 auto; min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.weeks .wk.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.team-page .fight .res { flex-basis: 40px; }
/* Favorites */
.tip { color: var(--muted); font-size: 13px; margin: 8px 4px 0; }
.mine h2 { color: var(--gold); }
.favstar { color: var(--gold); font-size: .85em; margin-right: 4px; }
.favname { display: inline-flex; align-items: baseline; }
.fav-btn { font: inherit; font-size: 14px; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.fav-btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
/* Watch links and Add to calendar */
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 10px 0 14px; }
.actions.pad { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
.watch-btn.sm { padding: 8px 14px; font-size: 14px; }
a.stream { color: #ff6b6d; font-weight: 600; text-underline-offset: 2px; }
details.cal > summary { list-style: none; cursor: pointer; display: inline-block; font-size: 14px; font-weight: 700; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
details.cal > summary::-webkit-details-marker { display: none; }
details.cal > summary::before { content: "+ "; color: var(--accent); }
details.cal[open] > summary::before { content: "– "; }
.cal-opts { display: flex; flex-direction: column; margin-top: 6px; background: #12151b; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-opts a { padding: 10px 14px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.cal-opts a:last-child { border-bottom: 0; }
.gmeta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.gmeta details.cal { margin-left: auto; }
.gmeta details.cal[open] { flex-basis: 100%; }
.gmeta details.cal > summary { font-size: 12px; padding: 3px 10px; float: right; }
.gmeta details.cal[open] .cal-opts { clear: both; }
.seasonbar { margin: 4px 4px 0; font-size: 14px; }
/* NFL standings */
.standings-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.standings { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 4px; }
.standings h3 { margin: 4px 0 6px; font-size: 15px; }
.standings table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.standings th { color: var(--muted); font-weight: 600; font-size: 12px; text-align: right; padding: 4px 0; }
.standings th:first-child, .standings td:first-child { text-align: left; }
.standings td { text-align: right; padding: 7px 0; border-top: 1px solid var(--line); }
.standings td:first-child { font-weight: 600; }
.standings .pos { color: #7ee2a0; }
.standings .neg { color: #ff9b9d; }
#standings { scroll-margin-top: 110px; }
/* Time zone picker: top-right of the header, a native select laid over a small chip. */
.tzpick { position: absolute; top: 10px; right: 14px; height: 30px; display: inline-flex; align-items: center; }
.tzface { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.tzface::before { content: "🌐"; font-size: 13px; line-height: 1; }
.tzface::after { content: "▾"; color: var(--muted); font-size: 11px; }
.tzpick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tzpick:focus-within .tzface { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Boxing */
.belt { display: inline-block; background: #3a2e0c; color: #ffd66b; border: 1px solid #6b5416; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 1px 6px; margin-right: 6px; }
.event.boxing .times { font-weight: 600; }
.start-times li.ringwalk { border-color: var(--accent); }
.fight .notes { font-size: 12px; }
.titleline { font-size: 13px; color: var(--muted); margin: 2px 0 4px; }
/* Past UFC events (/ufc/past and archived event pages) */
.past-link { display: block; margin: 12px 0; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; text-decoration: none; }
.past-page h1 { font-size: 24px; margin: 6px 0 4px; }
.past-page .intro { color: var(--muted); margin: 0 0 6px; }
.past-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.past-card { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.past-card:hover, .past-card:focus-visible { border-color: var(--accent); }
.past-card .headline { font-size: 14px; }
.kind { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.kind.num { color: var(--gold); border-color: #5a4a1a; }
.past-event .bout .how { font-size: 14px; margin-top: 2px; }
.past-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 2px; font-size: 14px; }
.fight .meta a { color: inherit; text-decoration: underline; text-decoration-color: rgba(154,163,178,.45); text-underline-offset: 3px; }
