/* ==========================================================================
   英超实时积分榜 Premier League Live Standings - 官方风格样式表
   ========================================================================== */

:root {
  --pl-purple: #38003c;
  --pl-purple-deep: #240027;
  --pl-neon-green: #00ff85;
  --pl-neon-pink: #e90052;
  --pl-cyan: #04f0ff;
  --pl-gold: #e5b95c;
  --pl-red: #ff3344;
  --pl-yellow: #ffb800;
  
  --bg-dark: #0a0514;
  --bg-card: rgba(28, 16, 48, 0.75);
  --bg-card-hover: rgba(45, 26, 77, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 255, 133, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --ucl-color: #0066ff;
  --uel-color: #ff7700;
  --uecl-color: #00c853;
  --rel-color: #ef4444;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-glow: 0 0 25px rgba(0, 255, 133, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(56, 0, 60, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(0, 255, 133, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(14, 5, 28, 1) 0%, #0a0514 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 60px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   布局容器
   ========================================================================== */
.app-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header 导航栏
   ========================================================================== */
.site-header {
  border-bottom: 1px solid var(--border-glass);
  background: rgba(10, 5, 20, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pl-logo-wrapper {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38003c 0%, #17001a 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(56, 0, 60, 0.5);
  padding: 5px;
  overflow: hidden;
  box-sizing: border-box;
}

.pl-logo-wrapper img,
.pl-logo-img,
.pl-logo-wrapper svg {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  display: block;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 40%, var(--pl-neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 255, 133, 0.15);
  color: var(--pl-neon-green);
  border: 1px solid rgba(0, 255, 133, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  -webkit-text-fill-color: initial;
}

.brand-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 刷新与状态 */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.status-pill.is-live {
  border-color: rgba(0, 255, 133, 0.4);
  background: rgba(0, 255, 133, 0.08);
  color: var(--pl-neon-green);
  font-weight: 600;
}

.live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--pl-neon-green);
  box-shadow: 0 0 10px var(--pl-neon-green);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 255, 133, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(0, 255, 133, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 255, 133, 0); }
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(56, 0, 60, 0.9) 0%, rgba(30, 10, 45, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-refresh:hover {
  border-color: var(--pl-neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 133, 0.25);
  transform: translateY(-1px);
}

.btn-refresh svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s ease;
}

.btn-refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   正在进行比赛专区 (Live Spotlight)
   ========================================================================== */
.live-spotlight-section {
  margin-top: 24px;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(38, 12, 54, 0.85) 0%, rgba(18, 8, 32, 0.95) 100%);
  border: 1px solid rgba(0, 255, 133, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 35px rgba(0, 255, 133, 0.12);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pl-neon-pink), var(--pl-neon-green), var(--pl-cyan));
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 0, 82, 0.18);
  border: 1px solid rgba(233, 0, 82, 0.45);
  color: #ff3377;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spotlight-match-venue {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 比赛对阵主面板 */
.matchup-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 0 20px;
}

