/* ============================================
   MOBILE OVERRIDES — load sau style.css
   Tận dụng tokens và component (match block, filter pill, league header)
   từ style.css. Chỉ override layout + thêm component mobile-only.
   ============================================ */

/* Container fit mobile */
.container { padding: 0; }

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

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

.m-header-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 12px;
}

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

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

.m-logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.m-header-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.m-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.m-icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

.m-icon-btn.active {
  border-color: rgba(59, 130, 246, 0.6);
}

/* Scores | News tabs */
.m-main-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.m-main-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
}

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

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

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

.m-sports-nav {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.m-sports-nav::-webkit-scrollbar { display: none; }

.m-sports-nav-inner {
  display: flex;
  align-items: stretch;
  height: 46px;
  padding: 0 6px;
}

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

.m-sport-link:first-child {
  padding-right: 14px;
  border-right: 1px solid var(--border-subtle);
}

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

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

.m-fav-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-fav-badge-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 999px;
  min-width: 14px;
  text-align: center;
}

/* ============ MOBILE MAIN CONTENT ============ */

.m-main {
  padding: 12px 10px 80px; /* bottom padding for inline ads */
}

/* Banner ad — full width */
.m-banner-ad {
  background: white;
  color: #1a1a1a;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.m-banner-ad img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.m-banner-ad-text {
  flex: 1;
  font-size: 13px;
  color: #1a1a1a;
}

.m-banner-ad-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.m-banner-ad-cta {
  background: #000;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.m-ad-label-tiny {
  text-align: center;
  font-size: 10px;
  color: var(--text-faded);
  margin: 4px 0 14px;
  text-transform: uppercase;
}

/* ============ MOBILE FILTER PILLS ============ */

.m-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 0 12px;
  margin-bottom: 10px;
}

.m-filter-bar::-webkit-scrollbar { display: none; }

.m-filter-pill {
  flex-shrink: 0;
  padding: 9px 18px;
  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;
}

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

/* ============ MOBILE DATE SELECTOR ============ */

.m-date-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 12px;
}

