/* 朱砂：三栏门户 */
:root { --r: #c8442e; --r2: #fbefec; --ink: #222; --t: #555; --m: #999; --l: #ececec; --bg: #f7f7f7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--t); font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--r); }
[hidden], .zs-none { display: none !important; }
.zs-w { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.zs-bar { background: #fff; border-top: 3px solid var(--r); border-bottom: 1px solid var(--l); }
.zs-bar__in { display: flex; align-items: center; height: 54px; gap: 40px; }
.zs-logo span { font-size: 20px; font-weight: 700; color: var(--r); }
.zs-nav { display: flex; height: 100%; }
.zs-nav a { display: flex; align-items: center; padding: 0 20px; font-size: 15px; color: var(--ink); }
.zs-nav a.zs-cur { color: var(--r); box-shadow: inset 0 -2px 0 var(--r); font-weight: 600; }

.zs-page { padding-top: 15px; padding-bottom: 10px; min-height: 60vh; }
.zs-crumb { margin: 0 0 10px; font-size: 12px; color: var(--m); }
.zs-3col { display: grid; grid-template-columns: 170px minmax(0, 1fr) 260px; gap: 15px; align-items: start; }
.zs-3col--list { grid-template-columns: 170px minmax(0, 1fr); }
.zs-2col { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 15px; align-items: start; }
.zs-left { position: sticky; top: 10px; background: #fff; border: 1px solid var(--l); }
.zs-box { background: #fff; border: 1px solid var(--l); margin-bottom: 15px; }
.zs-box__h { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0 12px; height: 40px; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--l); border-left: 3px solid var(--r); }
.zs-box__h a { font-size: 12px; font-weight: 400; color: var(--m); }
.zs-h1 { margin: 0 0 12px; font-size: 18px; color: var(--ink); }
.zs-h1 small { margin-left: 10px; font-size: 12px; font-weight: 400; color: var(--m); }

.zs-lgs { display: flex; flex-direction: column; padding: 6px 0; }
.zs-opt { padding: 7px 14px; border: 0; background: none; text-align: left; font: inherit; color: var(--t); cursor: pointer; border-left: 3px solid transparent; }
.zs-opt:hover { color: var(--r); }
.zs-opt.zs-cur { color: var(--r); background: var(--r2); border-left-color: var(--r); }

.zs-ul { list-style: none; margin: 0; padding: 0; }
.zs-li { display: grid; grid-template-columns: 50px 110px minmax(0, 1fr) 70px; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border-bottom: 1px dashed var(--l); }
.zs-li:last-child { border-bottom: 0; }
.zs-li:hover { background: #fcfcfc; }
.zs-li__t { color: var(--m); font-variant-numeric: tabular-nums; }
.zs-li__lg { color: var(--m); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.zs-li__vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--ink); min-width: 0; }
.zs-li__h { text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zs-li__a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.zs-li__vs b { min-width: 50px; text-align: center; font-weight: 400; color: var(--m); font-variant-numeric: tabular-nums; }
.zs-li-on .zs-li__vs b, .zs-li-on .zs-li__t { color: var(--r); font-weight: 600; }
.zs-li__go { justify-self: end; padding: 2px 10px; border: 1px solid var(--l); border-radius: 2px; font-size: 12px; color: var(--t); }
.zs-li__go.zs-red { background: var(--r); border-color: var(--r); color: #fff; }
.zs-li__go.zs-red:hover { color: #fff; }
.zs-red { color: var(--r); }
.zs-flash { animation: zsf 2s; }
@keyframes zsf { 0%, 50% { background: var(--r); color: #fff; } }
.zs-none-tip { margin: 0; padding: 30px 12px; text-align: center; color: var(--m); }

.zs-mini { list-style: none; margin: 0; padding: 4px 0; }
.zs-mini:empty::after { content: "暂无"; display: block; padding: 10px 12px; color: var(--m); font-size: 13px; }
.zs-mini a { display: block; padding: 6px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--ink); }
.zs-mini a:hover { color: var(--r); }
.zs-mini em { font-style: normal; color: var(--r); margin-right: 8px; font-variant-numeric: tabular-nums; }

.zs-pg { display: flex; justify-content: center; gap: 5px; padding: 6px 0 14px; }
.zs-pg a, .zs-pg span { padding: 4px 11px; background: #fff; border: 1px solid var(--l); }
.zs-pg span { background: var(--r); border-color: var(--r); color: #fff; }

.zs-match { padding-bottom: 14px; }
.zs-match__t { margin: 0; padding: 12px 14px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--l); }
.zs-match__vs { display: grid; grid-template-columns: 1fr 200px 1fr; align-items: center; padding: 20px 10px 6px; text-align: center; }
.zs-match__vs img { object-fit: contain; }
.zs-match__vs i { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--r2); color: var(--r); font-style: normal; font-size: 22px; font-weight: 700; }
.zs-match__vs p { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.zs-match__c { display: flex; flex-direction: column; gap: 2px; }
.zs-match__c b { font-size: 32px; color: var(--ink); font-variant-numeric: tabular-nums; }
.zs-match__c small { color: var(--m); }
.zs-match__ex { margin: 0; text-align: center; color: var(--m); font-size: 13px; }
.zs-pad { padding: 12px; }
.zs-video { position: relative; aspect-ratio: 16/9; background: #000; }
.zs-video video, .zs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zs-video-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #999; }
.zs-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.zs-ln { padding: 6px 14px; border: 1px solid var(--r); border-radius: 2px; background: #fff; color: var(--r); font: inherit; cursor: pointer; }
.zs-ln:hover { background: var(--r2); }
.zs-ln-on, .zs-ln-on:hover { background: var(--r); color: #fff; }
.zs-ln-ext::after { content: " ↗"; }
.zs-note { margin: 10px 0 0; font-size: 12px; color: var(--m); }
.zs-over { margin: 0; padding: 30px; text-align: center; color: var(--r); background: var(--r2); }
.zs-dl { display: grid; grid-template-columns: 50px 1fr; margin: 0; padding: 8px 12px; font-size: 13px; }
.zs-dl dt, .zs-dl dd { margin: 0; padding: 4px 0; }
.zs-dl dt { color: var(--m); }

.zs-404 { padding: 50px 20px; text-align: center; }
.zs-404 h1 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }
.zs-404 a { display: inline-block; margin: 6px; padding: 6px 18px; border: 1px solid var(--l); }
.zs-404 a:first-child { background: var(--r); border-color: var(--r); color: #fff; }

.zs-ft { margin-top: 10px; padding: 18px 0; background: #fff; border-top: 1px solid var(--l); text-align: center; font-size: 12px; color: var(--m); }
.zs-ft p { margin: 4px 0; }
.zs-ft a { margin: 0 8px; }

@media (max-width: 1000px) {
  .zs-3col { grid-template-columns: 150px minmax(0, 1fr); }
  .zs-3col > .zs-right { display: none; }
}
@media (max-width: 700px) {
  .zs-bar__in { gap: 12px; }
  .zs-nav a { padding: 0 10px; font-size: 14px; }
  .zs-3col, .zs-3col--list, .zs-2col { grid-template-columns: 1fr; }
  .zs-left { position: static; }
  .zs-lgs { flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 6px; }
  .zs-opt { padding: 3px 10px; border: 1px solid var(--l); border-radius: 2px; }
  .zs-opt.zs-cur { border-color: var(--r); }
  .zs-li { grid-template-columns: 42px minmax(0, 1fr) 56px; padding: 0 8px; }
  .zs-li__lg { display: none; }
  .zs-match__vs { grid-template-columns: 1fr 120px 1fr; }
  .zs-match__c b { font-size: 24px; }
}

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

/* 手机端：缩小字号和间距，队名放不下时换行，尽量完整显示 */
@media (max-width: 480px) {
  .zs-li { grid-template-columns: 38px minmax(0, 1fr) 52px; height: auto; min-height: 44px; padding: 6px; gap: 6px; }
  .zs-li__vs { gap: 4px; }
  .zs-li__vs b { min-width: 38px; }
  .zs-li__h, .zs-li__a { font-size: 13px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
}
@media (max-width: 480px) {
  .zs-li__go { padding: 2px 4px; font-size: 11px; white-space: nowrap; }
}

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

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

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.zs-mid > .hd-dates { margin-bottom: 15px; }
.zs-box__n { font-size: 12px; font-weight: 400; color: var(--m); }
.zs-box__h .hd-tabs button { padding: 2px 12px; font-size: 12px; }
.zs-li { height: auto; min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
.zs-li__lg .hd-lg:hover { color: var(--r); }
.zs-md { white-space: nowrap; }
.zs-lg-m { display: none; }
@media (max-width: 700px) {
  .zs-lg-m { display: block; max-width: 42px; overflow: hidden; color: var(--m); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
}
/* 导航 5 项：手机上 logo 一行、导航一行 */
@media (max-width: 640px) {
  .zs-bar__in { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 8px; }
  .zs-nav { flex: 1 0 100%; height: 40px; }
  .zs-nav a { flex: 1 0 auto; justify-content: center; padding: 0 4px; }
}

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

/* 日期条吸顶：点日期跳转后仍能看到选中的是哪天 */
.hd-dates { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
/* 整行可点（row-cover），行里的联赛链接浮在上面 */
.zs-li { cursor: pointer; }
.zs-lg-m { position: relative; z-index: 2; }
