/* ==========================================================================
   Arsenal Fan Dashboard - Apple "Liquid Glass" UI System
   Viewport-Fitted Cockpit Edition (No Page Scroll on Desktop)
   High-Density Bento Grid • Clean Header • Combined Match Impact
   ========================================================================== */

:root {
  --font-stack: -apple-system, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Inter, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  
  /* Brand Tokens */
  --red: #EF0107;
  --red-glow: rgba(239, 1, 7, 0.45);
  --navy: #063672;
  --gold: #9C824A;
  --gold-glow: rgba(156, 130, 74, 0.35);
  --white: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.74);
  --text-muted: rgba(255, 255, 255, 0.48);
  
  /* Status Colors */
  --win-color: #22C55E;
  --win-bg: rgba(34, 197, 94, 0.18);
  --draw-color: #94A3B8;
  --draw-bg: rgba(148, 163, 184, 0.18);
  --loss-color: #EF4444;
  --loss-bg: rgba(239, 68, 68, 0.18);

  /* Glassmorphism Tokens - Apple Liquid Glass Edition */
  --glass-bg: rgba(6, 12, 28, 0.34);
  --glass-bg-elevated: rgba(10, 18, 38, 0.46);
  --glass-border: rgba(255, 255, 255, 0.22);
  --card-radius: 18px;
  --card-radius-sm: 10px;
  --card-radius-pill: 9999px;
  
  /* Layered Shadows (High-contrast depth so translucent cards pop without clashing) */
  --shadow-card: inset 0 1px 1px 0 rgba(255, 255, 255, 0.32), 0 12px 36px -4px rgba(0, 0, 0, 0.58), 0 24px 64px -8px rgba(0, 0, 0, 0.48);
  --shadow-hover: inset 0 1px 1px 0 rgba(255, 255, 255, 0.45), 0 16px 44px -4px rgba(0, 0, 0, 0.68), 0 32px 80px -8px rgba(0, 0, 0, 0.58);
  --shadow-inner: inset 0 1px 1px 0 rgba(255, 255, 255, 0.32);
}

/* Day Mode Glass Tint */
body.day-mode {
  --glass-bg: rgba(12, 20, 42, 0.28);
  --glass-bg-elevated: rgba(18, 28, 54, 0.4);
  --glass-border: rgba(255, 255, 255, 0.26);
}

/* Matchday Mode Glow */
body.matchday-mode .glass-hero {
  border-color: rgba(239, 1, 7, 0.55);
  box-shadow: 0 0 35px rgba(239, 1, 7, 0.28), var(--shadow-card);
}

body.matchday-mode .matchday-badge {
  display: inline-flex !important;
}

/* --------------------------------------------------------------------------
   Reset & Viewport Fit Architecture (No Page Scroll on Desktop)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Fits strictly on screen */
  font-family: var(--font-stack);
  background-color: #030611;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Slim translucent custom scrollbars for inner card scroll only */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Background Slideshow & Vignette Scrim (Vibrant Emirates Photography)
   -------------------------------------------------------------------------- */
#bg-slideshow-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #030611;
  background-size: cover;
  background-position: center center;
}

.bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.8s ease-in-out, transform 20s linear;
  will-change: opacity, transform;
}

.bg-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

#bg-vignette-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(3, 7, 18, 0.15) 0%, rgba(2, 4, 12, 0.4) 65%, rgba(1, 2, 8, 0.68) 100%);
}

/* --------------------------------------------------------------------------
   App Viewport Container
   -------------------------------------------------------------------------- */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0.55rem 0.85rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Liquid Glass Card Primitive (Luminous Apple Translucency)
   -------------------------------------------------------------------------- */
.glass-card {
  position: relative;
  background: radial-gradient(130% 120% at 0% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(0, 0, 0, 0.18) 100%), var(--glass-bg);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-inner), var(--shadow-card);
  padding: 0.75rem 0.9rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-inner), var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.35);
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.glass-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--card-radius-pill);
  padding: 0.18rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

/* --------------------------------------------------------------------------
   Header Bar (Spacious & Clean 3-Zone Apple Design)
   -------------------------------------------------------------------------- */
.dashboard-header {
  height: 58px;
  min-height: 58px;
  flex-shrink: 0;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: var(--card-radius-sm);
  gap: 0.75rem;
  overflow: visible;
  position: relative;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.club-crest-wrapper {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.club-crest-wrapper::after {
  content: "";
  position: absolute;
  inset: -3px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.75;
}

.club-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.brand-text-block {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1;
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(156, 130, 74, 0.15);
  border: 1px solid rgba(156, 130, 74, 0.35);
  border-radius: var(--card-radius-pill);
  padding: 0.12rem 0.45rem;
}

/* Center Combined Greeting & Results Capsule (Luminous & Balanced) */
.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  margin: 0 0.4rem;
}

.header-status-capsule {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--card-radius-sm);
  padding: 0.22rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.header-status-capsule:hover {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%), rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.header-status-capsule:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.header-greeting-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.15;
}

.greeting-wave {
  font-size: 0.92rem;
  display: inline-block;
  animation: waveMotion 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes waveMotion {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(14deg); }
  40%, 80% { transform: rotate(-8deg); }
}

.greeting-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.greeting-edit-icon {
  font-size: 0.7rem;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 1px;
}

.header-status-capsule:hover .greeting-edit-icon {
  opacity: 1;
  transform: scale(1.15);
}

.header-result-row {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  line-height: 1.1;
  max-width: 100%;
}

.header-result-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.08rem 0.4rem;
  border-radius: var(--card-radius-pill);
  flex-shrink: 0;
  line-height: 1.15;
}

.header-result-badge.badge-win {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ADE80;
}

.header-result-badge.badge-loss {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.header-result-badge.badge-draw {
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #E2E8F0;
}

.header-result-badge.badge-matchday {
  background: rgba(239, 1, 7, 0.35);
  border: 1px solid rgba(239, 1, 7, 0.6);
  color: #FFFFFF;
}

.header-result-badge.badge-live {
  background: rgba(239, 1, 7, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  animation: liveBadgePulse 1.8s infinite;
}

@keyframes liveBadgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.header-result-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Right Status & Controls Capsule */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.live-clock-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius-pill);
}

.live-clock-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.live-clock-date {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 0.4rem;
}

/* Segmented Action Capsule (Uncluttered) */
.header-controls-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--card-radius-pill);
  padding: 2px;
  gap: 2px;
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--white);
  border-radius: var(--card-radius-pill);
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

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

.action-btn.celebrate-btn {
  background: linear-gradient(135deg, rgba(239, 1, 7, 0.45), rgba(156, 130, 74, 0.35));
}

