/* ==========================================================================
   BALL24LIVE.COM - Official Mockup Stylesheet
   Theme: Deep Navy & Electric Neon Blue (โทนสีน้ำเงินพรีเมียม สไตล์ 365scores/Dooball)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700;800&family=Prompt:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root, [data-theme="light"] {
  /* Surface & Backgrounds */
  --bg-dark: #f1f5f9;
  --bg-deep: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-solid: #ffffff;
  --bg-surface: #eff6ff;
  --bg-inner: #f1f5f9;

  /* Header Royal Blue Bar */
  --header-bg: linear-gradient(135deg, #09204f 0%, #0d2f70 50%, #103b8c 100%);
  --header-border: #143d8c;

  /* Primary Blue Accents */
  --blue-primary: #0052cc;
  --blue-bright: #0066ff;
  --blue-cyan: #0284c7;
  --blue-glow: rgba(0, 82, 204, 0.15);
  --blue-gradient: linear-gradient(135deg, #0052cc 0%, #0284c7 100%);
  --blue-gradient-subtle: linear-gradient(135deg, rgba(0, 82, 204, 0.08) 0%, rgba(2, 132, 199, 0.04) 100%);
  --blue-btn-gradient: linear-gradient(135deg, #0052cc 0%, #0284c7 100%);
  --blue-bar-gradient: linear-gradient(90deg, #09204f 0%, #0d2f70 60%, #103b8c 100%);

  /* Status Colors */
  --live-red: #dc2626;
  --live-red-glow: rgba(220, 38, 38, 0.3);
  --success-green: #059669;
  --success-glow: rgba(5, 150, 105, 0.2);
  --warning-yellow: #d97706;

  /* Borders */
  --border-subtle: #e2e8f0;
  --border-glow: rgba(0, 82, 204, 0.25);
  --border-solid: #cbd5e1;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-cyan: #0052cc;
  --text-bright-cyan: #0284c7;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-neon: 0 4px 14px rgba(0, 82, 204, 0.15);
  --shadow-live: 0 0 10px rgba(220, 38, 38, 0.3);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* Footer */
  --footer-bg: #071536;
  --footer-border: #142a5c;

  /* Mobile Bottom Nav */
  --bottom-nav-bg: #ffffff;
  --bottom-nav-border: #e2e8f0;
  --bottom-nav-text: #64748b;
  --bottom-nav-active: #0052cc;
}

[data-theme="dark"] {
  /* Colors */
  --bg-dark: #040814;
  --bg-deep: #060d20;
  --bg-card: rgba(11, 22, 48, 0.85);
  --bg-card-hover: rgba(16, 32, 70, 0.95);
  --bg-card-solid: #0b1736;
  --bg-surface: #0f2048;
  --bg-inner: rgba(6, 13, 32, 0.7);

  /* Header */
  --header-bg: rgba(4, 8, 20, 0.94);
  --header-border: rgba(56, 189, 248, 0.18);

  /* Primary Blue Accents */
  --blue-primary: #1e60ff;
  --blue-bright: #00a6ff;
  --blue-cyan: #00d2ff;
  --blue-glow: rgba(0, 166, 255, 0.4);
  --blue-gradient: linear-gradient(135deg, #1e60ff 0%, #00b4d8 100%);
  --blue-gradient-subtle: linear-gradient(135deg, rgba(30, 96, 255, 0.15) 0%, rgba(0, 180, 216, 0.08) 100%);
  --blue-btn-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --blue-bar-gradient: linear-gradient(90deg, #071536 0%, #0d2764 100%);

  /* Status Colors */
  --live-red: #ff2b4f;
  --live-red-glow: rgba(255, 43, 79, 0.5);
  --success-green: #10b981;
  --success-glow: rgba(16, 185, 129, 0.35);
  --warning-yellow: #f59e0b;

  /* Borders */
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-glow: rgba(0, 166, 255, 0.35);
  --border-solid: #162854;

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #38bdf8;
  --text-bright-cyan: #67e8f9;

  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 25px rgba(0, 166, 255, 0.25);
  --shadow-live: 0 0 15px rgba(255, 43, 79, 0.4);

  /* Footer */
  --footer-bg: #030611;
  --footer-border: rgba(56, 189, 248, 0.15);

  /* Mobile Bottom Nav */
  --bottom-nav-bg: rgba(6, 13, 30, 0.96);
  --bottom-nav-border: rgba(56, 189, 248, 0.18);
  --bottom-nav-text: #94a3b8;
  --bottom-nav-active: #00d2ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Prompt', 'Kanit', 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] body {
  background-color: #040814;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(30, 96, 255, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(0, 210, 255, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(15, 32, 72, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(30, 96, 255, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

:root:not([data-theme="dark"]) body,
[data-theme="light"] body {
  background-color: #f1f5f9;
  background-image: linear-gradient(180deg, #e8f0fe 0%, #f1f5f9 260px, #f8fafc 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ==========================================================================
   Utility Classes & Components
   ========================================================================== */

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-live {
  background: linear-gradient(135deg, #ff1e42 0%, #dc2626 100%);
  color: #fff;
  box-shadow: var(--shadow-live);
  animation: pulse-live 2s infinite;
}

.badge-live .pulse-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.2s infinite;
}

.badge-ft {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 11px;
  padding: 2px 8px;
}

.badge-league {
  background: rgba(30, 96, 255, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-gradient);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 166, 255, 0.35);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 166, 255, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--blue-bright);
  color: #fff;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glow);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 8, 20, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

/* Brand Logo (Enlarged) */
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.95;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 166, 255, 0.5));
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-text-fallback {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-text-fallback span {
  color: var(--blue-bright);
}

/* Nav Menu (Single Line, Elegant Modern High-Tech Style) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  opacity: 0.8;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link:hover svg {
  opacity: 1;
  stroke: #fff;
}

/* Modern High-Tech Active State (Sleek Glass Neon Glow) */
.nav-link.active {
  background: rgba(0, 166, 255, 0.12);
  color: #00e5ff;
  font-weight: 600;
  border: 1px solid rgba(0, 166, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 166, 255, 0.2), inset 0 0 10px rgba(0, 166, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.nav-link.active svg {
  stroke: #00e5ff;
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.7));
}

.nav-live-dot {
  width: 6px;
  height: 6px;
  background: #ff2b4f;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff2b4f;
  animation: blink 1.2s infinite;
  display: inline-block;
  margin-left: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-search {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-search:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  border-color: var(--blue-bright);
}

.btn-login {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(15, 32, 72, 0.6);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-login:hover {
  background: rgba(30, 96, 255, 0.2);
  border-color: var(--blue-bright);
  color: #fff;
}

.btn-register {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--blue-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 166, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-normal);
}

.btn-register:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 166, 255, 0.45);
}

/* Mobile Hamburger */
.mobile-menu-btn {
  display: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  padding: 5px;
}

/* ==========================================================================
   Page Views Switcher Container
   ========================================================================== */

.page-view {
  display: none;
  padding: 24px 0 60px 0;
  animation: fadeIn 0.3s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   VIEW 1: หน้าแรก (Home View)
   ========================================================================== */

/* Hero Section */
.hero-section {
  margin-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1.05fr;
  gap: 20px;
  align-items: stretch;
}

/* Hero Poster Wrapper with Interactive Watch Button */
.hero-poster-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 166, 255, 0.25);
  background: #040918;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-poster-wrapper:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 166, 255, 0.4);
}

.hero-poster-picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-btn-overlay {
  position: absolute;
  top: 50.8%;
  left: 3.5%;
  width: 53.5%;
  z-index: 10;
  cursor: pointer;
  display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  animation: neon-flash-pulse 1.8s infinite ease-in-out;
}

.hero-btn-overlay img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 166, 255, 0.7));
  transition: filter 0.25s ease;
}

.hero-btn-overlay:hover {
  transform: scale(1.08) translateY(-3px) !important;
  filter: drop-shadow(0 0 35px rgba(0, 229, 255, 1)) drop-shadow(0 0 60px rgba(0, 166, 255, 1)) brightness(1.35) !important;
  animation-play-state: paused;
}

.hero-btn-overlay:active {
  transform: scale(0.97) translateY(0) !important;
}

/* Neon Flashing & Pulsing Animation (เอฟเฟกต์กะพริบและขยายชีพจรนีออน) */
@keyframes neon-flash-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(0, 166, 255, 0.6)) brightness(1);
  }
  25% {
    transform: scale(1.04);
    filter: drop-shadow(0 0 28px rgba(0, 210, 255, 0.95)) drop-shadow(0 0 45px rgba(30, 96, 255, 0.85)) brightness(1.24);
  }
  40% {
    transform: scale(1.01);
    filter: drop-shadow(0 0 14px rgba(0, 166, 255, 0.7)) brightness(1.06);
  }
  60% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 36px rgba(0, 229, 255, 1)) drop-shadow(0 0 55px rgba(0, 166, 255, 0.95)) brightness(1.32);
  }
  80% {
    transform: scale(1.02);
    filter: drop-shadow(0 0 18px rgba(0, 166, 255, 0.75)) brightness(1.1);
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(0, 166, 255, 0.6)) brightness(1);
  }
}

