/* ==========================================================================
   ANFIELD TH (anfieldth.com) — Modern Architectural Editorial Design System
   Mobile-First • Zero-Emoji Vector UI • Official Crest Logo • Semantic SEO
   ========================================================================== */

:root {
  --lfc-red: #C8102E;
  --lfc-red-hover: #E01E3D;
  --lfc-red-deep: #4A0510;
  --lfc-obsidian: #0A0406;
  --lfc-surface-dark: #14080B;
  --lfc-gold: #D4AF37;
  --lfc-gold-bright: #F3E568;
  --lfc-gold-soft: rgba(212, 175, 55, 0.16);
  --lfc-teal: #00A396;
  --lfc-teal-soft: rgba(0, 163, 150, 0.18);
  --bg-page: #080305;
  --bg-card: #15090D;
  --bg-subtle: #1D0C11;
  --text-main: #FFFFFF;
  --text-secondary: #E2D9DC;
  --text-muted: #A39297;
  --border-subtle: rgba(200, 16, 46, 0.22);
  --border-strong: rgba(200, 16, 46, 0.45);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 10px 32px -4px rgba(0, 0, 0, 0.75), 0 0 14px rgba(200, 16, 46, 0.12);
  --shadow-hover: 0 18px 46px -6px rgba(200, 16, 46, 0.35), 0 0 24px rgba(200, 16, 46, 0.25);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-heading: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-num: 'Chakra Petch', monospace, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  padding-bottom: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* Vector SVG Icon Helper */
.ui-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.ui-icon.sm {
  width: 15px;
  height: 15px;
}

.ui-icon.lg {
  width: 22px;
  height: 22px;
}

/* Live Status Dot */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lfc-red);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.25);
  animation: pulseDot 2s infinite;
}

.live-dot.gold {
  background: var(--lfc-gold-bright);
  box-shadow: 0 0 0 3px rgba(243, 229, 104, 0.28);
}

.live-dot.teal {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

/* ==========================================================================
   Mobile Simulator Frame (สำหรับทดสอบจอมือถือบนเครื่องคอมพิวเตอร์)
   ========================================================================== */
body.mobile-simulator-active {
  background: radial-gradient(circle at 50% 0%, #260B12 0%, #090406 100%);
  padding: 20px 0 40px;
  min-height: 100vh;
}

body.mobile-simulator-active .simulator-banner {
  display: flex;
}

.simulator-banner {
  display: none;
  max-width: 412px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}

body.mobile-simulator-active #app-shell {
  max-width: 412px;
  margin: 0 auto;
  background: var(--bg-page);
  border: 10px solid #1E1417;
  border-radius: 36px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.7), 0 0 0 1.5px rgba(212, 175, 55, 0.6);
  overflow-x: clip;
  position: relative;
  min-height: 844px;
  padding-bottom: 0;
}

/* ==========================================================================
   Sticky Top Header (Glassmorphic Dark Obsidian + Official Logo)
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 6, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.site-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(200, 16, 46, 0.45));
  transition: transform 0.22s ease;
}

.brand-logo:hover .site-logo-img {
  transform: scale(1.06);
}

.footer-logo-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.brand-title .gold-accent {
  color: var(--lfc-gold-bright);
}

.brand-title .domain-ext {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

/* Desktop Navigation — Luxury Glass Capsule */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(22, 10, 14, 0.75);
  padding: 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1;
}

.nav-link span {
  white-space: nowrap !important;
  display: inline-block;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-link.active {
  background: linear-gradient(135deg, #C8102E 0%, #900B1E 100%);
  color: #FFFFFF;
  font-weight: 600;
  border-color: rgba(243, 229, 104, 0.45);
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.nav-link.active .ui-icon {
  stroke: var(--lfc-gold-bright);
}

/* ==========================================================================
   Navigation Dropdown Menu (Sub-sections for Heritage & More)
   ========================================================================== */
.nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-chevron {
  width: 13px !important;
  height: 13px !important;
  stroke: rgba(255, 255, 255, 0.65);
  transition: transform 0.22s ease, stroke 0.22s ease;
  margin-left: -2px;
}

.nav-dropdown-wrap:hover .dropdown-chevron,
.nav-dropdown-wrap.open .dropdown-chevron {
  transform: rotate(180deg);
  stroke: var(--lfc-gold-bright);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 320px;
  background: rgba(18, 10, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Invisible bridge hover zone */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap.open .nav-dropdown-menu,
.nav-dropdown-wrap:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.18s ease;
  border-left: 3px solid transparent;
  background: transparent;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(200, 16, 46, 0.28);
  border-left-color: var(--lfc-gold-bright);
  padding-left: 18px;
  transform: translateX(2px);
}

.dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.25;
}

.dropdown-item-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-bg-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(200, 16, 46, 0.22));
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.55);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.theme-bg-btn:hover {
  background: var(--lfc-gold);
  color: var(--lfc-obsidian);
  border-color: var(--lfc-gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.45);
}

.theme-bg-btn .ui-icon {
  stroke: var(--lfc-gold-bright);
}

.theme-bg-btn:hover .ui-icon {
  stroke: var(--lfc-obsidian);
}

.mobile-sim-btn,
#mobile-sim-toggle,
.simulator-banner,
.mobile-sim-banner {
  display: none !important;
}
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mobile-sim-btn:hover {
  background: var(--lfc-gold);
  color: var(--lfc-obsidian);
  border-color: var(--lfc-gold);
}

/* ==========================================================================
   Bottom App Navigation Bar (สำหรับมือถือ & โหมดจำลองมือถือ)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: rgba(13, 6, 8, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.32) !important;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
}

body.mobile-simulator-active .mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 392px !important;
  margin: 0 auto !important;
  border-radius: 20px 20px 0 0 !important;
  z-index: 9999 !important;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.75), 0 0 0 1.5px rgba(212, 175, 55, 0.45) !important;
}

.mob-nav-item {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: all 0.18s ease;
  position: relative;
}

.mob-nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.mob-nav-item.active {
  color: #FFFFFF;
  background: rgba(200, 16, 46, 0.26);
}

.mob-nav-item.active .ui-icon {
  stroke: var(--lfc-gold-bright);
}

@media (min-width: 960px) {
  body:not(.mobile-simulator-active) {
    padding-bottom: 0;
  }
  body:not(.mobile-simulator-active) .desktop-nav {
    display: flex;
  }
  body:not(.mobile-simulator-active) .mobile-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-sim-btn {
    display: none;
  }
}

/* ==========================================================================
   Main Container & Semantic SEO Breadcrumb
   ========================================================================== */
.main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

body.mobile-simulator-active .main-container {
  padding: 14px 12px 28px;
}

.seo-breadcrumb {
  display: none !important;
}

.seo-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.seo-breadcrumb a:hover {
  color: var(--lfc-red);
}

.seo-breadcrumb .sep {
  color: var(--border-strong);
}

.seo-breadcrumb .current {
  color: var(--lfc-red);
  font-weight: 600;
}

/* ==========================================================================
   Modern Architectural Hero Banner + Official Logo Showcase
   ========================================================================== */
.hero-banner {
  background: 
    radial-gradient(circle at 85% 25%, rgba(243, 229, 104, 0.28) 0%, transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
    linear-gradient(135deg, #D41434 0%, #A50B24 55%, #7D061A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 44px -8px rgba(200, 16, 46, 0.35), 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  background: url('/assets/logo.png') no-repeat center / contain;
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 32px rgba(212, 175, 55, 0.45));
}

@media (max-width: 768px) {
  .hero-banner::before {
    right: 50%;
    transform: translate(50%, -50%);
    width: 250px;
    height: 250px;
    opacity: 0.20;
  }
}

body.mobile-simulator-active .hero-banner::before {
  right: 50%;
  transform: translate(50%, -50%);
  width: 250px;
  height: 250px;
  opacity: 0.20;
}

.hero-top-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.hero-crest-showcase {
  display: none !important;
}

.hero-crest-img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(200, 16, 46, 0.55)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.28));
}

@media (min-width: 780px) {
  body:not(.mobile-simulator-active) .hero-crest-img {
    width: 184px;
    height: 184px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(243, 229, 104, 0.35);
  color: var(--lfc-gold-bright);
  font-family: var(--font-num);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.24;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--lfc-gold-bright);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--lfc-red);
  color: #FFFFFF;
  border: 1px solid rgba(243, 229, 104, 0.4);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--lfc-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.38);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-quick-stats {
  display: none !important;
}

.hero-stat-box {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.hero-stat-num {
  font-family: var(--font-num);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lfc-gold-bright);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  margin-top: 3px;
}

/* ==========================================================================
   Matchday Center Grid (Bento Dual Cards)
   ========================================================================== */
.match-center-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

@media (min-width: 860px) {
  body:not(.mobile-simulator-active) .match-center-grid {
    grid-template-columns: 1.06fr 0.94fr;
  }
}

.mc-card {
  background: linear-gradient(165deg, #17080C 0%, #100508 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mc-card:hover {
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: var(--shadow-hover);
}

.mc-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-card .action-link-btn {
  margin-top: 14px;
}

.mc-card.next-match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lfc-red), var(--lfc-gold));
}

.mc-card.latest-result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lfc-obsidian), var(--lfc-teal));
}

.mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mc-tag {
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mc-tag.crimson {
  background: rgba(200, 16, 46, 0.2);
  color: #FF4D6A;
  border: 1px solid rgba(200, 16, 46, 0.38);
}

.mc-tag.gold {
  background: rgba(212, 175, 55, 0.16);
  color: var(--lfc-gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.mc-tag.teal {
  background: rgba(0, 163, 150, 0.18);
  color: #2DD4BF;
  border: 1px solid rgba(0, 163, 150, 0.35);
}

.mc-tag.dark {
  background: #0A0406;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mc-versus-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 14px;
}

.mc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.team-crest-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lfc-crest-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(200, 16, 46, 0.28));
}

.mc-team-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.mc-score-pill {
  background: var(--lfc-obsidian);
  color: var(--lfc-gold-bright);
  font-family: var(--font-num);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 10px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-width: max-content !important;
}

.mc-vs-pill {
  background: var(--lfc-red);
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.countdown-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.cd-item {
  background: var(--lfc-obsidian);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cd-num {
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lfc-gold-bright);
  display: block;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
}

.cd-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
}

.mc-meta-list {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.mc-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.motm-banner {
  background: var(--bg-subtle);
  border-left: 3px solid var(--lfc-gold);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

/* ==========================================================================
   Section Headers & Filter Pills
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-accent {
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: var(--lfc-red);
  display: inline-block;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  border-color: var(--lfc-red);
  color: var(--lfc-red);
}

.pill-btn.active {
  background: var(--lfc-obsidian);
  color: #FFFFFF;
  border-color: var(--lfc-obsidian);
  box-shadow: 0 4px 12px rgba(13, 6, 8, 0.18);
}

/* Search Bar */
.search-bar-wrap {
  position: relative;
  margin-bottom: 16px;
}

.search-icon-pos {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-input:focus {
  border-color: var(--lfc-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.25);
}

/* ==========================================================================
   Cards Grid (News, Squad, Kits, Legends)
   ========================================================================== */
.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 680px) {
  body:not(.mobile-simulator-active) .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body:not(.mobile-simulator-active) .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 32px 0 12px;
}

.news-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 292px;
  max-width: 100%;
  min-height: 64px;
  padding: 16px 24px;
  border: 0;
  border-radius: 6px;
  background: #e52525;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(229, 37, 37, 0.22);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.news-load-more:hover {
  background: #cf1717;
  box-shadow: 0 8px 28px rgba(229, 37, 37, 0.35);
}

.news-load-more:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.news-load-more .ui-icon {
  width: 24px;
  height: 24px;
}

.news-pagination-count {
  margin: 0;
  color: #b6c8e2;
  font-size: 0.9rem;
  text-align: center;
}

.content-card {
  background: linear-gradient(165deg, #17080C 0%, #100508 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.content-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 16, 46, 0.55);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 10px 0 8px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tier {
  margin-top: 6px;
  font-size: 0.74rem;
  font-family: var(--font-heading);
  color: var(--lfc-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-thumb-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-subtle);
  position: relative;
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-thumb-badge {
  display: none !important;
}

.news-thumb-credit {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 10, 15, 0.78);
  color: #f1f5f9;
  font-size: 0.68rem;
  font-family: var(--font-body);
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.2;
}

.content-card:hover .news-thumb-img {
  transform: scale(1.04);
}

.news-modal-cover-wrap {
  width: 100%;
  max-height: 320px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-subtle);
}

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

.action-link-btn {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.action-link-btn:hover {
  background: var(--lfc-red);
  color: #FFFFFF;
  border-color: var(--lfc-red);
}

/* ==========================================================================
   Fixtures List
   ========================================================================== */
.fixture-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fixture-row-card {
  background: linear-gradient(165deg, #17080C 0%, #100508 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fixture-row-card:hover {
  border-color: rgba(200, 16, 46, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(200, 16, 46, 0.2);
  transform: translateY(-2px);
}

.fixture-row-card > * {
  min-width: 0;
  max-width: 100%;
}

.fixture-row-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

@media (min-width: 769px) {
  body:not(.mobile-simulator-active) .fixture-row-card {
    grid-template-columns: 210px minmax(0, 1fr) auto;
  }
}

.fixture-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fixture-matchup-col {
  min-width: 0;
  max-width: 100%;
}

.fixture-matchup .mc-score-pill {
  font-size: 1.15rem;
  padding: 4px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.fixture-matchup .mc-vs-pill {
  font-size: 0.82rem;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.fixture-scorers {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.fixture-action-col {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.fixture-team-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-team-name.home { text-align: right; }
.fixture-team-name.away { text-align: left; }
.fixture-team-name.is-lfc {
  color: var(--lfc-red);
  font-weight: 700;
}

/* ==========================================================================
   Squad Player Card
   ========================================================================== */
.player-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.player-photo-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 14px;
  background: radial-gradient(circle at center, rgba(200, 16, 46, 0.12) 0%, rgba(13, 6, 8, 0.05) 100%);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  box-shadow: var(--shadow-sm);
}

.player-photo-wrap.lg {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  border-color: rgba(200, 16, 46, 0.35);
  background: radial-gradient(circle at center, rgba(200, 16, 46, 0.18) 0%, rgba(13, 6, 8, 0.08) 100%);
}

.player-headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}

.player-headshot-img.is-fallback {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.75;
}

.player-photo-wrap.lg .player-headshot-img {
  border-radius: 16px;
}

.shirt-num-badge-small {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--lfc-obsidian);
  color: var(--lfc-gold-bright);
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.shirt-num-badge-small.lg {
  bottom: -6px;
  right: -6px;
  font-size: 0.88rem;
  padding: 3px 8px;
  border-radius: 8px;
}

.shirt-num-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--lfc-obsidian);
  color: var(--lfc-gold-bright);
  font-family: var(--font-num);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.player-gear-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
}

.gear-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.gear-chip.kit {
  border-color: rgba(200, 16, 46, 0.28);
}

.gear-chip.boots {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--text-main);
  font-weight: 500;
}

.equipment-showcase-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}

.equipment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--lfc-red);
  font-size: 0.92rem;
  flex-wrap: wrap;
  gap: 8px;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.gear-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}

.gear-icon-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.gear-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.gear-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}

.player-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 0.82rem;
}

.player-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.player-meta-value {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Short Biography Box in Squad Card & Full Player Biography View
   ========================================================================== */
.player-short-bio {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--lfc-red);
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
  margin: 10px 0;
}

.short-bio-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lfc-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.short-bio-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-profile-view,
.news-article-view {
  animation: fadeIn 0.22s ease-out;
}

.player-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.btn-back-to-squad,
.btn-back-to-news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.btn-back-to-squad:hover,
.btn-back-to-news:hover {
  background: var(--lfc-red);
  color: #FFFFFF;
  border-color: var(--lfc-red);
  transform: translateX(-3px);
}

.player-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-quick-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-quick-nav:hover {
  background: var(--bg-subtle);
  color: var(--lfc-red);
  border-color: var(--lfc-red);
}

.player-hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}

.player-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lfc-red), var(--lfc-gold));
}

.player-hero-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .player-hero-main {
    flex-direction: row;
    align-items: center;
  }
}

.player-hero-photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: radial-gradient(circle at center, rgba(200, 16, 46, 0.2) 0%, rgba(13, 6, 8, 0.08) 100%);
  border: 2.5px solid rgba(200, 16, 46, 0.4);
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
}

.player-hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 21px;
}

.player-hero-num {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: var(--lfc-obsidian);
  color: var(--lfc-gold-bright);
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.player-bio-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.player-bio-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.player-bio-paragraphs p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 14px;
}

.player-bio-paragraphs p:last-child {
  margin-bottom: 0;
}

.player-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.player-milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: 10px;
  border-left: 3px solid var(--lfc-gold);
  font-size: 0.88rem;
  line-height: 1.5;
}

.player-milestone-year {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lfc-red);
  background: rgba(200, 16, 46, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.player-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* ==========================================================================
   Squad Audit Banner & Transfer Tracker
   ========================================================================== */
.squad-audit-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--lfc-teal);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.audit-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.audit-badge {
  background: rgba(0, 178, 169, 0.12);
  color: var(--lfc-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 178, 169, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ref-links-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ref-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s ease;
}

.ref-link-pill:hover {
  border-color: var(--lfc-red);
  color: var(--lfc-red);
  background: rgba(200, 16, 46, 0.06);
}

.transfer-audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.transfer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.transfer-box.departures {
  border-top: 3px solid #DC2626;
}

.transfer-box.arrivals {
  border-top: 3px solid #10B981;
}

.transfer-box.references {
  border-top: 3px solid var(--lfc-teal);
  grid-column: 1 / -1;
}

.transfer-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.transfer-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  gap: 10px;
}

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

.transfer-status-tag {
  font-size: 0.72rem;
  font-family: var(--font-heading);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.transfer-status-tag.removed {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.transfer-status-tag.active {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.player-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 6px;
  margin: 12px 0;
  text-align: center;
}

.p-stat-val {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
}

.p-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* ==========================================================================
   Standings Table
   ========================================================================== */
.table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 0.88rem;
}

/* Standings Compact Table (100% responsive, fits without scroll on mobile) */
.standings-compact-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  margin-bottom: 20px;
}

.standings-full-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  margin-bottom: 20px;
}

