@charset "utf-8";
/* ============================================================================
   a5.css —— 只属于 a5 这套前台的差异样式

   用途：a5（从 a4 复制而来）跟原来的 Cms.Front 要有肉眼可见的区别，但**不改公共样式**
   （app.css 是 web/front 用 tailwind 构建的，改了会连带影响原前台）。

   目前动两处：
     · 页头导航：桌面 / 平板更「松」（间距大）+ 更「大」（字号、内边距）；
       手机收小一点，一行能多放几个，不挤成两行
     · 页头导航扁平一行（2026-10-23 起不再用二级下拉）+ 右侧「正在直播」入口
     · 全站背景图（site_settings.background_image）：原图原样显示，不再压淡

   加载位置：_Head.cshtml 末尾（在 app.css 和皮肤 css 之后），
   所以这里靠同名选择器就能覆盖 .ui-pill 的默认值，不需要 !important。
   ============================================================================ */

/* ---- 手机（< 640px）：菜单收小、间距紧凑 ----
   2026-10-23 起导航是扁平一行（首页 / 足球直播 / 足球资讯 / 篮球直播 / 篮球资讯 + 直播入口），
   窄屏放不下时**不换行**，整行横向滑动，滚动条隐藏 —— 视觉上始终是一行。 */
.site-header nav {
  gap: 0.125rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header nav::-webkit-scrollbar {
  display: none;
}

.site-header nav .ui-pill {
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;         /* 12px：比默认 13px 再小一号 */
  line-height: 1.4;
}

/* ---- 手机（< 640px）：菜单只留 5 项，一行放得下 —— 不用横滑，也不折行 ----
   6 项（含「正在直播」）平铺要 380px 左右，390 的手机去掉左右 padding 只剩 358px，
   每屏都差一截，必须往右滑才看得见最后一项。折成两行又太碎。
   所以「正在直播」在 _Nav.cshtml 里挪出了 <nav>，跟站名挤同一行靠右（见下面的 .a5-nav-live），
   菜单这边少一项，一行正好，页头高度不变。 */
@media (max-width: 639px) {
  /* 特异性要压过下面 .nav-live-pill 的 margin-left: 0.6rem（那条在文件更后面） */
  .site-header .a5-nav-live {
    margin-left: auto;        /* 贴到站名那一行的最右 */
  }
}

/* ---- 平板（≥ 640px）：正常大小，tab 之间留一点呼吸 ---- */
@media (min-width: 640px) {
  .site-header nav {
    gap: 0.375rem;
  }

  .site-header nav .ui-pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.9375rem;     /* 15px */
  }

  /* 直播入口在 DOM 里排在菜单前面（手机要跟站名同行），这里靠 order 转回菜单右边，
     视觉顺序仍是「站名 | 菜单 | 正在直播」 */
  .site-header nav {
    order: 2;
  }

  .a5-nav-live {
    order: 3;
    margin-left: 0.6rem;
  }
}

/* ---- 桌面（≥ 1024px）：菜单紧挨站名、用一条竖线和 logo 分开 ----
   原来是 margin-left:auto 顶到最右，和右侧直播入口之间空出一大片，
   看着像「菜单掉在中间」。现在菜单跟着站名走，右边留给直播入口。 */
@media (min-width: 1024px) {
  .site-header nav {
    /* 不撑满：菜单跟着站名走，「正在直播」紧跟最后一个菜单，中间不留大片空白 */
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--header-line, rgb(255 255 255 / 0.12));
  }

  .site-header nav .ui-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.9375rem;
  }
}

/* ============================================================================
   页头导航：二级下拉（2026-10-23 上午做，当天下午已停用）

   ⚠️ 现状：`_Nav.cshtml` 已改回**扁平一行**，不再输出 <details>，下面这段
   .nav-group-* 规则目前没有任何元素命中。留着是因为分组数据（Model.NavGroups）
   和 ViewModels 的 NavGrouping 都还在，想恢复下拉时把模板换回去就有效。

   结构（旧）：
     <details class="nav-group">
       <summary class="ui-pill nav-group-toggle">足球 ▾</summary>
       <div class="nav-group-panel"><a class="nav-group-link">足球直播</a>…</div>
     </details>
   ============================================================================ */

/* 面板要靠它定位 */
.nav-group {
  position: relative;
}

/* summary 自带三角和 list 语义，这里全收掉 —— 外观交给 .ui-pill，跟其它菜单长得一样 */
.nav-group > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

