/* 石青：左侧竖向导航 + 叠放比分 */
:root { --c: #3d5a80; --c2: #e8eef5; --ink: #1d2733; --t: #4a5563; --m: #8b95a1; --l: #e3e7ec; --bg: #f4f6f8; --live: #d64545; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--t); font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2 { color: var(--ink); }

.sq-app { display: flex; min-height: 100vh; }
.sq-side { position: sticky; top: 0; height: 100vh; width: 210px; flex: none; padding: 22px 14px; background: #fff; border-right: 1px solid var(--l); display: flex; flex-direction: column; }
.sq-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; font-size: 17px; font-weight: 700; color: var(--ink); }
.sq-brand i { width: 10px; height: 22px; border-radius: 3px; background: var(--c); }
.sq-menu { display: flex; flex-direction: column; gap: 2px; }
.sq-menu__i { padding: 9px 12px; border-radius: 6px; color: var(--t); }
.sq-menu__i:hover { background: var(--bg); }
.sq-menu__i.is-active { background: var(--c2); color: var(--c); font-weight: 600; }
.sq-side__note { margin-top: auto; padding: 0 8px; font-size: 12px; color: var(--m); }

.sq-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sq-main { flex: 1; width: 100%; max-width: 1100px; padding: 26px 30px; }
.sq-top { margin-bottom: 18px; }
.sq-top h1 { margin: 0; font-size: 22px; }
.sq-top h1 small { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--m); }
.sq-top p { margin: 2px 0 0; color: var(--m); }
.sq-top .sq-crumb { margin: 0 0 4px; font-size: 12px; }
.sq-crumb a:hover { color: var(--c); }

.sq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.sq-panel { background: #fff; border: 1px solid var(--l); border-radius: 8px; margin-bottom: 18px; }
.sq-panel__h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--l); }
.sq-panel__h h2 { margin: 0; font-size: 15px; }
.sq-panel__h a { font-size: 12px; color: var(--c); }
.sq-empty { margin: 0; padding: 24px 16px; text-align: center; color: var(--m); }

