/*
Theme Name: Vietnam Football Portal
Theme URI: https://f.28094.com
Description: Cổng thông tin bóng đá Việt Nam - Vietnam Football Portal với dữ liệu trực tiếp từ API
Version: 2.0.0
Author: Football Dev
Text Domain: vietnam-football
*/

/* ════════════════════════════════════════════════════
   GLOBAL RESET & VARIABLES
════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary:   #1677FF;
  --primary-dark: #0958D9;
  --primary-light: #69B1FF;
  --accent:    #FF6B35;
  --accent-dark: #D44110;
  --bg:        #F5F7FA;
  --card:      #FFFFFF;
  --text:      #1A1A2E;
  --text2:     #4A5568;
  --text3:     #94A3B8;
  --border:    #E8ECF0;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --hover:     translateY(-3px);
  --transition: all .2s ease;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Be Vietnam Pro', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

/* ════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.section-head .h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.section-head .h svg { color: var(--primary); flex-shrink: 0; }

.section-head .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.section-head .more:hover { color: var(--primary-dark); text-decoration: underline; }

.section-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--text3);
  font-size: 14px;
}

/* ════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════ */
#vf-header {
  background: linear-gradient(135deg, #0F2149 0%, #1a3460 100%);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.vf-header-top {
  background: var(--primary);
  padding: 7px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.vf-ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.vf-ticker span {
  display: inline-block;
  animation: ticker 40s linear infinite;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

@keyframes ticker { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

.vf-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.vf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.vf-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(22,119,255,0.4);
  transition: var(--transition);
}

.vf-logo:hover .vf-logo-icon { transform: scale(1.05); }

.vf-logo-text { display: flex; flex-direction: column; }

.vf-logo-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.vf-logo-sub {
  font-size: 10px;
  color: var(--primary-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.vf-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vf-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 8px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.vf-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,119,255,0.3);
  color: #fff !important;
}

.vf-btn.vf-btn-accent { background: var(--accent); }
.vf-btn.vf-btn-accent:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(255,107,53,0.3); }

.vf-btn.vf-btn-ghost {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9) !important;
}

.vf-btn.vf-btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  color: #fff !important;
}

/* ════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════ */
#vf-nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.vf-nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vf-nav-list::-webkit-scrollbar { display: none; }

.vf-nav-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 18px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text2);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.vf-nav-list li a:hover,
.vf-nav-list li a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(22,119,255,0.04);
}

.vf-nav-list li a .nav-icon { font-size: 14px; }

.vf-nav-dropdown { position: relative; }

.vf-nav-dropdown > .vf-submenu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  margin: 0;
  list-style: none;
  padding: 6px 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-lg);
  display: none !important;
  z-index: 1000;
}

.vf-nav-dropdown:hover > .vf-submenu,
.vf-nav-dropdown:focus-within > .vf-submenu { display: block !important; }

.vf-nav-dropdown > .vf-submenu li a {
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: none !important;
  color: var(--text2);
  background: transparent !important;
}

.vf-nav-dropdown > .vf-submenu li a:hover {
  color: var(--primary);
  background: rgba(22,119,255,0.04) !important;
}

/* ════════════════════════════════════════════════════
   LIVE INDICATOR
════════════════════════════════════════════════════ */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #FF1744;
  color: #fff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: live-pulse 1s ease-in-out infinite;
}

@keyframes live-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #FF1744;
  border-radius: 50%;
  animation: live-pulse 1s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════
   FIXTURE ROWS
════════════════════════════════════════════════════ */
.vf-fixture-list { display: flex; flex-direction: column; }

.vf-fix-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

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

.vf-fix-row:hover {
  background: rgba(22,119,255,0.03);
}

.vf-fix-row.is-live {
  background: rgba(255,23,68,0.03);
  border-left: 3px solid #FF1744;
}

.vf-fix-row.is-done {
  opacity: 0.75;
}

.vf-fix-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
  min-width: 140px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-fix-league img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.vf-fix-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  min-width: 44px;
  text-align: center;
}

.vf-fix-time.live-time {
  color: #FF1744;
  font-weight: 700;
}

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

.vf-fix-team.away { flex-direction: row-reverse; text-align: right; }

