/* 铁青：即时比分板 + 侧边工具条 */
:root { --hd: #2f3d4c; --c: #1f7a8c; --c2: #e8f3f5; --ink: #1e252c; --t: #4b5560; --m: #96a0aa; --l: #e5e9ec; --bg: #f3f5f6; --live: #d1453b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--t); font: 13px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c); }
[hidden], .tq-off { display: none !important; }
.tq-c { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

.tq-hd { background: var(--hd); }
.tq-hd__in { display: flex; align-items: center; height: 50px; gap: 30px; }
.tq-hd__logo { font-size: 18px; font-weight: 700; color: #fff; }
.tq-hd__logo:hover { color: #fff; }
.tq-hd__nav { display: flex; gap: 4px; }
.tq-hd__nav a { padding: 5px 14px; border-radius: 3px; color: #c4ccd4; font-size: 14px; }
.tq-hd__nav a:hover { color: #fff; }
.tq-hd__nav a.tq-on { background: var(--c); color: #fff; }

.tq-page { padding-top: 14px; padding-bottom: 10px; min-height: 60vh; }
.tq-crumb { margin: 0 0 10px; color: var(--m); }
.tq-board { background: #fff; border: 1px solid var(--l); margin-bottom: 14px; }
.tq-board__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; height: 46px; border-bottom: 2px solid var(--c); }
.tq-board__bar h1 { margin: 0; font-size: 16px; color: var(--ink); }
.tq-board__bar h1 small { font-size: 12px; font-weight: 400; color: var(--m); }
.tq-board__n { color: var(--m); }
.tq-tabs { display: flex; gap: 4px; }
.tq-tab { padding: 4px 14px; border: 1px solid var(--l); border-radius: 3px; background: #fff; color: var(--t); font: inherit; cursor: pointer; }
.tq-tab em { margin-left: 4px; font-style: normal; color: var(--m); }
.tq-tab.tq-on { background: var(--c); border-color: var(--c); color: #fff; }
.tq-tab.tq-on em { color: #cde7ec; }
.tq-lgbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--l); }

.tq-head, .tq-r { display: grid; grid-template-columns: 120px 56px 64px minmax(0, 1fr) 76px minmax(0, 1fr) 64px; align-items: center; gap: 6px; padding: 0 14px; }
.tq-head { height: 32px; background: #f8f9fa; border-bottom: 1px solid var(--l); color: var(--m); text-align: center; }
.tq-head span:nth-child(4) { text-align: right; }
.tq-head span:nth-child(6) { text-align: left; }
.tq-r { height: 42px; border-bottom: 1px solid var(--l); text-align: center; }
.tq-r:nth-child(even) { background: #fbfcfc; }
.tq-r:hover { background: var(--c2); }
.tq-r__lg { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--c); }
.tq-r__t { color: var(--m); font-variant-numeric: tabular-nums; }
.tq-r__st { color: var(--m); }
.tq-s-live { color: var(--live) !important; font-weight: 600; }
.tq-r__h { text-align: right; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tq-r__a { text-align: left; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tq-r__sc { font-size: 15px; font-weight: 700; color: var(--hd); font-variant-numeric: tabular-nums; }
.tq-r-live .tq-r__sc { color: var(--live); }
.tq-r-live { box-shadow: inset 3px 0 0 var(--live); }
.tq-r__go { justify-self: center; padding: 1px 10px; border: 1px solid var(--l); border-radius: 3px; color: var(--m); }
.tq-r__go--on { border-color: var(--c); color: var(--c); }
.tq-r__go--on:hover { background: var(--c); color: #fff; }
.tq-chg { animation: tqc 2s; }
@keyframes tqc { 0%, 50% { background: #ffe08a; } }
.tq-day { margin: 0; padding: 6px 14px; background: var(--c2); color: var(--c); font-size: 13px; }
.tq-more { display: block; padding: 10px; text-align: center; color: var(--c); }
.tq-empty { margin: 0; padding: 30px 14px; text-align: center; color: var(--m); }
.tq-empty--end { color: var(--live); }
.tq-pg { display: flex; justify-content: center; gap: 4px; }
.tq-pg a, .tq-pg span { padding: 4px 11px; background: #fff; border: 1px solid var(--l); border-radius: 3px; }
.tq-pg span { background: var(--c); border-color: var(--c); color: #fff; }

.tq-detail { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; align-items: start; }
.tq-sb { display: grid; grid-template-columns: 1fr 220px 1fr; align-items: center; padding: 22px 10px; background: var(--hd); color: #fff; text-align: center; }
.tq-sb__team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tq-sb__team img { object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.tq-sb__team b { font-size: 16px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tq-sb__mid { display: flex; flex-direction: column; gap: 2px; }
.tq-sb__mid strong { font-size: 36px; font-variant-numeric: tabular-nums; }
.tq-sb__mid small { color: #9fb0bf; }
.tq-sb__st { color: #9fb0bf; }
.tq-sb .tq-s-live { color: #ff8a80 !important; }
.tq-h1 { margin: 0; padding: 10px 14px; background: #fff; border: 1px solid var(--l); border-top: 0; font-size: 14px; font-weight: 400; color: var(--t); }
.tq-box { background: #fff; border: 1px solid var(--l); margin: 14px 0; }
aside .tq-box:first-child { margin-top: 0; }
.tq-box__h { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--l); }
.tq-player { position: relative; aspect-ratio: 16/9; background: #000; }
.tq-player video, .tq-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tq-player-tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--m); }
.tq-sigs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.tq-sig { display: inline-block; padding: 6px 14px; border: 1px solid var(--l); border-radius: 3px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.tq-sig:hover { border-color: var(--c); color: var(--c); }
.tq-sig-on, .tq-sig-on:hover { background: var(--c); border-color: var(--c); color: #fff; }
.tq-sig--ext::after { content: " ↗"; }
.tq-dl { display: grid; grid-template-columns: 50px 1fr; margin: 0; padding: 6px 14px; }
.tq-dl + .tq-dl { border-top: 1px dashed var(--l); }
.tq-dl dt, .tq-dl dd { margin: 0; padding: 4px 0; }
.tq-dl dt { color: var(--m); }
.tq-dl dd { color: var(--ink); }
.tq-mini { list-style: none; margin: 0; padding: 4px 0; }
.tq-mini a { display: block; padding: 6px 14px; color: var(--ink); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tq-mini em { display: block; font-style: normal; font-size: 12px; color: var(--m); }
.tq-mini b { color: var(--hd); padding: 0 4px; }
.tq-404 { padding: 50px 20px; text-align: center; }
.tq-404 h1 { margin: 0; font-size: 46px; color: var(--hd); }

.tq-tools { position: fixed; right: 14px; top: 40%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--l); }
.tq-tools a, .tq-tools button { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; border-bottom: 1px solid var(--l); background: #fff; color: var(--t); font: inherit; cursor: pointer; }
.tq-tools button { border-bottom: 0; display: none; }
.tq-tools button.tq-on { display: flex; }
.tq-tools a:hover, .tq-tools button:hover { background: var(--c); color: #fff; }

.tq-ft { margin-top: 10px; padding: 16px 0; background: var(--hd); text-align: center; color: #9fb0bf; font-size: 12px; }
.tq-ft p { margin: 4px 0; }
.tq-ft a { margin: 0 8px; color: #c4ccd4; }

@media (max-width: 1240px) { .tq-tools { display: none; } }
@media (max-width: 760px) {
  .tq-hd__in { gap: 12px; }
  .tq-hd__nav a { padding: 5px 9px; }
  .tq-head, .tq-r { grid-template-columns: 44px minmax(0, 1fr) 54px minmax(0, 1fr); padding: 0 8px; }
  .tq-head span:nth-child(1), .tq-head span:nth-child(3), .tq-head span:nth-child(7),
  .tq-r__lg, .tq-r__st, .tq-r__go { display: none; }
  .tq-detail { grid-template-columns: 1fr; }
  .tq-sb { grid-template-columns: 1fr 120px 1fr; }
  .tq-sb__mid strong { font-size: 26px; }
  .tq-board__bar { height: auto; padding: 8px 10px; flex-wrap: wrap; }
}

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

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

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

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

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.tq-page > .hd-dates { margin-bottom: 14px; }
.tq-board + .tq-board { margin-top: 16px; }
.tq-board__bar h2 { margin: 0; font-size: 16px; color: var(--ink); }
.tq-board__bar .hd-tabs button { padding: 3px 12px; }
.tq-r__lg .hd-lg:hover { text-decoration: underline; }
.tq-md { white-space: nowrap; }
.tq-r { height: auto; min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
.tq-r__t { line-height: 1.35; }
.tq-lg-m { display: none; }
@media (max-width: 760px) {
  .tq-r { height: auto; min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
  .tq-lg-m { display: block; max-width: 44px; overflow: hidden; color: var(--c); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .tq-r__t { line-height: 1.3; }
}
/* 导航 5 项：手机上 logo 一行、导航一行 */
@media (max-width: 640px) {
  .tq-hd__in { flex-wrap: wrap; height: auto; row-gap: 4px; padding-top: 8px; padding-bottom: 6px; }
  .tq-hd__nav { flex: 1 0 100%; gap: 2px; }
  .tq-hd__nav a { flex: 1 0 auto; padding: 5px 4px; text-align: center; }
}

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

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