/* 三角：用边框画，颜色走 currentColor —— 深色页头（默认皮肤）上也是白的 */
.nav-group-caret {
  width: 0;
  height: 0;
  flex: none;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.nav-group[open] .nav-group-caret {
  transform: rotate(180deg);
}

/* ---- 选中态：淡底 + 底部一条强调色短线 ----
   a4 用的是实心强调色胶囊，放在深色页头上是一大块橙色；a5 这边还有个「正在直播」入口，
   两个橙色按钮并排会分不清哪个是当前页。所以改成 tab 的写法：底色只比 hover 深一点，
   真正的强调留给底下那 16px 的小横线。 */
.site-header nav .ui-pill-on,
.site-header nav .ui-pill-on:hover {
  position: relative;
  background: var(--header-hover, rgb(255 255 255 / 0.12));
  color: var(--header-ink, #0f172a);
}

.site-header nav .ui-pill-on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 2px;
  background: rgb(var(--accent-rgb));
}

/* 展开中的分组也用同一层淡底：让「被点开的那个」有落点 */
.site-header nav .nav-group[open] > summary {
  background: var(--header-hover, rgb(255 255 255 / 0.12));
  color: var(--header-ink, #0f172a);
}

/*
 * 面板：白底小卡片。
 * ⚠️ 这里**不给 display** —— 收起时由 details 的原生规则隐藏；
 *    写了 display:flex 会把收起的面板也显示出来（作者样式盖过浏览器默认值）。
 */
.nav-group-panel {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 30;
  min-width: 132px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  background: var(--a5-card, #fff);
  box-shadow: 0 14px 30px rgb(15 23 42 / 0.18);
}

/* 展开状态 */
.nav-group[open] > .nav-group-panel {
  display: flex;
}

/* 面板上方 8px 的透明过渡带：鼠标从胶囊移进面板时不会「掉出去」把下拉关掉 */
.nav-group-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

/* 桌面有 hover：移上去就展开（点击仍然有效，键盘 Tab 进来也算展开） */
@media (hover: hover) and (min-width: 640px) {
  .nav-group:hover > .nav-group-panel {
    display: flex;
  }
}

.nav-group-link {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--a5-ink-2, #334155);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-group-link:hover {
  background: var(--a5-card-2, #f1f5f9);
  color: var(--a5-ink-title, #0f172a);
}

/* 当前所在栏目：跟胶囊选中态一个语言（用皮肤强调色的淡底） */
.nav-group-link-on,
.nav-group-link-on:hover {
  background: rgb(var(--accent-rgb) / 0.12);
  color: var(--a5-ink-title, #0f172a);
  font-weight: 600;
}

/* ---- 右侧「正在直播」入口 ----
   用强调色的**描边**而不是实底：和当前页胶囊（也是强调色）拉开层次，
   深色页头上是一圈橙色边框 + 一个呼吸的小圆点，像控制台的 LIVE 按钮。 */
.nav-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0.6rem;       /* 紧跟最后一个菜单，不顶到最右 */
  padding: 0.28rem 0.65rem;
  border: 1px solid rgb(var(--accent-rgb) / 0.5);
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--header-ink, #0f172a);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-live-pill:hover {
  border-color: transparent;
  background: rgb(var(--accent-rgb));
  color: var(--a5-on-accent, #fff);
}

.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
  animation: a5-live-pulse 1.8s ease-in-out infinite;
}

.nav-live-pill:hover .nav-live-dot {
  background: currentColor;
}

@keyframes a5-live-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-live-dot { animation: none; }
}

@media (min-width: 640px) {
  .nav-live-pill {
    padding: 0.38rem 0.85rem;
    font-size: 0.8125rem;
  }
}

/* ============================================================================
   左栏底部「数据速览」（2026-10-23）

   纯静态演示卡：足球 / 篮球各 4 条指标 + 一条进度条，不读库。
   位置固定在左栏最末，作用是补足左栏高度（文章少的站左栏会短一截）。

   条宽用内联 style 写死百分比，见 Pages/Index.cshtml 里的 <i style="width:..%">。
   ============================================================================ */
.a5-mini-group {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0.85rem 0 0.15rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--a5-muted, #64748b);
}

.a5-mini-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
}

.a5-mini-dot-bb {
  background: var(--a5-accent-alt, #6366f1);   /* 篮球用第二品牌色，跟足球的强调色区分开 */
}

.a5-mini-row {
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--a5-line, #eef2f7);
}

.a5-mini-row:last-child {
  border-bottom: 0;
}

.a5-mini-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.a5-mini-label {
  font-size: 11.5px;
  color: var(--a5-muted, #64748b);
}

.a5-mini-val {
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--a5-ink-title, #0f172a);
}

.a5-mini-unit {
  margin-left: 1px;
  font-size: 10px;
  font-weight: 600;
  color: var(--a5-dim, #94a3b8);
}

/* 进度条：始终是 3px 的细条，条内百分比 = 该项的相对高低 */
.a5-mini-track {
  display: block;
  height: 3px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--a5-line, #eef2f7);
  overflow: hidden;
}

.a5-mini-track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
}

.a5-mini-track.is-bb > i {
  background: var(--a5-accent-alt, #6366f1);
}

/* ============================================================================
   队徽（2026-10-23）

   比赛卡、赛程行、比赛详情三处共用一套结构：

     <span class="a5-team-logo a5-team-logo-sm">
       <span>首字</span>                       ← 兜底层，永远在
       <img src="…" onerror="this.remove()">  ← 图叠在上面，加载失败就自己消失
     </span>

   为什么不直接 @if (有图) 二选一：采集源给的图常是外链，挂了 / 403 /
   慢得离谱都很常见，二选一的结果就是页面上一排破图。叠层法最坏情况
   只是「显示首字」，和没图时长得一样。

   尺寸走 --a5-logo 变量，三档：sm 18 / md 36 / lg 56。
   ============================================================================ */
.a5-team-logo {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--a5-logo, 18px);
  height: var(--a5-logo, 18px);
  overflow: hidden;
  border-radius: 999px;
  background: var(--a5-soft, #f1f5f9);
  color: var(--a5-muted, #64748b);
  font-size: calc(var(--a5-logo, 18px) * 0.46);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  user-select: none;
}

.a5-team-logo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.a5-team-logo-sm { --a5-logo: 18px; }
.a5-team-logo-md { --a5-logo: 36px; }
.a5-team-logo-lg { --a5-logo: 56px; }

/* 球衣颜色偏白的队徽（皇马、尤文这类）在浅色底上会糊掉，垫一层极淡的描边 */
.a5-team-logo {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a5-line-3, #cbd5e1) 55%, transparent);
}

/* ============================================================================
   全站背景图

   app.css 里 body::before 把这层压到 opacity: .16（公共样式，两个前台共用），
   视觉上几乎看不见。a5 这边要求「后台设了什么就显示什么」，所以这里覆盖回 1。
   只改透明度，其余保持公共样式的行为：fixed 铺满、cover 居中裁切、z-index:-1
   垫在内容下面。深色主题各自会把透明度压低（见下面每个主题块），
   否则整页被照片冲淡，就不是那个配色了。
   ============================================================================ */
body::before {
  opacity: 1;
}

/* ============================================================================
   主题系统（2026-10-29 校准：改用 A4 参考站的 7 套皮肤）

   配色本体不在本文件 —— 在 **app.css**（Tailwind 从 web/front/input.css 编译）：

     :root, [data-theme='sports-orange'] { --accent-rgb / --page-bg / --header-bg … }
     [data-theme='pure-white'] / [data-theme='dark-arena'] / [data-theme='clean-blue']
     [data-theme='festival-red'] / [data-theme='pitch-green'] / [data-theme='minimal-slate']

   后台「站点设置 → 主题设置」选的 theme_key，由 layout_top.php 原样输出成
   <body data-theme="…">，所以七套皮肤的色值和参考站逐字节一致，不在这里重抄一遍。
   加一套皮肤 = input.css 加一个令牌块 + 重新构建 app.css + helpers.php 的 front_themes() 补一项。

   本文件只补三样 app.css 没定义、而 a5 版式需要的东西：

     ① 浅色基线令牌 `body[data-theme] { --a5-card / --a5-ink-* / --a5-line-* … }`
        命名对齐 Tailwind 的 slate 阶梯，模板里的 text-slate-900 / bg-white
        经映射层（③）挂到这些令牌上。七套皮肤都是浅色页面（深色只体现在页头），
        所以基线一套就够，各套不再重复声明卡片和文字色。

     ② 每套的「补丁」：强调色当**正文色**用时要压深（橙/琥珀/绿原色压白底不够 4.5:1）、
        琥珀实心块要换深字、篮球第二品牌色、页面顶部氛围光的色相。

     ③ 映射层 + 装饰层，只写一遍，七套自动都有。

   ⚠️ 这里不要重新声明 --accent-rgb / --page-bg / --header-*：
      app.css 的 [data-theme] 块（特异性 0,1,0）会被 body[data-theme='x']（0,1,1）盖掉，
      重抄一遍就等于又脱离了参考站。
   ============================================================================ */

/* ---------------------------------------------------------------------------
   ① 浅色基线令牌
   ink-title 900 / ink 800 / ink-2 700 / muted 600·500 / dim 400 / dim-2 300
   --------------------------------------------------------------------------- */
body[data-theme] {
  --a5-card: #ffffff;            /* 卡片底（= bg-white） */
  --a5-card-2: #f8fafc;          /* 次级块：斑马纹、hover 底（= bg-slate-50） */
  --a5-soft: #f1f5f9;            /* 再深一层：表头、序号块（= bg-slate-100） */

  --a5-line: #f1f5f9;            /* 细线（= border-slate-100） */
  --a5-line-2: #e2e8f0;          /* 常规线（= border-slate-200） */
  --a5-line-3: #cbd5e1;          /* 强线 / hover 线（= border-slate-300） */

  --a5-ink-title: #0f172a;       /* 标题、比分（= text-slate-900） */
  --a5-ink: #1e293b;             /* 强调正文（= text-slate-800） */
  --a5-ink-2: #334155;           /* 正文（= text-slate-700） */
  --a5-muted: #64748b;           /* 次要（= text-slate-500/600） */
  --a5-dim: #94a3b8;             /* 说明、日期（= text-slate-400） */
  --a5-dim-2: #cbd5e1;           /* 装饰（= text-slate-300） */

  --a5-on-accent: #ffffff;       /* 强调色实心块上的字色 */
  --a5-accent-alt: #6366f1;      /* 篮球用的第二品牌色（与足球强调色区分） */

  /* —— 直播红 ——
     「正在直播」不跟主题强调色走：强调色说明「哪个站」，看不出「哪场在打」。
     七套皮肤都是浅色页面，红压 #c81e2b（白字 5.7:1）即可。 */
  --a5-hot-rgb: 200 30 44;
  --a5-hot-2-rgb: 163 18 31;     /* 渐变落点，比主红深一档 */
  --a5-on-hot: #ffffff;          /* 红底上的字色，恒为白 */
  --a5-hot-soft: color-mix(in srgb, rgb(var(--a5-hot-rgb)) 14%, transparent);
  --a5-hot-ring: color-mix(in srgb, rgb(var(--a5-hot-rgb)) 34%, transparent);
  --a5-hot-wash: color-mix(in srgb, rgb(var(--a5-hot-rgb)) 7%, transparent);
  --a5-hot-text: #c81e2b;        /* 红「字」：浅底上要压深才够 4.5:1 */
  --a5-accent-ink: rgb(var(--accent-rgb));  /* 强调色的「文字版」：各套在 ② 里按需压深 */
  --a5-scroll: #cbd5e1;          /* 细滚动条 */
  --a5-ring: rgb(15 23 42 / 0.08);
  --a5-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 10px 26px rgb(15 23 42 / 0.06);
  --a5-hero-shade: linear-gradient(to top, rgb(0 0 0 / 0.68) 0%, rgb(0 0 0 / 0.28) 55%, transparent 100%);

  /* —— 装饰层用的派生令牌（跟着 --accent-rgb 自动走） —— */
  --a5-glow: rgb(15 40 70 / 0.055);                                   /* 页面顶部氛围光 */
  --a5-page-glow: radial-gradient(1180px 520px at 50% -12%, var(--a5-glow) 0%, transparent 72%);
  --a5-accent-soft: color-mix(in srgb, rgb(var(--accent-rgb)) 10%, transparent);
  --a5-accent-ring: color-mix(in srgb, rgb(var(--accent-rgb)) 26%, transparent);
  --a5-card-sheen: none;                                             /* 浅色主题不需要卡片顶光 */
  --a5-header-shadow: 0 8px 22px -18px rgb(15 23 42 / 0.5);
}

/* ---------------------------------------------------------------------------
   ② 七套皮肤的补丁（只补 app.css 缺的对比度/派生值）

   A4 的皮肤只声明「强调色 / 页面底 / 页头」，文字一律是 slate 阶梯，
   所以这里不用逐套写卡片和正文色。要补的是「强调色当字用」的对比度：
     · sports-orange #f97316 压白底 2.9:1 → 文字版压到 #c2410c (4.9:1)
     · dark-arena    #fbbf24 压白底 1.8:1 → #b45309 (4.6:1)，且实心块换深字
     · pitch-green   #059669 压白底 3.4:1 → #047857 (4.4:1)
   其余四套原色就够（蓝 4.9 / 红 4.5 / 灰蓝 7.5 / 近黑 16）。
   --------------------------------------------------------------------------- */

/* 2.1 竞技橙（默认）—— 深夜蓝渐变页头 + 橙强调 */
body[data-theme='sports-orange'] {
  --a5-accent-ink: #c2410c;
  --a5-accent-alt: #0ea5e9;
  --a5-glow: rgb(249 115 22 / 0.055);
}

/* 2.2 素白 —— 纯白页头 + 近黑强调，最干净 */
body[data-theme='pure-white'] {
  --a5-accent-ink: #0f172a;
  --a5-accent-alt: #64748b;
  --a5-glow: rgb(15 23 42 / 0.035);
}

/* 2.3 深色竞技 —— 近黑页头 + 琥珀强调（页面仍是浅色，只有页头深） */
body[data-theme='dark-arena'] {
  --a5-accent-ink: #b45309;
  --a5-on-accent: #1c1405;       /* 琥珀实心块上用深字，白字只有 1.8:1 */
  --a5-accent-alt: #0891b2;
  --a5-glow: rgb(251 191 36 / 0.07);
}

/* 2.4 清爽蓝 —— 深蓝→天蓝渐变页头 */
body[data-theme='clean-blue'] {
  --a5-accent-ink: #1d4ed8;
  --a5-accent-alt: #0891b2;
  --a5-glow: rgb(37 99 235 / 0.06);
}

/* 2.5 节日红 —— 酒红→玫红渐变页头 */
body[data-theme='festival-red'] {
  --a5-accent-ink: #b91c1c;
  --a5-accent-alt: #d97706;
  --a5-glow: rgb(220 38 38 / 0.055);
}

/* 2.6 绿茵场 —— 墨绿→草绿渐变页头 */
body[data-theme='pitch-green'] {
  --a5-accent-ink: #047857;
  --a5-accent-alt: #0284c7;
  --a5-glow: rgb(5 150 105 / 0.055);
}

/* 2.7 简约灰 —— 石板灰渐变页头 + 天蓝点缀 */
body[data-theme='minimal-slate'] {
  --a5-accent-ink: #334155;
  --a5-accent-alt: #0284c7;
  --a5-glow: rgb(71 85 105 / 0.05);
}


/* ============================================================================
   ③ 映射层（所有主题共用，只写一遍）

   特异性说明：`body[data-theme] .xxx` = (0,2,1)，本来就高于单个 Tailwind
   工具类 (0,1,0)，所以靠特异性赢，全篇不用 !important —— 以后想调不会打架。

   hover 变体要单独补：上面那些规则会连同 :hover 一起盖掉（.text-slate-900
   优先级高于 .hover\:text-slate-900:hover），所以下面把用到的 hover 也映射一遍。
   ============================================================================ */

/* ---------------- 组件类：app.css 里写死的浅色底 ---------------- */

body[data-theme] .ui-card {
  background: var(--a5-card);
  border-color: var(--a5-line-2);
  box-shadow: var(--a5-shadow);
}

body[data-theme] .ui-chip {
  background: var(--a5-card);
  border-color: var(--a5-line-2);
  color: var(--a5-ink-2);
}

body[data-theme] .ui-chip:hover {
  border-color: var(--a5-line-3);
  color: var(--a5-ink-title);
}

/* 选中的筛选胶囊：强调色实底 + on-accent 字色（深色主题是深字，浅色是白字） */
body[data-theme] .ui-chip-on,
body[data-theme] .ui-chip-on:hover {
  background: rgb(var(--accent-rgb));
  border-color: transparent;
  color: var(--a5-on-accent);
}

/* 状态徽标（进行中 / 即将开始 / 已结束）都是强调色系的实底 */
body[data-theme] .ui-badge {
  color: var(--a5-on-accent);
}

/* 实心强调色块（日期卡、栏目标题条）里的白字：跟着 on-accent 走 */
body[data-theme] .bg-live,
body[data-theme] .bg-upcoming,
body[data-theme] .bg-finished {
  color: var(--a5-on-accent);
}

body[data-theme] .bg-live .text-white\/80,
body[data-theme] .bg-upcoming .text-white\/80,
body[data-theme] .bg-finished .text-white\/80 {
  color: color-mix(in srgb, var(--a5-on-accent) 72%, transparent);
}

/* 文章正文：富文本里写死 slate-700 正文 + slate-900 标题 + slate-200 边框 */
body[data-theme] .ui-article {
  color: var(--a5-ink-2);
}

body[data-theme] .ui-article h1,
body[data-theme] .ui-article h2,
body[data-theme] .ui-article h3 {
  color: var(--a5-ink-title);
}

body[data-theme] .ui-article blockquote {
  color: var(--a5-muted);
  border-color: color-mix(in srgb, rgb(var(--accent-rgb)) 55%, transparent);
}

body[data-theme] .ui-article th,
body[data-theme] .ui-article td {
  border-color: var(--a5-line-2);
}

body[data-theme] .ui-article th {
  background: var(--a5-card-2);
  color: var(--a5-ink-title);
}

body[data-theme] .ui-article hr {
  border-color: var(--a5-line-2);
}

/* 页头二级下拉（当前导航是扁平一行，这段留给以后恢复分组用） */
body[data-theme] .nav-group-panel {
  background: var(--a5-card);
  border-color: var(--a5-line-2);
  box-shadow: 0 16px 34px rgb(0 0 0 / 0.22);
}

body[data-theme] .nav-group-link {
  color: var(--a5-ink-2);
}

body[data-theme] .nav-group-link:hover {
  background: var(--a5-card-2);
  color: var(--a5-ink-title);
}

body[data-theme] .nav-group-link-on,
body[data-theme] .nav-group-link-on:hover {
  background: color-mix(in srgb, rgb(var(--accent-rgb)) 14%, transparent);
  color: var(--a5-ink-title);
}

/* ---------------- 模板里写死的 Tailwind 浅色工具类 ---------------- */

body[data-theme] .text-slate-900 { color: var(--a5-ink-title); }
body[data-theme] .text-slate-800 { color: var(--a5-ink); }
body[data-theme] .text-slate-700 { color: var(--a5-ink-2); }
body[data-theme] .text-slate-600,
body[data-theme] .text-slate-500 { color: var(--a5-muted); }
body[data-theme] .text-slate-400 { color: var(--a5-dim); }
body[data-theme] .text-slate-300 { color: var(--a5-dim-2); }

body[data-theme] .bg-white { background-color: var(--a5-card); }
body[data-theme] .bg-slate-50 { background-color: var(--a5-card-2); }
body[data-theme] .bg-slate-100 { background-color: var(--a5-soft); }
body[data-theme] .bg-slate-200 { background-color: var(--a5-line-2); }
body[data-theme] .bg-slate-300 { background-color: var(--a5-line-3); }

body[data-theme] .border-slate-100 { border-color: var(--a5-line); }
body[data-theme] .border-slate-200 { border-color: var(--a5-line-2); }
body[data-theme] .border-slate-300 { border-color: var(--a5-line-3); }

body[data-theme] .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
body[data-theme] .divide-y > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--a5-line);
}

body[data-theme] .ring-slate-200 { --tw-ring-color: var(--a5-ring); }
body[data-theme] .ring-slate-900 { --tw-ring-color: color-mix(in srgb, var(--a5-ink-title) 16%, transparent); }

body[data-theme] .hover\:text-slate-900:hover { color: var(--a5-ink-title); }
body[data-theme] .hover\:bg-slate-50:hover { background-color: var(--a5-card-2); }
body[data-theme] .hover\:bg-slate-200:hover { background-color: var(--a5-soft); }
body[data-theme] .hover\:border-slate-300:hover { border-color: var(--a5-line-3); }

/* ============================================================================
   ④ 装饰层（所有主题共用）

   只换颜色的话页面会「一片平」：一排一模一样的白卡片、一个死白的页头。
   这一段统一加质感，全部由令牌驱动 —— 换主题时自动跟着变色，不用逐套调。
   ============================================================================ */

/* ---- 4.1 页面顶部一层「氛围光」 ----
   不是纯色底，从上往下淡出，页面有纵深；深色主题像看台上打的一束灯。
   形状走 --a5-page-glow，深色三套各自换光斑，辨识度不全压在色相上。 */
body[data-theme] {
  background-image: var(--a5-page-glow);
  background-repeat: no-repeat;
}

/* ---- 4.2 页头：底部一条渐隐的强调色细线 + 一层软投影 ----
   细线两端淡出，中间最亮，比一条实线更「贵」；投影把吸顶页头和内容分开。 */
body[data-theme] .site-header {
  box-shadow: var(--a5-header-shadow, 0 8px 22px -18px rgb(15 23 42 / 0.5));
}

body[data-theme] .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--a5-accent-ring) 16%,
    rgb(var(--accent-rgb)) 50%,
    var(--a5-accent-ring) 84%,
    transparent 100%);
  opacity: 0.6;
}

/* ---- 4.3 栏目标题前的色条：竖条渐变 + 一圈微光 ----
   （模板里原来写的是 span.h-4.w-1.bg-live，已统一换成 .a5-sec-bar） */
body[data-theme] .a5-sec-bar {
  display: block;
  width: 4px;
  height: 17px;
  flex: none;
  border-radius: 3px;
  background-image: linear-gradient(180deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
  box-shadow: 0 0 12px var(--a5-accent-ring);
}

/* ---- 4.4 左栏小标题：小方点 → 竖条（和右栏标题一个语言，只是更小一号） ---- */
body[data-theme] .a5-side-head::before {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: rgb(var(--accent-rgb));
  background-image: linear-gradient(180deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
  box-shadow: 0 0 10px var(--a5-accent-ring);
}

/* ---- 4.5 卡片：深色主题顶部一道微光（卡片不再是「一块平的深灰」） ---- */
body[data-theme] .ui-card {
  background-image: var(--a5-card-sheen, none);
}

/* 可点的卡片（直播卡）：hover 时描边泛出强调色 */
body[data-theme] a.ui-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body[data-theme] a.ui-card:hover {
  border-color: var(--a5-accent-ring);
  box-shadow: var(--a5-shadow), 0 0 0 3px var(--a5-accent-soft);
}

/* ---- 4.6 直播卡：右上角一层强调色微光，hover 淡入 ---- */
body[data-theme] .a5-match-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body[data-theme] .a5-match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: radial-gradient(160px 120px at 100% 0%, var(--a5-accent-soft) 0%, transparent 72%);
}

body[data-theme] .a5-match-card:hover::before {
  opacity: 1;
}

/* ---- 4.7 「正在直播」= 红系（2026-10-23）----

   在这一版之前，直播徽标跟强调色走：夜场绿 → 绿、深蓝金 → 金。
   问题是强调色是「品牌色」，满屏徽标同色，看不出哪几场在打。
   现在直播单独抽成红系令牌（--a5-hot-*），不管切哪套配色都是同一颗红，
   同一个「在打」的信号，而且比强调色更饱和、带光晕，一眼能挑出来。

   覆盖面：徽标本身 / 直播卡（顶部红细线 + 淡红光）/ 赛程行（淡红底 + 左侧红竖条）/
   筛选胶囊选中态 / 「进行中 N 场」的计数 / 页头直播入口的小圆点。
   -------------------------------------------------------------------------- */

/* 4.7.1 徽标：红实底白字 + 外圈柔光，字重加粗（小字号要够硬才看得清） */
body[data-theme] .ui-badge.bg-live {
  background-color: rgb(var(--a5-hot-rgb));
  background-image: linear-gradient(135deg,
    rgb(var(--a5-hot-rgb)) 0%,
    rgb(var(--a5-hot-2-rgb, var(--a5-hot-rgb))) 100%);
  color: var(--a5-on-hot);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 3px var(--a5-hot-soft),
    0 5px 14px -5px var(--a5-hot-ring);
}

/* 4.7.1b 另外两档状态一起「降级」：即将开始 / 已结束不再用实心强调色。
   原因：强调色是品牌色，一屏实心块全是它，红就淹了；而且「白色西瓜红」
   那套的强调色本身就是红，实心块会和直播红直接撞车。
   现在全站的实心彩色块只剩「正在直播」一种，语义唯一。 */
body[data-theme] .ui-badge.bg-upcoming {
  background-color: transparent;
  background-image: none;
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
  font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a5-accent-ink, rgb(var(--accent-rgb))) 48%, transparent);
}

body[data-theme] .ui-badge.bg-finished {
  background-color: var(--a5-soft);
  background-image: none;
  color: var(--a5-muted);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--a5-line-2);
}