.m-date-nav {
  width: 38px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: none;
  color: var(--text-secondary);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.m-date-display {
  flex: 1;
  background: var(--bg-card);
  border: none;
  border-radius: 999px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============ LEAGUE BLOCKS — match desktop styles ============ */
/* (re-use .league-block, .league-header, .match-block from style.css) */

/* Mobile-specific: smaller padding, pin icon */
.league-header-pin {
  color: #3b82f6;
  display: inline-flex;
  margin: 0 4px;
}

.league-header-list-icon {
  color: var(--text-secondary);
  display: inline-flex;
  margin: 0 4px;
}

/* ============ DRAWER (hamburger menu) ============ */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 380px);
  background: var(--bg-base);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-header {
  background: var(--bg-header);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.drawer-body {
  padding: 6px 0 24px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-item:last-child { border-bottom: none; }

.drawer-item-icon {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
}

.drawer-item-chevron {
  margin-left: auto;
  color: var(--text-muted);
}

.drawer-toggle {
  margin-left: auto;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}

.drawer-toggle.on { background: var(--accent-green); }

.drawer-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.drawer-toggle.on::after { transform: translateX(20px); }

.drawer-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  border-top: 6px solid #000;
}

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

.drawer-league {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.drawer-league-flag {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.drawer-league-pin {
  margin-left: auto;
  color: #3b82f6;
}

/* Hide desktop-only elements on mobile variant */
body.variant-mobile .sidebar-left,
body.variant-mobile .sidebar-right,
body.variant-mobile .top-header,
body.variant-mobile .sports-nav,
body.variant-mobile .site-footer .footer-grid {
  display: none;
}

/* ============ MOBILE FOOTER (2-col) ============ */

.m-footer-info {
  padding: 24px 18px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
}

.m-footer-info a { color: var(--text-secondary); text-decoration: underline; }

.m-footer-show-more {
  display: block;
  text-align: center;
  padding: 14px 0;
  color: var(--text-primary);
  text-decoration: underline;
  font-size: 14px;
}

.m-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 16px 18px 24px;
}

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

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

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

.m-footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

/* Inline ad cards (instead of right sidebar ads) */
.m-inline-ad {
  background: white;
  color: #1a1a1a;
  border-radius: 6px;
  padding: 14px;
  margin: 14px 0;
  text-align: center;
}

.m-inline-ad-brand {
  font-size: 18px;
  font-weight: 800;
}

.m-inline-ad-image {
  margin-top: 10px;
  height: 80px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 4px;
}

/* ============================================
   MOBILE MATCH DETAIL OVERRIDES
   ============================================ */

body.variant-mobile .match-content {
  border-radius: 0;
  background: var(--bg-base);
}

/* Compact scoreboard */
body.variant-mobile .scoreboard {
  grid-template-columns: 28px 1fr 130px 1fr 28px;
  gap: 8px;
  padding: 16px 12px 20px;
}

body.variant-mobile .scoreboard-team-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  font-size: 30px;
}

body.variant-mobile .scoreboard-team-name {
  font-size: 13px;
  line-height: 1.3;
}

body.variant-mobile .scoreboard-team-country {
  color: var(--text-muted);
  font-weight: 500;
}

body.variant-mobile .scoreboard-date {
  font-size: 11px;
}

body.variant-mobile .scoreboard-score {
  font-size: 30px;
  gap: 8px;
}

body.variant-mobile .scoreboard-status {
  font-size: 10px;
}

body.variant-mobile .scoreboard-status-extra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-card);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Main tabs: horizontal scroll on mobile */
body.variant-mobile .match-tabs {
  padding: 0 4px;
  gap: 4px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body.variant-mobile .match-tabs::-webkit-scrollbar { display: none; }

body.variant-mobile .match-tab {
  padding: 12px 12px;
  font-size: 12px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}

/* Sub-tabs: horizontal scroll */
body.variant-mobile .match-subtabs {
  padding: 12px 10px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

body.variant-mobile .match-subtabs::-webkit-scrollbar { display: none; }

body.variant-mobile .match-subtab {
  padding: 8px 14px;
  font-size: 11px;
  flex-shrink: 0;
}

/* Period tabs */
body.variant-mobile .match-period-tabs {
  margin: 0 10px 10px;
}

/* Stats section tighter */
body.variant-mobile .stats-section { padding: 0 12px 20px; }

body.variant-mobile .stat-row {
  grid-template-columns: 60px 1fr 60px;
  padding: 10px 0 14px;
}

body.variant-mobile .stat-value { font-size: 13px; }
body.variant-mobile .stat-label { font-size: 12px; }
body.variant-mobile .stat-value-detail { font-size: 10px; }

/* Section header */
body.variant-mobile .stats-header,
body.variant-mobile .shots-section-header {
  padding: 12px 0;
  font-size: 11px;
}

/* H2H mobile */
body.variant-mobile .h2h-filters {
  padding: 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.variant-mobile .h2h-filters::-webkit-scrollbar { display: none; }

body.variant-mobile .h2h-filter {
  padding: 7px 14px;
  font-size: 11px;
  flex-shrink: 0;
}

body.variant-mobile .h2h-section { padding: 4px 10px; }

body.variant-mobile .h2h-match {
  grid-template-columns: 55px 40px 1fr 26px 22px;
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
}

body.variant-mobile .h2h-match-date,
body.variant-mobile .h2h-match-comp { font-size: 10px; }

body.variant-mobile .h2h-match-team .team-name { font-size: 12px; }

/* Breadcrumb hidden on mobile (space) */
body.variant-mobile .match-breadcrumb { display: none; }

/* Banner ad on match page */
body.variant-mobile .match-banner-ad {
  border-radius: 0;
  margin-bottom: 0;
  padding: 10px 12px;
  font-size: 12px;
}

body.variant-mobile .match-banner-ad-text { font-size: 12px; }
body.variant-mobile .match-banner-ad-cta {
  padding: 5px 10px;
  font-size: 11px;
}

/* Info section (about match text) */
body.variant-mobile .match-info-section {
  padding: 16px 12px 20px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

body.variant-mobile .match-info-section p { margin: 0 0 12px; }
body.variant-mobile .match-info-section strong { color: var(--text-primary); }
body.variant-mobile .match-info-section a { color: var(--text-secondary); text-decoration: underline; }

/* Prediction (mobile): compact vertical stack, giống desktop nhưng nhỏ + hẹp hơn */
body.variant-mobile .pred-cell {
  width: 68px;
  padding: 6px 4px;
  border-left: 1px solid var(--border-row);
}

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

body.variant-mobile .pred-brand {
  font-size: 7px;
  letter-spacing: 0.1em;
}

body.variant-mobile .pred-summary { gap: 5px; }

body.variant-mobile .pred-team-logo {
  width: 18px;
  height: 18px;
  font-size: 8px;
  border-radius: 3px;
}

body.variant-mobile .pred-summary-pct { font-size: 13px; }

/* Ẩn text hint "See details →" trên mobile — cả block đã tap được */
body.variant-mobile .pred-summary-hint { display: none; }

/* Ẩn pill mobile cũ (giờ dùng full pred-desktop) */
body.variant-mobile .pred-pill-mobile { display: none; }

/* ============================================
   MOBILE: LEAGUE / TEAM / NEWS / NEWS-DETAIL
   ============================================ */

/* Header tabs (Scores / News) below logo */
.m-header-tabs {
  display: flex;
  gap: 24px;
  padding: 0 12px;
  border-top: 1px solid var(--border-subtle);
}

.m-htab {
  padding: 10px 0 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.m-htab.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* Sports nav horizontal scroll */
.m-sports-nav {
  display: flex;
  gap: 0;
  padding: 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.m-sports-nav::-webkit-scrollbar { display: none; }

.m-sport-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.m-sport-link.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* Breadcrumb mobile */
.m-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  overflow-x: auto;
  scrollbar-width: none;
}

.m-breadcrumb::-webkit-scrollbar { display: none; }

.m-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

/* League / Team header */
.m-league-header,
.m-team-header {
  padding: 16px 12px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.m-league-header-top,
.m-team-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.m-league-header-top {
  margin-bottom: 12px;
}

.m-league-name,
.m-team-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.m-league-season {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.m-team-meta {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.m-team-meta strong { color: var(--text-primary); }

/* Horizontal scroll tabs (main tabs) */
.m-scroll-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.m-scroll-tabs::-webkit-scrollbar { display: none; }

.m-scroll-tab {
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}

.m-scroll-tab.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* Horizontal scroll sub-tabs (Standings, Form, ...) */
.m-scroll-subtabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.m-scroll-subtabs::-webkit-scrollbar { display: none; }

.m-scroll-subtab {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* Section header */
.m-league-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.m-news-more {
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

/* League match rows mobile */
.m-league-matches { padding: 0; }

.m-league-match {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-row);
  text-decoration: none;
  color: inherit;
}

.m-league-match.m-league-match-finished {
  grid-template-columns: 70px 1fr 40px 26px;
}

.m-league-match-date {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

.m-league-match-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.m-league-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.m-league-match-team .team-logo {
  width: 16px;
  height: 16px;
  font-size: 7px;
  flex-shrink: 0;
}

.m-league-team-winner { font-weight: 700; }

.m-league-match-scores {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.m-score-winner {
  color: var(--text-primary);
  font-weight: 800;
}

.m-league-match-result {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* League news list */
.m-league-news {
  padding: 0;
}

/* Standings table - horizontal scroll wrapper */
.m-standings-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.m-standings-table {
  min-width: 640px;
}

.m-standings-table .team-col { min-width: 130px; }

.m-standings-legend {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Transfers table - horizontal scroll */
.m-transfers-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.m-transfers-table {
  min-width: 560px;
}

.m-transfers-table td, .m-transfers-table th {
  padding: 10px 12px;
  font-size: 12px;
}

.m-transfers-table .tr-date {
  display: none;
}

.m-transfers-table .tr-player {
  font-size: 12px;
  min-width: 140px;
}

/* Show date under player on mobile */
.m-transfers-table td.tr-player strong {
  display: block;
  margin-bottom: 4px;
}

/* Squad table - horizontal scroll */
.m-squad-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.m-squad-table {
  min-width: 500px;
}

.m-squad-table td, .m-squad-table th {
  padding: 8px 6px;
  font-size: 12px;
}

/* ============ NEWS MOBILE ============ */

.m-news { padding-bottom: 40px; }

.m-news-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 12px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.m-news-hero {
  display: block;
  padding: 0 12px 12px;
  text-decoration: none;
  color: inherit;
}

.m-news-hero-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.m-news-hero-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.m-news-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}

.m-news-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border-row);
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.m-news-row-image {
  width: 90px;
  height: 60px;
  border-radius: 4px;
}

.m-news-row-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
}

/* ============ ARTICLE MOBILE ============ */

.m-article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 10px;
  color: var(--text-muted);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.m-article-breadcrumb::-webkit-scrollbar { display: none; }

.m-article-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 600;
}

.m-article {
  padding: 16px 12px 24px;
}

.m-article-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.m-article-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.m-article-hero-image {
  width: calc(100% + 24px);
  height: 220px;
  margin: 0 -12px 8px;
}

.m-article-hero-caption {
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 0 16px;
  line-height: 1.4;
}

.m-article-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
}

.m-article-body p {
  margin: 0 0 16px 0;
}

.m-article-body strong { font-weight: 700; }

.m-article-body a {
  color: var(--accent-red);
  text-decoration: none;
}

.m-article-ad {
  padding: 14px;
  border-radius: 8px;
  margin: 16px 0;
  text-align: center;
}

.m-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Player card in article */
.m-player-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
}

.m-player-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.m-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 11px;
}

.m-player-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.m-player-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.m-player-stats-table {
  overflow-x: auto;
}

.m-player-stats-table table th,
.m-player-stats-table table td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-row);
}

.m-player-stats-table table th {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   PREVIEW BLOCKS (mobile) — 16 pre-match analysis blocks.
   Class names match markup ở _partials/preview_blocks.html — verify trước khi tune.
   ============================================ */

/* --- Block container --- */
body.variant-mobile .pb-block {
  margin: 12px 8px;
  padding: 14px 12px;
  border-radius: 8px;
}

body.variant-mobile .pb-body,
body.variant-mobile .pb-body-tight {
  padding: 0;
}

/* --- Header (icon + title + subtitle) --- */
body.variant-mobile .pb-header {
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

body.variant-mobile .pb-icon {
  width: 20px;
  height: 20px;
}

body.variant-mobile .pb-title,
body.variant-mobile .pb-title-dark {
  font-size: 14px;
  line-height: 1.3;
}

body.variant-mobile .pb-subtitle {
  font-size: 11px;
  line-height: 1.35;
}

/* --- Tabs (Full-Time/1H2H, Total/Team, Overall/Home/Away) trượt ngang --- */
body.variant-mobile .pb-tabs {
  overflow-x: auto;
  scrollbar-width: none;
  gap: 4px;
}

body.variant-mobile .pb-tabs::-webkit-scrollbar { display: none; }

body.variant-mobile .pb-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 11px;
  white-space: nowrap;
}

/* --- Table (dùng chung nhiều blocks) --- */
body.variant-mobile .pb-table {
  font-size: 12px;
  border-spacing: 3px 3px;
}

body.variant-mobile .pb-table thead th:first-child,
body.variant-mobile .pb-table tbody td:first-child {
  min-width: 130px;
  font-size: 12px;
  padding: 8px 10px;
}

body.variant-mobile .pb-table thead th,
body.variant-mobile .pb-table tbody td {
  padding: 8px 6px;
  font-size: 12px;
}

/* --- H2H summary (Block 01) — 3 cột: team | center | team --- */
body.variant-mobile .pb-h2h-summary {
  grid-template-columns: 80px 1fr 80px;
  gap: 12px;
  padding: 12px 4px;
}

body.variant-mobile .pb-h2h-team-logo {
  width: 48px;
  height: 48px;
}

body.variant-mobile .pb-h2h-team-name {
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

body.variant-mobile .pb-h2h-team-pct {
  font-size: 11px;
}

body.variant-mobile .pb-h2h-total {
  font-size: 32px;
}

body.variant-mobile .pb-h2h-total-label {
  font-size: 10px;
}

body.variant-mobile .pb-h2h-bar {
  font-size: 12px;
}

body.variant-mobile .pb-h2h-text {
  font-size: 11px;
  line-height: 1.5;
}

body.variant-mobile .pb-h2h-legend {
  font-size: 10px;
  gap: 10px;
}

/* --- Stat cards (Block 02 - Prediction Stats): 3 cột -> stack dọc --- */
body.variant-mobile .pb-stat-cards {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

body.variant-mobile .pb-stat-card {
  padding: 12px;
}

body.variant-mobile .pb-stat-card-value {
  font-size: 20px;
}

body.variant-mobile .pb-stat-card-sub {
  font-size: 11px;
}

/* --- Form comparison (Block 03) 2 cột team card side-by-side -> giữ 2 cột nhưng compact --- */
body.variant-mobile .pb-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.variant-mobile .pb-form-card {
  padding: 10px 8px;
}

body.variant-mobile .pb-form-card-header {
  gap: 6px;
  margin-bottom: 8px;
}

body.variant-mobile .pb-form-card-logo {
  width: 28px;
  height: 28px;
}

body.variant-mobile .pb-form-card-team {
  font-size: 12px;
  line-height: 1.2;
}

body.variant-mobile .pb-form-card-meta {
  font-size: 10px;
}

body.variant-mobile .pb-form-table {
  font-size: 11px;
}

body.variant-mobile .pb-form-table th,
body.variant-mobile .pb-form-table td {
  padding: 5px 3px;
}

body.variant-mobile .pb-form-row-label {
  font-size: 11px;
}

body.variant-mobile .pb-form-badges {
  gap: 3px;
}

body.variant-mobile .pb-form-ppg {
  font-size: 11px;
}

/* --- Scorebar (Blocks 04-05 Goals Scored/Conceded, and others) --- */
body.variant-mobile .pb-scorebar {
  grid-template-columns: 70px 1fr 70px;
  gap: 10px;
  padding: 8px 4px;
}

body.variant-mobile .pb-scorebar-team-logo {
  width: 32px;
  height: 32px;
}

body.variant-mobile .pb-scorebar-team-name {
  font-size: 11px;
  line-height: 1.2;
}

body.variant-mobile .pb-scorebar-team-stat {
  font-size: 16px;
}

body.variant-mobile .pb-scorebar-center {
  font-size: 12px;
}

body.variant-mobile .pb-scorebar-verdict {
  font-size: 11px;
}

body.variant-mobile .pb-scorebar-desc {
  font-size: 11px;
  line-height: 1.5;
}

/* --- Teambars (Block 06 Over/Under, and similar) --- */
body.variant-mobile .pb-teambar {
  grid-template-columns: 36px 1fr;
  gap: 10px;
}

body.variant-mobile .pb-teambar-logo {
  width: 36px;
  height: 36px;
}

body.variant-mobile .pb-teambar-caption {
  font-size: 11px;
}

/* --- Prediction cards (Block 06?) 3 cột -> 1 cột --- */
body.variant-mobile .pb-prediction-cards {
  grid-template-columns: 1fr;
  gap: 10px;
}

/* --- League grid (Block 16 - League Positions) 2 cột -> 1 cột trên narrow --- */
body.variant-mobile .pb-league-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.variant-mobile .pb-league-table {
  font-size: 11px;
}

body.variant-mobile .pb-league-rank {
  font-size: 12px;
}

body.variant-mobile .pb-league-num {
  font-size: 12px;
}

body.variant-mobile .pb-league-hint {
  font-size: 10px;
}

/* --- Locked blocks (07, 08, 10, 12) --- */
body.variant-mobile .pb-locked-icon {
  width: 32px;
  height: 32px;
}

body.variant-mobile .pb-locked-title {
  font-size: 13px;
}

body.variant-mobile .pb-locked-highlight {
  font-size: 11px;
}

body.variant-mobile .pb-locked-team-card {
  padding: 8px;
  gap: 8px;
}

body.variant-mobile .pb-locked-team-logo {
  width: 28px;
  height: 28px;
}

body.variant-mobile .pb-locked-team-info {
  font-size: 11px;
}

body.variant-mobile .pb-premium-cta {
  padding: 10px 12px;
  font-size: 12px;
}

/* --- Notes / footer text --- */
body.variant-mobile .pb-note {
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 4px 0;
}

body.variant-mobile .pb-note-link {
  font-size: 11px;
}

body.variant-mobile .pb-glossary-link {
  font-size: 11px;
}

body.variant-mobile .pb-summary {
  font-size: 11px;
  line-height: 1.5;
}

body.variant-mobile .pb-underline {
  border-bottom-width: 2px;
}

/* ── Dòng trận mobile: ô dự đoán + phong độ (02/10/2026, bản trước chỉ có một con số đỏ) ── */
.m-league-match.m-league-match-pred { grid-template-columns: 56px 1fr 30px 64px; }
.m-league-match { grid-template-columns: 56px 1fr 34px; }
.m-league-match.m-league-match-finished { grid-template-columns: 56px 1fr 34px 26px; }
/* Tên đội trong DÒNG TRẬN mobile. Không dùng .m-team-name — đó là header trang đội (18px+),
   dùng chung là tên trong dòng phình to (ảnh 02/10/2026). */
.m-row-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-size: 14px; font-weight: 600; }
.m-league-match-team { min-width: 0; }
.m-pick { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.m-pick-brand { font-size: 7px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-red); opacity: 0.8; line-height: 1; }
.m-pick-top { display: flex; align-items: center; gap: 4px; }
.m-pick-logo { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.m-pick-draw {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); font-size: 10px; font-weight: 800;
}
.m-pick-pct { font-size: 13px; font-weight: 800; color: var(--accent-red); font-variant-numeric: tabular-nums; }
.m-pick-bar { display: grid; width: 100%; height: 4px; gap: 1px; border-radius: 2px; overflow: hidden; }
.m-pick-bar span { opacity: 0.45; }
.m-pick-bar .pred-bar-h { background: var(--side-home); }
.m-pick-bar .pred-bar-d { background: var(--side-draw); }
.m-pick-bar .pred-bar-a { background: var(--side-away); }
.m-pick-bar .pred-bar-win { opacity: 1; }
.m-pick-hit { font-size: 14px; font-weight: 800; color: var(--accent-green); }
.m-pick-miss { font-size: 14px; font-weight: 800; color: var(--text-muted); }

/* Tab giải/đội trên mobile là <a>: bỏ gạch chân mặc định */
.m-scroll-tab, .m-scroll-tab:visited { text-decoration: none; }

/* Khối trận (dùng chung với desktop) trên mobile: bỏ cột ngôi sao, ô trạng thái hẹp hơn */
body.variant-mobile .match-row { grid-template-columns: 52px 1fr 26px; gap: 8px; padding-left: 10px; padding-right: 10px; }
body.variant-mobile .match-star { display: none; }
body.variant-mobile .match-row.away-row > span:first-child { display: none; }
body.variant-mobile .match-row .team-name { font-size: 14px; }
/* Mobile không hiện phong độ ở khối trận dùng chung (trang giải/đội) — cùng quyết định với
   trang chủ mobile 02/10/2026: tên đội cần chỗ hơn. */
body.variant-mobile .match-block .form5 { display: none; }
