/* ═══════════════════════════════════════════════════════════════════════════
   livePBP.css — Clean Play-by-Play Dashboard
   Rebuilt from scratch for clarity and performance
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────── Design Tokens ─────────────────────────── */
/* Matches workbench/trend-section theme */
:root {
  /* Background layers */
  --lp-bg: #0a1628;
  --lp-surface: #0d1b2a;
  --lp-card: rgba(255, 255, 255, 0.03);
  --lp-card-hover: rgba(0, 211, 189, 0.08);

  /* Borders */
  --lp-border: rgba(0, 211, 189, 0.1);
  --lp-border-light: rgba(0, 211, 189, 0.15);
  --lp-border-strong: rgba(0, 211, 189, 0.25);

  /* Text */
  --lp-text: #ffffff;
  --lp-text-dim: #b4d7c4;
  --lp-text-muted: #7a9a8a;

  /* Accents */
  --lp-accent: #00D3BD;
  --lp-accent-bright: #00F5D4;
  --lp-green: #09b05c;
  --lp-red: #ef4444;
  --lp-gold: #eab308;
  --lp-blue: #00D3BD;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Transitions */
  --ease: 200ms ease;

  /* Gradients matching workbench */
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-border: linear-gradient(135deg, rgba(0,245,212,0.3) 0%, rgba(0,211,189,0.15) 50%, rgba(0,173,132,0.1) 100%);
}

/* ─────────────────────────── Reset & Base ─────────────────────────── */
#livepbp-root * {
  box-sizing: border-box;
}

#livepbp-root {
  position: fixed;
  top: 85px; /* Below navbar + schedule */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  overflow-y: auto;
  z-index: 100;
}

/* ─────────────────────────── Layout Grid ─────────────────────────── */
.lp-container {
  display: grid;
  gap: var(--sp-3);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--sp-2);
  padding-bottom: 120px; /* Extra bottom padding for mobile scroll clearance */
}

/* Single column by default */
.lp-main { min-width: 0; }
.lp-sidebar { display: none; }

/* Mobile-specific adjustments */
@media (max-width: 999px) {
  #livepbp-root {
    overflow: hidden; /* Prevent page scroll, only content scrolls */
    display: flex;
    flex-direction: column;
  }
  .lp-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
    width: 100%;
  }
  .lp-scoreboard {
    flex-shrink: 0; /* Don't shrink */
    width: 100%;
  }
  .lp-tabs {
    flex-shrink: 0; /* Don't shrink */
    width: 100%;
  }
  .lp-main {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .lp-tab-panel {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .lp-tab-panel.active {
    display: flex;
  }
  .lp-plays-panel,
  .lp-panel {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .lp-panel-body {
    flex: 1;
    overflow-y: auto;
    width: 100%;
  }
  .lp-plays,
  .lp-plays-list {
    flex: 1;
    overflow-y: auto;
    max-height: none;
    width: 100%;
  }
  .lp-stats,
  .lp-props-list {
    flex: 1;
    overflow-y: auto;
    width: 100%;
  }
  .lp-play:last-child {
    margin-bottom: 200px !important; /* Extra space at bottom for scroll clearance */
  }
}

/* Two columns on wide screens */
@media (min-width: 1000px) {
  .lp-container {
    grid-template-columns: 1fr 320px;
    padding: var(--sp-3);
    padding-bottom: 100px; /* Extra bottom padding for sidebar content */
  }
  .lp-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
  }
  .lp-tabs { display: none; }
}

@media (min-width: 1200px) {
  .lp-container {
    grid-template-columns: 1fr 360px;
  }
}

/* ─────────────────────────── Scoreboard Header ─────────────────────────── */
.lp-scoreboard {
  background: var(--gradient-card);
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  backdrop-filter: blur(12px);
}

.lp-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* Team block */
.lp-team {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
}

.lp-team.home {
  flex-direction: row-reverse;
  text-align: right;
}

.lp-team-logo {
  width: 40px;
  height: 40px;
  background: var(--lp-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-text-dim);
  flex-shrink: 0;
  overflow: hidden;
}

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

.lp-team-info {
  min-width: 0;
}

.lp-team-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-team-record {
  font-size: 11px;
  color: var(--lp-text-muted);
}

.lp-team-score {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 40px;
}

.lp-team.has-ball .lp-team-score::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lp-gold);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}

/* Center status */
.lp-status {
  text-align: center;
  min-width: 100px;
  flex-shrink: 0;
}

.lp-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--lp-card);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-text-dim);
}

.lp-status-badge.live {
  background: rgba(0, 211, 189, 0.15);
  color: var(--lp-accent);
}