.action-btn.celebrate-btn:hover {
  background: linear-gradient(135deg, rgba(239, 1, 7, 0.7), rgba(156, 130, 74, 0.55));
  box-shadow: 0 0 12px rgba(239, 1, 7, 0.4);
}

.action-btn.celebrate-btn.pulse-active {
  animation: celebratePulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn.wakelock-btn {
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.action-btn.wakelock-btn .wakelock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748B;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.action-btn.wakelock-btn.active {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86EFAC;
}

.action-btn.wakelock-btn.active .wakelock-dot {
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: wakelockPulse 2.5s infinite;
}

@keyframes wakelockPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}

@keyframes celebratePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); box-shadow: 0 0 24px rgba(239, 1, 7, 0.85); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Cockpit Grid (3 Columns)
   -------------------------------------------------------------------------- */
.cockpit-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 32% 38% 30%;
  gap: 0.55rem;
  overflow: hidden;
}

.cockpit-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Dedicated Match Center Grid (Live Match Mode)
   -------------------------------------------------------------------------- */
.match-center-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 28% 44% 28%;
  gap: 0.55rem;
  overflow: hidden;
}

.action-btn.match-mode-btn {
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.action-btn.match-mode-btn .match-mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748B;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.action-btn.match-mode-btn.active {
  background: rgba(239, 1, 7, 0.28);
  border: 1px solid rgba(239, 1, 7, 0.55);
  color: #FCA5A5;
}

.action-btn.match-mode-btn.active .match-mode-dot {
  background: #EF0107;
  box-shadow: 0 0 8px #EF0107;
  animation: liveBadgePulse 1.8s infinite;
}

.action-btn.admode-btn {
  gap: 0.35rem;
  transition: all 0.25s ease;
}

.action-btn.admode-btn.active {
  background: rgba(234, 179, 8, 0.28);
  border: 1px solid rgba(234, 179, 8, 0.65);
  color: #FEF08A;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
}

/* Match Center: Column 1 Lineups */
.match-lineups-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  justify-content: space-between;
}

.lineup-formation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.28rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.lineup-manager-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
}

.lineup-formation-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(156, 130, 74, 0.18);
  border: 1px solid rgba(156, 130, 74, 0.35);
  border-radius: var(--card-radius-pill);
  padding: 0.05rem 0.35rem;
}

.lineup-players-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 2px;
  margin-bottom: 0.35rem;
}

.lineup-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.22rem 0.5rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lineup-player-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.35rem;
}

.lineup-player-num-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0%, #850004 100%);
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lineup-player-num-badge.opp {
  background: radial-gradient(circle, #0284C7 0%, #0369A1 100%);
}

.lineup-player-name-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineup-player-pos-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--card-radius-pill);
  padding: 0.04rem 0.3rem;
}

.lineup-bench-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.28rem 0.5rem;
  flex-shrink: 0;
}

.lineup-bench-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.lineup-bench-names {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.25;
}

/* Match Center: Column 2 Hero Centerpiece */
.match-hero-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  justify-content: space-between;
  gap: 0.45rem;
}

.live-match-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.live-scoreboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.9rem;
  background: radial-gradient(130% 120% at 50% 0%, rgba(239, 1, 7, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%), rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.live-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 105px;
  text-align: center;
}

.live-team-crest-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

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

.live-team-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.live-score-digits-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.live-score-digits {
  font-family: var(--font-mono);
  font-size: 2.85rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 0 25px rgba(239, 1, 7, 0.5), 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.04em;
}

.live-state-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.55rem;
  border-radius: var(--card-radius-pill);
  background: rgba(239, 1, 7, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: liveBadgePulse 1.8s infinite;
}

/* Match Events Timeline */
.live-events-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius-sm);
  padding: 0.35rem 0.6rem;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.live-events-header {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.live-event-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: var(--white);
  padding: 0.18rem 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--card-radius-sm);
}

.live-event-minute {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold);
  min-width: 24px;
}

/* In-Match Stats & Simulation Toolbar */
.live-stats-bar-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius-sm);
  padding: 0.3rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  flex-shrink: 0;
}

.live-sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sim-whistle-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.5), rgba(156, 130, 74, 0.4));
  border: 1px solid rgba(34, 197, 94, 0.6);
  border-radius: var(--card-radius-pill);
  padding: 0.28rem 0.75rem;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sim-whistle-btn:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.75), rgba(156, 130, 74, 0.6));
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.exit-match-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--card-radius-pill);
  padding: 0.28rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exit-match-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Pre-Match Standby Mode (When no real match is currently in progress)
   -------------------------------------------------------------------------- */
.pre-match-hero-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: radial-gradient(130% 120% at 0% 0%, rgba(239, 1, 7, 0.22) 0%, rgba(10, 16, 32, 0.7) 100%);
  border: 1px solid rgba(239, 1, 7, 0.45);
  border-radius: var(--card-radius-sm);
  box-shadow: 0 4px 18px rgba(239, 1, 7, 0.22);
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.pre-match-pulse-indicator {
  position: relative;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pre-match-pulse-indicator .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.pre-match-pulse-indicator .pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: preMatchPulse 2s infinite ease-out;
}

@keyframes preMatchPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.pre-match-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.pre-match-banner-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pre-match-banner-desc {
  font-size: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.25;
}

.pre-match-countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.3rem 0;
}

.pre-match-countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--card-radius-sm);
  padding: 0.22rem 0.5rem;
  min-width: 46px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pre-match-countdown-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.pre-match-countdown-lbl {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.1rem;
}

