/* FlowState Live Pro Game Center - Core Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');
@import url('./theme.css');

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

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg-dark: #1A2026;
  --bg-card: #232B33;
  --bg-card-hover: #2c3640;
  --bg-card-subtle: #1c232a;
  --text-main: #FAF6F0;
  --text-secondary: rgba(250, 246, 240, 0.75);
  --text-muted: rgba(250, 246, 240, 0.5);
  
  --brand-coral: #F78E6E;
  --brand-coral-hover: #e27a5b;
  --brand-coral-glow: #ffa387;
  --brand-teal: #2D6A60;
  --brand-teal-hover: #23544c;
  --brand-teal-glow: #3d8579;
  
  --turf-green: #1b3d2f;
  --turf-green-light: #234f3d;
  --turf-lines: rgba(255, 255, 255, 0.28);
  
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  
  --border-card: #2e3843;
  --border-subtle: #252d37;
  
  --radius-pill: 9999px;
  --radius-card: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glow Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: blob-drift 22s infinite alternate ease-in-out;
}

.blob-1 {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #F78E6E 0%, rgba(247, 142, 110, 0) 70%);
  top: -15%;
  right: -10%;
  animation-duration: 25s;
}

.blob-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #2D6A60 0%, rgba(45, 106, 96, 0) 70%);
  bottom: -20%;
  left: -15%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #ffa387 0%, rgba(255, 163, 135, 0) 70%);
  top: 35%;
  left: 30%;
  opacity: 0.1;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
  100% { transform: translate(40px, -20px) scale(0.95); }
}

/* Main Layout Wrapper */
.app-layout {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 5rem;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.88;
}

.nav-logo {
  width: 36px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(247, 142, 110, 0.4));
}

.nav-title-group {
  display: flex;
  flex-direction: column;
}

.nav-title,
.nav-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.nav-subtitle,
.nav-brand-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-coral);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(35, 43, 51, 0.65);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-back-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-2px);
}

.nav-back-btn svg {
  transition: transform 0.2s ease;
}

.nav-back-btn:hover svg {
  transform: translateX(-3px);
}

.nav-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(45, 106, 96, 0.35);
  border: 1px solid rgba(45, 106, 96, 0.6);
  color: #6ee7b7;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px #10b981; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* =========================================================================
   SCOREBOARD HERO SECTION (Away Score - Quarter & Time - Home Score)
   ========================================================================= */