/* Left Hero: Brand & Slogan */
.hero-brand-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(11, 23, 54, 0.95) 0%, rgba(6, 14, 34, 0.98) 100%);
}

.hero-brand-card::after {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 166, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hero-main-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 80%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 166, 255, 0.3));
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #e2e8f0;
}

.bullet-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hero-cta-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--blue-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 166, 255, 0.4);
  transition: var(--transition-normal);
  margin-bottom: 14px;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 166, 255, 0.6);
  filter: brightness(1.1);
}

.hero-api-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: #a7f3d0;
}

/* Player Cutout Graphic Overlay (Mock Visual) */
.hero-players-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -15px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.player-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--blue-bright);
  object-fit: cover;
  background: #0f2048;
  margin: 0 -6px;
  box-shadow: 0 0 10px rgba(0, 166, 255, 0.3);
}

/* Center Hero: Featured Match Box (Redesigned Ultra-Premium) */
.hero-featured-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(165deg, rgba(16, 32, 76, 0.95) 0%, rgba(6, 13, 34, 0.98) 100%);
  border: 1px solid rgba(0, 166, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 166, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-featured-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.featured-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.badge-live-glass {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 43, 79, 0.16);
  border: 1px solid rgba(255, 43, 79, 0.45);
  color: #ff4757;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 14px rgba(255, 43, 79, 0.3);
}