.team-side {
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-side.home {
  justify-content: flex-end;
  text-align: right;
}

.team-side.away {
  justify-content: flex-start;
  text-align: left;
}

.team-side .team-info .team-zh {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.team-side .team-info .team-en {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.team-side .team-info .team-live-rank {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.team-logo-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px;
  transition: transform 0.3s ease;
}

.team-logo-wrapper:hover {
  transform: scale(1.08);
}

.team-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 比分中轴 */
.score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.score-board {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 5, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 8px 24px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}

.score-digit {
  font-size: 3rem;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-divider {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dim);
}

.match-clock-pill {
  margin-top: 12px;
  background: var(--pl-neon-green);
  color: #0c0717;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 15px rgba(0, 255, 133, 0.4);
}

/* 进球及关键事件时间轴 */
.match-events-timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  margin-top: 10px;
}

.events-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.events-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.event-chip.is-goal {
  background: rgba(0, 255, 133, 0.12);
  border-color: rgba(0, 255, 133, 0.3);
  color: #fff;
}

.event-chip .chip-time {
  font-weight: 700;
  color: var(--pl-neon-green);
}

/* 实时推演影响提示栏 */
.live-impact-notice {
  background: rgba(0, 255, 133, 0.07);
  border: 1px dashed rgba(0, 255, 133, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-impact-notice .impact-icon {
  font-size: 1.2rem;
}

.live-impact-notice strong {
  color: var(--pl-neon-green);
}

/* 无进行中比赛时的占位卡片 */
.no-live-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.no-live-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.no-live-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.no-live-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.no-live-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ==========================================================================
   本轮赛程滚动条 (Gameweek Strip)
   ========================================================================== */
.gameweek-section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fixtures-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.fixture-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.fixture-card.is-live {
  border-color: var(--pl-neon-green);
  background: rgba(30, 15, 45, 0.9);
  box-shadow: 0 0 15px rgba(0, 255, 133, 0.15);
}

.fixture-card.is-live::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--pl-neon-green);
}

.fixture-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.fixture-state-tag {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.fixture-state-tag.tag-live {
  background: rgba(0, 255, 133, 0.2);
  color: var(--pl-neon-green);
}

.fixture-state-tag.tag-ft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.fixture-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0;
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.fixture-score {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   积分榜主控栏 (Standings Controls & Filter)
   ========================================================================== */
.standings-section {
  margin-top: 30px;
}

.standings-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 积分榜实时状态徽标 */
.standings-title-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 133, 0.1);
  border: 1px solid rgba(0, 255, 133, 0.35);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pl-neon-green);
  box-shadow: 0 0 15px rgba(0, 255, 133, 0.1);
}

/* 过滤筛选按钮 */
.filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* 搜索框 */
.search-wrapper {
  position: relative;
  min-width: 200px;
}

.search-input {
  width: 100%;
  background: rgba(10, 5, 20, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 7px 12px 7px 32px;
  font-size: 0.82rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--pl-neon-green);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: var(--text-dim);
  pointer-events: none;
}

/* ==========================================================================
   标准积分榜表格 (Standings Table)
   ========================================================================== */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.standings-table th {
  background: rgba(20, 10, 35, 0.95);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.standings-table th:hover {
  color: #fff;
}

.standings-table th.sorted {
  color: var(--pl-neon-green);
}

.standings-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  transition: background 0.2s ease;
}

.standings-table tbody tr {
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.standings-table tbody tr:hover {
  background: var(--bg-card-hover);
}

/* 欧战及保级区域标志线 */
.standings-table tbody tr.zone-ucl td:first-child {
  border-left: 4px solid var(--ucl-color);
}

.standings-table tbody tr.zone-uel td:first-child {
  border-left: 4px solid var(--uel-color);
}

.standings-table tbody tr.zone-uecl td:first-child {
  border-left: 4px solid var(--uecl-color);
}

.standings-table tbody tr.zone-relegation td:first-child {
  border-left: 4px solid var(--rel-color);
}

/* 正在比赛球队行高亮 */
.standings-table tbody tr.is-live-team {
  background: rgba(0, 255, 133, 0.06);
}

.standings-table tbody tr.is-live-team:hover {
  background: rgba(0, 255, 133, 0.12);
}

/* 排名与位次升降 */
.rank-cell {
  width: 65px;
  text-align: center;
}

.rank-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rank-number {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  width: 22px;
  text-align: center;
}

.rank-change {
  font-size: 0.72rem;
  font-weight: 700;
  width: 22px;
}

.rank-change.up {
  color: var(--pl-neon-green);
}

.rank-change.down {
  color: var(--pl-red);
}

.rank-change.same {
  color: var(--text-dim);
}

/* 球队单元格 */
.team-cell {
  min-width: 220px;
}

.team-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-crest {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.team-names-block {
  display: flex;
  flex-direction: column;
}

.team-names-block .zh-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-names-block .en-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 实时比赛比分状态徽章 (领先: 绿 / 落后: 红 / 平局: 黄) */
.live-score-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
  transition: all 0.25s ease;
}

.live-score-tag .live-pulse-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

/* 领先: 绿色 */
.live-score-tag.tag-leading {
  background: rgba(0, 255, 133, 0.16);
  border: 1px solid rgba(0, 255, 133, 0.5);
  color: #00ff85;
}

.live-score-tag.tag-leading .live-pulse-dot {
  background-color: #00ff85;
  box-shadow: 0 0 8px #00ff85;
}

/* 落后: 红色 */
.live-score-tag.tag-trailing {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ff6b6b;
}

.live-score-tag.tag-trailing .live-pulse-dot {
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* 暂时打平: 黄色 */
.live-score-tag.tag-drawing {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #ffd000;
}

.live-score-tag.tag-drawing .live-pulse-dot {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* 数值列样式 */
.num-cell {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
}

.num-cell.bold {
  font-weight: 700;
}

.diff-cell {
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.diff-cell.positive {
  color: var(--pl-neon-green);
}

.diff-cell.negative {
  color: var(--pl-red);
}

.diff-cell.zero {
  color: var(--text-dim);
}

/* 积分核心列 */
.pts-cell {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.pts-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  min-width: 36px;
}

.is-live-team .pts-badge {
  background: rgba(0, 255, 133, 0.2);
  color: var(--pl-neon-green);
  border: 1px solid rgba(0, 255, 133, 0.4);
}

/* 近期走势 (Form) */
.form-cell {
  text-align: center;
  min-width: 140px;
}

.form-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.form-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.form-badge.W {
  background-color: #10b981;
}

.form-badge.D {
  background-color: #64748b;
}

.form-badge.L {
  background-color: #ef4444;
}

/* 区域图例 */
.table-legend-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(15, 8, 25, 0.85);
  border-top: 1px solid var(--border-glass);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-dot.ucl { background: var(--ucl-color); }
.legend-dot.uel { background: var(--uel-color); }
.legend-dot.uecl { background: var(--uecl-color); }
.legend-dot.relegation { background: var(--rel-color); }


/* ==========================================================================
   球队详情 Modal (Team Detail Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: linear-gradient(135deg, #240c35 0%, #11061c 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-team-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-team-crest {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.modal-team-titles h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.modal-team-titles p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.modal-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.modal-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.modal-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

/* ==========================================================================
   响应式调整
   ========================================================================== */
@media (max-width: 900px) {
  .matchup-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-side.home, .team-side.away {
    justify-content: center;
    text-align: center;
  }
  .team-side.home {
    flex-direction: row-reverse;
  }
  .score-center {
    order: -1;
  }
  .table-container {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .standings-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrapper {
    width: 100%;
  }
  .modal-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