.sq-match { display: grid; grid-template-columns: 76px 1fr 34px 58px; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--l); }
.sq-match:last-child { border-bottom: 0; }
.sq-match:hover { background: #fafbfc; }
.sq-match__time { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.sq-match__time b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sq-match__time em { font-style: normal; font-size: 12px; color: var(--m); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sq-match__teams { display: flex; flex-direction: column; min-width: 0; line-height: 1.7; }
.sq-match__t { display: flex; align-items: center; gap: 6px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sq-match__t img { flex: none; object-fit: contain; }
.sq-match__sc { white-space: pre-line; text-align: center; line-height: 1.7; font-variant-numeric: tabular-nums; color: var(--m); font-weight: 600; }
.is-live .sq-match__sc { color: var(--live); }
.sq-match__st { font-size: 12px; color: var(--m); text-align: right; }
.sq-match__st.is-hot { color: var(--live); }
.is-live .sq-match__time b { color: var(--live); }
.sq-list--sm .sq-match { grid-template-columns: 50px 1fr 26px; padding: 8px 14px; }
.sq-list--sm .sq-match__time em, .sq-list--sm .sq-match__st { display: none; }
.sq-pop { animation: sqp 2s; }
@keyframes sqp { 0%, 50% { color: #fff; background: var(--live); } }
.is-hidden { display: none !important; }

.sq-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sq-pill { padding: 4px 12px; border: 1px solid var(--l); border-radius: 14px; background: #fff; color: var(--t); font: inherit; font-size: 13px; cursor: pointer; }
.sq-pill.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.sq-pager { display: flex; justify-content: center; gap: 4px; }
.sq-pager a, .sq-pager span { min-width: 32px; padding: 4px 8px; text-align: center; border-radius: 6px; background: #fff; border: 1px solid var(--l); }
.sq-pager span.is-active { background: var(--c); color: #fff; border-color: var(--c); }

.sq-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sq-watch { padding: 14px; }
.sq-stage { position: relative; aspect-ratio: 16/9; background: #0e1520; border-radius: 6px; overflow: hidden; }
.sq-stage video, .sq-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sq-stage-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8b95a1; }
.sq-feeds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sq-feed { padding: 6px 14px; border: 1px solid var(--c); border-radius: 6px; background: #fff; color: var(--c); font: inherit; cursor: pointer; }
.sq-feed:hover { background: var(--c2); }
.sq-feed.is-active { background: var(--c); color: #fff; }
.sq-feed--out::after { content: " ↗"; }
.sq-over { margin: 0; padding: 20px; text-align: center; color: var(--live); }
.sq-board { padding: 18px 16px 6px; }
.sq-board__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; color: var(--ink); font-weight: 600; }
.sq-board__row b { white-space: pre-line; font-size: 22px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.sq-board__st { margin: 6px 0 12px; text-align: center; font-size: 12px; color: var(--m); }
.sq-board__st.is-hot { color: var(--live); }
.sq-kv { display: grid; grid-template-columns: 50px 1fr; margin: 0; font-size: 13px; }
.sq-kv div { display: contents; }
.sq-kv dt, .sq-kv dd { margin: 0; padding: 7px 0; border-top: 1px solid var(--l); }
.sq-kv dt { color: var(--m); }
.sq-kv dd { color: var(--ink); }

.sq-404 { padding: 50px 20px; text-align: center; }
.sq-404 h1 { margin: 0 0 6px; font-size: 22px; }
.sq-btn { display: inline-block; margin-top: 12px; padding: 7px 20px; border-radius: 6px; background: var(--c); color: #fff; }

.sq-foot { padding: 18px 30px; font-size: 12px; color: var(--m); border-top: 1px solid var(--l); }
.sq-foot a { margin-right: 14px; }
.sq-foot a:hover { color: var(--c); }
.sq-foot p { margin: 6px 0 0; }

@media (max-width: 900px) {
  .sq-app { display: block; }
  .sq-side { position: sticky; z-index: 5; height: auto; width: auto; padding: 0 12px; flex-direction: row; align-items: center; gap: 12px; border-right: 0; border-bottom: 1px solid var(--l); }
  .sq-brand { padding: 12px 0; font-size: 15px; }
  .sq-menu { flex-direction: row; overflow-x: auto; }
  .sq-menu__i { padding: 6px 10px; white-space: nowrap; }
  .sq-side__note { display: none; }
  .sq-main { padding: 16px 12px; }
  .sq-grid, .sq-detail { grid-template-columns: 1fr; gap: 0; }
  .sq-match { grid-template-columns: 58px 1fr 28px; padding: 9px 12px; }
  .sq-match__st { display: none; }
  .sq-foot { padding: 16px 12px; }
}

/* 比分列表（内置 score-row 等）配色 */
:root { --sc-accent: #3d5a80; --sc-on: #fff; --sc-live: #d64545; --sc-radius: 10px; }

/* 热门比赛标记（后台设为热门或属于热门联赛），手机上只显示火苗 */
.sq-fire { display: inline-flex; align-items: center; gap: 1px; margin-left: 4px; padding: 0 6px 0 4px; border-radius: 9px; background: linear-gradient(90deg, #ff8a1f, #ff3b30); color: #fff; font: normal 700 11px/17px -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; vertical-align: middle; white-space: nowrap; text-transform: none; animation: sq-fire-glow 1.8s ease-in-out infinite; }
.sq-fire::before { content: "🔥"; font-size: 11px; line-height: 1; }
@keyframes sq-fire-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 80, 30, .35); } 50% { box-shadow: 0 0 0 4px rgba(255, 80, 30, 0); } }
@media (max-width: 480px) {
  .sq-fire { padding: 0 3px; font-size: 0; gap: 0; margin-left: 2px; }
  .sq-fire::before { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sq-fire { animation: none; } }

/* 热门比赛：火苗跳动；整行左侧一抹淡淡的火光缓慢明暗，叠在原有背景上，不改变原样式 */
.sq-fire::before { display: inline-block; transform-origin: 50% 85%; animation: sq-flicker 1.3s ease-in-out infinite; }
@keyframes sq-flicker {
  0%, 100% { transform: scale(1) rotate(-4deg); filter: brightness(1); }
  25% { transform: scale(1.1, 1.2) rotate(3deg); filter: brightness(1.2); }
  50% { transform: scale(.95, 1.04) rotate(-2deg); filter: brightness(.95); }
  75% { transform: scale(1.06, 1.14) rotate(4deg); filter: brightness(1.15); }
}
.sq-hotrow { animation: sq-ember 3.2s ease-in-out infinite; }
@keyframes sq-ember {
  0%, 100% { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
  50% { box-shadow: inset 3px 0 0 rgba(255, 64, 30, .9), inset 130px 0 90px -60px rgba(255, 112, 40, .26); }
}
tr.sq-hotrow { animation: none; }
tr.sq-hotrow > td { animation: sq-ember-td 3.2s ease-in-out infinite; }
tr.sq-hotrow > td:first-child { box-shadow: inset 3px 0 0 rgba(255, 80, 30, .8); }
@keyframes sq-ember-td { 0%, 100% { background-color: rgba(255, 150, 60, .05); } 50% { background-color: rgba(255, 120, 40, .11); } }
@media (prefers-reduced-motion: reduce) {
  .sq-fire::before, .sq-hotrow, tr.sq-hotrow > td { animation: none; }
  .sq-hotrow { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
}

/* 播放页球队名链接到球队搜索页 */
.sq-tlink { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.sq-tlink:hover { opacity: .8; border-bottom-style: solid; }

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.sq-main > .hd-dates { margin-bottom: 16px; }
.sq-main > .sq-panel + .sq-panel { margin-top: 18px; }
.sq-panel__h > span { font-size: 12px; color: var(--m); }
.sq-match__time .hd-lg:hover { color: var(--c); }
/* 导航 5 项：手机上品牌一行、导航一行 */
@media (max-width: 900px) {
  .sq-side { flex-wrap: wrap; row-gap: 0; padding-bottom: 6px; }
  .sq-menu { flex: 1 0 100%; overflow: visible; gap: 0; }
  .sq-menu__i { flex: 1 0 auto; padding: 6px 4px; text-align: center; font-size: 14px; }
  .sq-brand { padding: 10px 0 6px; }
}

/* 热门标记：本模板专属样式（◉ 关注），覆盖上面通用的 🔥 热门；手机上只显示图标 */
.sq-fire { --sq-hot-lb: 11px; gap: 2px; font-size: 0; background: #3f5a73; color: #fff; border: 0; border-radius: 4px; animation: sq-hot-glow 1.8s ease-in-out infinite; }
.sq-fire::before { content: "◉"; display: inline-block; transform-origin: 50% 50%; animation: sq-hot-ic 1.4s ease-in-out infinite; }
.sq-fire::after { content: "关注"; font-size: var(--sq-hot-lb); line-height: 1; }
@keyframes sq-hot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(63,90,115, .35); } 50% { box-shadow: 0 0 0 4px rgba(63,90,115, 0); } }
@keyframes sq-hot-ic { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (max-width: 480px) { .sq-fire { --sq-hot-lb: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .sq-fire, .sq-fire::before { animation: none; } }

/* 日期条吸顶：点日期跳转后仍能看到选中的是哪天 */
.hd-dates { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
@media (max-width: 900px) {
  .hd-dates { top: 47px; }
  [data-dgrp] { scroll-margin-top: 140px; }
}
