/* ==========================================================================
   GCPlus 桌面管理后台 - 样式
   复用与移动端一致的 CSS 变量名，主题由 api.applyThemeColor() 统一驱动
   ========================================================================== */

:root {
  --bg-primary: #030805;
  --bg-secondary: #0d1a13;
  --bg-tertiary: #1a2e22;
  --primary-color: #2ecc71;
  --primary-color-rgb: 46 204 113;
  --primary-dark: #27ae60;
  --primary-darker: #1e8449;
  --primary-glow: rgb(46 204 113 / 0.35);
  --glass-bg: rgb(46 204 113 / 0.08);
  --glass-border: rgb(46 204 113 / 0.22);
  --glass-border-focus: rgb(46 204 113 / 0.4);
  --text-primary: #ffffff;
  --text-secondary: #a6b9ad;
  --text-muted: #677d70;
  --accent-green: #2ecc71;
  --accent-yellow: #f39c12;
  --accent-gold: #f1c40f;
  --accent-red: #e74c3c;
  --accent-blue: #3498db;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

#web-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* ============ 顶部菜单条 ============ */
#web-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  height: 60px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.web-header-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.web-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-darker) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 10px var(--primary-glow);
}
.web-logo-vs { color: var(--text-primary); font-weight: 900; font-size: 13px; letter-spacing: -0.5px; }

.web-title-group { display: flex; flex-direction: column; line-height: 1.1; }
.web-title {
  font-size: 17px; font-weight: 800; letter-spacing: -0.3px;
  background: linear-gradient(90deg, var(--text-primary) 60%, var(--primary-color) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.web-subtitle {
  font-size: 9px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}

.web-league-badge {
  font-size: 12px; font-weight: 600;
  background: var(--glass-bg); color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 5px 12px; border-radius: 20px;
  white-space: nowrap;
}
.web-league-badge:hover { border-color: var(--glass-border-focus); }

.web-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.web-menu-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: all 0.15s;
}
.web-menu-item i { font-size: 13px; }
.web-menu-item:hover { color: var(--text-primary); background: var(--glass-bg); }
.web-menu-item.active {
  color: var(--text-primary); background: rgb(var(--primary-color-rgb) / 0.18);
  border: 1px solid rgb(var(--primary-color-rgb) / 0.35);
  font-weight: 600;
}

.web-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.web-user-badge {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  padding: 5px 12px; border-radius: 20px;
}
.web-user-badge .fa-crown { color: var(--accent-gold); margin-right: 4px; }

.web-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--glass-border); background: transparent; color: var(--text-primary);
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.web-btn:hover { background: var(--glass-bg); }
.web-btn-ghost { background: var(--glass-bg); }
.web-btn-primary { background: var(--primary-color); border-color: var(--primary-color); color: #04110a; font-weight: 700; }
.web-btn-primary:hover { filter: brightness(1.08); }
.web-btn-danger { color: var(--accent-red); border-color: var(--accent-red); }
.web-btn-danger:hover { background: rgb(231 76 60 / 0.12); }
.web-btn-sm { padding: 5px 10px; font-size: 12px; }
.web-btn-xs { padding: 2px 6px; font-size: 11px; line-height: 1; border-radius: 5px; }
.web-btn-square { width: 30px; height: 30px; padding: 0; justify-content: center; font-size: 13px; border-radius: 8px; }
.web-btn-seg { padding: 9px 12px; }
.web-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ 主内容区 ============ */
#web-content {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.web-view { display: none; }
.web-view.active { display: block; animation: webFade 0.2s ease; }

@keyframes webFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* 页面头部 */
.web-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.web-page-title { font-size: 22px; font-weight: 800; }
.web-page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.web-page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 筛选栏（横向排开） */
.web-filter-bar {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 16px; margin-bottom: 20px;
}
.web-filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.web-filter-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* 表单控件 */
.web-input, .web-select, .web-textarea {
  background: var(--bg-tertiary); border: 1px solid var(--glass-border);
  color: var(--text-primary); border-radius: 8px; padding: 9px 12px;
  font-size: 13px; font-family: inherit; outline: none; width: 100%;
  transition: border-color 0.15s;
}
.web-input:focus, .web-select:focus, .web-textarea:focus { border-color: var(--glass-border-focus); }
.web-textarea { resize: vertical; min-height: 72px; }
.web-select { appearance: none; cursor: pointer; }

/* 多选下拉（球队筛选） */
.web-multi-select { position: relative; }
.web-multi-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
  background: var(--bg-tertiary); border: 1px solid var(--glass-border);
  color: var(--text-primary); border-radius: 8px; padding: 9px 12px;
  font-size: 13px; font-family: inherit; cursor: pointer; outline: none;
  transition: border-color 0.15s;
}
.web-multi-select-trigger:hover { border-color: var(--glass-border-focus); }
.web-multi-select-trigger i { font-size: 11px; color: var(--text-muted); }
.web-multi-select-panel {
  display: none; position: absolute; z-index: 50; top: calc(100% + 6px); left: 0;
  min-width: 230px; max-width: 320px;
  background: var(--bg-tertiary); border: 1px solid var(--glass-border);
  border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); overflow: hidden;
}
.web-multi-select-panel.open { display: block; }
.web-multi-select-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--glass-border);
  font-size: 12px; color: var(--text-secondary);
}
.web-multi-select-head label { display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.web-multi-select-head input { accent-color: var(--primary-color); cursor: pointer; }
.web-multi-select-options { max-height: 260px; overflow-y: auto; padding: 4px; }
.web-multi-option {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 6px 8px; border-radius: 6px; cursor: pointer;
  color: var(--text-primary);
}
.web-multi-option:hover { background: rgb(var(--primary-color-rgb) / 0.08); }
.web-multi-option input { accent-color: var(--primary-color); cursor: pointer; flex-shrink: 0; }

.web-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.web-form-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.web-form-row { display: flex; gap: 14px; }
.web-form-row > .web-form-group { flex: 1; }

/* 棒垒球球员积分配置（进攻/防守/投球） */
.scoring-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--glass-border); }
.scoring-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.scoring-section-title i { color: var(--primary-color); }
.scoring-section-hint { font-size: 12px; color: var(--text-muted); margin: 6px 0 12px; }
.scoring-toggle {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  padding: 9px 12px; margin-bottom: 6px; border-radius: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.scoring-toggle input { accent-color: var(--primary-color); cursor: pointer; width: 15px; height: 15px; }
.scoring-toggle-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.scoring-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scoring-col {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 12px; min-width: 0;
}
.scoring-col-title { font-size: 13px; font-weight: 700; color: var(--primary-color); }
.scoring-col-desc { font-size: 11px; color: var(--text-muted); margin: 4px 0 10px; }
.scoring-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.scoring-row { display: flex; align-items: center; gap: 6px; }
.scoring-row .scoring-metric { flex: 1; min-width: 0; }
.scoring-row .scoring-points { width: 84px; flex-shrink: 0; }
.scoring-row .scoring-del { width: 34px; height: 34px; flex-shrink: 0; }
.scoring-add { width: 100%; justify-content: center; }

/* 球员技术统计卡片右上角的进攻/防守/投球积分 chips（比下方统计卡片更大更显眼） */
.score-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.score-chip {
  font-size: 20px; font-weight: 700; padding: 10px 18px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-primary); white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 8px; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.score-chip::before {
  content: attr(data-label);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}

/* ============ 卡片面板 ============ */
.web-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 20px;
}
.web-card + .web-card { margin-top: 16px; }
.web-card-title {
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}

