/* ==========================================================================
   CFB 中国足球小将 - 赛程单场比赛卡片系统 (Match Cards & Derby Spotlight)
   ========================================================================== */

/* 比赛卡片：轻量无边框微阴影 */
.cfb-match-list {
  padding: 0 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cfb-match-card {
  background-color: var(--cfb-bg-card);
  border-radius: var(--cfb-radius-md);
  padding: 16px 14px 14px 14px;
  box-shadow: var(--cfb-shadow-sm);
  border: none;
  position: relative;
  overflow: hidden;
}

.cfb-match-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
}

/* 抽屉把手贴顶标签：吸附卡片顶边，左右下角倒圆角，精致机械建筑感 */
.cfb-match-card__tag--center {
  position: absolute;
  top: -16px; /* 紧扣卡片顶部内边距 */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #004B99;
  background-color: rgba(0, 75, 153, 0.08);
  border: 1px solid rgba(0, 75, 153, 0.12);
  border-top: none;
  border-radius: 0 0 7px 7px;
  padding: 3px 12px 3.5px 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0, 40, 100, 0.04);
}

.cfb-match-card__tag {
  font-size: 12px;
  font-weight: 700;
  background-color: rgba(0, 91, 181, 0.08);
  color: var(--cfb-royal-blue);
  padding: 2px 7px;
  border-radius: var(--cfb-radius-xs);
}

/* 方案 A：微胶囊底衬印章 (Pill Anchor) - 带来实体秩序感与视觉重心锚定 */
.cfb-match-card__time {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #334155; /* Slate-700 高对比度沉稳灰 */
  background-color: rgba(0, 30, 80, 0.045);
  padding: 2.5px 7.5px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.cfb-match-card__versus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
}

.cfb-match-card__team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.cfb-match-card__team.is-away {
  flex-direction: row-reverse;
}

.cfb-match-card__name {
  font-family: var(--cfb-font-team), var(--cfb-font-main);
  font-size: 14px;
  font-weight: 800;
  color: var(--cfb-text-main);
  line-height: 1.25;
  text-align: center;
  flex: 1;
  min-width: 0;
  letter-spacing: 0.1px;
}

.cfb-match-card__score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.cfb-match-card__score {
  font-family: var(--cfb-font-num);
  font-size: 26px;
  font-weight: 800;
  color: var(--cfb-text-main);
  letter-spacing: 2px;
}

.cfb-match-card__ft-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cfb-text-muted);
}