.badge-live-glass .live-dot-red {
  width: 8px;
  height: 8px;
  background: #ff2b4f;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff2b4f;
  animation: blink 1.2s infinite;
}

.badge-league-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 96, 255, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.featured-stadium-arena {
  position: relative;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  background: radial-gradient(ellipse at 50% 35%, rgba(30, 96, 255, 0.32) 0%, rgba(4, 9, 28, 0.96) 80%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: inset 0 0 40px rgba(0, 166, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 14px;
  overflow: hidden;
}

.featured-stadium-arena::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?q=80&w=800&auto=format&fit=crop') center/cover;
  opacity: 0.2;
  mix-blend-mode: overlay;
}

.arena-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.arena-team-badge {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.75));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.arena-team-badge:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 20px rgba(0, 166, 255, 0.6)) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.8));
}

.arena-team-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Center Score & Action */
.arena-center-action {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.arena-score-board {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 166, 255, 0.35);
}

.score-digit {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
}

.score-colon {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-cyan);
  animation: blink 1.2s infinite;
}

.match-live-clock {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.play-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 25px rgba(0, 166, 255, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

.play-circle-btn:hover {
  transform: scale(1.14);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.95);
}

.featured-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.featured-venue-info {
  display: flex;
  flex-direction: column;
}

.featured-match-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.featured-match-venue {
  font-size: 11.5px;
  color: var(--text-muted);
}

.featured-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff1e42 0%, #dc2626 100%);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(255, 30, 66, 0.5);
  animation: pulse-live 2s infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.featured-live-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.15);
  box-shadow: 0 6px 24px rgba(255, 30, 66, 0.75);
}

/* Mini Carousel below featured */
.mini-live-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-match-card {
  background: rgba(6, 13, 32, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mini-match-card:hover {
  border-color: var(--blue-bright);
  background: rgba(30, 96, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 166, 255, 0.3);
}

.mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  padding: 0 4px;
}

.mini-card-score {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-bright-cyan);
  font-family: 'Inter', sans-serif;
}

.mini-teams-text {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Right Hero: Live Matches List (Redesigned Sports Broadcast Widget) */
.hero-live-column {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(165deg, rgba(14, 28, 68, 0.95) 0%, rgba(6, 13, 34, 0.98) 100%);
  border: 1px solid rgba(0, 166, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 166, 255, 0.15);
}

.live-matches-stream-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-match-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 13, 32, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.live-match-row-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.live-match-row-item:hover {
  background: rgba(30, 96, 255, 0.2);
  border-color: var(--blue-bright);
  transform: translateX(3px);
  box-shadow: 0 4px 18px rgba(0, 166, 255, 0.25);
}

.live-match-row-item:hover::before {
  background: var(--blue-bright);
}

.live-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.live-team-badges-pair {
  display: flex;
  align-items: center;
  gap: -6px;
}

.live-team-badge-sm {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.live-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-row-teams {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.live-row-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-minute-tag {
  color: #10b981;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.live-row-score-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-row-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-bright-cyan);
  background: rgba(0, 0, 0, 0.45);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 1.5px;
  font-family: 'Inter', sans-serif;
}

.live-row-watch-hover {
  display: none;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--blue-gradient);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-match-row-item:hover .live-row-watch-hover {
  display: inline-block;
}

/* ==========================================================================
   Main 3-Column Grid (Below Hero)
   ========================================================================== */

.home-main-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

/* Left Column: Popular Leagues */
.popular-leagues-card {
  padding: 20px;
}

.league-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.league-list-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
  transition: var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
}

.league-list-item a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
  border-left: 3px solid var(--blue-bright);
}

.league-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-icon-svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.device-promo-card {
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(30, 96, 255, 0.2) 0%, rgba(6, 13, 32, 0.8) 100%);
  border: 1px solid rgba(0, 166, 255, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
}

.device-promo-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.device-promo-sub {
  font-size: 12px;
  color: var(--text-cyan);
  margin-bottom: 14px;
}

.device-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #cbd5e1;
  font-size: 11px;
}

.device-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.device-icon-box svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue-cyan);
}

/* Center Column: Fixtures (ตารางบอล) */
.fixtures-card {
  padding: 20px;
}

.tab-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-pill {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.tab-pill.active {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 166, 255, 0.3);
}

.fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.fixture-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(6, 13, 32, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.fixture-item:hover {
  border-color: var(--blue-bright);
  background: rgba(15, 32, 72, 0.5);
}

.fixture-time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-cyan);
  width: 55px;
  font-family: 'Inter', sans-serif;
}

