/* =========================================================================
   赛事详情页样式
   ========================================================================= */
.md-hero { padding: 28px 0 60px; min-height: 60vh; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 22px; cursor: pointer; text-decoration: none; transition: all .2s ease; }
.back-link:hover { color: var(--bg); background: linear-gradient(120deg, var(--gold), var(--gold-2)); border-color: transparent; box-shadow: 0 8px 22px rgba(232,181,73,.4); }

/* AI 分析进度浮层 */
.md-loader { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; background: rgba(3,6,14,.72); backdrop-filter: blur(4px); }
.md-loader-card { width: 360px; max-width: 90vw; text-align: center; background: linear-gradient(180deg,#182035,#10172a); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 32px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: fadeUp .25s ease; }
.md-loader-card .ml-icon { font-size: 44px; margin-bottom: 12px; animation: pulse 1.2s infinite; }
.md-loader-card .ml-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.md-loader-card .ml-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 10px; }
.md-loader-card .ml-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .2s ease; }
.md-loader-card .ml-steps { font-size: 13px; color: var(--text-3); }
.md-loading, .md-empty { text-align: center; color: var(--text-3); padding: 60px 0; font-size: 15px; }
.md-empty .icon { font-size: 40px; margin-bottom: 10px; }

/* 面包屑/联赛信息 */
.md-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 16px; flex-wrap: wrap; }
.md-league-tag { font-size: 12px; font-weight: 700; color: var(--gold); padding: 3px 11px; border-radius: 999px; background: rgba(232,181,73,.1); border: 1px solid rgba(232,181,73,.28); }
.md-sep { color: var(--text-3); }

