/* 琥珀：居中头部 + 足篮双栏 */
:root { --a: #c98a1b; --a2: #fbf3e2; --ink: #2a241b; --t: #554c3f; --m: #a39886; --l: #eee7da; --bg: #fffdf8; --live: #d0442f; }
* { 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], .hp-hidden { display: none !important; }

.hp-head { padding: 26px 20px 0; text-align: center; border-bottom: 1px solid var(--l); }
.hp-head__name { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: 2px; }
.hp-head__nav { display: flex; justify-content: center; gap: 30px; margin-top: 10px; }
.hp-head__nav a { padding: 8px 0; border-bottom: 2px solid transparent; color: var(--t); }
.hp-head__nav a:hover { color: var(--a); }
.hp-head__nav a.hp-active { color: var(--ink); border-bottom-color: var(--a); font-weight: 600; }

.hp-main { max-width: 1080px; margin: 0 auto; padding: 0 20px 20px; min-height: 60vh; }
.hp-intro { padding: 26px 0 20px; text-align: center; }
.hp-intro h1 { margin: 0; font-size: 22px; color: var(--ink); }
.hp-intro p { margin: 4px 0 0; color: var(--m); }
.hp-intro .hp-crumb { margin: 0 0 6px; font-size: 12px; }
.hp-crumb a:hover { color: var(--a); }
.hp-intro--404 { padding: 70px 0; }
.hp-intro--404 .hp-source { margin-top: 14px; }

.hp-twin { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.hp-col { background: #fff; border: 1px solid var(--l); border-radius: 6px; margin-bottom: 20px; }
.hp-col__h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--l); }
.hp-col__h h2 { margin: 0; font-size: 16px; color: var(--ink); }
.hp-col__h span { font-size: 12px; color: var(--m); }
.hp-col__more { display: block; padding: 10px; text-align: center; color: var(--a); font-size: 13px; border-top: 1px solid var(--l); }
.hp-col__more:hover { background: var(--a2); }
.hp-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--m); }
.hp-empty--end { color: var(--live); background: #fff; border: 1px solid var(--l); border-radius: 6px; }

.hp-line { display: flex; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--l); }
.hp-line:last-of-type { border-bottom: 0; }
.hp-line:hover { background: var(--a2); }
.hp-line__time { flex: none; width: 42px; font-variant-numeric: tabular-nums; color: var(--a); font-weight: 600; }
.hp-line--live .hp-line__time { color: var(--live); }
.hp-line__main { flex: 1; min-width: 0; }
.hp-line__teams { display: block; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hp-line__teams b { display: inline-block; min-width: 36px; padding: 0 8px; text-align: center; color: var(--m); font-weight: 500; font-variant-numeric: tabular-nums; }
.hp-line--live .hp-line__teams b { color: var(--live); font-weight: 700; }
.hp-line__lg { display: block; font-size: 12px; color: var(--m); }
.hp-flag { font-style: normal; margin-left: 10px; color: var(--a); }
.hp-flag:empty { display: none; }
.hp-flag--live { color: var(--live) !important; }
.hp-glow { animation: hpg 2s; }
@keyframes hpg { 0%, 50% { background: var(--a); color: #fff; } }

.hp-split { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: start; }
.hp-dates { position: sticky; top: 16px; display: flex; flex-direction: column; border-left: 2px solid var(--l); }
.hp-dates a { display: flex; justify-content: space-between; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--t); font-size: 13px; }
.hp-dates a:hover { border-left-color: var(--a); color: var(--a); }
.hp-dates em { font-style: normal; color: var(--m); }
.hp-days .hp-col { scroll-margin-top: 16px; }
.hp-pager { display: flex; justify-content: center; gap: 6px; }
.hp-pager a, .hp-pager span { padding: 4px 12px; border-radius: 4px; border: 1px solid var(--l); background: #fff; }
.hp-pager span { background: var(--a); border-color: var(--a); color: #fff; }

.hp-watch { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.hp-screen { position: relative; aspect-ratio: 16/9; background: #17130d; border-radius: 6px; overflow: hidden; }
.hp-screen video, .hp-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-screen__text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--m); }
.hp-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hp-source { display: inline-block; padding: 7px 16px; border: 1px solid var(--a); border-radius: 4px; background: #fff; color: var(--a); font: inherit; cursor: pointer; }
.hp-source:hover { background: var(--a2); }
.hp-source--on, .hp-source--on:hover { background: var(--a); color: #fff; }
.hp-source--ext::after { content: " ↗"; }
.hp-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 18px 12px; margin-bottom: 20px; background: #fff; border: 1px solid var(--l); border-radius: 6px; text-align: center; }
.hp-score__team { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; min-width: 0; }
.hp-score__team img { object-fit: contain; }
.hp-score__team span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hp-score__num { font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hp-score__st, .hp-score__ex { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--m); }

.hp-totop { position: fixed; right: 20px; bottom: 20px; width: 38px; height: 38px; border: 1px solid var(--l); border-radius: 50%; background: #fff; color: var(--a); font-size: 16px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hp-totop.hp-active { opacity: 1; pointer-events: auto; }

.hp-foot { padding: 22px 20px; border-top: 1px solid var(--l); text-align: center; font-size: 12px; color: var(--m); }
.hp-foot nav a { margin: 0 8px; }
.hp-foot nav a:hover { color: var(--a); }
.hp-foot p { margin: 4px 0 0; }

@media (max-width: 760px) {
  .hp-head__nav { gap: 20px; }
  .hp-twin, .hp-watch, .hp-split { grid-template-columns: 1fr; gap: 0; }
  .hp-dates { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--l); margin-bottom: 14px; }
  .hp-dates a { flex: none; margin: 0; border-left: 0; gap: 6px; }
  .hp-line { padding: 9px 12px; gap: 10px; }
}

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

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

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

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.hp-main > .hd-dates { margin-bottom: 18px; }
.hp-col__h .hd-tabs { align-self: center; }
[data-hd-scope] .hd-day { padding-left: 16px; }
.hp-line__lg .hd-lg:hover { color: var(--a); }
.hp-md { white-space: nowrap; }
/* 导航 5 项：手机上一屏放下 */
@media (max-width: 480px) {
  .hp-head { padding-left: 12px; padding-right: 12px; }
  .hp-head__nav { gap: 0; justify-content: space-between; }
  .hp-head__nav a { font-size: 14px; }
}

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