.fixture-league {
  font-size: 11.5px;
  color: var(--text-muted);
  width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fixture-teams-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.fixture-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.fixture-vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.btn-bell-notify {
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px;
  transition: var(--transition-fast);
}

.btn-bell-notify:hover {
  color: var(--warning-yellow);
}

/* Right Column: Latest Results (ผลการแข่งขัน) */
.results-card {
  padding: 20px;
}

.results-grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.result-card-box {
  background: rgba(6, 13, 32, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.result-card-box:hover {
  border-color: var(--blue-bright);
  background: rgba(15, 32, 72, 0.6);
}

.result-league-tag {
  font-size: 10.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.result-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.result-team-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.result-score-digit {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-bright-cyan);
  font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Bottom Section: Football News (ข่าวสารฟุตบอล)
   ========================================================================== */

.news-section-card {
  padding: 24px;
  margin-bottom: 30px;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.news-card-item {
  background: rgba(6, 13, 32, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  cursor: pointer;
}

.news-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--blue-bright);
  box-shadow: 0 8px 24px rgba(0, 166, 255, 0.2);
}

.news-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-item:hover .news-thumb-img {
  transform: scale(1.06);
}

.news-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 96, 255, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.news-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.news-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

/* ==========================================================================
   VIEW 2: หน้าดูบอลสด (Live Player View)
   ========================================================================== */

.live-player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 24px;
}

.player-main-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02040a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 166, 255, 0.2);
}

.video-poster-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.player-overlay-top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.player-live-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.player-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.player-btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-icon-btn {
  background: transparent;
  color: #fff;
  font-size: 18px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.player-icon-btn:hover {
  opacity: 1;
  color: var(--blue-cyan);
}

.player-scrubber {
  flex: 1;
  margin: 0 18px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.scrubber-fill {
  width: 75%;
  height: 100%;
  background: var(--blue-bright);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--blue-bright);
}

/* Side Match Details & Channel Switcher */
.player-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-details-panel {
  padding: 20px;
  text-align: center;
}

.match-panel-league {
  font-size: 12px;
  color: var(--text-cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.match-panel-teams {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 14px;
}

.panel-team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.panel-team-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.panel-team-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.panel-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-score-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-bright-cyan);
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
}

.panel-match-time {
  font-size: 11.5px;
  color: #ff4757;
  font-weight: 700;
}

/* Channel Switcher Buttons */
.channels-switcher-box {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 13, 32, 0.7);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.channel-btn:hover {
  background: rgba(30, 96, 255, 0.2);
  border-color: var(--blue-bright);
}

.channel-btn.active {
  background: var(--blue-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 166, 255, 0.35);
}

/* Ongoing Live Matches Carousel (Image 2 style) */
.live-stream-carousel-section {
  margin-top: 10px;
}

.stream-carousel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.stream-carousel-card {
  background: rgba(11, 23, 54, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.stream-carousel-card:hover,
.stream-carousel-card.active {
  border-color: var(--blue-bright);
  background: rgba(30, 96, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 166, 255, 0.25);
}

/* ==========================================================================
   VIEW 3: หน้าตารางบอล (Schedule View)
   ========================================================================== */

.page-header-banner {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title-group h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title-group p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.date-slider-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 23, 54, 0.7);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.date-pill-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  transition: var(--transition-fast);
}

.date-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.date-pill-btn.active {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 166, 255, 0.35);
}

.league-filter-dropdown {
  background: rgba(11, 23, 54, 0.85);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* Schedule League Groups */
.schedule-league-group {
  margin-bottom: 24px;
}

.league-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(15, 32, 72, 0.75);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
}

.league-group-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.schedule-table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  align-items: center;
  padding: 12px 18px;
  background: rgba(6, 13, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background: rgba(30, 96, 255, 0.12);
}

.schedule-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-watch-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 43, 79, 0.15);
  border: 1px solid rgba(255, 43, 79, 0.4);
  color: #ff4757;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-watch-live:hover {
  background: #ff2b4f;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 43, 79, 0.5);
}

/* ==========================================================================
   VIEW 4: หน้าผลการแข่งขัน (Results View)
   ========================================================================== */

.results-table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.result-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  align-items: center;
  padding: 12px 18px;
  background: rgba(6, 13, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.result-row:hover {
  background: rgba(30, 96, 255, 0.12);
}

.result-matchup-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.team-item-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.team-item-side.home {
  justify-content: flex-end;
  text-align: right;
}

.team-item-side.away {
  justify-content: flex-start;
  text-align: left;
}

.score-display-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-num {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.btn-stats-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-stats-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue-cyan);
  border-color: var(--blue-bright);
}

/* ==========================================================================
   VIEW 5: หน้าข่าวสารฟุตบอล (News View)
   ========================================================================== */

.news-featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.news-main-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.news-main-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-main-hero-card:hover img {
  transform: scale(1.04);
}

