:root {
  color-scheme: dark;
  --back: #0a1310;
  --surface: #111e19;
  --border: #283a32;
  --white: #f0f7f2;
  --muted: #aabbb2;
  --green: #b5fa67;
  --text-dark: #122109;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--white);
  background: var(--back);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.frame { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 8px; left: 8px; z-index: 4; padding: 8px 12px; background: var(--back); }
.top { border-bottom: 1px solid var(--border); }
.masthead { min-height: 70px; display: flex; align-items: center; gap: clamp(16px, 5vw, 64px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 780; letter-spacing: .03em; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; padding-left: 2px; border-radius: 8px; background: var(--green); color: var(--text-dark); font-size: 13px; }
.masthead nav { display: flex; gap: clamp(12px, 3vw, 32px); color: var(--muted); font-size: .94rem; }
.masthead nav a:hover, .footer a:hover { color: var(--green); }
.timezone { margin-left: auto; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.hero { position: relative; overflow: hidden; isolation: isolate; margin-top: 26px; min-height: 370px; display: grid; align-items: end; border: 1px solid var(--border); border-radius: 22px; background: #183928; }
.hero::before, .hero::after { position: absolute; z-index: -1; inset: 0; content: ""; }
.hero::before { background: url("stadium.jpg") center 55% / cover; opacity: .92; }
.hero::after { background: linear-gradient(90deg,#06110e 2%,rgba(6,17,14,.92) 26%,rgba(6,17,14,.35) 64%,rgba(6,17,14,.04) 100%),linear-gradient(0deg,rgba(7,18,14,.55),transparent 52%); }
.hero-inner { padding: clamp(28px, 5vw, 62px); }
.hero-date { width: fit-content; min-height: 24px; color: #d6e8dd; letter-spacing: .06em; font-size: .9rem; font-weight: 650; }
h1 { font-size: clamp(3rem, 6.3vw, 5.15rem); line-height: 1.03; letter-spacing: -.045em; margin: 12px 0 16px; font-weight: 850; }
h1 span { color: var(--green); }
.hero p { margin: 0 0 24px; color: #e1ede6; }
.hero-link { display: inline-flex; align-items: center; min-height: 46px; padding: 0 19px; border-radius: 9px; background: var(--green); color: var(--text-dark); font-weight: 780; }
.hero-link:hover { background: #d2ffa6; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 22px; margin-top: 30px; align-items: start; }
.schedule, .watch { scroll-margin-top: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
h2 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -.02em; line-height: 1.3; }
.section-heading p, .watch > p { color: var(--muted); margin: 4px 0 0; font-size: .9rem; }
.refresh, .day-bar button, .sports button { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; min-height: 42px; padding: 7px 13px; white-space: nowrap; }
.refresh:hover, .day-bar button:hover, .sports button:hover { border-color: var(--green); }
.refresh:disabled { opacity: .65; cursor: default; }
.day-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.day-bar button { min-width: 0; padding: 8px 3px; display: flex; flex-direction: column; font-size: .9rem; }
.day-bar button span { color: var(--muted); font-size: .875rem; }
.day-bar [aria-pressed="true"], .sports [aria-pressed="true"] { border-color: #577b40; background: #253e22; color: var(--green); font-weight: 720; }
.day-bar [aria-pressed="true"] span { color: #c9e6b4; }
.filters { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sports { display: flex; gap: 6px; }
.sports button { font-size: .9rem; min-height: 36px; }
.search { width: min(235px, 100%); }
.search input { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; min-height: 38px; padding: 4px 10px; }
.search input::placeholder { color: var(--muted); font-size: .9rem; }
.notice { margin: 11px 0 9px; min-height: 1.5em; color: var(--muted); font-size: .875rem; }
.games { display: grid; gap: 9px; }
.game { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 13px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); }
.game-clock { align-self: stretch; display: flex; justify-content: center; flex-direction: column; padding-right: 10px; border-right: 1px solid var(--border); }
.game-clock time { font-size: 1rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.game-clock span, .league, .game-link { font-size: .875rem; }
.game-clock span, .league { color: var(--muted); }
.game-clock .live { color: var(--green); font-weight: 720; }
.game-clock .closed { color: #ffce8c; }
.league { display: block; margin-bottom: 4px; }
.team { display: flex; gap: 7px; align-items: center; justify-content: space-between; min-width: 0; }
.team + .team { margin-top: 3px; }
.team-name { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.team img { flex: 0 0 19px; width: 19px; height: 19px; object-fit: contain; }
.score { min-width: 2ch; font-weight: 760; font-variant-numeric: tabular-nums; text-align: right; }
.game-link { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; color: #d9fbc4; padding: 5px 8px; border-radius: 7px; background: #203124; border: 1px solid #36543a; white-space: nowrap; }
.game-link:hover { background: #2f4b30; }
.empty { color: var(--muted); padding: 23px 17px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; margin: 0; }
.watch { padding: 19px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.watch h2 { font-size: 1.19rem; }
.watch-list { list-style: none; margin: 13px 0; padding: 0; }
.watch-list a { display: flex; align-items: center; gap: 11px; border-radius: 8px; padding: 10px 6px; }
.watch-list a:hover { background: #203128; }
.watch-list li + li { border-top: 1px solid var(--border); }
.watch-icon { width: 37px; height: 37px; flex: 0 0 37px; display: grid; place-items: center; border-radius: 9px; font-weight: 750; }
.orange { color: #ffc392; background: #492e20; }
.purple { color: #e1c9ff; background: #372d50; }
.blue { color: #c0dbff; background: #20364c; }
.watch-list strong, .watch-list small { display: block; }
.watch-list small { font-size: .875rem; color: var(--muted); }
.data-source a { text-decoration: underline; text-underline-offset: .16em; }
.footer { border-top: 1px solid var(--border); color: var(--muted); margin-top: 34px; padding-block: 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .875rem; }
.footer .brand-mark { width: 24px; height: 24px; font-size: 10px; border-radius: 6px; }
@media (max-width: 820px) {
  .frame { width: calc(100% - 36px); }
  .main-grid { grid-template-columns: 1fr; }
  .hero { min-height: 344px; }
}
@media (max-width: 480px) {
  .frame { width: calc(100% - 28px); }
  .masthead { min-height: 61px; gap: 14px; }
  .masthead nav { font-size: .875rem; }
  .masthead .brand { gap: 5px; }
  .masthead .brand-mark { width: 25px; height: 25px; }
  .hero { margin-top: 17px; min-height: 320px; border-radius: 14px; }
  .hero-inner { padding: 23px; }
  .hero::after { background: linear-gradient(90deg,#06110e 0%,rgba(6,17,14,.85) 42%,rgba(6,17,14,.27) 100%); }
  .game { grid-template-columns: 58px minmax(0,1fr) auto; gap: 7px; padding: 8px; }
  .game-clock { padding-right: 4px; }
  .game-link { padding-inline: 5px; }
  .team-name { gap: 4px; }
  .search { flex: 1; min-width: 132px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
