
/* ---- Match Header ---- */
.match-header {
  background: linear-gradient(135deg,rgba(0,217,255,.06) 0%,rgba(139,92,246,.06) 50%,rgba(244,114,182,.04) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px 24px;
  margin: 8px 0 28px;
  position: relative;
  overflow: hidden;
}
.match-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle,rgba(0,217,255,.06) 0%,transparent 60%);
  pointer-events: none;
}
.match-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,rgba(139,92,246,.06) 0%,transparent 60%);
  pointer-events: none;
}
.match-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.league-pill {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,217,255,.1);
  color: var(--cyan);
  border: 1px solid rgba(0,217,255,.25);
}
.live-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0,255,136,.12);
  color: var(--green);
  border: 1px solid rgba(0,255,136,.25);
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}
.match-date {
  font-size: 13px;
  color: var(--text-dim);
  margin-left: 8px;
}

/* ---- Scoreboard ---- */
.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 1;
  padding: 8px 0 20px;
}
.team {
  text-align: center;
  flex: 0 0 180px;
}
.team-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(0,217,255,.2));
}
.team-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.team-sub {
  font-size: 12px;
  color: var(--text-dim);
}
.score-center {
  text-align: center;
  flex-shrink: 0;
}
.score-big {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(135deg,#00d9ff 0%,#8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.score-ht {
  font-size: 13px;
  color: var(--text-dim);
  margin: 6px 0;
}
.score-minute {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.2);
  backdrop-filter: blur(4px);
}
.score-minute .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ---- Mini Stats Bar ---- */
.match-stats-mini {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  padding-top: 8px;
}
.stat-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.stat-mini .l {
  font-weight: 600;
  color: var(--cyan);
}
.stat-mini .r {
  font-weight: 600;
  color: var(--purple);
}
.stat-mini .sep {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 11px;
}
.stat-mini .label {
  font-size: 11px;
  color: var(--text-dim);
}

/* ---- Stream Player ---- */
.stream-player {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.stream-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,#0d1a2d 0%,#1a0d2d 50%,#0d1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .3s;
}
.stream-bg.playing {
  filter: brightness(1.05);
}
.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,217,255,.15);
  border: 2px solid rgba(0,217,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  position: relative;
}
.play-btn:hover {
  background: rgba(0,217,255,.25);
  border-color: var(--cyan);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0,217,255,.25);
}
.play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}
.play-btn.paused svg {
  margin-left: 0;
}
.watermark {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: rgba(255,255,255,.15);
  font-weight: 700;
  pointer-events: none;
}
.viewers-float {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(10,14,26,.75);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  color: var(--text);
}
.viewers-float .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ---- Stream Source Pills ---- */
.stream-sources {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.src-pill {
  padding: 9px 20px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-dim);
}
.src-pill:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.15);
}
.src-pill.active {
  color: var(--cyan);
  background: rgba(0,217,255,.1);
  border-color: rgba(0,217,255,.3);
  box-shadow: 0 0 12px rgba(0,217,255,.1);
}
.src-pill .quality {
  font-size: 10px;
  font-weight: 400;
  margin-left: 6px;
  opacity: .7;
}

/* ---- Event Timeline (文字直播) ---- */
.timeline-half {
  margin-bottom: 24px;
}
.half-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(0,217,255,.05);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  display: inline-block;
}
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom,var(--border),rgba(255,255,255,.05));
}
.evt {
  position: relative;
  padding: 10px 14px;
  margin-bottom: 2px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 2px solid transparent;
  transition: background .2s;
}
.evt:hover {
  background: var(--card);
}
.evt::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid #1e293b;
  z-index: 1;
}
.evt.goal::before {
  background: var(--cyan);
  border-color: rgba(0,217,255,.3);
}
.evt.yellow::before {
  background: #facc15;
  border-color: rgba(250,204,21,.3);
}
.evt.chance::before {
  background: var(--purple);
  border-color: rgba(139,92,246,.3);
}
.evt.goal {
  border-left-color: var(--cyan);
  background: rgba(0,217,255,.04);
}
.evt-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 30px;
  text-align: center;
}
.evt.goal .evt-time {
  color: var(--cyan);
}
.evt-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}
.evt-text {
  font-size: 14px;
  font-weight: 500;
}