/* 比分 hero */
.md-score-hero {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  background: linear-gradient(180deg, #141c2f, #0c1224);
  border: 1px solid rgba(255,255,255,.1); border-radius: 20px;
  padding: 30px 24px; margin-bottom: 20px; position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
.md-score-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(232,181,73,.5), transparent); }
.md-score-hero .md-team { text-align: center; }
.md-score-hero .crest-wrap { width: 72px; height: 72px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.md-score-hero .crest-wrap svg, .md-score-hero .crest-wrap img { width: 100%; height: 100%; object-fit: contain; }
.md-score-hero .tname { font-weight: 800; font-size: 18px; }
.md-score-hero .trole { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.md-score-hero .md-mid { text-align: center; }
.md-score-hero .md-num { font-size: 46px; font-weight: 900; color: var(--gold); letter-spacing: 4px; }
.md-score-hero .md-num span { color: var(--text-3); margin: 0 6px; font-weight: 400; }
.md-score-hero .md-result { font-size: 13px; color: var(--accent-2); font-weight: 700; margin-top: 4px; }
.md-score-hero .md-time { font-size: 26px; font-weight: 900; color: var(--gold); }
.md-score-hero .md-vs { font-size: 30px; color: var(--text-3); font-weight: 800; letter-spacing: 3px; }
.md-score-hero .md-day { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* 通用卡片 */
.md-card {
  background: linear-gradient(180deg, #131a2f, #0d1325); border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 20px; margin-bottom: 16px; position: relative;
  box-shadow: 0 14px 38px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.md-card-title { font-weight: 800; font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.md-card-title small { font-weight: 400; font-size: 12px; color: var(--text-3); }

/* 胜率 */
.pct-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.pct-h { color: var(--gold); font-weight: 700; }
.pct-a { color: var(--text-2); }
.pct-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.pct-h-fill { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.pct-a-fill { background: linear-gradient(90deg, #3b4a68, #2b3450); }

.md-overview { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.md-overview-p { margin: 8px 0; font-size: 13.5px; line-height: 1.9; color: var(--text-2); }
.ov-title { color: var(--gold); font-weight: 800; display: inline; }
.ov-title::after { content: ''; }

/* 双方卡片 */
.md-cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.md-team-card { background: linear-gradient(180deg, #141c2c, #0e1424); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; }
.md-team-card.h { border-top: 2px solid rgba(232,181,73,.5); }
.md-team-card.a { border-top: 2px solid rgba(61,220,151,.4); }
.md-team-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.md-team-head .crest-wrap.sm { width: 48px; height: 48px; }
.md-team-head .crest-wrap.sm svg, .md-team-head .crest-wrap.sm img { width: 100%; height: 100%; object-fit: contain; }
.md-team-name { font-weight: 800; font-size: 17px; }
.md-team-name span { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.md-team-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-team-card td { padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.08); color: var(--text-2); }
.md-team-card td:first-child { color: var(--text-3); width: 34%; }
.md-team-card td:last-child { color: var(--text); font-weight: 600; }

/* 历史交锋 */
.h2h-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.h2h-item { padding: 8px 12px; border-radius: 9px; font-size: 12px; background: #121a2d; border: 1px solid rgba(255,255,255,.08); text-align: center; min-width: 86px; }
.h2h-item b { display: block; font-weight: 700; }
.md-h2h-stats { display: flex; gap: 10px; margin-bottom: 12px; }
.md-h2h-num { flex: 1; background: #121a2d; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; text-align: center; }
.md-h2h-num b { display: block; font-size: 24px; font-weight: 900; color: var(--gold); }
.md-h2h-num span { font-size: 12px; color: var(--text-2); }
.md-note { font-size: 12px; color: var(--text-3); }

/* 近期 */
.md-recent { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.md-r-col { background: #121a2d; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.md-r-head { font-weight: 700; margin-bottom: 6px; }
.md-r-list { font-size: 13px; color: var(--text-2); line-height: 2; }

/* 玩法 */
.plays { display: grid; gap: 10px; margin-bottom: 12px; }
.play { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #121a2d; border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.play .pt { color: var(--text-2); font-weight: 700; }
.play .pct-tag { font-size: 11px; color: var(--gold); font-weight: 700; margin-left: 8px; }
.play .play-desc { font-size: 11px; font-weight: 500; color: var(--text-3); margin-left: 8px; }
.play-src { font-size: 11px; color: var(--text-3); margin: 4px 2px 12px; line-height: 1.6; }
.play .pick.locked { color: var(--text-3); }
.play .pick .no-pick { color: var(--text-3); font-weight: 400; }
/* 预测结果: 各选项概率条 */
.pk-opts { display: flex; flex-direction: column; gap: 6px; }
.pk-opt { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pk-opt-label { width: 56px; color: var(--text-3); white-space: nowrap; }
.pk-opt-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.pk-opt-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#3b4a68,#2b3450); }
.pk-opt.best .pk-opt-fill { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); box-shadow: 0 0 8px rgba(232,181,73,.4); }
.pk-opt.best .pk-opt-label { color: var(--gold); font-weight: 700; }
.pk-opt-pct { width: 40px; text-align: right; color: var(--text-2); font-weight: 700; }
.pk-opt .pk-best { color: var(--bg); font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: linear-gradient(120deg, var(--gold), var(--gold-2)); }
.pk-sum { color: var(--accent-2); font-size: 12px; font-weight: 700; }
/* 推荐原因 */
.pk-reason { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(232,181,73,.05); border: 1px dashed rgba(232,181,73,.25); }
.pk-reason .pkr-tag { display: inline-block; font-size: 10px; font-weight: 800; color: var(--gold); padding: 2px 8px; border-radius: 999px; background: rgba(232,181,73,.12); margin-bottom: 5px; }
.pk-reason p { font-size: 12px; color: var(--text-2); line-height: 1.8; }
.md-ai-btn { width: 100%; padding: 13px; border-radius: 999px; border: none; font-size: 15px; font-weight: 700; color: var(--bg); background: linear-gradient(120deg, var(--gold), var(--gold-2)); cursor: pointer; box-shadow: 0 8px 24px rgba(232,181,73,.35); }
.md-ai-btn:hover { transform: translateY(-2px); }
.md-ai-btn:disabled { opacity: .6; cursor: not-allowed; }
.md-ai-result { margin-top: 12px; font-size: 13px; color: var(--accent-2); text-align: center; }
/* 本场主推 (与 AI 预测页同款) */
.md-mainpick { text-align: left; background: rgba(232,181,73,.08); border: 1px solid rgba(232,181,73,.25); border-radius: 12px; padding: 12px 14px; }
.md-mainpick .ps-label { font-size: 12px; font-weight: 800; color: var(--gold); margin-bottom: 9px; letter-spacing: 1px; }
.md-mainpick .ps-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: linear-gradient(90deg, rgba(232,181,73,.18), rgba(232,181,73,.06)); border: 1px solid rgba(232,181,73,.4); }
.md-mainpick .pst-star { font-size: 18px; }
.md-mainpick .pst-info { flex: 1; min-width: 0; }
.md-mainpick .pst-game { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.md-mainpick .pst-pick { font-size: 15px; font-weight: 900; color: var(--gold); }
.md-mainpick .pst-pct { font-size: 21px; font-weight: 900; color: var(--gold-2); font-style: normal; }
.md-mainpick .pst-tag { font-size: 10px; font-weight: 800; color: var(--bg); padding: 2px 9px; border-radius: 999px; background: linear-gradient(120deg, var(--gold), var(--gold-2)); }
.md-mainpick .ps-list { margin-top: 9px; display: flex; flex-direction: column; }
.md-mainpick .ps-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 13px; }
.md-mainpick .ps-row:last-child { border-bottom: none; }
.md-mainpick .psr-name { width: 92px; color: var(--text-3); font-size: 12px; flex-shrink: 0; }
.md-mainpick .psr-pick { flex: 1; color: var(--text); font-weight: 600; }
.md-mainpick .psr-pct { color: var(--accent-2); font-weight: 800; font-style: normal; }
.md-mainpick .ps-note { margin-top: 9px; font-size: 11px; color: var(--text-3); line-height: 1.6; }

@media (max-width: 680px) {
  .md-cards2, .md-recent { grid-template-columns: 1fr; }
  .md-score-hero .md-num { font-size: 34px; }
  .md-score-hero .crest-wrap { width: 56px; height: 56px; }
}

/* ===== 详情页移动端适配 ===== */
@media (max-width: 768px) {
  .md-wrap { padding: 12px; }
  .md-head { padding: 10px 2px; }
  .md-card { padding: 12px; }
  .md-cards2 { grid-template-columns: 1fr; }
  .md-team-card { padding: 12px; }
  .md-hero { padding: 16px 8px; }
  .md-vs .crest-wrap { width: 54px; height: 54px; }
  .md-vs .tname { font-size: 15px; }
  .md-h2h { gap: 8px; }
  .md-h2h-item { padding: 8px 6px; }
  .plays { gap: 8px; }
  .pk-opt { font-size: 11px; }
  .pk-opt-label { width: 52px; }
}
@media (max-width: 480px) {
  .md-wrap { padding: 8px; }
  .md-breadcrumb { font-size: 11px; }
  .md-vs { padding: 12px 2px; }
  .md-vs .crest-wrap { width: 46px; height: 46px; }
  .md-vs .tname { font-size: 13px; }
  .md-vs .time { font-size: 15px; }
  .md-overview-p { font-size: 12.5px; }
  .md-team-card table td { font-size: 12px; padding: 7px 4px; }
  .md-ai-btn { font-size: 14px; padding: 11px; }
  .md-mainpick .ps-row { font-size: 12px; }
  .md-mainpick .psr-name { width: 78px; font-size: 11px; }
}