/*
Theme Name: BongDaVIP
Theme URI: https://bcvf.cn
Author: BongDaVIP Team
Author URI: https://bcvf.cn
Description: BongDaVIP - Premium Vietnamese Football Streaming Portal with V-League, Premier League, La Liga, Champions League coverage
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bongdavip
Tags: sports, football, live-streaming, vietnam
*/

/* ============================================
   BongDaVIP Design System 5.0 — Bright Premium Style
   Vietnamese Football Portal — Clean Light & Airy
   Palette: Fresh Sky Blue #165DFF | Coral Red #FF4D4F | Gold #FFAA00
   ============================================ */

/* ===== DESIGN TOKENS — LIGHT MODE (default) ===== */
:root {
  /* Primary — Fresh Bright Sky Blue (core brand, zero gloom) */
  --bdv-primary: #165DFF;
  --bdv-primary-hover: #0951D4;
  --bdv-primary-light: rgba(22, 93, 255, 0.08);
  --bdv-primary-100: rgba(22, 93, 255, 0.06);
  --bdv-primary-200: rgba(22, 93, 255, 0.14);
  /* Main background gradient: pure white to soft sky blue */
  --bdv-bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
  /* Primary gradient: soft sky blue, used for core buttons & labels */
  --bdv-primary-gradient: linear-gradient(90deg, #165DFF 0%, #4080FF 100%);
  --bdv-primary-gradient-hover: linear-gradient(90deg, #4080FF 0%, #165DFF 100%);
  /* Solid surface gradient */
  --bdv-primary-solid: linear-gradient(135deg, #F0F7FF 0%, #E8F2FF 100%);
  --bdv-primary-solid-hover: linear-gradient(135deg, #E8F2FF 0%, #F0F7FF 100%);

  /* Live — Fresh Coral Red (replaces old crimson, warm & alert) */
  --bdv-accent: #FF4D4F;
  --bdv-accent-hover: #E63E41;
  --bdv-accent-light: rgba(255, 77, 79, 0.08);
  --bdv-accent-100: rgba(255, 77, 79, 0.06);
  --bdv-accent-200: rgba(255, 77, 79, 0.14);
  /* Live gradient: coral red, used for live badges & CTA */
  --bdv-accent-gradient: linear-gradient(135deg, #FF4D4F 0%, #FF7875 100%);
  --bdv-accent-gradient-hover: linear-gradient(135deg, #FF7875 0%, #FF4D4F 100%);

  /* Gold — Soft Warm Gold (champion highlight, refined not gaudy) */
  --bdv-gold: #FFAA00;
  --bdv-gold-hover: #E69800;
  --bdv-gold-light: rgba(255, 170, 0, 0.1);
  --bdv-gold-100: rgba(255, 170, 0, 0.06);
  --bdv-gold-gradient: linear-gradient(135deg, #FFAA00 0%, #FF9500 100%);

  /* Surface System — Clean White Base, No Gloom */
  --bdv-bg: #FFFFFF;
  --bdv-surface: #F8FAFC;
  --bdv-surface-hover: #F1F5F9;
  --bdv-surface-2: #E2E8F0;
  --bdv-border: rgba(22, 93, 255, 0.08);
  --bdv-border-light: rgba(22, 93, 255, 0.05);

  /* Text System — Clear Contrast for Vietnamese Readability */
  --bdv-text: #1D2129;
  --bdv-text-secondary: #4E5969;
  --bdv-text-muted: #86909C;
  --bdv-text-disabled: #C9CDD4;
  --bdv-text-inverse: #FFFFFF;

  /* Status */
  --bdv-live: #FF4D4F;
  --bdv-live-bg: rgba(255, 77, 79, 0.1);
  --bdv-live-border: rgba(255, 77, 79, 0.25);
  --bdv-success: #00B42A;
  --bdv-success-bg: rgba(0, 180, 42, 0.08);
  --bdv-warning: #FF7D00;
  --bdv-warning-bg: rgba(255, 125, 0, 0.1);
  --bdv-info: #165DFF;
  --bdv-info-bg: rgba(22, 93, 255, 0.08);

  /* Typography */
  --bdv-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bdv-font-size-2xs: 0.6875rem;
  --bdv-font-size-xs: 0.75rem;
  --bdv-font-size-sm: 0.8125rem;
  --bdv-font-size-base: 0.9375rem;
  --bdv-font-size-lg: 1.0625rem;
  --bdv-font-size-xl: 1.25rem;
  --bdv-font-size-2xl: 1.5rem;
  --bdv-font-size-3xl: 1.875rem;
  --bdv-font-size-4xl: 2.25rem;
  --bdv-font-size-5xl: 3rem;

  /* Spacing */
  --bdv-space-1: 0.25rem;
  --bdv-space-2: 0.5rem;
  --bdv-space-3: 0.75rem;
  --bdv-space-4: 1rem;
  --bdv-space-5: 1.25rem;
  --bdv-space-6: 1.5rem;
  --bdv-space-8: 2rem;
  --bdv-space-10: 2.5rem;
  --bdv-space-12: 3rem;
  --bdv-space-16: 4rem;
  --bdv-space-20: 5rem;

  /* Radius */
  --bdv-radius-sm: 0.375rem;
  --bdv-radius-md: 0.5rem;
  --bdv-radius-lg: 0.75rem;
  --bdv-radius-xl: 1rem;
  --bdv-radius-2xl: 1.25rem;
  --bdv-radius-3xl: 1.5rem;
  --bdv-radius-full: 9999px;

  /* Shadows — premium soft shadows with sky blue tint */
  --bdv-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --bdv-shadow-sm: 0 2px 8px -1px rgb(0 0 0 / 0.06), 0 1px 3px -1px rgb(0 0 0 / 0.04);
  --bdv-shadow-md: 0 4px 20px -2px rgb(0 0 0 / 0.08), 0 2px 6px -2px rgb(0 0 0 / 0.04);
  --bdv-shadow-lg: 0 10px 28px -4px rgb(0 0 0 / 0.10), 0 4px 10px -4px rgb(0 0 0 / 0.05);
  --bdv-shadow-xl: 0 20px 40px -8px rgb(0 0 0 / 0.12), 0 8px 16px -8px rgb(0 0 0 / 0.06);
  --bdv-shadow-2xl: 0 25px 60px -12px rgb(0 0 0 / 0.18);
  --bdv-shadow-card: 0 4px 20px rgb(0 0 0 / 0.08);
  --bdv-shadow-card-hover: 0 16px 48px rgb(0 0 0 / 0.14);
  --bdv-shadow-accent: 0 4px 16px rgba(255, 77, 79, 0.25);
  --bdv-shadow-accent-hover: 0 8px 28px rgba(255, 77, 79, 0.35);
  --bdv-shadow-primary: 0 4px 16px rgba(22, 93, 255, 0.2);
  --bdv-shadow-primary-hover: 0 8px 28px rgba(22, 93, 255, 0.3);

  /* Transitions */
  --bdv-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --bdv-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --bdv-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --bdv-transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --bdv-transition-base: 200ms cubic-bezier(0.4,0,0.2,1);
  --bdv-transition-slow: 250ms cubic-bezier(0.4,0,0.2,1);
  --bdv-transition-slower: 350ms cubic-bezier(0.16,1,0.3,1);

  /* Header */
  --bdv-header-height: 64px;
  --bdv-header-height-lg: 68px;
  --bdv-header-height-scroll: 56px;

  /* Max Width — portal-grade */
  --bdv-max-width: 1600px;
  --bdv-content-width: 1440px;
  --bdv-page-pad: 24px;
  --bdv-card-gap: 24px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Inter,system-ui,-apple-system,sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1D2129;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background-color: rgba(22,93,255,0.15);
  color: #165DFF;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
  border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* ============================================
   LAYOUT
   ============================================ */
.bdv-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .bdv-container {
    padding: 0 16px;
  }
}

.bdv-section {
  padding: 32px 0;
}

@media (min-width: 768px) {
  .bdv-section {
    padding: 40px 0;
  }
}

@media (min-width: 1024px) {
  .bdv-section {
    padding: 48px 0;
  }
}

.bdv-grid {
  display: grid;
  gap: 16px;
}

.bdv-grid-2 { grid-template-columns: repeat(1, 1fr); }
.bdv-grid-3 { grid-template-columns: repeat(1, 1fr); }
.bdv-grid-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .bdv-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .bdv-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bdv-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bdv-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .bdv-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .bdv-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   HEADER — Premium Navigation Bar
   Bright glassmorphism: white + sky blue, airy & luminous
   ============================================ */
.bdv-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid rgba(2, 132, 199, 0.1);
  box-shadow: 0 1px 20px rgba(2, 132, 199, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  height: 64px;
  overflow: visible;
  width: 100%;
  will-change: transform, background, box-shadow;
}

.bdv-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(22,93,255,0.4) 30%, #4080FF 50%, rgba(22,93,255,0.4) 70%, transparent);
  opacity: 0.8;
}

.bdv-header.bdv-header--scrolled {
  height: 56px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom-color: rgba(22,93,255,0.1);
  box-shadow: 0 2px 12px rgba(22,93,255,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

@media (min-width: 768px) {
  .bdv-header {
    height: 68px;
  }
}

.bdv-header .bdv-logo {
  color: #165DFF;
}

.bdv-header .bdv-logo:hover {
  color: #0951D4;
  opacity: 1;
}

.bdv-header .bdv-logo-icon {
  background: linear-gradient(135deg,#E94560,#c0392b);
  border: none;
  box-shadow: 0 4px 12px rgba(255,77,79,0.25);
}

.bdv-header .bdv-logo span {
  color: #1D2129;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bdv-header .bdv-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  overflow: visible;
}

@media (min-width: 1440px) {
  .bdv-header .bdv-container {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {
  .bdv-header .bdv-container {
    padding: 0 12px;
  }
}

.bdv-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 0;
}
.bdv-logo { grid-column: 1; grid-row: 1; }
.bdv-nav { grid-column: 2; grid-row: 1; }
.bdv-header-actions { grid-column: 3; grid-row: 1; }

.bdv-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 800;
  color: #165DFF;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  transition: opacity 150ms;
  margin-right: 8px;
}

.bdv-logo:hover {
  opacity: 0.85;
  color: #165DFF;
}

.bdv-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #E94560 0%, #c0392b 100%);
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.25);
}

.bdv-logo-icon svg {
  width: 18px;
  height: 18px;
}

.bdv-logo span {
  color: #1D2129;
}

.bdv-brand-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .bdv-brand-name {
    font-size: 11px;
  }
}

@media (max-width: 1024px) {
  .bdv-brand-name {
    display: none;
  }
}

.bdv-nav {
  display: none;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .bdv-nav {
    display: flex;
  }
}

.bdv-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  border-radius: 8px;
  transition: all 150ms;
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.bdv-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 16px);
  height: 2px;
  background: #E94560;
  border-radius: 2px;
  transition: transform 200ms;
}

.bdv-nav-link:hover {
  color: #165DFF;
  background: rgba(2, 132, 199, 0.08);
}

.bdv-nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.bdv-nav-link.active {
  color: #165DFF;
  background: rgba(2, 132, 199, 0.12);
}

.bdv-nav-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.bdv-nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.bdv-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bdv-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(22,93,255,0.06);
  border: 1.5px solid rgba(22,93,255,0.1);
  border-radius: 12px;
  color: #6b7280;
  transition: all 150ms;
  flex-shrink: 0;
  position: relative;
}

.bdv-btn-icon:hover {
  color: #165DFF;
  border-color: rgba(22,93,255,0.25);
  background: rgba(22,93,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22,93,255,0.12);
}

.bdv-btn-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#bdv-theme-btn .bdv-icon-moon { display: none; }
#bdv-theme-btn .bdv-icon-sun { display: block; }
#bdv-theme-btn { transition: transform 0.3s ease; }
#bdv-theme-btn:hover { transform: rotate(30deg) translateY(-2px); }

.bdv-btn-icon .bdv-live-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #E94560;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.bdv-mobile-menu-btn {
  display: flex;
}

@media (min-width: 1024px) {
  .bdv-mobile-menu-btn {
    display: none;
  }
}

.bdv-mobile-nav {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
  background: #fff;
}

.bdv-mobile-nav.open {
  display: block;
}

@media (min-width: 1024px) {
  .bdv-mobile-nav {
    display: none !important;
  }
}

.bdv-mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  border-radius: 8px;
  transition: all 150ms;
  gap: 12px;
}

.bdv-mobile-nav-link:hover {
  color: #165DFF;
  background: rgba(22,93,255,0.08);
}

.bdv-mobile-nav-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Search Bar */
#bdv-search-bar {
  display: none;
  padding: 12px 0;
}

#bdv-search-bar.open {
  display: block;
  animation: bdv-slideDown 0.2s cubic-bezier(0.16,1,0.3,1);
}

@keyframes bdv-slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bdv-search-wrapper {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.bdv-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.bdv-search-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bdv-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: #f8f9fa;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  color: #1D2129;
  font-size: 13px;
  font-family: Inter,system-ui,-apple-system,sans-serif;
  outline: none;
  transition: all 150ms;
}

.bdv-search-input:focus {
  border-color: #165DFF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22,93,255,0.08);
}

.bdv-search-input::placeholder {
  color: #d1d5db;
}

/* ================================================================
   HERO — Featured Match Banner (Deep Blue Style)
   ================================================================ */

.bdv-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  width: 100%;
}

@media (min-width: 768px) {
  .bdv-hero-content {
    padding: 48px 0;
  }
}

.bdv-hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .bdv-hero-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }
}

/* Hero Badge */
.bdv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: #FFAA00;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.bdv-hero-badge svg {
  width: 12px;
  height: 12px;
  fill: #FFAA00;
}

/* League info row */
.bdv-hero-league-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: fit-content;
}

.bdv-hero-league-info img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.bdv-hero-league-info span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* Teams */
.bdv-hero-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.bdv-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.bdv-hero-team-logo {
  width: 72px;
  height: 72px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: all 200ms;
}

@media (min-width: 768px) {
  .bdv-hero-team-logo {
    width: 88px;
    height: 88px;
  }
}

.bdv-hero-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.bdv-hero-team:hover .bdv-hero-team-logo {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.bdv-hero-team-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .bdv-hero-team-name {
    font-size: 14px;
  }
}

.bdv-hero-score {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bdv-hero-score-number {
  font-size: 36px;
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .bdv-hero-score-number {
    font-size: 48px;
  }
}

.bdv-hero-score-divider {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.bdv-hero-vs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Live badge in hero */
.bdv-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.bdv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Video Preview */
.bdv-hero-video:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.bdv-hero-video {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
  backdrop-filter: blur(4px);
}

.bdv-hero-video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
}

.bdv-hero-video-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.bdv-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F2FF 100%);
  border: 1px solid rgba(22,93,255,0.1);
  box-shadow: 0 4px 20px rgba(22,93,255,0.1), 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 50%;
  transition: all 200ms;
  box-shadow: 0 4px 24px rgba(255, 77, 79, 0.4);
}

.bdv-play-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg,#E94560,#c0392b);
  box-shadow: 0 8px 32px rgba(255, 77, 79, 0.5);
}

.bdv-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
  margin-left: 3px;
}

.bdv-hero-video-live {
  position: absolute;
  top: 16px;
  left: 16px;
}

.bdv-hero-video-score {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.bdv-hero-video-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.bdv-hero-video-meta span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.bdv-hero-video-meta span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.bdv-hero-video-meta span:last-child::before {
  background: #FFAA00;
}

/* ============================================
   LIVE BADGE — Reusable
   ============================================ */
.bdv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #E94560;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.bdv-live-dot {
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: bdv-live-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

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

@keyframes bdv-live-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 77, 79, 0.2); }
  50% { box-shadow: 0 4px 16px rgba(255, 77, 79, 0.35); }
}

.bdv-live-badge {
  animation: bdv-live-glow 2s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.bdv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: Inter,system-ui,-apple-system,sans-serif;
  border-radius: 12px;
  transition: all 200ms;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  letter-spacing: 0.01em;
}

.bdv-btn-primary {
  background: linear-gradient(135deg,#165DFF,#4080FF);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(22,93,255,0.25);
}

.bdv-btn-primary:hover {
  background: #165DFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(22,93,255,0.35);
  color: #FFFFFF;
}

.bdv-btn-primary:active {
  transform: translateY(0);
}

.bdv-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.bdv-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

/* ============================================
   SECTION HEADERS — Premium Portal Weight System
   ============================================ */
.bdv-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

/* Live matches section — highest weight */
.bdv-section[data-section-weight="1"] .bdv-section-header,
.bdv-section:first-of-type .bdv-section-header {
  margin-bottom: 24px;
}

/* Section title with gradient left border accent */
.bdv-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: #1D2129;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-left: 16px;
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #E94560 0%, #165DFF 100%) 1;
  position: relative;
}

@media (min-width: 768px) {
  .bdv-section-title {
    font-size: 30px;
  }
}

.bdv-section-title svg {
  width: 26px;
  height: 26px;
  fill: #E94560;
  flex-shrink: 0;
}

.bdv-section-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Premium section link — arrow button */
.bdv-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #165DFF;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(15, 52, 96, 0.06) 0%, rgba(15, 52, 96, 0.04) 100%);
  border: 1px solid rgba(15, 52, 96, 0.1);
  letter-spacing: 0.01em;
}

.bdv-section-link:hover {
  color: #E94560;
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.08) 0%, rgba(255, 77, 79, 0.04) 100%);
  border-color: rgba(255, 77, 79, 0.2);
  gap: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bdv-section-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.bdv-section-link:hover svg {
  transform: translateX(3px);
}

/* ============================================
   MATCH CARDS — Premium Portal Style
   ============================================ */
.bdv-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 4px 20px rgba(22,93,255,0.06);
  position: relative;
}

/* Premium top accent line — reveals on hover */
.bdv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg,#E94560,#c0392b);
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bdv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(22,93,255,0.1);
}

.bdv-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Live card variant — crimson glow */
.bdv-live-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  border: 1px solid transparent;
}

.bdv-live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg,#E94560,#c0392b);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bdv-live-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(255, 77, 79, 0.15);
}

.bdv-live-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Upcoming card variant */
.bdv-upcoming-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  border: 1px solid transparent;
}

.bdv-upcoming-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bdv-upcoming-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(15, 52, 96, 0.1);
}

.bdv-upcoming-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.bdv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #f8f9fa;
  gap: 8px;
}

.bdv-card-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  min-width: 0;
}

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

.bdv-card-league span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bdv-card-time {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  flex-shrink: 0;
}

.bdv-card-body {
  padding: 20px;
}

.bdv-card-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bdv-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bdv-card-team-logo {
  width: 48px;
  height: 48px;
  padding: 4px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 150ms;
}

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

.bdv-card-team:hover .bdv-card-team-logo {
  border-color: #165DFF;
  background: rgba(22,93,255,0.08);
}

.bdv-card-team-name {
  font-size: 11px;
  font-weight: 700;
  color: #1D2129;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bdv-card-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bdv-card-score-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.bdv-card-score-minute {
  font-size: 11px;
  font-weight: 700;
  color: #E94560;
  padding: 2px 8px;
  background: rgba(233,69,96,0.08);
  border-radius: 9999px;
  border: 1px solid rgba(233,69,96,0.15);
}

/* Card Events */
.bdv-card-events {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.bdv-card-event {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
  background: #f8f9fa;
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}

.bdv-card-event-icon {
  font-size: 11px;
  line-height: 1;
}

.bdv-card-event-time {
  font-weight: 700;
  color: #E94560;
}

.bdv-card-event-player {
  font-weight: 600;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Upcoming card */
.bdv-card-countdown {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

/* ============================================
   STANDINGS TABLE
   ============================================ */
.bdv-standings {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.bdv-standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
  flex-wrap: wrap;
}

.bdv-standings-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #1D2129;
  letter-spacing: -0.01em;
}

.bdv-standings-title svg {
  width: 20px;
  height: 20px;
  fill: #FFAA00;
}

.bdv-standings-tabs {
  display: flex;
  gap: 4px;
  background: #f0f1f3;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.bdv-standings-tab {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  border-radius: 8px;
  border: none;
  background: none;
  transition: all 150ms;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.bdv-standings-tab:hover {
  color: #1D2129;
  background: #fff;
}

.bdv-standings-tab.active {
  color: #1D2129;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.bdv-standings-table {
  width: 100%;
  border-collapse: collapse;
}

.bdv-standings-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #165DFF;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  background: #F0F7FF;
  white-space: nowrap;
}

.bdv-standings-table th:last-child {
  text-align: center;
}

.bdv-standings-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #1D2129;
  border-bottom: 1px solid #f3f4f6;
  transition: background 150ms;
  white-space: nowrap;
}

.bdv-standings-table tbody tr {
  transition: background 150ms;
}

.bdv-standings-table tbody tr:hover td {
  background: rgba(22,93,255,0.08);
}

.bdv-standings-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-weight: 800;
  font-size: 11px;
  border-radius: 8px;
  flex-shrink: 0;
}

.bdv-standings-pos-1 {
  background: linear-gradient(135deg, #FFAA00 0%, #e5a600 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
}

.bdv-standings-pos-top3 {
  background: rgba(16,185,129,0.1);
  color: #10b981;
}

.bdv-standings-pos-other {
  background: #f0f1f3;
  color: #9ca3af;
}

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

.bdv-standings-team-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.bdv-standings-team-logo img,
.bdv-standings-team-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bdv-standings-team span {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bdv-standings-points {
  font-weight: 800;
  color: #1D2129;
  font-size: 13px;
}

.bdv-standings-points.champion {
  color: #FFAA00;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.2);
}

.bdv-standings-gd {
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-weight: 600;
}

.bdv-standings-gd-pos { color: #10b981; }
.bdv-standings-gd-neg { color: #E94560; }

.bdv-standings-form {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.bdv-standings-form-result {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  border-radius: 6px;
  color: #FFFFFF;
  letter-spacing: 0;
}

.bdv-standings-form-win { background: #10b981; }
.bdv-standings-form-draw { background: #d1d5db; color: #fff; }
.bdv-standings-form-loss { background: #E94560; }

/* ============================================
   NEWS SECTION
   ============================================ */
.bdv-news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  transition: all 250ms;
  box-shadow: 0 4px 20px rgba(22,93,255,0.06);
  display: flex;
  flex-direction: column;
}

.bdv-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(22,93,255,0.1);
  border-color: transparent;
}

.bdv-news-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f8f9fa;
}

.bdv-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms;
}

.bdv-news-card:hover .bdv-news-card-img img {
  transform: scale(1.05);
}

.bdv-news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(22,93,255,0.1) 100%);
}

.bdv-news-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: #165DFF;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Vietnamese Portal Category Tags */
.bdv-news-card-category.bdv-category-vietnam {
  background: linear-gradient(135deg,#E94560,#c0392b);
  box-shadow: 0 2px 8px rgba(255,77,79,0.2);
}

.bdv-news-card-category.bdv-category-international {
  background: linear-gradient(135deg,#165DFF,#4080FF);
  box-shadow: 0 2px 8px rgba(22,93,255,0.2);
}

.bdv-news-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bdv-news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1D2129;
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.bdv-news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

/* Featured News */
.bdv-news-featured {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  transition: all 250ms;
  cursor: pointer;
}

.bdv-news-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px rgba(0,0,0,0.1);
  border-color: transparent;
}

@media (min-width: 768px) {
  .bdv-news-featured {
    grid-template-columns: 1.5fr 1fr;
  }
}

.bdv-news-featured-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f8f9fa;
}

@media (min-width: 768px) {
  .bdv-news-featured-img {
    aspect-ratio: unset;
    min-height: 280px;
  }
}

.bdv-news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms;
}

.bdv-news-featured:hover .bdv-news-featured-img img {
  transform: scale(1.03);
}

.bdv-news-featured-body {
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bdv-news-featured-title {
  font-size: 24px;
  font-weight: 800;
  color: #1D2129;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .bdv-news-featured-title {
    font-size: 30px;
  }
}

.bdv-news-featured-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bdv-news-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #9ca3af;
}

.bdv-news-featured-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   VIDEO PLAYER
   ============================================ */
.bdv-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.bdv-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bdv-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.bdv-player:hover .bdv-player-controls {
  opacity: 1;
}

.bdv-player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  opacity: 0;
  transition: opacity 200ms;
}

.bdv-player-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin-bottom: 12px;
  cursor: pointer;
}

.bdv-player-progress-fill {
  height: 100%;
  background: #165DFF;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.bdv-player-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bdv-player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #FFFFFF;
  border-radius: 8px;
  transition: background 150ms;
  background: none;
  border: none;
  cursor: pointer;
}

.bdv-player-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.bdv-player-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bdv-player-lines {
  display: flex;
  gap: 8px;
  margin-left: 16px;
}

.bdv-player-line-btn {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 150ms;
  border: none;
  cursor: pointer;
}

.bdv-player-line-btn:hover,
.bdv-player-line-btn.active {
  background: #165DFF;
}

.bdv-player-quality {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* ============================================
   MATCH DETAIL
   ============================================ */
.bdv-match-detail {
  padding: 32px 0;
}

.bdv-match-header {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.bdv-match-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
}

.bdv-match-header-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1D2129;
}

.bdv-match-header-league img {
  width: 24px;
  height: 24px;
}

.bdv-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.bdv-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bdv-match-team-logo {
  width: 80px;
  height: 80px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

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

.bdv-match-team-name {
  font-size: 14px;
  font-weight: 800;
  color: #1D2129;
  text-align: center;
  letter-spacing: -0.01em;
}

.bdv-match-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bdv-match-score-numbers {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 36px;
  font-weight: 800;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .bdv-match-score-numbers {
    font-size: 48px;
  }
}

.bdv-match-score-minute {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #E94560;
  padding: 2px 12px;
  background: rgba(233,69,96,0.08);
  border-radius: 9999px;
  border: 1px solid rgba(233,69,96,0.15);
}

.bdv-match-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
  color: #9ca3af;
  background: #f8f9fa;
}

.bdv-match-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bdv-match-info-item svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Match Tabs */
.bdv-match-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
  overflow-x: auto;
}

.bdv-match-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 200ms;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
}

.bdv-match-tab:hover {
  color: #165DFF;
}

.bdv-match-tab.active {
  color: #165DFF;
  border-bottom-color: #165DFF;
  background: rgba(22,93,255,0.08);
}

.bdv-match-tab svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.bdv-match-panel {
  display: none;
}

.bdv-match-panel.active {
  display: block;
}

/* Match Events */
.bdv-events {
  position: relative;
  padding-left: 32px;
}

