/* 素页：文档式单栏 */
:root { --ink: #222; --t: #3c3c3c; --m: #8a8a8a; --l: #ececec; --a: #2a5bd7; --live: #c0392b; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--t); font: 16px/1.8 -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
a { color: inherit; }
[hidden], .sy-no { display: none !important; }
.sy { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.sy-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 30px 0 14px; border-bottom: 1px solid var(--l); }
.sy-hd__name { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.sy-hd__nav a { margin-left: 20px; color: var(--m); text-decoration: none; font-size: 15px; }
.sy-hd__nav a:hover { color: var(--ink); }
.sy-hd__nav a.sy-cur { color: var(--ink); }

main { min-height: 60vh; padding: 10px 0 20px; }
.sy-crumb { margin: 20px 0 0; font-size: 13px; color: var(--m); }
.sy-crumb a { color: var(--m); text-decoration: none; }
.sy-h1 { margin: 20px 0 6px; font-size: 26px; line-height: 1.4; color: var(--ink); }
.sy-crumb + .sy-h1 { margin-top: 4px; }
.sy-h2 { margin: 36px 0 8px; font-size: 18px; color: var(--ink); scroll-margin-top: 16px; }
.sy-p { margin: 0 0 12px; }
.sy-muted { color: var(--m); }
.sy-small { font-size: 13px; }
.sy-a { color: var(--a); text-decoration: none; }
.sy-a:hover { text-decoration: underline; }

.sy-list { list-style: none; margin: 0 0 10px; padding: 0; }
.sy-e { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--l); }
.sy-e__t { width: 46px; color: var(--m); font-size: 14px; font-variant-numeric: tabular-nums; }
.sy-e a { color: var(--a); text-decoration: none; }
.sy-e a:hover { text-decoration: underline; }
.sy-e a span { color: var(--m); font-variant-numeric: tabular-nums; }
.sy-e-live a span, .sy-e-live .sy-e__t { color: var(--live); font-weight: 600; }
.sy-e__m { margin-left: auto; font-size: 13px; color: var(--m); }
.sy-live { color: var(--live) !important; }
.sy-mark { animation: sym 2s; }
@keyframes sym { 0%, 50% { background: #fff3a8; } }

.sy-doc { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 30px; }
.sy-doc > div { grid-row: 1; }
.sy-toc { grid-column: 2; grid-row: 1; position: sticky; top: 20px; align-self: start; margin-top: 36px; display: flex; flex-direction: column; font-size: 13px; border-left: 1px solid var(--l); padding-left: 14px; }
.sy-toc p { margin: 0 0 4px; color: var(--m); }
.sy-toc a { color: var(--t); text-decoration: none; padding: 2px 0; }
.sy-toc a:hover { color: var(--a); }
.sy-pages { margin-top: 30px; }
.sy-pages a { margin-right: 12px; color: var(--a); text-decoration: none; }
.sy-pages b { margin-right: 12px; }

.sy-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin: 20px 0 0; padding: 16px 20px; background: #fafafa; border-left: 3px solid var(--ink); font-size: 18px; color: var(--ink); }
.sy-score b { font-size: 26px; font-variant-numeric: tabular-nums; }
.sy-score em { margin-left: auto; font-style: normal; font-size: 14px; color: var(--m); }
.sy-note { margin: 0; padding: 12px 16px; background: #fafafa; color: var(--m); }
.sy-note--end { color: var(--live); }
.sy-player { position: relative; aspect-ratio: 16/9; background: #111; }
.sy-player video, .sy-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sy-player-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #888; font-size: 14px; }
.sy-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 4px; }
.sy-link { padding: 0; border: 0; background: none; color: var(--a); font: inherit; cursor: pointer; text-decoration: none; border-bottom: 1px solid transparent; }
.sy-link:hover { border-bottom-color: var(--a); }
.sy-link-cur { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.sy-link--ext::after { content: " ↗"; }
.sy-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sy-table th, .sy-table td { padding: 8px 0; border-bottom: 1px solid var(--l); text-align: left; }
.sy-table th { width: 120px; font-weight: 400; color: var(--m); }

.sy-ft { padding: 20px 0 30px; border-top: 1px solid var(--l); font-size: 13px; color: var(--m); }
.sy-ft p { margin: 2px 0; }
.sy-ft a { color: var(--m); }

@media (max-width: 640px) {
  body { font-size: 15px; }
  .sy-hd { padding-top: 18px; }
  .sy-hd__nav a { margin-left: 14px; }
  .sy-doc { display: block; }
  .sy-toc { display: none; }
  .sy-e__m { margin-left: 60px; width: 100%; }
}

/* 比分列表（内置 score-row 等）配色 */
:root { --sc-accent: #2a5bd7; --sc-on: #fff; --sc-live: #c0392b; --sc-radius: 6px; }

/* 热门比赛标记（后台设为热门或属于热门联赛），手机上只显示火苗 */
.sy-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: sy-fire-glow 1.8s ease-in-out infinite; }
.sy-fire::before { content: "🔥"; font-size: 11px; line-height: 1; }
@keyframes sy-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) {
  .sy-fire { padding: 0 3px; font-size: 0; gap: 0; margin-left: 2px; }
  .sy-fire::before { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sy-fire { animation: none; } }

/* 热门比赛：火苗跳动；整行左侧一抹淡淡的火光缓慢明暗，叠在原有背景上，不改变原样式 */
.sy-fire::before { display: inline-block; transform-origin: 50% 85%; animation: sy-flicker 1.3s ease-in-out infinite; }
@keyframes sy-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); }
}
.sy-hotrow { animation: sy-ember 3.2s ease-in-out infinite; }
@keyframes sy-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.sy-hotrow { animation: none; }
tr.sy-hotrow > td { animation: sy-ember-td 3.2s ease-in-out infinite; }
tr.sy-hotrow > td:first-child { box-shadow: inset 3px 0 0 rgba(255, 80, 30, .8); }
@keyframes sy-ember-td { 0%, 100% { background-color: rgba(255, 150, 60, .05); } 50% { background-color: rgba(255, 120, 40, .11); } }
@media (prefers-reduced-motion: reduce) {
  .sy-fire::before, .sy-hotrow, tr.sy-hotrow > td { animation: none; }
  .sy-hotrow { box-shadow: inset 3px 0 0 rgba(255, 98, 40, .7), inset 90px 0 70px -52px rgba(255, 140, 50, .16); }
}

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.sy .hd-dates { margin-top: 20px; }
.sy-h2-tabs { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sy-h2-tabs h2 { margin: 0; font-size: 18px; }
[data-hd-scope] .hd-day { padding-left: 0; }
.sy-e .sy-e__m .hd-lg { color: var(--m); }
.sy-e .sy-e__m .hd-lg:hover { color: var(--ink); }
.sy-md { white-space: nowrap; }
/* 导航 5 项：手机上站名一行、导航一行 */
@media (max-width: 640px) {
  .sy-hd { flex-wrap: wrap; row-gap: 8px; }
  .sy-hd__nav { display: flex; justify-content: space-between; width: 100%; }
  .sy-hd__nav a { margin-left: 0; font-size: 14px; }
}
.sy-e.sy-hotrow { padding-left: 8px; }

/* 热门标记：本模板专属样式（✱ 热），覆盖上面通用的 🔥 热门；手机上只显示图标 */
.sy-fire { --sy-hot-lb: 11px; gap: 2px; font-size: 0; background: transparent; color: #e03131; border: 0; border-radius: 0; animation: sy-hot-glow 1.8s ease-in-out infinite; padding: 0 2px; text-decoration: underline; text-underline-offset: 2px; }
.sy-fire::before { content: "✱"; display: inline-block; transform-origin: 50% 50%; animation: sy-hot-ic 4s linear infinite; }
.sy-fire::after { content: "热"; font-size: var(--sy-hot-lb); line-height: 1; }
@keyframes sy-hot-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,49,49, .35); } 50% { box-shadow: 0 0 0 4px rgba(224,49,49, 0); } }
@keyframes sy-hot-ic { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (max-width: 480px) { .sy-fire { --sy-hot-lb: 0; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .sy-fire, .sy-fire::before { animation: none; } }

/* 日期条吸顶：点日期跳转后仍能看到选中的是哪天 */
.hd-dates { position: sticky; top: 0; z-index: 5; background: #fff; padding: 8px 0; }
/* 整行可点（row-cover） */
.sy-e { cursor: pointer; }
