/* ============================================
   SCOREBRAIN — DARK THEME
   ============================================ */

:root {
  --bg-base: #0e1827;
  --bg-card: #16213a;
  --bg-card-hover: #1c2945;
  --bg-header: #0a121f;
  --bg-league-header: #1b2848;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-row: rgba(255, 255, 255, 0.04);

  --text-primary: #ffffff;
  --text-secondary: #b5bdcc;
  --text-muted: #6b7689;
  --text-faded: #4a5468;

  --accent-red: #e63946;
  --accent-red-hover: #d62c39;
  --accent-yellow: #fbbf24;
  --accent-green: #10b981;
  /* Màu BÊN (đội nhà / hòa / đội khách) — dùng cho mọi thanh 1-X-2, thanh H2H, ô dự đoán.
     Tách khỏi bộ màu CHẤT LƯỢNG (xanh lá tốt / vàng vừa / đỏ kém) của thẻ thống kê: trước
     02/10/2026 thanh H2H tô đội nhà xanh lá, đội khách đỏ — trông như "nhà tốt, khách xấu". */
  --side-home: #e63946;
  --side-draw: #6b7689;
  --side-away: #3b82f6;

  --status-live: #e63946;
  --status-live-bg: rgba(230, 57, 70, 0.12);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* ============ TYPOGRAPHY UTILITIES ============ */

.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }
.text-3xl { font-size: 28px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.06em; }
.tracking-tight { letter-spacing: -0.01em; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-faded { color: var(--text-faded); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ LAYOUT ============ */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .container { padding: 0 20px; }
}

/* ============ TOP HEADER ============ */

.top-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-header-inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.main-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.main-tab {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 100%;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

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

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

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

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ============ SPORTS NAV ============ */

.sports-nav {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 52px;
  z-index: 49;
}

.sports-nav-inner {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 2px;
  overflow-x: auto;
}

.sport-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 100%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  position: relative;
}

.sport-link:hover { color: var(--text-primary); }

.sport-link.active {
  color: var(--text-primary);
}

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

.sport-icon {
  width: 16px;
  height: 16px;
}

/* ============ MAIN GRID ============ */

/* Bỏ cột phải sau khi gỡ biển quảng cáo. Giữ 250px trống thì nội dung bị ép sang trái
   và bên phải là một khoảng chết — thà trả bề ngang đó cho danh sách trận. */
.main-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 16px 0;
}

@media (max-width: 1023px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-left,
  .sidebar-right {
    display: none;
  }
}

/* ============ SIDEBAR ============ */

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sidebar-heading::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-red);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

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

.sidebar-item-flag {
  font-size: 14px;
  line-height: 1;
  width: 18px;
  text-align: center;
}

.sidebar-item-name {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-team-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  letter-spacing: 0.04em;
}

.add-team-btn:hover { color: var(--accent-red-hover); }

/* ============ CENTER CONTENT ============ */

.content-main {
  min-width: 0;
}

/* Banner ad */
.banner-ad {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.banner-ad-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-primary);
}

.banner-ad-text a {
  color: #fbbf24;
  font-weight: 600;
  text-decoration: none;
}

.banner-ad-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  line-height: 1;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease;
}

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

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

.filter-pill-count {
  margin-left: 4px;
  opacity: 0.7;
  font-weight: 600;
}

.filter-bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.date-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-nav-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ============ LEAGUE SECTIONS ============ */

.league-block {
  background: var(--bg-card);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.league-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-league-header);
  cursor: pointer;
  user-select: none;
}

.league-header-flag {
  font-size: 16px;
  line-height: 1;
}

.league-header-text {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.league-header-country {
  color: var(--text-secondary);
  font-weight: 600;
  margin-right: 4px;
}

.league-header-link {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.league-header-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.league-header-toggle {
  color: var(--text-muted);
  display: flex;
  transition: transform 0.15s ease;
}
/* Khối giải đã thu: giấu phần trận, xoay mũi tên. Bật tắt bởi home-ui.js. */
.league-block.collapsed > div:not(.league-header) { display: none; }
.league-block.collapsed .league-header-toggle { transform: rotate(180deg); }

/* ============ MATCH ROWS ============ */

.match-block {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-row);
  cursor: pointer;
  transition: background 0.1s ease;
  position: relative; /* neo cho .match-link phủ kín khối */
}

/* Link phủ kín khối trận — mẫu "card link". Nội dung bên dưới vẫn hiện bình thường; ngôi sao
   và link con (đội, giải) đứng trên lớp này nhờ z-index để bấm được riêng. */
.match-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.match-block .match-star,
.match-block .pred-cell a,
.match-block .team-cell a {
  position: relative;
  z-index: 2;
}

.match-block:last-child {
  border-bottom: none;
}

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

.match-block-content { flex: 1; min-width: 0; }

/* ============ PREDICTION PILLS (home + league match rows) ============ */

.pred-cell {
  width: 128px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-left: 1px solid var(--border-row);
}

.pred-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  text-align: center;
}