/* 徽标里的闪烁小点：同色系更亮一档，脉冲时像在「喘气」 */
body[data-theme] .ui-badge.bg-live > .animate-pulse {
  background-color: var(--a5-on-hot);
  box-shadow: 0 0 6px rgb(255 255 255 / 0.75);
}

/* 4.7.2 直播卡：描边转红 + 顶边一道红细线 + 顶部淡红光
   非直播卡完全不动，所以「在打的那几张」是整片网格里唯一暖色的 */
body[data-theme] .a5-match-card:has(.bg-live) {
  border-color: color-mix(in srgb, rgb(var(--a5-hot-rgb)) 46%, var(--a5-line-2));
  background-image: linear-gradient(180deg,
    var(--a5-hot-wash) 0%,
    transparent 46%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, rgb(var(--a5-hot-rgb)) 14%, transparent),
    0 12px 26px -20px var(--a5-hot-ring);
}

body[data-theme] .a5-match-card:has(.bg-live)::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  pointer-events: none;
  background-image: linear-gradient(90deg,
    transparent 0%,
    rgb(var(--a5-hot-rgb)) 22%,
    rgb(var(--a5-hot-2-rgb, var(--a5-hot-rgb))) 78%,
    transparent 100%);
  opacity: 0.9;
}

/* 直播卡 hover 时，原来那层 accent 微光换成红光 */
body[data-theme] .a5-match-card:has(.bg-live)::before {
  background: radial-gradient(170px 130px at 100% 0%,
    var(--a5-hot-soft) 0%, transparent 72%);
}

