/* 黛蓝：滚动赛况条 + 时间轴 */
:root { --b: #2c3e7a; --b2: #eef1f8; --ink: #1b2240; --t: #4a5068; --m: #9097ab; --l: #e4e7ef; --live: #e0483c; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--t); font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
[hidden], .dl-x { display: none !important; }
.dl-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.dl-top { background: var(--b); color: #fff; }
.dl-top__in { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.dl-name { font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.dl-menu { display: flex; gap: 6px; }
.dl-menu a { padding: 4px 14px; border-radius: 4px; color: rgba(255,255,255,.75); }
.dl-menu a:hover { color: #fff; }
.dl-menu a.sel { background: rgba(255,255,255,.15); color: #fff; }

.dl-strip { background: var(--b2); border-bottom: 1px solid var(--l); }
.dl-strip__in { display: flex; align-items: center; gap: 14px; height: 40px; overflow: hidden; }
.dl-strip__t { flex: none; padding: 1px 8px; border-radius: 3px; background: var(--b); color: #fff; font-size: 12px; }
.dl-strip__run { display: flex; white-space: nowrap; animation: dlrun 60s linear infinite; }
.dl-strip__set { display: flex; gap: 26px; padding-right: 26px; }
.dl-strip__in:hover .dl-strip__run { animation-play-state: paused; }
@keyframes dlrun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.dl-chip { font-size: 13px; color: var(--ink); }
.dl-chip em { font-style: normal; color: var(--m); margin-right: 6px; }
.dl-chip b { color: var(--b); padding: 0 4px; }
.dl-chip[data-dl-s="1"] b { color: var(--live); }

.dl-content { padding-top: 26px; padding-bottom: 20px; min-height: 60vh; }
.dl-path { margin: 0 0 6px; font-size: 12px; color: var(--m); }
.dl-path a:hover { color: var(--b); }
.dl-path--inv, .dl-path--inv a { color: rgba(255,255,255,.65); }
.dl-h1 { margin: 0 0 20px; font-size: 22px; color: var(--ink); }
.dl-h1 small { font-size: 13px; font-weight: 400; color: var(--m); }
.dl-h1--sm { font-size: 17px; }
.dl-lead { margin: -14px 0 22px; color: var(--m); }
.dl-h2 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 16px; color: var(--ink); }
.dl-h2 a { font-size: 12px; font-weight: 400; color: var(--b); }
.dl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dl-narrow { max-width: 720px; }
.dl-day { margin: 0 0 10px; font-size: 14px; color: var(--b); }
.dl-empty { margin: 0; padding: 22px; background: var(--b2); border-radius: 6px; text-align: center; color: var(--m); }
.dl-empty--over { color: var(--live); }

.ev-list { list-style: none; margin: 0 0 26px; padding: 0 0 0 62px; position: relative; }
.ev-list::before { content: ""; position: absolute; left: 54px; top: 6px; bottom: 6px; width: 1px; background: var(--l); }
.ev { position: relative; margin-bottom: 8px; }
.ev::before { content: ""; position: absolute; left: -12px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid var(--l); }
.ev-live::before { border-color: var(--live); background: var(--live); }
.ev-time { position: absolute; left: -62px; top: 11px; width: 42px; text-align: right; font-size: 13px; color: var(--m); font-variant-numeric: tabular-nums; }
.ev-live .ev-time { color: var(--live); font-weight: 600; }
.ev-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lg tag" "vs vs"; gap: 2px 10px; padding: 8px 12px; border: 1px solid var(--l); border-radius: 6px; }
.ev-card:hover { border-color: var(--b); }
.ev-lg { grid-area: lg; font-size: 12px; color: var(--m); }
.ev-tag { grid-area: tag; font-size: 12px; color: var(--m); }
.ev-tag-hot { color: var(--live); }
.ev-vs { grid-area: vs; display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 500; min-width: 0; }
.ev-vs span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev-vs b { flex: none; color: var(--b); font-variant-numeric: tabular-nums; }
.ev-live .ev-vs b { color: var(--live); }
.ev-up { animation: dlup 2s; }
@keyframes dlup { 0%, 50% { background: var(--live); color: #fff; } }
.ev-list--sm { padding-left: 54px; }
.ev-list--sm::before { left: 46px; }
.ev-list--sm .ev-time { left: -54px; width: 36px; font-size: 12px; }
.ev-list--sm .ev-tag { display: none; }

.dl-pages { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-pages a, .dl-pages span { padding: 4px 12px; border: 1px solid var(--l); border-radius: 4px; }
.dl-pages span { background: var(--b); border-color: var(--b); color: #fff; }

.dl-hero { background: var(--b); color: #fff; padding: 20px 0 22px; }
.dl-hero__vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 10px 0 8px; font-size: 22px; font-weight: 600; text-align: center; }
.dl-hero__vs b { font-size: 36px; font-variant-numeric: tabular-nums; }
.dl-hero__meta { margin: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; }
.dl-st { padding: 1px 8px; border-radius: 3px; background: rgba(255,255,255,.15); color: #fff; margin-right: 6px; }
.dl-st.sel { background: var(--live); }

.dl-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.dl-play { position: relative; aspect-ratio: 16/9; background: #0d1226; border-radius: 6px; overflow: hidden; }
.dl-play video, .dl-play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dl-play-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--m); }
.dl-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dl-btn { display: inline-block; padding: 6px 16px; border: 1px solid var(--b); border-radius: 4px; background: #fff; color: var(--b); font: inherit; cursor: pointer; }
.dl-btn:hover { background: var(--b2); }
.dl-btn-sel, .dl-btn-sel:hover { background: var(--b); color: #fff; }
.dl-btn--out::after { content: " ↗"; }
.dl-tab { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 13px; text-align: center; }
.dl-tab td, .dl-tab th { padding: 8px 4px; border-bottom: 1px solid var(--l); }
.dl-tab th { color: var(--m); font-weight: 400; }
.dl-tab td { color: var(--ink); }
.dl-tab__sc { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

.dl-404 { padding: 60px 0; text-align: center; }
.dl-404 b { font-size: 56px; color: var(--b2); -webkit-text-stroke: 1px var(--b); }
.dl-404 .dl-lead { margin: -12px 0 18px; }

.dl-foot { border-top: 1px solid var(--l); padding: 18px 0; font-size: 12px; color: var(--m); }
.dl-foot .dl-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.dl-foot a { margin-left: 12px; }
.dl-foot a:hover { color: var(--b); }
.dl-foot p { flex-basis: 100%; margin: 0; }

@media (max-width: 760px) {
  .dl-cols, .dl-detail { grid-template-columns: 1fr; gap: 10px; }
  .dl-hero__vs { font-size: 16px; gap: 10px; }
  .dl-hero__vs b { font-size: 26px; }
  .ev-list { padding-left: 54px; }
  .ev-list::before { left: 46px; }
  .ev-time { left: -54px; width: 36px; }
}
@media (prefers-reduced-motion: reduce) { .dl-strip__run { animation: none; } }

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

/* 手机端：长队名不截断，换行完整显示 */
@media (max-width: 480px) {
  .ev-vs span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }
}

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

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

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.dl-content > .hd-dates { max-width: 720px; margin-bottom: 20px; }
.dl-h2 > span { font-size: 12px; font-weight: 400; color: var(--m); }
.dl-h2 .hd-tabs { align-self: center; font-weight: 400; }
.ev-lg .hd-lg:hover { color: var(--b); }
/* 导航 5 项：手机上导航单独一行，一屏放下 */
@media (max-width: 768px) {
  .dl-top__in { flex-wrap: wrap; height: auto; row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  .dl-menu { flex: 1 0 100%; width: 100%; gap: 2px; }
  .dl-menu a { flex: 1 0 auto; padding: 5px 4px; font-size: 14px; text-align: center; }
}

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

/* 日期条吸顶（样式在内置 hd.css）：底色跟页面一致 */
:root { --hd-bg: #fff; }