.bdv-events::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
}

.bdv-event {
  position: relative;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.bdv-event::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bdv-event-goal::before { background: #10b981; }
.bdv-event-card-yellow::before { background: #f59e0b; }
.bdv-event-card-red::before { background: #E94560; }
.bdv-event-sub::before { background: #165DFF; }

.bdv-event-time {
  font-size: 11px;
  font-weight: 800;
  color: #E94560;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.bdv-event-player {
  font-size: 13px;
  font-weight: 700;
  color: #1D2129;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bdv-event-type {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  margin-top: 4px;
}

.bdv-event-goal .bdv-event-type { background: rgba(16,185,129,0.1); color: #10b981; }
.bdv-event-card-yellow .bdv-event-type { background: rgba(245,158,11,0.1); color: #f59e0b; }
.bdv-event-card-red .bdv-event-type { background: rgba(233,69,96,0.08); color: #E94560; }
.bdv-event-sub .bdv-event-type { background: rgba(22,93,255,0.08); color: #165DFF; }

/* Match Stats */
.bdv-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bdv-stat-row {
  display: grid;
  grid-template-columns: 50px 1fr auto 1fr 50px;
  align-items: center;
  gap: 12px;
}

.bdv-stat-value {
  font-size: 16px;
  font-weight: 800;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.bdv-stat-value:first-child { text-align: right; }
.bdv-stat-value:last-child { text-align: left; }

.bdv-stat-label {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 6px;
  font-weight: 600;
}

.bdv-stat-bar {
  position: relative;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.bdv-stat-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.bdv-stat-bar-home {
  left: 0;
  background: linear-gradient(90deg, #165DFF, #0951D4);
}

.bdv-stat-bar-away {
  right: 0;
  background: linear-gradient(270deg, #E94560, #f07080);
}

/* ============================================
   STREAM SELECTOR
   ============================================ */
.bdv-stream-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.bdv-stream-label {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bdv-stream-btn {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  background: #f8f9fa;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  transition: all 150ms;
  cursor: pointer;
}

.bdv-stream-btn:hover {
  background: rgba(22,93,255,0.08);
  border-color: #165DFF;
  color: #165DFF;
}

.bdv-stream-btn.active {
  background: #165DFF;
  border-color: #165DFF;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(45, 55, 72, 0.15);
}

/* ============================================
   LEAGUE BADGE
   ============================================ */
.bdv-league-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  transition: all 150ms;
  cursor: pointer;
}

.bdv-league-badge:hover,
.bdv-league-badge.active {
  background: rgba(22,93,255,0.08);
  border-color: #165DFF;
  color: #165DFF;
}

.bdv-league-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.bdv-page-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 32px;
  background: linear-gradient(135deg,#f8f9fa,#eef2ff);
  position: relative;
  overflow: hidden;
}

.bdv-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255, 77, 79, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 50%, rgba(22, 93, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.bdv-page-title {
  font-size: 30px;
  font-weight: 800;
  color: #1D2129;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .bdv-page-title {
    font-size: 36px;
  }
}

.bdv-page-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.bdv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.bdv-breadcrumb a {
  color: #9ca3af;
}

.bdv-breadcrumb a:hover {
  color: #165DFF;
}

.bdv-breadcrumb-sep {
  color: #d1d5db;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.bdv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px;
  text-align: center;
}

.bdv-empty-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  color: #d1d5db;
}

.bdv-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #1D2129;
  margin-bottom: 8px;
}

.bdv-empty-desc {
  font-size: 13px;
  color: #9ca3af;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.bdv-skeleton {
  background: linear-gradient(
    90deg,
    #f8f9fa 25%,
    rgba(22, 93, 255, 0.06) 50%,
    #f8f9fa 75%
  );
  background-size: 200% 100%;
  animation: bdv-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes bdv-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   ANIMATIONS — Premium Portal System
   ============================================ */

/* === SCROLL ENTRANCE ANIMATIONS === */
@keyframes bdv-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bdv-slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bdv-scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bdv-slide-left {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bdv-slide-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Primary entrance: fade + slide from bottom */
.bdv-animate-in {
  animation: bdv-fade-in 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

/* Slide up variant */
.bdv-animate-slide-up {
  animation: bdv-slide-up 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* Scale in variant */
.bdv-animate-scale-in {
  animation: bdv-scale-in 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

/* === LIVE BREATHING PULSE === */
@keyframes bdv-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.88); }
}

@keyframes bdv-live-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 77, 79, 0.2); }
  50% { box-shadow: 0 4px 16px rgba(255, 77, 79, 0.35); }
}

/* === SCORE FLASH === */
@keyframes bdv-score-flash {
  0% { transform: scale(1); }
  15% { transform: scale(1.2); color: #E94560; }
  30% { transform: scale(1.1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.bdv-animate-score {
  animation: bdv-score-flash 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* === DATA UPDATE FLASH === */
@keyframes bdv-data-flash {
  0% { background-color: transparent; }
  25% { background-color: rgba(22, 93, 255, 0.12); }
  50% { background-color: rgba(22, 93, 255, 0.06); }
  100% { background-color: transparent; }
}

@keyframes bdv-data-change {
  0% { transform: scale(1); }
  20% { transform: scale(1.12); color: #165DFF; }
  100% { transform: scale(1); }
}

.bdv-data-updated {
  animation: bdv-data-flash 1.2s cubic-bezier(0.16,1,0.3,1);
}

.bdv-value-changed {
  animation: bdv-data-change 0.5s cubic-bezier(0.16,1,0.3,1);
}

/* === STAGGER CHILDREN === */
.bdv-stagger > *,
.bdv-card-reveal > * {
  opacity: 0;
  animation: bdv-fade-in 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.bdv-stagger > *:nth-child(1), .bdv-card-reveal > *:nth-child(1) { animation-delay: 0ms; }
.bdv-stagger > *:nth-child(2), .bdv-card-reveal > *:nth-child(2) { animation-delay: 60ms; }
.bdv-stagger > *:nth-child(3), .bdv-card-reveal > *:nth-child(3) { animation-delay: 120ms; }
.bdv-stagger > *:nth-child(4), .bdv-card-reveal > *:nth-child(4) { animation-delay: 180ms; }
.bdv-stagger > *:nth-child(5), .bdv-card-reveal > *:nth-child(5) { animation-delay: 240ms; }
.bdv-stagger > *:nth-child(6), .bdv-card-reveal > *:nth-child(6) { animation-delay: 300ms; }
.bdv-stagger > *:nth-child(7), .bdv-card-reveal > *:nth-child(7) { animation-delay: 360ms; }
.bdv-stagger > *:nth-child(8), .bdv-card-reveal > *:nth-child(8) { animation-delay: 420ms; }

/* === SHIMMER LOADING === */
.bdv-skeleton {
  background: linear-gradient(
    90deg,
    #f8f9fa 25%,
    rgba(22, 93, 255, 0.06) 50%,
    #f8f9fa 75%
  );
  background-size: 200% 100%;
  animation: bdv-shimmer 1.6s ease-in-out infinite;
  border-radius: 8px;
}

/* === NAVIGATION SCROLL EFFECT === */
@keyframes bdv-nav-shrink {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* === CARD HOVER LIFT === */
@keyframes bdv-card-lift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-4px) scale(1.015); }
}

/* === SPINNER === */
@keyframes bdv-spin {
  to { transform: rotate(360deg); }
}

.bdv-spin {
  animation: bdv-spin 0.8s linear infinite;
}

/* === FLOAT === */
@keyframes bdv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bdv-float {
  animation: bdv-float 3s ease-in-out infinite;
}

/* === HERO PARTICLES (ambient) === */
@keyframes bdv-particle-drift {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
  33% { transform: translateY(-15px) translateX(8px) scale(1.1); opacity: 0.6; }
  66% { transform: translateY(-8px) translateX(-5px) scale(0.95); opacity: 0.4; }
  100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
}

/* === LIVE BADGE BREATHE === */
@keyframes bdv-live-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.bdv-live-badge {
  animation: bdv-live-glow 2s ease-in-out infinite, bdv-live-breathe 3s ease-in-out infinite;
}

/* Hardware acceleration hints */
.bdv-animate-in,
.bdv-animate-slide-up,
.bdv-animate-scale-in,
.bdv-card:hover,
.bdv-live-badge,
.bdv-float {
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   UTILITIES
   ============================================ */
.bdv-hidden { display: none; }
.bdv-block { display: block; }
.bdv-flex { display: flex; }
.bdv-inline-flex { display: inline-flex; }
.bdv-items-center { align-items: center; }
.bdv-items-start { align-items: flex-start; }
.bdv-items-end { align-items: flex-end; }
.bdv-justify-center { justify-content: center; }
.bdv-justify-between { justify-content: space-between; }
.bdv-flex-col { flex-direction: column; }
.bdv-flex-wrap { flex-wrap: wrap; }
.bdv-flex-1 { flex: 1; }

.bdv-gap-1 { gap: 4px; }
.bdv-gap-2 { gap: 8px; }
.bdv-gap-3 { gap: 12px; }
.bdv-gap-4 { gap: 16px; }
.bdv-gap-6 { gap: 24px; }
.bdv-gap-8 { gap: 32px; }

.bdv-mt-2 { margin-top: 8px; }
.bdv-mt-4 { margin-top: 16px; }
.bdv-mt-6 { margin-top: 24px; }
.bdv-mt-8 { margin-top: 32px; }
.bdv-mb-2 { margin-bottom: 8px; }
.bdv-mb-4 { margin-bottom: 16px; }
.bdv-mb-6 { margin-bottom: 24px; }
.bdv-mb-8 { margin-bottom: 32px; }

.bdv-p-4 { padding: 16px; }
.bdv-p-6 { padding: 24px; }
.bdv-p-8 { padding: 32px; }
.bdv-py-4 { padding-top: 16px; padding-bottom: 16px; }
.bdv-py-8 { padding-top: 32px; padding-bottom: 32px; }
.bdv-px-4 { padding-left: 16px; padding-right: 16px; }

.bdv-w-full { width: 100%; }
.bdv-max-w-3xl { max-width: 48rem; }
.bdv-max-w-5xl { max-width: 64rem; }

.bdv-rounded { border-radius: 8px; }
.bdv-rounded-lg { border-radius: 12px; }
.bdv-rounded-xl { border-radius: 16px; }
.bdv-rounded-full { border-radius: 9999px; }

.bdv-border { border: 1px solid #e5e7eb; }
.bdv-border-t { border-top: 1px solid #e5e7eb; }
.bdv-border-b { border-bottom: 1px solid #e5e7eb; }

.bdv-bg-surface { background: #f8f9fa; }
.bdv-bg-surface-2 { background: #f0f1f3; }

.bdv-overflow-hidden { overflow: hidden; }
.bdv-relative { position: relative; }
.bdv-absolute { position: absolute; }
.bdv-top-0 { top: 0; }
.bdv-left-0 { left: 0; }
.bdv-right-0 { right: 0; }
.bdv-bottom-0 { bottom: 0; }
.bdv-inset-0 { inset: 0; }
.bdv-z-10 { z-index: 10; }
.bdv-z-20 { z-index: 20; }
.bdv-cursor-pointer { cursor: pointer; }

.bdv-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
  .bdv-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bdv-standings-table {
    font-size: 11px;
  }

  .bdv-standings-table td,
  .bdv-standings-table th {
    padding: 8px 8px;
  }

  .bdv-standings-table th:nth-child(n+4),
  .bdv-standings-table td:nth-child(n+4) {
    display: none;
  }

  .bdv-card-team-logo {
    width: 40px;
    height: 40px;
  }

  .bdv-card-score-numbers {
    font-size: 20px;
  }

  .bdv-match-teams {
    padding: 20px;
    gap: 12px;
  }

  .bdv-match-team-logo {
    width: 60px;
    height: 60px;
  }

  .bdv-match-score-numbers {
    font-size: 30px;
  }

  .bdv-hero-teams {
    gap: 8px;
  }

  .bdv-hero-team-logo {
    width: 56px;
    height: 56px;
  }

  .bdv-hero-score-number {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .bdv-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HALFTIME BADGE
   ============================================ */
.bdv-halftime-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(245,158,11,0.1);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  letter-spacing: 0.04em;
}

/* ============================================
   PREMIUM CARD ACCENT
   ============================================ */
.bdv-card-premium {
  position: relative;
  overflow: hidden;
}

.bdv-card-premium::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255,170,0,0.1), transparent);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================
   MATCH ROW (compact list view)
   ============================================ */
.bdv-match-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 150ms;
  margin-bottom: 8px;
}

.bdv-match-row:hover {
  background: rgba(22,93,255,0.08);
  border-color: #165DFF;
}

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

.bdv-match-row-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.bdv-match-row-team span {
  font-size: 13px;
  font-weight: 700;
  color: #1D2129;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bdv-match-row-score {
  font-size: 16px;
  font-weight: 800;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
}

/* ============================================
   HEADER NEW STYLES
   ============================================ */

/* Brand Name - New Header */
.bdv-brand-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .bdv-brand-name {
    font-size: 11px;
  }
}

@media (max-width: 1024px) {
  .bdv-brand-name {
    display: none;
  }
}

/* League Dropdown Selector */
.bdv-league-dropdown {
  position: relative;
}

.bdv-league-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #165DFF;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
}

.bdv-league-btn:hover {
  background: #0951D4;
  transform: translateY(-1px);
}

.bdv-league-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 25px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 200ms;
  z-index: 100;
  overflow: hidden;
}

.bdv-league-dropdown:hover .bdv-league-menu,
.bdv-league-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bdv-league-option {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #1D2129;
  transition: all 150ms;
  border-bottom: 1px solid #f3f4f6;
}

.bdv-league-option:last-child {
  border-bottom: none;
}

.bdv-league-option:hover {
  background: rgba(233,69,96,0.1);
  color: #E94560;
  padding-left: 20px;
}

.bdv-league-option.active {
  background: rgba(233,69,96,0.1);
  color: #E94560;
  font-weight: 700;
}

/* League Filter Bar */
.bdv-league-filter .bdv-league-badge:hover {
  background: #eef0f2;
  border-color: #E94560;
  color: #E94560;
}

.bdv-league-filter .bdv-league-badge.active {
  background: #E94560;
  border-color: #E94560;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .bdv-league-dropdown {
    display: none;
  }
}

/* Login Icons */
.bdv-login-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bdv-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 150ms;
}

.bdv-login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.bdv-login-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .bdv-login-icons {
    display: none;
  }
}

/* ============================================
   HERO LEFT / RIGHT LAYOUT
   ============================================ */
.bdv-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero Player Area */
.bdv-hero-player {
  position: relative;
}

.bdv-hero-player .bdv-hero-video {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 250ms;
}

.bdv-hero-player .bdv-hero-video:hover {
  transform: scale(1.01);
  border-color: rgba(255, 255, 255, 0.2);
}

.bdv-hero-video-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.bdv-hero-video-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
}

.bdv-hero-video-live {
  position: absolute;
  top: 16px;
  left: 16px;
}

.bdv-hero-video-live .bdv-live-badge {
  background: #E94560;
  font-size: 13px;
  padding: 6px 14px;
}

/* Hero Teams Row */
.bdv-hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bdv-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.bdv-hero-team-logo {
  width: 56px;
  height: 56px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

@media (min-width: 768px) {
  .bdv-hero-team-logo {
    width: 64px;
    height: 64px;
  }
}

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

.bdv-hero-team-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
}

/* Hero Score Display */
.bdv-hero-score-display {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bdv-hero-score-number {
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .bdv-hero-score-number {
    font-size: 36px;
  }
}

.bdv-hero-score-divider {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* Hero Match Info */
.bdv-hero-match-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bdv-hero-league-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.bdv-hero-league-label svg {
  fill: #FFAA00;
}

.bdv-hero-match-status {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Stream Info */
.bdv-hero-stream-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.bdv-stream-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* Hero Right (Event Timeline) */
.bdv-hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bdv-event-timeline-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Event Timeline */
.bdv-event-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bdv-event-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 150ms;
}

.bdv-event-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.bdv-event-goal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 77, 79, 0.15);
  border-left: 3px solid #E94560;
}

.bdv-event-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
}

.bdv-event-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdv-event-icon-goal,
.bdv-event-icon-yellow,
.bdv-event-icon-red {
  font-size: 14px;
}

.bdv-event-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.bdv-event-minute {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.bdv-event-goal .bdv-event-minute {
  color: #E94560;
}

.bdv-event-card .bdv-event-minute {
  color: #f59e0b;
}

.bdv-event-player {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bdv-event-score {
  font-size: 11px;
  font-weight: 700;
  color: #E94560;
}

/* Hero Actions */
.bdv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .bdv-hero-right {
    display: none;
  }
}

/* ============================================
   LIVE MATCH CARDS - CTA BUTTON
   ============================================ */
.bdv-card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
}

.bdv-card-cta {
  font-size: 11px !important;
  padding: 8px 16px !important;
}

/* ============================================
   STANDINGS - NEW STYLES
   ============================================ */
.bdv-standings-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bdv-trophy-icon {
  width: 22px;
  height: 22px;
  fill: #FFAA00;
}

/* Zebra Striping */
.bdv-standings-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.bdv-standings-table tbody tr:hover {
  background: rgba(22,93,255,0.05) !important;
}

/* Champion Row */
.bdv-standings-row-champion {
  background: rgba(255, 170, 0, 0.08) !important;
}

/* Top 3 Row */
.bdv-standings-row-top3 {
  background: rgba(22,93,255,0.04) !important;
}

/* ============================================
   UPCOMING MATCHES - HORIZONTAL SCROLL
   ============================================ */
.bdv-scroll-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  margin: 0 calc(24px * -1);
  padding-left: 24px;
  padding-right: 24px;
}

.bdv-scroll-cards::-webkit-scrollbar {
  height: 6px;
}

.bdv-scroll-cards::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.bdv-scroll-cards::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 3px;
}

.bdv-scroll-cards::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

@media (min-width: 1024px) {
  .bdv-scroll-cards {
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
}

/* Upcoming Card */
.bdv-upcoming-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  overflow: hidden;
  transition: all 250ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bdv-upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  border-color: #165DFF;
}

.bdv-upcoming-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #f8f9fa;
}

.bdv-upcoming-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

.bdv-upcoming-league img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.bdv-upcoming-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bdv-upcoming-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bdv-upcoming-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.bdv-upcoming-team-logo {
  width: 40px;
  height: 40px;
  padding: 4px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

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

.bdv-upcoming-team-name {
  font-size: 11px;
  font-weight: 700;
  color: #1D2129;
  text-align: center;
}

.bdv-upcoming-vs {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  flex-shrink: 0;
}

.bdv-upcoming-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #165DFF;
}

.bdv-upcoming-time svg {
  fill: #9ca3af;
}

.bdv-upcoming-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(22,93,255,0.1);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #165DFF;
}

.bdv-upcoming-countdown svg {
  fill: #165DFF;
}

.bdv-schedule-btn {
  width: 100%;
  font-size: 11px !important;
  padding: 8px 16px !important;
}

/* ============================================
   NEWS - CATEGORY BADGES
   ============================================ */
.bdv-category-vietnam {
  background: #165DFF !important;
  color: #FFFFFF !important;
}

.bdv-category-international {
  background: #9ca3af !important;
  color: #FFFFFF !important;
}

/* ============================================
   SOCIAL ICON BUTTONS
   ============================================ */
.bdv-social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  color: #165DFF;
  transition: all 150ms;
  box-shadow: 0 2px 8px rgba(22,93,255,0.08);
  text-decoration: none;
}

.bdv-social-icon-btn:hover {
  background: linear-gradient(135deg,#165DFF,#4080FF);
  border-color: transparent;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22,93,255,0.25);
}

.bdv-social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ===== Teams Section (Homepage) ===== */
.bdv-teams-section {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}
.bdv-teams-scroll-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.bdv-home-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  border-top: 3px solid var(--tc, #165DFF);
  min-width: 100px;
}
.bdv-home-team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(22,93,255,0.1);
  border-color: var(--tc, #165DFF);
}
.bdv-home-team-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.bdv-home-team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bdv-home-team-name {
  font-size: 12px;
  font-weight: 700;
  color: #1D2129;
  display: block;
  margin-bottom: 2px;
}
.bdv-home-team-league {
  font-size: 10px;
  color: #9ca3af;
}

/* ===== Players Section (Homepage) ===== */
.bdv-players-section {
  padding: 48px 0;
  background: #f8f9fa;
  border-top: 1px solid #f3f4f6;
}
.bdv-players-scroll-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.bdv-home-player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.bdv-home-player-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(22,93,255,0.1);
  border-color: #165DFF;
}
.bdv-hp-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bdv-hp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bdv-hp-name {
  font-size: 13px;
  font-weight: 700;
  color: #1D2129;
  margin: 0 0 2px;
}
.bdv-hp-team {
  font-size: 11px;
  color: #165DFF;
  display: block;
  margin-bottom: 8px;
}
.bdv-hp-stats {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.bdv-hp-stat {
  font-size: 11px;
  color: #9ca3af;
}
.bdv-hp-stat strong {
  color: #E94560;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .bdv-teams-scroll-grid { grid-template-columns: repeat(6, 1fr); }
  .bdv-players-scroll-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 900px) {
  .bdv-teams-scroll-grid { grid-template-columns: repeat(4, 1fr); }
  .bdv-players-scroll-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .bdv-teams-scroll-grid { grid-template-columns: repeat(4, 1fr); }
  .bdv-players-scroll-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   PAGE CONTENT CONTAINER
   ================================================================ */
#main-content {
  padding-top: 0;
}

@media (min-width: 768px) {
  #main-content {
    padding-top: 0;
  }
}

.bdv-page-content {
  padding-top: calc(64px + 32px);
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .bdv-page-content {
    padding-top: calc(68px + 32px);
  }
}

/* ================================================================
   MODULE 1: HERO — LEFT/RIGHT COLUMN ASSETS
   ================================================================ */

/* Hero Video Player */
.bdv-hero-player {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg,#f8f9fa,#eef2ff);
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 32px rgba(22,93,255,0.1), 0 4px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bdv-hero-player:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 48px rgba(2,132,199,0.2), 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(2,132,199,0.25);
}

.bdv-hero-player-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 50%, #E8F2FF 100%);
}

.bdv-hero-player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bdv-hero-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #E94560 0%, #c0392b 100%);
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(255, 77, 79, 0.5);
  transition: all 0.2s ease;
}

.bdv-hero-player:hover .bdv-hero-play-btn {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(255, 77, 79, 0.6);
}

.bdv-hero-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 3px;
}

.bdv-hero-player-hint {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* Live badge on player */
.bdv-hero-player-live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.bdv-hero-player-live-badge .bdv-live-badge {
  background: #E94560;
  font-size: 13px;
  padding: 7px 14px;
  animation: bdv-live-glow 2s ease-in-out infinite;
}

/* Quality bar at bottom of player */
.bdv-hero-player-quality-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.bdv-hero-quality-sep {
  color: rgba(255,255,255,0.3);
}

/* Hero Match Bar (teams + score below player) */
.bdv-hero-match-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

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

.bdv-hero-match-team img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@media (min-width: 768px) {
  .bdv-hero-match-team img {
    width: 60px;
    height: 60px;
  }
}

.bdv-hero-match-team-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bdv-hero-match-score {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bdv-hero-score-n1,
.bdv-hero-score-n2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .bdv-hero-score-n1, .bdv-hero-score-n2 {
    font-size: 48px;
  }
}

.bdv-hero-score-dash {
  font-size: 24px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}

/* Hero Meta Row */
.bdv-hero-match-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bdv-hero-meta-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.bdv-hero-meta-status {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* Hero Right (Event Timeline) */
.bdv-hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

@media (max-width: 1023px) {
  .bdv-hero-right {
    display: none;
  }
}

.bdv-event-timeline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bdv-event-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
}

.bdv-event-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.bdv-event-item:hover {
  background: rgba(255,255,255,0.05);
}

.bdv-event-goal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 77, 79, 0.15);
  border-left: 3px solid #E94560;
}

.bdv-event-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 170, 0, 0.1);
  border-left: 3px solid #f59e0b;
}

.bdv-event-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdv-event-icon-goal,
.bdv-event-icon-yellow,
.bdv-event-icon-red {
  font-size: 14px;
}

.bdv-event-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.bdv-event-minute {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
}

.bdv-event-goal .bdv-event-minute { color: #E94560; }
.bdv-event-card .bdv-event-minute { color: #f59e0b; }

.bdv-event-player {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bdv-event-score {
  font-size: 11px;
  font-weight: 700;
  color: #E94560;
}

.bdv-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

/* ================================================================
   LIVE MATCH CARDS — Premium Portal Grid (Module 2)
   ================================================================ */
.bdv-live-scroll-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .bdv-live-scroll-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bdv-live-scroll-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .bdv-live-scroll-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Premium Live Card — Glassmorphism variant */
.bdv-live-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

/* Animated top accent line */
.bdv-live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #E94560, #FFAA00, #E94560);
  background-size: 200% 100%;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.bdv-live-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(255, 77, 79, 0.12);
}

.bdv-live-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
  animation: bdv-border-sweep 2s linear infinite;
}

/* Live card header */
.bdv-live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  background: #f8f9fa;
  gap: 8px;
}

.bdv-card-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  min-width: 0;
  flex: 1;
}

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

.bdv-card-league span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bdv-live-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.bdv-live-card-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bdv-live-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bdv-live-card-team-logo {
  width: 48px;
  height: 48px;
  padding: 8px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}

.bdv-live-card:hover .bdv-live-card-team-logo {
  border-color: #E94560;
  background: rgba(233,69,96,0.1);
  transform: scale(1.05);
}

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

