/* 老西儿侃篮球 · 比分牌样式 · 无外网字体依赖 */
:root {
  --bg: #0a0a0a;
  --bg2: #141414;
  --card: #1a1a1a;
  --line: #2a2a2a;
  --text: #ffffff;
  --muted: #a8a8a8;
  --yellow: #FFC928;
  --red: #B23830;
  --green: #2ecc71;
  --danger: #e74c3c;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,.45);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: #111;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }

/* ========== 控制台 ========== */
.console-body {
  background: #0e0e0e;
  min-height: 100vh;
  padding: 16px 16px 48px;
}
.console-wrap {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.console-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  border: 1px solid #2c2c2c;
  border-radius: var(--radius);
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: .5px;
}
.brand-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}
.console-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}
.console-header h1 span { color: var(--yellow); }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--yellow);
  letter-spacing: .5px;
  text-transform: none;
}
.panel h2 small { color: var(--muted); font-weight: 500; margin-left: 8px; }

.score-board-mini {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  text-align: center;
}
.score-board-mini .team-name {
  font-size: 18px;
  font-weight: 800;
}
.score-board-mini .big-score {
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: 1px;
}
.score-board-mini .meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.btn {
  appearance: none;
  border: 1px solid #333;
  background: #222;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s;
  user-select: none;
}
.btn:hover { background: #2c2c2c; border-color: #555; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--yellow); color: #111; border-color: #e0ad10; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { background: var(--red); border-color: #8f2a24; }
.btn.ghost { background: transparent; }
.btn.lg { padding: 16px 20px; font-size: 18px; min-width: 72px; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.on { outline: 2px solid var(--yellow); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  background: #101010;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.field textarea { min-height: 72px; resize: vertical; }

.event-input-row {
  display: flex;
  gap: 8px;
}
.event-input-row input {
  flex: 1;
  background: #101010;
  border: 1px solid #333;
  color: #fff;
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 16px;
}

.templates { display: flex; flex-wrap: wrap; gap: 6px; }
.templates .btn { font-weight: 600; }

.kbd {
  display: inline-block;
  background: #222;
  border: 1px solid #444;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
.hint code { color: var(--yellow); }

.player-stats-line {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 14px; color: var(--muted); margin-bottom: 8px;
}
.player-stats-line b { color: #fff; font-size: 18px; }

.toast {
  position: fixed; right: 16px; bottom: 16px;
  background: #1f1f1f; border: 1px solid #444;
  padding: 10px 14px; border-radius: 10px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 99;
}
.toast.show { opacity: 1; }

/* ========== 直播画面 ========== */
.live-body {
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.stage-frame {
  position: relative;
  background: #000;
  box-shadow: 0 0 0 1px #222, var(--shadow);
  overflow: hidden;
}
.stage-frame.portrait {
  width: min(100vw - 24px, calc((100vh - 24px) * 9 / 16));
  aspect-ratio: 9 / 16;
}
.stage-frame.landscape {
  width: min(100vw - 24px, calc((100vh - 24px) * 16 / 9));
  aspect-ratio: 16 / 9;
}

.stage {
  width: 100%;
  height: 100%;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(178,56,48,.22), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(255,201,40,.08), transparent 45%),
    linear-gradient(180deg, #121212 0%, #070707 55%, #000 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 3.2% 4%;
  font-family: var(--font);
}

/* 装饰线 */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent 48%, rgba(255,255,255,.03) 50%, transparent 52%, transparent 100%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(255,255,255,.015) 18px 19px
    );
  pointer-events: none;
}

.live-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 0.6%;
}
.live-top-right {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
}
.live-badge {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: clamp(11px, 2.4vw, 16px);
  padding: .3em .65em;
  border-radius: 6px;
  letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(178,56,48,.4);
  white-space: nowrap;
}
.live-orientation-tag {
  font-size: clamp(9px, 1.6vw, 11px);
  color: var(--muted);
  border: 1px solid #333;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: .7;
}

.score-hero {
  position: relative;
  z-index: 2;
  margin-top: 2.5%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2%;
  align-items: center;
}
.team-block {
  text-align: center;
  min-width: 0;
}
.team-logo {
  width: clamp(48px, 12vw, 96px);
  height: clamp(48px, 12vw, 96px);
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #1c1c1c;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 900;
  color: var(--yellow);
  font-size: clamp(16px, 4vw, 28px);
}
.team-logo img {
  width: 100%; height: 100%; object-fit: cover;
}
.team-title {
  font-size: clamp(14px, 3.6vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  word-break: break-word;
}
.score-center {
  text-align: center;
  padding: 0 4px;
}
.score-digits {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .15em;
  font-weight: 900;
  font-size: clamp(42px, 11vw, 92px);
  line-height: .95;
  letter-spacing: -1px;
}
.score-digits .sep {
  color: var(--yellow);
  font-size: .55em;
  padding: 0 .05em;
}
.score-digits .num {
  min-width: 1.1em;
  transition: transform .25s ease, color .25s ease;
}
.score-digits .num.bump {
  color: var(--yellow);
  transform: scale(1.18);
}
.period-clock {
  margin-top: 6px;
  font-size: clamp(13px, 3vw, 22px);
  font-weight: 700;
  color: #eee;
}
.period-clock .clock {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  margin-left: 8px;
}
.period-clock .running-dot {
  display: inline-block;
  width: .55em; height: .55em;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(46,204,113,.6);
  animation: pulse 1.2s infinite;
}
.period-clock .running-dot.off {
  background: #666;
  animation: none;
  box-shadow: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.55); }
  70% { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

.flash-banner {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%) scale(.9);
  background: rgba(255,201,40,.95);
  color: #111;
  font-weight: 900;
  font-size: clamp(18px, 4.5vw, 36px);
  padding: .4em .9em;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
}
.flash-banner.show {
  animation: flashPop .9s ease forwards;
}
@keyframes flashPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -40%) scale(1); }
}

