.qm-portal {
  --paper: #191c20;
  --navy: #101419;
  --ink: #f1f4f8;
  --quiet: #b0bac7;
  --line: #353b44;
  --blue: #81b5ff;
  --gold: #f4bb52;
  --serif: "Microsoft YaHei", "PingFang SC", sans-serif;
  color-scheme: dark;
}
.qm-portal .qm-wrap { width: min(calc(100% - 48px), 1280px); max-width: none; margin-inline: auto; padding-inline: 0; }
.qm-portal a:hover, .qm-portal summary:hover { color: #a2caff; }
.qm-topbar { background: #12161a; border-bottom: 1px solid var(--line); }
.qm-topline { min-height: 70px; display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.qm-topline .qm-brand { flex: none; color: var(--ink); }
.qm-topline .qm-brand i { width: 33px; height: 33px; border-width: 6px; }
.qm-topline .qm-brand i::after { background: #438cff; }
.qm-topline .qm-brand span { font-size: 25px; }
.qm-toplinks { display: flex; align-self: stretch; align-items: stretch; gap: clamp(12px, 1.65vw, 27px); }
.qm-toplinks a { display: flex; align-items: center; font-weight: 650; font-size: 15px; white-space: nowrap; }
.qm-toplinks [aria-current] { box-shadow: inset 0 -3px #4e96ff; }
.qm-topline .qm-find { margin-left: auto; width: clamp(135px, 14vw, 210px); background: #20252c; border: 1px solid #454d58; border-radius: 5px; }
.qm-topline .qm-find input, .qm-topline .qm-find button { background: transparent; color: var(--ink); }
.qm-topline .qm-find input::placeholder { color: var(--quiet); }
.qm-topline .qm-menu { flex: none; margin-left: 0; z-index: 4; }
.qm-topline .qm-menu summary { color: var(--ink); padding: 12px 0; }
.qm-topline .qm-menu > div { background: #212831; border: 1px solid var(--line); color: var(--ink); }
.qm-portal main.qm-wrap { padding-block-start: clamp(18px, 2.2vw, 32px); }
.qm-cover { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(310px, 29vw, 390px); overflow: hidden; border-radius: 8px; background: #0f1723 url("matchday.webp") center 43% / cover no-repeat; }
.qm-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0a111bf5 0%, #0a111be8 26%, #0a111b80 55%, transparent 82%); }
.qm-cover-copy { width: min(66%, 800px); padding: 35px clamp(24px, 4.1vw, 70px); }
.qm-cover-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.qm-cover-meta h1 { margin: 0; padding-left: 10px; border-left: 4px solid #579cff; color: #fff; font: 750 16px/1.2 var(--serif); }
.qm-cover-meta time, .qm-cardline time { font-variant-numeric: tabular-nums; }
.qm-cover-meta time { color: #c7d3e3; font-size: 13px; }
.qm-cover h2 { margin: 18px 0 10px; color: white; font: 820 clamp(28px, 3.2vw, 49px)/1.23 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.qm-cover-copy p { color: #d4dce6; font-size: 14px; margin: 0; }
.qm-cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.qm-cover-actions a { min-height: 42px; display: inline-flex; align-items: center; gap: 17px; padding: 8px 16px; border-radius: 4px; background: #252f3c; color: #fff; font-weight: 700; font-size: 14px; }
.qm-cover-actions a:first-child { background: #1260c4; }
.qm-cover-actions a:hover { background: #2277d7; color: white; }
.qm-bulletin, .qm-portal .qm-schedule-board { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: clamp(20px, 2.6vw, 40px); margin-block: 30px 0; }
.qm-deskhead, .qm-portal .qm-home-heading, .qm-portal .qm-rule { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; margin: 0 0 13px; padding: 0; }
.qm-deskhead h2, .qm-portal .qm-home-heading h2, .qm-portal .qm-rule h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 750 21px/1.5 var(--serif); color: var(--ink); }
.qm-deskhead h2::before, .qm-portal .qm-home-heading h2::before, .qm-portal .qm-rule h2::before { content: ""; background: #478ef5; border-right: 2px solid #e9aa50; width: 6px; height: 18px; transform: skew(-14deg); }
.qm-deskhead a, .qm-portal .qm-home-heading a { display: inline-flex; align-items: center; padding: 4px 0; min-height: 36px; font-size: 13px; color: var(--blue); }
.qm-gamecards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.qm-gamecard { min-width: 0; display: grid; align-content: start; gap: 6px; padding: 12px 14px; background: #222831; border: 1px solid var(--line); border-radius: 5px; }
.qm-gamecard:hover { background: #293340; }
.qm-cardline { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 5px; color: var(--quiet); font-size: 12px; }
.qm-cardline time { color: #a5caff; font: 700 17px/1.3 Arial, sans-serif; }
.qm-cardpair { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: start; gap: 3px; }
.qm-cardteam { display: grid; justify-items: center; text-align: center; gap: 6px; min-width: 0; }
.qm-cardteam img { object-fit: contain; }
.qm-cardvs { color: #b4c9e7; font: 800 12px/36px system-ui, sans-serif; }
.qm-cardteam strong { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.qm-gamecard small { color: var(--quiet); font-size: 12px; margin-top: 4px; }
.qm-wire ul { padding: 0; margin: 0; list-style: none; }
.qm-wire li { border-bottom: 1px solid var(--line); }
.qm-wire li a { display: block; padding: 7px 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.qm-guide-links > a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; }
.qm-guide-links > a span { color: var(--blue); }
.qm-portal .qm-filter input, .qm-portal .qm-filter select { background: #222831; color: var(--ink); border-color: #485362; border-radius: 3px; }
.qm-portal .qm-filter button, .qm-portal .qm-pages a { background: #155cb9; color: white; border-radius: 3px; }
.qm-portal .qm-dates a, .qm-portal .qm-dayline, .qm-portal .qm-home-channel li a { background: #242a32; color: var(--ink); }
.qm-portal .qm-dates a[aria-current] { background: #173e6e; color: #edf5ff; }
.qm-portal .qm-row:hover { background: #242c38; }
.qm-portal .qm-versus { color: var(--quiet); }
.qm-portal .qm-home-replays .qm-home-heading { background: transparent; }
.qm-portal .qm-empty { background: #222831; color: var(--ink); }
.qm-portal .qm-footer { border-top: 1px solid #3b4552; }
@media (max-width: 1000px) {
  .qm-toplinks a:nth-last-child(-n+2) { display: none; }
  .qm-gamecards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 750px) {
  .qm-portal .qm-wrap { width: calc(100% - 32px); }
  .qm-topline { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .qm-topline .qm-find { flex: 1; max-width: 200px; min-width: 0; margin-left: auto; }
  .qm-toplinks { width: 100%; order: 1; justify-content: flex-start; gap: clamp(12px,3vw,24px); overflow-x: auto; }
  .qm-toplinks a { font-size: 13px; min-height: 42px; }
  .qm-toplinks a:nth-last-child(-n+2) { display: flex; }
  .qm-topline .qm-menu summary { font-size: 12px; }
  .qm-cover { min-height: 330px; background-position: 88% center; align-items: end; }
  .qm-cover::before { background: linear-gradient(0deg,#09121aec,#09121aaf 53%,#09121a20); }
  .qm-cover-copy { width: 100%; padding: 22px; }
  .qm-cover h2 { max-width: 26ch; }
  .qm-bulletin, .qm-portal .qm-schedule-board { grid-template-columns: minmax(0,1fr); gap: 24px; margin-block-start: 24px; }
  .qm-portal .qm-home-stories { display: grid; }
}
@media (max-width: 390px) {
  .qm-topline .qm-brand i { display: none; }
  .qm-cover-copy { padding: 18px; }
  .qm-gamecard { padding: 10px; }
}
.qm-cover[data-qm-slide="1"] { background-image: url("ground.webp"); background-position: center; }
.qm-cover:has(.qm-cover-controls) .qm-cover-copy { padding-bottom: 64px; }
.qm-cover-controls:not([hidden]) { position: absolute; right: 18px; bottom: 12px; display: flex; align-items: center; padding: 0 6px; border-radius: 24px; background: #101923de; }
.qm-cover-controls button { background: transparent; color: white; border: 0; min-height: 38px; min-width: 36px; }
.qm-slide-dot::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 9px; background: #8995a7; }
.qm-slide-dot[aria-pressed="true"]::after { width: 23px; background: #68a7ff; }
.qm-slide-play { font-size: 12px; padding: 0 8px; }
@media (max-width: 430px) {
  .qm-gamecards { grid-template-columns: minmax(0,1fr); }
  .qm-cardteam { grid-template-columns: minmax(0,1fr); }
}