.lp-status-badge.live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--lp-accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lp-clock {
  font-size: 18px;
  font-weight: 700;
  margin-top: 2px;
}

.lp-situation {
  font-size: 11px;
  color: var(--lp-text-dim);
  margin-top: 2px;
}

.lp-situation.redzone,
.lp-situation.lp-redzone {
  color: var(--lp-red);
}

/* Field position bar */
.lp-field-bar {
  display: flex;
  align-items: center;
  height: 20px;
  margin-top: var(--sp-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 211, 189, 0.05);
  border: 1px solid var(--lp-border);
}

.lp-field-endzone {
  width: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.lp-field-endzone.away { background: var(--team-away, var(--lp-accent)); opacity: 0.8; }
.lp-field-endzone.home { background: var(--team-home, rgba(0, 211, 189, 0.6)); opacity: 0.8; }

.lp-field-grass {
  flex: 1;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 211, 189, 0.08) 0%, rgba(0, 211, 189, 0.12) 50%, rgba(0, 211, 189, 0.08) 100%);
  position: relative;
}

.lp-field-ball,
.lp-ball {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  transition: left var(--ease);
}

.lp-field-firstdown,
.lp-first-down {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--lp-gold);
  transform: translateX(-50%);
}

/* ─────────────────────────── Tabs (mobile only) ─────────────────────────── */
.lp-tabs {
  display: flex;
  gap: var(--sp-1);
  background: var(--lp-surface);
  padding: var(--sp-1);
  border-radius: var(--radius-md);
  border: 1px solid var(--lp-border);
}

.lp-tab {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--lp-text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--ease);
}

.lp-tab:hover {
  color: var(--lp-text);
  background: rgba(0, 211, 189, 0.05);
}

.lp-tab.active {
  background: rgba(0, 211, 189, 0.12);
  color: var(--lp-accent);
}

/* ─────────────────────────── Panel Base ─────────────────────────── */
.lp-panel {
  background: var(--gradient-card);
  background-color: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.lp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--lp-border);
}

.lp-panel-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lp-text-dim);
}

.lp-panel-body {
  padding: var(--sp-3);
}

/* ─────────────────────────── Play Feed ─────────────────────────── */
.lp-plays-panel {
  display: flex;
  flex-direction: column;
}

.lp-plays,
.lp-plays-list {
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
  max-height: calc(100vh - 280px);
  min-height: 200px;
  overflow-y: auto;
}

.lp-scoring {
  list-style: none;
  margin: 0;
  padding: var(--sp-2);
}

.lp-play {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-2);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--lp-border);
  border-left: 3px solid var(--play-stripe, var(--lp-border));
  transition: all var(--ease);
}

.lp-play:hover {
  background: var(--lp-card-hover);
  border-color: var(--lp-border-light);
}


.lp-play.lp-scoring {
  border-left-color: var(--lp-gold);
  background: rgba(234, 179, 8, 0.04);
}

.lp-play.lp-turnover {
  border-left-color: var(--lp-red);
  background: rgba(239, 68, 68, 0.04);
}

.lp-play.lp-redzone {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.15);
}

/* Play type icon */
.lp-play-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(0, 211, 189, 0.08);
}

.lp-play-icon.pass { background: rgba(0, 211, 189, 0.12); }
.lp-play-icon.rush { background: rgba(9, 176, 92, 0.15); }
.lp-play-icon.td { background: rgba(234, 179, 8, 0.2); }
.lp-play-icon.turnover { background: rgba(239, 68, 68, 0.15); }
.lp-play-icon.penalty { background: rgba(239, 68, 68, 0.1); }
.lp-play-icon.punt, .lp-play-icon.kick { background: rgba(180, 215, 196, 0.1); }

/* Play body content */
.lp-play-body {
  flex: 1;
  min-width: 0;
}

.lp-play-text {
  font-size: 13px;
  color: var(--lp-text);
  line-height: 1.4;
}

.lp-play-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--lp-text-muted);
}

.lp-play-down {
  font-weight: 600;
  color: var(--lp-text-dim);
}

.lp-play-spot {
  color: var(--lp-text-muted);
}