.bdv-live-card-team-name {
  font-size: 11px;
  font-weight: 700;
  color: #1D2129;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Live card score */
.bdv-live-card-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bdv-live-card-score-nums {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.bdv-live-card-score-nums > span:first-child,
.bdv-live-card-score-nums > span:last-child {
  transition: all 0.3s ease;
}

.bdv-live-card-minute {
  font-size: 11px;
  font-weight: 700;
  color: #E94560;
  padding: 3px 10px;
  background: rgba(233,69,96,0.1);
  border-radius: 9999px;
  border: 1px solid rgba(233,69,96,0.15);
}

/* Live card events */
.bdv-live-card-events {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.bdv-live-card-event {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
  background: #f8f9fa;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.bdv-live-card-event:hover {
  background: rgba(22,93,255,0.08);
  border-color: #165DFF;
}

.bdv-live-card-event-icon { font-size: 11px; }
.bdv-live-card-event-time { font-weight: 700; color: #E94560; }
.bdv-live-card-event-player { font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Live card CTA */
.bdv-live-card-footer {
  margin-top: auto;
}

.bdv-card-cta {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 12px;
}

.bdv-live-card-team-name {
  font-size: 11px;
  font-weight: 700;
  color: #1D2129;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bdv-live-card-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bdv-live-card-score-nums {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1D2129;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.bdv-live-card-score-sep {
  font-weight: 400;
  color: #9ca3af;
}

.bdv-live-card-minute {
  font-size: 11px;
  font-weight: 700;
  color: #E94560;
  padding: 2px 8px;
  background: rgba(233,69,96,0.08);
  border-radius: 9999px;
  border: 1px solid rgba(233,69,96,0.15);
}

.bdv-live-card-events {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.bdv-live-card-event {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #9ca3af;
  background: #f8f9fa;
  padding: 3px 7px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}

.bdv-live-card-event-icon { font-size: 11px; }
.bdv-live-card-event-time { font-weight: 700; color: #E94560; }
.bdv-live-card-event-player {
  font-weight: 600;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bdv-live-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
}

.bdv-card-cta {
  font-size: 11px !important;
  padding: 7px 14px !important;
}

/* ================================================================
   STANDINGS (Module 3)
   ================================================================ */
.bdv-standings-tabs-wrap {
  margin-bottom: 20px;
}

.bdv-standings-tabs {
  display: inline-flex;
  gap: 8px;
  background: #f8f9fa;
  padding: 3px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.bdv-standings-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  border-radius: 12px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 150ms;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.bdv-standings-tab:hover {
  color: #1D2129;
  background: #fff;
}

.bdv-standings-tab.active {
  color: #fff;
  background: #165DFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bdv-standings-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
}

.bdv-standings-table {
  width: 100%;
  border-collapse: collapse;
}

.bdv-standings-table thead tr {
  background: #165DFF;
}

.bdv-standings-table thead th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  white-space: nowrap;
  border-bottom: none;
}

.bdv-standings-table thead th:last-child {
  text-align: center;
}

.bdv-standings-table tbody tr {
  transition: background 150ms;
  border-bottom: 1px solid #f3f4f6;
}

.bdv-standings-table tbody tr:last-child {
  border-bottom: none;
}

.bdv-standings-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.bdv-standings-table tbody tr:hover td {
  background: rgba(15, 52, 96, 0.04);
}

.bdv-standings-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #1D2129;
  vertical-align: middle;
}

.bdv-standings-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-radius: 8px;
  flex-shrink: 0;
}

.bdv-standings-pos-1 {
  background: linear-gradient(135deg, #FFAA00 0%, #e5a600 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
  font-size: 16px;
}

.bdv-standings-pos-top3 {
  background: rgba(16,185,129,0.1);
  color: #10b981;
  font-weight: 800;
}

.bdv-standings-pos-other {
  background: #f0f1f3;
  color: #9ca3af;
  font-weight: 700;
}

.bdv-standings-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
}

.bdv-standings-team:hover .bdv-standings-team span {
  color: #165DFF;
}

.bdv-standings-team-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.bdv-standings-team-logo img,
.bdv-standings-team-logo svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bdv-standings-team span {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms;
}

.bdv-standings-points {
  font-weight: 800;
  font-size: 14px;
}

.bdv-standings-points.champion {
  color: #FFAA00;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.2);
}

.bdv-standings-gd {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
}

.bdv-standings-gd-pos { color: #10b981; }
.bdv-standings-gd-neg { color: #E94560; }

.bdv-standings-form {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.bdv-standings-form-result {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  border-radius: 6px;
  color: #fff;
}

.bdv-standings-form-win { background: #10b981; }
.bdv-standings-form-draw { background: #d1d5db; color: #fff !important; }
.bdv-standings-form-loss { background: #E94560; }

/* Champion Row Highlight */
.bdv-standings-row-champion {
  background: linear-gradient(90deg, rgba(255, 170, 0, 0.08) 0%, rgba(255, 170, 0, 0.02) 100%) !important;
}

.bdv-standings-row-top3 {
  background: rgba(22, 93, 255, 0.05) !important;
}

/* ================================================================
   UPCOMING MATCHES (Module 4)
   ================================================================ */
.bdv-scroll-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .bdv-scroll-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bdv-scroll-cards { grid-template-columns: repeat(3, 1fr); }
}

.bdv-upcoming-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.bdv-upcoming-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  border-color: #165DFF;
}

.bdv-upcoming-card-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #f8f9fa;
}

.bdv-upcoming-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
}

.bdv-upcoming-league img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.bdv-upcoming-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.bdv-upcoming-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bdv-upcoming-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.bdv-upcoming-team-logo {
  width: 38px;
  height: 38px;
  padding: 4px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

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

.bdv-upcoming-team-name {
  font-size: 11px;
  font-weight: 700;
  color: #1D2129;
  text-align: center;
}

.bdv-upcoming-vs {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  flex-shrink: 0;
}

.bdv-upcoming-time-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #165DFF;
  padding: 8px;
  background: rgba(22,93,255,0.1);
  border-radius: 12px;
}

.bdv-upcoming-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}

.bdv-schedule-btn {
  width: 100%;
  font-size: 11px !important;
  padding: 8px 14px !important;
}

/* ================================================================
   TEAMS + PLAYERS (Module 5 - Two Column)
   ================================================================ */
.bdv-teams-players-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .bdv-teams-players-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.bdv-teams-panel,
.bdv-players-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bdv-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

@media (min-width: 640px) {
  .bdv-teams-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (min-width: 1024px) {
  .bdv-teams-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (min-width: 1280px) {
  .bdv-teams-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

.bdv-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1), border-color 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.bdv-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--tc, #165DFF);
}

.bdv-team-card:hover .bdv-tc-name {
  color: var(--tc, #165DFF);
}

.bdv-team-card-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.bdv-team-cardName {
  font-size: 13px;
  font-weight: 700;
  color: #1D2129;
  line-height: 1.3;
}

.bdv-team-card-league {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
}

.bdv-players-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bdv-player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bdv-player-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  border-color: #165DFF;
  background: #fff;
}

.bdv-player-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f1f3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
}

.bdv-player-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bdv-player-card-info {
  flex: 1;
  min-width: 0;
}

.bdv-player-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1D2129;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bdv-player-card-team {
  font-size: 11px;
  color: #165DFF;
  font-weight: 600;
}

.bdv-player-card-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.bdv-player-card-stat-goals {
  font-size: 13px;
  color: #9ca3af;
}

.bdv-player-card-stat-goals strong {
  color: #E94560;
  font-weight: 800;
}

.bdv-player-card-stat-apps {
  font-size: 11px;
  color: #9ca3af;
}

/* ================================================================
   NEWS GRID (Module 6)
   ================================================================ */
.bdv-news-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .bdv-news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bdv-news-grid { grid-template-columns: repeat(4, 1fr); }
}

.bdv-news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.bdv-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px rgba(0,0,0,0.1);
  border-color: transparent;
}

.bdv-news-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f8f9fa;
}

.bdv-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bdv-news-card:hover .bdv-news-card-img img {
  transform: scale(1.05);
}

.bdv-news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.4) 100%);
}

.bdv-news-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bdv-category-vietnam {
  background: #165DFF !important;
  color: #fff !important;
}

.bdv-category-international {
  background: #9ca3af !important;
  color: #fff !important;
}

.bdv-news-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.bdv-news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1D2129;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
  margin: 0;
}

.bdv-news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  gap: 8px;
  flex-wrap: wrap;
}

.bdv-news-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ================================================================
   HALFTIME BADGE
   ================================================================ */
.bdv-halftime-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f0f1f3;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */
@media (max-width: 768px) {
  .bdv-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bdv-standings-table {
    font-size: 11px;
  }
  .bdv-standings-table td,
  .bdv-standings-table th {
    padding: 8px 8px;
  }
  .bdv-standings-table th:nth-child(n+5),
  .bdv-standings-table td:nth-child(n+5) {
    display: none;
  }
}

@media (max-width: 640px) {
  .bdv-hero-match-bar {
    gap: 12px;
    padding: 12px 16px;
  }
  .bdv-hero-match-team img {
    width: 40px;
    height: 40px;
  }
  .bdv-hero-score-n1,
  .bdv-hero-score-n2 {
    font-size: 30px;
  }
  .bdv-teams-players-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   LEAGUE BADGE
   ================================================================ */
.bdv-league-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  transition: all 150ms;
  cursor: pointer;
}

.bdv-league-badge:hover,
.bdv-league-badge.active {
  background: rgba(22,93,255,0.08);
  border-color: #165DFF;
  color: #165DFF;
}

.bdv-league-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ================================================================
   OUTLINE BUTTON
   ================================================================ */
.bdv-btn-outline {
  background: transparent;
  color: #165DFF;
  border: 1.5px solid #165DFF;
}

.bdv-btn-outline:hover {
  background: #165DFF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.2);
}

/* ================================================================
   SECTION SPACING
   ================================================================ */
.bdv-section {
  padding: 32px 0;
}

@media (min-width: 768px) {
  .bdv-section {
    padding: 48px 0;
  }
}

@media (min-width: 1024px) {
  .bdv-section {
    padding: 64px 0;
  }
}

.bdv-section + .bdv-section {
  border-top: 1px solid #f3f4f6;
}

@media (min-width: 1024px) {
  .bdv-section + .bdv-section {
    border-top: none;
  }
}

/* ================================================================
   PAGE HEADER (shared across all secondary pages)
   ================================================================ */
.bdv-page-header {
  background: linear-gradient(135deg, #165DFF 0%, rgba(22,93,255,0.85) 100%);
  padding: 40px 0;
  color: #fff;
  margin-bottom: 32px;
}
.bdv-page-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}
.bdv-page-subtitle {
  font-size: 16px;
  opacity: 0.85;
  margin: 0;
  color: rgba(255,255,255,0.85);
}

/* ================================================================
   GLOBAL ANIMATIONS (0.2–0.3s restrained)
   ================================================================ */
@keyframes bdv-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bdv-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bdv-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.bdv-fade-in   { animation: bdv-fade-in 0.3s ease both; }
.bdv-slide-in  { animation: bdv-slide-down 0.25s ease both; }
.bdv-scale-in  { animation: bdv-scale-in 0.25s ease both; }

/* Staggered children animation */
.bdv-stagger > *:nth-child(1) { animation: bdv-fade-in 0.3s 0.05s ease both; }
.bdv-stagger > *:nth-child(2) { animation: bdv-fade-in 0.3s 0.10s ease both; }
.bdv-stagger > *:nth-child(3) { animation: bdv-fade-in 0.3s 0.15s ease both; }
.bdv-stagger > *:nth-child(4) { animation: bdv-fade-in 0.3s 0.20s ease both; }
.bdv-stagger > *:nth-child(5) { animation: bdv-fade-in 0.3s 0.25s ease both; }
.bdv-stagger > *:nth-child(6) { animation: bdv-fade-in 0.3s 0.30s ease both; }
.bdv-stagger > *:nth-child(n+7) { animation: bdv-fade-in 0.3s 0.35s ease both; }

/* Hover: smooth card lift */
.bdv-card,
.bdv-news-card,
.bdv-live-card,
.bdv-team-card,
.bdv-player-card,
.bdv-upcoming-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bdv-card:hover,
.bdv-news-card:hover,
.bdv-live-card:hover,
.bdv-team-card:hover,
.bdv-player-card:hover,
.bdv-upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,93,255,0.1);
}

/* ================================================================
   EMPTY / ERROR STATES
   ================================================================ */
.bdv-empty-state {
  text-align: center;
  padding: 80px 0;
}
.bdv-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  opacity: 0.4;
}
.bdv-empty-title {
  font-size: 22px;
  font-weight: 700;
  color: #6b7280;
  margin: 0 0 8px;
}
.bdv-empty-desc {
  font-size: 15px;
  color: #9ca3af;
  margin: 0;
}
.bdv-empty {
  text-align: center;
  padding: 64px 0;
  color: #9ca3af;
}

/* ================================================================
   LIVE / SCORE BADGES
   ================================================================ */
.bdv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #E94560;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}
.bdv-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: bdv-pulse-dot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bdv-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.bdv-halftime-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  background: #FFAA00;
  color: #1D2129;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ================================================================
   SECTION HEADERS (shared across modules)
   ================================================================ */
.bdv-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bdv-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: #1D2129;
  margin: 0 0 4px;
  line-height: 1.2;
}
.bdv-section-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}
.bdv-section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #165DFF;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  transition: gap 0.2s;
}
.bdv-section-link:hover { gap: 8px; text-decoration: underline; }
.bdv-section-link svg { width: 16px; height: 16px; }

/* ================================================================
   CARDS (shared)
   ================================================================ */
.bdv-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.bdv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  gap: 8px;
  flex-wrap: wrap;
}
.bdv-card-body { padding: 16px; }
.bdv-card-footer { padding: 12px 16px 0; border-top: 1px solid #f3f4f6; }
.bdv-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1D2129;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #165DFF;
  display: inline-block;
}
.bdv-card-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.bdv-card-league img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}
.bdv-card-cta { display: inline-flex; align-items: center; gap: 6px; }

/* ================================================================
   NEWS CARDS
   ================================================================ */
.bdv-news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bdv-news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bdv-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22,93,255,0.1);
}
.bdv-news-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.bdv-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bdv-news-card:hover .bdv-news-card-img img { transform: scale(1.03); }
.bdv-news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.bdv-news-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #E94560;
  color: #fff;
  z-index: 1;
}
.bdv-category-vietnam { background: #165DFF !important; }
.bdv-category-international { background: #10B981 !important; }
.bdv-news-card-body { padding: 14px; }
.bdv-news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1D2129;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bdv-news-card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
  flex-wrap: wrap;
}
.bdv-news-card-meta span { display: flex; align-items: center; gap: 4px; }
.bdv-news-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}
.bdv-news-featured-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.bdv-news-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.bdv-news-featured-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bdv-news-featured-title {
  font-size: 20px;
  font-weight: 800;
  color: #1D2129;
  margin: 0 0 10px;
  line-height: 1.3;
}
.bdv-news-featured-excerpt {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 14px;
}
.bdv-news-featured-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
  flex-wrap: wrap;
}
.bdv-news-featured-meta span { display: flex; align-items: center; gap: 4px; }

/* ================================================================
   LIVE CARDS
   ================================================================ */
