/* ╔══════════════════════════════════════════════════════════════╗
   ║  风驰直播 — 全局样式  v10                                      ║
   ║  设计系统:Data-Dense Dashboard + Swiss Modernism + Flat       ║
   ║  详见 design-system/MASTER.md                                  ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ───────────────────────  Design Tokens  ─────────────────────── */
:root{
  /* Brand */
  --brand:        #E5001A;
  --brand-600:    #C40017;
  --brand-700:    #9E0013;
  --brand-50:     #FFF1F2;
  /* Header */
  --nav-bg:       #2E3D49;
  --nav-bg-2:     #243240;
  --nav-fg:       #C9D2DA;
  --nav-fg-hov:   #FFFFFF;
  /* Accent */
  --accent-blue:  #2E78D2;
  --accent-blue-2:#1E5FB4;
  --pitch-green:  #2E8B57;
  --pitch-green-2:#3FA56A;
  /* Surfaces */
  --bg:           #F4F6F8;
  --surface:      #FFFFFF;
  --surface-2:    #FAFBFC;
  --border:       #E6EAEE;
  --border-strong:#D5DBE2;
  --divider:      #EEF1F4;
  /* Text */
  --text:         #1F2937;
  --text-2:       #4B5563;
  --text-3:       #6B7280;
  --text-muted:   #9CA3AF;
  --link:         var(--brand);
  /* Status */
  --ok:           #16A34A;
  --warn:         #F59E0B;
  --err:          #DC2626;
  /* Elevation */
  --shadow-1:     0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.02);
  --shadow-2:     0 4px 16px rgba(15,23,42,.08);
  --shadow-fab:   0 6px 18px rgba(229,0,26,.35);
  --ring:         0 0 0 3px rgba(229,0,26,.18);
  /* Radii */
  --radius-xs:    2px;
  --radius-sm:    4px;
  --radius-md:    6px;
  --radius-lg:    10px;
  --radius-pill:  999px;
  /* Motion */
  --ease:         cubic-bezier(.2,.7,.2,1);
  --dur-fast:     120ms;
  --dur:          200ms;
  /* Layout */
  --container:    1000px;
  --pad-x:        16px;
  --row-h:        46px;
  --header-h:     44px;
  --header-h-2:   56px;
  /* Fonts */
  --font-zh: "PingFang SC","Microsoft YaHei","Hiragino Sans GB","Noto Sans SC",sans-serif;
  --font-num: "Inter","SF Pro Display","Roboto",var(--font-zh);
}

/* ───────────────────────────  Reset  ─────────────────────────── */
*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ font-size:14px; }
body{
  font-family: var(--font-zh);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a{ text-decoration:none; color:inherit; }
ul,ol{ list-style:none; }
img,svg{ display:block; max-width:100%; }
button{ background:none; border:none; cursor:pointer; font-family:inherit; font-size:inherit; color:inherit; }
table{ border-collapse:collapse; width:100%; }
:focus-visible{ outline:none; box-shadow: var(--ring); }
.num,.score,.time{ font-family: var(--font-num); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:1ms!important;
    transition-duration:1ms!important;
  }
}