/* 统计卡片 */
.web-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 20px;
}
.web-stat-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 18px;
}
.web-stat-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.web-stat-value { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.web-stat-value .unit { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-left: 2px; }

/* ============ 表格 ============ */
.web-table-wrapper {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; overflow-x: auto;
}
.web-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.web-table th {
  text-align: left; padding: 12px 14px; font-weight: 600;
  color: var(--text-secondary); border-bottom: 1px solid var(--glass-border);
  white-space: nowrap; font-size: 12px;
}
.web-table td {
  padding: 11px 14px; border-bottom: 1px solid rgb(255 255 255 / 0.03);
  color: var(--text-primary);
}
.web-table tr:last-child td { border-bottom: none; }
.web-table tbody tr:hover { background: rgb(var(--primary-color-rgb) / 0.05); }
.web-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.web-table th.num { text-align: right; }
.web-stats-table th, .web-stats-table td { padding: 8px 4px; }
.web-table .muted { color: var(--text-muted); }
.web-table .rank-1 { color: var(--accent-gold); font-weight: 700; }
.web-table .rank-2 { color: var(--text-secondary); font-weight: 600; }
.web-table .rank-3 { color: var(--primary-color); font-weight: 600; }

/* 单元格徽章 */
.web-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
}
.web-badge-win { background: rgb(46 204 113 / 0.15); color: var(--accent-green); }
.web-badge-loss { background: rgb(231 76 60 / 0.15); color: var(--accent-red); }
.web-badge-draw { background: var(--glass-bg); color: var(--text-secondary); }
.web-badge-muted { background: var(--glass-bg); color: var(--text-muted); }