/* 4.7.3 赛程行：淡红底 + 左侧红竖条常亮（不用 hover 才出现） */
body[data-theme] .a5-row:has(.bg-live) {
  /* 比卡片顶光再淡一档：整列都是直播行时（筛选了 live），
     7% 叠起来会变成一条粉带，5% 刚好只留一点暖意 */
  background: color-mix(in srgb, rgb(var(--a5-hot-rgb)) 5%, transparent);
}

body[data-theme] .a5-row:has(.bg-live)::before {
  opacity: 1;
  width: 3px;
  background-image: linear-gradient(180deg,
    rgb(var(--a5-hot-rgb)) 0%,
    rgb(var(--a5-hot-2-rgb, var(--a5-hot-rgb))) 100%);
}

/* 4.7.4 筛选胶囊「正在直播」选中态见文件末尾 ⑥（红要压过主题强调色，必须放最后） */

/* 4.7.5 「进行中 N 场」的计数：红字 + 加粗，数字单独跳出来 */
body[data-theme] .a5-count-hot {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--a5-hot-text, rgb(var(--a5-hot-rgb)));
}

/* 4.7.6 页头「正在直播」入口的小圆点：语义就是直播，一并转红 */
.nav-live-dot {
  background-color: rgb(var(--a5-hot-rgb, 200 30 44));
  box-shadow: 0 0 0 3px var(--a5-hot-soft, rgb(200 30 44 / 0.14));
}