.lineup-unannounced-box {
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--card-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

.lineup-unannounced-icon {
  font-size: 1.4rem;
}

.lineup-unannounced-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lineup-unannounced-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.provisional-badge-tag {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: var(--card-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.card-title-icon {
  font-size: 0.95rem;
}

.card-scrollable {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

/* --------------------------------------------------------------------------
   Combined Next Match & Table Impact Hero Card
   -------------------------------------------------------------------------- */
.match-board-compact {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.2rem 0;
  gap: 0.4rem;
}

.team-block-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.crest-box-compact {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.crest-img-compact {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-name-compact {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.team-label-compact {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.score-center-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-numerals-compact {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.countdown-grid-compact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0.2rem 0;
}

.countdown-box-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--card-radius-sm);
  padding: 0.2rem 0.42rem;
  min-width: 44px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.countdown-num-compact {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.countdown-label-compact {
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.1rem;
}

.countdown-sep-compact {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.25rem;
}

.match-venue-compact {
  text-align: center;
  font-size: 0.66rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.15rem 0 0.25rem;
}

/* Embedded Table Impact Section */
.embedded-impact-divider {
  margin: 0.35rem 0 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.embedded-impact-divider::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 1, 7, 0.7), transparent);
}

.impact-header-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.impact-chips-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.impact-chip-mini {
  padding: 0.28rem 0.2rem;
  border-radius: var(--card-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.08rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-chip-mini.win-chip  { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.3); }
.impact-chip-mini.draw-chip { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.25); }
.impact-chip-mini.loss-chip { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.3); }

.impact-chip-mini .chip-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.win-chip .chip-title { color: #4ADE80; }
.draw-chip .chip-title { color: #CBD5E1; }
.loss-chip .chip-title { color: #F87171; }

.impact-chip-mini .chip-rank {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.impact-chip-mini .chip-shift {
  font-size: 0.62rem;
  font-weight: 700;
}

.gap-row-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius-sm);
  padding: 0.25rem 0.45rem;
  font-size: 0.66rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Form pills & Recent Results Pills in Most Recent Card */
.form-guide-compact {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-pill-mini {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.62rem;
  color: #fff;
}
.form-pill-mini.win  { background: var(--win-color); }
.form-pill-mini.draw { background: var(--draw-color); color: #0f172a; }
.form-pill-mini.loss { background: var(--loss-color); }

/* Embedded Recent Results Pills Section */
.recent-pills-section {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.recent-pills-header {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.result-pill-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius-pill);
  padding: 0.15rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  transition: all 0.2s ease;
  flex: 1 1 calc(50% - 0.3rem);
  min-width: 110px;
}

.result-pill-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.result-pill-crest {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.result-pill-opp {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.result-pill-score {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Standings Table
   -------------------------------------------------------------------------- */
.standings-table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.standings-table-compact th {
  text-align: left;
  padding: 0.3rem 0.45rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.standings-table-compact th.num-col,
.standings-table-compact td.num-col {
  text-align: center;
}

.standings-table-compact td {
  padding: 0.35rem 0.45rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.standings-table-compact tr.arsenal-row {
  background: linear-gradient(90deg, rgba(239, 1, 7, 0.28) 0%, rgba(239, 1, 7, 0.1) 65%, transparent 100%);
  border-left: 3px solid var(--red);
}

.standings-table-compact tr.arsenal-row td {
  color: var(--white);
  font-weight: 700;
}

.team-cell-compact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-mini-crest {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.table-toggle-btn-compact {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: var(--card-radius-sm);
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.3rem;
  transition: all 0.2s ease;
}

.table-toggle-btn-compact:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Match Lists
   -------------------------------------------------------------------------- */
.match-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.match-item-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--card-radius-sm);
  padding: 0.35rem 0.55rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.match-item-compact:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.22);
}

.match-item-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
}

.match-meta-compact {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.match-comp-mini {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.match-title-mini {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.badge-tag-mini {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.12rem 0.42rem;
  border-radius: var(--card-radius-pill);
  text-transform: uppercase;
}

.badge-tag-mini.badge-win  { background: var(--win-bg); color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.35); }
.badge-tag-mini.badge-draw { background: var(--draw-bg); color: #CBD5E1; border: 1px solid rgba(148, 163, 184, 0.35); }
.badge-tag-mini.badge-loss { background: var(--loss-bg); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.35); }

/* Multi-Competition Distinct Badges */
.comp-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.1rem 0.42rem;
  border-radius: var(--card-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.15;
  white-space: nowrap;
}

.comp-badge.badge-ucl,
.comp-badge-ucl {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(37, 99, 235, 0.25) 100%);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #93C5FD;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.25);
}

.comp-badge.badge-pl,
.comp-badge-pl {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.45) 0%, rgba(16, 185, 129, 0.25) 100%);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #86EFAC;
}

.comp-badge.badge-carabao,
.comp-badge-carabao {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.45) 0%, rgba(245, 158, 11, 0.25) 100%);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #FCD34D;
}

.comp-badge.badge-facup,
.comp-badge-facup {
  background: linear-gradient(135deg, rgba(131, 24, 67, 0.45) 0%, rgba(236, 72, 153, 0.25) 100%);
  border: 1px solid rgba(244, 114, 182, 0.55);
  color: #F9A8D4;
}

.comp-badge.badge-shield,
.comp-badge-shield {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.45) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid rgba(192, 132, 252, 0.55);
  color: #E9D5FF;
}

/* UCL Standings Qualification Bars */
.ucl-qual-divider {
  border-bottom: 2px dashed rgba(96, 165, 250, 0.55) !important;
}

.ucl-playoff-divider {
  border-bottom: 2px dashed rgba(245, 158, 11, 0.45) !important;
}

.standings-legend-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--card-radius-sm);
  font-size: 0.63rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.top8 { background: #60A5FA; box-shadow: 0 0 6px rgba(96, 165, 250, 0.6); }
.legend-dot.playoff { background: #FBBF24; }
.legend-dot.elim { background: #EF4444; }

/* Domestic Cups Standings Layout */
.cups-view-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
}

.cup-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--card-radius-sm);
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.cup-item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.cup-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cup-item-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cup-item-body {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.cup-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.3rem 0.5rem;
  border-radius: var(--card-radius-sm);
  margin-top: 0.2rem;
  font-size: 0.67rem;
}

/* Scorers Strip for European Match */
.ucl-match-scorers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: #93C5FD;
  background: rgba(30, 58, 138, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: var(--card-radius-sm);
  padding: 0.28rem 0.55rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   News Feed (BBC Sport & Real Headlines)
   -------------------------------------------------------------------------- */
.news-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.news-item-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--card-radius-sm);
  padding: 0.35rem 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.news-item-row:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

.news-thumb-mini {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.45);
}

.news-info-mini {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.news-headline-mini {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.news-time-mini {
  font-size: 0.65rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   Gunners Squad Spotlight & Top Performers
   -------------------------------------------------------------------------- */
.squad-leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.player-mini-card {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--card-radius-sm);
  padding: 0.38rem 0.55rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.player-mini-card:hover {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.player-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0%, #850004 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.player-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.player-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.player-rating {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(156, 130, 74, 0.18);
  border: 1px solid rgba(156, 130, 74, 0.35);
  border-radius: var(--card-radius-pill);
  padding: 0.05rem 0.32rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.player-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.12rem;
  gap: 0.2rem;
}

.player-role {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-stat-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #86EFAC;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--card-radius-pill);
  padding: 0.05rem 0.3rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Rotating Matchday Intel Widget (H2H Battle Radar & Squad Availability)
   -------------------------------------------------------------------------- */
.widget-tab-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.widget-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--card-radius-pill);
  padding: 0.18rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.widget-tab-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.widget-tab-btn.active {
  background: radial-gradient(120% 120% at 50% 0%, rgba(239, 1, 7, 0.45) 0%, rgba(239, 1, 7, 0.2) 100%), rgba(255, 255, 255, 0.1);
  border-color: rgba(239, 1, 7, 0.65);
  color: var(--white);
  box-shadow: 0 0 10px rgba(239, 1, 7, 0.35);
}

.custom-widget-container {
  position: relative;
  overflow: hidden;
}

.custom-widget-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  animation: widgetFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* H2H View */
.h2h-record-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.28rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.35rem;
}

.h2h-opponent-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.h2h-badge-chip {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(156, 130, 74, 0.18);
  border: 1px solid rgba(156, 130, 74, 0.35);
  border-radius: var(--card-radius-pill);
  padding: 0.05rem 0.35rem;
}

.h2h-form-dots {
  display: flex;
  align-items: center;
  gap: 0.18rem;
}

.h2h-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.h2h-dot.w { background: #16A34A; color: #fff; }
.h2h-dot.d { background: #64748B; color: #fff; }
.h2h-dot.l { background: #DC2626; color: #fff; }

.h2h-duel-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.6rem;
  background: radial-gradient(130% 120% at 50% 0%, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius-sm);
  margin-bottom: 0.35rem;
  gap: 0.4rem;
}

.h2h-player-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.h2h-player-col.right {
  align-items: flex-end;
  text-align: right;
}

.h2h-player-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.h2h-player-meta {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
}

.h2h-vs-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(156, 130, 74, 0.2);
  border: 1px solid rgba(156, 130, 74, 0.4);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h2h-stats-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  padding: 0.28rem 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.35rem;
}

.h2h-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.h2h-stat-val.left {
  color: #86EFAC;
}

.h2h-stat-val.right {
  color: #93C5FD;
}

.h2h-trivia-footer {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--card-radius-sm);
  padding: 0.22rem 0.5rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-left: 2px solid var(--gold);
}

/* Squad Availability View */
.squad-intel-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.fitness-gauge-card {
  display: flex;
  flex-direction: column;
  padding: 0.32rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.35rem;
}

.fitness-gauge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.22rem;
}

.fitness-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.fitness-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22C55E 0%, #EAB308 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.squad-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.squad-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.55rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.squad-player-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.squad-status-dot {
  font-size: 0.65rem;
}

.squad-player-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.squad-player-pos {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 600;
}

.squad-status-pill {
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--card-radius-pill);
  padding: 0.06rem 0.35rem;
  white-space: nowrap;
}

.squad-status-pill.fit {
  color: #86EFAC;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.squad-status-pill.doubt {
  color: #FDE047;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.squad-status-pill.rehab {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.suspension-watch-chip {
  font-size: 0.63rem;
  font-weight: 600;
  color: #FDE047;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: var(--card-radius-sm);
  padding: 0.22rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.google-sync-badge {
  font-size: 0.58rem;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: var(--card-radius-pill);
  padding: 0.1rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.google-sync-btn {
  font-size: 0.58rem;
  font-weight: 700;
  color: #93C5FD;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--card-radius-pill);
  padding: 0.1rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-sync-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(147, 197, 253, 0.6);
  color: #FFFFFF;
}

.google-sync-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.squad-filter-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.squad-filter-btn {
  padding: 0.12rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: var(--card-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.squad-filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.squad-filter-btn.active {
  background: rgba(239, 1, 7, 0.3);
  border-color: rgba(239, 1, 7, 0.6);
  color: #fff;
  box-shadow: 0 0 8px rgba(239, 1, 7, 0.3);
}

.squad-depth-row {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.squad-depth-col {
  flex: 1;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 0.2rem 0.15rem;
  font-size: 0.58rem;
  color: var(--text-muted);
}

.squad-depth-col strong {
  display: block;
  font-size: 0.66rem;
  color: #86EFAC;
}

.google-report-card {
  margin-top: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--card-radius-sm);
  font-size: 0.61rem;
  color: #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.2s ease;
}

.google-report-card:hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.squad-alert-tag {
  font-size: 0.52rem;
  background: rgba(239, 1, 7, 0.25);
  border: 1px solid rgba(239, 1, 7, 0.45);
  color: #FCA5A5;
  border-radius: 3px;
  padding: 0.02rem 0.25rem;
  font-weight: 800;
  margin-left: 0.3rem;
}

/* --------------------------------------------------------------------------
   On This Day
   -------------------------------------------------------------------------- */
.otd-box-compact {
  padding: 0.55rem 0.7rem;
  background: radial-gradient(130% 120% at 0% 0%, rgba(156, 130, 74, 0.16) 0%, rgba(0, 0, 0, 0.35) 100%), rgba(0, 0, 0, 0.26);
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(156, 130, 74, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.otd-tag-mini {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.otd-text-mini {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   Chant Ticker Bar (Fixed Bottom)
   -------------------------------------------------------------------------- */
.chant-ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 26px;
  z-index: 40;
  background: rgba(3, 6, 17, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: tickerScroll 48s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 1.5rem;
}

.ticker-status-badge {
  position: absolute;
  right: 0.65rem;
  background: rgba(3, 6, 17, 0.95);
  padding-left: 0.65rem;
  font-size: 0.62rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 50;
}

/* --------------------------------------------------------------------------
   Settings Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: radial-gradient(130% 120% at 0% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0.45) 100%), var(--glass-bg-elevated);
  backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-hover);
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.modal-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--card-radius-sm);
  padding: 0.55rem 0.8rem;
  color: var(--white);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  margin-bottom: 0.9rem;
}

.modal-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Animations */
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive Fallback */
@media (max-width: 980px), (max-height: 600px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }
  .app-container {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    padding-bottom: 3.5rem;
  }
  .cockpit-grid,
  .match-center-grid {
    grid-template-columns: 1fr;
    height: auto !important;
    overflow: visible !important;
  }
  .cockpit-col {
    height: auto !important;
  }
}

/* ==========================================================================
   Fullscreen Mode & Cinema Display Typography Scale (No Squinting!)
   Targeted for TV / 1080p+ Fullscreen Monitoring & Large Displays
   ========================================================================== */
:fullscreen .app-container,
:-webkit-full-screen .app-container,
body.is-fullscreen .app-container {
  padding: 0.85rem 1.25rem 2.6rem;
  gap: 0.8rem;
}

:fullscreen .dashboard-header,
:-webkit-full-screen .dashboard-header,
body.is-fullscreen .dashboard-header {
  height: 64px;
  min-height: 64px;
  flex-direction: row !important;
  padding: 0.45rem 1.15rem;
}

:fullscreen .club-crest-wrapper,
:-webkit-full-screen .club-crest-wrapper,
body.is-fullscreen .club-crest-wrapper {
  width: 42px;
  height: 42px;
}

:fullscreen .brand-title,
:-webkit-full-screen .brand-title,
body.is-fullscreen .brand-title {
  font-size: 1.18rem;
}

:fullscreen .brand-badge,
:-webkit-full-screen .brand-badge,
body.is-fullscreen .brand-badge {
  font-size: 0.74rem;
  padding: 0.16rem 0.55rem;
}

:fullscreen .header-status-capsule,
:-webkit-full-screen .header-status-capsule,
body.is-fullscreen .header-status-capsule {
  padding: 0.35rem 1.15rem;
  gap: 0.22rem;
}

:fullscreen .greeting-wave,
:-webkit-full-screen .greeting-wave,
body.is-fullscreen .greeting-wave {
  font-size: 1.15rem;
}

:fullscreen .greeting-text,
:-webkit-full-screen .greeting-text,
body.is-fullscreen .greeting-text {
  font-size: 1.02rem;
}

:fullscreen .header-result-text,
:-webkit-full-screen .header-result-text,
body.is-fullscreen .header-result-text {
  font-size: 0.95rem;
}

:fullscreen .header-result-badge,
:-webkit-full-screen .header-result-badge,
body.is-fullscreen .header-result-badge {
  font-size: 0.72rem;
  padding: 0.14rem 0.5rem;
}

:fullscreen .live-clock-time,
:-webkit-full-screen .live-clock-time,
body.is-fullscreen .live-clock-time {
  font-size: 1.05rem;
}

:fullscreen .live-clock-date,
:-webkit-full-screen .live-clock-date,
body.is-fullscreen .live-clock-date {
  font-size: 0.82rem;
}

:fullscreen .action-btn,
:-webkit-full-screen .action-btn,
body.is-fullscreen .action-btn {
  font-size: 0.84rem;
  padding: 0.32rem 0.72rem;
}

:fullscreen .action-btn.wakelock-btn .wakelock-dot,
:-webkit-full-screen .action-btn.wakelock-btn .wakelock-dot,
body.is-fullscreen .action-btn.wakelock-btn .wakelock-dot {
  width: 9px;
  height: 9px;
}

:fullscreen .card-title,
:-webkit-full-screen .card-title,
body.is-fullscreen .card-title {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

:fullscreen .card-title-icon,
:-webkit-full-screen .card-title-icon,
body.is-fullscreen .card-title-icon {
  font-size: 1.12rem;
}

:fullscreen .glass-pill,
:-webkit-full-screen .glass-pill,
body.is-fullscreen .glass-pill {
  font-size: 0.78rem;
  padding: 0.22rem 0.65rem;
}

/* Match & Scoreboard in Fullscreen */
:fullscreen .crest-box-compact,
:-webkit-full-screen .crest-box-compact,
body.is-fullscreen .crest-box-compact {
  width: 58px;
  height: 58px;
  padding: 7px;
}

:fullscreen .team-name-compact,
:-webkit-full-screen .team-name-compact,
body.is-fullscreen .team-name-compact {
  font-size: 1.06rem;
  max-width: 155px;
}

:fullscreen .team-label-compact,
:-webkit-full-screen .team-label-compact,
body.is-fullscreen .team-label-compact {
  font-size: 0.75rem;
}

:fullscreen .score-numerals-compact,
:-webkit-full-screen .score-numerals-compact,
body.is-fullscreen .score-numerals-compact {
  font-size: 2.85rem;
}

:fullscreen .countdown-box-compact,
:-webkit-full-screen .countdown-box-compact,
body.is-fullscreen .countdown-box-compact {
  padding: 0.4rem 0.68rem;
  min-width: 58px;
}

:fullscreen .countdown-num-compact,
:-webkit-full-screen .countdown-num-compact,
body.is-fullscreen .countdown-num-compact {
  font-size: 1.85rem;
}

:fullscreen .countdown-label-compact,
:-webkit-full-screen .countdown-label-compact,
body.is-fullscreen .countdown-label-compact {
  font-size: 0.72rem;
}

:fullscreen .match-venue-compact,
:-webkit-full-screen .match-venue-compact,
body.is-fullscreen .match-venue-compact {
  font-size: 0.85rem;
}

:fullscreen .impact-summary-compact,
:-webkit-full-screen .impact-summary-compact,
body.is-fullscreen .impact-summary-compact {
  font-size: 0.85rem;
}

:fullscreen .impact-title-compact,
:-webkit-full-screen .impact-title-compact,
body.is-fullscreen .impact-title-compact {
  font-size: 0.76rem;
}

:fullscreen .impact-prob-num,
:-webkit-full-screen .impact-prob-num,
body.is-fullscreen .impact-prob-num {
  font-size: 0.95rem;
}

/* Standings in Fullscreen */
:fullscreen .standings-table-compact,
:-webkit-full-screen .standings-table-compact,
body.is-fullscreen .standings-table-compact {
  font-size: 0.94rem;
}

:fullscreen .standings-table-compact th,
:-webkit-full-screen .standings-table-compact th,
body.is-fullscreen .standings-table-compact th {
  font-size: 0.78rem;
  padding: 0.42rem 0.55rem;
}

:fullscreen .standings-table-compact td,
:-webkit-full-screen .standings-table-compact td,
body.is-fullscreen .standings-table-compact td {
  padding: 0.45rem 0.55rem;
}

:fullscreen .team-mini-crest,
:-webkit-full-screen .team-mini-crest,
body.is-fullscreen .team-mini-crest {
  width: 22px;
  height: 22px;
}

:fullscreen .table-toggle-btn-compact,
:-webkit-full-screen .table-toggle-btn-compact,
body.is-fullscreen .table-toggle-btn-compact {
  font-size: 0.82rem;
  padding: 0.38rem 0.65rem;
}

/* Upcoming Fixtures in Fullscreen */
:fullscreen .match-item-compact,
:-webkit-full-screen .match-item-compact,
body.is-fullscreen .match-item-compact {
  padding: 0.45rem 0.65rem;
}

:fullscreen .match-title-mini,
:-webkit-full-screen .match-title-mini,
body.is-fullscreen .match-title-mini {
  font-size: 0.92rem;
}

:fullscreen .match-comp-mini,
:-webkit-full-screen .match-comp-mini,
body.is-fullscreen .match-comp-mini {
  font-size: 0.75rem;
}

:fullscreen .badge-tag-mini,
:-webkit-full-screen .badge-tag-mini,
body.is-fullscreen .badge-tag-mini {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}

/* News in Fullscreen */
:fullscreen .news-item-row,
:-webkit-full-screen .news-item-row,
body.is-fullscreen .news-item-row {
  padding: 0.48rem 0.65rem;
  gap: 0.75rem;
}

:fullscreen .news-thumb-mini,
:-webkit-full-screen .news-thumb-mini,
body.is-fullscreen .news-thumb-mini {
  width: 58px;
  height: 42px;
}

:fullscreen .news-headline-mini,
:-webkit-full-screen .news-headline-mini,
body.is-fullscreen .news-headline-mini {
  font-size: 0.92rem;
  line-height: 1.35;
}

:fullscreen .news-time-mini,
:-webkit-full-screen .news-time-mini,
body.is-fullscreen .news-time-mini {
  font-size: 0.75rem;
}

/* Squad Spotlight in Fullscreen */
:fullscreen .player-mini-card,
:-webkit-full-screen .player-mini-card,
body.is-fullscreen .player-mini-card {
  padding: 0.5rem 0.7rem;
  gap: 0.65rem;
}

:fullscreen .player-avatar-badge,
:-webkit-full-screen .player-avatar-badge,
body.is-fullscreen .player-avatar-badge {
  width: 38px;
  height: 38px;
  font-size: 0.92rem;
}

:fullscreen .player-name,
:-webkit-full-screen .player-name,
body.is-fullscreen .player-name {
  font-size: 0.92rem;
}

:fullscreen .player-rating,
:-webkit-full-screen .player-rating,
body.is-fullscreen .player-rating {
  font-size: 0.75rem;
  padding: 0.08rem 0.4rem;
}

:fullscreen .player-role,
:-webkit-full-screen .player-role,
body.is-fullscreen .player-role {
  font-size: 0.74rem;
}

:fullscreen .player-stat-tag,
:-webkit-full-screen .player-stat-tag,
body.is-fullscreen .player-stat-tag {
  font-size: 0.74rem;
  padding: 0.08rem 0.4rem;
}

/* Matchday Intel Widget in Fullscreen */
:fullscreen .widget-tab-btn,
:-webkit-full-screen .widget-tab-btn,
body.is-fullscreen .widget-tab-btn {
  font-size: 0.78rem;
  padding: 0.22rem 0.65rem;
}

:fullscreen .h2h-opponent-tag,
:-webkit-full-screen .h2h-opponent-tag,
body.is-fullscreen .h2h-opponent-tag {
  font-size: 0.86rem;
}

:fullscreen .h2h-player-name,
:-webkit-full-screen .h2h-player-name,
body.is-fullscreen .h2h-player-name {
  font-size: 0.88rem;
}

:fullscreen .h2h-stat-row,
:-webkit-full-screen .h2h-stat-row,
body.is-fullscreen .h2h-stat-row {
  font-size: 0.78rem;
}

:fullscreen .h2h-trivia-footer,
:-webkit-full-screen .h2h-trivia-footer,
body.is-fullscreen .h2h-trivia-footer {
  font-size: 0.78rem;
}

:fullscreen .fitness-gauge-header,
:-webkit-full-screen .fitness-gauge-header,
body.is-fullscreen .fitness-gauge-header {
  font-size: 0.82rem;
}

:fullscreen .squad-player-name,
:-webkit-full-screen .squad-player-name,
body.is-fullscreen .squad-player-name {
  font-size: 0.84rem;
}

:fullscreen .squad-player-pos,
:-webkit-full-screen .squad-player-pos,
body.is-fullscreen .squad-player-pos {
  font-size: 0.72rem;
}

:fullscreen .suspension-watch-chip,
:-webkit-full-screen .suspension-watch-chip,
body.is-fullscreen .suspension-watch-chip {
  font-size: 0.76rem;
}

/* History in Fullscreen */
:fullscreen .otd-text-mini,
:-webkit-full-screen .otd-text-mini,
body.is-fullscreen .otd-text-mini {
  font-size: 0.92rem;
  line-height: 1.45;
}

:fullscreen .otd-tag-mini,
:-webkit-full-screen .otd-tag-mini,
body.is-fullscreen .otd-tag-mini {
  font-size: 0.76rem;
}

/* Bottom Ticker in Fullscreen */
:fullscreen .chant-ticker-bar,
:-webkit-full-screen .chant-ticker-bar,
body.is-fullscreen .chant-ticker-bar {
  height: 32px;
}

:fullscreen .ticker-item,
:-webkit-full-screen .ticker-item,
body.is-fullscreen .ticker-item {
  font-size: 0.85rem;
}

:fullscreen .ticker-status-badge,
:-webkit-full-screen .ticker-status-badge,
body.is-fullscreen .ticker-status-badge {
  font-size: 0.75rem;
}

/* Advert Mode HUD in Fullscreen / Cinema Display */
:fullscreen .advert-hud,
:-webkit-full-screen .advert-hud,
body.is-fullscreen .advert-hud {
  top: 24px;
  padding: 0.95rem 1.85rem;
  min-width: 720px;
}

:fullscreen .advert-step-title,
:-webkit-full-screen .advert-step-title,
body.is-fullscreen .advert-step-title {
  font-size: 1.65rem;
  font-weight: 800;
}

:fullscreen .advert-ctrl-btn,
:-webkit-full-screen .advert-ctrl-btn,
body.is-fullscreen .advert-ctrl-btn {
  font-size: 1.15rem;
  padding: 0.45rem 1rem;
}

/* Large Display Auto-Scaling */
@media (min-height: 860px) and (min-width: 1200px) {
  .brand-title { font-size: 1.12rem; }
  .greeting-text { font-size: 0.98rem; }
  .card-title { font-size: 0.88rem; }
  .countdown-num-compact { font-size: 1.65rem; }
  .score-numerals-compact { font-size: 2.5rem; }
  .team-name-compact { font-size: 0.98rem; }
  .standings-table-compact { font-size: 0.88rem; }
  .match-title-mini { font-size: 0.86rem; }
  .news-headline-mini { font-size: 0.85rem; }
  .player-name { font-size: 0.86rem; }
  .otd-text-mini { font-size: 0.88rem; }
}

/* --------------------------------------------------------------------------
   Advert Mode Showcase HUD (Liquid Glass Floating Pill)
   -------------------------------------------------------------------------- */
.advert-hud {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: radial-gradient(130% 120% at 50% 0%, rgba(239, 1, 7, 0.45) 0%, rgba(10, 16, 32, 0.96) 100%), rgba(3, 6, 17, 0.97);
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--card-radius-pill);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.85), 0 0 35px rgba(239, 1, 7, 0.45);
  padding: 0.75rem 1.65rem;
  min-width: 660px;
  max-width: 94vw;
  animation: hudSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hudSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.advert-hud-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
}

.advert-hud-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}

.advert-step-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.015em;
}

.advert-hud-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.advert-ctrl-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: var(--card-radius-pill);
  padding: 0.4rem 0.85rem;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.advert-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.advert-exit-btn {
  background: rgba(239, 68, 68, 0.45);
  border-color: rgba(239, 68, 68, 0.75);
  color: #fff;
}

.advert-exit-btn:hover {
  background: rgba(239, 68, 68, 0.75);
}

.advert-progress-track {
  height: 4.5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.advert-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.advert-speed-btn {
  background: rgba(234, 179, 8, 0.25);
  border-color: rgba(234, 179, 8, 0.55);
  color: #FEF08A;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
}

.advert-speed-btn:hover {
  background: rgba(234, 179, 8, 0.45);
}

/* Feature Spotlight Glow during Time Lapse Showcase (Much Thicker & Brighter Yellow) */
.advert-spotlight {
  position: relative;
  border: 3.5px solid #FFEA00 !important;
  outline: 2.5px solid rgba(255, 234, 0, 0.8) !important;
  outline-offset: 3px !important;
  box-shadow: 
    0 0 25px rgba(255, 234, 0, 0.95),
    0 0 60px rgba(255, 215, 0, 0.85),
    0 0 105px rgba(255, 200, 0, 0.65),
    inset 0 0 30px rgba(255, 234, 0, 0.45),
    0 18px 50px rgba(0, 0, 0, 0.9) !important;
  transform: translateY(-3px) scale(1.02) !important;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 50 !important;
  animation: spotlightPulse 1.8s infinite ease-in-out !important;
}

@keyframes spotlightPulse {
  0%, 100% {
    border-color: #FFEA00;
    box-shadow: 
      0 0 25px rgba(255, 234, 0, 0.9),
      0 0 55px rgba(255, 215, 0, 0.75),
      0 0 90px rgba(255, 200, 0, 0.55),
      inset 0 0 25px rgba(255, 234, 0, 0.35),
      0 18px 50px rgba(0, 0, 0, 0.9);
  }
  50% {
    border-color: #FFF740;
    box-shadow: 
      0 0 38px rgba(255, 247, 64, 1),
      0 0 85px rgba(255, 230, 0, 0.95),
      0 0 135px rgba(255, 215, 0, 0.75),
      inset 0 0 35px rgba(255, 247, 64, 0.55),
      0 22px 58px rgba(0, 0, 0, 0.95);
  }
}

.chant-ticker-bar.advert-spotlight {
  transform: none !important;
  border-top: 3.5px solid #FFEA00 !important;
  outline: none !important;
  box-shadow: 
    0 -4px 30px rgba(255, 234, 0, 0.95),
    0 -8px 65px rgba(255, 215, 0, 0.75),
    inset 0 4px 20px rgba(255, 234, 0, 0.4) !important;
}

/* On-screen Mode Toast Notification */
.advert-toast {
  position: fixed;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: radial-gradient(130% 120% at 50% 0%, rgba(239, 1, 7, 0.4) 0%, rgba(10, 16, 32, 0.95) 100%), rgba(3, 6, 17, 0.95);
  border: 1.5px solid rgba(239, 1, 7, 0.55);
  border-radius: var(--card-radius-pill);
  color: #fff;
  padding: 0.5rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(239, 1, 7, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.advert-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   2D Pitch Radar & Match Ball Tracking Arena (Live Match Mode)
   Inspired by Bet365 / SofaScore / Opta Live Match Centers
   ========================================================================== */
.match-pitch-radar-card {
  background: radial-gradient(130% 120% at 50% 0%, rgba(239, 1, 7, 0.08) 0%, rgba(0, 0, 0, 0.45) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--card-radius);
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.pitch-radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pitch-mode-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
  border-radius: var(--card-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pitch-tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--card-radius-pill);
  padding: 0.18rem 0.55rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pitch-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pitch-tab-btn.active {
  background: rgba(239, 1, 7, 0.35);
  color: #fff;
  border: 1px solid rgba(239, 1, 7, 0.5);
  box-shadow: 0 0 10px rgba(239, 1, 7, 0.3);
}

.pitch-direction-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(156, 130, 74, 0.15);
  border: 1px solid rgba(156, 130, 74, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: var(--card-radius-pill);
}

/* Dynamic Live Action Status Banner */
.pitch-action-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.6rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius-sm);
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.pitch-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: var(--card-radius-pill);
  transition: all 0.3s ease;
}

.pitch-action-pill.dangerous {
  background: linear-gradient(135deg, rgba(239, 1, 7, 0.75), rgba(220, 38, 38, 0.95));
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 1, 7, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: radarDangerPulse 1.2s infinite;
}

.pitch-action-pill.shot {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.8), rgba(217, 119, 6, 0.95));
  color: #fff;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  animation: radarShotPulse 1.4s infinite;
}

.pitch-action-pill.goal {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.95));
  color: #fff;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
  border: 1px solid #fff;
  animation: radarGoalExplosion 1s infinite;
}

.pitch-action-pill.corner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(37, 99, 235, 0.95));
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pitch-action-pill.attack {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.75), rgba(5, 150, 105, 0.9));
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pitch-action-pill.safe {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pitch-action-pill.save {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.8), rgba(202, 138, 4, 0.95));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.pitch-action-zone-text {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2D Pitch Arena Surface */
.pitch-arena-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  min-height: 200px;
  max-height: 260px;
  background: repeating-linear-gradient(
    90deg,
    #0f3d1f 0px,
    #0f3d1f 6.25%,
    #0d341a 6.25%,
    #0d341a 12.5%
  );
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--card-radius-sm);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.75), 0 6px 18px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.pitch-field-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pitch-line {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.6;
  fill: none;
}

.pitch-line-center-circle {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.6;
  fill: none;
}

.pitch-line-dash {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4, 4;
  fill: none;
}

.pitch-goal-net {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.8;
  fill: rgba(255, 255, 255, 0.04);
}

/* Animated Ball & Vector Trajectories - Dotted lines hidden per requirement */
.pitch-trajectory-svg,
.pitch-vector-path,
.pitch-vector-arrow {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pitch-ball-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  z-index: 25;
  pointer-events: none;
  /* Strictly linear straight-line movements without cubic-bezier floating */
  transition: none !important;
}

/* Dynamic Live Context Bubble Attached Directly Above Ball */
.pitch-ball-context-bubble {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-display, inherit);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 35;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.pitch-ball-context-bubble .context-bubble-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(15, 23, 42, 0.94);
  transition: border-top-color 0.2s ease;
}

/* Context Bubble Visual Variants */
.pitch-ball-context-bubble.dangerous {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.96), rgba(153, 27, 27, 0.96));
  border-color: #fca5a5;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.75), 0 0 12px rgba(239, 68, 68, 0.8);
  animation: contextPulseDanger 1.2s ease-in-out infinite;
}
.pitch-ball-context-bubble.dangerous .context-bubble-arrow {
  border-top-color: rgba(153, 27, 27, 0.96);
}

.pitch-ball-context-bubble.penalty {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.96), rgba(194, 65, 12, 0.96));
  border-color: #fed7aa;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.7);
  animation: contextPulseDanger 1.2s ease-in-out infinite;
}
.pitch-ball-context-bubble.penalty .context-bubble-arrow {
  border-top-color: rgba(194, 65, 12, 0.96);
}