.bdv-live-scroll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bdv-live-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bdv-live-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,93,255,0.1);
  border-color: #165DFF;
}
.bdv-live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #f3f4f6;
  gap: 8px;
  flex-wrap: wrap;
}
.bdv-live-card-body { padding: 10px 12px; }
.bdv-live-card-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.bdv-live-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.bdv-live-card-team-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.bdv-live-card-team-name {
  font-size: 11px;
  font-weight: 600;
  color: #1D2129;
  text-align: center;
}
.bdv-live-card-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.bdv-live-card-score-nums {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 800;
  color: #1D2129;
}
.bdv-live-card-score-sep { color: #9ca3af; font-weight: 400; }
.bdv-live-card-minute {
  font-size: 10px;
  color: #E94560;
  font-weight: 700;
}
.bdv-live-card-events { margin-bottom: 8px; }
.bdv-live-card-event {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  font-size: 11px;
  color: #6b7280;
  border-bottom: 1px solid #f3f4f6;
}
.bdv-live-card-event:last-child { border-bottom: none; }
.bdv-live-card-event-icon { font-size: 11px; }
.bdv-live-card-event-time { color: #9ca3af; min-width: 24px; }
.bdv-live-card-event-player { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bdv-live-card-footer { padding: 8px 0 0; }

/* ================================================================
   UPCOMING CARDS
   ================================================================ */
.bdv-scroll-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bdv-upcoming-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bdv-upcoming-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,93,255,0.1);
  border-color: #165DFF;
}
.bdv-upcoming-card-header {
  padding: 12px 14px;
  background: #f8f9fa;
  border-bottom: 1px solid #f3f4f6;
}
.bdv-upcoming-league { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #6b7280; }
.bdv-upcoming-league img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.bdv-upcoming-card-body { padding: 16px; }
.bdv-upcoming-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.bdv-upcoming-team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.bdv-upcoming-team-logo img { width: 36px; height: 36px; object-fit: contain; }
.bdv-upcoming-team-name { font-size: 11px; font-weight: 600; color: #1D2129; text-align: center; }
.bdv-upcoming-vs { font-size: 12px; color: #9ca3af; font-weight: 600; flex-shrink: 0; }
.bdv-upcoming-time-display {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  justify-content: center;
}
.bdv-upcoming-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #E94560;
  margin-bottom: 12px;
}
.bdv-schedule-btn { width: 100%; justify-content: center; }

/* ================================================================
   STANDINGS TABLES (shared between homepage & standings page)
   ================================================================ */
.bdv-standings-tabs-wrap { margin-bottom: 20px; }
.bdv-standings-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 0;
}
.bdv-standings-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -2px;
}
.bdv-standings-tab img { width: 16px; height: 16px; object-fit: contain; border-radius: 4px; }
.bdv-standings-tab:hover { color: #165DFF; }
.bdv-standings-tab.active { color: #165DFF; border-bottom-color: #165DFF; }
.bdv-standings-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.bdv-standings-table {
  width: 100%;
  border-collapse: collapse;
}
.bdv-standings-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #165DFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #F0F7FF;
  border-bottom: 1px solid #e5e7eb;
}
.bdv-standings-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.bdv-standings-table tbody tr:last-child td { border-bottom: none; }
.bdv-standings-table tbody tr:hover td { background: rgba(22,93,255,0.04); }
.bdv-standings-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  background: #f8f9fa;
  color: #6b7280;
}
.bdv-standings-pos-1 {
  background: linear-gradient(135deg,#FFAA00,#FF8C00);
  color: #fff;
}
.bdv-standings-pos-top3 {
  background: rgba(22,93,255,0.1);
  color: #165DFF;
}
.bdv-standings-team {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.bdv-standings-team-logo img,
.bdv-standings-team-logo svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.bdv-standings-team span { font-size: 13px; font-weight: 600; color: #1D2129; }
.bdv-standings-points {
  font-size: 14px;
  font-weight: 800;
  color: #165DFF;
}
.bdv-standings-row-champion td { background: rgba(255,170,0,0.08); }
.bdv-standings-row-top3 td { background: rgba(22,93,255,0.04); }
.bdv-standings-gd { font-size: 13px; }
.bdv-standings-gd-pos { color: #10b981 !important; }
.bdv-standings-gd-neg { color: #E94560 !important; }
.bdv-standings-form { display: flex; gap: 3px; }
.bdv-standings-form-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.bdv-standings-form-w { background: rgba(16,185,129,0.1); color: #10b981; }
.bdv-standings-form-d { background: rgba(100,116,139,0.15); color: #9ca3af; }
.bdv-standings-form-l { background: rgba(233,69,96,0.08); color: #E94560; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.bdv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bdv-breadcrumb a { color: #6b7280; text-decoration: none; }
.bdv-breadcrumb a:hover { color: #165DFF; text-decoration: underline; }
.bdv-breadcrumb-sep { opacity: 0.4; }

/* ================================================================
   LEAGUE FILTER TABS (shared)
   ================================================================ */
.bdv-league-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bdv-league-tab {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
  background: #fff;
}
.bdv-league-tab:hover { border-color: #165DFF; color: #165DFF; }
.bdv-league-tab.active { background: #165DFF; color: #fff; border-color: #165DFF; }
.bdv-league-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}
.bdv-league-badge:hover { border-color: #165DFF; color: #165DFF; }
.bdv-league-badge.active { background: #165DFF; color: #fff; border-color: #165DFF; }

/* ================================================================
   LINK BUTTONS
   ================================================================ */
.bdv-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1px solid #165DFF;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #165DFF;
  text-decoration: none;
  transition: all 0.2s;
}
.bdv-link-btn:hover { background: #165DFF; color: #fff; }
.bdv-link-small {
  font-size: 12px;
  color: #165DFF;
  text-decoration: none;
  font-weight: 600;
}
.bdv-link-small:hover { text-decoration: underline; }

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */
@media (max-width: 1200px) {
  .bdv-live-scroll-grid { grid-template-columns: repeat(3, 1fr); }
  .bdv-news-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .bdv-news-featured { grid-template-columns: 1fr; }
  .bdv-news-featured-img { aspect-ratio: 16 / 7; }
  .bdv-news-grid { grid-template-columns: repeat(2, 1fr); }
  .bdv-scroll-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .bdv-live-scroll-grid { grid-template-columns: repeat(2, 1fr); }
  .bdv-news-grid { grid-template-columns: repeat(2, 1fr); }
  .bdv-page-title { font-size: 26px; }
  .bdv-section-title { font-size: 18px; }
}
@media (max-width: 600px) {
  .bdv-live-scroll-grid { grid-template-columns: 1fr; }
  .bdv-scroll-cards { grid-template-columns: 1fr; }
  .bdv-news-grid { grid-template-columns: 1fr; }
  .bdv-grid-2,
  .bdv-grid-3,
  .bdv-grid-4 { grid-template-columns: 1fr; }
  .bdv-page-title { font-size: 22px; }
  .bdv-section-title { font-size: 16px; }
  .bdv-standings-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .bdv-standings-tab { white-space: nowrap; }
}

/* ================================================================
   SECONDARY PAGE STYLES
   ================================================================ */

/* Page Hero Header */
.bdv-page-hero {
    padding: 48px 0;
    color: #fff;
}
.bdv-page-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.bdv-page-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}
.bdv-page-hero-icon svg { color: rgba(255,255,255,0.9); }
.bdv-page-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #fff;
    line-height: 1.2;
}
.bdv-page-hero-sub {
    font-size: 15px;
    opacity: 0.8;
    margin: 0;
    color: rgba(255,255,255,0.85);
}

/* Players Page Filters */
.bdv-players-filters {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bdv-filter-group { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.bdv-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    padding-top: 8px;
    flex-shrink: 0;
}
.bdv-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bdv-filter-tab {
    padding: 7px 16px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
    white-space: nowrap;
}
.bdv-filter-tab:hover { border-color: #165DFF; color: #165DFF; }
.bdv-filter-tab.active { background: #165DFF; color: #fff; border-color: #165DFF; }

/* Results Info */
.bdv-results-info {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
}
.bdv-results-info strong { color: #1D2129; }

/* Players Grid v2 */
.bdv-players-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}
.bdv-player-card-v2 {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s;
}
.bdv-player-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15,52,96,0.12);
    border-color: #165DFF;
}
.bdv-pv2-avatar {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #165DFF 0%, rgba(15,52,96,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bdv-pv2-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.3);
}
.bdv-pv2-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.4);
}
.bdv-pv2-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}
.bdv-pv2-badge-gold { background: #FFAA00; color: #fff; }
.bdv-pv2-info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bdv-pv2-name { font-size: 16px; font-weight: 700; color: #1D2129; margin: 0; line-height: 1.3; }
.bdv-pv2-team {
    font-size: 12px;
    color: #165DFF;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bdv-pv2-meta { display: flex; align-items: center; gap: 8px; }
.bdv-pv2-position {
    font-size: 11px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 8px;
    color: #6b7280;
}
.bdv-pv2-nationality { font-size: 11px; color: #9ca3af; }
.bdv-pv2-stats { display: flex; border-top: 1px solid #f3f4f6; margin-top: 4px; }
.bdv-pv2-stat {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-right: 1px solid #f3f4f6;
}
.bdv-pv2-stat:last-child { border-right: none; }
.bdv-pv2-stat-goal .bdv-pv2-stat-val { color: #E94560; }
.bdv-pv2-stat-val { display: block; font-size: 18px; font-weight: 800; color: #1D2129; }
.bdv-pv2-stat-lbl { font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.3px; }
.bdv-pv2-league-tag { margin-top: auto; font-size: 11px; font-weight: 600; color: #9ca3af; text-align: right; }

/* Teams Filter */
.bdv-teams-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 28px 0 16px;
}
.bdv-teams-filter-btn {
    padding: 8px 18px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}
.bdv-teams-filter-btn:hover { border-color: #165DFF; color: #165DFF; }
.bdv-teams-filter-btn.active { background: #165DFF; color: #fff; border-color: #165DFF; }

/* Teams Grid v2 */
.bdv-teams-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}
.bdv-team-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s;
    overflow: hidden;
    position: relative;
}
.bdv-team-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15,52,96,0.12);
    border-color: var(--tc, #165DFF);
}
.bdv-tcv2-badge-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0.85;
}
.bdv-tcv2-logo { width: 72px; height: 72px; margin-bottom: 14px; }
.bdv-tcv2-logo img { width: 100%; height: 100%; object-fit: contain; }
.bdv-tcv2-name { font-size: 15px; font-weight: 700; color: #1D2129; margin: 0 0 6px; }
.bdv-tcv2-league {
    font-size: 12px;
    color: #165DFF;
    font-weight: 600;
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.bdv-tcv2-meta { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-bottom: 12px; }
.bdv-tcv2-meta-item { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: #9ca3af; }
.bdv-tcv2-form { display: flex; gap: 4px; justify-content: center; }

/* League Grid */
.bdv-league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}
.bdv-league-card-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s;
}
.bdv-league-card-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,52,96,0.1);
    border-color: #165DFF;
}
.bdv-lcv2-logo { width: 56px; height: 56px; flex-shrink: 0; }
.bdv-lcv2-logo img { width: 100%; height: 100%; object-fit: contain; }
.bdv-lcv2-info { display: flex; flex-direction: column; gap: 4px; }
.bdv-lcv2-name { font-size: 16px; font-weight: 700; color: #1D2129; margin: 0; }
.bdv-lcv2-season { font-size: 12px; color: #9ca3af; }
.bdv-lcv2-meta { display: flex; gap: 12px; font-size: 12px; color: #9ca3af; margin-top: 2px; }
.bdv-lcv2-meta span { display: flex; align-items: center; gap: 4px; }

/* Empty State */
.bdv-empty-state {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.bdv-empty-state svg { color: #9ca3af; opacity: 0.4; }
.bdv-empty-state h3 { font-size: 20px; font-weight: 700; color: #6b7280; margin: 0; }
.bdv-empty-state p { font-size: 14px; color: #9ca3af; margin: 0; }

/* Form Chips — shared */
.bdv-form-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}
.bdv-form-w { background: rgba(16,185,129,0.1); color: #10b981; }
.bdv-form-d { background: rgba(100,116,139,0.15); color: #9ca3af; }
.bdv-form-l { background: rgba(233,69,96,0.08); color: #E94560; }

/* Secondary Page Hero — generic override */
.bdv-page-header {
    background: linear-gradient(135deg,#f8f9fa,#eef2ff);
    padding: 40px 0;
    color: #1D2129;
    position: relative;
    overflow: hidden;
}

.bdv-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(2,132,199,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 70% at 80% 50%, rgba(255, 77, 79,0.04) 0%, transparent 45%);
    pointer-events: none;
}
.bdv-page-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: #1D2129; }
.bdv-page-subtitle { font-size: 15px; color: #6b7280; margin: 0; }

/* Responsive overrides for secondary pages */
@media (max-width: 600px) {
    .bdv-players-grid-v2 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .bdv-teams-grid-v2 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .bdv-league-grid { grid-template-columns: 1fr; }
    .bdv-players-filters { padding: 16px; }
    .bdv-filter-group { flex-direction: column; gap: 8px; }
    .bdv-filter-label { min-width: auto; padding-top: 0; }
    .bdv-page-hero { padding: 32px 0; }
    .bdv-page-hero-inner { flex-direction: column; text-align: center; }
    .bdv-page-hero-title { font-size: 24px; }
}

/* ================================================================
   GLOBAL ANIMATION STANDARDS
   All animations: subtle, high-end, 0.2-0.3s, hover/scroll only
   ================================================================ */

/* --- Hover Lift --- */
.bdv-card, .bdv-news-card, .bdv-live-card, .bdv-upcoming-card,
.bdv-team-card-v2, .bdv-player-card-v2, .bdv-league-card-v2,
.bdv-btn-primary, .bdv-btn-outline, .bdv-btn,
.bdv-social-link, .bdv-footer-link,
.bdv-mobile-nav-link {
    transition: all 0.2s ease;
}

/* --- Scroll Reveal (IntersectionObserver) --- */
.bdv-animate-in { opacity: 1 !important; transform: translateY(0) !important; }
.bdv-card, .bdv-news-card, .bdv-standings-card, .bdv-live-card,
.bdv-upcoming-card, .bdv-team-card-v2, .bdv-player-card-v2, .bdv-league-card-v2 {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* --- Score Flash --- */
@keyframes bdv-score-flash {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.18); color: #E94560; }
    100% { transform: scale(1); }
}
.bdv-animate-score { animation: bdv-score-flash 0.45s ease; }

/* --- Live Dot Pulse --- */
@keyframes bdv-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* --- Hero Fade In --- */
@keyframes bdv-hero-fadein {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bdv-hero-split > * { animation: bdv-hero-fadein 0.5s ease both; }
.bdv-hero-split > *:nth-child(2) { animation-delay: 0.12s; }

/* League Quick Selector */
.bdv-league-dropdown { position: relative; }
.bdv-league-btn {
    display: flex; align-items: center; gap: 4px; padding: 5px 10px;
    border: 1.5px solid rgba(22,93,255,0.25); border-radius: 8px;
    background: rgba(22,93,255,0.06); color: #165DFF;
    font-size: 12px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; white-space: nowrap;
}
.bdv-league-btn:hover { background: rgba(22,93,255,0.1); border-color: rgba(22,93,255,0.4); }
.bdv-league-menu {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 180px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15,52,96,0.14); padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all 0.2s ease; z-index: 200;
}
.bdv-league-dropdown.open .bdv-league-menu,
.bdv-league-dropdown:hover .bdv-league-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.bdv-league-option {
    display: flex; align-items: center; gap: 10px; padding: 9px 16px;
    font-size: 13px; font-weight: 500; color: #6b7280;
    text-decoration: none; transition: all 0.2s ease;
}
.bdv-league-option:hover { background: #f8f9fa; color: #165DFF; }
.bdv-league-option.active { background: #165DFF; color: #fff; }
.bdv-league-option img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }

/* ================================================================
   MOBILE NAVIGATION
   ================================================================ */
.bdv-mobile-nav { display: none; }
.bdv-mobile-nav.open { display: block; }

.bdv-mobile-nav-link {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    font-size: 15px; font-weight: 500; color: #6b7280;
    text-decoration: none; border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}
.bdv-mobile-nav-link:last-child { border-bottom: none; }
.bdv-mobile-nav-link:hover,
.bdv-mobile-nav-link.active { color: #165DFF; background: rgba(22,93,255,0.06); }
.bdv-mobile-nav-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ================================================================
   FOOTER — UNIFIED GLOBAL STYLES
   ================================================================ */
.bdv-footer {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
    border-top: 1px solid rgba(22,93,255,0.08);
    padding: 0; color: #6b7280;
    font-family: Inter,system-ui,-apple-system,sans-serif; margin-top: 80px;
    position: relative; overflow: hidden;
}
.bdv-footer::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,77,79,0.04) 0%, transparent 60%),
                radial-gradient(ellipse 40% 30% at 20% 80%, rgba(22,93,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.bdv-footer::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E94560, #FFAA00, #E94560, transparent);
}

.bdv-footer-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}
.bdv-footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bdv-footer-logo-icon { width: 40px; height: 40px; flex-shrink: 0; position: relative; }
.bdv-footer-logo-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg,#E94560,#c0392b);
    opacity: 0.2;
    filter: blur(6px);
    z-index: -1;
}
.bdv-footer-logo-icon svg { width: 40px; height: 40px; }
.bdv-footer-logo-text { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #165DFF; line-height: 1.3; }

.bdv-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr; gap: 36px; padding: 40px 0; }
@media (max-width: 1100px) { .bdv-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }
@media (max-width: 768px) { .bdv-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 500px) { .bdv-footer-grid { grid-template-columns: 1fr; gap: 20px; } }

.bdv-footer-brand { position: relative; }
.bdv-footer-desc { color: #6b7280; font-size: 14px; line-height: 1.7; margin: 0 0 20px; }

.bdv-footer-app-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.bdv-app-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #1D2129;
    transition: all 0.2s ease;
}
.bdv-app-badge:hover { border-color: #165DFF; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,93,255,0.1); }
.bdv-app-badge svg { flex-shrink: 0; }
.bdv-app-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.bdv-app-badge-text small { font-size: 9px; color: #9ca3af; font-weight: 500; }
.bdv-app-badge-text span { font-size: 13px; font-weight: 700; color: #1D2129; }

.bdv-footer-title {
    font-size: 14px; font-weight: 700; color: #165DFF; margin: 0 0 14px;
    position: relative; padding-bottom: 10px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.bdv-footer-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 24px; height: 2px; background: #E94560; border-radius: 2px;
}
.bdv-footer-links { display: flex; flex-direction: column; gap: 7px; }
.bdv-footer-link {
    color: #6b7280; text-decoration: none; font-size: 13px;
    transition: all 0.2s ease; display: flex; align-items: center; gap: 6px;
}
.bdv-footer-link:hover { color: #165DFF; padding-left: 4px; }
.bdv-footer-link svg { flex-shrink: 0; opacity: 0.6; }
.bdv-footer-link:hover svg { opacity: 1; }
.bdv-footer-link-more { color: #165DFF; font-weight: 600; font-size: 12px; margin-top: 4px; }
.bdv-footer-link-more:hover { color: #E94560; }

.bdv-footer-league-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    display: inline-block; box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.bdv-footer-social { display: flex; flex-wrap: wrap; gap: 8px; }

.bdv-footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}
.bdv-footer-social-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.bdv-footer-social-facebook { color: #1877F2; border-color: rgba(24,119,242,0.2); background: rgba(24,119,242,0.06); }
.bdv-footer-social-facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(24,119,242,0.3); }
.bdv-footer-social-zalo { color: #0068FF; border-color: rgba(0,104,255,0.2); background: rgba(0,104,255,0.06); }
.bdv-footer-social-zalo:hover { background: #0068FF; color: #fff; border-color: #0068FF; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,104,255,0.3); }
.bdv-footer-social-youtube { color: #FF0000; border-color: rgba(255,0,0,0.15); background: rgba(255,0,0,0.04); }
.bdv-footer-social-youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,0,0,0.3); }
.bdv-footer-social-instagram { color: #E4405F; border-color: rgba(228,64,95,0.15); background: rgba(228,64,95,0.04); }
.bdv-footer-social-instagram:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(228,64,95,0.3); }
.bdv-footer-social-tiktok { color: #010101; border-color: rgba(1,1,1,0.12); background: rgba(1,1,1,0.04); }
.bdv-footer-social-tiktok:hover { background: #010101; color: #fff; border-color: #010101; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(1,1,1,0.3); }

.bdv-footer-address { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.bdv-footer-address .bdv-address-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.bdv-footer-address .bdv-address-line a { color: #165DFF; text-decoration: none; }
.bdv-footer-address .bdv-address-line a:hover { text-decoration: underline; }
.bdv-address-tel a { font-weight: 700; font-size: 14px; }
.bdv-address-hours span { font-size: 11px; color: #9ca3af; }

.bdv-payment-methods { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid #f3f4f6; }
.bdv-payment-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #9ca3af; font-weight: 500; transition: all 0.2s ease; text-decoration: none; }
.bdv-payment-item:hover { transform: scale(1.1); color: #6b7280; }
.bdv-payment-item img { border-radius: 8px; width: 36px; height: 36px; object-fit: contain; }

.bdv-footer-friend-links { padding: 24px 0 16px; border-top: 1px solid #f3f4f6; }
.bdv-footer-friend-links-title {
    font-size: 14px; font-weight: 700; color: #1D2129; margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.bdv-footer-friend-links-title svg { color: #165DFF; }
.bdv-footer-friend-links-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bdv-footer-friend-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; background: #f8f9fa; border: 1px solid #e5e7eb;
    border-radius: 6px; font-size: 12px; font-weight: 500; color: #9ca3af;
    text-decoration: none; transition: all 0.2s;
}
.bdv-footer-friend-link:hover {
    border-color: #165DFF; color: #165DFF;
    background: rgba(22,93,255,0.05); transform: translateY(-1px);
}

.bdv-footer-bottom { padding: 20px 0; border-top: 1px solid #f3f4f6; background: rgba(2,132,199,0.03); }
.bdv-footer-bottom-inner { text-align: center; }
.bdv-footer-disclaimer {
    font-size: 12px; color: #9ca3af; line-height: 1.6;
    margin: 0 0 16px; padding: 14px 18px; background: #f8f9fa;
    border-radius: 10px; border: 1px solid #e5e7eb;
    display: flex; align-items: flex-start; gap: 8px; text-align: left;
}
.bdv-footer-disclaimer strong { color: #6b7280; font-weight: 600; }
.bdv-footer-copyright-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
}
.bdv-footer-copyright-text { font-size: 12px; color: #9ca3af; margin: 0; }
.bdv-footer-links-inline { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.bdv-footer-links-inline a { color: #9ca3af; text-decoration: none; font-size: 12px; transition: color 0.2s; padding: 2px 6px; border-radius: 4px; }
.bdv-footer-links-inline a:hover { color: #165DFF; background: rgba(22,93,255,0.06); }

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 900px) {
    .bdv-footer-top-bar { flex-direction: column; align-items: flex-start; }
    .bdv-footer { margin-top: 48px; }
}
@media (max-width: 600px) {
    .bdv-footer { margin-top: 32px; }
    .bdv-footer-top-bar { padding: 20px 0; }
    .bdv-footer-grid { padding: 24px 0; }
    .bdv-footer-logo-text { font-size: 10px; }
    .bdv-footer-social-btn span { display: none; }
    .bdv-footer-social-btn { padding: 8px; }
    .bdv-footer-app-badges { flex-direction: column; }
    .bdv-footer-disclaimer { flex-direction: column; gap: 4px; text-align: center; }
    .bdv-footer-copyright-row { flex-direction: column; text-align: center; }
    .bdv-footer-links-inline { justify-content: center; }
}

/* ===== FOOTER DARK MODE ===== */
html.dark-mode .bdv-footer {
    background: linear-gradient(135deg, #0D1929 0%, #060E1A 100%);
    border-top-color: rgba(64,128,255,0.1);
}
html.dark-mode .bdv-footer::before {
    background: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,77,79,0.06) 0%, transparent 60%),
                radial-gradient(ellipse 40% 30% at 20% 80%, rgba(64,128,255,0.08) 0%, transparent 60%);
}
html.dark-mode .bdv-footer::after {
    background: linear-gradient(90deg, transparent, rgba(64,128,255,0.4), rgba(255,200,0,0.3), rgba(64,128,255,0.4), transparent);
}
html.dark-mode .bdv-footer-top-bar { border-bottom-color: rgba(64,128,255,0.1); }
html.dark-mode .bdv-footer-logo-text { color: #165DFF; }
html.dark-mode .bdv-footer-desc { color: #9ca3af; }
html.dark-mode .bdv-app-badge { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
html.dark-mode .bdv-app-badge:hover { border-color: #165DFF; background: rgba(64,128,255,0.08); }
html.dark-mode .bdv-app-badge-text span { color: #6b7280; }
html.dark-mode .bdv-footer-disclaimer {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}
html.dark-mode .bdv-footer-bottom { background: rgba(0,0,0,0.2); border-top-color: rgba(64,128,255,0.08); }
html.dark-mode .bdv-footer-social-tiktok {
    color: #6b7280;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}
html.dark-mode .bdv-footer-social-tiktok:hover {
    background: #fff; color: #000; border-color: #fff;
}
html.dark-mode .bdv-payment-methods { border-top-color: rgba(255,255,255,0.06); }
html.dark-mode .bdv-footer-copyright-row { border-top-color: rgba(64,128,255,0.08); }
html.dark-mode .bdv-footer-links-inline a:hover { background: rgba(64,128,255,0.1); }

/* ================================================================
   GLOBAL ERROR / EMPTY STATES (Vietnamese friendly fallback)
   ================================================================ */
.bdv-error-state { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bdv-error-state-icon { color: #9ca3af; opacity: 0.4; }
.bdv-error-state h2 { font-size: 22px; font-weight: 800; color: #6b7280; margin: 0; }
.bdv-error-state p { font-size: 14px; color: #9ca3af; margin: 0 0 8px; }
.bdv-error-state .bdv-btn { margin-top: 8px; }

/* ================================================================
   SEARCH BAR
   ================================================================ */
.bdv-search-bar { display: none; }
.bdv-search-bar.open { display: block; }
.bdv-search-wrapper { position: relative; display: flex; align-items: center; }
.bdv-search-icon { position: absolute; left: 14px; color: rgba(255,255,255,0.5); display: flex; pointer-events: none; }
.bdv-search-icon svg { width: 18px; height: 18px; }
.bdv-search-input {
    width: 100%; padding: 10px 14px 10px 42px;
    border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
    background: rgba(255,255,255,0.08); color: #fff; font-size: 14px;
    outline: none; transition: all 0.2s ease;
}
.bdv-search-input::placeholder { color: rgba(255,255,255,0.4); }
.bdv-search-input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }

/* ================================================================
   RESPONSIVE HEADER / FOOTER / GLOBAL LAYOUT
   ================================================================ */

/* Tablet (768px-1024px): Condensed header */
@media (max-width: 1024px) {
  .bdv-brand-name { display: none; }
}

@media (max-width: 900px) {
  .bdv-nav { display: none !important; }
  .bdv-league-dropdown { display: none; }
  .bdv-mobile-menu-btn { display: flex !important; }
  /* Header search bar: show full-width on mobile */
  #bdv-search-bar {
    display: none;
    width: 100%;
    padding: 8px 0;
  }
  #bdv-search-bar.open { display: block; }
}

/* Mobile (≤600px): All adaptive */
@media (max-width: 600px) {
  .bdv-social-link span { display: none; }
  .bdv-social-link { padding: 8px; }
}

/* ===== INTERNAL LINKS — Auto-linked keywords in article content ===== */
.bdv-internal-link {
    color: #165DFF;
    text-decoration: none;
    border-bottom: 2px solid rgba(22,93,255,0.5);
    transition: all 0.2s ease;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    background: rgba(22,93,255,0.06);
    border-radius: 3px;
    padding: 1px 3px;
}
.bdv-internal-link:hover {
    color: #fff;
    background: #165DFF;
    border-bottom-color: #165DFF;
    border-radius: 3px;
    padding: 1px 3px;
}
.bdv-internal-link:visited {
    color: #7C3AED;
    border-bottom-color: rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.06);
}
.bdv-internal-link:visited:hover {
    color: #fff;
    background: #7C3AED;
    border-bottom-color: #7C3AED;
}
html.dark-mode .bdv-internal-link {
    color: #60A5FA;
    border-bottom-color: rgba(96,165,250,0.5);
    background: rgba(96,165,250,0.1);
}
html.dark-mode .bdv-internal-link:hover {
    color: #1E293B;
    background: #60A5FA;
    border-bottom-color: #60A5FA;
}
html.dark-mode .bdv-internal-link:visited {
    color: #A78BFA;
    border-bottom-color: rgba(167,139,250,0.5);
    background: rgba(167,139,250,0.1);
}
html.dark-mode .bdv-internal-link:visited:hover {
    color: #1E293B;
    background: #A78BFA;
    border-bottom-color: #A78BFA;
}

.bdv-news-detail-body p {
    line-height: 1.85;
    margin-bottom: 18px;
    font-size: 15px;
    color: #6b7280;
}
.bdv-news-detail-body p:last-child {
    margin-bottom: 0;
}
.bdv-news-detail-lead {
    font-size: 17px !important;
    font-weight: 600;
    color: #1D2129 !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

/* ===== TOOLTIP for truncated text ===== */
[title] { cursor: help; }
.bdv-tooltip-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bdv-tooltip-wrap:hover::after {
    content: attr(data-full);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: #1D2129;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bdv-tooltip-wrap:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1D2129;
    z-index: 9999;
    pointer-events: none;
}

@media (max-width: 600px) {
  /* Mobile header: compact layout */
  .bdv-header-inner { gap: 6px; }
  .bdv-btn-icon { width: 36px; height: 36px; }
  .bdv-logo-icon { width: 34px; height: 34px; }
  .bdv-logo-icon svg { width: 18px; height: 18px; }

  /* Mobile search: full width on open */
  .bdv-search-input { font-size: 14px; padding: 10px 14px 10px 42px; }

  /* Mobile cards: single column */
  .bdv-live-card { flex-direction: column; padding: 12px; }
  .bdv-live-card-time { flex-direction: row; align-items: center; gap: 8px; }
  .bdv-upcoming-card { flex-direction: column; gap: 8px; }

  /* Table overflow: horizontal scroll */
  .bdv-standings-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bdv-standings-table { min-width: 600px; }
}

/* Tablet responsive improvements (601px-900px) */
@media (min-width: 601px) and (max-width: 900px) {
  /* Players/teams grid: 3 columns on tablet */
  .bdv-players-grid-v2 { grid-template-columns: repeat(3, 1fr); }
  .bdv-teams-grid-v2 { grid-template-columns: repeat(3, 1fr); }
  .bdv-league-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}

/* Large tablet / small desktop (901px-1024px) */
@media (min-width: 901px) and (max-width: 1024px) {
  .bdv-players-grid-v2 { grid-template-columns: repeat(4, 1fr); }
  .bdv-teams-grid-v2 { grid-template-columns: repeat(4, 1fr); }
}

/* Wide tablet / desktop (1025px-1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .bdv-players-grid-v2 { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Smooth loading state ===== */
.bdv-loading-skeleton {
  background: linear-gradient(90deg, #f8f9fa 25%, rgba(22, 93, 255, 0.06) 50%, #f8f9fa 75%);
  background-size: 200% 100%;
  animation: bdv-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes bdv-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== Stream error overlay (global) ===== */
.bdv-player-error-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  border-radius: inherit;
  padding: 20px;
  text-align: center;
}
.bdv-player-error-overlay.visible { display: flex; }
.bdv-player-error-overlay svg { color: rgba(255,255,255,0.4); }
.bdv-player-error-overlay p { color: rgba(255,255,255,0.8); font-size: 14px; margin: 0; }
.bdv-player-error-overlay .bdv-btn {
  background: #E94560;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.bdv-player-error-overlay .bdv-btn:hover { background: #c0392b; }

@media (max-width: 900px) {
    .bdv-players-grid-v2 { grid-template-columns: repeat(3, 1fr); }
    .bdv-teams-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================
   PREMIUM ENHANCEMENTS - HERO PARTICLES
   ============================================= */
@keyframes bdv-ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

.bdv-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.bdv-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(22, 93, 255, 0.35);
    border-radius: 50%;
    animation: bdv-particle-float linear infinite;
    will-change: transform;
}

@keyframes bdv-particle-float {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-400px) scale(0); opacity: 0; }
}

.bdv-particle:nth-child(1) { left: 5%; animation-duration: 6s; animation-delay: 0s; width: 2px; height: 2px; }
.bdv-particle:nth-child(2) { left: 10%; animation-duration: 8s; animation-delay: 1s; width: 4px; height: 4px; }
.bdv-particle:nth-child(3) { left: 15%; animation-duration: 5s; animation-delay: 0.5s; }
.bdv-particle:nth-child(4) { left: 20%; animation-duration: 7s; animation-delay: 2s; width: 2px; height: 2px; }
.bdv-particle:nth-child(5) { left: 25%; animation-duration: 9s; animation-delay: 1.5s; }
.bdv-particle:nth-child(6) { left: 30%; animation-duration: 6s; animation-delay: 3s; width: 3px; height: 3px; }
.bdv-particle:nth-child(7) { left: 35%; animation-duration: 8s; animation-delay: 0.8s; }
.bdv-particle:nth-child(8) { left: 40%; animation-duration: 5s; animation-delay: 2.5s; width: 2px; height: 2px; }
.bdv-particle:nth-child(9) { left: 45%; animation-duration: 7s; animation-delay: 1.2s; }
.bdv-particle:nth-child(10) { left: 50%; animation-duration: 6s; animation-delay: 0.3s; width: 4px; height: 4px; }
.bdv-particle:nth-child(11) { left: 55%; animation-duration: 9s; animation-delay: 3.5s; }
.bdv-particle:nth-child(12) { left: 60%; animation-duration: 5s; animation-delay: 1.8s; width: 2px; height: 2px; }
.bdv-particle:nth-child(13) { left: 65%; animation-duration: 8s; animation-delay: 0.6s; }
.bdv-particle:nth-child(14) { left: 70%; animation-duration: 6s; animation-delay: 2.2s; width: 3px; height: 3px; }
.bdv-particle:nth-child(15) { left: 75%; animation-duration: 7s; animation-delay: 0.1s; }
.bdv-particle:nth-child(16) { left: 80%; animation-duration: 5s; animation-delay: 4s; width: 2px; height: 2px; }
.bdv-particle:nth-child(17) { left: 85%; animation-duration: 9s; animation-delay: 1.9s; }
.bdv-particle:nth-child(18) { left: 90%; animation-duration: 6s; animation-delay: 2.8s; width: 4px; height: 4px; }
.bdv-particle:nth-child(19) { left: 95%; animation-duration: 8s; animation-delay: 0.4s; }
.bdv-particle:nth-child(20) { left: 8%; animation-duration: 7s; animation-delay: 5s; width: 3px; height: 3px; }
.bdv-particle:nth-child(21) { left: 28%; animation-duration: 6s; animation-delay: 4.5s; }
.bdv-particle:nth-child(22) { left: 48%; animation-duration: 8s; animation-delay: 3.8s; width: 2px; height: 2px; }
.bdv-particle:nth-child(23) { left: 68%; animation-duration: 5s; animation-delay: 2.9s; }
.bdv-particle:nth-child(24) { left: 88%; animation-duration: 9s; animation-delay: 4.2s; width: 3px; height: 3px; }

/* Secondary color particles */
.bdv-particle:nth-child(even) {
    background: rgba(15, 52, 96, 0.4);
}

/* =============================================
   PREMIUM BUTTON VARIANTS
   ============================================= */
.bdv-btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg,#E94560,#c0392b);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(233,69,96,0.15);
}

.bdv-btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.bdv-btn-hero-primary:hover::before { left: 100%; }
.bdv-btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 79, 0.4);
}

.bdv-btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.bdv-btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* =============================================
   MATCH COUNT BADGE
   ============================================= */
.bdv-hero-live-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 77, 79, 0.15);
    border: 1px solid rgba(255, 77, 79, 0.3);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
}

.bdv-hero-live-count-dot {
    width: 8px;
    height: 8px;
    background: #E94560;
    border-radius: 50%;
    animation: bdv-live-pulse 2s ease-in-out infinite;
}

/* =============================================
   SECTION TITLE BADGE
   ============================================= */
.bdv-section-title-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #E94560;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    margin-left: 12px;
    vertical-align: middle;
    animation: bdv-live-pulse 2s ease-in-out infinite;
}

/* =============================================
   ENHANCED CARD REVEAL
   ============================================= */
.bdv-card-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.bdv-card-reveal.bdv-revealed {
    opacity: 1;
    transform: translateY(0);
}

.bdv-card-reveal:nth-child(1) { transition-delay: 0ms; }
.bdv-card-reveal:nth-child(2) { transition-delay: 80ms; }
.bdv-card-reveal:nth-child(3) { transition-delay: 160ms; }
.bdv-card-reveal:nth-child(4) { transition-delay: 240ms; }
.bdv-card-reveal:nth-child(5) { transition-delay: 320ms; }
.bdv-card-reveal:nth-child(6) { transition-delay: 400ms; }
.bdv-card-reveal:nth-child(7) { transition-delay: 480ms; }
.bdv-card-reveal:nth-child(8) { transition-delay: 560ms; }

/* =============================================
   STATS BAR (for player/team stats)
   ============================================= */
.bdv-stat-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bdv-stat-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}

.bdv-stat-bar-value {
    font-weight: 600;
    color: #1D2129;
}

.bdv-stat-bar-track {
    height: 6px;
    background: #f9fafb;
    border-radius: 3px;
    overflow: hidden;
}

.bdv-stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(135deg,#165DFF,#4080FF);
    transition: width 1s ease-out;
}

/* =============================================
   RANK BADGE
   ============================================= */
.bdv-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: #f9fafb;
    color: #6b7280;
}

.bdv-rank-badge.top-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.bdv-rank-badge.top-2 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: #fff; }
.bdv-rank-badge.top-3 { background: linear-gradient(135deg, #CD7F32, #B87333); color: #fff; }
.bdv-rank-badge.promotion { background: linear-gradient(135deg,#E94560,#c0392b); color: #fff; }
.bdv-rank-badge.relegation { background: #9ca3af; color: #fff; }

/* =============================================
   LEAGUE BADGE
   ============================================= */
.bdv-league-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.bdv-league-badge-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.bdv-league-badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =============================================
   LIVE REFRESH INDICATOR
   ============================================= */
.bdv-refreshing-indicator {
    position: relative;
    overflow: hidden;
}

.bdv-refreshing-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg,#E94560,#c0392b);
    animation: bdv-refresh-sweep 1.5s ease-in-out infinite;
}

@keyframes bdv-refresh-sweep {
    0% { left: -100%; background: linear-gradient(90deg, transparent, rgba(22,93,255,0.08), transparent); }
    100% { left: 100%; background: linear-gradient(90deg, transparent, rgba(22,93,255,0.08), transparent); }
}

/* =============================================
   MINI STANDINGS TABLE
   ============================================= */
.bdv-standings-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.bdv-standings-mini-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f3f4f6;
}

.bdv-standings-mini-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: #1D2129;
    border-bottom: 1px solid #f3f4f6;
}

.bdv-standings-mini-table tr:last-child td { border-bottom: none; }
.bdv-standings-mini-table tr:hover td { background: #f9fafb; }

/* =============================================
   MATCH TIME BADGE
   ============================================= */
.bdv-match-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.bdv-match-time-badge.live {
    background: #E94560;
    color: #fff;
    animation: bdv-live-pulse 2s ease-in-out infinite;
}

.bdv-match-time-badge.upcoming {
    background: #f9fafb;
    color: #6b7280;
}

.bdv-match-time-badge.finished {
    background: #f9fafb;
    color: #9ca3af;
}

/* =============================================
   PLAYER CARD GLOW
   ============================================= */
.bdv-player-card-glow {
    position: relative;
}

.bdv-player-card-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,#165DFF,#4080FF);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.bdv-player-card-glow:hover::after { opacity: 0.3; }

/* =============================================
   TEAM CARD GLOW
   ============================================= */
.bdv-team-card-glow {
    position: relative;
}

.bdv-team-card-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,#E94560,#c0392b);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.bdv-team-card-glow:hover::after { opacity: 0.3; }

/* =============================================
   DATA UPDATED FLASH
   ============================================= */
.bdv-data-updated {
    animation: bdv-data-flash 0.8s ease-out;
}

@keyframes bdv-data-flash {
    0% { background-color: rgba(22, 93, 255, 0.15); }
    100% { background-color: transparent; }
}

.bdv-value-changed {
    animation: bdv-value-change 0.5s ease-out;
}

@keyframes bdv-value-change {
    0% { color: #E94560; transform: scale(1.1); }
    100% { color: inherit; transform: scale(1); }
}

/* =============================================
   STREAM QUALITY INDICATOR
   ============================================= */
.bdv-quality-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.bdv-quality-dot.medium { background: #f59e0b; }
.bdv-quality-dot.low { background: #E94560; }

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.bdv-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(135deg,#E94560,#c0392b);
    z-index: 10000;
    transition: width 0.1s linear;
    transform-origin: left;
}

/* =============================================
   ENHANCED RESPONSIVE UTILITIES
   ============================================= */
@media (max-width: 768px) {
    .bdv-hero-live-count { font-size: 12px; padding: 6px 12px; }
    .bdv-section-title-badge { font-size: 10px; padding: 3px 8px; margin-left: 8px; }
    .bdv-btn-hero-primary,
    .bdv-btn-hero-secondary { padding: 12px 20px; font-size: 14px; }
}

/* =============================================
   LIVE REFRESH ACTIVE CLASS
   ============================================= */
.bdv-refreshing {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.bdv-refreshing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E94560, transparent);
    animation: bdv-refresh-sweep 1s ease-in-out infinite;
    z-index: 10;
}

/* ================================================================
   MODULE 1: NEW HERO — 680px Immersive C位, 8:4 Split
   ================================================================ */
.bdv-hero-section {
  background: linear-gradient(135deg,#f8f9fa,#eef2ff);
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 680px;
}
.bdv-hero-atmosphere { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bdv-hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25; }
.bdv-hero-glow-1 { width: 400px; height: 400px; background: #E94560; top: -100px; right: 5%; opacity: 0.08; }
.bdv-hero-glow-2 { width: 300px; height: 300px; background: #FFAA00; bottom: -80px; left: 2%; opacity: 0.08; }
.bdv-hero-topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 12px;
}
.bdv-hero-live-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(233,69,96,0.08);
  border: 1px solid rgba(255,77,79,0.25);
  border-radius: 20px;
  font-size: 13px; font-weight: 600; color: #E94560;
  backdrop-filter: blur(8px);
}
.bdv-hero-live-indicator .bdv-live-dot { animation: bdv-live-pulse 2s ease-in-out infinite; }
.bdv-hero-league-tag { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #6b7280; }
.bdv-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 16px 0 32px;
  position: relative; z-index: 1;
}
@media (min-width: 1024px) {
  .bdv-hero-split { grid-template-columns: 67fr 33fr; gap: 32px; padding: 24px 0 48px; }
}
.bdv-hero-main { display: flex; flex-direction: column; gap: 16px; }
.bdv-hero-player-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(22,93,255,0.12), 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(22,93,255,0.08);
}
.bdv-hero-player-cover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: #0a1628;
  border: none;
  border-radius: 16px;
}
.bdv-hero-player-center {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none;
  transition: transform 0.25s ease;
  z-index: 2;
}
.bdv-hero-player-center:hover { transform: scale(1.05); }
.bdv-hero-big-play {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#E94560,#c0392b);
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(255,77,79,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bdv-hero-player-center:hover .bdv-hero-big-play { transform: scale(1.08); box-shadow: 0 12px 40px rgba(255,77,79,0.4); }
.bdv-hero-big-play svg { fill: #fff; margin-left: 4px; }
.bdv-hero-big-play-hint { font-size: 14px; font-weight: 600; color: #6b7280; text-align: center; margin: 0; }
.bdv-hero-player-score-overlay {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 16px;
  font-size: 48px; font-weight: 800; color: #1D2129;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1; pointer-events: none;
}
.bdv-hero-ov-sep { opacity: 0.6; font-weight: 300; }
.bdv-hero-live-sticker {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg,#E94560,#c0392b);
  border-radius: 20px;
  font-size: 12px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 16px rgba(255,77,79,0.3);
  animation: bdv-live-glow 2s ease-in-out infinite;
}
.bdv-hero-live-sticker .bdv-live-dot { animation: bdv-live-pulse 2s ease-in-out infinite; }
.bdv-hero-live-sticker-halftime { background: rgba(255,170,0,0.9); box-shadow: 0 4px 16px rgba(255,170,0,0.3); animation: none; }

/* Controls card: white glassmorphism, separate from overflow */
.bdv-hero-ctrl-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(22,93,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bdv-hero-ctrl-teams { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bdv-hero-ctrl-team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.bdv-hero-ctrl-logo img, .bdv-hero-ctrl-logo svg { width: 36px; height: 36px; object-fit: contain; }
.bdv-hero-ctrl-name { font-size: 12px; font-weight: 700; color: #1D2129; text-align: center; }
.bdv-hero-ctrl-score { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bdv-hero-ctrl-n1, .bdv-hero-ctrl-n2 { font-size: 32px; font-weight: 800; color: #1D2129; }
.bdv-hero-ctrl-dash { font-size: 22px; color: #9ca3af; font-weight: 300; }
.bdv-hero-ctrl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bdv-hero-ctrl-quality { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9ca3af; font-weight: 500; }
.bdv-hero-ctrl-sep { color: #e5e7eb; }
.bdv-hero-ctrl-minute { color: #E94560; font-weight: 700; }
.bdv-hero-ctrl-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(22,93,255,0.25);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.bdv-hero-ctrl-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,93,255,0.35); color: #fff; }
.bdv-hero-events-ticker {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
}
.bdv-hero-ticker-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #FFAA00; white-space: nowrap; flex-shrink: 0; }
.bdv-hero-ticker-items { display: flex; gap: 16px; flex-shrink: 0; }
.bdv-hero-ticker-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; white-space: nowrap; }
.bdv-hero-ticker-icon { font-size: 14px; }
.bdv-hero-ticker-time { font-weight: 700; color: #E94560; }
.bdv-hero-ticker-player { font-weight: 600; color: #1D2129; }
.bdv-hero-ticker-score { color: #9ca3af; font-size: 12px; }
.bdv-hero-sidebar {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.bdv-hero-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
}
.bdv-hero-sidebar-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #1D2129; margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }
.bdv-hero-sidebar-title .bdv-live-dot { animation: bdv-live-pulse 2s ease-in-out infinite; }
.bdv-hero-sidebar-link { font-size: 12px; color: #165DFF; text-decoration: none; transition: color 0.2s; font-weight: 600; }
.bdv-hero-sidebar-link:hover { color: #0951D4; }
.bdv-hero-sidebar-list { display: flex; flex-direction: column; flex: 1; overflow-y: auto; max-height: 480px; }
.bdv-hero-sidebar-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
  background: #fff;
}
.bdv-hero-sidebar-item:last-child { border-bottom: none; }
.bdv-hero-sidebar-item:hover { background: #F0F7FF; }
.bdv-hero-sidebar-item-featured {
  background: linear-gradient(135deg, rgba(255,77,79,0.04), rgba(22,93,255,0.04));
  border-left: 3px solid #E94560;
}
.bdv-hero-sidebar-item-featured:hover { background: rgba(255,77,79,0.06); }
.bdv-hero-sidebar-league { font-size: 11px; font-weight: 600; color: #FFAA00; text-transform: uppercase; letter-spacing: 0.5px; }
.bdv-hero-sidebar-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bdv-hero-sidebar-team-name { font-size: 13px; font-weight: 700; color: #1D2129; flex: 1; text-align: center; }
.bdv-hero-sidebar-score { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bdv-hero-sidebar-score-n { font-size: 16px; font-weight: 800; color: #1D2129; font-variant-numeric: tabular-nums; }
.bdv-hero-sidebar-score-sep { color: #9ca3af; font-size: 14px; }
.bdv-hero-sidebar-live { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #E94560; margin-top: 2px; }
.bdv-hero-sidebar-live .bdv-live-dot { animation: bdv-live-pulse 2s ease-in-out infinite; }
.bdv-hero-sidebar-footer { padding: 14px 20px; border-top: 1px solid #f3f4f6; }
.bdv-hero-sidebar-all-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all 0.2s ease;
}
.bdv-hero-sidebar-all-btn:hover { background: #165DFF; border-color: transparent; color: #fff; transform: translateY(-1px); }
@media (max-width: 1023px) {
  .bdv-hero-section { min-height: auto; }
  .bdv-hero-sidebar { border-radius: 14px; }
  .bdv-hero-sidebar-list { max-height: 260px; }
  .bdv-hero-ctrl-n1, .bdv-hero-ctrl-n2 { font-size: 20px; }
  .bdv-hero-ctrl-name { font-size: 10px; }
  .bdv-hero-ctrl-logo img, .bdv-hero-ctrl-logo svg { width: 28px; height: 28px; }
}
@media (max-width: 640px) {
  .bdv-hero-ctrl-card { padding: 6px 10px; gap: 4px; }
  .bdv-hero-ctrl-cta { padding: 5px 12px; font-size: 11px; }
  .bdv-hero-ctrl-n1, .bdv-hero-ctrl-n2 { font-size: 16px; }
  .bdv-hero-ctrl-name { font-size: 9px; }
  .bdv-hero-ctrl-logo img, .bdv-hero-ctrl-logo svg { width: 24px; height: 24px; }
  .bdv-hero-ctrl-quality { font-size: 10px; }
  .bdv-hero-player-score-overlay { font-size: 22px; gap: 6px; }
}
/* ================================================================
  BOOKMARK / REMINDER BUTTON
  ================================================================ */
.bdv-bookmark-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(15,52,96,0.08);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: #6b7280;
  cursor: pointer; transition: all 0.25s ease;
}
.bdv-bookmark-btn:hover {
  background: #165DFF;
  border-color: #165DFF;
  color: #fff; transform: translateY(-1px);
}
.bdv-bookmark-btn.bdv-bookmarked {
  background: linear-gradient(135deg,#E94560,#c0392b);
  border-color: transparent;
  color: #fff;
}
.bdv-bookmark-btn.bdv-bookmarked:hover {
  opacity: 0.9; transform: translateY(-1px);
}
.bdv-live-card-footer {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.bdv-schedule-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: #6b7280;
  cursor: pointer; transition: all 0.25s ease;
}
.bdv-schedule-btn:hover {
  background: linear-gradient(135deg,#165DFF,#4080FF);
  border-color: transparent;
  color: #fff; transform: translateY(-1px);

/* ===== FAVORITE TEAM BUTTON ===== */
.bdv-fav-team-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: 1px solid #e5e7eb;
  border-radius: 8px; cursor: pointer;
  color: #9ca3af; transition: all 0.2s ease;
}
.bdv-fav-team-btn:hover {
  color: #FF4D4F; border-color: rgba(255,77,79,0.3);
  background: rgba(255,77,79,0.06); transform: scale(1.1);
}
.bdv-fav-team-btn.bdv-fav-active {
  color: #FF4D4F; background: rgba(255,77,79,0.1);
  border-color: rgba(255,77,79,0.3);
}
.bdv-fav-team-btn.bdv-fav-active:hover {
  transform: scale(1.1);
}

.bdv-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: 1px solid #e5e7eb;
  border-radius: 8px; cursor: pointer;
  color: #9ca3af; transition: all 0.2s ease;
}
.bdv-share-btn:hover {
  color: #165DFF; border-color: #165DFF;
  background: rgba(22,93,255,0.1); transform: scale(1.1);
}
}
.bdv-schedule-btn.bdv-bookmarked {
  background: linear-gradient(135deg,#E94560,#c0392b);
  border-color: transparent;
  color: #fff;
}
@media (max-width: 640px) {
  .bdv-live-card-footer { flex-direction: column; }
  .bdv-live-card-footer .bdv-btn { width: 100%; justify-content: center; }
  .bdv-bookmark-btn { width: 100%; justify-content: center; }
}

/* ================================================================
   HEADER ENHANCEMENTS — 3.1
   ================================================================ */
/* Glassmorphism nav on scroll — enhanced */
html.bdv-header--scrolled .bdv-header {
  background: rgba(15, 52, 96, 0.88) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 9999;
}

/* Login / Register buttons — bright style */
.bdv-btn-login {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: transparent;
  border: 1.5px solid rgba(2, 132, 199, 0.3);
  border-radius: 8px;
  color: #165DFF;
  font-size: 12px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: all 0.25s ease;
}
.bdv-btn-login:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: #165DFF;
  color: #0951D4;
}
.bdv-btn-register {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff; font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(22,93,255,0.25);
  transition: all 0.25s ease;
}
.bdv-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,93,255,0.35);
}
@media (max-width: 768px) {
  .bdv-btn-login { display: inline-flex; padding: 4px 10px; font-size: 11px; border-radius: 8px; }
  .bdv-btn-register { display: inline-flex; padding: 5px 12px; font-size: 11px; border-radius: 8px; font-weight: 600; }
}

/* ===== LIVE PAGE GRID LAYOUT ===== */
.bdv-live-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    overflow: visible !important;
}
@media (max-width: 1024px) {
    .bdv-live-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
    .bdv-live-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}
.bdv-live-page { overflow: visible !important; }

/* ===== HERO SECTION — First screen layout fix (duplicate from earlier) ===== */

/* Scroll reveal for new card types */
.bdv-related-player-card,
.bdv-related-team-card,
.bdv-result-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bdv-related-player-card.bdv-revealed,
.bdv-related-team-card.bdv-revealed,
.bdv-result-card.bdv-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Section header entrance */
.bdv-section-header {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.bdv-section-header.bdv-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   PERFORMANCE OPTIMIZATION CSS v3.0
   性能优化：骨架屏、懒加载、加载进度条、WebP图片、错误处理
   ================================================================ */

/* ── 1. Page Loading Progress Bar ─────────────────────────── */
#bdv-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #165DFF, #4080FF, #165DFF);
    background-size: 200% 100%;
    animation: bdv-progress-gradient 1.5s linear infinite;
    z-index: 99999;
    box-shadow: 0 0 8px rgba(22,93,255,0.4);
}
@keyframes bdv-progress-gradient {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── 2. Skeleton Shimmer (全站统一骨架屏) ─────────────────── */
@keyframes bdv-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.bdv-skeleton {
    background: linear-gradient(
        90deg,
        var(--bdv-surface, #F8FAFC) 25%,
        rgba(22,93,255,0.06) 50%,
        var(--bdv-surface, #F8FAFC) 75%
    ) !important;
    background-size: 200% 100% !important;
    animation: bdv-skeleton-shimmer 1.5s ease-in-out infinite !important;
    border-radius: var(--bdv-radius-md, 12px) !important;
}

/* ── 3. Score Flash Animation (实时数据更新闪烁) ────────── */
@keyframes bdv-score-flash {
    0%   { background: transparent; }
    20%  { background: rgba(22,93,255,0.18); }
    50%  { background: rgba(22,93,255,0.1); }
    100% { background: transparent; }
}
.bdv-score-flash {
    animation: bdv-score-flash 1.2s ease-out;
    border-radius: 4px;
}

/* ── 4. Status Change Animation ──────────────────────────── */
@keyframes bdv-status-change {
    0%   { opacity: 1; transform: scale(1); }
    30%  { opacity: 0.4; transform: scale(0.95); }
    60%  { opacity: 0.8; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}
.bdv-status-changed { animation: bdv-status-change 0.7s ease; }

/* ── 5. Toast Notification ────────────────────────────────── */
@keyframes bdv-toast-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bdv-toast-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.95); }
}
.bdv-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    background: var(--bdv-text, #1D2129);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: bdv-toast-in 0.3s ease;
    max-width: 340px;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── 6. WebP / Lazy Loading Helpers ─────────────────────── */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img[loading="lazy"].bdv-loaded,
img.loaded {
    opacity: 1;
}
/* 占位符处理 */
img:not([src]), img[src=""] { opacity: 0; }

/* ── 7. Error States (错误状态处理) ─────────────────────── */
.bdv-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--bdv-text-secondary, #4E5969);
}
.bdv-error-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.bdv-error-state-title { font-size: 1.1rem; font-weight: 700; color: var(--bdv-text, #1D2129); margin-bottom: 8px; }
.bdv-error-state-message { font-size: 14px; color: var(--bdv-text-secondary, #4E5969); margin-bottom: 16px; }

/* ── 8. Print / Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bdv-card-reveal { opacity: 1 !important; transform: none !important; }
    #bdv-loading-bar { display: none; }
}
@media print {
    .bdv-nav-bar, .bdv-footer, #bdv-loading-bar, .bdv-live-pulse { display: none !important; }
}

/* ── 9. Critical Path Inlining Hint ────────────────────────── */
.bdv-critical-img { display: block; margin: 0 auto; }

/* ── 10. Critical CSS Priority ────────────────────────────── */
/* First-screen above-fold content gets immediate paint priority */
.bdv-hero-section,
.bdv-nav-bar,
.bdv-hero-player-cover { content-visibility: auto; contain-intrinsic-size: 1px 500px; }

/* ── 11. Image Decode Async ───────────────────────────────── */
img { image-rendering: auto; }
/* Force async decode for below-fold images */
.bdv-lazy-img { background: var(--bdv-surface, #F8FAFC); }

/* ═══════════════════════════════════════════════════════════
   BONGDAVIP ICON SYSTEM v1.0
   Global icon styling for unified SVG icons
   ═══════════════════════════════════════════════════════════ */

/* Base icon class */
.bdv-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.15s ease;
}

/* Inherit color from parent (currentColor) */
.bdv-icon,
.bdv-icon svg {
    color: currentColor;
    fill: currentColor;
}

/* Icon sizes */
.bdv-icon--xs { width: 12px; height: 12px; }
.bdv-icon--sm { width: 14px; height: 14px; }
.bdv-icon--md { width: 16px; height: 16px; }
.bdv-icon--lg { width: 20px; height: 20px; }
.bdv-icon--xl { width: 24px; height: 24px; }
.bdv-icon--2xl { width: 32px; height: 32px; }
.bdv-icon--3xl { width: 40px; height: 40px; }
.bdv-icon--4xl { width: 48px; height: 48px; }

/* Icon hover animation */
.bdv-icon-hover:hover {
    transform: scale(1.15);
}

/* Icon pulse for live indicators */
@keyframes bdv-icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.92); }
}
.bdv-icon--live {
    animation: bdv-icon-pulse 1.5s ease-in-out infinite;
    color: var(--bdv-accent, #FF4D4F);
}

/* Icon spin for loading states */
@keyframes bdv-icon-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.bdv-icon--spin {
    animation: bdv-icon-spin 1s linear infinite;
}

/* Event type icons */
.bdv-event-type-goal { color: #FF4D4F; }
.bdv-event-type-penalty { color: #FFAA00; }
.bdv-event-type-yellow-card { color: #F59E0B; }
.bdv-event-type-red-card { color: #EF4444; }
.bdv-event-type-substitution { color: #165DFF; }
.bdv-event-type-corner { color: #165DFF; }
.bdv-event-type-own-goal { color: #6B7280; }
.bdv-event-type-var-review { color: #8B5CF6; }

/* Match status icons */
.bdv-icon-live { color: var(--bdv-accent, #FF4D4F); }
.bdv-icon-halftime { color: var(--bdv-gold, #FFAA00); }
.bdv-icon-finished { color: var(--bdv-text-muted, #86909C); }
.bdv-icon-upcoming { color: var(--bdv-primary, #165DFF); }

/* Social icon hover effects */
.bdv-social-icon:hover { transform: translateY(-2px); }

/* Navigation icon transitions */
.bdv-nav-icon {
    transition: color 0.2s ease, transform 0.15s ease;
}
.bdv-nav-icon:hover { transform: scale(1.1); }

/* Icon container helpers */
.bdv-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bdv-icon-wrap--circle {
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    padding: 8px;
}

/* Player control icons */
.bdv-control-btn .bdv-icon {
    color: rgba(255,255,255,0.9);
    transition: color 0.15s ease;
}
.bdv-control-btn:hover .bdv-icon { color: #fff; }

/* Card icon styling */
.bdv-card-icon {
    color: var(--bdv-accent, #FF4D4F);
    opacity: 0.8;
}

/* Footer icon styling */
.bdv-footer-icon { opacity: 0.7; transition: opacity 0.2s ease; }
.bdv-footer-icon:hover { opacity: 1; }

/* Error/warning icons */
.bdv-icon--error { color: #EF4444; }
.bdv-icon--warning { color: #FF7D00; }
.bdv-icon--success { color: #22C55E; }
.bdv-icon--info { color: #3B82F6; }

/* ================================================================
   BongDaVIP BREADCRUMB — Reusable breadcrumb navigation
   ================================================================ */

/* Breadcrumb Container */
.bdv-breadcrumb {
    padding: 0;
    margin: 0;
    font-size: 13px;
}

/* Breadcrumb List */
.bdv-breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Breadcrumb Items */
.bdv-breadcrumb-item {
    display: flex;
    align-items: center;
    position: relative;
}

/* Separator */
.bdv-breadcrumb-item:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386909C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    opacity: 0.5;
    margin: 0 2px;
    flex-shrink: 0;
}

/* Breadcrumb Links */
.bdv-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bdv-text-secondary, #4E5969);
    text-decoration: none;
    transition: color 0.15s ease;
    font-weight: 500;
    padding: 4px 8px 4px 0;
    border-radius: 4px;
}

.bdv-breadcrumb-link:hover {
    color: var(--bdv-primary, #165DFF);
    text-decoration: none;
}

.bdv-breadcrumb-link:focus-visible {
    outline: 2px solid var(--bdv-primary, #165DFF);
    outline-offset: 2px;
}

/* Current page (no link) */
.bdv-breadcrumb-current .bdv-breadcrumb-text {
    color: var(--bdv-text, #1D2129);
    font-weight: 600;
    padding: 4px 0;
}

/* Light variant — for dark hero backgrounds */
.bdv-breadcrumb-light .bdv-breadcrumb-link {
    color: rgba(255,255,255,0.7);
}
.bdv-breadcrumb-light .bdv-breadcrumb-link:hover {
    color: rgba(255,255,255,1);
}
.bdv-breadcrumb-light .bdv-breadcrumb-item:not(:last-child)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}
.bdv-breadcrumb-light .bdv-breadcrumb-current .bdv-breadcrumb-text {
    color: rgba(255,255,255,0.9);
}

/* Dark variant — for light/auth backgrounds */
.bdv-breadcrumb-dark .bdv-breadcrumb-link {
    color: var(--bdv-text-secondary, #4E5969);
}
.bdv-breadcrumb-dark .bdv-breadcrumb-link:hover {
    color: var(--bdv-primary, #165DFF);
}
.bdv-breadcrumb-dark .bdv-breadcrumb-current .bdv-breadcrumb-text {
    color: var(--bdv-text, #1D2129);
}

/* Breadcrumb icon sizing */
.bdv-breadcrumb-link svg,
.bdv-breadcrumb-link img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ================================================================
   PAGE TRANSITION OVERLAY — Smooth page transitions
   ================================================================ */

/* Transition Overlay */
.bdv-page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bdv-page-transition.bdv-transition-active {
    pointer-events: all;
    opacity: 1;
}

/* Page exit animation */
@keyframes bdv-page-exit {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); }
}

/* Page enter animation */
@keyframes bdv-page-enter {
    0%   { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.bdv-page-content {
    animation: bdv-page-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.bdv-is-exiting .bdv-page-content {
    animation: bdv-page-exit 0.25s cubic-bezier(0.4, 0, 1, 1) both;
}

/* Transition loader */
.bdv-transition-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bdv-transition-loader.bdv-transition-active {
    opacity: 1;
}

.bdv-transition-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bdv-border, rgba(22,93,255,0.08));
    border-top-color: var(--bdv-primary, #165DFF);
    border-radius: 50%;
    animation: bdv-spin 0.8s linear infinite;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .bdv-page-content,
    body.bdv-is-exiting .bdv-page-content,
    .bdv-transition-loader,
    .bdv-page-transition {
        animation: none !important;
        transition: none !important;
    }
}

/* Smooth link transitions */
a {
    transition: color 0.15s ease, opacity 0.15s ease;
}

/* ================================================================
   LIVE STREAMING ENHANCEMENTS v3 — Time-Shift + Quality + Reminders
   ================================================================ */

/* Toast animations */
@keyframes bdv-toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bdv-toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* Stream replay button */
.bdv-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(22,93,255,0.15);
  border: 1px solid rgba(22,93,255,0.3);
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.bdv-replay-btn:hover {
  background: rgba(22,93,255,0.25);
  border-color: rgba(22,93,255,0.5);
}
.bdv-replay-btn.bdv-replay-active {
  background: rgba(255,170,0,0.15);
  border-color: rgba(255,170,0,0.4);
  color: #FFAA00;
}
.bdv-replay-btn.bdv-replay-active:hover {
  background: rgba(255,170,0,0.25);
}

/* Quality buttons */
.bdv-quality-btn {
  padding: 4px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bdv-quality-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.bdv-quality-btn.active {
  background: linear-gradient(135deg,#165DFF,#4080FF);
  border-color: transparent;
  color: #fff;
}

/* Stream line buttons enhanced */
.bdv-stream-btn {
  padding: 5px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bdv-stream-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.bdv-stream-btn.active {
  background: rgba(22,93,255,0.25);
  border-color: rgba(22,93,255,0.6);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(22,93,255,0.4);
}
.bdv-stream-btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
}
.bdv-stream-btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.bdv-stream-btn.active .bdv-stream-btn-dot {
  background: #4caf50;
  box-shadow: 0 0 4px #4caf50;
}

/* Reminder button enhanced styles */
.bdv-reminder-btn,
.bdv-bookmark-btn,
.bdv-schedule-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.bdv-reminder-btn:hover,
.bdv-bookmark-btn:hover,
.bdv-schedule-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22,93,255,0.15);
  filter: brightness(1.05);
}
.bdv-bookmarked,
.bdv-reminder-btn.bdv-bookmarked,
.bdv-bookmark-btn.bdv-bookmarked,
.bdv-schedule-btn.bdv-bookmarked {
  background: #f8f9fa;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.bdv-bookmarked:hover {
  background: #eef0f2;
}

/* Player container states */
.bdv-player-ready {
  /* Ready state */
}

/* Live status indicator in player */
.bdv-live-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,77,79,0.15);
  border: 1px solid rgba(255,77,79,0.3);
  border-radius: 20px;
  color: #FF4D4F;
  font-size: 12px;
  font-weight: 700;
}
.bdv-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF4D4F;
  animation: bdv-pulse-live 1.5s ease-in-out infinite;
}
@keyframes bdv-pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ================================================================
   PAGE LOADING PROGRESS BAR
   ================================================================ */
.bdv-page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--bdv-primary, #165DFF), var(--bdv-accent, #FF4D4F), var(--bdv-gold, #FFAA00));
    z-index: 999999;
    transition: width 0.3s ease, opacity 0.3s ease;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(22, 93, 255, 0.4);
}

.bdv-page-progress.complete {
    opacity: 0;
    height: 0;
}

/* ================================================================
   SKELETON SCREEN — Initial page load
   ================================================================ */
.bdv-skeleton-screen {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: var(--bdv-bg, #F7F8FA);
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: opacity 0.5s ease;
}

.bdv-skeleton-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Header skeleton */
.bdv-skeleton-header {
    height: 64px;
    background: var(--bdv-surface, #fff);
    border-bottom: 1px solid var(--bdv-border, rgba(0,0,0,0.06));
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 32px;
}

.bdv-skeleton-header-logo {
    width: 140px;
    height: 24px;
    background: linear-gradient(90deg, #e8eaed 25%, #f3f4f6 50%, #e8eaed 75%);
    background-size: 200% 100%;
    animation: bdv-skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}

.bdv-skeleton-header-nav {
    flex: 1;
    display: flex;
    gap: 24px;
}

.bdv-skeleton-nav-item {
    width: 60px;
    height: 16px;
    background: linear-gradient(90deg, #e8eaed 25%, #f3f4f6 50%, #e8eaed 75%);
    background-size: 200% 100%;
    animation: bdv-skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Hero skeleton */
.bdv-skeleton-hero {
    height: 280px;
    margin: 24px;
    background: linear-gradient(90deg, #e8eaed 25%, #f3f4f6 50%, #e8eaed 75%);
    background-size: 200% 100%;
    animation: bdv-skeleton-shimmer 1.5s infinite;
    border-radius: 16px;
}

/* Cards skeleton */
.bdv-skeleton-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 0 24px;
}

.bdv-skeleton-card {
    height: 200px;
    background: linear-gradient(90deg, #e8eaed 25%, #f3f4f6 50%, #e8eaed 75%);
    background-size: 200% 100%;
    animation: bdv-skeleton-shimmer 1.5s infinite;
    border-radius: 12px;
}

.bdv-skeleton-card:nth-child(2) { animation-delay: 0.1s; }
.bdv-skeleton-card:nth-child(3) { animation-delay: 0.2s; }
.bdv-skeleton-card:nth-child(4) { animation-delay: 0.3s; }

@keyframes bdv-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Global shimmer for all skeleton elements */
[class*="bdv-skeleton"] {
    animation: bdv-skeleton-shimmer 1.5s infinite;
    background: linear-gradient(90deg, #e8eaed 25%, #f3f4f6 50%, #e8eaed 75%);
    background-size: 200% 100%;
}

/* Skeleton fade out when loaded */
.bdv-skeleton-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ===== LIVE DATA REFRESH STYLES ===== */

/* Toast slide animations for score change notifications */
@keyframes bdv-toast-slide-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bdv-toast-slide-out {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* Data update flash animation */
@keyframes bdv-data-flash-new {
    0%   { background: transparent; }
    20%  { background: rgba(22,93,255,0.12); }
    50%  { background: rgba(22,93,255,0.06); }
    100% { background: transparent; }
}
.bdv-data-flash-new {
    animation: bdv-data-flash-new 1.4s ease-out;
}

/* Score number flash */
@keyframes bdv-score-flash-num {
    0%   { transform: scale(1); color: inherit; }
    30%  { transform: scale(1.3); color: var(--bdv-accent,#FF4D4F); }
    100% { transform: scale(1); color: inherit; }
}

/* Live status badge styles with smooth transitions */
.bdv-status-live { border-left: 3px solid var(--bdv-accent,#FF4D4F); }
.bdv-status-upcoming { border-left: 3px solid var(--bdv-primary,#165DFF); }
.bdv-status-finished { border-left: 3px solid var(--bdv-text-muted,#86909C); }
.bdv-status-halftime { border-left: 3px solid var(--bdv-gold,#FFAA00); }

.bdv-status-badge-live {
    background: rgba(255,77,79,0.12) !important;
    color: #FF4D4F !important;
    border-color: rgba(255,77,79,0.3) !important;
    transition: all 0.4s ease;
}
.bdv-status-badge-upcoming {
    background: rgba(22,93,255,0.1) !important;
    color: #165DFF !important;
    border-color: rgba(22,93,255,0.25) !important;
    transition: all 0.4s ease;
}
.bdv-status-badge-finished {
    background: rgba(134,144,156,0.1) !important;
    color: #86909C !important;
    border-color: rgba(134,144,156,0.2) !important;
    transition: all 0.4s ease;
}
.bdv-status-badge-halftime {
    background: rgba(255,170,0,0.1) !important;
    color: #FFAA00 !important;
    border-color: rgba(255,170,0,0.3) !important;
    transition: all 0.4s ease;
}

/* Sound toggle button */
.bdv-sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bdv-sound-toggle:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.bdv-sound-toggle.enabled {
    color: #fff;
    background: rgba(22,93,255,0.15);
    border-color: rgba(22,93,255,0.3);
}

/* Last updated indicator */
#bdv-last-updated {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--bdv-text-secondary,#86909C);
    background: var(--bdv-surface,#fff);
    border-radius: 20px;
    border: 1px solid var(--bdv-border,rgba(0,0,0,0.06));
}

/* ================================================================
   TEAM BADGE & LOGO STYLING — Professional football look
   ================================================================ */

/* SVG Logo sizing — ensure badges render at correct sizes across the theme */
.bdv-logo-fallback svg,
.bdv-team-badge svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Team logo containers */
.bdv-match-team-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdv-match-team-logo img,
.bdv-match-team-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Standings team logo */
.bdv-standings-team-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdv-standings-team-logo img,
.bdv-standings-team-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero team logo */
.bdv-hero-ctrl-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdv-hero-ctrl-logo img,
.bdv-hero-ctrl-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Live card team logo */
.bdv-live-card-team-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Upcoming card team logo */
.bdv-upcoming-team-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdv-upcoming-team-logo img,
.bdv-upcoming-team-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Team card logo */
.bdv-team-card-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* League logo in cards */
.bdv-card-league {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.bdv-card-league svg,
.bdv-card-league img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Player avatar */
.bdv-player-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e2a38, #162232);
}

.bdv-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bdv-player-avatar svg {
    width: 100%;
    height: 100%;
}

/* Avatar fallback */
.bdv-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdv-avatar-fallback svg {
    width: 100%;
    height: 100%;
}

/* News card image */
.bdv-news-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16/9;
}

.bdv-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bdv-news-card-img:hover img {
    transform: scale(1.03);
}

.bdv-news-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero player cover */
.bdv-hero-player-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.bdv-hero-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bdv-hero-player-cover:hover img {
    transform: scale(1.02);
}

/* Hero background atmosphere */
.bdv-hero-atmosphere {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bdv-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.bdv-hero-glow-1 {
    width: 400px;
    height: 400px;
    background: #165DFF;
    top: -100px;
    left: -100px;
}

.bdv-hero-glow-2 {
    width: 300px;
    height: 300px;
    background: #FF4D4F;
    bottom: -50px;
    right: 10%;
}

/* Match header background */
.bdv-match-header-bar {
    position: relative;
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img:not([loading]) {
    opacity: 1;
}

/* Error state for images */
img[data-error="1"],
img[data-error] {
    display: none !important;
}

/* Match page background atmosphere image */
.bdv-match-bg-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
}

.bdv-match-bg-atmosphere img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
}

/* Related match team logos */
.bdv-related-match-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.bdv-related-match-logo img,
.bdv-related-match-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Lineup player number */
.bdv-lineup-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* H2H team logo */
.bdv-h2h-team-logo {
    width: 40px;
    height: 40px;
    margin: 0 auto 4px;
}

.bdv-h2h-team-logo img,
.bdv-h2h-team-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero sidebar team logo */
.bdv-hero-sidebar-team-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.bdv-hero-sidebar-team-logo img,
.bdv-hero-sidebar-team-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   VISUAL REFINEMENT 6.0 — Unified White + Sky Blue
   Clean cards | Premium table | Vietnamese typography | Micro-animations
   ============================================ */

/* ===== 1. UNIFIED CARD SYSTEM ===== */
.bdv-live-card,
.bdv-upcoming-card,
.bdv-news-card,
.bdv-team-card,
.bdv-player-card,
.bdv-card,
.bdv-standings-card,
.bdv-poll-widget-wrapper {
  border-radius: 16px;
  border: 1px solid rgba(22, 93, 255, 0.07);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(22, 93, 255, 0.05);
  background: #FFFFFF;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.bdv-live-card:hover,
.bdv-upcoming-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(22, 93, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(22, 93, 255, 0.14);
}

.bdv-live-card::before,
.bdv-upcoming-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.bdv-live-card::before { background: linear-gradient(135deg,#E94560,#c0392b); }
.bdv-upcoming-card::before { background: linear-gradient(135deg,#165DFF,#4080FF); }

.bdv-live-card:hover::before,
.bdv-upcoming-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.bdv-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(22, 93, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(22, 93, 255, 0.14);
}

.bdv-team-card {
  padding: 0 20px 22px;
}

.bdv-team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--tc, #165DFF);
}

.bdv-player-card {
  padding: 14px 16px;
  background: #FFFFFF;
}

.bdv-player-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(22, 93, 255, 0.08);
  border-color: #165DFF;
  background: #FAFCFF;
}

.bdv-card-body,
.bdv-live-card-body,
.bdv-upcoming-card-body {
  padding: 20px;
}

.bdv-card-header,
.bdv-live-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(22, 93, 255, 0.06);
  background: #FAFCFF;
}

.bdv-news-card-body {
  padding: 16px 20px 20px;
}

/* ===== 2. BEAUTIFIED BUTTONS & BADGES ===== */
.bdv-btn {
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bdv-btn-primary {
  background: linear-gradient(135deg,#165DFF,#4080FF);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(22, 93, 255, 0.28);
  border-radius: 10px;
}

.bdv-btn-primary:hover {
  background: linear-gradient(135deg,#0951D4,#165DFF);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 93, 255, 0.35);
  color: #FFFFFF;
}

.bdv-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.25);
}

.bdv-btn-outline {
  background: transparent;
  color: #165DFF;
  border: 1.5px solid #165DFF;
  border-radius: 10px;
}

.bdv-btn-outline:hover {
  background: #165DFF;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.25);
}

.bdv-btn-secondary {
  background: rgba(22, 93, 255, 0.06);
  color: #165DFF;
  border: 1px solid rgba(22, 93, 255, 0.12);
  border-radius: 10px;
}

.bdv-btn-secondary:hover {
  background: rgba(22, 93, 255, 0.12);
  border-color: rgba(22, 93, 255, 0.2);
  color: #165DFF;
}

/* Live Badge — refined pill */
.bdv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg,#E94560,#c0392b);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.25);
  animation: bdv-live-glow 2s ease-in-out infinite;
}

.bdv-live-dot {
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: bdv-pulse-dot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bdv-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes bdv-live-glow {
  0%, 100% { box-shadow: 0 2px 8px rgba(255, 77, 79, 0.2); }
  50% { box-shadow: 0 4px 16px rgba(255, 77, 79, 0.35); }
}

/* Halftime Badge — warm amber pill */
.bdv-halftime-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255, 170, 0, 0.1);
  color: #D48800;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid rgba(255, 170, 0, 0.2);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Section Title Badge */
.bdv-section-title-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: linear-gradient(135deg,#E94560,#c0392b);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  margin-left: 10px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.2);
}

/* Category Tags */
.bdv-news-card-category {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bdv-category-vietnam {
  background: linear-gradient(135deg,#165DFF,#4080FF) !important;
  color: #FFFFFF !important;
}

.bdv-category-international {
  background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
  color: #FFFFFF !important;
}

/* Section Link — refined */
.bdv-section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #165DFF;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(22, 93, 255, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bdv-section-link:hover {
  background: rgba(22, 93, 255, 0.10);
  gap: 8px;
  text-decoration: none;
}

/* ===== 3. PREMIUM STANDINGS TABLE ===== */
.bdv-standings-card {
  background: #FFFFFF;
  border: 1px solid rgba(22, 93, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(22, 93, 255, 0.05);
}

.bdv-standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.bdv-standings-table thead tr {
  background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
}

.bdv-standings-table thead th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  white-space: nowrap;
  border-bottom: none;
}

.bdv-standings-table thead th:first-child {
  border-radius: 0;
}

.bdv-standings-table thead th:last-child {
  border-radius: 0;
}

.bdv-standings-table tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(22, 93, 255, 0.04);
}

.bdv-standings-table tbody tr:last-child {
  border-bottom: none;
}

.bdv-standings-table tbody tr:nth-child(even) {
  background: #FAFCFF;
}

.bdv-standings-table tbody tr:hover td {
  background: rgba(22, 93, 255, 0.04);
}

.bdv-standings-table td {
  padding: 13px 16px;
  font-size: 0.8125rem;
  color: #1D2129;
  vertical-align: middle;
  white-space: nowrap;
}

.bdv-standings-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  flex-shrink: 0;
}

.bdv-standings-pos-1 {
  background: linear-gradient(135deg, #FFAA00 0%, #FF9500 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
  font-size: 14px;
}

.bdv-standings-pos-top3 {
  background: rgba(0, 180, 42, 0.08);
  color: #10b981;
  font-weight: 800;
}

.bdv-standings-pos-other {
  background: rgba(22, 93, 255, 0.05);
  color: #9ca3af;
  font-weight: 700;
}

.bdv-standings-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.bdv-standings-team-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bdv-standings-team span {
  font-weight: 600;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.bdv-standings-team:hover span {
  color: #165DFF;
}

.bdv-standings-points {
  font-weight: 800;
  font-size: 0.9375rem;
  color: #1D2129;
}

.bdv-standings-points.champion {
  color: #FFAA00;
}

.bdv-standings-gd {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.8125rem;
}

.bdv-standings-gd-pos { color: #10b981; }
.bdv-standings-gd-neg { color: #E94560; }

.bdv-standings-form {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.bdv-standings-form-result {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  color: #FFFFFF;
  letter-spacing: 0;
}

.bdv-standings-form-win { background: #10b981; border-radius: 6px; }
.bdv-standings-form-draw { background: #d1d5db; color: #FFFFFF; border-radius: 6px; }
.bdv-standings-form-loss { background: #E94560; border-radius: 6px; }

.bdv-standings-row-champion {
  background: linear-gradient(90deg, rgba(255, 170, 0, 0.06) 0%, rgba(255, 170, 0, 0.01) 100%) !important;
}

.bdv-standings-tabs-wrap {
  margin-bottom: 20px;
}

.bdv-standings-tabs {
  display: flex;
  gap: 8px;
  background: rgba(22, 93, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
}

.bdv-standings-tab {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bdv-standings-tab:hover {
  color: #165DFF;
  background: rgba(22, 93, 255, 0.06);
}

.bdv-standings-tab.active {
  background: #FFFFFF;
  color: #165DFF;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.10);
}

/* ===== 4. VIETNAMESE TYPOGRAPHY ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.bdv-section-title {
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bdv-section-subtitle {
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.bdv-news-card-title {
  line-height: 1.5;
  letter-spacing: 0;
}

.bdv-live-card-team-name,
.bdv-upcoming-team-name {
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.bdv-footer-desc {
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.bdv-footer-link {
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.bdv-standings-table td,
.bdv-standings-table th {
  line-height: 1.5;
}

.bdv-player-card-name {
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.bdv-team-cardName {
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* ===== 5. MICRO-ANIMATIONS ===== */
@keyframes bdv-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bdv-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bdv-card-reveal .bdv-live-card,
.bdv-card-reveal .bdv-upcoming-card,
.bdv-card-reveal .bdv-news-card,
.bdv-card-reveal .bdv-team-card,
.bdv-card-reveal .bdv-player-card {
  animation: bdv-fade-in-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.bdv-card-reveal .bdv-live-card:nth-child(1),
.bdv-card-reveal .bdv-upcoming-card:nth-child(1),
.bdv-card-reveal .bdv-news-card:nth-child(1),
.bdv-card-reveal .bdv-team-card:nth-child(1) { animation-delay: 0.05s; }

.bdv-card-reveal .bdv-live-card:nth-child(2),
.bdv-card-reveal .bdv-upcoming-card:nth-child(2),
.bdv-card-reveal .bdv-news-card:nth-child(2),
.bdv-card-reveal .bdv-team-card:nth-child(2) { animation-delay: 0.1s; }

.bdv-card-reveal .bdv-live-card:nth-child(3),
.bdv-card-reveal .bdv-upcoming-card:nth-child(3),
.bdv-card-reveal .bdv-news-card:nth-child(3),
.bdv-card-reveal .bdv-team-card:nth-child(3) { animation-delay: 0.15s; }

.bdv-card-reveal .bdv-live-card:nth-child(4),
.bdv-card-reveal .bdv-upcoming-card:nth-child(4),
.bdv-card-reveal .bdv-news-card:nth-child(4),
.bdv-card-reveal .bdv-team-card:nth-child(4) { animation-delay: 0.2s; }

.bdv-card-reveal .bdv-live-card:nth-child(5),
.bdv-card-reveal .bdv-upcoming-card:nth-child(5),
.bdv-card-reveal .bdv-team-card:nth-child(5) { animation-delay: 0.25s; }

.bdv-card-reveal .bdv-live-card:nth-child(6),
.bdv-card-reveal .bdv-upcoming-card:nth-child(6),
.bdv-card-reveal .bdv-team-card:nth-child(6) { animation-delay: 0.3s; }

.bdv-card-reveal .bdv-player-card:nth-child(1) { animation-delay: 0.05s; }
.bdv-card-reveal .bdv-player-card:nth-child(2) { animation-delay: 0.1s; }
.bdv-card-reveal .bdv-player-card:nth-child(3) { animation-delay: 0.15s; }
.bdv-card-reveal .bdv-player-card:nth-child(4) { animation-delay: 0.2s; }
.bdv-card-reveal .bdv-player-card:nth-child(5) { animation-delay: 0.25s; }
.bdv-card-reveal .bdv-player-card:nth-child(6) { animation-delay: 0.3s; }

.bdv-section {
  animation: bdv-fade-in 0.4s ease both;
}

.bdv-standings-card {
  animation: bdv-fade-in-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.1s;
}

/* ===== 6. REMOVE DARK REMNANTS — UNIFY WHITE + SKY BLUE ===== */
/* Replace all hardcoded rgba(15,52,96,...) with sky blue equivalents */
.bdv-card:hover {
  box-shadow: 0 8px 28px rgba(22, 93, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bdv-upcoming-card:hover {
  box-shadow: 0 8px 28px rgba(22, 93, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(22, 93, 255, 0.14);
}

.bdv-team-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}

.bdv-btn-outline:hover {
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.25);
}

/* ===== 7. SECTION HEADER REFINEMENT ===== */
.bdv-section-header {
  margin-bottom: 28px;
}

.bdv-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #1D2129;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .bdv-section-title {
    font-size: 26px;
  }
}

.bdv-section-subtitle {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

/* ===== 8. FOOTER REFINEMENT ===== */
.bdv-footer {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F7FF 100%);
  border-top: 1px solid rgba(22, 93, 255, 0.08);
}

.bdv-footer::before {
  background:
    radial-gradient(ellipse at 15% 0%, rgba(22,93,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(22,93,255,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(22,93,255,0.03) 0%, transparent 70%);
}

.bdv-footer::after {
  background: linear-gradient(90deg, transparent, rgba(22,93,255,0.4), rgba(255,77,79,0.3), rgba(22,93,255,0.4), transparent);
  opacity: 0.5;
}

.bdv-footer-title {
  font-size: 13px;
  font-weight: 800;
  color: #165DFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bdv-footer-title::after {
  background: linear-gradient(90deg, #165DFF, transparent);
}

.bdv-footer-bottom {
  border-top: 1px solid rgba(22, 93, 255, 0.06);
}

/* ===== 9. NEWS CARD OVERLAY REFINEMENT ===== */
.bdv-news-card-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

/* ===== 10. RESPONSIVE TABLE REFINEMENT ===== */
@media (max-width: 768px) {
  .bdv-standings-table td,
  .bdv-standings-table th {
    padding: 10px 10px;
    font-size: 12px;
  }

  .bdv-standings-table th:nth-child(n+5),
  .bdv-standings-table td:nth-child(n+5) {
    display: none;
  }

  .bdv-section-title {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .bdv-standings-table td,
  .bdv-standings-table th {
    padding: 8px 8px;
  }

  .bdv-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== 11. BOOKMARK / REMIND BUTTON REFINEMENT ===== */
.bdv-bookmark-btn,
.bdv-remind-btn,
.bdv-schedule-btn {
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bdv-bookmark-btn:hover,
.bdv-remind-btn:hover,
.bdv-schedule-btn:hover {
  transform: translateY(-1px);
}

/* ===== 12. CARD INNER SPACING UNIFICATION ===== */
.bdv-live-card-footer {
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bdv-live-card-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.bdv-live-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bdv-live-card-team-logo {
  width: 48px;
  height: 48px;
  padding: 6px;
  background: #FAFCFF;
  border: 1px solid rgba(22, 93, 255, 0.06);
  border-radius: 12px;
}

.bdv-live-card-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bdv-live-card-score-nums {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 800;
  color: #1D2129;
  letter-spacing: -0.02em;
}

.bdv-live-card-score-sep {
  color: #9ca3af;
  font-weight: 400;
}

.bdv-live-card-minute {
  font-size: 12px;
  font-weight: 700;
  color: #E94560;
}

/* Upcoming card inner */
.bdv-upcoming-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.bdv-upcoming-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bdv-upcoming-team-logo {
  width: 44px;
  height: 44px;
  padding: 6px;
  background: #FAFCFF;
  border: 1px solid rgba(22, 93, 255, 0.06);
  border-radius: 12px;
}

.bdv-upcoming-vs {
  font-size: 14px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bdv-upcoming-time-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
  padding: 8px 0;
}

.bdv-upcoming-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #165DFF;
  font-weight: 700;
}

/* ===== 13. PAGE BACKGROUND ===== */
body {
  background: #F7F8FA;
}

.bdv-page-content {
  background: #F7F8FA;
}

/* ===== 14. POLL WIDGET REFINEMENT ===== */
.bdv-poll-widget-wrapper {
  background: #FFFFFF;
  border: 1px solid rgba(22, 93, 255, 0.07);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(22, 93, 255, 0.05);
}

.bdv-poll-opt {
  border-radius: 12px;
  padding: 14px 18px;
  border: 1.5px solid rgba(22, 93, 255, 0.08);
  transition: all 0.25s ease;
}

.bdv-poll-opt:hover:not(.bdv-poll-opt-voted) {
  border-color: #165DFF;
  background: rgba(22, 93, 255, 0.03);
  transform: translateX(4px);
}

.bdv-poll-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(22, 93, 255, 0.08);
}

.bdv-poll-bar-fill {
  height: 100%;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ===== 15. HERO SECTION REFINEMENT ===== */
.bdv-hero-live-sticker {
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(255, 77, 79, 0.3);
}

.bdv-hero-ctrl-cta {
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.bdv-hero-ctrl-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 93, 255, 0.35);
}

.bdv-hero-sidebar-all-btn {
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.bdv-hero-sidebar-all-btn:hover {
  transform: translateY(-2px);
}

.bdv-hero-sidebar-item {
  border-radius: 12px;
  transition: all 0.2s ease;
}

.bdv-hero-sidebar-item:hover {
  background: rgba(22, 93, 255, 0.04);
}

.bdv-hero-sidebar-item-featured {
  background: rgba(22, 93, 255, 0.03);
  border: 1px solid rgba(22, 93, 255, 0.08);
}

/* ===== 16. LOGIN / REGISTER BUTTONS ===== */
.bdv-btn-login {
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #165DFF;
  border: 1.5px solid rgba(22, 93, 255, 0.2);
  background: rgba(22, 93, 255, 0.04);
  transition: all 0.2s ease;
}

.bdv-btn-login:hover {
  background: rgba(22, 93, 255, 0.08);
  border-color: #165DFF;
}

.bdv-btn-register {
  border-radius: 10px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.25);
  transition: all 0.2s ease;
}

.bdv-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.35);
}

/* ===== 17. SEARCH BAR REFINEMENT ===== */
.bdv-search-bar {
  border-radius: 12px;
}

.bdv-search-input {
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ===== 18. LEAGUE DROPDOWN REFINEMENT ===== */
.bdv-league-btn {
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border: 1.5px solid rgba(22, 93, 255, 0.12);
  background: rgba(22, 93, 255, 0.04);
  transition: all 0.2s ease;
}

.bdv-league-btn:hover {
  border-color: #165DFF;
  background: rgba(22, 93, 255, 0.08);
}

/* ===== 19. SKELETON LOADER REFINEMENT ===== */
.bdv-skeleton-card {
  border-radius: 16px;
}

.bdv-poll-skeleton-opt {
  border-radius: 12px;
}

/* ===== 20. SCROLLBAR REFINEMENT ===== */
::-webkit-scrollbar-thumb {
  background: rgba(22, 93, 255, 0.15);
  border-radius: 4px;
  border: 2px solid #F7F8FA;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(22, 93, 255, 0.25);
}

::-webkit-scrollbar-track {
  background: #F7F8FA;
}

/* ============================================
   VISUAL REFINEMENT 7.0 — Final Polish
   Status badges | Vietnamese fix | Whitespace | Responsive | Dark cleanup
   ============================================ */

/* ===== A. MATCH STATUS BADGES — Unified pill system ===== */
.bdv-status-badge-live,
.bdv-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #FF4D4F 0%, #FF7875 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.25);
  border: none;
  animation: bdv-live-glow 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.bdv-status-badge-upcoming {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255, 170, 0, 0.12);
  color: #B87400;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  border: 1px solid rgba(255, 170, 0, 0.2);
  transition: all 0.3s ease;
}

.bdv-status-badge-finished {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(134, 144, 156, 0.08);
  color: #86909C;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  border: 1px solid rgba(134, 144, 156, 0.12);
  transition: all 0.3s ease;
}

.bdv-status-badge-halftime,
.bdv-halftime-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255, 170, 0, 0.1);
  color: #D48800;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  border: 1px solid rgba(255, 170, 0, 0.2);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.bdv-status-live { border-left: 3px solid #FF4D4F; }
.bdv-status-upcoming { border-left: 3px solid #FFAA00; }
.bdv-status-finished { border-left: 3px solid #86909C; }
.bdv-status-halftime { border-left: 3px solid #FFAA00; }

/* ===== B. VIETNAMESE DIACRITICAL FIX ===== */
@font-face {
  font-feature-settings: "ccmp", "liga", "kern";
}

body,
.bdv-section-title,
.bdv-section-subtitle,
.bdv-news-card-title,
.bdv-live-card-team-name,
.bdv-upcoming-team-name,
.bdv-player-card-name,
.bdv-team-cardName,
.bdv-standings-team span,
.bdv-footer-desc,
.bdv-footer-link,
.bdv-card-league span,
.bdv-hero-ctrl-name,
.bdv-hero-sidebar-team-name {
  font-feature-settings: "ccmp" 1, "liga" 1, "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-spacing: 0.02em;
}

body {
  line-height: 1.75;
  letter-spacing: 0.015em;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  letter-spacing: -0.01em;
  orphans: 2;
}

p, .bdv-footer-desc, .bdv-news-card-body, .bdv-section-subtitle {
  line-height: 1.7;
}

.bdv-live-card-team-name,
.bdv-upcoming-team-name,
.bdv-hero-sidebar-team-name {
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.bdv-standings-table td {
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.bdv-news-card-title {
  line-height: 1.55;
  letter-spacing: 0.005em;
}

/* ===== C. GLOBAL WHITESPACE — Breathing room ===== */
.bdv-section {
  padding: 20px 0;
}

@media (min-width: 768px) {
  .bdv-section {
    padding: 28px 0;
  }
}

@media (min-width: 1024px) {
  .bdv-section {
    padding: 32px 0;
  }
}

.bdv-section-header {
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .bdv-section-header {
    margin-bottom: 24px;
  }
}

.bdv-page-content {
  padding-top: 8px;
  padding-bottom: 40px;
}

.bdv-container {
  padding: 0 24px;
}

@media (min-width: 1280px) {
  .bdv-container {
    padding: 0 32px;
  }
}

.bdv-live-scroll-grid {
  gap: 20px;
}

.bdv-scroll-cards {
  gap: 20px;
}

.bdv-news-grid {
  gap: 20px;
}

.bdv-teams-grid {
  gap: 20px;
}

.bdv-players-list {
  gap: 12px;
}

.bdv-standings-card {
  margin-top: 4px;
}

.bdv-standings-table-wrap {
  padding: 0;
}

.bdv-news-card-body {
  padding: 18px 20px 22px;
}

.bdv-live-card-body {
  padding: 20px 20px 16px;
}

.bdv-upcoming-card-body {
  padding: 20px;
}

.bdv-team-card {
  padding: 24px 16px;
}

.bdv-player-card {
  padding: 16px 18px;
}

.bdv-section + .bdv-section {
  border-top: none;
}

/* ===== D. RESPONSIVE — Mobile spacing ===== */
@media (max-width: 640px) {
  .bdv-container {
    padding: 0 16px;
  }

  .bdv-section {
    padding: 16px 0;
  }

  .bdv-section-header {
    margin-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .bdv-section-title {
    font-size: 18px;
  }

  .bdv-section-subtitle {
    font-size: 13px;
    margin-top: 4px;
  }

  .bdv-live-scroll-grid {
    gap: 14px;
  }

  .bdv-scroll-cards {
    gap: 14px;
  }

  .bdv-news-grid {
    gap: 14px;
  }

  .bdv-teams-grid {
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
  }

  .bdv-card-body,
  .bdv-live-card-body,
  .bdv-upcoming-card-body {
    padding: 16px;
  }

  .bdv-news-card-body {
    padding: 14px 16px 18px;
  }

  .bdv-team-card {
    padding: 18px 12px;
  }

  .bdv-player-card {
    padding: 12px 14px;
  }

  .bdv-standings-table td,
  .bdv-standings-table th {
    padding: 10px 8px;
    font-size: 12px;
  }

  .bdv-standings-table th:nth-child(n+5),
  .bdv-standings-table td:nth-child(n+5) {
    display: none;
  }

  .bdv-standings-form-result {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .bdv-standings-pos {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .bdv-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .bdv-live-badge,
  .bdv-halftime-badge,
  .bdv-status-badge-live,
  .bdv-status-badge-upcoming,
  .bdv-status-badge-finished,
  .bdv-status-badge-halftime {
    font-size: 10px;
    padding: 3px 9px;
  }

  .bdv-footer {
    padding: 40px 0 0;
    margin-top: 40px;
  }

  .bdv-footer-grid {
    gap: 28px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .bdv-section-title {
    font-size: 20px;
  }

  .bdv-standings-table td,
  .bdv-standings-table th {
    padding: 10px 10px;
  }

  .bdv-standings-table th:nth-child(n+6),
  .bdv-standings-table td:nth-child(n+6) {
    display: none;
  }
}

/* ===== E. DARK MODE — Force white+sky-blue everywhere ===== */
/* ===== F. SOUND TOGGLE — Light style fix ===== */
.bdv-sound-toggle {
  background: rgba(22, 93, 255, 0.06);
  border: 1px solid rgba(22, 93, 255, 0.12);
  border-radius: 20px;
  color: #4E5969;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bdv-sound-toggle:hover {
  background: rgba(22, 93, 255, 0.10);
  color: #165DFF;
}

/* ===== G. GRID GAP UNIFICATION ===== */
.bdv-teams-players-grid {
  gap: 32px;
}

@media (min-width: 1024px) {
  .bdv-teams-players-grid {
    gap: 40px;
  }
}

/* ===== H. STANDINGS TABLE — Final premium polish ===== */
.bdv-standings-table thead tr {
  background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
}

.bdv-standings-table thead th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: none;
}

.bdv-standings-table tbody tr {
  transition: background 0.2s ease;
}

.bdv-standings-table tbody tr:nth-child(even) {
  background: #FAFCFF;
}

.bdv-standings-table tbody tr:hover td {
  background: rgba(22, 93, 255, 0.04);
}

.bdv-standings-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22, 93, 255, 0.04);
}

.bdv-standings-table tbody tr:last-child td {
  border-bottom: none;
}

.bdv-standings-form-result {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 10px;
}

.bdv-standings-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(22, 93, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
}

.bdv-standings-tab {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #86909C;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bdv-standings-tab:hover {
  color: #165DFF;
  background: rgba(22, 93, 255, 0.06);
}

.bdv-standings-tab.active {
  background: #FFFFFF;
  color: #165DFF;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.10);
}

/* ===== I. BUTTON HOVER TRANSITION REFINEMENT ===== */
.bdv-btn,
.bdv-btn-primary,
.bdv-btn-outline,
.bdv-btn-secondary,
.bdv-btn-login,
.bdv-btn-register,
.bdv-bookmark-btn,
.bdv-remind-btn,
.bdv-schedule-btn,
.bdv-section-link,
.bdv-hero-ctrl-cta,
.bdv-hero-sidebar-all-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bdv-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 93, 255, 0.35);
}

.bdv-btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.25);
}

.bdv-btn-login:hover {
  transform: translateY(-1px);
}

.bdv-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 93, 255, 0.35);
}

/* ===== J. CARD HOVER — Consistent lift ===== */
.bdv-live-card:hover,
.bdv-upcoming-card:hover,
.bdv-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(22, 93, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(22, 93, 255, 0.14);
}

.bdv-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.10);
}

.bdv-player-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(22, 93, 255, 0.08);
}

/* ===== K. PAGE HEADER GRADIENT — Light sky blue ===== */
.bdv-page-header {
  background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%);
}

/* ===== L. FOOTER SPACING ===== */
.bdv-footer {
  padding: 64px 0 0;
  margin-top: 64px;
}

.bdv-footer-grid {
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .bdv-footer-grid {
    gap: 48px;
  }
}

.bdv-footer-bottom {
  padding-top: 24px;
}

.bdv-footer-desc {
  line-height: 1.8;
  margin-bottom: 24px;
}

.bdv-footer-links {
  gap: 10px;
}

.bdv-footer-link {
  padding: 4px 0;
  line-height: 1.6;
}

/* ===== M. HERO SECTION SPACING ===== */
.bdv-hero-section {
  margin-bottom: 0;
}

.bdv-hero-topbar {
  margin-bottom: 0;
}

.bdv-hero-ctrl-card {
  border-radius: 14px;
}

/* ===== N. NEWS CARD IMAGE REFINEMENT ===== */
.bdv-news-card-img {
  border-radius: 0;
  overflow: hidden;
}

.bdv-news-card-img img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bdv-news-card:hover .bdv-news-card-img img {
  transform: scale(1.04);
}

/* ===== O. SKELETON LOADER ===== */
.bdv-skeleton-card {
  border-radius: 16px;
}

.bdv-poll-skeleton-opt {
  border-radius: 12px;
}

.bdv-skeleton-hero {
  border-radius: 0;
}

/* ===== PAGE HERO — Blue gradient + white text (fixes invisible text on light bg) ===== */
.bdv-page-hero {
  background: linear-gradient(135deg, #165DFF 0%, #4080FF 100%) !important;
  color: #FFFFFF;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.bdv-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
  pointer-events: none;
}

.bdv-page-hero-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bdv-page-hero-sub {
  font-size: 15px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.bdv-page-hero-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bdv-page-hero-icon svg {
  color: rgba(255, 255, 255, 0.9);
}

.bdv-page-hero-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.bdv-page-hero .bdv-container {
  position: relative;
  z-index: 1;
}

.bdv-page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bdv-page-hero-bg > div {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

/* Breadcrumb light — for blue hero backgrounds */
.bdv-breadcrumb-light .bdv-breadcrumb-link {
  color: rgba(255, 255, 255, 0.7);
}

.bdv-breadcrumb-light .bdv-breadcrumb-link:hover {
  color: rgba(255, 255, 255, 1);
}

.bdv-breadcrumb-light .bdv-breadcrumb-item:not(:last-child)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
}

.bdv-breadcrumb-light .bdv-breadcrumb-current .bdv-breadcrumb-text {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero responsive */
@media (max-width: 640px) {
  .bdv-page-hero {
    padding: 32px 0;
  }

  .bdv-page-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .bdv-page-hero-title {
    font-size: 24px;
  }

  .bdv-page-hero-sub {
    font-size: 14px;
  }

  .bdv-page-hero-icon {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .bdv-page-hero-title {
    font-size: 28px;
  }
}

/* Dark mode — keep hero blue */
/* ===== HERO SECTION — First screen layout fix ===== */
@media (max-width: 640px) {
  .bdv-hero-topbar {
    flex-wrap: wrap;
    gap: 4px;
  }

  .bdv-hero-transition-live {
    font-size: 12px;
  }

  .bdv-hero-topbar-right {
    gap: 4px;
  }
}

.bdv-hero-section {
  min-height: auto !important;
  background: linear-gradient(180deg, #F0F7FF 0%, #F7F8FA 100%) !important;
  padding: 0 0 4px;
  position: relative;
  overflow: hidden;
  margin-top: -60px;
  padding-top: 60px;
}

@media (min-width: 768px) {
  .bdv-hero-section {
    margin-top: -68px;
    padding-top: 68px;
  }
}

.bdv-hero-section .bdv-container {
  position: relative;
  z-index: 1;
}

.bdv-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 2px;
  gap: 8px;
}

.bdv-hero-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bdv-hero-transition-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #1D2129;
  letter-spacing: -0.01em;
}

.bdv-hero-transition-live .bdv-live-dot {
  width: 6px;
  height: 6px;
  background: #E94560;
  border-radius: 50%;
  animation: bdv-live-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.bdv-hero-transition-count {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  padding: 2px 8px;
  background: rgba(22, 93, 255, 0.05);
  border-radius: 12px;
  margin-left: 4px;
}

.bdv-hero-split {
  padding: 0;
}

@media (min-width: 1024px) {
  .bdv-hero-split {
    grid-template-columns: 67fr 33fr;
    gap: 12px;
    padding: 2px 0 0;
  }
}

.bdv-hero-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bdv-hero-player-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(22, 93, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(22, 93, 255, 0.08);
  aspect-ratio: unset;
}

.bdv-hero-player-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a1628;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.bdv-hero-player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bdv-hero-player-score-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.bdv-hero-ov-sep {
  opacity: 0.6;
  font-weight: 300;
}

.bdv-hero-big-play {
  width: 48px;
  height: 48px;
}

.bdv-hero-big-play svg { fill: #fff; margin-left: 3px; }

.bdv-hero-big-play-hint { font-size: 11px; font-weight: 600; color: #6b7280; text-align: center; margin: 0; }

.bdv-hero-live-sticker {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 4px 10px;
  font-size: 10px;
}

.bdv-hero-ctrl-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: none;
  border-top: 1px solid rgba(22, 93, 255, 0.06);
  border-radius: 0;
}

.bdv-hero-ctrl-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.bdv-hero-ctrl-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.bdv-hero-ctrl-logo img,
.bdv-hero-ctrl-logo svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bdv-hero-ctrl-name {
  font-size: 10px;
  font-weight: 700;
  color: #1D2129;
  text-align: center;
}

.bdv-hero-ctrl-score {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.bdv-hero-ctrl-n1,
.bdv-hero-ctrl-n2 {
  font-size: 18px;
  font-weight: 800;
  color: #1D2129;
}

.bdv-hero-ctrl-dash {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 300;
}

.bdv-hero-ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.bdv-hero-ctrl-quality {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #9ca3af;
  font-weight: 500;
}

.bdv-hero-ctrl-cta {
  padding: 5px 14px;
  font-size: 11px;
}

.bdv-hero-events-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: #FFFFFF;
  border: 1px solid rgba(22, 93, 255, 0.07);
  border-radius: 8px;
  overflow-x: auto;
}

.bdv-hero-sidebar-list {
  max-height: 300px;
}

.bdv-hero-sidebar-item {
  padding: 8px 14px;
}

.bdv-hero-sidebar-score-n {
  font-size: 13px;
}

.bdv-hero-sidebar-team-name {
  font-size: 11px;
}

.bdv-hero-sidebar-league {
  font-size: 10px;
}

.bdv-hero-sidebar-footer {
  padding: 8px 14px;
}

.bdv-hero-sidebar {
  background: #FFFFFF;
  border: 1px solid rgba(22, 93, 255, 0.07);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(22, 93, 255, 0.05);
}

.bdv-hero-sidebar-header {
  background: #FAFCFF;
  border-bottom-color: rgba(22, 93, 255, 0.06);
}

@media (max-width: 640px) {
  .bdv-hero-player-cover {
    aspect-ratio: 16 / 10;
  }

  .bdv-hero-ctrl-n1,
  .bdv-hero-ctrl-n2 {
    font-size: 16px;
  }

  .bdv-hero-ctrl-logo img,
  .bdv-hero-ctrl-logo svg {
    width: 24px;
    height: 24px;
  }

  .bdv-hero-ctrl-name {
    font-size: 9px;
  }

  .bdv-hero-ctrl-card {
    padding: 6px 10px;
  }

  .bdv-hero-player-score-overlay {
    font-size: 22px;
  }

  .bdv-hero-sidebar-list {
    max-height: 240px;
  }

  .bdv-hero-big-play {
    width: 40px;
    height: 40px;
  }
}


/* ============================================
   BongDaVIP v5.0 — New Module Styles
   Modules 7-10 + Enhanced Layout + Responsive
   ============================================ */

/* ===== MODULE 7: RECENT RESULTS — 已结束比赛 ===== */
.bdv-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .bdv-results-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .bdv-results-grid { grid-template-columns: repeat(4, 1fr); }
}
.bdv-result-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #1D2129;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.bdv-result-card:hover {
  box-shadow: 0 2px 12px rgba(22,93,255,0.08);
  border-color: rgba(22,93,255,0.2);
  transform: translateY(-1px);
}
.bdv-result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.bdv-result-league {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
  min-width: 0;
  overflow: hidden;
}
.bdv-result-league img,
.bdv-result-league svg {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain;
  flex-shrink: 0;
}
.bdv-result-league span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bdv-result-status {
  font-size: 10px;
  color: #9ca3af;
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bdv-result-card-body {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bdv-result-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.bdv-result-team a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.bdv-result-team-logo img,
.bdv-result-team-logo svg {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
}
.bdv-result-team-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bdv-result-team-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
  line-height: 1.2;
}
.bdv-result-card-score {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  padding: 0 2px;
}
.bdv-result-score-sep { color: #9ca3af; font-weight: 400; }
.bdv-result-winner { color: #E94560; }
.bdv-result-events {
  font-size: 10px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  border-top: 1px solid #f3f4f6;
  padding-top: 6px;
  line-height: 1.4;
}
.bdv-result-event {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ===== MODULE 8: MATCH SCHEDULE — 赛程日历 ===== */
.bdv-schedule-tabs-wrap {
  margin-bottom: 24px;
}
.bdv-schedule-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.bdv-schedule-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 24px;
  background: #f8f9fa;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms;
  min-width: 80px;
  font-family: Inter,system-ui,-apple-system,sans-serif;
}
.bdv-schedule-tab:hover {
  background: rgba(22,93,255,0.08);
}
.bdv-schedule-tab.active {
  background: rgba(22,93,255,0.1);
  border-color: #165DFF;
}
.bdv-schedule-tab-date {
  font-size: 16px;
  font-weight: 700;
  color: #1D2129;
}
.bdv-schedule-tab-label {
  font-size: 11px;
  color: #9ca3af;
}
.bdv-schedule-panel { display: block; }
.bdv-schedule-panel.bdv-hidden { display: none; }
.bdv-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bdv-schedule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  transition: all 200ms;
}
.bdv-schedule-item:hover {
  background: #f8f9fa;
  border-color: rgba(22,93,255,0.15);
}
.bdv-schedule-item-time {
  min-width: 60px;
}
.bdv-schedule-time {
  font-size: 14px;
  font-weight: 700;
  color: #E94560;
}
.bdv-schedule-item-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3af;
  min-width: 100px;
}
.bdv-schedule-item-league img {
  width: 18px;
  height: 18px;
}
.bdv-schedule-item-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.bdv-schedule-item-team {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bdv-schedule-item-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.bdv-schedule-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1D2129;
}
.bdv-schedule-item-vs {
  font-size: 11px;
  color: #9ca3af;
  padding: 0 4px;
}
.bdv-schedule-item-action {
  color: #9ca3af;
  flex-shrink: 0;
}

/* ===== MODULE 9: LEAGUE ZONES — 联赛专区入口 ===== */
.bdv-league-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bdv-league-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition: all 200ms;
  overflow: hidden;
}
.bdv-league-card-accent {
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--lc, #165DFF);
  border-radius: 4px 0 0 4px;
}
.bdv-league-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--lc, rgba(22,93,255,0.15));
  transform: translateY(-2px);
}
.bdv-league-card-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.bdv-league-card-info {
  flex: 1;
}
.bdv-league-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #1D2129;
  margin-bottom: 2px;
}
.bdv-league-card-country {
  font-size: 11px;
  color: #9ca3af;
  display: block;
}
.bdv-league-card-matches {
  font-size: 10px;
  color: #E94560;
  font-weight: 600;
}
.bdv-league-card-arrow {
  color: #9ca3af;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 200ms, transform 200ms;
}
.bdv-league-card:hover .bdv-league-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ===== MODULE 10: TOP SCORERS — 射手榜 ===== */
.bdv-scorers-tabs-wrap {
  margin-bottom: 20px;
}
.bdv-scorers-tabs {
  display: flex;
  gap: 8px;
}
.bdv-scorers-tab {
  padding: 8px 20px;
  background: #f8f9fa;
  border: 1.5px solid transparent;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 200ms;
  font-family: Inter,system-ui,-apple-system,sans-serif;
}
.bdv-scorers-tab:hover { background: rgba(22,93,255,0.08); color: #165DFF; }
.bdv-scorers-tab.active {
  background: rgba(22,93,255,0.1);
  border-color: #165DFF;
  color: #165DFF;
}
.bdv-scorers-panel.bdv-hidden { display: none; }
.bdv-scorers-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}
.bdv-scorers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bdv-scorers-table th {
  padding: 12px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
}
.bdv-scorers-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
}
.bdv-scorers-table tbody tr:hover { background: rgba(22,93,255,0.08); }
.bdv-scorers-table tbody tr:last-child td { border-bottom: none; }
.bdv-scorers-row-top { background: rgba(255,170,0,0.08); }
.bdv-scorers-rank { font-weight: 700; }
.bdv-scorers-rank-medal { font-size: 16px; }
.bdv-scorers-player-name { font-weight: 600; color: #1D2129; }

/* ===== STANDINGS ENHANCED — 积分榜增强 ===== */
.bdv-standings-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  gap: 8px;
}
.bdv-standings-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: #f8f9fa;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 200ms;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: Inter,system-ui,-apple-system,sans-serif;
}
.bdv-standings-tab:hover { background: rgba(22,93,255,0.08); }
.bdv-standings-tab.active {
  background: rgba(22,93,255,0.1);
  border-color: #165DFF;
  color: #165DFF;
}
.bdv-standings-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 0;
}
.bdv-standings-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3af;
}
.bdv-zone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.bdv-zone-champion { background: linear-gradient(135deg, #FFD700, #FFAA00); }
.bdv-zone-champions_league { background: linear-gradient(135deg, #165DFF, #4080FF); }
.bdv-zone-europa { background: linear-gradient(135deg, #FF7D00, #FFAA00); }
.bdv-zone-relegation { background: #FF4D4F; }

/* Zone row coloring */
.bdv-standings-zone-champion { border-left: 3px solid #FFD700; background: rgba(255, 215, 0, 0.04); }
.bdv-standings-zone-champions_league { border-left: 3px solid #165DFF; background: rgba(22, 93, 255, 0.03); }
.bdv-standings-zone-europa { border-left: 3px solid #FF7D00; background: rgba(255, 125, 0, 0.03); }
.bdv-standings-zone-relegation { border-left: 3px solid #FF4D4F; background: rgba(255, 77, 79, 0.03); }

/* ===== BACK TO TOP BUTTON ===== */
.bdv-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg,#165DFF,#4080FF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(22,93,255,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 350ms;
}
.bdv-back-to-top.bdv-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bdv-back-to-top:hover {
  box-shadow: 0 8px 24px rgba(22,93,255,0.2);
  transform: translateY(-4px);
}

/* ===== TEAM LOGO HOVER PREVIEW ===== */
.bdv-logo-preview {
  position: absolute;
  z-index: 100;
  pointer-events: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 25px rgba(0,0,0,0.1);
  padding: 12px;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.bdv-logo-preview.bdv-show {
  opacity: 1;
  transform: scale(1);
}
.bdv-logo-preview img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.bdv-logo-preview-name {
  font-size: 11px;
  font-weight: 600;
  color: #1D2129;
  margin-top: 4px;
  white-space: nowrap;
}

/* ===== PLAYER AVATAR IMAGE ===== */
.bdv-player-avatar-img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}
.bdv-player-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.bdv-player-avatar-wrap .bdv-avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
}

/* ===== RESPONSIVE — Enhanced Breakpoints ===== */
@media (max-width: 1200px) {
  .bdv-league-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .bdv-schedule-item {
    flex-wrap: wrap;
    padding: 12px;
  }
  .bdv-schedule-item-teams { order: 2; flex-basis: 100%; justify-content: center; }
}

@media (max-width: 768px) {
  .bdv-league-cards-grid { grid-template-columns: 1fr; }
  .bdv-league-card { padding: 16px; }
  .bdv-league-card-logo img { width: 44px; height: 44px; }
  .bdv-schedule-tab { padding: 8px 16px; min-width: 60px; }
  .bdv-schedule-item-time { min-width: 50px; }
  .bdv-schedule-item-league { min-width: auto; }
  .bdv-scorers-table { font-size: 11px; }
  .bdv-scorers-table th, .bdv-scorers-table td { padding: 8px; }
  .bdv-back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
  .bdv-standings-legend { gap: 12px; }
}

@media (max-width: 480px) {
  .bdv-schedule-item-time { min-width: 40px; }
  .bdv-schedule-item-league { display: none; }
  .bdv-schedule-item-team { flex-direction: column; gap: 2px; }
  .bdv-schedule-item-vs { font-size: 10px; }
  .bdv-results-grid { grid-template-columns: 1fr; gap: 8px; }
  .bdv-result-card { padding: 10px; }
  .bdv-result-team-logo img,
  .bdv-result-team-logo svg { width: 24px !important; height: 24px !important; }
  .bdv-result-team-name { max-width: 60px; font-size: 10px; }
  .bdv-result-card-score { font-size: 14px; }
  .bdv-result-events { font-size: 9px; }
}

/* ===== IMPROVEMENTS: Performance & Mobile Polish ===== */

/* Better touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
  .bdv-btn, .bdv-filter-tab, .bdv-standings-tab, .bdv-nav-link,
  .bdv-hero-sidebar-item, .bdv-footer-link, .bdv-scorers-tab,
  .bdv-footer-social-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Image lazy loading placeholder */
img[loading="lazy"] {
  background: #f8f9fa;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
img[loading="lazy"]:not([src]) {
  opacity: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid #165DFF;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Print styles */
@media print {
  .bdv-header, .bdv-footer, .bdv-hero-atmosphere, .bdv-page-progress,
  .bdv-hero-ctrl-cta, .bdv-player-container, .bdv-skeleton-screen,
  .bdv-page-skeleton, .bdv-page-transition {
    display: none !important;
  }
  body { background: #fff; color: #000; }
}

/* ===== LIVE STREAM CONTROLS: Light Theme Override ===== */
/* Override dark-theme button styles with light-theme */

.bdv-stream-btn {
  padding: 6px 14px !important;
  background: #f8f9fa !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: Inter,system-ui,-apple-system,sans-serif !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
.bdv-stream-btn:hover {
  background: rgba(22,93,255,0.08) !important;
  border-color: #165DFF !important;
  color: #165DFF !important;
}
.bdv-stream-btn.active {
  background: #165DFF !important;
  border-color: #165DFF !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(22,93,255,0.25) !important;
}
.bdv-stream-btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
}
.bdv-stream-btn-dot {
  background: #e5e7eb !important;
}
.bdv-stream-btn.active .bdv-stream-btn-dot {
  background: #4caf50 !important;
  box-shadow: 0 0 5px rgba(76,175,80,0.6) !important;
}

/* Quality buttons override */
.bdv-quality-btn {
  padding: 5px 14px !important;
  background: #f8f9fa !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 20px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: Inter,system-ui,-apple-system,sans-serif !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1) !important;
  white-space: nowrap !important;
}
.bdv-quality-btn:hover {
  background: rgba(22,93,255,0.08) !important;
  border-color: #165DFF !important;
  color: #165DFF !important;
}
.bdv-quality-btn.active {
  background: linear-gradient(135deg,#165DFF,#4080FF) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(22,93,255,0.3) !important;
}

/* Stream selector label */
.bdv-stream-selector-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #6b7280 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-family: Inter,system-ui,-apple-system,sans-serif !important;
  white-space: nowrap !important;
}

/* Player live tag */
.bdv-player-live-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 10px !important;
  background: rgba(255,77,79,0.10) !important;
  color: #E94560 !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: Inter,system-ui,-apple-system,sans-serif !important;
  letter-spacing: 0.5px !important;
}

/* ===== UNIFIED CARD SHADOWS & HOVER EFFECTS ===== */
.bdv-card, .bdv-match-card, .bdv-news-card, .bdv-team-card,
.bdv-player-card, .bdv-event-card, .bdv-stat-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(22,93,255,0.05);
  transition: transform 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
}
.bdv-card:hover, .bdv-match-card:hover, .bdv-news-card:hover,
.bdv-team-card:hover, .bdv-player-card:hover, .bdv-event-card:hover,
.bdv-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 8px 24px rgba(22,93,255,0.10);
}

/* ===== VIETNAMESE TYPOGRAPHY: Optimized line-height & breathing ===== */
body, .bdv-content, .bdv-page-content,
h1, h2, h3, h4, h5, h6,
.bdv-card-title, .bdv-match-title, .bdv-news-title,
.bdv-team-name, .bdv-player-name, .bdv-event-title,
.bdv-match-info, .bdv-stat-label, .bdv-stat-value {
  font-feature-settings: "ccmp", "liga", "kern", "cv02", "cv05";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Vietnamese diacritical-safe line-heights */
body, p, span, li, td, th, label, a, button, input, textarea, select {
  line-height: 1.6;
}
h1, h2, .bdv-hero-title, .bdv-page-title {
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h3, h4, .bdv-card-title, .bdv-match-team-name {
  line-height: 1.35;
  letter-spacing: -0.005em;
}
h5, h6, .bdv-meta, .bdv-label, caption, figcaption {
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* Extra breathing room for Vietnamese multi-diacritic words */
.bdv-card-body, .bdv-match-detail, .bdv-news-excerpt,
.bdv-team-desc, .bdv-player-info, .bdv-event-desc,
.bdv-page-content p, .bdv-content p {
  line-height: 1.7;
  word-spacing: 0.02em;
}

/* Standing tables breathing */
.bdv-standings td, .bdv-standings th,
.bdv-scorers td, .bdv-scorers th {
  line-height: 1.5;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ===== SCORE REFRESH ANIMATIONS ===== */
@keyframes bdv-score-flash-num {
  0% { transform: scale(1); color: inherit; }
  30% { transform: scale(1.35); color: #E94560; }
  100% { transform: scale(1); color: inherit; }
}
@keyframes bdv-toast-slide-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes bdv-toast-slide-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
@keyframes bdv-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== FULL-SITE SEARCH: Button, Bar & Results Dropdown ===== */

/* Search toggle button */
.bdv-search-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.bdv-search-toggle-btn:hover {
  background: rgba(22,93,255,0.08);
  color: #165DFF;
}

/* Search bar container */
#bdv-search-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  z-index: 1000;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
#bdv-search-bar.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Search wrapper */
.bdv-search-wrapper {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px;
}

.bdv-search-input {
  width: 100%;
  padding: 12px 44px 12px 44px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 15px;
  font-family: Inter,system-ui,-apple-system,sans-serif;
  color: #1D2129;
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.4,0,0.2,1);
  box-sizing: border-box;
}
.bdv-search-input:focus {
  border-color: #165DFF;
  background: #f8f9fa;
}
.bdv-search-input::placeholder {
  color: #6b7280;
  opacity: 0.5;
}

/* Search icon */
.bdv-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

/* Search clear button */
.bdv-search-clear {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.15s cubic-bezier(0.4,0,0.2,1);
}
.bdv-search-clear:hover {
  background: #e5e7eb;
  color: #1D2129;
}

/* ===== SEARCH RESULTS DROPDOWN ===== */
.bdv-search-results {
  position: absolute;
  top: 100%;
  left: 16px;
  right: 16px;
  margin-top: 4px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 6px rgba(22,93,255,0.06);
  max-height: 460px;
  overflow-y: auto;
  z-index: 1001;
}
.bdv-search-results::-webkit-scrollbar {
  width: 4px;
}
.bdv-search-results::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 2px;
}

/* Search section */
.bdv-search-section {
  padding: 8px 0;
}
.bdv-search-section + .bdv-search-section {
  border-top: 1px solid #e5e7eb;
}

/* Section title */
.bdv-search-section-title {
  padding: 6px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: Inter,system-ui,-apple-system,sans-serif;
}

/* Search result item */
.bdv-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: #1D2129;
  transition: background 0.15s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.bdv-search-item:hover,
.bdv-search-item:focus {
  background: rgba(22,93,255,0.08);
  outline: none;
}

/* Item icon */
.bdv-search-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.bdv-search-item-icon img {
  display: block;
}

/* Live dot */
.bdv-search-live-dot {
  position: relative;
}
.bdv-search-live-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E94560;
  animation: bdv-live-pulse 1.5s ease-in-out infinite;
}

/* Item text */
.bdv-search-item-text {
  flex: 1;
  min-width: 0;
}
.bdv-search-item-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bdv-search-item-meta {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 1px;
}

/* Score badge */
.bdv-search-item-score {
  font-size: 14px;
  font-weight: 700;
  color: #165DFF;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Live match item */
.bdv-search-item-live {
  background: rgba(255,77,79,0.03);
}
.bdv-search-item-live:hover,
.bdv-search-item-live:focus {
  background: rgba(255,77,79,0.07);
}
.bdv-search-item-live .bdv-search-item-score {
  color: #E94560;
}

/* Loading spinner */
.bdv-search-loading {
  padding: 32px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bdv-search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #165DFF;
  border-radius: 50%;
  animation: bdv-spin 0.6s linear infinite;
}
@keyframes bdv-spin {
  to { transform: rotate(360deg); }
}

/* Empty / Error states */
.bdv-search-empty,
.bdv-search-error {
  padding: 32px 16px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.bdv-search-error { color: #E94560; }

/* Mobile search adjustments */
@media (max-width: 768px) {
  #bdv-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 12px 20px;
    z-index: 1050;
    background: #f8f9fa;
  }
  .bdv-search-results {
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 140px);
  }
}

/* ===== FINAL MOBILE ADAPTATION ===== */

/* Prevent horizontal overflow globally */
body, .bdv-page, .bdv-container, .bdv-section, .bdv-row, .bdv-grid,
.bdv-hero, .bdv-hero-section, .bdv-player-wrapper, .bdv-match-detail,
.bdv-content, .bdv-main, .bdv-sidebar, .bdv-page-hero, .bdv-page-content {
  overflow-x: hidden;
}
/* Exception: header container must not clip navigation */
.bdv-header .bdv-container {
  overflow: visible !important;
  overflow-x: visible !important;
}
/* Exception: live grid must not clip columns */
.bdv-live-grid {
  overflow: visible !important;
  overflow-x: visible !important;
}
.bdv-live-page {
  overflow: visible !important;
  overflow-x: visible !important;
}
.bdv-table-wrap, .bdv-scrollable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Touch target minimum 44px */
@media (hover: none) and (pointer: coarse) {
  a, button, .bdv-btn, .bdv-nav-link, .bdv-tab, .bdv-filter-tab,
  .bdv-standings-tab, .bdv-scorers-tab, .bdv-hero-sidebar-item,
  input[type="checkbox"], input[type="radio"], select, .bdv-search-item {
    min-height: 44px;
  }
  .bdv-btn, button:not(.bdv-btn-icon-sm) {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Small screen card optimization */
@media (max-width: 480px) {
  .bdv-card, .bdv-match-card, .bdv-news-card, .bdv-team-card, .bdv-player-card {
    border-radius: 6px;
    padding: 12px;
  }
  .bdv-card-title, .bdv-match-team-name, .bdv-news-title {
    font-size: 14px;
  }
  .bdv-card-meta, .bdv-card-excerpt {
    font-size: 12px;
  }

  /* Match cards on mobile */
  .bdv-match-card-teams {
    font-size: 14px;
  }
  .bdv-match-card-score {
    font-size: 20px;
  }

  /* Grid to single column */
  .bdv-grid-2, .bdv-grid-3, .bdv-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* News grid */
  .bdv-news-grid {
    grid-template-columns: 1fr;
  }

  /* Hero sidebar */
  .bdv-hero-sidebar {
    grid-template-columns: 1fr;
  }

  /* Sidebar match items */
  .bdv-hero-sidebar-item {
    padding: 8px 10px;
  }

  /* Tables mobile */
  .bdv-standings, .bdv-scorers-table {
    font-size: 12px;
  }
  .bdv-standings td, .bdv-standings th,
  .bdv-scorers td, .bdv-scorers th {
    padding: 6px 8px;
    white-space: nowrap;
  }

  /* Team/player cards */
  .bdv-team-grid, .bdv-player-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Match detail page */
  .bdv-match-info-panel {
    padding: 12px;
  }
  .bdv-player-container {
    border-radius: 0;
  }
  .bdv-stream-controls {
    padding: 8px 10px;
    flex-direction: column;
    gap: 8px;
  }
  .bdv-stream-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* Tablet optimization */
@media (min-width: 481px) and (max-width: 768px) {
  .bdv-grid-3, .bdv-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .bdv-team-grid, .bdv-player-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Fix iOS input zoom */
@media (max-width: 768px) {
  input[type="text"], input[type="search"], input[type="email"],
  input[type="password"], input[type="tel"], textarea, select {
    font-size: 16px !important;
  }
  .bdv-search-input { font-size: 16px !important; }
}

/* Smooth momentum scroll on iOS */
.bdv-search-results, .bdv-table-wrap, .bdv-scrollable, .bdv-hero-sidebar-scroll {
  -webkit-overflow-scrolling: touch;
}

/* ===== DANMAKU CHAT PANEL ===== */
.bdv-chat-panel {
  background: #f8f9fa; border-radius: 12px;
  border: 1px solid #e5e7eb; overflow: hidden;
  margin-top: 16px;
}
.bdv-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.bdv-chat-header-left { display: flex; align-items: center; gap: 6px; color: #1D2129; font-weight: 700; font-size: 14px; }
.bdv-chat-online { font-size: 12px; color: #9ca3af; font-weight: 400; }
.bdv-chat-toggle { width: 28px; height: 28px; border: none; background: transparent; color: #9ca3af; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.bdv-chat-toggle:hover { background: #eef0f2; }
.bdv-chat-panel.collapsed .bdv-chat-messages,
.bdv-chat-panel.collapsed .bdv-chat-input-wrap { display: none; }
.bdv-chat-panel.collapsed .bdv-chat-toggle svg { transform: rotate(180deg); }
.bdv-chat-messages {
  height: 240px; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.bdv-chat-placeholder {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; color: #d1d5db; gap: 8px;
}
.bdv-chat-msg {
  padding: 6px 10px; background: #fff; border-radius: 8px;
  font-size: 13px; line-height: 1.4; border: 1px solid #f3f4f6;
  animation: bdv-chat-fadein 0.3s ease;
}
@keyframes bdv-chat-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bdv-chat-msg-user .bdv-chat-msg-name { color: #165DFF; }
.bdv-chat-msg .bdv-chat-msg-name { font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.bdv-chat-msg .bdv-chat-msg-text { color: #1D2129; word-break: break-word; }
.bdv-chat-msg .bdv-chat-msg-time { font-size: 10px; color: #9ca3af; margin-top: 3px; }
.bdv-chat-input-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid #e5e7eb;
  background: #fff;
}
.bdv-chat-input {
  flex: 1; padding: 8px 12px; border: 1px solid #e5e7eb;
  border-radius: 20px; font-size: 13px; outline: none;
  background: #f8f9fa; color: #1D2129;
  transition: border-color 0.2s;
}
.bdv-chat-input:focus { border-color: #165DFF; }
.bdv-chat-send {
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: linear-gradient(135deg,#165DFF,#4080FF); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s; flex-shrink: 0;
}
.bdv-chat-send:hover { transform: scale(1.1); }

/* ===== CAST BUTTON ===== */
.bdv-cast-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s ease;
}
.bdv-cast-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.bdv-cast-btn.casting { background: #E94560; border-color: transparent; color: #fff; animation: bdv-live-pulse 2s ease-in-out infinite; }

/* ===== REPLAY SECTION ===== */
.bdv-replay-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px;
}
.bdv-replay-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bdv-replay-header-left { display: flex; align-items: center; gap: 10px; }
.bdv-replay-header h2 { font-size: 20px; font-weight: 800; color: #1D2129; margin: 0; }
.bdv-replay-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; background: #E94560;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
}
.bdv-replay-desc { font-size: 14px; color: #6b7280; margin: 8px 0 24px; }
.bdv-replay-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; }
.bdv-replay-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: 12px; text-decoration: none;
  background: #fff; border: 1px solid #e5e7eb;
  transition: all 0.2s ease; cursor: pointer;
}
.bdv-replay-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #165DFF; }
.bdv-replay-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bdv-replay-full .bdv-replay-card-icon { background: linear-gradient(135deg, #165DFF, #4080FF); color: #fff; }
.bdv-replay-highlights .bdv-replay-card-icon { background: linear-gradient(135deg, #FF4D4F, #FF7875); color: #fff; }
.bdv-replay-keymoments .bdv-replay-card-icon { background: linear-gradient(135deg, #FFAA00, #FF9500); color: #fff; }
.bdv-replay-card-title { display: block; font-size: 15px; font-weight: 700; color: #1D2129; }
.bdv-replay-card-sub { display: block; font-size: 12px; color: #9ca3af; margin-top: 2px; }
html.dark-mode .bdv-replay-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ================================================================
   GLOBAL MOBILE RESPONSIVE PATCH — 全局移动端响应式补丁
   覆盖所有缺少移动端处理的组件
   ================================================================ */

@media (max-width: 768px) {
    .bdv-player-rankings { padding: 24px 0 !important; }
    .bdv-player-rankings .bdv-container { padding: 0 16px; }
    .bdv-player-rankings h2 { font-size: 18px !important; }
    .bdv-player-rankings .bdv-league-tabs { gap: 4px !important; }
    .bdv-player-rankings .bdv-league-tab { padding: 4px 10px !important; font-size: 11px !important; }
    .bdv-player-rankings table { font-size: 12px; }
    .bdv-player-rankings th { padding: 6px 4px !important; font-size: 10px !important; }
    .bdv-player-rankings td { padding: 8px 4px !important; }
    .bdv-player-rankings td a span { font-size: 12px !important; }
    .bdv-player-rankings td a[style*="font-size:11px"] { font-size: 10px !important; }

    .bdv-poll-widget-wrapper { padding: 16px; }
    .bdv-poll-question { font-size: 15px; }
    .bdv-poll-opt { padding: 10px 14px; }
    .bdv-poll-opt-label { font-size: 14px; }

    .bdv-seo-content { padding: 32px 0 !important; }
    .bdv-seo-content h2 { font-size: 18px !important; }
    .bdv-seo-content p { font-size: 13px !important; }
    .bdv-seo-content .bdv-ilink { padding: 8px 14px !important; font-size: 12px !important; }

    .bdv-hero-ctrl-card { padding: 10px 12px; }
    .bdv-hero-ctrl-teams { gap: 8px; }
    .bdv-hero-ctrl-name { font-size: 11px; }
    .bdv-hero-ctrl-score { font-size: 22px; }
    .bdv-hero-ctrl-bar { flex-wrap: wrap; gap: 6px; }
    .bdv-hero-ctrl-quality { font-size: 11px; }
    .bdv-hero-ctrl-cta { padding: 6px 12px; font-size: 11px; }

    .bdv-hero-events-ticker { padding: 8px 12px; }
    .bdv-hero-ticker-label { font-size: 11px; }
    .bdv-hero-ticker-item { font-size: 11px; gap: 4px; }

    .bdv-section { padding: 24px 0; }
    .bdv-section-title { font-size: 18px; }
    .bdv-section-subtitle { font-size: 12px; }

    .bdv-standings-tabs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bdv-standings-tabs { flex-wrap: nowrap; min-width: max-content; }
    .bdv-standings-tab { padding: 6px 10px; font-size: 12px; white-space: nowrap; }

    .bdv-schedule-tabs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .bdv-schedule-tabs { flex-wrap: nowrap; min-width: max-content; }
    .bdv-schedule-tab { padding: 6px 10px; font-size: 12px; white-space: nowrap; }

    .bdv-result-card-body { gap: 8px; }
    .bdv-result-team-logo { width: 36px; height: 36px; }
    .bdv-result-team-name { font-size: 11px; }
    .bdv-result-home-score, .bdv-result-away-score { font-size: 18px; }
    .bdv-result-events { font-size: 10px; }

    .bdv-upcoming-card-body { padding: 12px; }
    .bdv-upcoming-team-logo { width: 36px; height: 36px; }
    .bdv-upcoming-team-name { font-size: 11px; }
    .bdv-upcoming-vs { font-size: 12px; }

    .bdv-team-card-logo { width: 48px; height: 48px; }
    .bdv-team-card-name { font-size: 13px; }
    .bdv-team-card-league { font-size: 10px; }

    .bdv-player-card-avatar { width: 40px; height: 40px; }
    .bdv-player-card-name { font-size: 13px; }
    .bdv-player-card-team { font-size: 10px; }
    .bdv-player-card-stats { font-size: 11px; }

    .bdv-news-card-title { font-size: 14px; }
    .bdv-news-card-meta { font-size: 11px; }
    .bdv-news-card-category { font-size: 10px; padding: 2px 8px; }

    .bdv-league-card-logo { width: 40px; height: 40px; }
    .bdv-league-card-name { font-size: 14px; }
    .bdv-league-card-country { font-size: 11px; }
    .bdv-league-card-matches { font-size: 11px; }
}

@media (max-width: 640px) {
    .bdv-player-rankings > div > div:first-child { flex-direction: column; gap: 12px !important; align-items: flex-start !important; }
    .bdv-player-rankings .bdv-league-tabs { flex-wrap: wrap; }
    .bdv-player-rankings table { min-width: 320px; }
    .bdv-player-rankings > div > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

    .bdv-seo-content [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .bdv-seo-content [style*="display:flex;gap:12px;flex-wrap:wrap"] { gap: 8px !important; }
    .bdv-seo-content .bdv-ilink { padding: 6px 12px !important; font-size: 12px !important; }

    .bdv-hero-player-cover { min-height: 200px; }
    .bdv-hero-big-play { width: 48px; height: 48px; }
    .bdv-hero-big-play svg { width: 20px; height: 20px; }
    .bdv-hero-big-play-hint { font-size: 11px; }
    .bdv-hero-player-score-overlay { font-size: 20px; }

    .bdv-hero-live-sticker { font-size: 10px; padding: 4px 8px; }

    .bdv-live-card-team-logo { width: 36px; height: 36px; }
    .bdv-live-card-team-name { font-size: 11px; }
    .bdv-live-card-score-nums { font-size: 20px; }
    .bdv-live-card-minute { font-size: 11px; }
    .bdv-live-card-event { font-size: 10px; }
    .bdv-live-card-footer { flex-direction: column; gap: 6px; }
    .bdv-live-card-footer .bdv-btn { width: 100%; justify-content: center; }
    .bdv-live-card-footer .bdv-bookmark-btn,
    .bdv-live-card-footer .bdv-fav-team-btn,
    .bdv-live-card-footer .bdv-share-btn { width: auto; }

    .bdv-standings-table th, .bdv-standings-table td { padding: 6px 4px; font-size: 11px; }
    .bdv-standings-form-result { width: 18px; height: 18px; font-size: 9px; }

    .bdv-poll-widget-wrapper { padding: 12px; border-radius: 12px; }
    .bdv-poll-question { font-size: 14px; margin-bottom: 14px; }
    .bdv-poll-opt { padding: 8px 12px; }
    .bdv-poll-opt-label { font-size: 13px; }
    .bdv-poll-total { font-size: 11px; }
}

@media (max-width: 480px) {
    .bdv-hero-topbar { padding: 6px 12px; font-size: 11px; }
    .bdv-hero-transition-live { font-size: 11px; gap: 4px; }
    .bdv-hero-transition-count { font-size: 10px; }
    .bdv-hero-league-tag { font-size: 10px; padding: 2px 6px; }
    .bdv-sound-toggle { display: none; }

    .bdv-hero-player-cover { min-height: 160px; }
    .bdv-hero-player-score-overlay { font-size: 16px; gap: 4px; }
    .bdv-hero-ctrl-card { padding: 8px 10px; gap: 6px; }
    .bdv-hero-ctrl-teams { gap: 6px; }
    .bdv-hero-ctrl-logo { width: 28px; height: 28px; }
    .bdv-hero-ctrl-name { font-size: 10px; }
    .bdv-hero-ctrl-score { font-size: 18px; gap: 4px; }
    .bdv-hero-ctrl-cta { padding: 5px 10px; font-size: 10px; gap: 4px; }
    .bdv-hero-ctrl-cta svg { width: 12px; height: 12px; }

    .bdv-hero-events-ticker { padding: 6px 10px; gap: 4px; }
    .bdv-hero-ticker-items { gap: 6px; }
    .bdv-hero-ticker-item { font-size: 10px; gap: 2px; }

    .bdv-hero-sidebar-list { max-height: 200px; }
    .bdv-hero-sidebar-item { padding: 8px 12px; }
    .bdv-hero-sidebar-league { font-size: 9px; }
    .bdv-hero-sidebar-team-name { font-size: 11px; }
    .bdv-hero-sidebar-score-n { font-size: 13px; }

    .bdv-live-card { padding: 10px; border-radius: 12px; }
    .bdv-live-card-header { margin-bottom: 8px; }
    .bdv-live-card-body { gap: 8px; }
    .bdv-live-card-team-logo { width: 32px; height: 32px; }
    .bdv-live-card-team-name { font-size: 10px; }
    .bdv-live-card-score-nums { font-size: 18px; }

    .bdv-section { padding: 20px 0; }
    .bdv-section-title { font-size: 16px; }
    .bdv-section-subtitle { font-size: 11px; }
    .bdv-section-header { margin-bottom: 16px; }

    .bdv-player-rankings { padding: 16px 0 !important; }
    .bdv-player-rankings h2 { font-size: 16px !important; }
    .bdv-player-rankings th { font-size: 9px !important; }
    .bdv-player-rankings td { padding: 6px 2px !important; font-size: 11px; }

    .bdv-poll-widget-wrapper { padding: 10px; }
    .bdv-poll-question { font-size: 13px; }
    .bdv-poll-opt { padding: 8px 10px; border-radius: 8px; }
    .bdv-poll-opt-label { font-size: 12px; }

    .bdv-seo-content { padding: 24px 0 !important; }
    .bdv-seo-content h2 { font-size: 16px !important; }
    .bdv-seo-content h4 { font-size: 12px; }
    .bdv-seo-content [style*="flex-wrap:wrap;gap:8px"] { gap: 6px !important; }
    .bdv-seo-content .bdv-ilink { padding: 5px 10px !important; font-size: 11px !important; border-radius: 6px !important; }

    .bdv-result-card { padding: 10px; border-radius: 12px; }
    .bdv-result-card-header { margin-bottom: 8px; }
    .bdv-result-team-logo { width: 30px; height: 30px; }
    .bdv-result-team-name { font-size: 10px; }
    .bdv-result-home-score, .bdv-result-away-score { font-size: 16px; }

    .bdv-news-card-title { font-size: 13px; }
    .bdv-news-card-meta { font-size: 10px; }

    .bdv-league-card { padding: 12px; border-radius: 12px; }
    .bdv-league-card-logo { width: 32px; height: 32px; }
    .bdv-league-card-name { font-size: 13px; }
}

@media (max-width: 360px) {
    .bdv-container { padding: 0 12px; }
    .bdv-hero-ctrl-quality span:not(.bdv-hero-ctrl-sep):not(.bdv-hero-ctrl-minute) { display: none; }
    .bdv-hero-ctrl-quality .bdv-hero-ctrl-sep { display: none; }
    .bdv-hero-ctrl-quality .bdv-hero-ctrl-minute { display: inline; }
    .bdv-live-card-score-nums { font-size: 16px; }
    .bdv-player-rankings .bdv-league-tab { padding: 3px 6px !important; font-size: 10px !important; }
}
