/* 青瓷：联赛筛选 + 赛程表 */
:root { --c: #4f8a83; --c2: #edf4f3; --c3: #d5e6e3; --ink: #1f2a29; --t: #4d5958; --m: #93a09e; --l: #e3e9e8; --bg: #f5f7f7; --live: #d4513e; }
* { 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(--c); }
[hidden] { display: none !important; }
.qc-hide { display: none !important; }
.qc-w { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.qc-hd { background: var(--c); }
.qc-hd__in { display: flex; align-items: center; height: 52px; gap: 36px; }
.qc-hd__logo { font-size: 19px; font-weight: 700; color: #fff; }
.qc-hd__logo:hover { color: #fff; }
.qc-hd__nav { display: flex; height: 100%; }
.qc-hd__nav a { display: flex; align-items: center; padding: 0 18px; color: rgba(255,255,255,.85); }
.qc-hd__nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.qc-hd__nav a.qc-sel { background: #fff; color: var(--c); font-weight: 600; }

.qc-body { padding-top: 16px; padding-bottom: 10px; min-height: 60vh; }
.qc-crumb { margin: 0 0 10px; font-size: 12px; color: var(--m); }
.qc-h1 { margin: 0 0 14px; font-size: 18px; color: var(--ink); }
.qc-h1--c { text-align: center; font-size: 15px; font-weight: 400; color: var(--t); }

.qc-panel { background: #fff; border: 1px solid var(--l); margin-bottom: 16px; }
.qc-panel__h { display: flex; justify-content: space-between; align-items: center; padding: 0 14px; height: 42px; background: var(--c2); border-bottom: 1px solid var(--l); }
.qc-panel__h h1, .qc-panel__h h2 { margin: 0; font-size: 15px; color: var(--ink); }
.qc-panel__h a, .qc-panel__h span { font-size: 12px; color: var(--c); }
.qc-panel__h span { color: var(--m); }
.qc-pad { padding: 14px; }
.qc-empty { margin: 0; padding: 30px 14px; text-align: center; color: var(--m); }
.qc-empty--end { color: var(--live); }

.qc-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--l); }
.qc-fbtn { padding: 2px 12px; border: 1px solid var(--l); border-radius: 2px; background: #fff; color: var(--t); font: inherit; font-size: 13px; cursor: pointer; }
.qc-fbtn:hover { border-color: var(--c); color: var(--c); }
.qc-fbtn.qc-sel { background: var(--c); border-color: var(--c); color: #fff; }

.qc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qc-table th { height: 34px; font-weight: 400; color: var(--m); background: #fafbfb; border-bottom: 1px solid var(--l); }
.qc-table td { height: 48px; padding: 0 6px; text-align: center; border-bottom: 1px solid var(--l); }
.qc-tr:hover td { background: #f8fbfa; }
.qc-c-lg { width: 120px; }
.qc-c-lg span { display: inline-block; max-width: 110px; padding: 1px 8px; border-radius: 2px; background: var(--c2); color: var(--c); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: middle; }
.qc-c-t { width: 70px; line-height: 1.35; color: var(--m); font-variant-numeric: tabular-nums; }
.qc-c-st { width: 70px; }
.qc-st { color: var(--m); }
.qc-st--live { color: var(--live) !important; font-weight: 600; }
.qc-table .qc-c-h { text-align: right; color: var(--ink); }
.qc-table .qc-c-a { text-align: left; color: var(--ink); }
.qc-c-h img, .qc-c-a img { vertical-align: middle; margin: 0 6px; object-fit: contain; }
.qc-c-sc { width: 80px; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.qc-tr--live .qc-c-sc { color: var(--live); }
.qc-c-go { width: 96px; }
.qc-go { display: inline-block; padding: 3px 12px; border: 1px solid var(--l); border-radius: 2px; color: var(--t); }
.qc-go--on { background: var(--c); border-color: var(--c); color: #fff; }
.qc-go--on:hover { color: #fff; opacity: .9; }
.qc-day td { height: 34px; text-align: left; padding-left: 14px; background: var(--c2); color: var(--c); font-weight: 600; }
.qc-flash { animation: qcf 2s; }
@keyframes qcf { 0%, 50% { background: var(--live); color: #fff; } }
.qc-table--stat td { height: 40px; font-size: 14px; color: var(--ink); white-space: pre; }

.qc-pages { display: flex; justify-content: center; gap: 4px; }
.qc-pages a, .qc-pages span { padding: 4px 11px; background: #fff; border: 1px solid var(--l); }
.qc-pages span { background: var(--c); border-color: var(--c); color: #fff; }

.qc-match { display: grid; grid-template-columns: 1fr 260px 1fr; align-items: center; padding: 24px 10px; text-align: center; }
.qc-match__side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.qc-match__side img { object-fit: contain; }
.qc-match__side i { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c2); color: var(--c); font-style: normal; font-size: 22px; font-weight: 700; }
.qc-match__side b { font-size: 17px; color: var(--ink); max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.qc-match__mid p { margin: 0; font-size: 12px; color: var(--m); }
.qc-match__mid strong { display: block; margin: 4px 0; font-size: 34px; color: var(--ink); font-variant-numeric: tabular-nums; }
.qc-srcs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qc-src { padding: 6px 16px; border: 1px solid var(--c3); border-radius: 2px; background: var(--c2); color: var(--c); font: inherit; cursor: pointer; }
.qc-src:hover { border-color: var(--c); }
.qc-src--sel, .qc-src--sel:hover { background: var(--c); border-color: var(--c); color: #fff; }
.qc-src--ext::after { content: " ↗"; }
.qc-player { position: relative; aspect-ratio: 16/9; background: #0f1716; }
.qc-player video, .qc-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qc-player__tip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--m); }
.qc-404 { padding: 50px 20px; text-align: center; }
.qc-404 h1 { margin: 0 0 8px; font-size: 20px; color: var(--ink); }

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

@media (max-width: 760px) {
  .qc-hd__in { gap: 10px; }
  .qc-hd__nav a { padding: 0 12px; }
  .qc-c-lg, .qc-c-st, .qc-table th:nth-child(1), .qc-table th:nth-child(3) { display: none; }
  .qc-c-go { width: 64px; }
  .qc-go { padding: 2px 6px; font-size: 12px; }
  .qc-c-h img, .qc-c-a img { display: none; }
  .qc-table td { padding: 0 3px; }
  .qc-match { grid-template-columns: 1fr 120px 1fr; }
  .qc-match__mid strong { font-size: 24px; }
}

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

/* 手机端：缩小字号和间距，队名放不下时换行，尽量完整显示 */
@media (max-width: 760px) {
  .qc-table td { height: auto; padding: 8px 2px; font-size: 13px; }
  .qc-c-t { width: 42px; }
  .qc-c-sc { width: 50px; font-size: 14px; }
  .qc-c-go { width: 52px; }
  .qc-go { padding: 2px 4px; font-size: 11px; }
}
@media (max-width: 380px) {
  .qc-table td { font-size: 12px; }
  .qc-c-t { width: 38px; }
  .qc-c-sc { width: 44px; }
}

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

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

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

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

/* 首页：日期选择 + 热门直播 + 赛事直播 */
.qc-body > .hd-dates { margin-bottom: 16px; }
.qc-panel__h .hd-tabs { padding: 2px; }
.qc-panel__h .hd-tabs button { padding: 2px 12px; font-size: 12px; }
.qc-c-lg .hd-lg:hover { text-decoration: none; opacity: .8; }
.qc-lg-m { display: none; }
@media (max-width: 760px) {
  .qc-lg-m { display: block; max-width: 42px; overflow: hidden; font-size: 11px; color: var(--c); text-overflow: ellipsis; white-space: nowrap; }
}
/* 导航 5 项：手机上导航单独一行，一屏放下 */
@media (max-width: 640px) {
  .qc-hd__in { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 8px; }
  .qc-hd__nav { flex: 1 0 100%; height: 40px; }
  .qc-hd__nav a { flex: 1 0 auto; justify-content: center; padding: 0 4px; font-size: 14px; }
}

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

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