/* ═════════════════════════  Header  ═══════════════════════════ */
.site-header{
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%);
  border-top: 3px solid var(--brand);
  position: sticky;
  top:0;
  z-index: 50;
}
.header-top{
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Logo 行 */
.header-logo-row{
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-logo-inner{
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h-2);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-logo{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}
.site-logo .logo-mark{
  width: 30px; height: 30px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  letter-spacing: 0;
}
.site-logo:hover{ color: var(--brand-600); }

/* 顶部导航 Tab(频道) */
.top-nav{
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar{ display:none; }
.top-nav a{
  position: relative;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--nav-fg);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.top-nav a:hover{ color: var(--nav-fg-hov); background: rgba(255,255,255,.06); }
.top-nav a.active{
  color: #fff;
  background: rgba(255,255,255,.10);
}
.top-nav a.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:-1px;
  height:2px;
  background: var(--brand);
  border-radius: 2px;
}

/* 顶部右侧搜索/小标 */
.header-aux{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-fg);
  font-size: 12px;
}
.header-aux .header-date{
  font-family: var(--font-num);
  opacity:.8;
}

/* ════════════════════════  League Quick Nav  ══════════════════ */
.league-nav{
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.league-nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.league-btn{
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.league-btn:hover{ background: var(--brand-600); color:#fff; }
.league-btn.active{ background: var(--brand-700); }

/* ═══════════════════════  Main Wrap  ═════════════════════════ */
.main-wrap{
  max-width: var(--container);
  margin: 12px auto 32px;
  padding: 0 var(--pad-x);
}
.breadcrumb{
  color: var(--text-3);
  font-size: 12px;
  padding: 4px 0 12px;
}
.breadcrumb a{ color: var(--text-2); }
.breadcrumb a:hover{ color: var(--brand); }
.breadcrumb span{ margin: 0 6px; color: var(--text-muted); }

/* ═══════════════════════  Match Box  ═════════════════════════ */
.match-box{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.match-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
  gap: 12px;
  flex-wrap: wrap;
}
.date-tabs{ display: flex; gap: 4px; flex-wrap: wrap; }
.date-tab{
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--border);
  user-select: none;
  transition: all var(--dur-fast) var(--ease);
}
.date-tab:hover{ color: var(--text); border-color: var(--border-strong); }
.date-tab.active{
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.filter-tabs{
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px;
}
.filter-tab{
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
  transition: all var(--dur-fast) var(--ease);
}
.filter-tab:hover{ color: var(--text); }
.filter-tab.active{
  background: var(--brand);
  color: #fff;
}

/* 日期分组头 */
.date-section-header{
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue-2) 100%);
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.date-section-header::before{
  content:"";
  display: inline-block;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
}

/* 赛程行 */
.match-list{ background: #fff; }
.match-row{
  display: grid;
  grid-template-columns: 60px 110px 1fr 56px 1fr 170px;
  align-items: center;
  height: var(--row-h);
  padding: 0 16px;
  border-bottom: 1px dashed var(--divider);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.match-row:last-child{ border-bottom: 1px solid var(--border); }
.match-row:hover{ background: var(--surface-2); }
.match-row.is-hot{
  box-shadow: inset 3px 0 0 var(--brand);
  background: linear-gradient(to right, rgba(229,0,26,.07) 0%, transparent 55%);
}
.match-row.is-hot .team-name,
.match-row.is-hot .col-league{ font-weight: 700; color: var(--brand); }
.match-row.is-finished{ opacity: .55; }

.col-time{
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.col-league{
  font-size: 12px;
  color: var(--text-3);
  padding-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-home, .col-away{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  min-width: 0;
}
.col-home{ justify-content: flex-end; padding-right: 0; }
.col-away{ justify-content: flex-start; padding-left: 0; }
.col-home .team-name,
.col-away .team-name{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-logo{
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.team-logo img{
  width: 28px; height: 28px;
  object-fit: contain;
}
.col-score{
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 1px;
}
.col-score.is-live{ color: var(--brand); }
.col-status{ display: flex; justify-content: flex-end; }

/* 状态按钮 */
.btn-live, .btn-soon, .btn-not, .btn-finished{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 78px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.btn-live{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-live::before{
  content:"";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulseRed 1.2s ease-in-out infinite;
}
.btn-live:hover{ background: var(--brand-600); border-color: var(--brand-600); }
.btn-soon{
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-soon:hover{ background: var(--brand-50); }
.btn-not{
  background: #fff;
  color: var(--text-3);
  border-color: var(--border-strong);
  cursor: default;
}
.btn-finished{
  background: var(--divider);
  color: var(--text-3);
  cursor: default;
}
@keyframes pulseRed{
  0%,100%{ opacity:1; transform: scale(1); }
  50%{ opacity:.4; transform: scale(.8); }
}

/* ════════════════════════  Loading / Empty  ═══════════════════ */
.loading-state, .empty-state{
  padding: 60px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.loading-dot{
  display: inline-block;
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes dotPulse{
  0%,100%{ opacity: .3; }
  50%{ opacity: 1; }
}

/* ════════════════════════  Player Detail Page  ════════════════ */
.detail-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.detail-main, .detail-aside{ min-width: 0; }

/* —— 比分卡 —— */
.match-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  margin-bottom: 16px;
}
.match-card-hd{
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
}
.match-title{
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.match-subtitle{
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
}

.score-section{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 24px;
  gap: 16px;
}
.score-team{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.score-team-logo{
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.score-team-logo img,
.score-team-logo svg{
  width: 72px; height: 72px; object-fit: contain;
}
.score-team-name{
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}
.score-center{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}
.score-num{
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 4px;
  line-height: 1.1;
}
.score-vs{
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 4px;
}
.score-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-50);
}
.score-status.is-live::before{
  content:"";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulseRed 1.2s infinite;
}
.score-time{
  font-size: 12px;
  color: var(--text-3);
}

/* 分节比分小表(仅篮球, 比分中央下方) */
.qtable{
  margin-top: 8px;
  font-size: 12.5px;
  border-collapse: collapse;
}
.qtable th, .qtable td{
  padding: 2px 10px;
  text-align: center;
  font-weight: 500;
  font-family: var(--font-num);
}
.qtable thead th{
  color: var(--text-3);
  font-weight: 600;
}
.qtable tbody td:first-child{
  color: var(--text-2);
  text-align: left;
  font-family: var(--font-zh);
  font-weight: 500;
  padding-right: 12px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qtable tbody td{ color: var(--text); }

/* —— 直播信号(v2 — 简洁标 + 蓝色胶囊按钮) —— */
.stream-section{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px 18px;
  border-top: 1px solid #E6EAEE;
  background: #fff;
  flex-wrap: wrap;
}
.stream-section-label{
  flex-shrink: 0;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.stream-btns{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.stream-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 18px;
  background: #EEF5FF;
  color: #2A6DC7;
  border: 1.5px solid #4A8FE8;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.stream-btn:hover{
  background: #2A6DC7;
  color: #fff;
  border-color: #2A6DC7;
}
.stream-btn.is-primary{
  background: #2A6DC7;
  color: #fff;
}
.stream-btn.is-primary:hover{
  background: #1E5FB4;
  border-color: #1E5FB4;
}
.stream-btn-placeholder{
  flex: 1;
  text-align: left;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* —— Lineup / 球场 —— */
.lineup-section, .stats-section{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
  overflow: hidden;
}
.section-hd{
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
}
.pitch-header{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-2);
  background: #F9FAFB;
  border-bottom: 1px solid var(--divider);
}
.ph-home{ text-align: left; font-weight: 600; }
.ph-title{ font-weight: 600; color: var(--text-3); font-size: 12px; letter-spacing: 2px; }
.ph-away{ text-align: right; font-weight: 600; }

.pitch{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 360px;
  background:
    repeating-linear-gradient(90deg,
      var(--pitch-green) 0,
      var(--pitch-green) 56px,
      var(--pitch-green-2) 56px,
      var(--pitch-green-2) 112px);
  overflow: hidden;
}
.pitch::before{
  /* 中线 */
  content:"";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255,255,255,.55);
}
.pitch::after{
  /* 中圈 */
  content:"";
  position: absolute;
  left: 50%; top: 50%;
  width: 80px; height: 80px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}
.pitch-team{
  display: flex;
  position: relative;
  z-index: 1;
}
.pitch-team.home{ flex-direction: row; }
.pitch-team.away{ flex-direction: row-reverse; }
.pitch-line{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
}
.pitch-player{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pitch-player-dot{
  width: 38px; height: 42px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.pitch-player-dot svg{ width: 100%; height: 100%; }
.pitch-player-name{
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  background: rgba(0,0,0,.35);
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subs-list{
  padding: 14px 16px;
  border-top: 1px solid var(--divider);
  background: #FAFBFC;
}
.subs-title{
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.subs-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sub-chip{
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--text-2);
}

/* —— 统计条 —— */
.stats-section #statsBody{ padding: 6px 0; }
.stat-row{
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  padding: 8px 20px;
  gap: 16px;
  border-bottom: 1px solid var(--divider);
}
.stat-row:last-child{ border-bottom: none; }
.stat-val{
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.stat-val:first-child{ text-align: right; color: var(--brand); }
.stat-val:last-child{ text-align: left; color: var(--accent-blue); }
.stat-bar-wrap{ display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-name{
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.stat-bars{
  display: flex;
  width: 100%;
  height: 8px;
  background: var(--divider);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.stat-bar{
  height: 100%;
  transition: width 400ms var(--ease);
}
.stat-bar.home{ background: var(--brand); }
.stat-bar.away{ background: var(--accent-blue); }

/* —— 右侧 Aside —— */
.detail-aside .article-box,
.detail-aside .aside-box{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
  overflow: hidden;
}
.article-hd, .aside-hd{
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-hd::before, .aside-hd::before{
  content:"";
  width: 3px; height: 14px;
  background: var(--brand);
  border-radius: 2px;
}
.article-body{ padding: 14px; }
.article-body p{
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
}
.article-body p strong{ color: var(--text); }
.article-body .article-disclaimer{
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--divider);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

.aside-box .hot-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12px;
  color: var(--text-2);
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.aside-box .hot-item:last-child{ border-bottom: none; }
.aside-box .hot-item:hover{ background: var(--surface-2); color: var(--text); }
.aside-box .hot-num{
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  background: var(--divider);
  color: var(--text-3);
  border-radius: 2px;
  flex-shrink: 0;
}
.aside-box .hot-num.t3{ background: var(--brand); color:#fff; }

/* ════════════════════════  Basketball Page  ═══════════════════ */
.bball-layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
.bball-main, .bball-aside{ min-width: 0; }

/* Bracket */
.bracket-box, .standings-box, .nba-intro-box, .bball-tabs-box{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative; /* 修复：为内部 absolute 元素提供定位基准 */
}
.bracket-hd, .standings-hd, .nba-intro-hd{
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border-bottom: 2px solid var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bracket-hd::before, .standings-hd::before, .nba-intro-hd::before{
  content:"";
  width: 3px; height: 14px;
  background: var(--brand);
  border-radius: 2px;
}
.bracket-body{ padding: 12px 14px; }
.bracket-conf-title{
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding: 4px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}
.bracket-matchup{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 6px;
}
.bracket-team{
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-3);
  border-bottom: 1px solid var(--divider);
}
.bracket-team:last-child{ border-bottom: none; }
.bracket-team.winner{
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}
.bracket-seed{
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 18px; height: 16px;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.bracket-team.winner .bracket-seed{
  background: var(--brand);
  color:#fff;
  border-color: var(--brand);
}
.bracket-wins{
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* Standings */
.standings-tabs{
  display: flex;
  border-bottom: 1px solid var(--divider);
}
.standings-tab{
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--dur-fast) var(--ease);
}
.standings-tab:hover{ color: var(--text); }
.standings-tab.active{
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.standings-table{
  font-size: 12px;
}
.standings-table th{
  padding: 6px 10px;
  text-align: center;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--divider);
  font-size: 11px;
}
.standings-table th:first-child{ text-align: left; }
.standings-table td{
  padding: 6px 10px;
  text-align: center;
  border-bottom: 1px solid var(--divider);
  color: var(--text-2);
  font-family: var(--font-num);
}
.standings-table td:first-child{
  text-align: left;
  font-family: var(--font-zh);
  color: var(--text);
  font-weight: 500;
}
.stand-rank{
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  background: var(--divider);
  color: var(--text-3);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  border-radius: 2px;
}
.stand-rank.top4{ background: var(--brand); color: #fff; }
.streak-w{ color: var(--brand); font-weight: 700; }
.streak-l{ color: var(--text-3); }

/* NBA intro */
.nba-intro-body{
  padding: 12px 14px 36px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
  position: relative;
  max-height: 200px;
  overflow: hidden;
}
.nba-intro-body.expanded{ max-height: none; }
.nba-intro-body p{ margin-bottom: 8px; }
.nba-intro-more{
  padding: 6px 14px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--brand);
  cursor: pointer;
  font-weight: 600;
}
.nba-intro-more:hover{ color: var(--brand-600); }

/* bball tabs */
.bball-tab-bar{
  display: flex;
  border-bottom: 1px solid var(--divider);
}
.bball-tab{
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--dur-fast) var(--ease);
}
.bball-tab:hover{ color: var(--text); }
.bball-tab.active{
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.bball-tab-content{ display: none; }
.bball-tab-content.active{ display: block; }
.bball-list-item{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.bball-list-item:last-child{ border-bottom: none; }
.bball-list-item:hover{ background: var(--surface-2); }
.bball-item-thumb{
  width: 60px; height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.bball-item-info{ min-width: 0; }
.bball-item-title{
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 500;
}
.bball-list-item:hover .bball-item-title{ color: var(--brand); }
.bball-item-meta{
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-num);
}

/* ════════════════════════  Footer  ═══════════════════════════ */
.site-footer{
  margin-top: 40px;
  background: var(--nav-bg-2);
  color: var(--nav-fg);
  padding: 24px 16px 28px;
  text-align: center;
  font-size: 12px;
}
.site-footer .footer-logo{
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 8px 0;
}
.site-footer .footer-links{
  margin: 8px 0;
  color: rgba(255,255,255,.4);
}
.site-footer .footer-links a{
  color: var(--nav-fg);
  margin: 0 6px;
  transition: color var(--dur-fast) var(--ease);
}
.site-footer .footer-links a:hover{ color: var(--brand); }
.site-footer .footer-disclaimer{
  max-width: 800px;
  margin: 6px auto 0;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
}

/* ════════════════════════  Back to Top FAB  ═══════════════════ */
.back-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-fab);
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 60;
}
.back-top.visible{ opacity: 1; pointer-events: auto; }
.back-top:hover{ background: var(--brand-600); }
.back-top svg{ width: 20px; height: 20px; }

/* ════════════════════════  Video Grid (录像页)  ═══════════════ */
.page-filter{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  margin-bottom: 14px;
}
.page-filter-label{
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
  margin-right: 4px;
}
.page-filter .filter-btn{
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.page-filter .filter-btn:hover{ color: var(--text); border-color: var(--border-strong); }
.page-filter .filter-btn.active{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.video-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.video-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  cursor: pointer;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.video-card:hover{ box-shadow: var(--shadow-2); }
.video-card:hover .video-overlay{ opacity: 1; }
.video-thumb{
  position: relative;
  aspect-ratio: 16/9;
  background: var(--divider);
  overflow: hidden;
}
.video-thumb-bg{
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 2px;
}
.video-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.play-circle{
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(229,0,26,.92);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.play-circle::before{
  content:"";
  width: 0; height: 0;
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video-info{ padding: 10px 12px 12px; }
.video-title{
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta{
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-num);
}

/* ════════════════════════  Pagination  ════════════════════════ */
.pagination{
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 8px;
}
.page-btn{
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--font-num);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.page-btn:hover{ color: var(--brand); border-color: var(--brand); }
.page-btn.active{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  cursor: default;
}

/* ════════════════════════  News (资讯页)  ═════════════════════ */
.news-layout{
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}
.news-main{ min-width: 0; }
.news-list{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.news-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.news-item:last-child{ border-bottom: none; }
.news-item:hover{ background: var(--surface-2); }
.news-thumb{
  width: 120px;
  height: 80px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--divider);
}
.news-body{ min-width: 0; }
.news-title{
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item:hover .news-title{ color: var(--brand); }
.news-meta{
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-num);
}
.news-summary{
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-aside .aside-box .aside-hd{
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.news-aside .aside-box .aside-hd::before{
  content:"";
  width: 3px; height: 14px;
  background: var(--brand);
  border-radius: 2px;
}

/* ════════════════════════  Responsive  ════════════════════════ */
@media (max-width: 960px){
  .detail-layout, .bball-layout, .news-layout{ grid-template-columns: 1fr; }
  .match-row{
    grid-template-columns: 56px 1fr 80px 1fr 88px;
  }
  .match-row .col-league{ display: none; }
  .top-nav a{ padding: 6px 10px; font-size: 12px; }
  .video-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px){
  :root{ --pad-x: 12px; }
  .match-row{
    grid-template-columns: 44px 1fr 40px 1fr 62px;
    column-gap: 4px;
    padding: 6px 8px;
    min-height: var(--row-h);
    height: auto;
    font-size: 13px;
  }
  .col-home{ padding-right: 0; gap: 5px; }
  .col-away{ padding-left: 0; gap: 5px; }
  .col-home .team-name,
  .col-away .team-name{
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: clip;
    word-break: break-word;
  }
  .team-logo{ width: 20px; height: 20px; }
  .team-logo img{ width: 20px; height: 20px; }
  .col-time{ font-size: 12px; }
  .col-score{ font-size: 13px; letter-spacing: 0; }
  .btn-live, .btn-soon, .btn-not, .btn-finished{
    min-width: 0;
    width: 100%;
    padding: 0 4px;
    font-size: 11px;
    height: 24px;
    gap: 2px;
  }
  .score-num{ font-size: 28px; }
  .score-team-logo{ width: 56px; height: 56px; }
  .score-team-logo img,
  .score-team-logo svg{ width: 56px; height: 56px; }
  .stream-btn{ flex: 1 1 calc(50% - 8px); }
  .league-nav-inner{ gap: 6px; padding: 8px var(--pad-x); }
  .league-btn{ padding: 4px 10px; font-size: 12px; }
  .header-aux{ display: none; }
  .video-grid{ grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-item{ grid-template-columns: 96px 1fr; gap: 10px; padding: 12px; }
  .news-thumb{ width: 96px; height: 64px; }
  .news-title{ font-size: 14px; }
}