.vf-fix-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.vf-fix-team .n {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vf-fix-team .n.win { color: var(--primary); font-weight: 700; }
.vf-fix-team .n.lose { color: var(--text3); }

.vf-fix-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  min-width: 70px;
  justify-content: center;
}

.vf-fix-score.live-score { color: #FF1744; }

.vf-fix-score small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text3);
  display: block;
  text-align: center;
  line-height: 1;
  margin-top: 2px;
}

.vf-fix-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  min-width: 36px;
  text-align: center;
}

.vf-fix-status.live-st {
  color: #FF1744;
  font-size: 11px;
}

/* ════════════════════════════════════════════════════
   CARDS (通用)
════════════════════════════════════════════════════ */
.vf-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.vf-card:hover {
  box-shadow: var(--shadow-md);
  transform: var(--hover);
}

/* ════════════════════════════════════════════════════
   STANDINGS TABLE
════════════════════════════════════════════════════ */
.standings-list { display: flex; flex-direction: column; }

.standing-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.standing-row:last-child { border-bottom: none; }
.standing-row:hover { background: rgba(22,119,255,0.03); }

.standing-row .rk {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-align: center;
  min-width: 24px;
}

.standing-row .rk.top4 { color: var(--primary); }
.standing-row .rk.relegated { color: #FF1744; }

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

.standing-row .team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.standing-row .team .nm {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standing-row .pts {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  min-width: 28px;
  text-align: right;
}

/* ════════════════════════════════════════════════════
   LEAGUE QUICK ACCESS
════════════════════════════════════════════════════ */
.league-strip {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 16px 20px;
  margin: 20px 0;
}

.league-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.league-strip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.league-strip-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: var(--hover);
  box-shadow: 0 4px 12px rgba(22,119,255,0.2);
}

.league-strip-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   CAROUSEL
════════════════════════════════════════════════════ */
.live-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a2035;
  aspect-ratio: 16/7;
}

.live-slide {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: none;
}

.live-slide.active { display: block; }

.live-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-slide .shade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}

.live-slide .meta {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.live-slide .meta .title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-slide .meta .comp {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.live-slide .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(22,119,255,0.85);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  z-index: 2;
  transition: var(--transition);
}

.live-slide:hover .play {
  background: var(--primary);
  transform: translate(-50%, -50%) scale(1.1);
}

.live-slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  opacity: 0;
}

.live-slider:hover .nav { opacity: 1; }
.live-slider .nav.prev { left: 12px; }
.live-slider .nav.next { right: 12px; }
.live-slider .nav:hover { background: rgba(0,0,0,0.8); }

.live-slider .dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 10;
}

.live-slider .dot {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,0.45);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.live-slider .dot.on {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

.live-slider .slider-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a2035;
  z-index: 20;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════
   VIDEO GRID
════════════════════════════════════════════════════ */
.live-video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 16px;
}

.live-video-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.live-video-card:hover {
  transform: var(--hover);
  box-shadow: var(--shadow-md);
}

.live-video-card .v-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a2035;
}

.live-video-card .v-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.live-video-card:hover .v-thumb img { transform: scale(1.05); }

.live-video-card .v-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(255,107,53,0.85);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  z-index: 2;
  transition: var(--transition);
}