.pred-brand {
  font-size: 8px;
  font-weight: 800;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1;
  opacity: 0.85;
}

.pred-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pred-team-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.pred-draw-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-secondary);
  font-size: 11px;
}

.pred-summary-pct {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pred-summary-hint {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.15s ease;
  letter-spacing: 0.02em;
}

.match-block:hover .pred-summary-hint {
  color: var(--accent-red);
}

/* Mobile: only show single winner pill */
.pred-pill-mobile { display: none; }

.match-row {
  display: grid;
  grid-template-columns: 24px 70px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  min-height: 24px;
}

/* Gọn hơn từ 02/10/2026: một trận ~58px thay vì ~74px — ngày bận 300 trận bớt cuộn 1/5. */
.match-row.home-row {
  padding-top: 7px;
  padding-bottom: 2px;
}

.match-row.away-row {
  padding-top: 2px;
  padding-bottom: 7px;
}

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

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

.match-star.active {
  color: var(--accent-yellow);
}

.match-star.active svg {
  fill: currentColor;
}

.match-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.match-status.live {
  color: var(--status-live);
}

.match-status-minute {
  color: var(--status-live);
  font-weight: 700;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-live);
  margin-right: 4px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6);
  animation: pulse-live 1.6s ease-out infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-logo {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.team-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-name.winner { font-weight: 700; }
.team-name.loser { color: var(--text-muted); }

.match-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  text-align: right;
}

.match-score.live {
  color: var(--accent-red);
}

.match-score.empty {
  color: var(--text-faded);
}

/* ============ RIGHT SIDEBAR (ads) ============ */

.ad-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faded);
  margin-bottom: 8px;
}

.ad-content {
  background: white;
  border-radius: 6px;
  padding: 24px 16px;
  color: #1a1a1a;
}

.ad-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 4px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 12px;
}

.ad-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.12s ease;
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .footer-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.social-icon {
  color: var(--text-secondary);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
}

.social-icon:hover { color: var(--text-primary); }