.standings-table.is-compact {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.standings-table.is-compact th,
.standings-table.is-compact td {
  padding: 11px 6px;
  box-sizing: border-box;
}

.standings-table.is-compact th.col-rank,
.standings-table.is-compact td.col-rank {
  width: 36px;
  text-align: center;
  padding-left: 8px;
  padding-right: 4px;
}

.standings-table.is-compact th.col-team,
.standings-table.is-compact td.col-team {
  text-align: left;
  padding-left: 6px;
  padding-right: 6px;
  overflow: hidden;
}

.standings-table.is-compact th.col-stat,
.standings-table.is-compact td.col-stat {
  width: 44px;
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
}

.standings-table.is-compact th.col-points,
.standings-table.is-compact td.col-points {
  width: 50px;
  text-align: center;
  padding-left: 2px;
  padding-right: 8px;
}

.standings-table.is-full {
  min-width: 580px;
}

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

.standings-team-cell .table-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.standings-team-names {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.standings-team-names .team-name-main {
  font-weight: 600;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-team-names .team-name-en,
.standings-table .team-name-en {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.table-scroll-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(200, 16, 46, 0.05);
  border: 1px dashed rgba(200, 16, 46, 0.25);
  border-radius: 8px;
  box-sizing: border-box;
}

.standings-table th {
  background: var(--lfc-obsidian);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 10px;
  text-align: center;
}

.standings-table th.text-left,
.standings-table td.text-left {
  text-align: left;
}

.standings-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.standings-table tr.lfc-highlight-row {
  background: rgba(200, 16, 46, 0.07);
  font-weight: 700;
}

.standings-table tr.lfc-highlight-row td {
  border-top: 1.5px solid rgba(200, 16, 46, 0.45);
  border-bottom: 1.5px solid rgba(200, 16, 46, 0.45);
  color: var(--lfc-red);
}

/* Home Standings Widget: Zero-Gap & Full Alignment */
.standings-home-card {
  justify-content: flex-start !important;
  gap: 12px !important;
  height: 100%;
}

.standings-home-table-wrap {
  flex: 1;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.standings-home-card .standings-table {
  min-width: 100%;
  margin: 0;
}

.standings-home-card .standings-table th {
  padding: 10px 8px;
  font-size: 0.74rem;
}

.standings-home-card .standings-table td {
  padding: 8px 8px;
  font-size: 0.85rem;
}

.standings-home-card .standings-table tr:last-child td {
  border-bottom: none;
}

/* Home Leaders Widget: Zero-Gap & Full Height Equalizer */
.leaders-home-card {
  justify-content: flex-start !important;
  gap: 12px !important;
  height: 100%;
}

.leaders-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.leaders-stat-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--lfc-gold);
  border-radius: 10px;
  padding: 9px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  transition: all 0.18s ease;
}

.leaders-stat-item:hover {
  border-color: rgba(200, 16, 46, 0.4);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.form-dots {
  display: inline-flex;
  gap: 4px;
}

.form-dot {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.form-dot.W { background: #15803D; }
.form-dot.D { background: #71717A; }
.form-dot.L { background: #B91C1C; }

/* ==========================================================================
   Heritage Timeline, Trophy Wall & Kit Visuals
   ========================================================================== */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--lfc-red);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.trophy-code-badge {
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--lfc-obsidian);
  color: var(--lfc-gold-bright);
}

.kit-visual-box {
  height: 156px;
  border-radius: 12px;
  background: radial-gradient(circle, #FFFFFF 0%, #F1EFEA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.color-swatches {
  display: flex;
  gap: 5px;
  align-items: center;
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Modal Overlay
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(13, 6, 8, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

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

/* Hide mobile bottom navigation bar when modal is open to prevent overlapping */
body.modal-open .mobile-bottom-nav,
body:has(.modal-backdrop.open) .mobile-bottom-nav {
  display: none !important;
}

@media (min-width: 700px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-sheet {
  background: linear-gradient(165deg, #18090D 0%, #100508 100%);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(200, 16, 46, 0.35);
  overflow-y: auto;
  padding: 24px 20px 32px;
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(200, 16, 46, 0.2);
  position: relative;
  animation: slideUpModal 0.2s ease-out;
}

@media (min-width: 700px) {
  .modal-sheet {
    max-width: 740px;
    border-radius: 18px;
    padding: 28px;
  }
}

@keyframes slideUpModal {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: sticky;
  top: 0;
  float: right;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.modal-close-btn:hover {
  background: var(--lfc-red);
  color: #FFFFFF;
  border-color: var(--lfc-red);
}

/* ==========================================================================
   Mobile Heritage Bottom Sheet Menu (เมนูหมวดหมู่ประวัติศาสตร์ & เสื้อแข่ง)
   ========================================================================== */
.mob-heritage-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 6, 8, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mob-heritage-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mob-heritage-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(22, 10, 14, 0.98);
  border-top: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10001;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  max-height: 85vh;
  overflow-y: auto;
}

.mob-heritage-sheet.open {
  transform: translateY(0);
}

body.mobile-simulator-active .mob-heritage-sheet {
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, 105%) !important;
  width: 100% !important;
  max-width: 392px !important;
  border-radius: 20px 20px 0 0 !important;
}

body.mobile-simulator-active .mob-heritage-sheet.open {
  transform: translate(-50%, 0) !important;
}

.mob-heritage-sheet-drag {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  margin: 6px auto 12px;
}

.mob-heritage-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.mob-heritage-sheet-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mob-heritage-sheet-title-group .sheet-shield-icon {
  width: 26px;
  height: 26px;
  stroke: var(--lfc-gold-bright);
  flex-shrink: 0;
}

.mob-heritage-sheet-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.mob-heritage-sheet-sub {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1px;
}

.mob-heritage-sheet-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.mob-heritage-sheet-close:hover {
  background: rgba(200, 16, 46, 0.4);
  color: #FFFFFF;
  border-color: var(--lfc-red);
}

.mob-heritage-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
}

.mob-heritage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.mob-heritage-item:hover,
.mob-heritage-item:active {
  background: rgba(200, 16, 46, 0.18);
  border-color: rgba(200, 16, 46, 0.45);
}

.mob-heritage-item.active {
  background: rgba(200, 16, 46, 0.22);
  border: 1.5px solid var(--lfc-red);
}

.mob-heritage-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mob-heritage-item-icon .ui-icon {
  width: 18px;
  height: 18px;
  stroke: var(--lfc-gold-bright);
}

.mob-heritage-item.active .mob-heritage-item-icon {
  background: var(--lfc-red);
  border-color: var(--lfc-red);
}

.mob-heritage-item.active .mob-heritage-item-icon .ui-icon {
  stroke: #FFFFFF;
}

.mob-heritage-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mob-heritage-item-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.25;
}

.mob-heritage-item.active .mob-heritage-item-title {
  color: var(--lfc-gold-bright);
  font-weight: 700;
}

.mob-heritage-item-desc {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-heritage-item-arrow {
  stroke: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.mob-heritage-item.active .mob-heritage-item-arrow {
  stroke: var(--lfc-gold-bright);
}

/* Heritage Mobile Top Selector Bar */
.heritage-mob-selector-bar {
  display: none;
  margin-top: 10px;
  margin-bottom: 16px;
}

.heritage-mob-picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.heritage-mob-picker-btn:active {
  background: rgba(200, 16, 46, 0.15);
}

/* Light themes support for bottom sheet */
body.bg-theme-daylight .mob-heritage-sheet,
body.bg-theme-bright .mob-heritage-sheet {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1.5px solid rgba(200, 16, 46, 0.4);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
}
body.bg-theme-daylight .mob-heritage-sheet-title,
body.bg-theme-bright .mob-heritage-sheet-title {
  color: #1A0D10;
}
body.bg-theme-daylight .mob-heritage-sheet-sub,
body.bg-theme-bright .mob-heritage-sheet-sub {
  color: #6B5E62;
}
body.bg-theme-daylight .mob-heritage-item,
body.bg-theme-bright .mob-heritage-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
body.bg-theme-daylight .mob-heritage-item-title,
body.bg-theme-bright .mob-heritage-item-title {
  color: #1A0D10;
}
body.bg-theme-daylight .mob-heritage-item-desc,
body.bg-theme-bright .mob-heritage-item-desc {
  color: #6B5E62;
}

@media (min-width: 960px) {
  body:not(.mobile-simulator-active) .mob-heritage-backdrop,
  body:not(.mobile-simulator-active) .mob-heritage-sheet {
    display: none !important;
  }
}

/* Footer base is defined in Footer Grid Layout section below */

/* ==========================================================================
   Background Themes & Interactive Switcher Modal
   ========================================================================== */
body.bg-theme-daylight {
  background-color: #F6F7FA;
  background-image: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(246, 247, 250, 0.92) 480px, rgba(240, 242, 246, 0.98) 100%),
    url('/assets/bg-anfield-daylight.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  color: #120D0E;
}

body.bg-theme-bright {
  background-color: #F8F9FB;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(200, 16, 46, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 249, 251, 0.96) 500px, #EFF1F5 100%),
    url('/assets/bg-anfield-daylight.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  color: #120D0E;
}

/* Light & Bright Theme Header, Navbar, Dropdown & Navigation */
body.bg-theme-daylight .top-header,
body.bg-theme-bright .top-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #120D0E;
}

body.bg-theme-daylight .brand-title,
body.bg-theme-bright .brand-title {
  color: #120D0E;
}

body.bg-theme-daylight .brand-title .gold-accent,
body.bg-theme-bright .brand-title .gold-accent {
  color: #B8860B;
}

body.bg-theme-daylight .brand-title .domain-ext,
body.bg-theme-bright .brand-title .domain-ext {
  color: rgba(18, 13, 14, 0.55);
}

body.bg-theme-daylight .brand-subtitle,
body.bg-theme-bright .brand-subtitle {
  color: #5A4E52;
}

body.bg-theme-daylight .desktop-nav,
body.bg-theme-bright .desktop-nav {
  background: rgba(245, 244, 241, 0.94);
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.bg-theme-daylight .nav-link,
body.bg-theme-bright .nav-link {
  color: #382A2E;
}

body.bg-theme-daylight .nav-link:hover,
body.bg-theme-bright .nav-link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--lfc-red);
}

body.bg-theme-daylight .nav-link.active,
body.bg-theme-bright .nav-link.active {
  background: linear-gradient(135deg, #C8102E 0%, #A50B24 100%);
  color: #FFFFFF;
}

body.bg-theme-daylight .nav-dropdown-menu,
body.bg-theme-bright .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

body.bg-theme-daylight .dropdown-item,
body.bg-theme-bright .dropdown-item {
  color: #120D0E;
}

body.bg-theme-daylight .dropdown-item-title,
body.bg-theme-bright .dropdown-item-title {
  color: #120D0E;
}

body.bg-theme-daylight .dropdown-item-sub,
body.bg-theme-bright .dropdown-item-sub {
  color: #6B5E62;
}

body.bg-theme-daylight .dropdown-item:hover,
body.bg-theme-bright .dropdown-item:hover {
  background: rgba(200, 16, 46, 0.08);
}

body.bg-theme-daylight .mobile-bottom-nav,
body.bg-theme-bright .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1.5px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08) !important;
}

body.bg-theme-daylight .mob-nav-item,
body.bg-theme-bright .mob-nav-item {
  color: #6B5E62;
}

body.bg-theme-daylight .mob-nav-item.active,
body.bg-theme-bright .mob-nav-item.active {
  color: var(--lfc-red);
  background: rgba(200, 16, 46, 0.1);
}

body.bg-theme-daylight .floating-bg-switcher,
body.bg-theme-bright .floating-bg-switcher {
  background: rgba(255, 255, 255, 0.95);
  color: #120D0E;
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

body,
body.bg-theme-anfield {
  background-color: #070305;
  background-image: 
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(200, 16, 46, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10, 4, 6, 0.82) 0%, rgba(10, 4, 6, 0.95) 450px, #070305 100%),
    url('/assets/bg-anfield-stadium.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-main);
}

/* Section titles sitting directly on dark Anfield background outside cards */
body.bg-theme-anfield .main-container > section > .section-head .section-title,
body.bg-theme-anfield .main-container > .section-head .section-title,
body.bg-theme-anfield .seo-breadcrumb,
body.bg-theme-anfield .main-container > .section-head > div > .section-title {
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

body.bg-theme-anfield .main-container > section > .section-head .section-subtitle,
body.bg-theme-anfield .main-container > .section-head .section-subtitle,
body.bg-theme-anfield .main-container > .section-head > div > .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

/* Titles and text inside Red & Black cards */
.mc-card .section-title,
.modal-sheet .section-title,
.player-bio-section .section-title,
.player-hero-card .section-title,
.content-card .section-title,
.timeline-card .section-title,
.standings-home-card .section-title,
.leaders-home-card .section-title {
  color: #FFFFFF !important;
  text-shadow: none !important;
}

.mc-card .section-subtitle,
.standings-home-card .section-subtitle,
.leaders-home-card .section-subtitle {
  color: rgba(255, 255, 255, 0.72) !important;
  text-shadow: none !important;
}

body.bg-theme-anfield .pill-btn.active {
  background: linear-gradient(135deg, var(--lfc-red) 0%, #9E0B22 100%);
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
}

body.bg-theme-luxury {
  background-color: #0D0608;
  background-image: 
    linear-gradient(180deg, rgba(13, 6, 8, 0.75) 0%, rgba(13, 6, 8, 0.88) 550px, rgba(13, 6, 8, 0.96) 100%),
    url('/assets/bg-luxury-crimson.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
}

body.bg-theme-the-kop {
  background-color: #0D0608;
  background-image: 
    linear-gradient(180deg, rgba(13, 6, 8, 0.75) 0%, rgba(13, 6, 8, 0.88) 550px, rgba(13, 6, 8, 0.96) 100%),
    url('/assets/bg-the-kop.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
}

body.bg-theme-minimal {
  background: radial-gradient(circle at 50% 0%, #22090F 0%, #0D0608 100%);
  background-attachment: fixed;
}

/* Background Selector Cards in Modal */
.bg-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

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

.bg-option-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--lfc-obsidian);
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-decoration: none;
}

.bg-option-card:hover {
  transform: translateY(-3px);
  border-color: var(--lfc-gold-bright);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.bg-option-card.active {
  border-color: var(--lfc-gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4), 0 12px 28px rgba(200, 16, 46, 0.4);
}

.bg-option-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.bg-option-card:hover .bg-option-img {
  transform: scale(1.06);
}

.bg-option-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 6, 8, 0.15) 0%, rgba(13, 6, 8, 0.88) 100%);
}

.bg-option-info {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.bg-option-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bg-option-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.bg-active-tag {
  background: var(--lfc-gold-bright);
  color: var(--lfc-obsidian);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  display: none;
}

.bg-option-card.active .bg-active-tag {
  display: inline-block;
}

/* Floating BG Switcher Quick Button */
.floating-bg-switcher {
  position: fixed;
  bottom: 84px;
  right: 18px;
  z-index: 99;
  background: rgba(13, 6, 8, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: all 0.22s ease;
}

.floating-bg-switcher:hover {
  background: var(--lfc-gold);
  color: var(--lfc-obsidian);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.4);
}

.floating-bg-switcher .ui-icon {
  stroke: var(--lfc-gold-bright);
}

.floating-bg-switcher:hover .ui-icon {
  stroke: var(--lfc-obsidian);
}

@media (min-width: 960px) {
  .floating-bg-switcher {
    bottom: 24px;
  }
}

/* ==========================================================================
   API-Football Live Integration Styles
   ========================================================================== */
.api-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 10px;
}

.api-live-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.api-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  animation: api-pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes api-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.api-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.api-refresh-btn:hover {
  background: var(--lfc-red);
  color: #fff;
  border-color: var(--lfc-red);
}

.api-refresh-btn:hover .ui-icon {
  stroke: #fff;
}

.fixture-team-block {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.fixture-team-block.home {
  justify-content: flex-end;
  text-align: right;
}

.fixture-team-block.away {
  justify-content: flex-start;
  text-align: left;
}

.fixture-team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.table-team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.leader-player-photo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}



/* ==========================================================================
   Match Detail Modal: 2-Sided Timeline, Tactical Mini Pitch & Officials
   ========================================================================== */

/* Modal Match Header Score Row */
.modal-match-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  width: 100%;
  box-sizing: border-box;
}

/* Modal Tabs Navigation (Segmented Control) */
.modal-tabs-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.modal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.modal-tab-btn:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.modal-tab-btn.active {
  background: var(--lfc-red);
  color: #FFFFFF;
  border-color: var(--lfc-red);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
  font-weight: 700;
}

/* Match Referee & Info Badge */
.match-officials-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 12px 0 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.match-officials-bar strong {
  color: var(--text-main);
}
.referee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--lfc-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* 2-Sided Match Timeline */
.match-dual-timeline {
  position: relative;
  margin-top: 10px;
  margin-bottom: 20px;
}
.timeline-teams-header {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  text-align: center;
  padding: 8px 0;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--border-subtle);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}
.timeline-team-name.home {
  text-align: right;
  padding-right: 12px;
  color: var(--lfc-red);
}
.timeline-team-name.away {
  text-align: left;
  padding-left: 12px;
  color: var(--text-main);
}
.timeline-mid-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-stream {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.timeline-stream::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-strong);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  position: relative;
  z-index: 2;
}

.timeline-cell {
  position: relative;
}
.timeline-cell.center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.timeline-cell.left {
  display: flex;
  justify-content: flex-end;
  padding-right: 14px;
}
.timeline-cell.right {
  display: flex;
  justify-content: flex-start;
  padding-left: 14px;
}

.timeline-min-badge {
  background: var(--bg-card);
  border: 2px solid var(--lfc-gold);
  color: var(--text-main);
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 700;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.timeline-event-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  max-width: 260px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}
.timeline-event-card:hover {
  transform: translateY(-1px);
}
.timeline-cell.left .timeline-event-card {
  text-align: right;
  border-right: 3px solid var(--border-strong);
}
.timeline-cell.right .timeline-event-card {
  text-align: left;
  border-left: 3px solid var(--border-strong);
}

/* Event Types Styling */
.timeline-event-card.is-goal {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}
.timeline-cell.left .timeline-event-card.is-goal {
  border-right: 3px solid #22C55E;
}
.timeline-cell.right .timeline-event-card.is-goal {
  border-left: 3px solid #22C55E;
}

.timeline-event-card.is-penalty {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
}
.timeline-cell.left .timeline-event-card.is-penalty {
  border-right: 3px solid var(--lfc-gold);
}
.timeline-cell.right .timeline-event-card.is-penalty {
  border-left: 3px solid var(--lfc-gold);
}

.timeline-event-card.is-var {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.1);
}
.timeline-cell.left .timeline-event-card.is-var {
  border-right: 3px solid #64748B;
}
.timeline-cell.right .timeline-event-card.is-var {
  border-left: 3px solid #64748B;
}

.timeline-event-card.is-card-yellow {
  border-color: rgba(234, 179, 8, 0.5);
  background: rgba(234, 179, 8, 0.08);
}
.timeline-cell.left .timeline-event-card.is-card-yellow {
  border-right: 3px solid #EAB308;
}
.timeline-cell.right .timeline-event-card.is-card-yellow {
  border-left: 3px solid #EAB308;
}

.timeline-event-card.is-card-red {
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(220, 38, 38, 0.08);
}
.timeline-cell.left .timeline-event-card.is-card-red {
  border-right: 3px solid #DC2626;
}
.timeline-cell.right .timeline-event-card.is-card-red {
  border-left: 3px solid #DC2626;
}

.timeline-event-card.is-sub {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.05);
}
.timeline-cell.left .timeline-event-card.is-sub {
  border-right: 3px solid #0284C7;
}
.timeline-cell.right .timeline-event-card.is-sub {
  border-left: 3px solid #0284C7;
}

.ev-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ev-tag.goal { background: #15803D; color: #fff; }
.ev-tag.penalty { background: #B45309; color: #fff; }
.ev-tag.var { background: #475569; color: #fff; }
.ev-tag.yellow { background: #CA8A04; color: #fff; }
.ev-tag.red { background: #B91C1C; color: #fff; }
.ev-tag.sub { background: #0369A1; color: #fff; }

.ev-player-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.88rem;
}
.ev-assist-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  margin-top: 2px;
}
.sub-row.in { color: #16A34A; }
.sub-row.out { color: var(--text-muted); }
.sub-arrow {
  display: inline-block;
  font-weight: bold;
}

.timeline-period-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  margin: 8px 0;
}
.timeline-period-divider.timeline-fulltime-wrap,
.timeline-period-divider:last-child {
  margin-top: 16px !important;
  margin-bottom: 44px !important;
  padding-bottom: 24px !important;
}
.timeline-period-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.timeline-period-pill.fulltime {
  background: var(--lfc-red);
  color: #fff;
  border-color: var(--lfc-red);
}

/* Tactical Mini Football Pitch */
.pitch-container-wrap {
  margin: 16px 0;
}
.tactical-pitch {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 520px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    180deg,
    #1b5327,
    #1b5327 30px,
    #1f5e2d 30px,
    #1f5e2d 60px
  );
  border: 3px solid #2d733e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Pitch Field Markings (SVG overlay) */
.pitch-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Tactical Pitch Team Strips (Clean outside-canvas headers) */
.pitch-team-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 8px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.pitch-team-strip.away {
  margin-top: 8px;
  margin-bottom: 0;
}

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

.pitch-team-strip-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pitch-formation-pill {
  font-family: var(--font-num);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Pitch Player Token */
.pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  cursor: default;
  transition: transform 0.15s ease;
}
.pitch-player:hover {
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 5;
}

.pitch-player-token {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 0.78rem;
  font-weight: 700;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.pitch-player.is-lfc .pitch-player-token {
  background: #C8102E;
  color: #FFFFFF;
  border: 1.5px solid #D4AF37;
}
.pitch-player.is-away .pitch-player-token {
  background: #1E293B;
  color: #FFFFFF;
  border: 1.5px solid #E2E8F0;
}

.pitch-player-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(10, 10, 10, 0.85);
  padding: 1px 6px;
  border-radius: 3px;
  margin-top: 2px;
  white-space: nowrap;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.pitch-player-pos {
  font-size: 0.58rem;
  color: #E2E8F0;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  margin-top: 1px;
}

.player-goal-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #22C55E;
  border-radius: 50%;
  border: 1px solid #fff;
}
.player-card-dot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 7px;
  height: 10px;
  border-radius: 1px;
}
.player-card-dot.yellow { background: #EAB308; }
.player-card-dot.red { background: #DC2626; }

/* Managers / Coaches Section */
.coaches-section {
  margin: 14px 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
}
.coaches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.coach-card {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coach-card.away {
  justify-content: flex-end;
  text-align: right;
}
.coach-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
}
.coach-role-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.coach-name-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Substitutes List Section */
.substitutes-section {
  margin: 16px 0;
}
.substitutes-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.substitutes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.substitutes-col {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
}
.substitutes-team-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.substitutes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.substitute-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.substitute-row strong {
  color: var(--text-main);
}
.sub-played-tag {
  background: rgba(34, 197, 94, 0.15);
  color: #16A34A;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   SEO Keyword Highlighting (Primary & Secondary Keywords)
   Primary Keyword (.kw-main): Bold 700 + Liverpool Crimson Red (#C8102E)
   Secondary Keyword (.kw-sub): Bold 700 + Liverpool Teal (#007E72)
   ========================================================================== */
.kw-main, strong.kw-main, b.kw-main {
  font-weight: 700;
  color: #C8102E;
  letter-spacing: -0.01em;
  display: inline;
}

.kw-sub, strong.kw-sub, b.kw-sub {
  font-weight: 700;
  color: #007E72;
  letter-spacing: -0.01em;
  display: inline;
}

/* Hover accent inside interactive cards */
.content-card:hover .kw-main,
.player-card:hover .kw-main,
.timeline-card:hover .kw-main {
  color: #E01035;
}

.content-card:hover .kw-sub,
.player-card:hover .kw-sub,
.timeline-card:hover .kw-sub {
  color: #009688;
}

/* Dark mode and dark background adjustments for maximum contrast and legibility */
body.bg-theme-anfield .section-subtitle .kw-main,
body.bg-theme-luxury .section-subtitle .kw-main,
body.bg-theme-the-kop .section-subtitle .kw-main,
.motm-banner .kw-main,
.hero-banner .kw-main,
.squad-audit-banner .kw-main {
  color: #FF4D6A !important;
}

body.bg-theme-anfield .section-subtitle .kw-sub,
body.bg-theme-luxury .section-subtitle .kw-sub,
body.bg-theme-the-kop .section-subtitle .kw-sub,
.motm-banner .kw-sub,
.hero-banner .kw-sub,
.squad-audit-banner .kw-sub {
  color: #2DD4BF !important;
}

/* Inside light badges / tags, preserve readability */
.mc-tag .kw-main, .mc-tag .kw-sub {
  color: inherit !important;
  font-weight: 700;
}

/* ==========================================================================
   Heritage Media & Real Photography Enhancements (Timeline, Kits, Legends, Anfield)
   ========================================================================== */
/* ==========================================================================
   Heritage Media & Real Photography Enhancements (Timeline Chronicle Layout)
   ========================================================================== */

/* Timeline Decade Quick Jump Rail */
.timeline-quick-jump {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--lfc-gold);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.timeline-quick-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.timeline-quick-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timeline-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-jump-pill:hover {
  background: var(--lfc-red);
  color: #FFFFFF !important;
  border-color: var(--lfc-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

.timeline-jump-pill:hover .jump-pill-idx {
  color: var(--lfc-gold-bright) !important;
}

.jump-pill-idx {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--lfc-gold);
}

.jump-pill-period {
  font-family: var(--font-num);
  font-weight: 600;
}

.jump-pill-name {
  opacity: 0.9;
}

/* Master Timeline Chronicle Container */
.timeline-chronicle-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Chronicle Master Card */
.timeline-chronicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--lfc-red);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-margin-top: 90px;
}

.timeline-chronicle-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.timeline-chronicle-card.era-card-highlight {
  box-shadow: 0 0 0 3px var(--lfc-gold), 0 12px 36px rgba(224, 16, 53, 0.35) !important;
  transition: box-shadow 0.3s ease;
}

/* Era Header Strip */
.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.08) 0%, rgba(208, 160, 24, 0.05) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.timeline-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.era-index-tag {
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lfc-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.era-period-badge {
  background: var(--lfc-red);
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.timeline-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.era-manager-badge {
  font-size: 0.84rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.era-trophies-count {
  font-family: var(--font-num);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lfc-gold);
  background: rgba(208, 160, 24, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(208, 160, 24, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 2-Column Responsive Balanced Chronicle Grid */
.timeline-chronicle-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 26px;
  padding: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .timeline-chronicle-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 18px;
  }
}

/* Column 1: Media Showcase & Cabinets */
.timeline-media-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-photo-card {
  background: #0d0a0b;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.timeline-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

.timeline-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.timeline-image-frame:hover .timeline-hero-image {
  transform: scale(1.04);
}

.timeline-zoom-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.timeline-image-frame:hover .timeline-zoom-pill {
  background: var(--lfc-red);
}

.timeline-photo-caption {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #D5D5D5;
  background: #141011;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-style: italic;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.btn-timeline-zoom-full {
  width: 100%;
  background: #1f181a;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--lfc-gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-timeline-zoom-full:hover {
  background: var(--lfc-red);
  color: #FFFFFF;
}

/* Era Cabinets (Trophy & Stars) */
.era-cabinet-box {
  background: var(--bg-subtle);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
}

.era-cabinet-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.era-trophy-cabinet .era-cabinet-title {
  color: var(--lfc-gold);
  border-bottom-color: rgba(208, 160, 24, 0.25);
}

.era-trophy-badges {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.era-trophy-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-main);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

body.bg-theme-anfield .era-trophy-pill {
  background: rgba(255, 255, 255, 0.04);
}

.era-trophy-dot {
  color: var(--lfc-gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.era-stars-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.era-star-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(0, 150, 136, 0.09);
  color: var(--lfc-teal);
  border: 1px solid rgba(0, 150, 136, 0.25);
}

/* Column 2: Historical Narrative, Quote & Turning Points */
.timeline-content-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}

.era-quote-wrapper {
  display: flex;
  gap: 12px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.06) 0%, rgba(208, 160, 24, 0.08) 100%);
  border-left: 4px solid var(--lfc-gold);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.era-quote-symbol {
  color: var(--lfc-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.era-quote-body {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0 0 6px 0;
}

.era-quote-cite {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.era-narrative-card {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
}

.era-subheading {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.era-narrative-paragraph {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.era-milestones-card {
  background: var(--bg-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border-subtle);
}

.era-milestones-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.era-milestone-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

body.bg-theme-anfield .era-milestone-step {
  background: rgba(255, 255, 255, 0.04);
}

.era-milestone-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lfc-red);
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.era-milestone-content {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
}

.kit-product-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.kit-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}
.kit-product-card:hover .kit-real-photo-box img {
  transform: scale(1.05);
}

.legend-summary-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.legend-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}
.legend-summary-card:hover img {
  transform: scale(1.05);
}

.gallery-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.gallery-card:hover img {
  transform: scale(1.05);
}

/* Legend Detail Responsive Layout */
@media (max-width: 768px) {
  .legend-hero-card {
    grid-template-columns: 1fr !important;
  }
  .legend-hero-img-wrap {
    height: 260px !important;
  }
  .legend-stats-strip {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ==========================================================================
   Footer Grid Layout & Responsive Architecture (Desktop vs Compact Mobile)
   ========================================================================== */
.site-footer {
  background: var(--lfc-obsidian);
  color: rgba(255, 255, 255, 0.74);
  padding: 36px 18px 44px;
  margin-top: 48px;
  border-top: 2px solid rgba(212, 175, 55, 0.35);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.footer-desktop-content {
  display: block;
  width: 100%;
}

.footer-mobile-content {
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 36px;
  align-items: flex-start;
  padding-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  border-bottom: 2px solid var(--lfc-red);
  padding-bottom: 6px;
  margin-bottom: 12px;
  display: inline-block;
  letter-spacing: 0.02em;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.footer-link-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link-list a:hover {
  color: var(--lfc-gold-bright);
  transform: translateX(4px);
}

/* --- Premium Mobile Footer Styles (Card Frame, 2-Col Icon Grid, Zero Overflow) --- */
.footer-mobile-content {
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
}

.footer-mob-card {
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.09) 0%, rgba(18, 9, 12, 0.96) 55%, rgba(10, 5, 7, 0.98) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  padding: 18px 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  box-sizing: border-box;
}

.footer-mob-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.footer-mob-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--lfc-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}

.footer-mob-brand-text {
  text-align: left;
}

.footer-mob-title {
  font-family: var(--font-num);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.footer-mob-ynwa-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--lfc-gold-bright);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.footer-mob-tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 6px auto 14px;
  line-height: 1.4;
}

/* Quick Action Grid (2-column balanced tiles) */
.footer-mob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-mob-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  padding: 9px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.footer-mob-btn svg {
  color: var(--lfc-gold-bright);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.footer-mob-btn:active,
.footer-mob-btn:hover {
  background: rgba(200, 16, 46, 0.25);
  border-color: rgba(212, 175, 55, 0.5);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Meta / Policy Links */
.footer-mob-meta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 8px;
  font-size: 0.74rem;
  margin: 10px 0 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-mob-meta-links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-mob-meta-links a:hover,
.footer-mob-meta-links a:active {
  color: var(--lfc-gold-bright);
}

.footer-mob-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.68rem;
  user-select: none;
}

/* Back to top button */
.footer-mob-backtop-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  transition: all 0.18s ease;
}

.footer-mob-backtop-btn svg {
  width: 14px;
  height: 14px;
  color: var(--lfc-gold-bright);
}

.footer-mob-backtop-btn:active,
.footer-mob-backtop-btn:hover {
  background: rgba(200, 16, 46, 0.3);
  border-color: var(--lfc-red);
  color: #FFFFFF;
}

/* Disclaimer text */
.footer-mob-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

.footer-mob-copy {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
}

.footer-mob-notice {
  margin: 0 auto;
  max-width: 320px;
}

/* Tablet Layout (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-grid-layout {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
  }
}

/* Mobile Screen Breakpoint (<= 768px) */
@media (max-width: 768px) {
  .main-container {
    padding: 14px 12px 10px !important;
  }
  .site-footer {
    padding: 16px 14px 76px !important;
    margin-top: 6px !important;
  }
  .footer-desktop-content {
    display: none !important;
  }
  .footer-mobile-content {
    display: block !important;
  }
}

/* Mobile Simulator active (even on desktop wide screens) */
body.mobile-simulator-active .main-container {
  padding: 14px 12px 10px !important;
}
body.mobile-simulator-active .site-footer {
  padding: 16px 14px 76px !important;
  margin-top: 6px !important;
  width: 100% !important;
  max-width: 412px !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .footer-desktop-content {
  display: none !important;
}
body.mobile-simulator-active .footer-mobile-content {
  display: block !important;
}

/* ==========================================================================
   Institutional & Policy Pages (About, Contact, Editorial, Sources, Privacy, Cookies, Terms)
   ========================================================================== */
.policy-page-container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 40px;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 24px;
}

.policy-hero-card {
  border-left: 5px solid var(--lfc-red);
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.04) 0%, rgba(208, 160, 24, 0.03) 100%), var(--bg-card);
}

.policy-hero-inner {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .policy-hero-inner {
    flex-direction: column;
    gap: 16px;
  }
}

.policy-hero-logo {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #120D0E;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.policy-hero-tag {
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lfc-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.policy-hero-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.policy-lead-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.bg-theme-anfield .policy-section > .policy-section-title,
.policy-section > .policy-section-title {
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.policy-card .policy-section-title {
  color: var(--text-main) !important;
  text-shadow: none !important;
}

.policy-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

@media (max-width: 540px) {
  .policy-grid-4 {
    grid-template-columns: 1fr;
  }
}

.policy-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  border-top: 3px solid var(--lfc-red);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}

.policy-feature-box:hover {
  transform: translateY(-2px);
}

.policy-feature-icon {
  margin-bottom: 4px;
}

.policy-feature-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

.policy-feature-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.policy-info-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.policy-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.policy-info-table th, .policy-info-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.policy-info-table tr:last-child th,
.policy-info-table tr:last-child td {
  border-bottom: none;
}

.policy-info-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-main);
}

.policy-disclaimer-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.04) 0%, rgba(208, 160, 24, 0.04) 100%), var(--bg-card);
  border-left: 4px solid var(--lfc-gold);
}

.policy-disclaimer-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.policy-disclaimer-icon {
  color: var(--lfc-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Contact Grid */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 26px;
}

@media (max-width: 900px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-channel-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-channel-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-channel-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-channel-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.contact-channel-val a {
  color: var(--lfc-red);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-channel-val a:hover {
  text-decoration: underline;
}

.contact-channel-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Form Styles */
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--lfc-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

/* FAQ Accordion List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 3px solid var(--lfc-red);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px 0;
}

.faq-answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Tier Table */
.tier-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.tier-tag.tier-1 { background: rgba(0, 150, 136, 0.15); color: var(--lfc-teal); border: 1px solid rgba(0, 150, 136, 0.3); }
.tier-tag.tier-2 { background: rgba(208, 160, 24, 0.15); color: var(--lfc-gold); border: 1px solid rgba(208, 160, 24, 0.3); }
.tier-tag.tier-3 { background: rgba(200, 16, 46, 0.12); color: var(--lfc-red); border: 1px solid rgba(200, 16, 46, 0.25); }

/* ==========================================================================
   Match Modal Detailed Statistics & Player Ratings (Image 1 Style)
   ========================================================================== */
.detailed-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0 24px;
  box-shadow: var(--shadow-sm);
}

.detailed-stats-header {
  background: #141E2E;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
}

.detailed-stats-header .stat-team-name.home {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detailed-stats-header .stat-center-heading {
  text-align: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0 14px;
  letter-spacing: 0.02em;
}

.detailed-stats-header .stat-team-name.away {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detailed-stats-body {
  display: flex;
  flex-direction: column;
}

.detailed-stat-row {
  display: grid;
  grid-template-columns: 75px 1fr 75px;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: background 0.15s ease;
}

.detailed-stat-row:last-child {
  border-bottom: none;
}

.detailed-stat-row.even {
  background: rgba(0, 0, 0, 0.015);
}

.detailed-stat-row:hover {
  background: var(--bg-subtle);
}

.detailed-stat-row .stat-val {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.detailed-stat-row .stat-val.home {
  text-align: left;
}

.detailed-stat-row .stat-label {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.detailed-stat-row .stat-val.away {
  text-align: right;
}

/* Match Ratings Section */
.match-ratings-section {
  margin-top: 24px;
  margin-bottom: 14px;
}

.match-ratings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.ratings-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ratings-soccer-icon {
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
}

.ratings-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.ratings-team-pills {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.ratings-team-pill {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ratings-team-pill.active {
  background: var(--lfc-red);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(200, 16, 46, 0.25);
}

.player-rating-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.player-rating-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.player-rating-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.player-rating-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
}

.player-rating-badge {
  background: rgba(200, 16, 46, 0.22);
  border: 1px solid rgba(200, 16, 46, 0.45);
  color: #FF4D6A;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
}

.player-rating-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* ==========================================================================
   Fixtures Filter Segmented Tabs & Mobile Optimizations
   ========================================================================== */

/* Segmented Control for Fixture Status */
.fixture-status-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fixture-status-tabs .status-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  text-decoration: none;
}

.fixture-status-tabs .status-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.fixture-status-tabs .status-tab.active {
  background: linear-gradient(135deg, var(--lfc-red) 0%, #9E0B22 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(212, 175, 55, 0.65) !important;
  box-shadow: 0 2px 10px rgba(200, 16, 46, 0.45) !important;
}

.fixture-status-tabs .status-tab .tab-badge {
  font-size: 0.74rem;
  font-family: var(--font-num, inherit);
  opacity: 0.9;
  font-weight: 600;
}

/* Light Theme Override for status tabs */
body:not(.bg-theme-anfield):not(.bg-theme-luxury) .fixture-status-tabs {
  background: var(--bg-subtle, #F1F3F5);
  border: 1px solid var(--border-subtle, #E2E8F0);
}
body:not(.bg-theme-anfield):not(.bg-theme-luxury) .fixture-status-tabs .status-tab {
  color: var(--text-secondary, #475569);
}
body:not(.bg-theme-anfield):not(.bg-theme-luxury) .fixture-status-tabs .status-tab:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main, #0F172A);
}
body:not(.bg-theme-anfield):not(.bg-theme-luxury) .fixture-status-tabs .status-tab.active {
  background: var(--lfc-red, #C8102E) !important;
  color: #FFFFFF !important;
  border-color: var(--lfc-red, #C8102E) !important;
}

/* Competition Filter Chips Strip */
.comp-filter-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.comp-filter-strip::-webkit-scrollbar {
  display: none;
}

.comp-chip {
  padding: 6px 13px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
  line-height: 1.25 !important;
}

/* News Categories Filter Grid */
.news-filter-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.news-filter-grid::-webkit-scrollbar {
  display: none;
}

.news-filter-btn .cat-label-full {
  display: inline;
}

.news-filter-btn .cat-label-short {
  display: none;
}

/* Squad Group & Position Filter Grids */
.squad-group-grid,
.squad-pos-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.squad-group-grid::-webkit-scrollbar,
.squad-pos-grid::-webkit-scrollbar {
  display: none;
}

.squad-group-btn .label-full,
.squad-pos-btn .label-full {
  display: inline;
}

.squad-group-btn .label-short,
.squad-pos-btn .label-short {
  display: none;
}

/* Standings Filter Grids */
.standings-comp-grid,
.standings-view-grid,
.standings-mode-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.standings-comp-grid::-webkit-scrollbar,
.standings-view-grid::-webkit-scrollbar,
.standings-mode-grid::-webkit-scrollbar {
  display: none;
}

.standings-tab-btn .label-full {
  display: inline;
}

.standings-tab-btn .label-short {
  display: none;
}

/* Dark glass pills and API bar under Anfield / Luxury themes */
body.bg-theme-anfield .pill-btn,
body.bg-theme-luxury .pill-btn {
  background: rgba(22, 11, 14, 0.8);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.bg-theme-anfield .pill-btn:hover,
body.bg-theme-luxury .pill-btn:hover {
  background: rgba(38, 16, 22, 0.95);
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.45);
}

body.bg-theme-anfield .pill-btn.active,
body.bg-theme-luxury .pill-btn.active {
  background: linear-gradient(135deg, var(--lfc-red) 0%, #9E0B22 100%) !important;
  color: #FFFFFF !important;
  border-color: rgba(212, 175, 55, 0.65) !important;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35) !important;
}

body.bg-theme-anfield .api-live-bar,
body.bg-theme-luxury .api-live-bar {
  background: rgba(20, 10, 13, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.bg-theme-anfield .api-live-left,
body.bg-theme-luxury .api-live-left {
  color: rgba(255, 255, 255, 0.85);
}
body.bg-theme-anfield .api-refresh-btn,
body.bg-theme-luxury .api-refresh-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}
body.bg-theme-anfield .api-refresh-btn:hover,
body.bg-theme-luxury .api-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
}

/* Mobile Screen Responsive Overrides */
@media (max-width: 768px) {
  .fixture-status-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .fixture-status-tabs .status-tab {
    padding: 7px 2px !important;
    font-size: 0.76rem !important;
    letter-spacing: -0.2px;
    gap: 3px !important;
  }
  .fixture-status-tabs .status-tab .tab-badge {
    font-size: 0.7rem !important;
  }
  /* Competition Filter Chips Mobile Grid (Symmetrical 2 rows x 3 columns) */
  .comp-filter-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    overflow-x: visible !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .comp-chip {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 3px !important;
    font-size: 0.8rem !important;
    letter-spacing: -0.2px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    flex-shrink: 1 !important;
    min-height: 38px !important;
  }
  /* News Categories Mobile Grid (2 rows x 3 columns) */
  .news-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .news-filter-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 7px 2px !important;
    font-size: 0.78rem !important;
    letter-spacing: -0.2px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }
  .news-filter-btn .cat-label-full {
    display: none !important;
  }
  .news-filter-btn .cat-label-short {
    display: inline !important;
  }
  /* Squad Filters Mobile (2-Row 6-col grid for groups, 5-col row for positions) */
  .squad-group-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 5px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .squad-group-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 7px 2px !important;
    font-size: 0.78rem !important;
    letter-spacing: -0.2px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }
  .squad-group-btn:nth-child(1),
  .squad-group-btn:nth-child(2),
  .squad-group-btn:nth-child(3) {
    grid-column: span 2 !important;
  }
  .squad-group-btn:nth-child(4),
  .squad-group-btn:nth-child(5) {
    grid-column: span 3 !important;
  }
  .squad-group-btn .label-full,
  .squad-pos-btn .label-full {
    display: none !important;
  }
  .squad-group-btn .label-short,
  .squad-pos-btn .label-short {
    display: inline !important;
  }

  .squad-pos-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 4px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .squad-pos-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 7px 1px !important;
    font-size: 0.74rem !important;
    letter-spacing: -0.2px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }
  /* Standings Filters Mobile (2-column equal segmented control for all rows) */
  .standings-comp-grid,
  .standings-view-grid,
  .standings-mode-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .standings-tab-btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 4px !important;
    font-size: 0.8rem !important;
    letter-spacing: -0.2px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }
  .standings-tab-btn .label-full {
    display: none !important;
  }
  .standings-tab-btn .label-short {
    display: inline !important;
  }
  /* Standings Table Responsive Mobile */
  .standings-compact-wrap {
    overflow-x: hidden !important;
    border-radius: 10px !important;
    margin-bottom: 16px !important;
  }
  .standings-table.is-compact {
    min-width: 100% !important;
    width: 100% !important;
    table-layout: fixed !important;
  }
  .standings-table.is-compact th,
  .standings-table.is-compact td {
    padding: 9px 3px !important;
    font-size: 0.82rem !important;
  }
  .standings-table.is-compact th.col-rank,
  .standings-table.is-compact td.col-rank {
    width: 32px !important;
    padding-left: 6px !important;
    padding-right: 2px !important;
  }
  .standings-table.is-compact th.col-stat,
  .standings-table.is-compact td.col-stat {
    width: 38px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .standings-table.is-compact th.col-points,
  .standings-table.is-compact td.col-points {
    width: 44px !important;
    padding-left: 2px !important;
    padding-right: 6px !important;
  }
  .standings-team-cell {
    gap: 6px !important;
  }
  .standings-team-cell .table-team-logo {
    width: 19px !important;
    height: 19px !important;
  }
  .standings-team-names .team-name-main {
    font-size: 0.82rem !important;
  }
  .standings-team-names .team-name-en,
  .standings-table .team-name-en {
    display: none !important;
  }
  /* Heritage Subnav Mobile: Hide horizontal pills (Image 1) and show compact picker trigger */
  .heritage-subnav-pills {
    display: none !important;
  }
  .heritage-mob-selector-bar {
    display: block !important;
  }
  /* Compact News Cards Mobile */
  .news-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    gap: 6px !important;
  }
  .news-card .news-thumb-box {
    margin-bottom: 8px !important;
    border-radius: 10px !important;
  }
  .news-card .card-title {
    font-size: 0.92rem !important;
    line-height: 1.32 !important;
    margin: 6px 0 4px !important;
    -webkit-line-clamp: 2 !important;
  }
  .news-card .card-excerpt {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    -webkit-line-clamp: 2 !important;
  }
  .news-card .card-footer {
    padding-top: 8px !important;
    margin-top: 2px !important;
    font-size: 0.74rem !important;
  }
  .news-card .mc-tag {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }
  .news-card .card-tier {
    margin-top: 4px !important;
    font-size: 0.7rem !important;
  }
  .fixture-row-card {
    padding: 12px 10px !important;
    gap: 10px !important;
    border-radius: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .fixture-matchup {
    padding: 8px 6px !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .fixture-team-block {
    gap: 5px !important;
    min-width: 0 !important;
  }
  .fixture-team-name {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
  }
  .fixture-team-logo {
    width: 20px !important;
    height: 20px !important;
  }
  .fixture-matchup .mc-score-pill {
    font-size: 0.95rem !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }
  .fixture-matchup .mc-vs-pill {
    font-size: 0.76rem !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
  }
  .fixture-action-col {
    width: 100% !important;
    justify-content: stretch !important;
    display: flex !important;
  }
  .fixture-action-col .action-link-btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    box-sizing: border-box !important;
  }
  .fixture-action-col .mc-tag {
    margin-left: auto !important;
  }
  .fixture-scorers {
    font-size: 0.74rem !important;
    margin-top: 5px !important;
    line-height: 1.35 !important;
  }
  /* Match Modal Tabs & Header Mobile */
  .modal-sheet {
    padding: 18px 14px calc(50px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px 18px 0 0 !important;
    max-height: 92vh !important;
  }
  .modal-match-score-row {
    gap: 6px !important;
    margin: 10px 0 !important;
  }
  .modal-match-score-row strong {
    font-size: 0.95rem !important;
  }
  .modal-match-score-row img {
    width: 24px !important;
    height: 24px !important;
  }
  .modal-match-score-row .mc-score-pill {
    font-size: 1.15rem !important;
    padding: 3px 10px !important;
  }
  .modal-tabs-nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    padding: 3px !important;
    border-radius: 10px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .modal-tab-btn {
    padding: 7px 2px !important;
    font-size: 0.78rem !important;
    letter-spacing: -0.2px !important;
    border-radius: 7px !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  /* Tactical Pitch Mobile Sizing */
  .pitch-team-strip {
    padding: 6px 10px !important;
  }
  .pitch-team-strip-name {
    font-size: 0.84rem !important;
  }
  .tactical-pitch {
    height: 480px !important;
  }
  .pitch-player-token {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.72rem !important;
  }
  .pitch-player-name {
    font-size: 0.6rem !important;
    max-width: 66px !important;
    padding: 1px 3px !important;
  }
  .pitch-player-pos {
    font-size: 0.52rem !important;
  }
  .substitutes-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

body.mobile-simulator-active .fixture-status-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
  padding: 3px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .fixture-status-tabs .status-tab {
  padding: 7px 2px !important;
  font-size: 0.76rem !important;
  letter-spacing: -0.2px;
  gap: 3px !important;
}
body.mobile-simulator-active .fixture-status-tabs .status-tab .tab-badge {
  font-size: 0.7rem !important;
}
/* Competition Filter Chips Mobile Simulator Grid (Symmetrical 2 rows x 3 columns) */
body.mobile-simulator-active .comp-filter-strip {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  overflow-x: visible !important;
  padding: 0 !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .comp-chip {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 8px 3px !important;
  font-size: 0.8rem !important;
  letter-spacing: -0.2px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  flex-shrink: 1 !important;
  min-height: 38px !important;
}
body.mobile-simulator-active .news-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 5px !important;
  overflow-x: visible !important;
  padding-bottom: 0 !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .news-filter-btn {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 7px 2px !important;
  font-size: 0.78rem !important;
  letter-spacing: -0.2px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}
body.mobile-simulator-active .news-filter-btn .cat-label-full {
  display: none !important;
}
body.mobile-simulator-active .news-filter-btn .cat-label-short {
  display: inline !important;
}

body.mobile-simulator-active .squad-group-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 5px !important;
  overflow-x: visible !important;
  padding-bottom: 0 !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .squad-group-btn {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 7px 2px !important;
  font-size: 0.78rem !important;
  letter-spacing: -0.2px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}
body.mobile-simulator-active .squad-group-btn:nth-child(1),
body.mobile-simulator-active .squad-group-btn:nth-child(2),
body.mobile-simulator-active .squad-group-btn:nth-child(3) {
  grid-column: span 2 !important;
}
body.mobile-simulator-active .squad-group-btn:nth-child(4),
body.mobile-simulator-active .squad-group-btn:nth-child(5) {
  grid-column: span 3 !important;
}
body.mobile-simulator-active .squad-group-btn .label-full,
body.mobile-simulator-active .squad-pos-btn .label-full {
  display: none !important;
}
body.mobile-simulator-active .squad-group-btn .label-short,
body.mobile-simulator-active .squad-pos-btn .label-short {
  display: inline !important;
}

body.mobile-simulator-active .squad-pos-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 4px !important;
  overflow-x: visible !important;
  padding-bottom: 0 !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .squad-pos-btn {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 7px 1px !important;
  font-size: 0.74rem !important;
  letter-spacing: -0.2px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}

body.mobile-simulator-active .standings-comp-grid,
body.mobile-simulator-active .standings-view-grid,
body.mobile-simulator-active .standings-mode-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 6px !important;
  overflow-x: visible !important;
  padding-bottom: 0 !important;
  margin-bottom: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .standings-tab-btn {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  padding: 8px 4px !important;
  font-size: 0.8rem !important;
  letter-spacing: -0.2px !important;
  border-radius: 8px !important;
  white-space: nowrap !important;
}
body.mobile-simulator-active .standings-tab-btn .label-full {
  display: none !important;
}
body.mobile-simulator-active .standings-tab-btn .label-short {
  display: inline !important;
}
/* Standings Table Responsive Mobile Simulator */
body.mobile-simulator-active .standings-compact-wrap {
  overflow-x: hidden !important;
  border-radius: 10px !important;
  margin-bottom: 16px !important;
}
body.mobile-simulator-active .standings-table.is-compact {
  min-width: 100% !important;
  width: 100% !important;
  table-layout: fixed !important;
}
body.mobile-simulator-active .standings-table.is-compact th,
body.mobile-simulator-active .standings-table.is-compact td {
  padding: 9px 3px !important;
  font-size: 0.82rem !important;
}
body.mobile-simulator-active .standings-table.is-compact th.col-rank,
body.mobile-simulator-active .standings-table.is-compact td.col-rank {
  width: 32px !important;
  padding-left: 6px !important;
  padding-right: 2px !important;
}
body.mobile-simulator-active .standings-table.is-compact th.col-stat,
body.mobile-simulator-active .standings-table.is-compact td.col-stat {
  width: 38px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
body.mobile-simulator-active .standings-table.is-compact th.col-points,
body.mobile-simulator-active .standings-table.is-compact td.col-points {
  width: 44px !important;
  padding-left: 2px !important;
  padding-right: 6px !important;
}
body.mobile-simulator-active .standings-team-cell {
  gap: 6px !important;
}
body.mobile-simulator-active .standings-team-cell .table-team-logo {
  width: 19px !important;
  height: 19px !important;
}
body.mobile-simulator-active .standings-team-names .team-name-main {
  font-size: 0.82rem !important;
}
body.mobile-simulator-active .standings-team-names .team-name-en,
body.mobile-simulator-active .standings-table .team-name-en {
  display: none !important;
}
/* Heritage Subnav Mobile Simulator: Hide horizontal pills (Image 1) and show compact picker trigger */
body.mobile-simulator-active .heritage-subnav-pills {
  display: none !important;
}
body.mobile-simulator-active .heritage-mob-selector-bar {
  display: block !important;
}
/* Compact News Cards Mobile Simulator */
body.mobile-simulator-active .news-card {
  padding: 12px 14px !important;
  border-radius: 12px !important;
  gap: 6px !important;
}
body.mobile-simulator-active .news-card .news-thumb-box {
  margin-bottom: 8px !important;
  border-radius: 10px !important;
}
body.mobile-simulator-active .news-card .card-title {
  font-size: 0.92rem !important;
  line-height: 1.32 !important;
  margin: 6px 0 4px !important;
  -webkit-line-clamp: 2 !important;
}
body.mobile-simulator-active .news-card .card-excerpt {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  -webkit-line-clamp: 2 !important;
}
body.mobile-simulator-active .news-card .card-footer {
  padding-top: 8px !important;
  margin-top: 2px !important;
  font-size: 0.74rem !important;
}
body.mobile-simulator-active .news-card .mc-tag {
  font-size: 0.68rem !important;
  padding: 2px 6px !important;
}
body.mobile-simulator-active .news-card .card-tier {
  margin-top: 4px !important;
  font-size: 0.7rem !important;
}
body.mobile-simulator-active .fixture-row-card {
  padding: 12px 10px !important;
  gap: 10px !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
body.mobile-simulator-active .fixture-matchup {
  padding: 8px 6px !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .fixture-team-block {
  gap: 5px !important;
  min-width: 0 !important;
}
body.mobile-simulator-active .fixture-team-name {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}
body.mobile-simulator-active .fixture-team-logo {
  width: 20px !important;
  height: 20px !important;
}
body.mobile-simulator-active .fixture-matchup .mc-score-pill {
  font-size: 0.95rem !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}
body.mobile-simulator-active .fixture-matchup .mc-vs-pill {
  font-size: 0.76rem !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}
body.mobile-simulator-active .fixture-action-col {
  width: 100% !important;
  justify-content: stretch !important;
  display: flex !important;
}
body.mobile-simulator-active .fixture-action-col .action-link-btn {
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 8px 10px !important;
  font-size: 0.78rem !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .fixture-action-col .mc-tag {
  margin-left: auto !important;
}
body.mobile-simulator-active .fixture-scorers {
  font-size: 0.74rem !important;
  margin-top: 5px !important;
  line-height: 1.35 !important;
}

body.mobile-simulator-active .modal-backdrop {
  z-index: 10010 !important;
}
body.mobile-simulator-active .modal-sheet {
  padding: 18px 14px 50px !important;
  border-radius: 18px 18px 0 0 !important;
  max-height: 88vh !important;
  max-width: 392px !important;
}
body.mobile-simulator-active .modal-match-score-row {
  gap: 6px !important;
  margin: 10px 0 !important;
}
body.mobile-simulator-active .modal-match-score-row strong {
  font-size: 0.95rem !important;
}
body.mobile-simulator-active .modal-match-score-row img {
  width: 24px !important;
  height: 24px !important;
}
body.mobile-simulator-active .modal-match-score-row .mc-score-pill {
  font-size: 1.15rem !important;
  padding: 3px 10px !important;
}
body.mobile-simulator-active .modal-tabs-nav {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
  padding: 3px !important;
  border-radius: 10px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.mobile-simulator-active .modal-tab-btn {
  padding: 7px 2px !important;
  font-size: 0.78rem !important;
  letter-spacing: -0.2px !important;
  border-radius: 7px !important;
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

body.mobile-simulator-active .pitch-team-strip {
  padding: 6px 10px !important;
}
body.mobile-simulator-active .pitch-team-strip-name {
  font-size: 0.84rem !important;
}
body.mobile-simulator-active .tactical-pitch {
  height: 480px !important;
}
body.mobile-simulator-active .pitch-player-token {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.72rem !important;
}
body.mobile-simulator-active .pitch-player-name {
  font-size: 0.6rem !important;
  max-width: 66px !important;
  padding: 1px 3px !important;
}
body.mobile-simulator-active .pitch-player-pos {
  font-size: 0.52rem !important;
}
body.mobile-simulator-active .substitutes-grid {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

/* ==========================================================================
   Home Page - Latest News Modern Media Card List (Target Match: Image 2)
   ========================================================================== */
.home-news-section {
  margin-bottom: 32px;
  width: 100%;
}

.home-news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 2px;
}

.home-news-head .section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.home-news-head .section-title-accent {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--lfc-red, #c8102e);
  border-radius: 2px;
  flex-shrink: 0;
}

.home-news-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e63946 !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.home-news-see-all:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.home-news-see-all svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Mobile-first: 1 column vertical stack with White Card Background */
.home-news-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
}

.home-news-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  background: linear-gradient(145deg, #18090D 0%, #100508 100%) !important;
  border: 1px solid rgba(200, 16, 46, 0.28) !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(200, 16, 46, 0.1) !important;
  transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  min-height: 94px !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
}

.home-news-card:hover {
  background: linear-gradient(145deg, #220C12 0%, #15060A 100%) !important;
  border-color: rgba(200, 16, 46, 0.65) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(200, 16, 46, 0.25) !important;
  transform: translateY(-2px) !important;
}

.home-news-card:active {
  transform: scale(0.99) !important;
}

.home-news-thumb-wrap {
  flex-shrink: 0 !important;
  width: 104px !important;
  height: 74px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #090305 !important;
  border: 1px solid rgba(200, 16, 46, 0.22) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.home-news-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}

.home-news-card:hover .home-news-thumb {
  transform: scale(1.05) !important;
}

.home-news-thumb.is-fallback {
  object-fit: contain !important;
  padding: 12px !important;
}

.home-news-body {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
}

.home-news-cat {
  color: #c8102e !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(200, 16, 46, 0.08) !important;
  border: 1px solid rgba(200, 16, 46, 0.18) !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
  width: fit-content !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 2px !important;
}

.home-news-title {
  margin: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #FFFFFF !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
  transition: color 0.15s ease !important;
}

.home-news-title a {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.home-news-card:hover .home-news-title a,
.home-news-card:hover .home-news-title {
  color: #FF4D6A !important;
  text-shadow: none !important;
}

.home-news-time {
  display: block !important;
  color: #A6969B !important;
  font-size: 0.74rem !important;
  line-height: 1.2 !important;
  font-family: var(--font-sans) !important;
  margin-top: 1px !important;
}

/* Desktop layout (screens > 900px when not in mobile simulator): Premium White Cards */
@media (min-width: 901px) {
  body:not(.mobile-simulator-active) .home-news-head {
    margin-bottom: 16px !important;
  }
  body:not(.mobile-simulator-active) .home-news-head .section-title {
    font-size: 1.35rem !important;
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  }
  body:not(.mobile-simulator-active) .home-news-head .section-title-accent {
    width: 5px !important;
    height: 22px !important;
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.7) !important;
  }
  body:not(.mobile-simulator-active) .home-news-see-all {
    background: rgba(200, 16, 46, 0.12) !important;
    border: 1px solid rgba(200, 16, 46, 0.35) !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    color: #ff4d5a !important;
    font-size: 0.88rem !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.2s ease !important;
  }
  body:not(.mobile-simulator-active) .home-news-see-all:hover {
    background: var(--lfc-red, #c8102e) !important;
    color: #ffffff !important;
    border-color: var(--lfc-red, #c8102e) !important;
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.45) !important;
    transform: translateX(2px) !important;
  }
  body:not(.mobile-simulator-active) .home-news-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }
  body:not(.mobile-simulator-active) .home-news-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 14px 16px !important;
    min-height: 112px !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #18090D 0%, #100508 100%) !important;
    border: 1px solid rgba(200, 16, 46, 0.28) !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6), 0 0 14px rgba(200, 16, 46, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
  }
  body:not(.mobile-simulator-active) .home-news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c8102e;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  body:not(.mobile-simulator-active) .home-news-card:hover {
    background: linear-gradient(145deg, #220C12 0%, #15060A 100%) !important;
    border-color: rgba(200, 16, 46, 0.65) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.8), 0 0 24px rgba(200, 16, 46, 0.28) !important;
    transform: translateY(-4px) !important;
  }
  body:not(.mobile-simulator-active) .home-news-card:hover::before {
    opacity: 1;
  }
  body:not(.mobile-simulator-active) .home-news-thumb-wrap {
    width: 120px !important;
    height: 84px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(200, 16, 46, 0.25) !important;
    background: #090305 !important;
  }
  body:not(.mobile-simulator-active) .home-news-thumb {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  body:not(.mobile-simulator-active) .home-news-card:hover .home-news-thumb {
    transform: scale(1.08) !important;
  }
  body:not(.mobile-simulator-active) .home-news-cat {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(200, 16, 46, 0.08) !important;
    border: 1px solid rgba(200, 16, 46, 0.2) !important;
    color: #c8102e !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    width: fit-content !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 2px !important;
  }
  body:not(.mobile-simulator-active) .home-news-title {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    color: #120D0E !important;
    line-height: 1.4 !important;
    margin: 4px 0 !important;
  }
  body:not(.mobile-simulator-active) .home-news-card:hover .home-news-title,
  body:not(.mobile-simulator-active) .home-news-card:hover .home-news-title a {
    color: #c8102e !important;
    text-shadow: none !important;
  }
  body:not(.mobile-simulator-active) .home-news-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
    font-size: 0.76rem !important;
    color: #64748b !important;
  }
  body:not(.mobile-simulator-active) .home-news-time {
    color: #64748b !important;
    font-size: 0.76rem !important;
  }
  body:not(.mobile-simulator-active) .home-news-dot {
    color: #cbd5e1 !important;
    font-size: 0.8rem !important;
  }
  body:not(.mobile-simulator-active) .home-news-read {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #64748b !important;
    font-size: 0.76rem !important;
  }
  body:not(.mobile-simulator-active) .home-news-read svg {
    width: 13px !important;
    height: 13px !important;
    stroke: currentColor !important;
  }
}

/* Mobile: hide extra desktop meta item */
.desktop-meta-item {
  display: none !important;
}
@media (min-width: 901px) {
  body:not(.mobile-simulator-active) .desktop-meta-item {
    display: inline-flex !important;
  }
}

body.mobile-simulator-active .home-news-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
}

@media (max-width: 400px) {
  .home-news-card {
    padding: 8px 10px;
    gap: 10px;
  }
  .home-news-thumb-wrap {
    width: 92px;
    height: 68px;
    border-radius: 10px;
  }
  .home-news-title {
    font-size: 0.86rem;
  }
  .home-news-cat {
    font-size: 0.74rem;
  }
  .home-news-time {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Modern Standings Table (Target Match: Image 2)
   ========================================================================== */
.modern-standings-wrap {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #11141e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 24px;
}

.modern-standings-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.86rem;
  color: #ffffff;
  background: transparent;
}

.modern-standings-table thead tr {
  background: #0d1018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-standings-table th {
  padding: 10px 2px;
  color: #7b879c;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.modern-standings-table th.th-rank {
  width: 38px;
  padding-left: 6px;
}

.modern-standings-table th.th-team {
  width: auto;
  text-align: left;
  padding-left: 8px;
}

.modern-standings-table th.th-stat {
  width: 25px;
}

.modern-standings-table th.th-points {
  width: 34px;
  padding-right: 6px;
}

.modern-standings-table th.th-form {
  width: 120px;
}

.modern-standings-row {
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  transition: background 0.15s ease;
}

.modern-standings-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

/* Left Indicator Strips (Image 2) */
.modern-standings-row.rank-ucl {
  border-left: 3.5px solid #10b981;
}

.modern-standings-row.rank-uel {
  border-left: 3.5px solid #3b82f6;
}

.modern-standings-row.rank-mid {
  border-left: 3.5px solid transparent;
}

.modern-standings-row.rank-rel {
  border-left: 3.5px solid #ef4444;
}

/* LFC Highlight Row */
.modern-standings-row.lfc-highlight-row {
  background: rgba(200, 16, 46, 0.14) !important;
}

.modern-standings-row.lfc-highlight-row:hover {
  background: rgba(200, 16, 46, 0.22) !important;
}

.modern-standings-table td {
  padding: 8px 2px;
  text-align: center;
  vertical-align: middle;
  font-family: var(--font-num);
  font-size: 0.86rem;
  color: #ffffff;
}

.modern-standings-table td.td-rank {
  padding-left: 4px;
}

.modern-standings-table td.td-team {
  text-align: left;
  padding-left: 8px;
  overflow: hidden;
}

.modern-standings-table td.td-stat {
  font-size: 0.86rem;
  font-weight: 500;
  color: #f1f5f9;
}

.modern-standings-table td.td-points {
  padding-right: 6px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

/* Rank Badges (Image 2) */
.modern-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-num);
  line-height: 1;
}

.modern-rank-badge.rank-ucl {
  background: #dcfce7;
  color: #15803d;
}

.modern-rank-badge.rank-uel {
  background: #dbeafe;
  color: #1d4ed8;
}

.modern-rank-badge.rank-mid {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.modern-rank-badge.rank-rel {
  background: #fee2e2;
  color: #b91c1c;
}

/* Team Cell & Logo */
.modern-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.modern-team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.modern-team-name {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.modern-lfc-pill {
  background: var(--lfc-red, #c8102e);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Standings Home Table dark theme adaptation */
.standings-home-table-wrap {
  background: #11141e !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.standings-home-table-wrap .standings-table th {
  background: #0d1018 !important;
  color: #7b879c !important;
  font-size: 0.8rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.standings-home-table-wrap .standings-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

/* Desktop vs Mobile Column visibility */
.modern-standings-table .col-desktop-only {
  display: none !important;
}

@media (min-width: 850px) {
  body:not(.mobile-simulator-active) .modern-standings-table .col-desktop-only {
    display: table-cell !important;
  }
  body:not(.mobile-simulator-active) .modern-standings-table th.th-stat {
    width: 36px;
  }
}

/* Ultra small mobile screens (<= 360px) */
@media (max-width: 360px) {
  .modern-standings-table th.th-rank {
    width: 32px;
    padding-left: 2px;
  }
  .modern-standings-table td.td-rank {
    padding-left: 2px;
  }
  .modern-rank-badge {
    width: 20px;
    height: 20px;
    font-size: 0.78rem;
  }
  .modern-team-cell {
    gap: 6px;
  }
  .modern-team-name {
    font-size: 0.82rem;
  }
  .modern-standings-table th.th-stat {
    width: 22px;
  }
}