.player-card {
  position: relative;
  z-index: 2;
  margin-top: 3%;
  background: linear-gradient(135deg, rgba(26,26,26,.95), rgba(18,18,18,.92));
  border: 1px solid #333;
  border-left: 4px solid var(--yellow);
  border-radius: 14px;
  padding: 3% 3.5%;
  box-shadow: var(--shadow);
}
.player-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.player-card-head .name {
  font-size: clamp(16px, 4vw, 28px);
  font-weight: 900;
}
.player-card-head .name .num {
  color: var(--yellow);
  margin-right: 6px;
}
.player-card-head .tag {
  font-size: clamp(10px, 2vw, 14px);
  color: var(--muted);
  margin-top: 2px;
}
.status-pill {
  font-size: clamp(11px, 2.2vw, 14px);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #333;
  color: #bbb;
}
.status-pill.on {
  background: rgba(46,204,113,.18);
  color: var(--green);
  border: 1px solid rgba(46,204,113,.45);
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 8px;
}
.player-grid .stat {
  text-align: center;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 6px 2px;
}
.player-grid .stat .v {
  font-size: clamp(16px, 3.8vw, 28px);
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.player-grid .stat .v.hi { color: var(--yellow); }
.player-grid .stat .k {
  font-size: clamp(9px, 1.8vw, 12px);
  color: var(--muted);
  margin-top: 2px;
}

/* ---- 关注球队名单（11/3 新增，代替个人卡；风格同 .player-card） ---- */
.team-card {
  position: relative;
  z-index: 2;
  margin-top: 3%;
  background: linear-gradient(135deg, rgba(26,26,26,.95), rgba(18,18,18,.92));
  border: 1px solid #333;
  border-left: 4px solid var(--yellow);
  border-radius: 14px;
  padding: 2.4% 3% 2.6%;
  box-shadow: var(--shadow);
}
.team-card[hidden], .player-card[hidden] { display: none !important; }
.tc-focus {
  margin: -2% -1% 8px; padding: 8px 10px 10px;
  background: rgba(255,201,40,.08);
  border: 1px solid rgba(255,201,40,.28);
  border-radius: 10px;
}
.tc-focus-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.tc-focus-head .name {
  font-size: clamp(15px, 3.8vw, 26px); font-weight: 900; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-focus-head .name .num { color: var(--yellow); margin-right: 6px; }
.tc-focus-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px;
  text-align: center; font-variant-numeric: tabular-nums;
}
.tc-focus-stats.empty {
  display: block; text-align: left; color: var(--muted);
  font-size: clamp(11px, 2.2vw, 14px); font-weight: 600; padding: 2px 2px 0;
}
.tc-focus-stats span { background: rgba(0,0,0,.25); border-radius: 6px; padding: 4px 2px; }
.tc-focus-stats b {
  display: block; font-size: clamp(14px, 3.2vw, 22px); font-weight: 900; color: #fff; line-height: 1.1;
}
.tc-focus-stats b.hi { color: var(--yellow); }
.tc-focus-stats i {
  display: block; font-style: normal; font-size: clamp(9px, 1.7vw, 11px);
  color: var(--muted); margin-top: 1px; font-weight: 600;
}
.team-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.tc-title { font-size: clamp(15px, 3.6vw, 24px); font-weight: 900; min-width: 0; }
.tc-sub { color: var(--muted); font-size: .62em; font-weight: 700; margin-left: 8px; }
.status-pill.focus {
  background: rgba(255,201,40,.15); color: var(--yellow); border: 1px solid rgba(255,201,40,.45);
}
.tc-table { display: flex; flex-direction: column; gap: 3px; }
.tc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(5, 2.6em);
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  font-size: clamp(12px, 2.7vw, 19px);
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.tc-row > span { text-align: center; color: #eee; font-weight: 700; }
.tc-row > span.nm {
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; color: #fff;
}
.tc-row .nm em { font-style: normal; color: var(--muted); font-size: .8em; margin-right: 5px; font-weight: 700; }
.tc-row .nm .dot {
  display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: #444;
  margin-right: 6px; vertical-align: middle;
}
.tc-row .nm .dot.on { background: var(--green); box-shadow: 0 0 6px rgba(46,204,113,.7); }
.tc-row > span.pts { color: var(--yellow); font-weight: 900; }
.tc-row > span.foul { color: #ff8a80; }
.tc-row.tc-h { background: none; padding-top: 0; padding-bottom: 2px; }
.tc-row.tc-h > span { color: var(--muted); font-size: .72em; font-weight: 700; }
.tc-row.focus {
  background: rgba(255,201,40,.16);
  border-color: rgba(255,201,40,.6);
  box-shadow: inset 4px 0 0 var(--yellow);
}
.tc-row.focus > span { color: #fff; font-weight: 900; }
.tc-row.focus > span.nm, .tc-row.focus .nm em { color: var(--yellow); }

.events-block {
  position: relative;
  z-index: 2;
  margin-top: 2.5%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(12,12,12,.72);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
}
.events-head {
  padding: 10px 14px 8px;
  font-size: clamp(12px, 2.4vw, 16px);
  font-weight: 800;
  color: var(--yellow);
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
}
.events-list {
  flex: 1;
  overflow: hidden;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  font-size: clamp(11px, 2.3vw, 16px);
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  animation: eventIn .35s ease;
}
.event-item.important {
  background: rgba(255,201,40,.12);
  border: 1px solid rgba(255,201,40,.35);
}
.event-item .t {
  color: var(--yellow);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.event-item .x { color: #eee; }
@keyframes eventIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.marquee-bar {
  position: relative;
  z-index: 2;
  margin-top: 2%;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  height: clamp(28px, 5vw, 40px);
  display: flex;
  align-items: center;
}
.marquee-bar .inner {
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
  font-weight: 700;
  font-size: clamp(12px, 2.4vw, 16px);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* 横屏布局微调：压缩纵向间距，事件区更矮 */
.stage-frame.landscape .score-hero { margin-top: 1%; }
.stage-frame.landscape .player-card { margin-top: 1.2%; padding: 1.5% 2%; }
.stage-frame.landscape .team-card { margin-top: 1.2%; padding: 1.2% 2%; }
.stage-frame.landscape .tc-focus { margin: -1% -.5% 6px; padding: 6px 8px; }
.stage-frame.landscape .tc-focus-stats b { font-size: clamp(12px, 1.6vw, 18px); }
.stage-frame.landscape .tc-row { padding: 3px 8px; font-size: clamp(11px, 1.4vw, 16px); }
.stage-frame.landscape .events-block { margin-top: 1%; }
.stage-frame.landscape .player-grid { grid-template-columns: repeat(8, 1fr); }
.stage-frame.landscape .team-logo {
  width: clamp(36px, 6vw, 64px);
  height: clamp(36px, 6vw, 64px);
}

.live-toolbar {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 20;
  display: flex; gap: 6px;
  opacity: .35;
  transition: opacity .2s;
}
.live-toolbar:hover, .live-toolbar:focus-within { opacity: 1; }
.live-toolbar .btn { padding: 6px 10px; font-size: 12px; background: rgba(0,0,0,.7); }

.empty-events {
  color: var(--muted);
  font-size: 13px;
  padding: 12px 4px;
  text-align: center;
}

.auto-banner {
  position: relative; z-index: 3;
  background: rgba(255,201,40,.15);
  border: 1px solid rgba(255,201,40,.45);
  color: var(--yellow);
  font-size: clamp(10px, 1.9vw, 12px);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  margin: 0;
  max-width: 58%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
}
.auto-banner[hidden] { display: none !important; }
.auto-banner.warn {
  background: rgba(178,56,48,.2);
  border-color: rgba(178,56,48,.55);
  color: #ffb4ae;
}

/* ---- 服务端同步状态条 ---- */
.net-bar {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(46,204,113,.08);
  border: 1px solid rgba(46,204,113,.35);
  color: #cfe9d9;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}
.net-bar.warn { background: rgba(178,56,48,.15); border-color: rgba(178,56,48,.5); color: #ffb4ae; }
.net-bar code { color: var(--yellow); background: #1b1b1b; padding: 1px 5px; border-radius: 4px; }
.net-bar .net-token { font-size: 15px; font-weight: 800; letter-spacing: 2px; }
.net-bar .net-auto { color: var(--yellow); }
.net-bar .btn.sm { padding: 2px 8px; font-size: 11px; }
.live-toolbar .net-status {
  align-self: center; font-size: 11px; color: #9be7b8;
  background: rgba(0,0,0,.7); padding: 4px 8px; border-radius: 6px;
}
.live-toolbar .net-status.warn { color: #ffb4ae; }

/* ---- 控制台：关注球队名单预览（11/3） ---- */
.console-teambox[hidden] { display: none !important; }
.console-teambox { margin: 6px 0 10px; font-size: 12px; color: #ddd; }
.console-teambox .ctb-focus { margin-bottom: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255,201,40,.08); border: 1px solid rgba(255,201,40,.25); }
.console-teambox .ctb-focus b { color: #eee; font-weight: 700; }
.console-teambox .ctb-focus b.on { color: var(--green); }
.console-teambox .ctb-focus b.focus { color: var(--yellow); }
.console-teambox .ctb-head { color: var(--muted); margin-bottom: 4px; }
.console-teambox .ctb-head b { color: #bbb; margin-left: 6px; }
.console-teambox .ctb-head b.on { color: var(--green); }
.console-teambox .ctb-head b.focus { color: var(--yellow); }
.console-teambox table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.console-teambox th, .console-teambox td { padding: 2px 6px; text-align: center; border-bottom: 1px solid #262626; }
.console-teambox th:first-child, .console-teambox td:first-child { text-align: left; }
.console-teambox th { color: var(--muted); font-weight: 600; }
.console-teambox tr.focus td { color: var(--yellow); font-weight: 800; background: rgba(255,201,40,.1); }

/* ---- 11/3：名单折叠 + 更高更丰富的文字直播 ---- */
.tc-toggle {
  width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  padding: 4px 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  min-height: 34px;
}
.tc-toggle .tc-chev {
  color: var(--yellow); font-size: clamp(14px, 3.2vw, 20px); transition: transform .2s; line-height: 1;
}
.team-card.collapsed .tc-chev { transform: rotate(-90deg); }
.team-card.collapsed .tc-table { display: none; }
.team-card.collapsed .team-card-head { margin-bottom: 0; }
.team-card.collapsed .tc-sub::after { content: ' · 点开查看'; }

.events-block { min-height: 30%; }
.events-list { overflow-y: auto; gap: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.event-item { padding: 5px 8px; }
.event-item.scoring { border-left: 3px solid var(--green); }
.event-item.focus {
  background: rgba(255,201,40,.16); border: 1px solid rgba(255,201,40,.6); border-left: 3px solid var(--yellow);
}
.event-item.focus .x { color: #fff; font-weight: 700; }
.ev-meta { display: flex; gap: 6px; margin-top: 2px; font-size: .78em; flex-wrap: wrap; }
.ev-team { color: #bbb; background: #262626; border-radius: 4px; padding: 0 5px; }
.ev-team.home { color: #ffd76a; }
.ev-pts { color: var(--green); font-weight: 800; }
.ev-score { color: var(--muted); font-variant-numeric: tabular-nums; }