.lp-play-rz {
  padding: 1px 5px;
  background: rgba(239, 68, 68, 0.2);
  color: var(--lp-red);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

.lp-play-time {
  margin-left: auto;
  color: var(--lp-text-muted);
}

/* Play result (yards + badges) */
.lp-play-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.lp-yards {
  font-size: 14px;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

.lp-yards.positive { color: var(--lp-accent); }
.lp-yards.negative { color: var(--lp-red); }
.lp-yards.neutral { color: var(--lp-text-muted); }

/* Play badges */
.lp-badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.lp-badge-td { background: var(--lp-gold); color: #000; }
.lp-badge-big { background: rgba(0, 211, 189, 0.2); color: var(--lp-accent); }
.lp-badge-1st { background: rgba(0, 211, 189, 0.15); color: var(--lp-accent); }

/* Load more sentinel */
.lp-load-more {
  padding: var(--sp-3);
  text-align: center;
  color: var(--lp-text-dim);
  font-size: 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background var(--ease);
}

.lp-load-more:hover {
  background: var(--lp-card);
}

/* ─────────────────────────── Stats Panel ─────────────────────────── */
.lp-stats {
  padding: var(--sp-3);
}

.lp-stats-empty {
  padding: var(--sp-4);
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 12px;
}

.lp-stats-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.lp-stat-group {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lp-text-dim);
  padding: var(--sp-2) 0 var(--sp-1);
  margin-top: var(--sp-2);
  border-bottom: 1px solid var(--lp-border-light);
}

.lp-stat-group:first-child {
  margin-top: 0;
}

.lp-stat-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 60px;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-1) 0;
}

.lp-stat-val {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lp-stat-val.away { text-align: right; }
.lp-stat-val.home { text-align: left; }
.lp-stat-val.winner { color: var(--lp-accent); }

.lp-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--lp-text-muted);
  text-align: center;
  white-space: nowrap;
}

.lp-stat-bar-wrap {
  display: flex;
  height: 4px;
  background: var(--lp-card);
  border-radius: 2px;
  overflow: hidden;
}

.lp-stat-bar {
  height: 100%;
  transition: width var(--ease);
}

.lp-stat-bar.away { background: var(--team-away, var(--lp-accent)); }
.lp-stat-bar.home { background: var(--team-home, rgba(0, 211, 189, 0.5)); }

/* ─────────────────────────── Leaders Panel ─────────────────────────── */
.lp-leaders-pass,
.lp-leaders-rush,
.lp-leaders-rec {
  margin-bottom: var(--sp-3);
}

.lp-leaders-pass:last-child,
.lp-leaders-rush:last-child,
.lp-leaders-rec:last-child {
  margin-bottom: 0;
}

.lp-leaders-empty {
  padding: var(--sp-4);
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 12px;
}

.lp-leader-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-text-dim);
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--lp-border);
}

.lp-leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-1) 0;
}

.lp-leader-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-text);
}

.lp-leader-stat {
  font-size: 11px;
  color: var(--lp-text-dim);
}

/* ─────────────────────────── Props Panel ─────────────────────────── */
.lp-props-empty,
.props-empty {
  padding: var(--sp-4);
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 12px;
}

.lp-props-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Props rows structure - two columns for visitor/home */
.props-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--lp-border);
}

.props-row:last-of-type {
  border-bottom: none;
}

.props-row[style*="display: none"] + .props-row {
  border-top: none;
}

.props-visitor,
.props-home {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-width: 0;
}

.props-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* On very small screens, stack columns */
@media (max-width: 500px) {
  .props-row {
    grid-template-columns: 1fr;
  }
}

/* Player card styling */
#livepbp-root .player-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--lp-border);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  transition: all var(--ease);
}

#livepbp-root .player-card:hover {
  background: var(--lp-card-hover);
  border-color: var(--lp-border-light);
}

#livepbp-root .player-card.hit {
  border-color: var(--lp-green);
  background: rgba(9, 176, 92, 0.08);
}

#livepbp-root .player-card.miss {
  border-color: var(--lp-red);
  background: rgba(239, 68, 68, 0.05);
  opacity: 0.7;
}

#livepbp-root .player-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

#livepbp-root .player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 211, 189, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--lp-accent);
  flex-shrink: 0;
}

#livepbp-root .player-info {
  flex: 1;
  min-width: 0;
}

#livepbp-root .player-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#livepbp-root .player-team {
  font-size: 10px;
  color: var(--lp-text-muted);
}

#livepbp-root .player-props {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Prop stat rows */
#livepbp-root .prop-stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#livepbp-root .prop-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#livepbp-root .prop-stat-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 11px;
  color: var(--lp-text-dim);
}

#livepbp-root .prop-line-value {
  font-weight: 600;
  color: var(--lp-text);
}

#livepbp-root .prop-odds {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 211, 189, 0.1);
}

#livepbp-root .prop-odds.plus {
  color: var(--lp-green);
}

#livepbp-root .prop-odds.minus {
  color: var(--lp-text-dim);
}

#livepbp-root .prop-progress {
  position: relative;
  height: 18px;
  background: var(--lp-surface);
  border-radius: 4px;
  overflow: hidden;
}