/* ============ 多列卡片网格 ============ */
.web-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.web-card-grid .web-card { margin-top: 0; }

/* 球员卡片 */
.web-player-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0; object-fit: cover;
  background: var(--bg-tertiary); border: 1px solid var(--glass-border);
}
.web-card.player-card { cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.web-card.player-card.selected {
  background: rgb(var(--primary-color-rgb) / 0.08);
  border-color: var(--primary-color);
}
.web-league-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch;
}
.web-league-grid .web-card { margin-top: 0; }
.web-lb-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start;
}
.web-lb-grid .web-card { margin-top: 0; }
.web-team-click { cursor: pointer; }
.web-team-click:hover { text-decoration: underline; color: var(--primary-color); }
@media (max-width: 700px) { .web-lb-grid { grid-template-columns: 1fr; } }

/* 球队卡片 */
.web-team-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all 0.15s;
  position: relative; overflow: hidden; isolation: isolate;
}
.web-team-card-bg {
  position: absolute; right: -50px; top: 50%; transform: translateY(-50%) rotate(-18deg);
  width: 140px; height: 140px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: 0.1; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  mask-image: linear-gradient(to right, transparent, black);
}

/* 赛季卡片背景（球队详情页，左上角） */
.web-season-card { position: relative; overflow: hidden; isolation: isolate; }
.web-season-card-bg {
  position: absolute; right: -60px; top: -60px; transform: rotate(-18deg);
  width: 560px; height: 560px;
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: 0.1; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  mask-image: linear-gradient(to right, transparent, black);
}
.web-team-card:hover { border-color: rgb(var(--primary-color-rgb) / 0.5); transform: translateY(-2px); }
.web-team-logo {
  width: 46px; height: 46px; border-radius: 50%; object-fit: contain;
  background: var(--bg-tertiary); flex-shrink: 0; position: relative; z-index: 1;
}
.web-team-name { font-size: 15px; font-weight: 700; }
.web-team-meta { font-size: 12px; color: var(--text-muted); }

/* 比赛卡片 */
.web-match-card-grid {
  display: flex; flex-direction: column; gap: 10px;
}
.web-match-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 16px;
}
.web-match-teams { display: flex; align-items: center; justify-content: center; gap: 20px; }
/* 概览卡球队列：logo 在上、队名在下，二者同中轴水平居中 */
.web-match-team { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.web-match-team.right { text-align: center; }
.web-match-team img { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; background: var(--bg-tertiary); flex-shrink: 0; }
.web-match-team .name { font-size: 13px; font-weight: 600; line-height: 1.15; text-align: center; overflow-wrap: break-word; }
.web-match-score { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.web-match-score .colon { color: var(--text-muted); font-weight: 400; font-size: 16px; margin: 0 6px; }
.web-match-info { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* ============ 空状态 & 加载 ============ */
.web-empty {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
  background: var(--glass-bg); border: 1px dashed var(--glass-border); border-radius: 14px;
}
.web-empty i { font-size: 32px; margin-bottom: 12px; display: block; color: var(--text-muted); }
.web-empty h3 { color: var(--text-secondary); font-size: 16px; margin-bottom: 6px; }

.web-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--text-secondary); }
.web-spinner {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--glass-border); border-top-color: var(--primary-color);
  animation: webSpin 0.8s linear infinite;
}
@keyframes webSpin { to { transform: rotate(360deg); } }

/* ============ 模态框 ============ */
.web-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; z-index: 1000; overflow-y: auto;
  backdrop-filter: blur(4px);
}
.web-modal {
  background: var(--bg-secondary); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 24px; width: 100%; max-width: 640px;
  box-shadow: var(--shadow-lg); animation: webFade 0.2s ease;
}
.web-modal.wide { max-width: 900px; }
.web-modal.xwide { max-width: 1180px; }
.web-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.web-modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.web-modal-close:hover { color: var(--text-primary); }
.web-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ============ Toast ============ */
.web-toast-container {
  position: fixed; top: 76px; right: 24px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
}
.web-toast {
  background: var(--bg-secondary); border: 1px solid var(--glass-border);
  border-left: 4px solid var(--primary-color); color: var(--text-primary);
  border-radius: 10px; padding: 12px 16px; font-size: 13px;
  box-shadow: var(--shadow-md); min-width: 220px; max-width: 360px;
  animation: webToastIn 0.25s ease;
}
.web-toast.success { border-left-color: var(--accent-green); }
.web-toast.error { border-left-color: var(--accent-red); }
@keyframes webToastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}