.pitch-ball-context-bubble.attack {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
  border-color: #93c5fd;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.6);
}
.pitch-ball-context-bubble.attack .context-bubble-arrow {
  border-top-color: rgba(29, 78, 216, 0.95);
}

.pitch-ball-context-bubble.safe {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  border-color: #6ee7b7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}
.pitch-ball-context-bubble.safe .context-bubble-arrow {
  border-top-color: rgba(5, 150, 105, 0.95);
}

.pitch-ball-context-bubble.goal {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border-color: #ffffff;
  color: #0b132b;
  font-weight: 900;
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.85), 0 0 20px #ffd700;
  animation: contextPulseGoal 0.7s ease-in-out infinite alternate;
}
.pitch-ball-context-bubble.goal .context-bubble-arrow {
  border-top-color: #f59e0b;
}

.pitch-ball-context-bubble.shot {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(249, 115, 22, 0.96));
  border-color: #fecdd3;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.7);
}
.pitch-ball-context-bubble.shot .context-bubble-arrow {
  border-top-color: rgba(249, 115, 22, 0.96);
}

.pitch-ball-context-bubble.save {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.95), rgba(109, 40, 217, 0.95));
  border-color: #e9d5ff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.6);
}
.pitch-ball-context-bubble.save .context-bubble-arrow {
  border-top-color: rgba(109, 40, 217, 0.95);
}