#livepbp-root .prop-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

#livepbp-root .prop-progress-fill.under {
  background: var(--lp-accent);
  opacity: 0.6;
}

#livepbp-root .prop-progress-fill.over {
  background: var(--lp-green);
}

#livepbp-root .prop-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--lp-text);
}

#livepbp-root .on-pace {
  font-size: 9px;
  color: var(--lp-text-muted);
  text-align: right;
}

.lp-prop {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--lp-card);
  border-radius: var(--radius-sm);
}

.lp-prop-player {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 1;
  min-width: 0;
}

.lp-prop-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lp-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--lp-text-dim);
  flex-shrink: 0;
}

.lp-prop-name {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-prop-line {
  font-size: 11px;
  color: var(--lp-text-muted);
}

.lp-prop-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 80px;
}

.lp-prop-bar {
  flex: 1;
  height: 4px;
  background: var(--lp-surface);
  border-radius: 2px;
  overflow: hidden;
}

.lp-prop-fill {
  height: 100%;
  background: var(--lp-accent);
  border-radius: 2px;
  transition: width var(--ease), background var(--ease);
}

.lp-prop-fill.hit { background: var(--lp-green); }
.lp-prop-fill.close { background: var(--lp-gold); }

.lp-prop-val {
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  text-align: right;
}

/* ─────────────────────────── Scoring Summary ─────────────────────────── */
.lp-score-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--lp-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-2);
  border-left: 3px solid var(--team-color, var(--lp-gold));
}

.lp-score-item:last-child {
  margin-bottom: 0;
}

.lp-score-type {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.lp-score-type.td { background: rgba(234, 179, 8, 0.2); }
.lp-score-type.fg { background: rgba(0, 211, 189, 0.15); }
.lp-score-type.safety { background: rgba(239, 68, 68, 0.15); }

.lp-score-info {
  flex: 1;
  min-width: 0;
}

.lp-score-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--lp-text);
}

.lp-score-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: 4px;
  font-size: 10px;
  color: var(--lp-text-muted);
}

.lp-score-team {
  font-weight: 600;
  color: var(--lp-text-dim);
}

.lp-score-time {
  color: var(--lp-text-muted);
}

.lp-score-drive {
  color: var(--lp-text-muted);
}

.lp-score-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.lp-score-after {
  font-size: 14px;
  font-weight: 700;
}

.lp-score-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  display: inline-block;
}

.lp-score-badge.td { background: var(--lp-gold); color: #000; }
.lp-score-badge.fg { background: var(--lp-accent); color: #000; }
.lp-score-badge.safety { background: var(--lp-red); color: #fff; }

/* ─────────────────────────── Tab Panels ─────────────────────────── */
.lp-tab-panel {
  display: none;
}

.lp-tab-panel.active {
  display: block;
}

/* On wide screens, always show sidebar panels */
@media (min-width: 1000px) {
  .lp-sidebar .lp-tab-panel {
    display: block;
  }
}

/* ─────────────────────────── Empty States ─────────────────────────── */
.lp-empty {
  padding: var(--sp-6);
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 13px;
}

/* ─────────────────────────── Dropdown Menu ─────────────────────────── */
.lp-dropdown {
  position: relative;
}

.lp-dropdown-btn {
  background: transparent;
  border: none;
  color: var(--lp-text-dim);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.lp-dropdown-btn:hover {
  background: var(--lp-card);
}

.lp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--radius-md);
  padding: var(--sp-1);
  min-width: 150px;
  display: none;
  z-index: 100;
}

.lp-dropdown.open .lp-dropdown-menu {
  display: block;
}

.lp-dropdown-item {
  display: block;
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: none;
  text-align: left;
  font-size: 12px;
  color: var(--lp-text);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.lp-dropdown-item:hover {
  background: var(--lp-card);
}

.lp-dropdown-item.active {
  color: var(--lp-accent);
}

/* ─────────────────────────── Utilities ─────────────────────────── */
.lp-hidden {
  display: none !important;
}

/* Scrollbar styling */
.lp-plays-list::-webkit-scrollbar,
.lp-panel-body::-webkit-scrollbar {
  width: 6px;
}

.lp-plays-list::-webkit-scrollbar-track,
.lp-panel-body::-webkit-scrollbar-track {
  background: transparent;
}

.lp-plays-list::-webkit-scrollbar-thumb,
.lp-panel-body::-webkit-scrollbar-thumb {
  background: rgba(0, 211, 189, 0.2);
  border-radius: 3px;
}

.lp-plays-list::-webkit-scrollbar-thumb:hover,
.lp-panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 211, 189, 0.4);
}
