/* 亮玉体育：深色头部 + 品牌红，浅色内容区；只用系统字体，不加载外部资源 */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --ink: #111827; --muted: #4b5563; --line: #e5e7eb; --line-soft: #f3f4f6;
  --head: #111827; --head-2: #1f2937; --head-ink: #d1d5db;
  --brand: #fc354c; --brand-ink: #be123c; --brand-soft: #ffe4e8;
  --epl: #5b21b6; --nba: #1d4ed8; --cba: #c2410c; --warn-bg: #fff7ed; --warn-ink: #9a3412; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-variant-numeric: tabular-nums; }
a { color: var(--brand-ink); }
a:hover { color: #9f1239; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 28px; line-height: 1.3; margin: 18px 0 10px; font-weight: 900; }
h2 { font-size: 19px; margin: 0; font-weight: 900; }
h3 { font-size: 16px; margin: 0; }

.masthead { background: var(--head); color: #fff; }
.masthead-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.nav a { color: var(--head-ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current] { color: #fff; font-weight: 700; }
.masthead .btn-app { margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn-app { background: var(--brand); color: #fff; border-radius: 10px; min-height: 44px; padding: 0 16px; }
.btn-app:hover { background: var(--brand-ink); color: #fff; }
.btn-line { border: 1px solid var(--brand); color: var(--brand-ink); background: var(--surface); }
.btn-line:hover { background: var(--brand-soft); }
.btn-block { display: flex; width: 100%; }

main.wrap { padding-top: 8px; padding-bottom: 32px; }
main.narrow { max-width: 760px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 20px; }
.main-col { flex: 999 1 620px; min-width: 0; }
.side-col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head .more { margin-left: auto; font-size: 14px; }
.pad { padding: 16px 18px; }
.panel.pad h2 { margin-bottom: 8px; }
.lede { color: var(--muted); margin: 0 0 16px; }
.hint { color: var(--muted); font-size: 14px; }
.more { font-weight: 700; text-decoration: none; }

.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.focus-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.focus-card:hover { border-color: var(--brand); color: var(--ink); }
.focus-screen { aspect-ratio: 16 / 9; background: var(--head-2); color: #e5e7eb; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.focus-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.focus-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.focus-body strong { font-size: 18px; }

.day { padding: 10px 18px; background: var(--line-soft); font-size: 14px; color: var(--muted); }
.fixtures { list-style: none; margin: 0; padding: 0; }
.fx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.fx:last-child { border-bottom: 0; }
.fx-time { width: 84px; display: flex; flex-direction: column; line-height: 1.2; }
.fx-time b { font-size: 20px; font-weight: 900; }
.fx-time small { font-size: 11px; color: var(--muted); }
.fx-teams { flex: 1 1 200px; font-weight: 700; }
.fx-teams i { font-style: normal; font-weight: 400; color: var(--muted); padding: 0 4px; }
.fx-state { font-size: 14px; color: var(--muted); }
.fx.is-final .fx-time b { color: var(--muted); }
.fx.is-live .fx-time b { color: var(--brand-ink); }
.score { color: var(--ink); font-size: 16px; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; background: #374151; }
.badge-yingchao { background: var(--epl); }
.badge-nba { background: var(--nba); }
.badge-cba { background: var(--cba); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--line-soft);
  color: var(--ink); text-decoration: none; font-size: 14px; }
.chip:hover { background: var(--brand-soft); color: var(--brand-ink); }

.app-card { background: var(--head); color: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.app-card h2 { font-size: 18px; margin-bottom: 6px; }
.app-card p { margin: 0 0 14px; font-size: 14px; color: var(--head-ink); }

.player { position: relative; aspect-ratio: 16 / 9; background: #000; color: #e5e7eb; border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.player-idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; text-align: center; padding: 0 16px; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.player-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 16px; }
.player-tabs button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.player-tabs button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 700; }

.match-head .kicker { margin: 0 0 6px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; font-size: 20px; margin: 4px 0; }
.vs-mid { font-size: 30px; font-weight: 900; }
.match-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.plain { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.notice { padding: 12px 16px; border-radius: 10px; margin: 12px auto; font-size: 14px; }
.notice-sample { background: #eef2ff; color: #3730a3; }
.notice-pending { background: var(--warn-bg); color: var(--warn-ink); }
.prose h2 { margin-top: 12px; }
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; padding: 12px 0; }

/* 账号与聊天室 */
.acct { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--head-ink); }
.acct[hidden] { display: none; }
.acct + .btn-app { margin-left: 0; }
.acct-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.acct-btn { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--head-2); background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: -4px 0 16px; padding: 12px 14px; }
.chat[hidden] { display: none; }
.chat-title { font-size: 16px; margin: 0 0 6px; }
.chat-status { margin: 0; font-size: 13px; color: var(--muted); }
.chat-status:empty { display: none; }
.chat-list { list-style: none; margin: 6px 0 10px; padding: 0; height: 240px; overflow-y: auto; font-size: 14px; line-height: 1.5; }
.chat-list li { padding: 3px 0; word-break: break-word; }
.chat-list b { font-weight: 600; color: var(--muted); }
.chat-list li.me b { color: var(--brand-ink); }
.chat-list li.sys { color: var(--muted); font-size: 13px; }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.chat-send, .chat-login { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.chat-login { width: 100%; }
.dq-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dq-box { position: relative; width: 100%; max-width: 380px; background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 18px 20px; max-height: 92vh; overflow-y: auto; }
.dq-x { position: absolute; right: 8px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted); }
.dq-tabs { display: flex; gap: 16px; margin-bottom: 12px; }
.dq-tab { border: 0; background: none; font: inherit; font-size: 17px; padding: 6px 0; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.dq-tab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand); }
.dq-form .f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; color: var(--muted); flex: 1; }
.dq-form input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); }
.dq-row { display: flex; gap: 8px; align-items: flex-end; }
.dq-get { min-height: 42px; margin-bottom: 10px; padding: 0 12px; border: 1px solid var(--brand); border-radius: 8px; background: var(--surface); color: var(--brand-ink); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.dq-submit { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.dq-submit:disabled, .dq-get:disabled { opacity: .6; cursor: default; }
.dq-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--brand-ink); }
.dq-hint, .dq-note { margin: 0 0 8px; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .masthead .btn-app { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .nav { order: 3; width: 100%; gap: 2px 16px; overflow-x: auto; }
  .fx { padding: 10px 14px; }
  .fx-time { width: 72px; }
  .vs { font-size: 17px; }
  .vs-mid { font-size: 26px; }
  .player { border-radius: 0; margin: 0 -16px 16px; }
}

/* ---- 比赛页直播间（10-25）：桌面左右双栏、网页全屏、手机播放器吸顶 + 聊天/赛况 ---- */
main.match-page { max-width: 1200px; }
.room { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; margin: 12px 0 16px; }
.room-main { min-width: 0; background: var(--bg); }
.room:not(.has-chat) .room-main { width: 100%; max-width: 900px; }
body.theater .room:not(.has-chat) .room-main { max-width: none; }
.room-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 0 10px; }
.room-teams { font-weight: 800; font-size: 17px; }
.room-teams i { font-style: normal; font-weight: 400; color: var(--muted); padding: 0 4px; }
.room-state { font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--line-soft); color: var(--muted); }
.room-state:empty { display: none; }
.room-state.is-anchor { background: var(--brand); color: #fff; font-weight: 700; }
.room-state.is-anchor::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #fff; vertical-align: 1px; animation: dq-pulse 1.4s infinite; }
.room-state.is-running { background: var(--warn-bg); color: var(--warn-ink); }
@keyframes dq-pulse { 50% { opacity: .3; } }
.room-theater { margin-left: auto; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.room .player { margin: 0; }
.room .player-tabs { margin: 10px 0 0; }
.player-others { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; width: min(420px, 90%); }
.player-others p { margin: 0; font-size: 13px; color: #9ca3af; text-align: center; }
.player-others a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-size: 14px; }
.player-others a span { color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 10px; font-size: 12px; white-space: nowrap; }
.player-others a:hover { background: rgba(255, 255, 255, .16); }
.room-tabs { display: none; }
.room-side { position: relative; min-width: 0; }
.room-side[hidden] { display: none; }
.room-side .chat { margin: 0; display: flex; flex-direction: column; }
.room-side .chat-list { flex: 1 1 auto; min-height: 0; height: 300px; }
.chat-new { align-self: center; margin: -42px 0 10px; position: relative; z-index: 1; border: 0; border-radius: 999px; padding: 6px 14px; background: var(--brand); color: #fff; font: inherit; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.chat-new[hidden] { display: none; }
@media (min-width: 1024px) {
  .room.has-chat { grid-template-columns: minmax(0, 1fr) 340px; }
  .room.has-chat .room-side .chat { position: absolute; inset: 0; }
  .room.has-chat .room-side .chat-list { height: auto; }
}
/* 网页全屏 */
body.theater { overflow: hidden; }
body.theater .room { position: fixed; inset: 0; z-index: 60; margin: 0; gap: 0; background: #000; grid-template-rows: 100vh; }
body.theater .room.has-chat { grid-template-columns: minmax(0, 1fr) 360px; }
body.theater .room-main { display: flex; flex-direction: column; background: #000; min-height: 0; }
body.theater .room-bar { padding: 8px 12px; color: #fff; }
body.theater .room-teams i { color: #9ca3af; }
body.theater .room .player { flex: 1 1 auto; aspect-ratio: auto; border-radius: 0; min-height: 0; }
body.theater .room .player-tabs { margin: 0; padding: 8px 12px; }
body.theater .room-side .chat { position: absolute; inset: 0; border-radius: 0; border: 0; }
body.theater .room-side .chat-list { height: auto; }
/* 列表页：比赛状态与主播直播标记 */
.st { font-size: 13px; color: var(--muted); }
.st-run { color: var(--warn-ink); }
.st.st-anchor { color: var(--brand-ink); font-weight: 700; }
.st.st-anchor::before { content: "●"; margin-right: 4px; color: var(--brand); animation: dq-pulse 1.4s infinite; }
.fx.has-anchor .btn-line { background: var(--brand); border-color: var(--brand); color: #fff; }
.focus-card.has-anchor .focus-screen { background: var(--brand); color: #fff; }
@media (max-width: 1023px) {
  .room-theater { display: none; }
}
@media (max-width: 767px) {
  .room { margin: 0 -16px 16px; }
  .room-main { position: sticky; top: 0; z-index: 5; }
  .room-bar { padding: 8px 16px; }
  .room-teams { font-size: 15px; }
  .room .player { border-radius: 0; }
  .room .player-tabs { padding: 0 16px 8px; }
  .room.has-chat .room-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface); }
  .room-tabs button { flex: 1; min-height: 42px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; color: var(--muted); }
  .room-tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--brand); }
  .room[data-tab="info"] .room-side { display: none; }
  .room-side .chat { border-radius: 0; border-left: 0; border-right: 0; height: calc(100svh - 56.25vw - 96px); min-height: 300px; }
  .room-side .chat-list { height: auto; }
  .masthead-row { gap: 6px 10px; }
  .nav { flex-wrap: nowrap; white-space: nowrap; }
}

/* 亮玉体育（c21）：解说日程与主播标记 */
.fx-anchors { display: block; font-size: 12px; color: var(--muted, #6b7280); margin-top: 2px; }
.fx.is-featured { border-left: 3px solid var(--brand); padding-left: 9px; }
.fx.is-featured .fx-anchors { color: var(--brand-ink); font-weight: 700; }
.anchors { margin: 8px 0 0; font-size: 15px; }
.anchors.is-featured b { color: var(--brand-ink); }