.live-video-card:hover .v-play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.live-video-card .v-league {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 2;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-video-card .v-body {
  padding: 10px 10px 12px;
  flex: 1;
}

.live-video-card .v-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-video-card .v-comp {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════
   SIDEBAR VIDEO
════════════════════════════════════════════════════ */
.live-side-videos { display: flex; flex-direction: column; }

.live-side-vid {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.live-side-vid:last-child { border-bottom: none; }
.live-side-vid:hover { background: rgba(22,119,255,0.03); }

.live-side-vid .ph {
  position: relative;
  width: 90px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: #1a2035;
}

.live-side-vid .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-side-vid .ph .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  color: #fff;
  z-index: 2;
}

.live-side-vid .tx { flex: 1; min-width: 0; }

.live-side-vid .tt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-side-vid .tx-comp {
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════════
   NEWS GRID
════════════════════════════════════════════════════ */
.live-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
}

.live-news-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.live-news-card:hover {
  background: var(--card);
  border-color: var(--primary-light);
  transform: var(--hover);
  box-shadow: var(--shadow-md);
}

.live-news-card .thumb {
  width: 90px;
  flex-shrink: 0;
  aspect-ratio: 16/10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
}

.live-news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-news-card .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
}

.live-news-card .body { flex: 1; min-width: 0; }

.live-news-card .t {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-news-card .e {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.live-news-card .m {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  margin-top: 6px;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════
   TEAMS / PLAYERS GRID
════════════════════════════════════════════════════ */
.live-teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 14px;
}

.live-team-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.live-team-card:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: var(--hover);
}

.live-team-card .live-team-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-team-card .live-player-logo {
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.live-team-card:hover .live-player-logo { border-color: rgba(255,255,255,0.4); }

.live-team-card .live-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.live-team-card .live-team-info { flex: 1; min-width: 0; }

.live-team-card .live-team-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-team-card:hover .live-team-name { color: #fff; }

.live-team-card .live-team-league {
  font-size: 10px;
  color: var(--text3);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-team-card:hover .live-team-league { color: rgba(255,255,255,0.75); }

/* ════════════════════════════════════════════════════
   HERO SECTION (Homepage)
════════════════════════════════════════════════════ */
.live-hero { padding: 20px 0; }

.live-hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.live-hero-left { display: flex; flex-direction: column; gap: 16px; }

.live-hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}

.live-hero-kicker .tag {
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.live-hero-kicker .sep { color: var(--text3); }

.live-hero-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.live-hero-title .accent { color: var(--primary); }

.live-hero-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 540px;
}

.live-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.live-hero-card { }

.live-hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.live-hero-card-head .h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.live-hero-card-head .more {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.live-hero-card-head .more:hover { text-decoration: underline; }

/* Sidebar rail */
.live-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.live-rail-head .h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.live-rail-head .more {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.live-fixtures {
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--border);
  border-top: none;
  max-height: 500px;
  overflow-y: auto;
}

.live-fixtures .live-fix {
  display: grid;
  grid-template-columns: 40px auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.live-fixtures .live-fix:last-child { border-bottom: none; }
.live-fixtures .live-fix:hover { background: rgba(22,119,255,0.03); }

.live-fixtures .live-fix .st {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.3px;
}

.live-fixtures .live-fix .st.live {
  color: #FF1744;
  font-size: 10px;
}

.live-fixtures .live-fix .tm {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.live-fixtures .live-fix .team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.live-fixtures .live-fix .team.home { flex-direction: row; }
.live-fixtures .live-fix .team.away { flex-direction: row-reverse; text-align: right; }

.live-fixtures .live-fix .team img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.live-fixtures .live-fix .team .n {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-fixtures .live-fix .sc {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  min-width: 38px;
}

.live-fixtures .live-fix .sc.live { color: #FF1744; }

/* ════════════════════════════════════════════════════
   STRIP CARDS
════════════════════════════════════════════════════ */
.live-strip { padding: 0 0 16px; }

.live-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.live-strip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.live-strip-card:hover {
  border-color: var(--primary-light);
  transform: var(--hover);
  box-shadow: var(--shadow-md);
}

.live-strip-card .k {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  min-width: 44px;
  text-align: center;
}

.live-strip-card:hover .k { color: var(--primary-dark); }

.live-strip-card .t {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.live-strip-card .d {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════
   PORTAL GRID (3-column)
════════════════════════════════════════════════════ */
.live-portal { padding: 0 0 24px; }

.live-portal-grid {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 20px;
  align-items: start;
}

.live-portal-main { }
.live-portal-center { }
.live-portal-side { display: flex; flex-direction: column; gap: 16px; }

.live-side-card { }

/* ════════════════════════════════════════════════════
   FIXTURE TABS
════════════════════════════════════════════════════ */
.live-fixture-tabs {
  display: flex;
  gap: 4px;
}

.live-fixture-tab {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
}

.live-fixture-tab:hover { border-color: var(--primary-light); color: var(--primary); }

.live-fixture-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.live-fixture-list { max-height: 420px; overflow-y: auto; }

/* ════════════════════════════════════════════════════
   MODULES SECTION
════════════════════════════════════════════════════ */
.live-home-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.live-teams-section { }

.live-teams-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.live-teams-head .h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.live-teams-head .more {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

/* ════════════════════════════════════════════════════
   VIDEO MODAL
════════════════════════════════════════════════════ */
.slider-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.slider-modal.open { display: flex; }

.slider-modal-inner {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.slider-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.slider-modal-close:hover { background: rgba(0,0,0,0.8); }

.slider-modal-title {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.6);
}

.slider-modal-body iframe { display: block; width: 100%; aspect-ratio: 16/9; border: none; }

/* ════════════════════════════════════════════════════
   PAGE HERO
════════════════════════════════════════════════════ */
.vf-page-hero {
  background: linear-gradient(135deg, #0F2149 0%, #1a3460 100%);
  border-bottom: 3px solid var(--primary);
  padding: 36px 0 28px;
  position: relative;
}

.vf-page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.vf-page-hero-content { position: relative; z-index: 1; }

.vf-page-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vf-page-desc { color: rgba(255,255,255,0.7); font-size: 14px; }

.vf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.vf-breadcrumb a { color: rgba(255,255,255,0.6); }
.vf-breadcrumb a:hover { color: var(--primary-light); }

/* ════════════════════════════════════════════════════
   FILTER BAR
════════════════════════════════════════════════════ */
.vf-filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.vf-input, .vf-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.vf-input:focus, .vf-select:focus { border-color: var(--primary); background: var(--card); }

/* ════════════════════════════════════════════════════
   TABLE
════════════════════════════════════════════════════ */
.vf-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.vf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vf-table thead tr {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.vf-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.vf-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.vf-table tr:last-child td { border-bottom: none; }
.vf-table tbody tr:hover { background: rgba(22,119,255,0.03); }

.vf-table .rank { font-weight: 700; color: var(--text2); text-align: center; }
.vf-table .pts { font-weight: 700; color: var(--primary); }
.vf-table .win { color: #16a34a; font-weight: 600; }
.vf-table .loss { color: #ef4444; font-weight: 600; }

/* ════════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════════ */
.vf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.vf-page-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.vf-page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.vf-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
#vf-footer {
  background: #0F2149;
  padding: 40px 0 24px;
  margin-top: 40px;
}

.vf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}

.vf-footer-brand .vf-logo-title { font-size: 1.3rem; margin-bottom: 6px; }

.vf-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 10px;
}

.vf-footer-heading {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.vf-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vf-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.vf-footer-links a:hover { color: #fff; }

.vf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}

.vf-footer-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  text-decoration: none !important;
  border-radius: 5px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.vf-footer-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}

/* ════════════════════════════════════════════════════
   GRID MODULE CARDS
════════════════════════════════════════════════════ */
.vf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.vf-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.vf-module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.vf-module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transition: transform 0.2s;
}

.vf-module-card:hover {
  transform: var(--hover);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.vf-module-card:hover::before { transform: scaleX(1); }

.vf-module-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }

.vf-module-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.vf-module-desc {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════
   PLAYER CARD
════════════════════════════════════════════════════ */
.vf-player-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: var(--transition);
}

.vf-player-card:hover { transform: var(--hover); box-shadow: var(--shadow-md); }

.vf-player-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.vf-player-info { flex: 1; }

.vf-player-name {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.vf-player-sub { font-size: 12px; color: var(--text3); font-weight: 500; }

.vf-player-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.vf-stat-pill {
  background: var(--bg);
  border-radius: 6px;
  padding: 5px 6px;
  text-align: center;
}

.vf-stat-pill .val {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.vf-stat-pill .lbl {
  font-size: 9px;
  color: var(--text3);
  display: block;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════
   LOADING / ERROR
════════════════════════════════════════════════════ */
.vf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 14px;
  color: var(--text3);
}

.vf-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.vf-error {
  background: rgba(22,119,255,0.06);
  border: 1px solid rgba(22,119,255,0.15);
  border-radius: var(--radius);
  color: var(--text2);
  padding: 14px 18px;
  margin: 16px 0;
}

/* ════════════════════════════════════════════════════
   HERO BANNER (Index)
════════════════════════════════════════════════════ */
.vf-hero-banner {
  background: linear-gradient(135deg, #0F2149 0%, #1a3460 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.vf-hero-banner::before {
  content: '⚽';
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14rem;
  opacity: 0.04;
  line-height: 1;
}

.vf-hero-content { position: relative; z-index: 1; }

.vf-hero-label {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.vf-hero-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.vf-hero-title span { color: var(--primary-light); }

.vf-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.vf-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════
   COUNTRY CARDS
════════════════════════════════════════════════════ */
.vf-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }

.vf-country-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: var(--transition);
}

.vf-country-card:hover {
  border-color: var(--primary-light);
  background: rgba(22,119,255,0.03);
  transform: var(--hover);
}

.vf-flag { width: 32px; height: 22px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.vf-country-name { font-family: 'Be Vietnam Pro', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); }

/* ════════════════════════════════════════════════════
   DETAIL PAGES
════════════════════════════════════════════════════ */
.vf-detail-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.vf-detail-logo img { width: 72px; height: 72px; object-fit: contain; }
.vf-detail-meta { flex: 1; min-width: 200px; }
.vf-detail-name { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }

.vf-match-detail-header {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.vf-match-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
}

.vf-match-scoreline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vf-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 100px;
}

.vf-match-team-name { font-size: 14px; font-weight: 700; text-align: center; color: var(--text); }
.vf-match-score-center { text-align: center; flex: 0 0 auto; min-width: 110px; }
.vf-score-big { font-size: 2.4rem; font-weight: 900; color: var(--text); line-height: 1; }

/* ════════════════════════════════════════════════════
   VIDEO / NEWS GRID (internal pages)
════════════════════════════════════════════════════ */
.vf-vid-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.vf-vid-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tt-news-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .live-portal-grid { grid-template-columns: 260px 1fr 260px; }
  .live-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --container: 100%; }

  .live-hero-grid { grid-template-columns: 1fr; }
  .live-portal-grid { grid-template-columns: 1fr; }
  .live-teams-grid { grid-template-columns: repeat(4, 1fr); }
  .live-video-grid { grid-template-columns: repeat(3, 1fr); }
  .live-news-grid { grid-template-columns: repeat(2, 1fr); }
  .live-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .live-home-modules { grid-template-columns: 1fr; }
  .vf-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .vf-footer-brand { grid-column: 1/-1; }
  .vf-vid-grid { grid-template-columns: repeat(3, 1fr); }
  .vf-hero-title { font-size: 2.2rem; }
  .vf-player-stats { grid-template-columns: repeat(2, 1fr); }
  .vf-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 640px) {
  .live-teams-grid { grid-template-columns: repeat(2, 1fr); }
  .live-video-grid { grid-template-columns: repeat(2, 1fr); }
  .live-news-grid { grid-template-columns: 1fr; }
  .live-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .live-portal-grid { gap: 14px; }
  .vf-hero-title { font-size: 1.8rem; }
  .vf-hero-banner { padding: 36px 0; }
  .vf-hero-banner::before { font-size: 8rem; }
  .vf-page-title { font-size: 1.4rem; }
  .vf-footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .vf-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .vf-vid-grid { grid-template-columns: repeat(2, 1fr); }
  .vf-vid-row { grid-template-columns: 1fr; }
  .league-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .live-hero-actions { gap: 8px; }
  .live-hero-title { font-size: 1.4rem; }
  .vf-btn { padding: 6px 12px; font-size: 12px; }
  .vf-nav-list li a { padding: 11px 12px; font-size: 12px; }
}

@media (max-width: 400px) {
  .live-teams-grid { grid-template-columns: 1fr 1fr; }
  .live-video-grid { grid-template-columns: 1fr 1fr; }
  .live-strip-grid { grid-template-columns: 1fr; }
  .league-strip-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════════════ */
#vf-main { padding: 0 0 40px; }
.vf-page-content { padding: 24px 0; }

/* ════════════════════════════════════════════════════
   SECTION FOOT CTA
════════════════════════════════════════════════════ */
.live-chip.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.live-chip.ghost:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Fix for m7 dark theme overrides */
:root {
  --m7-bg: var(--bg);
  --m7-bg2: var(--card);
  --m7-bg3: var(--bg);
  --m7-border: var(--border);
  --m7-text: var(--text);
  --m7-text2: var(--text2);
  --m7-text3: var(--text3);
  --m7-green: #16a34a;
  --m7-accent: var(--primary);
}