/* ============ 概览页 ============ */
.web-dashboard-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.web-dashboard-grid .web-card + .web-card {
  margin-top: 0;
}
@media (max-width: 900px) { .web-dashboard-grid { grid-template-columns: 1fr; } }

/* ============ 季后赛对阵图 ============ */
.po-bracket-cards { display: flex; flex-direction: column; gap: 20px; }
.po-bracket-cards.above { margin-bottom: 20px; }
.po-bracket-cards:not(.above) { margin-top: 20px; }
.po-bracket-cards .web-card + .web-card { margin-top: 0; }
.po-bracket-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px;
}
.po-bracket-sub { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.po-tree-wrap { overflow-x: auto; padding: 4px 8px 10px; }
.po-tree {
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px; width: 100%; margin: 0 auto;
  position: relative;
}
.po-connectors {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: visible;
}
.po-connectors path {
  fill: none; stroke: var(--text-muted); stroke-width: 2;
  stroke-opacity: 0.75; stroke-linecap: round; stroke-linejoin: round;
}
.po-connectors path.po-third-connector { stroke-dasharray: 5 4; }
.po-round-col {
  display: flex; flex-direction: column; gap: 8px;
  flex: 1 1 120px; min-width: 120px; max-width: 180px;
}
.po-round-body {
  flex: 1; display: flex; flex-direction: column;
  justify-content: space-around; gap: 12px;
}
.po-center-col .po-round-body { justify-content: center; gap: 14px; }
.po-center-spacer { visibility: hidden; pointer-events: none; }
.po-round-title {
  text-align: center; font-size: 11px; font-weight: 700; color: var(--text-secondary);
  padding: 3px 0 5px; border-bottom: 1px solid var(--glass-border);
}
.po-node {
  background: var(--bg-tertiary); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 8px;
  position: relative; z-index: 1;
}
.po-node.bye { border-style: dashed; }
.po-node.live { border-color: var(--accent-red); }
.po-node.conflict { border-color: var(--accent-yellow); }
.po-node.po-locked { background: var(--bg-secondary); }
.po-node-head {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin-bottom: 6px; min-height: 16px;
}
.po-node-label { font-size: 10px; font-weight: 700; color: var(--text-secondary); }
.po-node-status { margin-left: auto; font-size: 9px; color: var(--text-muted); }
.po-trophy { font-size: 11px; }
.po-badge {
  font-size: 9px; line-height: 1.4; padding: 0 5px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-secondary);
  white-space: nowrap;
}
.po-badge.bye { color: var(--accent-gold); }
.po-badge.live { color: var(--accent-red); }
.po-badge.conflict { color: var(--accent-yellow); }
.po-badge.third { color: var(--primary-color); }
.po-team-row {
  display: flex; align-items: center; gap: 6px;
  min-height: 24px; font-size: 12px; color: var(--text-primary);
}
.po-team-row.empty { color: var(--text-muted); font-size: 11px; padding-left: 2px; }
.po-team-row.winner { color: var(--accent-green); font-weight: 700; }
.po-team-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-logo {
  width: 16px; height: 16px; object-fit: contain; flex-shrink: 0;
  border-radius: 50%; background: var(--bg-tertiary);
}
.po-logo-empty {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 11px;
}
/* 概览页对阵图：队名/Logo 与「比赛赛程」卡片保持一致 */
.po-node-readonly .po-team-row { min-height: 38px; font-size: 15px; font-weight: 700; }
.po-node-readonly .po-logo { width: 34px; height: 34px; }
.po-node-readonly .po-logo-empty { font-size: 16px; }
.po-score { font-variant-numeric: tabular-nums; font-weight: 700; margin-left: auto; font-size: 12px; }
.po-vs {
  text-align: center; font-size: 9px; color: var(--text-muted);
  margin: 1px 0; letter-spacing: 1px;
}
.po-node-meta { font-size: 10px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; }
.po-conflict { font-size: 10px; color: var(--accent-yellow); margin-top: 4px; line-height: 1.4; }
.po-side { display: flex; flex-direction: column; gap: 3px; }
.po-side-head { display: flex; justify-content: flex-end; }
.po-side-label { font-size: 9px; line-height: 1; color: var(--text-muted); }
.po-schedule { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.po-schedule .web-input { font-size: 10px; padding: 3px 4px; width: 100%; min-width: 0; }
.po-side .po-team-input { width: 100%; min-width: 0; }
.po-locked-teams .po-team-row { min-height: 22px; }
.po-checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); min-height: 34px; }
.po-bracket-tabs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.po-bracket-tab {
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  color: var(--text-secondary); border-radius: 999px; padding: 4px 12px;
  font-size: 12px; line-height: 1.4; cursor: pointer; font-family: inherit;
}
.po-bracket-tab:hover { color: var(--text-primary); }
.po-bracket-tab.active { border-color: var(--primary-color); color: var(--primary-color); font-weight: 700; }
.po-bracket-tab.po-bracket-new { padding: 4px 9px; }
.po-editor-toolbar {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.po-editor-toolbar .web-form-group { margin-bottom: 0; }
.po-toolbar-name { flex: 0 0 280px; width: 280px; }
.po-toolbar-rounds { width: 160px; flex: 0 0 160px; }
.po-toolbar-third { width: 150px; flex: 0 0 150px; }
.po-delete-btn { margin-left: 0; }
.po-editor-scroll { max-height: 62vh; overflow: auto; }
.po-editor-scroll .po-tree-wrap { overflow-x: visible; }
.po-editor-hint { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }
.po-node-editor .po-team-input { font-size: 11px; padding: 3px 6px; }
@media (max-width: 900px) {
  .po-toolbar-name, .po-toolbar-rounds, .po-toolbar-third { flex: 1 1 100%; width: auto; }
  .po-delete-btn { margin-left: 0; }
  .po-round-col { min-width: 110px; flex-basis: 110px; }
}

/* 概览页 - 排行榜 */
.web-dashboard-lb {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.web-dashboard-lb:last-child { margin-bottom: 0; }
.web-dashboard-lb-header { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.web-dashboard-lb-name { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.web-lb-table { table-layout: fixed; }
.web-lb-table .col-rank { width: 34px; }
.web-lb-table .col-num { width: 46px; }
.web-lb-table th.col-rank,
.web-lb-table td.col-rank { text-align: center; }
/* 概览榜单列较多（已赛/胜/平/负/总得分/总失分/积分），压缩数字列内边距与表头字号，保证「总失分」等表头不折行 */
.web-lb-table th { font-size: 11px; }
.web-lb-table th.col-num,
.web-lb-table td.num { padding-left: 4px; padding-right: 4px; }
.web-lb-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.web-lb-team img {
  width: 20px; height: 20px; border-radius: 50%; object-fit: contain;
  background: var(--bg-tertiary); flex-shrink: 0;
}
.web-lb-team span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 登录/欢迎页 */
.web-auth-wrap {
  max-width: 460px; margin: 60px auto;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 32px;
}
.web-auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.web-auth-desc { font-size: 13px; color: var(--text-secondary); text-align: center; margin-bottom: 24px; }

/* 提示块 */
.web-hint {
  font-size: 12px; color: var(--text-muted); padding: 10px 12px;
  background: rgb(var(--primary-color-rgb) / 0.08); border-radius: 8px;
  border: 1px dashed var(--glass-border); margin-bottom: 14px; line-height: 1.6;
}

/* 性别徽章 */
.web-gender-badge { font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.web-gender-badge.male { background: rgb(52 152 219 / 0.2); color: #74b9ff; }
.web-gender-badge.female { background: rgb(253 121 168 / 0.2); color: #fd79a8; }

/* ============ 赛程日历（单线条表格） ============ */
.web-calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
}
.web-calendar-table th {
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
  background: rgb(var(--primary-color-rgb) / 0.05);
}
.web-calendar-table td,
.web-calendar-table th {
  border-right: 1px solid var(--glass-border);
}
.web-calendar-table th:last-child,
.web-calendar-table td:last-child {
  border-right: none;
}

.web-cal-cell {
  padding: 0;
  vertical-align: top;
  border-bottom: 1px solid var(--glass-border);
}
.web-calendar-table tr:last-child .web-cal-cell {
  border-bottom: none;
}
/* 今天：只靠更深的主题色底纹区分，不加描边（保持整张日历的表格线条干净） */
.web-cal-cell.today {
  background: rgb(var(--primary-color-rgb) / 0.22);
}

.web-cal-cell-date {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 4px;
  border-bottom: 1px solid var(--glass-border);
}
.web-cal-cell-date.today {
  color: var(--primary-color);
  background: rgb(var(--primary-color-rgb) / 0.3);
}
.web-cal-cell-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  min-height: 90px;
}
.web-cal-empty { text-align: center; color: var(--text-muted); font-size: 12px; padding: 8px 0; opacity: 0.5; }

.web-cal-nodate { margin-top: 12px; }

/* 按天串排布局：有比赛的日子为一行，当日比赛卡片横向排列，多天纵向排列 */
.web-day-list {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.web-day-row {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--glass-border);
  align-items: stretch;
}
.web-day-row:last-child { border-bottom: none; }
.web-day-date {
  flex-shrink: 0;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  padding: 4px 0;
}
.web-day-weekday {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.web-day-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.web-day-today {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 0 4px;
  margin-top: 2px;
}
.web-day-date.today .web-day-weekday,
.web-day-date.today .web-day-num {
  color: var(--primary-color);
}
.web-day-matches {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.web-day-matches .web-match-mini {
  width: 220px;
  flex-shrink: 0;
}

/* 按天串排：日期区间上/下的窄空白拖拽行（管理员） */
.web-day-row-empty {
  padding: 3px 12px;
  background: var(--bg-secondary);
}
.web-day-row-empty .web-day-matches {
  align-items: center;
  min-height: 16px;
}
.web-day-drop-hint {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.55;
}

/* 拖拽改期（联赛管理员）：卡片半透明 + 投放目标高亮 */
.web-match-mini.dragging {
  opacity: 0.4;
}
.web-cal-cell.drop-target .web-cal-cell-body,
.web-day-row.drop-target .web-day-matches {
  outline: 2px dashed var(--primary-color);
  outline-offset: -2px;
  border-radius: 6px;
}

.web-match-mini {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.web-match-mini[data-has-stats="1"] { cursor: pointer; }
.web-match-mini:hover { border-color: rgb(var(--primary-color-rgb) / 0.5); }
/* 已完赛卡片不再加绿色左侧竖条（太醒目），保持与其它卡片一致的四边细边框 */

/* 第1行：同一场地时分组居中；存在多场地时 分组(左) + 场地(右) */
.wmm-group {
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wmm-group-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.wmm-group-item {
  font-size: 10px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}

/* 第2/4行：球队行（客队行靠左，主队行靠右） */
.wmm-row-team {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.wmm-side {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 4px;
}
.wmm-away { justify-content: flex-start; }
.wmm-home { justify-content: flex-end; }
.wmm-logo {
  width: 20px; height: 20px; border-radius: 50%; object-fit: contain;
  background: var(--bg-secondary); flex-shrink: 0; cursor: pointer;
}
.wmm-logo-empty {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 12px; cursor: default;
}
.wmm-team {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  white-space: normal; overflow-wrap: break-word;
  line-height: 1.25; min-width: 0; cursor: pointer;
}
.wmm-team:hover { text-decoration: underline; }
/* 球队名称不随胜负变色，仅比分保持胜绿/负红/平黄 */
.wmm-team.win, .wmm-team.loss, .wmm-team.draw { color: var(--text-primary); }
.wmm-score {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  font-variant-numeric: tabular-nums; flex-shrink: 0; line-height: 1.25;
}
.wmm-score.win { color: var(--accent-green); }
.wmm-score.loss { color: var(--accent-red); }
.wmm-score.draw { color: var(--accent-yellow); }
.wmm-time {
  font-size: 10px; color: var(--text-muted); font-weight: 500;
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
  white-space: nowrap;
}
.wmm-venue {
  font-size: 10px; color: var(--text-muted);
  display: flex; align-items: center; gap: 3px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex-shrink: 1;
}
.web-match-mini-cal {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--primary-color); font-size: 10px; line-height: 1;
  display: inline-flex; align-items: center;
}
.web-match-mini-cal:hover { opacity: 0.75; }

/* 第3行：VS（居中、大、顺时针旋转20°、手写英文字体，Windows/Mac 通用） */
.wmm-row-vs {
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.wmm-vs {
  font-family: 'Segoe Script', 'Chalkboard SE', 'Marker Felt', 'Comic Sans MS', 'Snell Roundhand', cursive;
  font-size: 16px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1px; line-height: 1;
  transform: rotate(10deg);
  display: inline-block;
}

/* 第5行：时间(左) + 数据/战绩(右) */
.wmm-bottom-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 2px;
}
.wmm-bottom {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 16px;
}

/* 预测入口行：左"预测" + 右侧 20px 占比色条（绿=客胜 / 黄=平 / 红=主胜；0 票时半透明空轨道） */
.wmm-predict-line {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 2px 0;
}
.wmm-predict-trigger {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; color: var(--primary-color);
  background: none; border: none; cursor: pointer; padding: 0; white-space: nowrap;
}
.wmm-predict-trigger:hover { text-decoration: underline; }
.wmm-predict-trigger.off {
  color: var(--text-muted); cursor: default;
}
.wmm-predict-trigger.off:hover { text-decoration: none; }
.wmm-predict-holder { flex: 1 1 auto; min-width: 0; }
.wmm-predict-row {
  display: flex; align-items: stretch; width: 100%; height: 10px; border-radius: 5px;
  overflow: hidden; background: var(--glass-border);
}
.wmm-predict-row.empty { opacity: 0.4; }
/* 已开始 / 已结束（不可再预测）的比赛，预测占比色条压暗 */
.wmm-predict-row.closed { opacity: 0.4; }
.wmm-predict-seg {
  height: 100%; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.wmm-predict-seg.away { background: var(--accent-green); }
.wmm-predict-seg.draw { background: var(--accent-yellow); }
.wmm-predict-seg.home { background: var(--accent-red); }
.wmm-bottom-btn {
  display: inline-block;
  font-size: 10px; font-weight: 600; color: var(--primary-color);
  background: none; border: none; cursor: pointer; padding: 1px 2px;
}
.wmm-bottom-btn.has { color: var(--primary-color); }
.wmm-bottom-btn:hover { text-decoration: underline; }
.wmm-no-h2h {
  font-size: 10px; font-weight: 500; color: var(--text-muted);
}
.web-match-mini-badge {
  font-size: 9px; color: var(--primary-color); font-weight: 600;
}
.web-match-mini-actions {
  display: flex; gap: 6px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--glass-border); padding-top: 5px; margin-top: 2px;
}
.web-match-mini-actions .web-link { font-size: 11px; }

/* 操作链接 */
.web-link {
  color: var(--primary-color); text-decoration: none; cursor: pointer; font-size: 12px;
  background: none; border: none; padding: 0;
}
.web-link:hover { text-decoration: underline; }
.web-link.danger { color: var(--accent-red); }

/* ==========================================
 * 普通用户账号体系（注册/登录/重置/我的联赛）
 * ========================================== */

.web-login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 4px;
  font-size: 13px;
}

.web-login-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.web-login-links a:hover { text-decoration: underline; }

.web-sms-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.web-sms-row .web-input { flex: 1; min-width: 0; }
.web-sms-row .web-btn { flex-shrink: 0; white-space: nowrap; padding: 0 16px; }

.web-fav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.web-fav-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.web-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.web-fav-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.web-fav-card:hover { border-color: var(--primary-color); }

.web-fav-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.web-fav-card-icon { font-size: 22px; flex-shrink: 0; }

.web-fav-card-info { min-width: 0; }

.web-fav-card-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-fav-card-code {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.web-fav-star {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  margin-left: 8px;
  padding: 0 2px;
  transition: color 0.2s ease;
}

.web-fav-star.active { color: var(--accent-yellow); }

/* ===== 实况「进行中」标签：呼吸红点 + 半角括号局数 ===== */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  margin-right: 5px;
  vertical-align: middle;
  animation: liveDotBreath 1.1s ease-in-out infinite;
}
@keyframes liveDotBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.5); }
}
.live-inning {
  margin-left: 2px;
  font-weight: 700;
  font-style: normal;
}
.web-live-badge,
.wmm-live-badge {
  color: var(--accent-red);
  font-weight: 700;
  white-space: nowrap;
}

/* ===== 赛程卡中间行比分 X : Y（已完赛语义色 / 进行中黑色），无括号 ===== */
.wmm-vs-score {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.wmm-row-vs .colon {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  margin: 0 4px;
  line-height: 1;
}
.wmm-vs-score.win  { color: var(--accent-green); }
.wmm-vs-score.loss { color: var(--accent-red); }
.wmm-vs-score.draw { color: var(--accent-yellow); }

/* 进行中 + 局数：字体调小 */
.wmm-live-badge { font-size: 10px; }
.wmm-live-badge .live-dot { width: 6px; height: 6px; margin-right: 3px; }

/* ===== 「进行中」徽章向移动端看齐：圆角矩形描边、底色淡、红点保持原大小 ===== */
.web-live-badge,
.wmm-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border-radius: 6px;
  border: 1px solid var(--accent-red);
  background: transparent;
  color: var(--accent-red);
  font-weight: 700;
  white-space: nowrap;
  font-size: 10px;
}
.web-live-badge .live-dot,
.wmm-live-badge .live-dot {
  width: 8px;
  height: 8px;
  margin: 0;
}
.web-live-badge .live-inning,
.wmm-live-badge .live-inning {
  margin: 0;
}

/* ===== 进行中徽章呼吸方式修正：红点静止不动，改为整框透明度 0→1→0 循环 ===== */
.live-dot {
  animation: none;   /* 取消红点自身的缩放呼吸 */
}
.web-live-badge,
.wmm-live-badge {
  animation: liveBadgeAlpha 1.4s ease-in-out infinite;
}
@keyframes liveBadgeAlpha {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== 概览「正在进行」：分区标题红点大小呼吸；live 卡局数在比分上方、卡框红边呼吸 ===== */
.dash-live-head-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  margin-right: 6px;
  vertical-align: middle;
  animation: dashHeadDot 1.1s ease-in-out infinite;
}
@keyframes dashHeadDot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.55); }
}
.web-match-live-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.web-live-inning-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.web-match-card.web-match-live {
  border-width: 1.5px;
  animation: webLiveCardBorder 1.6s ease-in-out infinite;
}
@keyframes webLiveCardBorder {
  0%, 100% { border-color: rgba(231, 76, 60, 0.22); }
  50%      { border-color: rgba(231, 76, 60, 0.95); }
}

/* 「正在进行」标题红点：去掉大小变化闪烁，保持静止 */
.dash-live-head-dot { animation: none; }

/* ===== 概览卡三段式布局：左/客队列 · 中/比分列 · 右/主队列 ===== */
.web-match-card.dash-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  column-gap: 6px;
}
.dash-card .web-match-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.dash-card .web-match-col.center { gap: 3px; }
.dash-card .web-match-col img,
.dash-card .web-match-col .web-match-logo-empty {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg-tertiary);
  flex-shrink: 0;
}
.dash-card .web-match-col .web-match-logo-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
}
.dash-card .web-match-col .name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: break-word;
  color: var(--text-primary);
}
/* 中列：比分 / 日期信息 / (未完赛)预测条 */
.dash-card .web-live-inning-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}
.dash-card .web-match-score { font-size: 24px; }
.dash-card .web-match-score.web-match-vs { font-size: 15px; font-weight: 800; color: var(--text-muted); }
.dash-card .web-match-info {
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
}
/* 概览卡预测：顶行「预测 + 色条」，仅占中列宽度 */
.dash-predict-strip {
  display: flex; align-items: center; gap: 6px;
  width: 100%; min-width: 0; margin-top: 4px;
}
.dash-predict-trigger {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; color: var(--primary-color);
  background: none; border: none; cursor: pointer; padding: 0; white-space: nowrap;
}
.dash-predict-trigger:hover { text-decoration: underline; }
.dash-predict-trigger.off { color: var(--text-muted); cursor: default; }
.dash-predict-trigger.off:hover { text-decoration: none; }
.dash-predict-bar {
  flex: 1 1 auto; min-width: 0; height: 10px; border-radius: 5px;
  overflow: hidden; background: var(--glass-border); display: flex;
}
.dash-predict-bar.empty { opacity: 0.4; }
.dash-predict-bar .seg {
  height: 100%; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.dash-predict-bar .seg.away { background: var(--accent-green); }
.dash-predict-bar .seg.draw { background: var(--accent-yellow); }
.dash-predict-bar .seg.home { background: var(--accent-red); }
/* 进行中比分：去掉冒号，中间以局数代替 */
.dash-card .web-match-score.web-live-score {
  display: inline-flex; align-items: center;
}
.dash-card .web-match-score.web-live-score .web-live-inning-num {
  margin: 0 5px; font-size: 14px; font-weight: 700; color: var(--text-muted); line-height: 1;
}

/* ===== 赛程 live 卡：最外层圆角框红边呼吸 ===== */
.web-match-mini[data-status="live"] {
  border-width: 1.5px;
  animation: webLiveCardBorder 1.6s ease-in-out infinite;
}
/* 赛程 live 标记：纯文本「局数：X↑/X↓」，无红点、无闪烁、无描边 */
.wmm-live-badge {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  animation: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

/* ===== 比分冒号：与数字垂直居中、略放大 ===== */
.web-match-score {
  display: inline-flex;
  align-items: center;
}
.web-match-score .colon {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-0.06em);
  margin: 0 5px;
}
.wmm-row-vs .colon {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-0.06em);
  margin: 0 3px;
}