.pitch-ball-context-bubble.corner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(2, 132, 199, 0.95));
  border-color: #bae6fd;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}
.pitch-ball-context-bubble.corner .context-bubble-arrow {
  border-top-color: rgba(2, 132, 199, 0.95);
}

.pitch-ball-context-bubble.freekick {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.95), rgba(180, 83, 9, 0.95));
  border-color: #fde68a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5);
}
.pitch-ball-context-bubble.freekick .context-bubble-arrow {
  border-top-color: rgba(180, 83, 9, 0.95);
}

@keyframes contextPulseDanger {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.75), 0 0 10px rgba(239, 68, 68, 0.8);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 22px rgba(239, 68, 68, 0.95), 0 0 18px rgba(255, 120, 120, 0.95);
  }
}

@keyframes contextPulseGoal {
  0% { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-50%) scale(1.12); }
}

/* Half & Attacking Direction Toggle Button */
.pitch-half-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 3px 9px;
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  user-select: none;
}

.pitch-half-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

.pitch-half-toggle-btn:active {
  transform: translateY(0);
}

.pitch-half-badge {
  background: rgba(239, 1, 7, 0.25);
  border: 1px solid rgba(239, 1, 7, 0.4);
  color: #fca5a5;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.pitch-ball-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  border: 1.2px solid #000;
  box-shadow: 0 0 10px #fff, 0 0 18px rgba(255, 215, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  animation: pitchBallSpin 2.5s linear infinite;
}