/* ---- 4.8 实心强调块统一走 accent → accent-2 渐变 ----
   选中胶囊 / 榜单前三序号 / 数据速览进度条 / 回到顶部，四个地方一个语言。 */
body[data-theme] .ui-chip-on,
body[data-theme] .ui-chip-on:hover {
  background-image: linear-gradient(135deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
  box-shadow: 0 4px 14px -6px var(--a5-accent-ring);
}

body[data-theme] .a5-num-top {
  background-image: linear-gradient(135deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
  box-shadow: 0 3px 10px -4px var(--a5-accent-ring);
}

body[data-theme] .a5-mini-track > i {
  background-image: linear-gradient(90deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
}

body[data-theme] .to-top {
  background-image: linear-gradient(135deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
  color: var(--a5-on-accent);
  box-shadow: 0 10px 24px -10px var(--a5-accent-ring);
}

/* ---- 4.9 页头 tab：选中态的短线也走渐变 ---- */
body[data-theme] .site-header nav .ui-pill-on::after {
  width: 20px;
  margin-left: -10px;
  background: rgb(var(--accent-rgb));
  background-image: linear-gradient(90deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
  box-shadow: 0 0 10px var(--a5-accent-ring);
}

/* ---- 4.10 赛程行：hover 时左侧起一条强调色竖线 ---- */
body[data-theme] .a5-row {
  position: relative;
}

body[data-theme] .a5-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  background-image: linear-gradient(180deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 100%);
}

body[data-theme] .a5-row:hover::before {
  opacity: 1;
}

/* ---- 4.11 轮播：外圈一层强调色的柔光，不再是硬边贴图 ---- */
body[data-theme] [data-banner] {
  box-shadow: 0 20px 44px -30px color-mix(in srgb, rgb(var(--accent-rgb)) 60%, #000);
}

/* ============================================================================
   ⑥ 直播红收口（2026-10-23）

   装饰层 4.8 会把实心强调块统一涂成 accent→accent-2 渐变，`.ui-chip-on /
   .a5-sec-bar` 这类选中态也在其中。但直播的语义是「正在打」，不该跟着主题走：
   七套皮肤里强调色各不相同（橙/蓝/红/绿/灰），只有红能一眼表示「在打」。
   所以这一段的规则必须排在装饰层之后 —— 同特异性靠顺序赢。
   ============================================================================ */

/* 6.1 筛选胶囊「正在直播」选中：红实底，不是主题强调色 */
body[data-theme] .ui-chip-live,
body[data-theme] .ui-chip-live:hover {
  background-color: rgb(var(--a5-hot-rgb));
  background-image: linear-gradient(135deg,
    rgb(var(--a5-hot-rgb)) 0%,
    rgb(var(--a5-hot-2-rgb, var(--a5-hot-rgb))) 100%);
  border-color: transparent;
  color: var(--a5-on-hot);
  font-weight: 600;
  box-shadow: 0 4px 14px -6px var(--a5-hot-ring);
}

/* 6.2 「精彩直播」这一块的标题条走红：和下面那排红卡呼应，
   同一个屏里「红 = 有比赛在打」，不用读字就知道 */
body[data-theme] .a5-sec-bar-hot {
  background-image: linear-gradient(180deg,
    rgb(var(--a5-hot-rgb)) 0%,
    rgb(var(--a5-hot-2-rgb, var(--a5-hot-rgb))) 100%);
  box-shadow: 0 0 12px var(--a5-hot-ring);
}

/* ============================================================================
   详情页侧栏：赛事（2026-10-25）

   右栏「相关阅读」下面补的赛事列表，把侧栏垫满。
   侧栏只有 300px，塞不下列表页那种四列的对阵行，所以每场拆成：
   「联赛 + 时间」一条，上下两行队名各带自己的比分 —— 再窄也不会把队名挤没。
   直播中的行给红点 + 红比分，其它状态保持中性色，一眼能扫出哪场正在打。
   ============================================================================ */

.a5-fx {
  display: block;
  padding: 0.5rem 0.9rem 0.6rem;
  transition: background-color 0.15s ease;
}

.a5-fx:hover {
  background: var(--a5-card-2, #f8fafc);
}

.a5-fx-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--a5-dim, #94a3b8);
}

.a5-fx-meta b {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--a5-muted, #64748b);
}

/* 只在直播中显示：一个呼吸的亮点，和首页比分带同一个语义红 */
.a5-fx-dot {
  display: none;
  width: 0.3rem;
  height: 0.3rem;
  flex: none;
  border-radius: 999px;
  background: rgb(var(--a5-hot-rgb));
}

.a5-fx.is-live .a5-fx-dot {
  display: block;
  animation: a5-fx-pulse 1.8s ease-in-out infinite;
}

@keyframes a5-fx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.a5-fx-when {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.a5-fx-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.5;
}

.a5-fx-team b {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--a5-ink, #1e293b);
  transition: color 0.15s ease;
}

.a5-fx:hover .a5-fx-team b {
  color: rgb(var(--accent-rgb));
}

.a5-fx-team i {
  flex: none;
  min-width: 1.1rem;
  text-align: right;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--a5-ink-title, #0f172a);
}

/* 未开赛没有比分：位置留着（空 i 仍有 min-width），两行队名照样对齐 */
.a5-fx.is-upcoming .a5-fx-team i {
  color: var(--a5-dim-2, #cbd5e1);
}

.a5-fx.is-finished .a5-fx-team i {
  color: var(--a5-muted, #64748b);
}

.a5-fx.is-live .a5-fx-team i {
  color: rgb(var(--a5-hot-rgb));
}

/* 卡片下面那行小字：今天几场 / 其中直播几场 */
.a5-fx-note {
  margin-top: 0.45rem;
  font-size: 0.6875rem;
  color: var(--a5-dim, #94a3b8);
}

.a5-fx-note b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--a5-muted, #64748b);
}

@media (prefers-reduced-motion: reduce) {
  .a5-fx,
  .a5-fx-team b {
    transition: none;
  }

  .a5-fx.is-live .a5-fx-dot {
    animation: none;
  }
}

/* 标题行和「全部 →」：用自有类，别为两个工具类去重建 app.css */
.a5-fx-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.35rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--a5-ink-title, #0f172a);
}

.a5-fx-more {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--a5-dim, #94a3b8);
  transition: color 0.15s ease;
}

.a5-fx-more:hover {
  color: rgb(var(--accent-rgb));
}
/* ════════════════════════════════════════════════════════════════════════════
   手机端赛程行：队名别被截成一两个字（与 a6.css 末尾同一段，改一处要同步另一处）
   ────────────────────────────────────────────────────────────────────────────
   390px 下实测：日期列 52 + 状态徽标 64，中间那格只剩 179 —— 两个队徽 2×18、
   比分 52、四个 gap 32 占掉 120，两个队名各 30px，「利物浦」直接渲染成「利…」。
   这里把日期列、比分列、字号和间距各收一档：中间那格多出 ~50px，
   3~4 个字的队名完整显示，长队名（托特纳姆热刺）仍会截断但看得到 4 个字。
   只在小屏生效，sm 以上（有联赛列、四列布局）不动。
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 639.98px) {
  .a5-row {
    grid-template-columns: 42px 1fr auto;
    gap: 0.25rem;
  }

  .a5-row > span:nth-child(3) {
    gap: 0.3rem;
  }

  .a5-row > span:nth-child(3) > b {
    font-size: 0.75rem;
  }

  .a5-row > span:nth-child(3) > span[class*="min-w-"] {
    min-width: 34px;
    font-size: 0.75rem;
  }

  .a5-row > span:last-child {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
    font-size: 0.6875rem;
  }
}

/* ---------------------------------------------------------------------------
   ⑦ 前台主题
   主题由后台「站点设置 → 前台主题」选定（site_settings.theme_key），
   可选值登记在 app/helpers.php 的 front_themes()。
   --------------------------------------------------------------------------- */

/* ════════════════════════════════════════════════════════════════════════════
   ⑧ 赛事回顾（文字版）—— 列表 /{栏目}.html + 详情 /news/{slug}.html
   （2026-10-28 新增，类名前缀统一 a5-rv-；首页板块用 a5-rvw-）

   和站里其它两个列表的区别，就是这一页存在的理由：
     · 资讯栏目页是「头条 + 紧凑列表」，按**发布时间**排；
     · 比赛列表页是「筛选 + 赛程行」，按**开球时间**排；
     · 这里按**发布日分组的时间轴**排 —— 读者想的是「昨天那场德比怎么打的」，
       日期是主索引，同一天的几场挂在同一个日期节点下。

   时间轴用「组内一条 2px 竖线 + 日期圆点」实现，不额外加 div 画线：
     .a5-rv-group::before  整组的竖线（从日期节点下方到组尾）
     .a5-rv-day::before    日期圆点，压在竖线顶端

   颜色一律走主题令牌（--a5-*）：六套主题里卡片、细线、正文色都被重定义过，
   写死 #fff / #e2e8f0 会在深色主题上露白边。
   ════════════════════════════════════════════════════════════════════════════ */

/* ---------------- 栏目头 ---------------- */
.a5-rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0.25rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--a5-line, #f1f5f9);
}

.a5-rv-head-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--a5-ink-title, #0f172a);
}

/* 标题旁的「文字版」小标：说明体裁，别让读者以为是视频集锦 */
.a5-rv-badge {
  padding: 0.1rem 0.4rem;
  border: 1px solid rgb(var(--accent-rgb) / 0.32);
  border-radius: 0.3rem;
  background: rgb(var(--accent-rgb) / 0.08);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-rv-head-sub {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--a5-dim, #94a3b8);
}

.a5-rv-head-sub span {
  font-variant-numeric: tabular-nums;
}

.a5-rv-head-dot {
  margin: 0 0.25rem;
  color: var(--a5-dim-2, #cbd5e1);
}

.a5-rv-head-desc {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--a5-muted, #64748b);
}

.a5-rv-legend {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.15rem;
  font-size: 0.6875rem;
  color: var(--a5-dim, #94a3b8);
}

.a5-rv-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(var(--accent-rgb));
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.12);
}

/* 小屏藏掉：栏目头那一行是"锦上添花"，挤掉标题就亏了 */
@media (max-width: 639.98px) {
  .a5-rv-legend {
    display: none;
  }
}

/* ---------------- 筛选（全部 / 足球 / 篮球） ---------------- */
.a5-rv-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.6rem 0 0.5rem;
  padding-bottom: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.a5-rv-tabs::-webkit-scrollbar {
  display: none;
}

.a5-rv-tab {
  flex: none;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--a5-muted, #64748b);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.a5-rv-tab:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

/* 选中态用实心强调色：筛选选中是操作状态，不是内容状态，不会和红「直播中」抢语义 */
.a5-rv-tab.is-on {
  border-color: transparent;
  background: rgb(var(--accent-rgb));
  color: var(--a5-on-accent, #fff);
}

/* ---------------- 日期分组 + 时间轴竖线 ---------------- */
.a5-rv-stream {
  margin-top: 0.25rem;
}

.a5-rv-group {
  position: relative;
  padding-left: 1.5rem;
}

.a5-rv-group + .a5-rv-group {
  margin-top: 0.35rem;
}

.a5-rv-group::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.75rem;
  bottom: 0.4rem;
  width: 2px;
  border-radius: 2px;
  background: var(--a5-line-2, #e2e8f0);
}

.a5-rv-day {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding-top: 0.15rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--a5-ink-title, #0f172a);
}

/* 圆点在竖线顶端：left 回到容器边缘（-1.5rem 正好是 group 的 padding），
   10px 直径 + 2px 描边，中心落在竖线中轴上 */
.a5-rv-day::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.42rem;
  width: 10px;
  height: 10px;
  border: 2px solid rgb(var(--accent-rgb));
  border-radius: 999px;
  background: var(--a5-card, #fff);
  box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.1);
}

.a5-rv-day-date {
  letter-spacing: -0.01em;
}

.a5-rv-day-week {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--a5-muted, #64748b);
}

.a5-rv-day-count {
  margin-left: auto;
  padding-right: 0.1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--a5-dim, #94a3b8);
}

/* ---------------- 一场回顾的卡片（整块可点） ---------------- */
.a5-rv-card {
  position: relative;
  display: block;
  padding: 0.75rem 0.9rem 0.8rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 0.9rem;
  background: var(--a5-card, #fff);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.a5-rv-card + .a5-rv-card {
  margin-top: 0.55rem;
}

.a5-rv-card:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  box-shadow: 0 18px 36px -28px rgb(15 23 42 / 0.55);
}

/* hover 时左边缘浮出 2px 强调色条：不占位、不推动内容，比整块变色轻 */
.a5-rv-card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  border-radius: 2px;
  background: rgb(var(--accent-rgb));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.a5-rv-card:hover::before {
  opacity: 1;
}

.a5-rv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.6875rem;
  color: var(--a5-dim, #94a3b8);
}

.a5-rv-league {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--a5-muted, #64748b);
}

/* 运动小标：足球用主强调色、篮球用第二强调色，一眼分得开（不靠读文字） */
.a5-rv-sport {
  flex: none;
  padding: 0.05rem 0.32rem;
  border-radius: 0.25rem;
  background: rgb(var(--accent-rgb) / 0.1);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-rv-sport.is-basketball {
  background: var(--a5-hot-soft, rgb(var(--a5-hot-rgb) / 0.12));
  color: var(--a5-hot-text, #c81e2b);
}

.a5-rv-card-meta {
  flex: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.a5-rv-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 0.42rem;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--a5-ink-title, #0f172a);
}

.a5-rv-sum {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 0.28rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--a5-muted, #64748b);
}

.a5-rv-foot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.a5-rv-chip {
  padding: 0.1rem 0.38rem;
  border-radius: 0.3rem;
  background: var(--a5-soft, #f1f5f9);
  font-size: 0.6875rem;
  color: var(--a5-muted, #64748b);
  white-space: nowrap;
}

.a5-rv-more {
  flex: none;
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--a5-dim, #94a3b8);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.a5-rv-card:hover .a5-rv-more {
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

/* ---------------- 详情页：两栏 + 标题正文同卡 ---------------- */
.a5-rv-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .a5-rv-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

/* 左侧白卡：ui-card 只给圆角/边框/底色，padding 要自己清掉 */
.a5-rv-sheet {
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* 卡片顶部那条左浓右淡的渐变细线（和资讯详情页的卡片同一个语汇） */
.a5-rv-sheet::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background-image: linear-gradient(90deg,
    rgb(var(--accent-rgb)) 0%,
    rgb(var(--accent-2-rgb, var(--accent-rgb))) 45%,
    transparent 100%);
}

.a5-rv-hero {
  padding: 1.05rem 1.15rem 0.95rem;
  border-bottom: 1px solid var(--a5-line, #f1f5f9);
}

.a5-rv-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.6875rem;
  color: var(--a5-dim, #94a3b8);
}

/* 没有比分之后标题必须自己顶起来（1.5rem → 卡宽一截，1.3125rem 刚好两行） */
.a5-rv-hero-title {
  margin-top: 0.6rem;
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--a5-ink-title, #0f172a);
}

.a5-rv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--a5-dim, #94a3b8);
}

.a5-rv-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--a5-line-3, #cbd5e1);
}

/* 正文区：左右 padding 只在这里给一次，正文和上下篇共用同一条边 */
.a5-rv-body {
  padding: 1rem 1.15rem 1.15rem;
}

/* ---------------- 富文本正文 ----------------
   编辑器（wangEditor）产出 <p> / <h3> / <ul> / <img> / 带 style 的 <span>。
   不重置字号（编辑特意设过的地方要尊重），只对齐行高、间距和颜色。
   比 a5.css 里的 .ui-article 更松：这一页通篇是长文，行距是第一位。 */
.a5-rv-prose {
  overflow-wrap: break-word;
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--a5-ink-2, #334155);
}

.a5-rv-prose > * + * {
  margin-top: 0.85rem;
}

.a5-rv-prose h2,
.a5-rv-prose h3,
.a5-rv-prose h4 {
  position: relative;
  margin-top: 1.6rem;
  padding-left: 0.62rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--a5-ink-title, #0f172a);
}

.a5-rv-prose h2::before,
.a5-rv-prose h3::before,
.a5-rv-prose h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 3px;
  border-radius: 3px;
  background: rgb(var(--accent-rgb));
}

.a5-rv-prose > :first-child {
  margin-top: 0;
}

.a5-rv-prose strong,
.a5-rv-prose b {
  font-weight: 700;
  color: var(--a5-ink-title, #0f172a);
}

.a5-rv-prose a {
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.a5-rv-prose ul,
.a5-rv-prose ol {
  padding-left: 1.25rem;
}

.a5-rv-prose ul {
  list-style: disc;
}

.a5-rv-prose ol {
  list-style: decimal;
}

.a5-rv-prose li + li {
  margin-top: 0.35rem;
}

.a5-rv-prose blockquote {
  padding: 0.15rem 0 0.15rem 0.8rem;
  border-left: 3px solid rgb(var(--accent-rgb) / 0.45);
  color: var(--a5-muted, #64748b);
}

.a5-rv-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

.a5-rv-prose figure {
  margin: 1rem 0;
}

.a5-rv-prose figcaption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--a5-dim, #94a3b8);
  text-align: center;
}

.a5-rv-prose hr {
  margin: 1.5rem 0;
  border: 0;
  border-top: 1px dashed var(--a5-line-2, #e2e8f0);
}

.a5-rv-prose code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
  background: var(--a5-soft, #f1f5f9);
  font-size: 0.8125rem;
}

.a5-rv-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.a5-rv-prose th,
.a5-rv-prose td {
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  text-align: left;
}

.a5-rv-prose th {
  background: var(--a5-soft, #f1f5f9);
  font-weight: 700;
  color: var(--a5-ink-title, #0f172a);
}

/* ---------------- 详情页：更早 / 更新一篇 ---------------- */
.a5-rv-switch {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--a5-line, #f1f5f9);
}

@media (min-width: 640px) {
  .a5-rv-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 卡内再套一层白底小卡会和卡片边框叠成双线，改成浅色块 */
.a5-rv-switch-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.65rem 0.85rem 0.7rem;
  border: 1px solid var(--a5-line, #eef1f4);
  border-radius: 0.75rem;
  background: var(--a5-card-2, #f8fafc);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.a5-rv-switch-item.is-next {
  text-align: right;
}

a.a5-rv-switch-item:hover {
  border-color: rgb(var(--accent-rgb) / 0.4);
  background: rgb(var(--accent-rgb) / 0.05);
}

/* 到头了：保留占位，别让两侧不对齐 */
.a5-rv-switch-item.is-off {
  opacity: 0.55;
}

.a5-rv-switch-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--a5-dim, #94a3b8);
}

.a5-rv-switch-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--a5-ink-2, #334155);
}

a.a5-rv-switch-item:hover .a5-rv-switch-title {
  color: var(--a5-ink-title, #0f172a);
}

/* ---------------- 详情页侧栏 ---------------- */
.a5-rv-side-card {
  padding: 0.85rem 0.95rem 0.95rem;
}

.a5-rv-side-card + .a5-rv-side-card,
.a5-rv-side-card + .a5-fx-head {
  margin-top: 0.75rem;
}

.a5-rv-side-title {
  position: relative;
  padding-left: 0.62rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--a5-ink-title, #0f172a);
}

.a5-rv-side-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 3px;
  border-radius: 3px;
  background: rgb(var(--accent-rgb));
}

/* 「这篇回顾」的信息行：标签 → 值，虚线分隔 */
.a5-rv-facts {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
  font-size: 0.75rem;
}

.a5-rv-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--a5-line-2, #e2e8f0);
}

.a5-rv-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.a5-rv-facts dt {
  flex: none;
  color: var(--a5-dim, #94a3b8);
}

.a5-rv-facts dd {
  min-width: 0;
  text-align: right;
  font-weight: 600;
  overflow-wrap: anywhere;
  color: var(--a5-ink-2, #334155);
}

/* 「更多回顾」：两列（标题 + 日期），标题长了会截断 */
.a5-rv-more-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.a5-rv-more-list li + li {
  border-top: 1px dashed var(--a5-line, #eef1f4);
}

.a5-rv-more-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}

.a5-rv-more-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--a5-ink-2, #334155);
}

.a5-rv-more-list a:hover .a5-rv-more-title {
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-rv-more-date {
  flex: none;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--a5-dim, #94a3b8);
}

.a5-rv-back {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--a5-muted, #64748b);
  transition: color 0.15s ease;
}

.a5-rv-back:hover {
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

/* ---------------- 首页板块：三列卡片 ---------------- */
.a5-rvw-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.7rem 0.85rem 0.8rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.a5-rvw-item:hover {
  border-color: rgb(var(--accent-rgb) / 0.45);
  box-shadow: 0 18px 36px -30px rgb(15 23 42 / 0.5);
}

.a5-rvw-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: var(--a5-dim, #94a3b8);
}

.a5-rvw-date {
  font-variant-numeric: tabular-nums;
}

/* 首页卡片窄，「约 N 分钟读完」压成「N 分钟」；数字和列表页同口径 */
.a5-rvw-read {
  margin-left: auto;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.a5-rvw-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--a5-ink-title, #0f172a);
  transition: color 0.15s ease;
}

.a5-rvw-item:hover .a5-rvw-title {
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-rvw-sum {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--a5-muted, #64748b);
}

/* ---------------- 窄屏收紧 ---------------- */
@media (max-width: 639.98px) {
  .a5-rv-head-title {
    font-size: 1.125rem;
  }

  .a5-rv-hero {
    padding: 0.85rem 0.9rem 0.8rem;
  }

  .a5-rv-hero-title {
    font-size: 1.125rem;
  }

  .a5-rv-body {
    padding: 0.9rem 0.9rem 0.95rem;
  }

  .a5-rv-prose {
    font-size: 0.875rem;
    line-height: 1.9;
  }

  .a5-rv-switch-item.is-next,
  .a5-rv-switch-item.is-prev {
    text-align: left;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ⑨ 教练与球队名录 —— /{栏目}.html（参考 kazixin.com/coachandteam.html）
   （2026-10-28 新增，类名前缀统一 a5-dir-）

   和站里其它页的区别：这一页没有「时间」和「比分」，只有一堆并列的档案，
   所以版式是**等宽卡片网格 + 一排筛选**，不做左右栏 —— 名录要的是横向铺开
   一眼扫，右栏在那儿只会把每行挤到两张卡。

   颜色全部走主题令牌（--a5-*）。这里有两个表单控件（select / input），
   浏览器默认是白底黑字，深色主题下会直接糊掉，必须显式给底色和字色；
   select 的箭头用 CSS 画（appearance: none），否则深色主题里那个小黑三角看不见。
   ════════════════════════════════════════════════════════════════════════════ */

/* ---------------- 页头 ---------------- */
.a5-dir-head {
  margin: 0.75rem 0 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--a5-line, #f1f5f9);
}

.a5-dir-head-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--a5-ink-title, #0f172a);
}

.a5-dir-head-sub {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--a5-muted, #64748b);
}

/* ---------------- 筛选条：一行，放不下就换行 ---------------- */
.a5-dir-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin-bottom: 1rem;
}

/* 教练 / 球队切换：参考站是「实心选中」的方块按钮，比胶囊更像 tab */
.a5-dir-tabs {
  display: flex;
  gap: 0.35rem;
}

.a5-dir-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 0.55rem;
  background: var(--a5-card, #fff);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--a5-ink-2, #334155);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.a5-dir-tab:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-dir-tab.is-on {
  border-color: transparent;
  background: rgb(var(--accent-rgb));
  color: var(--a5-on-accent, #fff);
}

/* tab 上的总数：选中时跟着变淡，不抢标题 */
.a5-dir-tab-num {
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.62;
}

/* 运动：细胶囊，和「全部 / 足球 / 篮球」这种短选项更配 */
.a5-dir-sports {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.a5-dir-label {
  flex: none;
  font-size: 0.8125rem;
  color: var(--a5-muted, #64748b);
}

.a5-dir-sports .a5-dir-label {
  margin-right: 0.1rem;
}

.a5-dir-chip {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--a5-muted, #64748b);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.a5-dir-chip:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-dir-chip.is-on {
  border-color: transparent;
  background: rgb(var(--accent-rgb) / 0.12);
  font-weight: 600;
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

/* ---------------- 联赛 / 名称 ---------------- */
.a5-dir-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.a5-dir-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

/* 深色主题下原生控件是白底黑字，这里统一按卡片底色走 */
.a5-dir-select,
.a5-dir-input {
  height: 30px;
  padding: 0 0.5rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 0.4rem;
  background: var(--a5-card, #fff);
  font-size: 0.8125rem;
  color: var(--a5-ink-2, #334155);
  transition: border-color 0.15s ease;
}

.a5-dir-select {
  max-width: 13rem;
  /* 原生箭头在深色主题里看不见，关掉自己画一个（颜色取中间调，两套主题都够用） */
  appearance: none;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.a5-dir-input {
  width: 10rem;
}

.a5-dir-select:focus,
.a5-dir-input:focus {
  border-color: rgb(var(--accent-rgb));
  outline: none;
}

.a5-dir-input::placeholder {
  color: var(--a5-dim, #94a3b8);
}

.a5-dir-submit {
  height: 30px;
  padding: 0 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: rgb(var(--accent-rgb));
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--a5-on-accent, #fff);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.a5-dir-submit:hover {
  opacity: 0.9;
}

.a5-dir-reset {
  font-size: 0.8125rem;
  color: var(--a5-dim, #94a3b8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.a5-dir-reset:hover {
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

/* 「共 N 位教练」：贴着这一行右边，手机上换行后自然落到下一行 */
.a5-dir-count {
  margin: 0 0 0 auto;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--a5-muted, #64748b);
}

.a5-dir-count b {
  font-weight: 800;
  color: var(--a5-ink-2, #334155);
}

.a5-dir-count-dim {
  color: var(--a5-dim, #94a3b8);
}

/* ---------------- 卡片网格 ---------------- */
.a5-dir-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 560px) {
  .a5-dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .a5-dir-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .a5-dir-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 卡片：左 logo 右三行，和参考站一致。
   align-items: flex-start —— 名字两行时 logo 不该跟着往下掉 */
.a5-dir-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 0.75rem;
  background: var(--a5-card, #fff);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.a5-dir-card:hover {
  border-color: rgb(var(--accent-rgb) / 0.45);
  box-shadow: 0 16px 32px -28px rgb(15 23 42 / 0.55);
}

.a5-dir-logo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  padding: 3px;
  border-radius: 0.55rem;
  background: var(--a5-soft, #f1f5f9);
}

/* 队徽 / 头像多为透明底 PNG，contain 才不会被裁掉一半 */
.a5-dir-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 没有图时用名字首字占位：空方块看着像加载失败 */
.a5-dir-initial {
  font-size: 1rem;
  font-weight: 800;
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
  user-select: none;
}

.a5-dir-info {
  min-width: 0;
  flex: 1;
}

.a5-dir-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0;
  min-width: 0;
}

.a5-dir-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--a5-ink-title, #0f172a);
}

/* 主教练 / 代理主教练：描边式小标，不和名字抢注意力 */
.a5-dir-tag {
  flex: none;
  padding: 0 0.28rem;
  border: 1px solid rgb(var(--accent-rgb) / 0.28);
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-dir-sub {
  overflow: hidden;
  margin: 0.2rem 0 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  color: var(--a5-muted, #64748b);
}

.a5-dir-meta {
  overflow: hidden;
  margin: 0.12rem 0 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--a5-dim, #94a3b8);
}

/* ---------------- 空态 ---------------- */
.a5-dir-empty {
  padding: 2rem 1rem;
  text-align: center;
}

.a5-dir-empty-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--a5-ink-2, #334155);
}

.a5-dir-empty-sub {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--a5-dim, #94a3b8);
}

.a5-dir-empty-sub a {
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 翻页 ---------------- */
.a5-dir-pager-wrap {
  margin-top: 1.1rem;
}

.a5-dir-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.a5-dir-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 0.5rem;
  background: var(--a5-card, #fff);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--a5-ink-2, #334155);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a.a5-dir-page:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.a5-dir-page.is-on {
  border-color: transparent;
  background: rgb(var(--accent-rgb));
  font-weight: 700;
  color: var(--a5-on-accent, #fff);
}

.a5-dir-page.is-off {
  opacity: 0.45;
}

.a5-dir-page-gap {
  padding: 0 0.15rem;
  font-size: 0.8125rem;
  color: var(--a5-dim-2, #cbd5e1);
}

/* ---------------- 窄屏收紧 ----------------
   手机上这一条筛选条有 4 个东西（tab / 运动 / 表单 / 计数），挤在一行会变成
   「什么都在、什么都小」。这里改成按行分：tab 一行 → 运动一行 → 表单一行 → 计数一行。
   tab 均分整行（拇指好按），表单里的「联赛 / 名称」文字标签省掉 —— 下拉里写着
   「全部联赛」、输入框有 placeholder，标签在小屏上是纯占位。 */
@media (max-width: 639.98px) {
  .a5-dir-head-title {
    font-size: 1.25rem;
  }

  .a5-dir-tabs {
    flex: 1 1 100%;
  }

  .a5-dir-tab {
    flex: 1;
    justify-content: center;
  }

  .a5-dir-sports,
  .a5-dir-form {
    flex: 1 1 100%;
  }

  .a5-dir-field {
    flex: 1 1 8.5rem;
  }

  .a5-dir-field > .a5-dir-label {
    display: none;
  }

  .a5-dir-select,
  .a5-dir-input {
    width: 100%;
    min-width: 0;
  }

  .a5-dir-select {
    max-width: none;
  }

  /* 「共 N 位教练」自己一行，不再和重置按钮抢位置 */
  .a5-dir-count {
    margin-left: 0;
    width: 100%;
  }
}

/* ==================================================================
 * ⑩ 通用翻页（栏目 / 直播列表 / 搜索 / 赛事回顾）
 *
 * .pager / .pager-btn 是 public_pager() 生成的结构，但 app.css（web/front 的
 * tailwind 预构建产物）里从来没有这两个类，前台分页一直是一串裸链接挤成
 * 「上一页12345下一页」。这里按名录页 .a5-dir-pager 的观感补上，
 * 全站凡是调 public_pager() 的地方一起变正常。
 * ================================================================== */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 0.75rem 0.7rem;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border: 1px solid var(--a5-line-2, #e2e8f0);
  border-radius: 0.5rem;
  background: var(--a5-card, #fff);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--a5-ink-2, #334155);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a.pager-btn:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  color: var(--a5-accent-ink, rgb(var(--accent-rgb)));
}

.pager-btn.current {
  border-color: transparent;
  background: rgb(var(--accent-rgb));
  font-weight: 700;
  color: var(--a5-on-accent, #fff);
}

.pager-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 手机上页码多时一行放不下，上一页 / 下一页单独占一行也难看，
   所以宽度不够时整体保持居中换行即可（不缩字号，32px 是拇指能点到的最小尺寸）。 */

/* ==================================================================
 * ⑪ 首页「教练与球队」
 *
 * 名录页的 .a5-dir-card 是带边框的独立卡片，搬到首页会和外层容器卡
 * 套成两层框。这里是同一个信息的「轻量版」：去掉边框，靠 hover 底色
 * 表示可点，缩到 36px 头像，两列并排 —— 首页只要认得出来是谁、属于哪队。
 * ================================================================== */
.a5-ct-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 1024px) {
  .a5-ct-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.a5-ct-list {
  display: grid;
  gap: 2px;
  margin-top: 0.5rem;
}

.a5-ct-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem;
  border-radius: 0.6rem;
  transition: background-color 0.15s ease;
}

.a5-ct-item:hover {
  background: var(--a5-card-2, #f8fafc);
}

.a5-ct-logo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  padding: 2px;
  border-radius: 0.5rem;
  background: var(--a5-soft, #f1f5f9);
}

.a5-ct-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.a5-ct-initial {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: var(--a5-dim, #94a3b8);
}

.a5-ct-body {
  display: block;
  min-width: 0;
  flex: 1;
}

.a5-ct-name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--a5-ink-title, #0f172a);
}

.a5-ct-name .t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a5-ct-sub,
.a5-ct-meta {
  display: block;
  overflow: hidden;
  font-size: 0.6875rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a5-ct-sub {
  color: var(--a5-ink-2, #475569);
}

.a5-ct-meta {
  color: var(--a5-dim, #94a3b8);
}