.cfb-match-card__footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--cfb-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cfb-match-card__venue {
  font-size: 12px;
  color: var(--cfb-text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cfb-btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--cfb-border-subtle);
  border: none;
  border-radius: var(--cfb-radius-xs);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cfb-text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.cfb-btn-subtle:active {
  background-color: #E4E4E7;
}

.cfb-btn-booking {
  background-color: rgba(245, 158, 11, 0.12);
  color: #B45309;
}



/* ==========================================================================
   留洋专属焦点赛程卡 (.cfb-match-card--spotlight) - 欧范微通栏沉浸设计
   ========================================================================== */
.cfb-match-card--spotlight {
  background: #FFFFFF;
  border-radius: var(--cfb-radius-md);
  padding: 0 14px 12px 14px; /* 顶部内边距归零，让微通栏沉浸顶头 */
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 75, 153, 0.08);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.cfb-match-card--spotlight:active {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

/* 留洋卡片专属微顶栏：将原 3px 顶线向下延展为 28px 精致沉浸条，彻底取代原零散白底 Header */
.cfb-match-card--spotlight::before {
  display: none; /* 移除旧版 3px 细线条 */
}

.cfb-match-card--spotlight .cfb-match-card__header {
  margin: 0 -14px 12px -14px; /* 负边距顶满左右边缘与卡片顶部圆角咬合 */
  padding: 6px 10px; /* 从 14px 收紧至 10px，使日期靠左紧凑，与通栏两端比例更协调 */
  min-height: 28px;
  box-sizing: border-box;
  background: var(--card-accent, linear-gradient(90deg, #1A4674 0%, #2E6DA4 100%));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: var(--cfb-radius-md);
  border-top-right-radius: var(--cfb-radius-md);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

/* 微通栏内的联赛轮次标签：优雅半透纯白胶囊 */
.cfb-match-card--spotlight .cfb-match-card__tag {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  letter-spacing: 0.2px;
  line-height: 1.25;
}

/* 微通栏内的比赛时间：高对比纯白等宽粗体 */
.cfb-match-card--spotlight .cfb-match-card__time {
  font-family: var(--cfb-font-main);
  font-size: 12px;
  font-weight: 800; /* 强化至 800，消除肉眼发细感 */
  color: #FFFFFF; /* 采用 100% 纯白实色，杜绝半透虚化 */
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

/* 德比卡片微通栏特异性背景 */
.cfb-match-card--derby::before {
  display: none;
}

.cfb-match-card--derby .cfb-match-card__header {
  background: var(--card-accent, linear-gradient(90deg, #375369 0%, #4D718C 100%));
}

.cfb-match-card--derby .cfb-match-card__tag--derby {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* 主体横向三段式：左球员立绘 -> 右侧对阵 (主队队徽+队名 vs 客队队徽+队名) */
.cfb-spotlight-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px 0; /* 紧凑上移，与微顶栏自然衔接 */
}

/* 1. 左侧球员半身立绘 + 姓名 (无生造角标) */
.cfb-spotlight-player {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 升级：Tab 2 头像框同步放大至 64x68，底衬渐变黑条 */
.cfb-spotlight-bust {
  width: 64px;
  height: 68px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, #F0F6FF 0%, #E2ECFC 100%);
  border: 1.2px solid rgba(0, 75, 153, 0.18);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(0, 75, 153, 0.1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.cfb-spotlight-player__scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.cfb-spotlight-player__name {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  z-index: 3;
  font-family: var(--cfb-font-main);
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.cfb-match-card--spotlight-barca .cfb-spotlight-bust {
  background: linear-gradient(145deg, #FFF5F7 0%, #FCE8EE 100%);
  border-color: rgba(165, 0, 68, 0.18);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(165, 0, 68, 0.08);
}

.cfb-spotlight-bust__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* 2. 右侧对阵区：标准足球对阵排版 (主队上下居中 - vs/比分居中 - 客队上下居中) */
.cfb-spotlight-matchup {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch; /* 核心：让两侧等高拉伸，支撑绝对底部对齐 */
  justify-content: space-between;
  padding: 0 2px;
}

.cfb-spotlight-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 核心：顶部严格对齐，保证上方两队队徽在同一水平高度 */
  text-align: center;
}

.cfb-spotlight-crest {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 6px; /* 队徽与队名之间固定 6px 间距，不坍塌不飘移 */
}

.cfb-spotlight-crest img {
  max-width: 36px;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.cfb-spotlight-name {
  font-family: var(--cfb-font-main);
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  max-width: 104px;
  width: 100%;
  box-sizing: border-box;

  /* 核心需求：标签容器固定 36px 高度（容纳至多两行），空间绝不坍塌！ */
  height: 36px;
  min-height: 36px;
  max-height: 36px;

  /* 核心需求：换行（两行）还是不换行（单行），文字均在 36px 外层容器中上下严格居中 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cfb-spotlight-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
  margin-top: -8px; /* 视觉微调：使 VS/比分居中与两侧队徽高度重心呼应 */
}

.cfb-spotlight-vs {
  font-family: var(--cfb-font-vs);
  font-size: 14px;
  font-weight: 800;
  color: #94A3B8;
  font-style: normal;
  letter-spacing: 0.5px;
  line-height: 1;
}

.cfb-spotlight-score {
  font-family: var(--cfb-font-num);
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: 1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cfb-spotlight-score--live {
  color: #E11D48;
}

.cfb-spotlight-status {
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  margin-top: 4px;
  line-height: 1.2;
}

.cfb-spotlight-status--live {
  color: #FFFFFF;
  background: #E11D48;
}

/* 兼容保留类名 */
.cfb-spotlight-team-name {
  display: none;
}
.cfb-spotlight-crests {
  display: contents;
}


/* ==========================================================================
   双小将德比焦点战卡片 (.cfb-match-card--derby)
   ========================================================================== */
.cfb-match-card--derby {
  background: #FFFFFF;
  border-radius: var(--cfb-radius-md);
  padding: 0 14px 12px 14px; /* 顶部内边距归零，让微通栏色条紧贴卡片顶边圆角，彻底消除 14px 下移断层 */
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.cfb-match-card--derby:active {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}

.cfb-match-card--derby .cfb-match-card__header {
  margin: 0 -14px 12px -14px; /* 负边距顶满左右边缘与卡片顶部圆角咬合 */
  background: var(--card-accent, linear-gradient(90deg, #375369 0%, #4D718C 100%));
}

.cfb-match-card--derby .cfb-spotlight-matchup {
  padding: 0;
}

.cfb-match-card--derby .cfb-spotlight-body {
  margin-top: 5px;
  margin-bottom: 5px;
}

.cfb-match-card--spotlight .cfb-match-card__footer {
  margin-top: auto;
}

.cfb-match-card--derby .cfb-spotlight-side .cfb-spotlight-crest {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.cfb-match-card--derby .cfb-spotlight-side .cfb-spotlight-crest img {
  max-width: 30px;
  max-height: 30px;
}

.cfb-match-card--derby .cfb-spotlight-name {
  font-size: 12px;
  line-height: 1.2;
  max-width: 78px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cfb-match-card--derby .cfb-spotlight-center {
  padding: 0 3px;
}

/* 顶部雅致微光条 (如果不需要强颜色，可保持统一极淡灰蓝，或通过 --card-accent 动态注入) */


/* 德比标签样式：清爽克制，与全局保持一致 */
.cfb-match-card__tag--derby {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  font-weight: 700 !important;
  border: none !important;
}

/* 德比双球员头像区：两个球员并列，中间带微小的 vs */
.cfb-derby-players {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cfb-derby-player-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cfb-derby-bust {
  width: 52px;
  height: 56px;
  border-radius: 11px;
  overflow: hidden;
  background: #F1F5F9;
  border: 1.2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cfb-derby-player-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.45) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.cfb-derby-player-name {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  z-index: 3;
  font-family: var(--cfb-font-main);
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.cfb-derby-bust__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cfb-derby-vs-pill {
  font-family: var(--cfb-font-vs);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  color: #D97706;
  background: rgba(245, 158, 11, 0.14);
  padding: 1.5px 5px;
  border-radius: 6px;
  margin-top: 14px;
  flex-shrink: 0;
  line-height: 1;
}

.cfb-match-card__score-box span {
  font-family: var(--cfb-font-vs);
  font-style: normal;
}