.pitch-ball-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 215, 0, 0.8);
  animation: pitchBallPulseRing 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

/* Zone Ripple Effect */
.pitch-touch-ripple {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(239, 1, 7, 0.7);
  background: rgba(239, 1, 7, 0.18);
  animation: touchRippleAnim 1.4s ease-out forwards;
  pointer-events: none;
  z-index: 12;
}

/* Tactical Heatmap Layer */
.pitch-heatmap-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pitch-heatmap-layer.active {
  opacity: 1;
}

.heatmap-blob {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(14px);
  mix-blend-mode: screen;
}

/* Shot Map Layer */
.pitch-shotmap-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 9;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pitch-shotmap-layer.active {
  opacity: 1;
}

.shotmap-marker {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  color: #fff;
}

.shotmap-marker:hover {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
}

.shotmap-marker.goal {
  background: #22c55e;
  border: 1.5px solid #fff;
  box-shadow: 0 0 12px #22c55e;
}

.shotmap-marker.saved {
  background: #3b82f6;
  border: 1.5px solid #fff;
  box-shadow: 0 0 8px #3b82f6;
}

.shotmap-marker.blocked {
  background: #f59e0b;
  border: 1.5px solid #fff;
}

.shotmap-marker.offtarget {
  background: #ef4444;
  border: 1.5px solid #fff;
}