.scoreboard-hero {
  background: linear-gradient(180deg, rgba(35, 43, 51, 0.95) 0%, rgba(26, 32, 38, 0.98) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.scoreboard-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F59E0B 0%, var(--brand-coral) 50%, var(--brand-teal) 100%);
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

/* Team Side Cards */
.team-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.team-panel.away-team {
  justify-content: flex-start;
}

.team-panel.home-team {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.team-crest {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.team-crest svg {
  width: 44px;
  height: 44px;
}

.team-info {
  display: flex;
  flex-direction: column;
}

.team-panel.home-team .team-info {
  text-align: right;
}

.team-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  white-space: nowrap;
}

.team-record {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Big Digits */
.team-score {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-main);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  min-width: 68px;
  text-align: center;
}

.team-panel.away-team .team-score {
  margin-left: auto;
  color: #FCD34D; /* Radiance Golden Accent */
}

.team-panel.home-team .team-score {
  margin-right: auto;
  color: var(--brand-coral); /* Soul Coral Accent */
}

/* Center Quarter & Clock Panel */
.game-center-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

.live-dot-red {
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-red 1.4s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.quarter-label {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
  text-transform: uppercase;
}

.game-clock {
  font-family: var(--font-mono);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 2px 0 6px;
}

.possession-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.possession-disc-icon {
  width: 14px;
  height: 14px;
  fill: var(--brand-coral);
}

/* Simulation Controls Bar */
.sim-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.sim-status-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-status-text strong {
  color: var(--text-main);
}

.sim-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-sim {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sim:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-sim.btn-primary {
  background: linear-gradient(135deg, var(--brand-coral) 0%, #e27a5b 100%);
  border-color: var(--brand-coral);
  color: #1A2026;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(247, 142, 110, 0.35);
}

.btn-sim.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(247, 142, 110, 0.5);
}

/* =========================================================================
   HORIZONTAL FIELD GRAPHIC (7 Jerseys + Disc Possession Highlight)
   ========================================================================= */
.section-container {
  margin-bottom: 2.25rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

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

.section-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(247, 142, 110, 0.15);
  border: 1px solid rgba(247, 142, 110, 0.35);
  color: var(--brand-coral);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.field-card {
  background: #141c22;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.field-legend-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.field-legend-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-disc-dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffffff, 0 0 18px var(--brand-coral);
}

.legend-jersey-sample {
  width: 14px;
  height: 14px;
  background: #6D28D9;
  border: 1px solid #F59E0B;
  border-radius: 3px;
}

/* The Horizontal Pitch Canvas / Container (Display-Only Graphic) */
.ultimate-field-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6.2;
  min-height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  user-select: none;
  pointer-events: none;
}

/* Turf Background with Mowing Striping */
.turf-background {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    #173b2c 0px,
    #173b2c 40px,
    #1a4332 40px,
    #1a4332 80px
  );
}

/* Horizontal Field Markings */
.field-grid-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 18% 64% 18%; /* Left Endzone, Playing Field Proper, Right Endzone */
  pointer-events: none;
}

.endzone-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
}

.endzone-zone.away-endzone {
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.endzone-zone.home-endzone {
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  background: linear-gradient(-90deg, rgba(247, 142, 110, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.endzone-watermark {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.playing-field-proper {
  position: relative;
}

/* Brick Marks & Yard Lines */
.midfield-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.brick-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brick-mark::before, .brick-mark::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
}

.brick-mark::before {
  left: 5px; top: 0; width: 2px; height: 12px;
}

.brick-mark::after {
  left: 0; top: 5px; width: 12px; height: 2px;
}

.brick-left { left: 25%; }
.brick-right { left: 75%; }

/* Yard Labels */
.yard-markers-row {
  position: absolute;
  bottom: 6px;
  left: 18%;
  right: 18%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* Vector pass flight line (SVG layer) */
.field-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Seven Jersey Tokens Layer */
.jerseys-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Display-Only Jersey Card */
.player-jersey-token {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jersey-graphic-wrap {
  position: relative;
  width: 44px;
  height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s ease;
}

.jersey-svg {
  width: 100%;
  height: 100%;
}

.jersey-number {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  color: #FAF6F0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.player-name-tag {
  margin-top: 4px;
  background: rgba(26, 32, 38, 0.88);
  border: 1px solid var(--border-card);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
}

.player-position-pill {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--brand-coral);
  text-transform: uppercase;
}

/* When the player has the disc! */
.player-jersey-token.has-disc {
  z-index: 8;
}

.player-jersey-token.has-disc .jersey-graphic-wrap {
  filter: drop-shadow(0 0 16px rgba(247, 142, 110, 0.9)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
  animation: disc-pulse 1.8s infinite;
}

.player-jersey-token.has-disc .player-name-tag {
  background: #1A2026;
  border-color: var(--brand-coral);
  color: #FAF6F0;
  box-shadow: 0 0 12px rgba(247, 142, 110, 0.5);
}

/* Floating Disc Token above player with the disc */
.active-disc-indicator {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  border: 2px solid var(--brand-coral);
  box-shadow: 0 0 12px #ffffff, 0 0 20px var(--brand-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-disc 3s linear infinite;
}

.active-disc-indicator svg {
  width: 12px;
  height: 12px;
  fill: var(--brand-coral);
}

@keyframes spin-disc {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes disc-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* =========================================================================
   PLAY BY PLAY SECTION (Mobile-Style Action Cards)
   ========================================================================= */
.pbp-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pbp-feed-wrap {
  display: flex;
  flex-direction: column;
}

.pbp-filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.view-full-pbp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(247, 142, 110, 0.12);
  border: 1px solid rgba(247, 142, 110, 0.35);
  color: var(--brand-coral);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.view-full-pbp-link:hover {
  background: rgba(247, 142, 110, 0.24);
  border-color: var(--brand-coral);
  color: #FAF6F0;
  transform: translateX(2px);
}

.quarter-section-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-coral);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quarter-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.filter-tab-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab-btn.active, .filter-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-tab-btn.active {
  background: rgba(247, 142, 110, 0.15);
  border-color: var(--brand-coral);
  color: var(--brand-coral);
}

/* Action Card Container (Matching Mobile App) */
.action-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  min-height: 54px;
  padding: 12px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.action-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

/* Action Card Variants */
.action-card.goal-for {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  border-left: 4px solid var(--color-success);
}

.action-card.goal-against {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  border-left: 4px solid var(--color-error);
}

.action-card.defense-de {
  background: rgba(45, 106, 96, 0.22);
  border-color: rgba(45, 106, 96, 0.45);
  border-left: 4px solid var(--brand-teal);
}

.action-card.offense-action {
  border-left: 4px solid var(--brand-coral);
}

.action-card.turnover-action {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid #ef4444;
}

.action-card.pull-action {
  border-left: 4px solid #64748b;
}

/* Action Card Inner Content */
.action-left-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.action-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.action-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.action-text-group {
  display: flex;
  flex-direction: column;
}

.action-main-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.action-sub-result {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
}

.action-card.goal-for .action-sub-result {
  color: #34d399;
}

.action-card.goal-against .action-sub-result {
  color: #f87171;
}

.action-card.defense-de .action-sub-result {
  color: #5eead4;
}

/* Mini Scoreboard Badge on the Right */
.action-scoreboard-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.action-scoreboard-badge .score-sep {
  color: var(--text-muted);
}

.action-timestamp-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-right: 8px;
}

/* =========================================================================
   ACTIVE ROSTERS SECTION (Atlanta Soul vs Raleigh Radiance)
   ========================================================================= */
.rosters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 840px) {
  .rosters-grid {
    grid-template-columns: 1fr;
  }
}

.roster-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.roster-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.roster-team-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.roster-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.roster-table-wrap {
  max-height: 480px;
  overflow-y: auto;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.roster-table th {
  padding: 8px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.roster-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.roster-table tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.roster-table tr.is-on-field td {
  background: rgba(247, 142, 110, 0.08);
  font-weight: 600;
}

.roster-number-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-main);
  min-width: 24px;
}

.roster-player-name {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.on-field-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.roster-line-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.roster-line-badge.o-line {
  color: var(--brand-coral);
  background: rgba(247, 142, 110, 0.12);
}

.roster-line-badge.d-line {
  color: #34d399;
  background: rgba(45, 106, 96, 0.2);
}

.stat-val-plus {
  color: #10b981;
  font-weight: 700;
}

.stat-val-minus {
  color: #ef4444;
  font-weight: 700;
}

/* =========================================================================
   FLOWSTATE SCORE GRAPH SECTION
   ========================================================================= */
.score-graph-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  margin-top: 1rem;
}

.score-graph-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.graph-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-line-break-us {
  width: 14px;
  height: 3px;
  background: var(--color-success);
  border-radius: 2px;
}

.legend-line-break-them {
  width: 14px;
  height: 3px;
  background: var(--color-error);
  border-radius: 2px;
}

.legend-line-hold {
  width: 14px;
  height: 3px;
  background: #64748b;
  border-radius: 2px;
}

.legend-line-vert-quarter {
  width: 2px;
  height: 12px;
  border-left: 2px dashed #F59E0B;
  display: inline-block;
}

.score-graph-svg-wrap {
  width: 100%;
  overflow-x: auto;
}

.score-graph-svg {
  width: 100%;
  height: 200px;
}

/* Score Graph Tooltip */
.graph-node-point {
  cursor: pointer;
  transition: transform 0.15s ease, r 0.15s ease;
}

.graph-node-point:hover {
  r: 7;
}

/* Footer Section */
.app-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--brand-coral);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scoreboard-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
  
  .team-panel.away-team, .team-panel.home-team {
    justify-content: center;
    flex-direction: row;
  }
  
  .team-panel.home-team .team-info {
    text-align: left;
  }

  .game-center-meta {
    border: none;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }

  .ultimate-field-container {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }

  .endzone-watermark {
    font-size: 0.9rem;
  }

  .player-name-tag {
    font-size: 0.6rem;
    padding: 1px 4px;
  }
}