/* ---- Stat Bars (数据统计) ---- */
.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.stat-row:hover {
  background: var(--card);
}
.stat-row .stat-label {
  font-size: 13px;
  color: var(--text-dim);
  min-width: 80px;
  text-align: right;
}
.stat-row .val-l {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  min-width: 28px;
  text-align: right;
}
.stat-row .val-r {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  min-width: 28px;
  text-align: left;
}
.stat-bar-wrap {
  flex: 1;
  display: flex;
  gap: 3px;
  align-items: center;
}
.stat-bar {
  height: 6px;
  border-radius: 3px;
  transition: width .4s ease;
}
.bar-l {
  background: linear-gradient(90deg,#00d9ff,#00a8cc);
  margin-left: auto;
}
.bar-r {
  background: linear-gradient(90deg,#8b5cf6,#6d3fd9);
}

/* ---- Lineup Cards (球员阵容) ---- */
.lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.formation-label {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--card);
  display: inline-block;
  width: 100%;
}
.lineup-col {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.lineup-col.left {
  border-top: 2px solid rgba(0,217,255,.3);
}
.lineup-col.right {
  border-top: 2px solid rgba(139,92,246,.3);
}
.lineup-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lineup-col.left h4 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0,217,255,.5);
}
.lineup-col.right h4 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(139,92,246,.5);
}
.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background .2s;
  font-size: 13px;
}
.player-row:hover {
  background: var(--card-hover);
}
.player-row .p-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}
.player-row .p-name {
  flex: 1;
  font-weight: 600;
}
.player-row .p-pos {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--card);
  padding: 2px 8px;
  border-radius: 8px;
}
.player-row .p-tag {
  font-size: 12px;
}

/* ---- Comment Items (赛事讨论) ---- */
.comment-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  transition: background .2s;
}
.comment-item:hover {
  background: var(--card-hover);
}
.comment-item + .comment-item {
  border-top: 1px solid var(--border);
}
.cmt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cmt-body {
  min-width: 0;
  flex: 1;
}
.cmt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.cmt-name {
  font-size: 12px;
  font-weight: 600;
}
.cmt-time {
  font-size: 11px;
  color: var(--text-dim);
}
.cmt-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}
.comment-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.comment-input {
  flex: 1;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
}
.comment-input:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 10px rgba(0,217,255,.1);
}
.comment-input::placeholder {
  color: var(--text-dim);
}
.comment-send {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #0a0e1a;
  background: var(--gradient);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.comment-send:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
}

/* ---- Side Match Mini Card ---- */
.match-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  transition: background .2s;
  cursor: pointer;
}
.match-mini:hover {
  background: var(--card-hover);
}
.match-mini + .match-mini {
  border-top: 1px solid var(--border);
}
.match-mini .mm-teams {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-mini .mm-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}
.match-mini .mm-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(0,255,136,.1);
  color: var(--green);
  border: 1px solid rgba(0,255,136,.2);
}
.match-mini .mm-badge.soon {
  background: rgba(0,217,255,.08);
  color: var(--cyan);
  border-color: rgba(0,217,255,.2);
}

/* ---- Anchor Mini ---- */
.anchor-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  transition: background .2s;
  cursor: pointer;
}
.anchor-mini:hover {
  background: var(--card-hover);
}
.anchor-mini + .anchor-mini {
  border-top: 1px solid var(--border);
}
.anchor-mini .a-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.anchor-mini .a-name {
  font-size: 14px;
  font-weight: 600;
}
.anchor-mini .a-role {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* ---- Tab Content ---- */
.tab-content {
  padding: 4px 0;
}

/* ---- Responsive ---- */
@media(max-width: 768px) {
  .match-header { padding: 20px 16px 16px; }
  .scoreboard { gap: 16px; }
  .team { flex: 0 0 auto; }
  .team-emoji { font-size: 32px; }
  .team-name { font-size: 14px; }
  .team-sub { font-size: 11px; }
  .score-big { font-size: 36px; letter-spacing: 4px; }
  .match-stats-mini { gap: 20px; flex-wrap: wrap; }
  .lineup-grid { grid-template-columns: 1fr; }
}