/* Pitch Telemetry HUD */
.pitch-telemetry-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: var(--card-radius-sm);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.pitch-telemetry-hud strong {
  color: #fff;
}

/* Attacking Momentum & Dominance Meter */
.pitch-momentum-meter {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0.5rem;
  border-radius: var(--card-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pitch-momentum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.63rem;
  font-weight: 700;
}

.momentum-team-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pitch-momentum-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius-pill);
  display: flex;
  overflow: hidden;
}

.pitch-momentum-fill-ars {
  height: 100%;
  background: linear-gradient(90deg, #ef0107, #ff4d4f);
  box-shadow: 0 0 8px rgba(239, 1, 7, 0.6);
  transition: width 0.5s ease;
}

.pitch-momentum-fill-opp {
  height: 100%;
  background: linear-gradient(90deg, #063672, #3b82f6);
  transition: width 0.5s ease;
}

/* Tactical Simulation & Action Triggers */
.pitch-tactical-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pitch-sim-triggers-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  flex: 1;
}

.pitch-trigger-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--card-radius-pill);
  padding: 0.16rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.pitch-trigger-pill:hover {
  background: rgba(239, 1, 7, 0.3);
  border-color: rgba(239, 1, 7, 0.6);
  transform: translateY(-1px);
}

.pitch-sim-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--card-radius-pill);
  padding: 0.16rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pitch-sim-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Play Commentary Log */
.pitch-play-commentary {
  font-size: 0.67rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  border-left: 2px solid var(--primary-red);
  padding: 0.22rem 0.5rem;
  border-radius: 0 var(--card-radius-sm) var(--card-radius-sm) 0;
  line-height: 1.3;
}

@keyframes pitchVectorFlow {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}

@keyframes pitchBallSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pitchBallPulseRing {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes radarDangerPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(239, 1, 7, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 22px rgba(239, 1, 7, 0.9); }
}

@keyframes radarShotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 14px rgba(245, 158, 11, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 0 22px rgba(245, 158, 11, 0.9); }
}

@keyframes radarGoalExplosion {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 28px rgba(34, 197, 94, 1); }
}

@keyframes touchRippleAnim {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

