/* ==========================================================================
   赛事卡片（ucl-match.css）—— 首页「足球赛程」和列表页（/ouguanzhibo、/list）共用

   2026-11-30：列表页原来用 cs06 那套「两行一行」的赛程行，用户口径换成
   首页那张卡（时间块 + 主客队 + 比分 + 状态胶囊），于是把首页 .fix 那套规则
   从 ucl-home.css 挪到这里，两边同一份，改一处两边一起变。

   颜色全读 theme-vars.css 的令牌（--cs06-card / --cs06-line-2 / --accent-rgb…），
   后台换主题时卡片跟着变；这里不写死颜色。

   依赖的变量（由使用方给）：
     · --panel / --panel2 / --line / --ink / --sub / --faint / --cyan / --gold / --green
       首页由 ucl-home.css 的 ① 段映射，列表页由 ucl-chrome.css 的 ① 段映射（同一批令牌）。
   ========================================================================== */

/* ---------- 详情页「精彩集锦」：一排小图 + 标题（2026-11-30） ----------
   放在直播详情页最底部，数据源和首页「足球集锦」同一份（public_highlight_feed 取 6 条）。
   这里刻意做得比首页那张大集锦卡小一号：小图 16:10 + 两行标题 + 一行灰字，
   桌面一排 6 个，窄屏 4 / 3 / 2。 */
.hl-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.hl-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hl-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel2, #111c42);
}
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.hl-card:hover .hl-thumb img { transform: scale(1.05); }
.hl-card:hover .hl-title { color: var(--cyan); }
.hl-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.hl-title {
  display: -webkit-box;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.hl-meta { font-size: 10.5px; color: var(--faint, #6b77a3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 1180px) {
  .hl-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hl-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hl-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .hl-title { font-size: 12px; }
}

/* ---------- 列表页（/ouguanzhibo、/list）的板子：让位给卡片 ----------
   cs06 原来把「赛程安排」画成一个白底卡片（.cs06-fixture-board），行贴着板子边；
   换成卡片网格之后会变成「卡片套卡片 + 边被 overflow 裁掉」。所以这一页把板子的
   白底/描边/圆角/裁切全摘掉，让 .fix 卡片直接落在页面底上（跟首页一致），
   联赛分组标题退化成一条小标题。只作用在赛程板，右栏 .cs06-filter-panel 不动。 */
.cs06-fixture-board {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.cs06-fixture-board .cs06-board-head {
  min-height: 0;
  padding: 0 0 14px;
  border-bottom: 0;
}
.cs06-fixture-board .cs06-board-head h2 { font-size: 15px; }
.cs06-league-block { margin-top: 18px; }
.cs06-league-block > h3 {
  padding: 0 0 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--sub);
}
.cs06-league-block > h3 small { font-size: 11px; }
.cs06-league-block + .cs06-league-block { border-top: 0; }
.cs06-league-block .cs06-league-mark { width: 3px; height: 12px; border-radius: 2px; background: rgb(var(--accent-rgb)); }
.cs06-fixture-board .cs06-fixture-empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

/* 列表页的卡片比首页窄一档（首页两列各 ~600，这里两列各 ~440），
   内边距和队徽收一点，长队名不至于第一个字就被省略号吃掉 */
.cs06-fixture-board .fix { padding: 14px 16px; gap: 12px; }
.cs06-fixture-board .fix .when { flex: 0 0 58px; padding-right: 10px; }
.cs06-fixture-board .fix .when b { font-size: 14px; }
.cs06-fixture-board .fix .t { font-size: 13px; gap: 7px; }
.cs06-fixture-board .fix .t img,
.cs06-fixture-board .fix .t .tinit { width: 22px; height: 22px; }
.cs06-fixture-board .fix .sc { font-size: 15px; padding: 5px 10px; }

/* 变量别名：卡片在首页（body.ucl-home 给的 --panel…）和内页
   （只有 ucl-chrome 那层 --card/--ink/--blue…）都能直接吃同一套名字。
   挂在 body.ucl-chrome 上 —— 首页和内页的 body 都带这个类，值都是同一批主题令牌。 */
body.ucl-chrome {
  --panel: var(--cs06-card);
  --panel2: var(--cs06-card-2);
  --line: var(--cs06-line-2);
  --ink: var(--cs06-ink-title);
  --sub: var(--cs06-ink-2);
  --faint: var(--cs06-muted);
  --cyan: rgb(var(--accent-rgb));
  --gold: var(--cs06-gold, #fbbf24);
  --green: var(--cs06-ok, #34d399);
}

/* 卡片网格：桌面两列，≤960 单列 */
.fix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.fix {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  color: inherit;
  text-decoration: none;
  transition: .2s;
}
.fix:hover { transform: translateY(-2px); border-color: var(--cs06-accent-ring); }

/* 左：时间块 */
.fix .when { flex: 0 0 64px; text-align: center; border-right: 1px dashed var(--line); padding-right: 14px; }
.fix .when b { display: block; font-size: 15px; font-weight: 800; }
.fix .when span { font-size: 10px; color: var(--faint); }

/* 中：主队 — 比分/VS — 客队 */
.fix .du { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-width: 0; }
.fix .t { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; min-width: 0; }
.fix .t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fix .t img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.fix .t.away { justify-content: flex-end; text-align: right; }

/* 队徽缺图时的首字兜底（和首页同一个长相） */
.fix .t .tinit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--panel2);
  color: var(--sub);
  font-size: 11px;
  font-weight: 800;
}

/* 比分：未开赛就是 VS */
.fix .sc {
  font-weight: 900;
  font-size: 16px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 10px;
  padding: 6px 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.fix .sc.live { color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cs06-accent-ring); }

/* 右：状态胶囊 */
.fix .state { flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.fix .state.playing { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.fix .state.soon { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.fix .state.done { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--faint); }

/* 没数据时的空卡（首页赛程区 / 列表页共用） */
.fix-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  font-size: 13px;
  color: var(--faint);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 16px;
}

@media (max-width: 960px) {
  .fix-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fix { padding: 14px 16px; gap: 12px; }
  .fix .when { flex: 0 0 56px; padding-right: 10px; }
  .fix .when b { font-size: 14px; }
  .fix .t { font-size: 13px; gap: 7px; }
  .fix .t img,
  .fix .t .tinit { width: 22px; height: 22px; }
  .fix .sc { font-size: 14px; padding: 5px 10px; }
  .fix .state { font-size: 10px; padding: 4px 9px; }
}
