/* 松绿：焦点比赛 + 卡片网格 */
:root { --g: #2f6b4f; --g2: #e7f0eb; --ink: #1c2420; --t: #47514c; --m: #8e9893; --l: #e6e8e3; --bg: #fbfaf7; --live: #c9472e; }
* { 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], .off { display: none !important; }
.box { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.hd { background: #fff; border-bottom: 1px solid var(--l); }
.hd__in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.hd__logo { font-size: 19px; font-weight: 700; color: var(--g); }
.hd__nav { display: flex; gap: 4px; }
.hd__nav a { padding: 6px 14px; border-radius: 6px; color: var(--t); }
.hd__nav a:hover { color: var(--g); }
.hd__nav a.cur { background: var(--g2); color: var(--g); font-weight: 600; }

.main { padding-top: 24px; padding-bottom: 20px; min-height: 60vh; }
.crumb { margin: 0 0 8px; font-size: 12px; color: var(--m); }
.crumb a:hover { color: var(--g); }
.h1 { margin: 0; font-size: 22px; color: var(--ink); }
.h1--sm { margin-bottom: 16px; font-size: 18px; }
.lead { margin: 4px 0 20px; color: var(--m); }

.focus { padding: 30px 20px; margin-bottom: 26px; background: #fff; border: 1px solid var(--l); border-top: 3px solid var(--g); border-radius: 4px; text-align: center; }
.focus__lg { margin: 0; font-size: 13px; color: var(--m); }
.focus__vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 14px 0 10px; }
.focus__team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 20px; font-weight: 600; color: var(--ink); min-width: 0; }
.focus__team img { object-fit: contain; }
.focus__sc { font-size: 38px; font-weight: 700; color: var(--g); font-variant-numeric: tabular-nums; white-space: nowrap; }
.focus__cd { margin: 0 0 16px; color: var(--m); }
.focus__cd b { font-variant-numeric: tabular-nums; color: var(--ink); }
.focus--detail { margin-bottom: 18px; }
.focus--detail .focus__cd { margin-bottom: 0; }
.btn { display: inline-block; padding: 8px 26px; border-radius: 4px; background: var(--g); color: #fff; }
.btn:hover { opacity: .9; }

.sec { margin-bottom: 28px; }
.sec__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sec__h h2 { margin: 0; font-size: 17px; color: var(--ink); }
.sec__h a { font-size: 13px; color: var(--g); }
.sec__h span { font-size: 13px; color: var(--m); }
.empty { margin: 0; padding: 26px; background: #fff; border: 1px dashed var(--l); text-align: center; color: var(--m); }
.empty--over { color: var(--live); border-color: #f0d2cb; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; align-items: center; padding: 14px 12px 16px; background: #fff; border: 1px solid var(--l); border-radius: 4px; text-align: center; transition: border-color .15s; min-width: 0; }
.card:hover { border-color: var(--g); }
.card--on { border-color: #f0d2cb; }
.card__top { display: flex; justify-content: space-between; width: 100%; font-size: 12px; color: var(--m); margin-bottom: 10px; }
.card__top span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: 6px; }
.card__top time { flex: none; }
.card__n { display: block; max-width: 100%; color: var(--ink); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card__sc { margin: 4px 0; font-size: 18px; font-weight: 700; color: var(--m); font-variant-numeric: tabular-nums; }
.card--on .card__sc { color: var(--live); }
.badge { display: inline-block; margin-top: 10px; padding: 1px 10px; border-radius: 10px; background: var(--g2); color: var(--g); font-size: 12px; }
.focus .badge { margin-top: 0; }
.badge--live { background: #fbe9e5; color: var(--live); }
.pulse { animation: slp 2s; }
@keyframes slp { 0%, 50% { color: #fff; background: var(--live); } }

.pg { display: flex; justify-content: center; gap: 6px; }
.pg a, .pg span { padding: 5px 12px; background: #fff; border: 1px solid var(--l); border-radius: 4px; }
.pg span.cur { background: var(--g); border-color: var(--g); color: #fff; }

.viewport { position: relative; aspect-ratio: 16/9; background: #111814; border-radius: 4px; overflow: hidden; }
.viewport video, .viewport iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewport__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8e9893; }
.chans { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chan { padding: 7px 16px; border: 1px solid var(--l); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.chan:hover { border-color: var(--g); color: var(--g); }
.chan--cur, .chan--cur:hover { background: var(--g); border-color: var(--g); color: #fff; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.facts li { padding: 12px 14px; background: #fff; border: 1px solid var(--l); border-radius: 4px; color: var(--ink); }
.facts span { display: block; font-size: 12px; color: var(--m); }
.facts em { font-style: normal; }

.ft { margin-top: 30px; padding: 22px 0; background: #fff; border-top: 1px solid var(--l); font-size: 12px; color: var(--m); text-align: center; }
.ft nav a { margin: 0 8px; }
.ft nav a:hover { color: var(--g); }
.ft p { margin: 6px 0 0; }

@media (max-width: 640px) {
  .hd__nav a { padding: 6px 10px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .focus { padding: 22px 10px; }
  .focus__team { font-size: 15px; }
  .focus__sc { font-size: 26px; }
  .focus__vs { gap: 8px; }
}

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

/* 热门比赛标记（后台设为热门或属于热门联赛），手机上只显示火苗 */
.sl-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: sl-fire-glow 1.8s ease-in-out infinite; }
.sl-fire::before { content: "🔥"; font-size: 11px; line-height: 1; }
@keyframes sl-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) {
  .sl-fire { padding: 0 3px; font-size: 0; gap: 0; margin-left: 2px; }
  .sl-fire::before { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sl-fire { animation: none; } }
/* 卡片上的热门标记放到右上角，不挤占顶部的联赛和时间 */
.card { position: relative; }
.card .sl-fire { position: absolute; top: -8px; right: -6px; margin: 0; z-index: 1; }

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

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.main > .hd-dates { margin-bottom: 22px; }
.sec__h .hd-tabs { align-self: center; }
[data-hd-scope] .hd-day { padding-left: 0; }
.sl-dgrp + .sl-dgrp { margin-top: 6px; }
.card__top .hd-lg:hover { color: var(--g); }
/* 导航 5 项：手机上 logo 一行、导航一行 */
@media (max-width: 640px) {
  .hd__in { flex-wrap: wrap; height: auto; row-gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .hd__nav { flex: 1 0 100%; gap: 2px; }
  .hd__nav a { flex: 1 0 auto; padding: 6px 4px; font-size: 14px; text-align: center; }
}

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

/* 日期条吸顶：点日期跳转后仍能看到选中的是哪天 */
.hd-dates { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
