/* ============================================
   GAME DETAIL PAGE - additions to style.css (desktop)
   ============================================ */

/* Breadcrumb */
.match-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.match-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.match-breadcrumb a:hover { color: var(--text-primary); }

.match-breadcrumb .crumb-sep {
  color: var(--text-faded);
  display: inline-flex;
}

.match-breadcrumb .crumb-current { color: var(--text-primary); }

.match-breadcrumb .crumb-new-window {
  margin-left: auto;
  text-decoration: underline;
}

/* ============ SCOREBOARD HERO ============ */

.scoreboard {
  display: grid;
  grid-template-columns: 40px 1fr 240px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 28px 20px 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.scoreboard-star {
  background: none;
  border: none;
  color: var(--text-faded);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scoreboard-star:hover { color: var(--accent-yellow); }

.scoreboard-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.scoreboard-team-logo {
  width: 96px;
  height: 96px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  line-height: 1;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.scoreboard-team-logo img { width: 80%; height: 80%; object-fit: contain; }

.scoreboard-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.scoreboard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.scoreboard-date {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.scoreboard-score {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.scoreboard-score-sep { color: var(--text-muted); font-weight: 600; }

.scoreboard-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.scoreboard-status.live { color: var(--accent-red); }

/* ============ MAIN TABS (MATCH / H2H / STANDINGS) ============ */

.match-tabs {
  display: flex;
  gap: 28px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.match-tab {
  padding: 14px 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.match-tab:hover { color: var(--text-primary); }

.match-tab.active {
  color: var(--text-primary);
}

.match-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-red);
}

/* ============ SUB TABS (SUMMARY / STATS / LINEUPS / PLAYER STATS) ============ */

.match-subtabs {
  display: flex;
  gap: 6px;
  padding: 16px 20px;
}

.match-subtab {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
}

.match-subtab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.match-subtab.active {
  background: var(--accent-red);
  color: white;
}

/* ============ PERIOD TABS (MATCH / 1ST / 2ND) ============ */

.match-period-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 6px;
  margin: 0 20px 14px;
  width: fit-content;
}

.match-period-tab {
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.match-period-tab.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ============ STATS TABLE ============ */

.stats-section { padding: 0 20px 24px; }

.stats-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.stat-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--border-row);
  position: relative;
}

.stat-row:last-child { border-bottom: none; }

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-value-detail {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value-left { text-align: left; }
.stat-value-right { text-align: right; }

.stat-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stat-bars {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 4px;
  margin-top: 10px;
}

.stat-bar-cell { display: flex; height: 100%; }

.stat-bar-cell.left { justify-content: flex-end; }
.stat-bar-cell.right { justify-content: flex-start; }

.stat-bar-fill {
  height: 100%;
  border-radius: 1px;
}

.stat-bar-fill.home { background: var(--accent-red); }
.stat-bar-fill.away { background: rgba(255, 255, 255, 0.85); }

/* ============ SUMMARY (event timeline) ============ */

.summary-section { padding: 0 20px 20px; }

.summary-period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card-hover);
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.summary-period-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.event-row {
  display: grid;
  grid-template-columns: 50px 1fr 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-row);
  font-size: 13px;
}

.event-row:last-child { border-bottom: none; }

.event-minute {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.event-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.event-icon-goal {
  background: transparent;
  font-size: 18px;
}

.event-icon-yellow {
  background: #fbbf24;
  width: 14px;
  height: 18px;
  border-radius: 1px;
}

.event-icon-red {
  background: var(--accent-red);
  width: 14px;
  height: 18px;
  border-radius: 1px;
}

.event-text {
  color: var(--text-primary);
  font-weight: 500;
}

.event-text-detail {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  margin-left: 4px;
}

.event-text.home-side { text-align: left; }
.event-text.away-side { text-align: right; }

/* ============ H2H TAB ============ */

.h2h-filters {
  display: flex;
  gap: 6px;
  padding: 16px 20px 12px;
}

.h2h-filter {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
}

.h2h-filter.active {
  background: var(--accent-red);
  color: white;
}

.h2h-section { padding: 8px 20px 4px; }

.h2h-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.h2h-match {
  display: grid;
  grid-template-columns: 70px 50px 1fr 30px 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-row);
  font-size: 13px;
  cursor: pointer;
}

.h2h-match:hover { background: var(--bg-card-hover); }

.h2h-match-date {
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.h2h-match-comp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.h2h-match-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h2h-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
}

.h2h-match-team .team-name { font-size: 13px; }

.h2h-match-scores {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.h2h-result {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
}

.h2h-result-w { background: #10b981; }
.h2h-result-l { background: var(--accent-red); }
.h2h-result-d { background: #f59e0b; }

.h2h-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.h2h-show-more:hover { color: var(--text-primary); }

/* ============ STANDINGS TAB ============ */

.standings-subtabs {
  display: flex;
  gap: 6px;
  padding: 16px 20px 12px;
}

.standings-subtab {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
}

.standings-subtab.active {
  background: var(--accent-red);
  color: white;
}

.standings-filters {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.standings-filter {
  /* Vốn viết cho <button>, nhưng bộ lọc phạm vi giờ là <a> để bấm ra được URL riêng —
     thiếu dòng này thì trình duyệt tự gạch chân cả ba chữ OVERALL/HOME/AWAY. */
  text-decoration: none;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.standings-filter.active { color: var(--text-primary); }

.standings-filter.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-red);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
}

.standings-table th {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-card-hover);
}

.standings-table th.team-col {
  text-align: left;
  padding-left: 16px;
}

.standings-table td {
  padding: 10px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--border-row);
  color: var(--text-primary);
}

.standings-table td.team-col {
  text-align: left;
  padding-left: 16px;
}

.standings-table tr.current { background: rgba(59, 130, 246, 0.12); }
.standings-table tr:hover { background: var(--bg-card-hover); }

.standings-rank { font-weight: 700; color: var(--text-secondary); }

.standings-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.standings-team-name {
  font-weight: 600;
}

.standings-pts { font-weight: 800; }

.standings-form {
  display: inline-flex;
  gap: 3px;
}

.form-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: white;
}

.form-w { background: #10b981; }
.form-l { background: var(--accent-red); }
.form-d { background: #f59e0b; }

.standings-legend {
  padding: 16px 20px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.standings-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.standings-legend-color.promotion { background: #10b981; }
.standings-legend-color.relegation { background: var(--accent-red); }

.standings-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

/* Match content panel wrapper */
.match-content {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

/* Banner ad inside match detail */
.match-banner-ad {
  background: white;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.match-banner-ad-text { flex: 1; font-size: 13px; }
.match-banner-ad-cta {
  background: #000;
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* Tab pane visibility */
.tab-pane.hidden, .subtab-pane.hidden { display: none; }

/* ============================================
   PREDICTION BOX (match detail)
   ============================================ */

.prediction-box {
  margin: 12px 20px 16px;
  background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(230,57,70,0.02));
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 8px;
  padding: 16px 18px;
}

.prediction-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.prediction-box-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prediction-box-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

/* Sections trong prediction box */
.prediction-section {
  margin-bottom: 14px;
}

.prediction-section:last-child { margin-bottom: 0; }

.prediction-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* 1X2 bar */
.pred-1x2-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 4px;
  font-size: 11px;
}

.pred-1x2-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--text-secondary);
  min-width: 0; /* cho phép grid item co */
  gap: 4px;
}

.pred-1x2-label > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.pred-1x2-label strong { color: var(--text-primary); font-weight: 700; flex-shrink: 0; }

.pred-1x2-bar {
  display: grid;
  grid-template-columns: var(--home-pct) var(--draw-pct) var(--away-pct);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.pred-1x2-bar-home { background: var(--side-home); }
.pred-1x2-bar-draw { background: var(--side-draw); }
.pred-1x2-bar-away { background: var(--side-away); }

/* Over/Under */
.pred-ou-bar {
  display: grid;
  grid-template-columns: var(--over-pct) 1fr;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.pred-ou-bar-over { background: var(--accent-red); }
.pred-ou-bar-under { background: #3b82f6; }

.pred-ou-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pred-ou-labels strong { color: var(--text-primary); font-weight: 700; }

/* Correct score */
.pred-score-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 6px;
}

.pred-score-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
}

.pred-score-sep {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 600;
}

.pred-score-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mobile: tighter */
body.variant-mobile .prediction-box {
  margin: 10px 10px 12px;
  padding: 14px;
}
body.variant-mobile .prediction-box-title { font-size: 11px; }

/* ============================================
   PREVIEW BLOCKS (pre-match analysis boxes)
   16 blocks stack dọc trong tab Preview.
   Mockup gốc là light theme; dịch sang dark theme của site.
   ============================================ */

.preview-blocks {
  padding: 8px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Block wrapper */
.pb-block {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* Header — icon + title + subtitle */
.pb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.pb-header .pb-icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
  flex-shrink: 0;
}

.pb-header .pb-icon-red { color: var(--accent-red); }
.pb-header .pb-icon-yellow { color: var(--accent-yellow); }

.pb-title {
  font-size: 15px;
  font-weight: 800;
  color: #4a9eff;
  letter-spacing: 0.01em;
}

.pb-title-dark { color: var(--text-primary); }

.pb-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.pb-body { padding: 18px; }
.pb-body-tight { padding: 0; }

/* ---- Sub-tabs inside a block (Full-Time / 1H2H, Total / Team) ---- */
.pb-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.pb-tab {
  padding: 14px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.pb-tab:hover { color: var(--text-secondary); }

.pb-tab.active {
  color: #4a9eff;
  background: rgba(59, 130, 246, 0.08);
  border-bottom-color: #4a9eff;
}

.pb-tab-pane { display: none; padding: 4px 0 0; }
.pb-tab-pane.active { display: block; }

/* ---- Comparison table (team A / team B / [avg]) ---- */
.pb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px 4px;
  font-size: 13px;
  /* Fixed layout để cột đầu (label) luôn cùng width giữa mọi block. */
  table-layout: fixed;
}

/* Cột đầu = label. Fix width để mọi pb-table trong 1 page align. */
.pb-table thead th:first-child,
.pb-table tbody td:first-child {
  width: 40%;
}

.pb-table thead th {
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  border-radius: 4px;
}

.pb-table thead th:first-child { text-align: left; padding-left: 14px; }

.pb-table tbody td {
  padding: 10px 8px;
  text-align: center;
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pb-table tbody td:first-child {
  text-align: left;
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 4px;
}

/* Tier cells (colored by good/mid/bad) — dùng translucent bg + text sáng */
.tier { border-radius: 4px; font-weight: 700; }
/* Độ chọn lọc cao hơn `.pb-table tbody td` (vốn đặt color: text-primary), nếu không chữ
   trong ô luôn trắng và ba tầng chỉ khác nhau ở nền 14% — nhìn như ba sắc xám (ảnh 02/10). */
.tier-good, .pb-table td.tier-good, .pb-table .tier-good {
  background: rgba(16, 185, 129, 0.28); color: #6ee7a8;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35);
}
.tier-mid, .pb-table td.tier-mid, .pb-table .tier-mid {
  background: rgba(251, 191, 36, 0.24); color: #fcd34d;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.32);
}
.tier-bad, .pb-table td.tier-bad, .pb-table .tier-bad {
  background: rgba(230, 57, 70, 0.26); color: #ff8a94;
  box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.35);
}
.tier-neu, .pb-table td.tier-neu { background: rgba(255, 255, 255, 0.04); color: var(--text-secondary); }

/* Locked tier cell */
.tier-locked {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 26px;
  border-radius: 4px;
}

/* ---- Summary line "TeamA is +X% better in terms of Y" ---- */
.pb-summary {
  text-align: center;
  padding: 4px 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.pb-summary strong { color: var(--text-primary); }
.pb-summary .plus { color: #4ade80; font-weight: 700; }
.pb-summary .minus { color: #ff6b78; font-weight: 700; }

/* Underline for "N% better" span (mimick mockup) */
.pb-underline {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---- Horizontal team-bar (block 04, 05, 09) ---- */
.pb-teambars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.pb-teambar {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
}

.pb-teambar-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
}

.pb-teambar-logo img { width: 100%; height: 100%; object-fit: contain; }

.pb-teambar-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pb-teambar-fill {
  --pct: 50%;
  --tint: rgba(16, 185, 129, 0.38);
  --tint-text: #6ee7a8;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--tint) var(--pct), transparent var(--pct));
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tint-text);
}

.pb-teambar-fill.tint-good  { --tint: rgba(16, 185, 129, 0.38); --tint-text: #6ee7a8; }
.pb-teambar-fill.tint-bad   { --tint: rgba(230, 57, 70, 0.36);  --tint-text: #ff8a94; }
.pb-teambar-fill.tint-mid   { --tint: rgba(251, 191, 36, 0.34); --tint-text: #fcd34d; }

.pb-teambar-caption {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 4px;
}

/* ---- Full-width % bar (block 09 Will Score) ---- */
.pb-scorebar {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.pb-scorebar-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.pb-scorebar-team-name {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pb-scorebar-team-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border-subtle);
}

.pb-scorebar-team-stat {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.pb-scorebar-team-stat strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
}

.pb-scorebar-center { text-align: center; }

.pb-scorebar-verdict {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pb-scorebar-verdict.verdict-yes { color: #4ade80; }
.pb-scorebar-verdict.verdict-no { color: #ff6b78; }
.pb-scorebar-verdict.verdict-uncertain { color: #fbbf24; }

.pb-scorebar-bar {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
}

.pb-scorebar-bar-fill { height: 100%; }
.pb-scorebar-bar-fill.verdict-yes { background: #4ade80; }
.pb-scorebar-bar-fill.verdict-no { background: #ff6b78; }
.pb-scorebar-bar-fill.verdict-uncertain { background: #fbbf24; }

.pb-scorebar-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* ---- H2H summary bar (block 01) ---- */
.pb-h2h-summary {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 20px;
  padding: 8px 0 18px;
}

.pb-h2h-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.pb-h2h-team-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px solid var(--border-subtle);
}

.pb-h2h-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.pb-h2h-team-pct {
  font-size: 12px;
  color: var(--text-muted);
}

.pb-h2h-center { text-align: center; position: relative; }

.pb-h2h-total {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pb-h2h-total-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pb-h2h-bar {
  display: grid;
  grid-template-columns: var(--home-pct, 25%) var(--draw-pct, 50%) var(--away-pct, 25%);
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
}

.pb-h2h-bar-home, .pb-h2h-bar-draw, .pb-h2h-bar-away {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.pb-h2h-bar-home { background: var(--side-home); }
.pb-h2h-bar-draw { background: var(--side-draw); }
.pb-h2h-bar-away { background: var(--side-away); }

.pb-h2h-legend {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.pb-h2h-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.pb-h2h-text strong { color: var(--text-primary); }

/* Cards row (H2H stat cards) */
.pb-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pb-stat-card {
  background: var(--bg-card-hover);
  border-radius: 6px;
  padding: 14px;
  border-bottom: 3px solid var(--text-muted);
}

.pb-stat-card.tone-good { border-bottom-color: #4ade80; }
.pb-stat-card.tone-mid { border-bottom-color: #fbbf24; }
.pb-stat-card.tone-bad { border-bottom-color: #ff6b78; }

.pb-stat-card-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pb-stat-card-value .label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pb-stat-card-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- Team Form Comparison (block 03) ---- */
.pb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pb-form-card {
  background: var(--bg-card-hover);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.pb-form-card-header {
  background: var(--bg-header);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.pb-form-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border-subtle);
}

.pb-form-card-team {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-form-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 3px;
}

.pb-form-card-meta strong { color: var(--text-secondary); }

.pb-form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.pb-form-table th,
.pb-form-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-row);
  text-align: center;
}

.pb-form-table th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
}

.pb-form-table td:first-child, .pb-form-table th:first-child { text-align: left; padding-left: 14px; }

.pb-form-table td { color: var(--text-primary); }

.pb-form-table .col-highlight { background: rgba(59, 130, 246, 0.1); color: #4a9eff; font-weight: 700; }

.pb-form-row-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.pb-form-badges {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.pb-form-ppg {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pb-form-ppg.tier-good { background: rgba(16, 185, 129, 0.2); color: #4ade80; }
.pb-form-ppg.tier-mid  { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.pb-form-ppg.tier-bad  { background: rgba(230, 57, 70, 0.2); color: #ff6b78; }

.pb-glossary-link {
  text-align: right;
  padding: 12px 4px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.pb-glossary-link a { color: #4a9eff; text-decoration: none; }
.pb-glossary-link a:hover { text-decoration: underline; }

/* ---- Prediction stat cards (block 02) ---- */
.pb-prediction-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Note (footer text under table) */
.pb-note {
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pb-note-link {
  padding-top: 12px;
}

.pb-note-link a {
  color: #4a9eff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pb-note-link a:hover { text-decoration: underline; }

/* ---- Premium locked CTA banner ---- */
.pb-premium-cta {
  background: #3b82f6;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.pb-premium-cta:hover { background: #2563eb; }

.pb-premium-cta .arrow {
  display: inline-flex;
  transition: transform 0.2s;
}

.pb-premium-cta:hover .arrow { transform: translateX(3px); }

/* Lock highlight (in header of a locked block) */
.pb-locked-highlight {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.pb-locked-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faded);
}

.pb-locked-icon i { width: 60px; height: 60px; }

.pb-locked-title {
  text-align: center;
}

.pb-locked-title .label {
  font-size: 12px;
  font-weight: 800;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.pb-locked-title .title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.pb-locked-title .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.pb-locked-team-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
  align-items: center;
}

.pb-locked-team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pb-locked-team-info .stat {
  color: #3b82f6;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pb-locked-team-info .sub {
  font-size: 11px;
  color: var(--text-muted);
}

.pb-locked-team-logo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border-subtle);
}

/* ---- League table 2-col (block 16) ---- */
.pb-league-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pb-league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pb-league-table th {
  padding: 8px 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.pb-league-table th:nth-child(2) { text-align: left; padding-left: 8px; }

.pb-league-table td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border-row);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.pb-league-table td:nth-child(2) { text-align: left; padding-left: 8px; color: var(--text-primary); }

.pb-league-table tr.current { background: rgba(59, 130, 246, 0.12); }
.pb-league-table tr.current td { color: #4a9eff; font-weight: 700; }

.pb-league-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  font-weight: 800;
  color: var(--text-secondary);
  font-size: 11px;
}

.pb-league-rank.zone-promo { background: rgba(16, 185, 129, 0.2); color: #4ade80; }
.pb-league-rank.zone-releg { background: rgba(230, 57, 70, 0.18); color: #ff6b78; }

.pb-league-num.pos { color: #4ade80; }
.pb-league-num.neg { color: #ff6b78; }
.pb-league-num.bold { color: var(--text-primary); font-weight: 700; }

.pb-league-hint {
  text-align: right;
  padding: 12px 4px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.pb-league-hint a { color: #4a9eff; text-decoration: none; }
.pb-league-hint a:hover { text-decoration: underline; }

/* ---- Uncertain tag icon-only (block 09 uncertain) ---- */
.pb-verdict-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* Mobile: tighter padding, single-col fallback */
body.variant-mobile .preview-blocks { padding: 8px 10px 20px; gap: 14px; }
body.variant-mobile .pb-body { padding: 12px; }
body.variant-mobile .pb-form-grid,
body.variant-mobile .pb-league-grid,
body.variant-mobile .pb-prediction-cards,
body.variant-mobile .pb-stat-cards { grid-template-columns: 1fr; }
body.variant-mobile .pb-h2h-summary { grid-template-columns: 60px 1fr 60px; gap: 10px; }
body.variant-mobile .pb-h2h-team-logo { width: 44px; height: 44px; font-size: 22px; }
body.variant-mobile .pb-scorebar { grid-template-columns: 70px 1fr 70px; }
body.variant-mobile .pb-scorebar-team-logo { width: 36px; height: 36px; }


/* ─── Lineups (subtab) ───────────────────────────────────────────
   Hai cột nhà/khách; xuống một cột dưới 720px. Dùng token sẵn có, không màu mới. */
.lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 20px 20px;
}
@media (max-width: 720px) {
  .lineups { grid-template-columns: 1fr; }
}
.lineup-team {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}
.lineup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.lineup-team-logo { width: 22px; height: 22px; object-fit: contain; }
.lineup-team-name { font-weight: 700; font-size: 14px; flex: 1; }
.lineup-formation {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card-hover);
  padding: 3px 8px;
  border-radius: 4px;
}
.lineup-meta {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-secondary);
}
.lineup-section {
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.lineup-row {
  display: grid;
  grid-template-columns: 32px 1fr 28px;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  border-top: 1px solid var(--border-subtle);
}
.lineup-num { color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; }
.lineup-name { color: var(--text-primary); }
.lineup-pos {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: var(--text-muted);
}
.lineup-pos-g { color: var(--accent-yellow); }
.lineup-pos-f { color: var(--accent-red); }

/* ─── Player stats (subtab) ───────────────────────────────────── */
.pstats { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.pstats-team { background: var(--bg-card); border-radius: 8px; overflow: hidden; }
.pstats-team-name {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
/* Bảng rộng hơn màn hình mobile thì tự cuộn ngang, cột tên đứng yên. */
.pstats-scroll { overflow-x: auto; }
.pstats-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.pstats-table th, .pstats-table td {
  padding: 7px 8px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}
.pstats-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: none;
}
.pstats-table th.pstats-player, .pstats-table td.pstats-player {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg-card);
  padding-left: 14px;
}
.pstats-num { display: inline-block; min-width: 20px; color: var(--text-muted); margin-right: 6px; text-align: right; }
.pstats-name { color: var(--text-primary); }
.pstats-cap {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}
.pstats-pos { margin-left: 6px; font-size: 10px; font-weight: 700; color: var(--text-muted); }
.pstats-bench td { color: var(--text-muted); }
.pstats-rating { display: inline-block; min-width: 34px; text-align: center; font-weight: 800; border-radius: 5px; padding: 3px 6px; font-variant-numeric: tabular-nums; }
.pstats-rating.tier-good { background: rgba(16, 185, 129, 0.22); color: #6ee7a8; }
.pstats-rating.tier-mid { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.pstats-rating.tier-bad { background: rgba(230, 57, 70, 0.2); color: #ff8a94; }
.pstats-card {
  display: inline-block;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  margin: 0 1px;
  vertical-align: middle;
}
.pstats-yellow { background: var(--accent-yellow); }
.pstats-red { background: var(--accent-red); }

/* ── Previous Meetings (Preview) — lịch sử đối đầu, từ 02/10/2026 thay tab H2H ── */
.pb-h2h-list { display: flex; flex-direction: column; }
.pb-h2h-row {
  display: grid;
  grid-template-columns: 84px 150px 1fr 56px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-row);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.pb-h2h-row:last-child { border-bottom: none; }
.pb-h2h-row:hover { background: var(--bg-card-hover); }
.pb-h2h-row-date { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pb-h2h-row-league {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb-h2h-row-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pb-h2h-row-home { justify-content: flex-end; text-align: right; }
.pb-h2h-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-h2h-row-team .team-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.pb-h2h-row-winner { color: var(--text-primary); font-weight: 700; }
.pb-h2h-row-score {
  text-align: center; font-weight: 800; color: var(--text-primary);
  font-variant-numeric: tabular-nums; background: rgba(255,255,255,0.05);
  border-radius: 4px; padding: 3px 0;
}
.pb-h2h-row-outcome { display: flex; justify-content: flex-end; }
body.variant-mobile .pb-h2h-row { grid-template-columns: 44px 1fr 48px 1fr 24px; padding: 8px 10px; gap: 6px; font-size: 12px; }
body.variant-mobile .pb-h2h-row-league { display: none; }

/* ── Dải thông tin trận (giải · vòng · giờ · sân · trọng tài), dưới dự đoán, trên tab ── */
.match-info-strip {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 0 20px 12px; padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 12px; color: var(--text-secondary);
}
.mis-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mis-icon { width: 13px; height: 13px; color: var(--text-muted); flex-shrink: 0; }
.mis-sub { color: var(--text-muted); }
body.variant-mobile .match-info-strip { margin: 0 12px 10px; gap: 4px 14px; font-size: 11px; }

/* Kết luận đoán đúng/sai trong hộp Our Prediction (trận đã xong) */
.prediction-verdict {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 10px; margin-left: 8px;
}
.prediction-verdict-hit { color: var(--accent-green); background: rgba(16, 185, 129, 0.14); }
.prediction-verdict-miss { color: var(--text-muted); background: rgba(255, 255, 255, 0.06); }
.match-subtabs.hidden { display: none; }

/* ── Match Summary (đầu Preview) ── */
.ms-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; align-items: start; }
.ms-team { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 8px; background: rgba(255,255,255,0.025); }
.ms-team-picked { box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.45); background: rgba(230, 57, 70, 0.06); }
.ms-team-logo { width: 44px; height: 44px; object-fit: contain; }
.ms-team-name { font-weight: 700; font-size: 14px; color: var(--text-primary); text-align: center; }
.ms-form { display: flex; gap: 3px; }
.ms-stats { display: flex; gap: 10px; font-size: 11px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ms-stats em, .ms-facts em, .ms-h2h em { font-style: normal; color: var(--text-muted); margin-right: 3px; }
.ms-center { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ms-label { font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-red); }
.ms-pick { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.ms-pick strong { color: var(--accent-red); }
.ms-pick-draw strong { color: var(--text-secondary); }
.ms-bar { display: grid; grid-template-columns: var(--home-pct) var(--draw-pct) var(--away-pct); width: 100%; max-width: 320px; height: 8px; border-radius: 4px; overflow: hidden; gap: 1px; }
.ms-bar span { opacity: 0.45; }
.ms-bar-h { background: var(--side-home); } .ms-bar-d { background: var(--side-draw); } .ms-bar-a { background: var(--side-away); }
.ms-bar .ms-bar-win { opacity: 1; }
.ms-bar-labels { display: flex; justify-content: space-between; width: 100%; max-width: 320px; font-size: 11px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.ms-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--text-primary); }
.ms-h2h { font-size: 12px; color: var(--text-secondary); padding-top: 8px; border-top: 1px solid var(--border-subtle); width: 100%; }
.ms-muted { font-size: 12px; color: var(--text-muted); }
body.variant-mobile .ms-grid { grid-template-columns: 1fr 1fr; }
body.variant-mobile .ms-center { grid-column: 1 / -1; order: -1; }

/* Tiêu đề bảng đấu trong bảng xếp hạng (Nations League, vòng bảng cúp) */
.standings-group td {
  padding: 10px 14px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); background: rgba(255,255,255,0.03); border-top: 1px solid var(--border-subtle);
}

/* ── Dòng sự kiện ── */
.event-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 12px 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border-subtle);
}
.event-head-team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text-primary); }
.event-head-home { justify-content: flex-start; }
.event-head-away { justify-content: flex-end; }
.event-head-team img { width: 22px; height: 22px; object-fit: contain; }
.event-head-mid { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.event-period {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 8px; margin: 4px 0; background: rgba(255, 255, 255, 0.03); border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
}
.event-period-score { color: var(--text-primary); font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.event-row-goal { background: rgba(16, 185, 129, 0.05); }
.event-text-away { text-align: right; justify-content: flex-end; }
.event-text { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-text-away { justify-content: flex-end; }
.event-player { font-weight: 600; color: var(--text-primary); }
.event-score { font-size: 11px; font-weight: 800; color: var(--text-primary); background: rgba(255,255,255,0.08); border-radius: 4px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.event-sub { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.event-text-away .event-sub { align-items: flex-end; }
.event-sub i { font-style: normal; font-size: 9px; margin-right: 4px; }
.event-sub-in { color: var(--accent-green); font-weight: 600; }
.event-sub-out { color: #ff8a94; }
body.variant-mobile .event-row { grid-template-columns: 40px 1fr 24px 1fr; gap: 8px; }
body.variant-mobile .event-head-team { font-size: 12px; }

/* ── Player stats: ảnh, vị trí màu, bàn/kiến tạo nổi, chỉ cầu thủ đã ra sân ── */
.pstats-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,0.06); vertical-align: middle; margin-right: 8px; }
.pstats-photo-empty { display: inline-block; }
.pstats-table td.pstats-player { padding-top: 6px; padding-bottom: 6px; }
.pstats-name { font-weight: 600; }
.pstats-pos { display: inline-block; min-width: 16px; text-align: center; border-radius: 4px; padding: 1px 4px; font-size: 10px; font-weight: 800; margin-left: 6px; color: #fff; background: rgba(255,255,255,0.12); }
.pos-g { background: rgba(251, 191, 36, 0.35); color: #fcd34d; }
.pos-d { background: rgba(59, 130, 246, 0.35); color: #93c5fd; }
.pos-m { background: rgba(16, 185, 129, 0.35); color: #6ee7a8; }
.pos-f { background: rgba(230, 57, 70, 0.35); color: #ff8a94; }
.pstats-subtag { margin-left: 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.pstats-sub .pstats-name { font-weight: 500; }
.pstats-goal { font-weight: 800; color: #6ee7a8; }
.pstats-assist { font-weight: 800; color: #93c5fd; }
.pstats-table tbody tr:hover { background: var(--bg-card-hover); }
/* Mobile: bảng cầu thủ cuộn ngang — cột tên dính bên trái để biết đang xem ai */
body.variant-mobile .pstats-table th.pstats-player,
body.variant-mobile .pstats-table td.pstats-player {
  position: sticky; left: 0; z-index: 1; background: var(--bg-card);
  box-shadow: 2px 0 0 rgba(0, 0, 0, 0.25);
}
body.variant-mobile .pstats-table tbody tr:hover td.pstats-player { background: var(--bg-card-hover); }
body.variant-mobile .pstats-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }

/* Các phần nối tiếp dưới dòng sự kiện trong tab Summary */
.match-section { border-top: 1px solid var(--border-subtle); margin-top: 12px; padding-top: 8px; }
.match-section-title {
  padding: 10px 20px 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary);
}