.app-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-badge-large {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

/* ============ SCROLLBARS ============ */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Sports nav scroll */
.sports-nav-inner::-webkit-scrollbar { display: none; }
.sports-nav-inner { scrollbar-width: none; }

/* ============ UTILITIES ============ */

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.hidden { display: none; }
.flex-1 { flex: 1; min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.ml-auto { margin-left: auto; }
.cursor-pointer { cursor: pointer; }

/* Search input */
.search-input {
  width: 220px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0 12px 0 36px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.search-wrap {
  position: relative;
}

.search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}


/* ===================================================================== */
/* Home page polish — spacing/harmony post-server-render                  */
/* ===================================================================== */

/* Space between league blocks */
.league-block {
  background: var(--bg-card);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

/* Hide empty pred-cell border-left (no h2h data) */
.pred-cell:empty,
.pred-cell:not(:has(.pred-desktop)) {
  border-left: none;
  width: 0;
  padding: 0;
}

/* Cursor pointer on match-block (giờ là <div>) */
.match-block { user-select: none; }

/* Fix team-cell to prevent name truncation to single letter — grid col cần min-width:0 */
.team-cell { min-width: 0; overflow: hidden; }
.team-name { min-width: 0; }

/* Sports nav match text baseline */
.sports-nav-inner .sport-link {
  color: var(--text-secondary);
  text-decoration: none;
}
.sports-nav-inner .sport-link.active {
  color: var(--text-primary);
}

/* Sidebar item links reset */
.sidebar-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
}
.sidebar-item:hover { color: var(--text-primary); }
.sidebar-item.active { color: #4a9eff; font-weight: 600; }

/* League header link reset */
.league-header-link { text-decoration: none; }
.league-header .league-header-flag img { border-radius: 2px; }

/* Filter pill as <a> reset */
a.filter-pill { text-decoration: none; }

/* Date display + navs reset */
.filter-bar-right .date-display,
.filter-bar-right .date-nav-btn { text-decoration: none; }

/* Team page header polish */
.team-header {
  display: flex;
  gap: 20px;
  padding: 24px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}
.team-logo-wrap .team-logo-lg {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-info .team-name { font-size: 28px; font-weight: 800; margin: 0; }
.team-info .team-meta { color: var(--text-secondary); font-size: 13px; margin-top: 8px; line-height: 1.7; }

/* League header polish for league page */
.league-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.league-info { flex: 1; }
.league-name { font-size: 24px; font-weight: 800; margin: 0; color: var(--text-primary); }
.league-season { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.league-logo { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }

/* Standings-table generic polish */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.standings-table thead th {
  color: var(--text-muted);
  text-align: center;
  padding: 8px 6px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}
.standings-table thead th.team-col { text-align: left; padding-left: 12px; }
.standings-table tbody td {
  padding: 6px 6px;
  text-align: center;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--border-row);
}
.standings-table tbody td.team-col { text-align: left; padding-left: 12px; }
.standings-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.standings-table .standings-rank { color: var(--text-primary); font-weight: 600; }
.standings-table .standings-pts { color: var(--text-primary); font-weight: 700; }
.standings-table .standings-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  text-decoration: none;
}
.standings-table .standings-team:hover { color: #4a9eff; }
.standings-form { display: inline-flex; gap: 2px; }
.form-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 3px;
  font-size: 9px; font-weight: 800; color: white;
}
.form-badge.form-w { background: #10b981; }
.form-badge.form-d { background: #6b7689; }
.form-badge.form-l { background: #e63946; }

/* Tabs — dùng nguyên .match-tab từ match.css (underline design), KHÔNG override.
 * Chỉ ensure <a> variant có text-decoration:none. */
a.match-tab { text-decoration: none; }
.match-tab:hover { text-decoration: none; }

/* Trận quá giờ mà nguồn chưa trả kết quả: nhãn "Awaiting" thay cho giờ đá, màu nhạt hơn
   giờ của trận sắp tới để không bị đọc nhầm thành lịch. */
.match-status-awaiting {
  color: var(--text-muted);
  font-style: italic;
}

/* Ô trạng thái khi khối trận đứng ngoài ngữ cảnh "hôm nay" (trang giải, trang đội): dòng
   ngày phía trên giờ / FT / Awaiting. Xem templ_pages.statusCell(withDate). */
.match-status-date { color: var(--text-faded); font-weight: 500; }

/* ── Phong độ 5 trận (cũ → mới): cột riêng sát mép phải ô đội, thẳng hàng giữa hai dòng ──
   Bản đầu (sáng 02/10) đặt ngay sau tên đội, ô 14px màu đặc: to và lệch hàng. */
.form5 { display: inline-flex; gap: 2px; margin-left: auto; padding-left: 10px; flex-shrink: 0; }
.form5 .f5 {
  width: 11px; height: 11px; border-radius: 2px;
  font-size: 7px; line-height: 11px; font-weight: 800; font-style: normal; text-align: center;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.10);
}
.form5 .f5-w { background: rgba(16, 185, 129, 0.7); }
.form5 .f5-d { background: rgba(107, 118, 137, 0.55); }
.form5 .f5-l { background: rgba(230, 57, 70, 0.65); }
/* Không viền ô cuối: viền vẽ ra ngoài hộp làm ô cuối trông to hơn và lệch hàng (ảnh 02/10). */

/* ── Thanh 1 / X / 2 trong ô OUR PICK ── */
.pred-bar {
  display: grid; width: 100%; height: 5px; gap: 1px;
  border-radius: 3px; overflow: hidden;
}
.pred-bar span { opacity: 0.45; }
.pred-bar .pred-bar-h { background: var(--side-home); }
.pred-bar .pred-bar-d { background: var(--side-draw); }
.pred-bar .pred-bar-a { background: var(--side-away); }
.pred-bar .pred-bar-win { opacity: 1; }
.pred-bar-labels {
  display: grid; width: 100%; font-size: 9px; line-height: 1;
  color: var(--text-muted); font-variant-numeric: tabular-nums;
}
.pred-bar-labels span { text-align: center; overflow: hidden; }

/* ── Trận đã xong: đoán đúng / sai ── */
.pred-verdict { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; line-height: 1; }
.pred-desktop.pred-hit .pred-verdict { color: var(--accent-green); }
.pred-desktop.pred-miss .pred-verdict { color: var(--text-muted); }
.pred-desktop.pred-miss .pred-summary-pct, .pred-desktop.pred-miss .pred-brand { color: var(--text-muted); }
.pred-desktop.pred-miss .pred-team-logo { opacity: 0.55; }
.pred-desktop.pred-hit .pred-summary-pct { color: var(--accent-green); }

/* Mục sidebar không phải link (nước — chưa có trang riêng) */
.sidebar-item-static { cursor: default; }
.sidebar-item-static:hover { background: transparent; }