.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 8, 20, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.news-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-side-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(11, 23, 54, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.news-side-item:hover {
  background: rgba(30, 96, 255, 0.15);
  border-color: var(--blue-bright);
}

.news-side-thumb {
  width: 90px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.news-side-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-side-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Filter Bar */
.news-categories-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(11, 23, 54, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.category-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.category-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.category-pill.active {
  background: var(--blue-gradient);
  color: #fff;
}

/* ==========================================================================
   VIEW: หน้าตารางคะแนน (League Standings View - 365scores/FotMob Style)
   ========================================================================== */

.standings-league-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.standings-league-tabs::-webkit-scrollbar {
  height: 4px;
}

.standings-league-tabs::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 2px;
}

.standings-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(11, 23, 54, 0.7);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.standings-tab-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.standings-tab-btn:hover {
  background: rgba(30, 96, 255, 0.2);
  border-color: var(--blue-bright);
  color: #fff;
}

.standings-tab-btn.active {
  background: var(--blue-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 166, 255, 0.35);
}

.standings-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.standings-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
}

.standings-table thead th {
  background: rgba(15, 32, 72, 0.85);
  color: #94a3b8;
  font-weight: 700;
  font-size: 12px;
  padding: 12px 10px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.standings-table thead th:nth-child(2) {
  text-align: left;
  padding-left: 14px;
}

.standings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.standings-table tbody tr:hover {
  background: rgba(30, 96, 255, 0.12);
}

.standings-table tbody td {
  padding: 11px 10px;
  color: #e2e8f0;
  font-family: 'Inter', 'Kanit', sans-serif;
}

/* Position Rank Column */
.standings-table td.col-rank {
  font-weight: 700;
  position: relative;
  width: 44px;
  font-size: 13px;
}

.rank-ucl::before,
.rank-uel::before,
.rank-uecl::before,
.rank-rel::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 3.5px;
  border-radius: 2px;
}

.rank-ucl::before {
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
}

.rank-uel::before {
  background: #f97316;
  box-shadow: 0 0 8px #f97316;
}

.rank-uecl::before {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.rank-rel::before {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* Team Column */
.standings-table td.col-team {
  text-align: left;
  padding-left: 14px;
}

.standings-team-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.standings-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.standings-team-name {
  font-weight: 600;
  color: #fff;
  font-family: 'Kanit', 'Prompt', sans-serif;
  font-size: 13.5px;
}

/* Points Highlight Column */
.standings-table td.col-pts {
  font-weight: 800;
  color: var(--text-bright-cyan);
  background: rgba(0, 166, 255, 0.08);
  font-size: 14px;
}

/* Goal Difference Column */
.col-diff-pos {
  color: #10b981;
  font-weight: 600;
}

.col-diff-neg {
  color: #f87171;
  font-weight: 600;
}

/* Form Pills (W, D, L) */
.standings-form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.form-pill {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.form-w {
  background: #10b981;
}

.form-d {
  background: #64748b;
}

.form-l {
  background: #ef4444;
}

/* Zone Legend */
.standings-legend-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-bullet {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Responsive Standings Table */
@media (max-width: 640px) {
  .standings-card {
    padding: 14px 8px;
  }
  .standings-table thead th,
  .standings-table tbody td {
    padding: 9px 6px;
    font-size: 12px;
  }
  .standings-team-name {
    font-size: 12px;
  }
  .standings-table thead th:nth-child(7),
  .standings-table tbody td:nth-child(7),
  .standings-table thead th:nth-child(8),
  .standings-table tbody td:nth-child(8) {
    display: none; /* Hide Goals For / Against on small mobile to fit */
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: #020612;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding: 40px 0 24px 0;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--blue-cyan);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: #0b1736;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 166, 255, 0.2);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  color: #94a3b8;
  font-size: 20px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Match Stats Modal specifics */
.stats-modal-box {
  max-width: 600px;
}

.stats-bar-group {
  margin: 14px 0;
}

.stats-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
  font-weight: 600;
}

.stats-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  display: flex;
  overflow: hidden;
}

.stats-progress-home {
  background: var(--blue-bright);
}

.stats-progress-away {
  background: #ff4757;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(255, 43, 79, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 43, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 43, 79, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */

/* Mobile Bottom Navigation Bar (แถบเมนูด้านล่างสำหรับมือถือ) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 60px;
  background: rgba(3, 7, 20, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.85);
  z-index: 9999;
  padding: 0 2px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  width: 20%;
  max-width: 20%;
  box-sizing: border-box;
  padding: 4px 1px;
  height: 100%;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item span {
  font-size: 9.5px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
  line-height: 1.1;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  opacity: 0.85;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.bottom-nav-item svg {
  stroke: currentColor;
  opacity: 0.85;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--blue-cyan);
}

.bottom-nav-item.active svg {
  stroke: var(--blue-cyan);
  opacity: 1;
  transform: translateY(-2px);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 28px;
  height: 2.5px;
  background: var(--blue-gradient);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 10px var(--blue-bright);
}

.bottom-nav-live-indicator {
  position: absolute;
  top: 7px;
  right: calc(50% - 13px);
  width: 6px;
  height: 6px;
  background: #ff2b4f;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff2b4f;
  animation: blink 1.2s infinite;
}

@media (max-width: 860px) {
  .mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  body {
    padding-bottom: 74px; /* avoid content getting hidden by bottom bar */
  }
}
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-overlay:not(.active) .mobile-drawer-content {
  display: none;
}

.mobile-drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #071026;
  border-left: 1px solid var(--border-glow);
  padding: 22px 18px;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
}

.mobile-drawer-overlay.active .mobile-drawer-content {
  transform: translateX(0);
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-live-column {
    grid-column: span 2;
  }
  .home-main-grid {
    grid-template-columns: 1fr 1fr;
  }
  .popular-leagues-card {
    grid-column: span 2;
  }
  .news-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(30, 96, 255, 0.2);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-poster-wrapper {
    max-height: 185px;
    width: 100%;
    aspect-ratio: 918 / 430;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-md);
  }
  .hero-btn-overlay {
    display: none !important;
  }
  .hero-live-column {
    grid-column: span 1;
  }
  .home-main-grid {
    grid-template-columns: 1fr;
  }
  .popular-leagues-card {
    grid-column: span 1;
  }
  .live-player-layout {
    grid-template-columns: 1fr;
  }
  .stream-carousel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-featured-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Specific Mobile Optimization (Mobile Phones < 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }
  .header-inner {
    height: 64px;
  }
  .brand-logo-img {
    height: 38px;
  }
  .btn-login,
  .btn-register {
    display: none; /* Accessible inside mobile drawer to avoid header crowding */
  }
  .header-actions {
    gap: 8px;
  }
  .btn-search {
    width: 36px;
    height: 36px;
  }

  /* Hero Banner on Mobile (Compact & Sleek) */
  .hero-section {
    margin-bottom: 16px;
  }
  .hero-grid {
    gap: 14px;
  }
  .hero-poster-wrapper {
    max-height: 160px;
    width: 100%;
    aspect-ratio: 918 / 430;
    border-radius: 14px;
    border: 1px solid rgba(0, 166, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 166, 255, 0.25);
    cursor: pointer;
  }
  .hero-btn-overlay {
    display: none !important;
  }

  /* Featured Live Match Card on Mobile */
  .hero-featured-card {
    padding: 16px 12px;
  }
  .featured-match-header {
    flex-wrap: wrap;
    gap: 6px;
  }
  .badge-live-glass {
    font-size: 10px;
    padding: 3px 8px;
  }
  .badge-league-glass {
    font-size: 10px;
    padding: 3px 8px;
  }
  .featured-stadium-arena {
    padding: 14px 6px;
  }
  .arena-team-badge {
    width: 52px;
    height: 52px;
  }
  .arena-team-name {
    font-size: 12px;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .arena-score-board {
    padding: 2px 10px;
  }
  .score-digit {
    font-size: 20px;
  }
  .score-colon {
    font-size: 18px;
  }
  .match-live-clock {
    font-size: 9.5px;
    padding: 2px 6px;
  }
  .play-circle-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .featured-bottom-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }
  .featured-venue-info {
    text-align: center;
  }
  .featured-live-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Mini Carousel on Mobile */
  .mini-live-carousel {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .mini-match-card {
    padding: 6px 4px;
  }
  .mini-teams-text {
    font-size: 9.5px;
  }
  .mini-card-head {
    font-size: 8.5px;
    padding: 0 2px;
  }
  .mini-card-score {
    font-size: 11px;
  }

  /* Live Column on Mobile */
  .hero-live-column {
    padding: 16px 12px;
  }
  .live-match-row-item {
    padding: 8px 10px;
  }
  .live-team-badge-sm {
    width: 22px;
    height: 22px;
  }
  .live-row-teams {
    font-size: 12px;
  }
  .live-row-score {
    font-size: 13.5px;
    padding: 2px 6px;
  }
  .live-row-watch-hover {
    display: none !important;
  }

  /* 3-Column Grid on Mobile & Complete Overflow Prevention */
  .home-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .home-main-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .popular-leagues-col,
  .fixtures-col,
  .results-col,
  .news-section-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .fixtures-card,
  .results-card,
  .popular-leagues-card {
    padding: 14px 10px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mini Carousel under Featured Match */
  .mini-live-carousel {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
    scrollbar-width: none;
    padding-bottom: 2px !important;
    max-width: 100% !important;
  }
  .mini-live-carousel::-webkit-scrollbar {
    display: none;
  }
  .mini-match-card {
    flex: 0 0 115px !important;
    min-width: 115px !important;
    padding: 8px 6px !important;
    box-sizing: border-box !important;
  }

  /* Fixture Tabs & Items */
  .tab-pills-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 5px !important;
    scrollbar-width: none;
    padding-bottom: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .tab-pills-row::-webkit-scrollbar {
    display: none;
  }
  .tab-pill {
    flex-shrink: 0 !important;
    padding: 4px 10px !important;
    font-size: 11px !important;
  }
  .fixture-item {
    padding: 8px 8px !important;
    min-width: 0 !important;
  }
  .fixture-league {
    display: none !important;
  }
  .fixture-teams-match {
    gap: 4px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }
  .fixture-team {
    min-width: 0 !important;
    flex: 1 !important;
  }
  .fixture-team-logo {
    width: 18px !important;
    height: 18px !important;
  }
  .fixture-team span {
    font-size: 11px !important;
    max-width: 68px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Results Grid & Device Promo */
  .results-grid-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .result-card-box {
    padding: 12px 10px !important;
    min-width: 0 !important;
  }
  .result-scoreboard {
    min-width: 0 !important;
    width: 100% !important;
  }
  .team-item-side {
    min-width: 0 !important;
    flex: 1 !important;
  }
  .team-item-side span {
    font-size: 11px !important;
    max-width: 68px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .device-promo-card {
    padding: 14px 10px !important;
    margin-top: 14px !important;
  }
  .device-promo-title {
    font-size: 14px !important;
  }
  .device-promo-sub {
    font-size: 11px !important;
    margin-bottom: 10px !important;
  }
  .device-icons-row {
    gap: 12px !important;
    font-size: 10px !important;
  }

  .news-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* ==========================================================================
     REDESIGNED MOBILE FOOTER (สไตล์โมเดิร์น ไม่ดันหน้ายาว ไม่บังเมนูล่าง)
     ========================================================================== */
  .site-footer {
    padding: 24px 0 16px 0 !important;
    background: #020510 !important;
    border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .footer-brand-col {
    grid-column: span 2 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .footer-brand-link {
    justify-content: center !important;
    margin-bottom: 6px !important;
  }
  .footer-live-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255, 43, 79, 0.15) !important;
    border: 1px solid rgba(255, 43, 79, 0.4) !important;
    color: #ff4757 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: var(--radius-full) !important;
    margin-bottom: 8px !important;
  }
  .footer-brand-desc {
    max-width: 100% !important;
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
    text-align: center !important;
    padding: 0 4px !important;
  }
  .footer-col h4 {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
  }
  .footer-links {
    gap: 5px !important;
  }
  .footer-links a {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
    padding: 2px 0 !important;
    display: block !important;
  }
  .footer-info-col {
    grid-column: span 2 !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .footer-info-col h4 {
    display: none !important;
  }
  .footer-info-col ul.footer-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .footer-info-col ul.footer-links li a {
    font-size: 11px !important;
    color: #7dd3fc !important;
    background: rgba(30, 96, 255, 0.12) !important;
    padding: 4px 10px !important;
    border-radius: var(--radius-full) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 4px !important;
    font-size: 10.5px !important;
    padding-top: 12px !important;
    padding-bottom: 24px !important;
  }
}


/* ==========================================================================
   THEME TOGGLE BUTTON & LIGHT MODE (WHITE + ROYAL BLUE BAR) STYLING
   ========================================================================== */

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  display: block;
}

/* Light theme: show Moon (to switch to dark), hide Sun */
:root:not([data-theme="dark"]) .theme-icon-light,
[data-theme="light"] .theme-icon-light {
  display: none !important;
}

:root:not([data-theme="dark"]) .theme-icon-dark,
[data-theme="light"] .theme-icon-dark {
  display: inline-flex !important;
}

/* Dark theme: show Sun (to switch to light), hide Moon */
[data-theme="dark"] .theme-icon-light {
  display: inline-flex !important;
}

[data-theme="dark"] .theme-icon-dark {
  display: none !important;
}

/* Mobile Theme Row */
.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin: 10px 0 14px 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
}

[data-theme="light"] .mobile-theme-row {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

.mobile-theme-toggle-btn {
  background: #0052cc !important;
  color: #ffffff !important;
  border-color: #0052cc !important;
  padding: 6px 12px;
}

/* Pulse indicator dot (replaces emoji 🔴 and ⚡) */
.pulse-indicator-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-dot-anim 1.5s infinite;
  vertical-align: middle;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   LIGHT MODE: WHITE THEME WITH ROYAL BLUE BARS & CARDS
   ========================================================================== */

/* Header Royal Blue Bar */
:root:not([data-theme="dark"]) .site-header,
[data-theme="light"] .site-header {
  background: linear-gradient(135deg, #09204f 0%, #0d2f70 50%, #103b8c 100%) !important;
  border-bottom: 2px solid #0052cc !important;
  box-shadow: 0 4px 20px rgba(9, 32, 79, 0.18) !important;
}

/* Section Header: Signature Blue Accent Bar */
:root:not([data-theme="dark"]) .section-header h2,
[data-theme="light"] .section-header h2 {
  color: #09204f !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

:root:not([data-theme="dark"]) .section-header h2::before,
[data-theme="light"] .section-header h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, #0052cc 0%, #0284c7 100%);
  border-radius: 3px;
  margin-right: 4px;
}

:root:not([data-theme="dark"]) .section-title-svg,
[data-theme="light"] .section-title-svg {
  stroke: #0052cc !important;
}

/* Cards: Pure Crisp White with Subtle Borders */
:root:not([data-theme="dark"]) .featured-match-card,
[data-theme="light"] .featured-match-card,
:root:not([data-theme="dark"]) .popular-leagues-col,
[data-theme="light"] .popular-leagues-col,
:root:not([data-theme="dark"]) .fixtures-col,
[data-theme="light"] .fixtures-col,
:root:not([data-theme="dark"]) .results-col,
[data-theme="light"] .results-col,
:root:not([data-theme="dark"]) .news-card,
[data-theme="light"] .news-card,
:root:not([data-theme="dark"]) .league-block,
[data-theme="light"] .league-block,
:root:not([data-theme="dark"]) .standings-wrapper,
[data-theme="light"] .standings-wrapper,
:root:not([data-theme="dark"]) .live-stream-details,
[data-theme="light"] .live-stream-details,
:root:not([data-theme="dark"]) .match-stat-box,
[data-theme="light"] .match-stat-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .news-card:hover,
[data-theme="light"] .news-card:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 10px 25px -5px rgba(0, 82, 204, 0.08) !important;
}

/* Column Header: Royal Blue Bar */
:root:not([data-theme="dark"]) .col-header,
[data-theme="light"] .col-header {
  background: linear-gradient(90deg, #09204f 0%, #0d2f70 100%) !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 3px 10px rgba(9, 32, 79, 0.15) !important;
}

:root:not([data-theme="dark"]) .col-header h3,
[data-theme="light"] .col-header h3 {
  color: #ffffff !important;
  font-weight: 600 !important;
}

:root:not([data-theme="dark"]) .col-header svg,
[data-theme="light"] .col-header svg {
  stroke: #ffffff !important;
}

/* League Header Bar in Schedule & Results: Royal Blue Bar */
:root:not([data-theme="dark"]) .league-header-bar,
[data-theme="light"] .league-header-bar {
  background: linear-gradient(90deg, #09204f 0%, #0d2f70 100%) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(9, 32, 79, 0.15) !important;
}

:root:not([data-theme="dark"]) .league-header-bar span,
[data-theme="light"] .league-header-bar span {
  color: #ffffff !important;
}

/* Standings Table: Deep Blue Header Bar */
:root:not([data-theme="dark"]) .standings-table thead th,
[data-theme="light"] .standings-table thead th {
  background: linear-gradient(90deg, #09204f 0%, #0d2f70 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 12px 14px !important;
}

:root:not([data-theme="dark"]) .standings-table tbody tr,
[data-theme="light"] .standings-table tbody tr {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .standings-table tbody tr:nth-child(even),
[data-theme="light"] .standings-table tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

:root:not([data-theme="dark"]) .standings-table tbody tr:hover,
[data-theme="light"] .standings-table tbody tr:hover {
  background: #eff6ff !important;
}

/* Match Rows & Mini Match Cards */
:root:not([data-theme="dark"]) .mini-match-card,
[data-theme="light"] .mini-match-card,
:root:not([data-theme="dark"]) .schedule-row,
[data-theme="light"] .schedule-row,
:root:not([data-theme="dark"]) .result-row,
[data-theme="light"] .result-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .mini-match-card:hover,
[data-theme="light"] .mini-match-card:hover,
:root:not([data-theme="dark"]) .schedule-row:hover,
[data-theme="light"] .schedule-row:hover,
:root:not([data-theme="dark"]) .result-row:hover,
[data-theme="light"] .result-row:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

:root:not([data-theme="dark"]) .team-name,
[data-theme="light"] .team-name,
:root:not([data-theme="dark"]) .match-team-name,
[data-theme="light"] .match-team-name {
  color: #0f172a !important;
  font-weight: 600 !important;
}

:root:not([data-theme="dark"]) .score-box,
[data-theme="light"] .score-box,
:root:not([data-theme="dark"]) .match-score,
[data-theme="light"] .match-score {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

/* Date Tabs & League Tabs */
:root:not([data-theme="dark"]) .date-tab,
[data-theme="light"] .date-tab,
:root:not([data-theme="dark"]) .league-tab,
[data-theme="light"] .league-tab,
:root:not([data-theme="dark"]) .news-cat-pill,
[data-theme="light"] .news-cat-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .date-tab.active,
[data-theme="light"] .date-tab.active,
:root:not([data-theme="dark"]) .league-tab.active,
[data-theme="light"] .league-tab.active,
:root:not([data-theme="dark"]) .news-cat-pill.active,
[data-theme="light"] .news-cat-pill.active {
  background: #0052cc !important;
  border-color: #0052cc !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 82, 204, 0.25) !important;
}

/* News titles and meta */
:root:not([data-theme="dark"]) .news-title,
[data-theme="light"] .news-title {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .news-title:hover,
[data-theme="light"] .news-title:hover {
  color: #0052cc !important;
}

:root:not([data-theme="dark"]) .news-summary,
[data-theme="light"] .news-summary {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .news-meta,
[data-theme="light"] .news-meta {
  color: #64748b !important;
}

/* Stats Modal */
:root:not([data-theme="dark"]) .modal-box,
[data-theme="light"] .modal-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

:root:not([data-theme="dark"]) .modal-header,
[data-theme="light"] .modal-header {
  background: linear-gradient(90deg, #09204f 0%, #0d2f70 100%) !important;
  color: #ffffff !important;
}

:root:not([data-theme="dark"]) .stats-progress-track,
[data-theme="light"] .stats-progress-track {
  background: #e2e8f0 !important;
}

/* Mobile Drawer in Light Mode */
:root:not([data-theme="dark"]) .mobile-drawer-content,
[data-theme="light"] .mobile-drawer-content {
  background: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .mobile-drawer-content .nav-link,
[data-theme="light"] .mobile-drawer-content .nav-link {
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

:root:not([data-theme="dark"]) .mobile-drawer-content .nav-link.active,
[data-theme="light"] .mobile-drawer-content .nav-link.active {
  background: rgba(0, 82, 204, 0.08) !important;
  color: #0052cc !important;
  font-weight: 600 !important;
}

/* Mobile Bottom Navigation in Light Mode */
:root:not([data-theme="dark"]) .mobile-bottom-nav,
[data-theme="light"] .mobile-bottom-nav {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
}

:root:not([data-theme="dark"]) .bottom-nav-item,
[data-theme="light"] .bottom-nav-item {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .bottom-nav-item.active,
[data-theme="light"] .bottom-nav-item.active {
  color: #0052cc !important;
}

:root:not([data-theme="dark"]) .bottom-nav-item.active svg,
[data-theme="light"] .bottom-nav-item.active svg {
  stroke: #0052cc !important;
  filter: drop-shadow(0 2px 6px rgba(0, 82, 204, 0.25)) !important;
}
