/* ==========================================================================
   play-by-play.css — NBA Play-by-Play Feed Styles
   ========================================================================== */

.pbp-container {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #1a1d24);
  border: 1px solid var(--border, #2a2d35);
}

.pbp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, #2a2d35);
  background: var(--surface-raised, #1e2128);
}

.pbp-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary, #e0e0e0);
}

.pbp-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary, #9ca3af);
  cursor: pointer;
  user-select: none;
}

.pbp-filter input[type="checkbox"] {
  accent-color: #3b82f6;
}

/* Feed scroll area */
.pbp-feed {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Individual play row */
.pbp-play {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.04));
  transition: background 0.15s;
}

.pbp-play:last-child {
  border-bottom: none;
}

.pbp-play:hover {
  background: rgba(255,255,255,0.02);
}

/* Scoring play highlight */
.pbp-play--scoring {
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.04);
}

.pbp-play--scoring:hover {
  background: rgba(34, 197, 94, 0.08);
}

/* Team badge */
.pbp-play-left {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.pbp-team-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.pbp-team-badge--empty {
  display: inline-block;
  width: 22px;
  height: 22px;
}

/* Play body */
.pbp-play-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pbp-description {
  font-size: 13px;
  color: var(--text-primary, #e0e0e0);
  line-height: 1.4;
}

.pbp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted, #6b7280);
}

.pbp-clock {
  font-variant-numeric: tabular-nums;
}

.pbp-score {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary, #9ca3af);
}

/* Empty state */
.pbp-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted, #6b7280);
  font-size: 14px;
}

/* Scrollbar styling */
.pbp-feed::-webkit-scrollbar {
  width: 6px;
}

.pbp-feed::-webkit-scrollbar-track {
  background: transparent;
}

.pbp-feed::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.pbp-feed::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* Responsive */
@media (max-width: 600px) {
  .pbp-play {
    padding: 8px 12px;
    gap: 8px;
  }

  .pbp-description {
    font-size: 12px;
  }
}

/* Mobile — PBP in its own tab, larger text and no height cap */
@media (max-width: 1000px) {
  .pbp-title {
    font-size: 22px;
  }

  .pbp-filter span {
    font-size: 20px;
  }

  .pbp-description {
    font-size: 22px;
    line-height: 1.5;
  }

  .pbp-meta {
    font-size: 18px;
    gap: 14px;
  }

  .pbp-team-badge,
  .pbp-team-badge--empty {
    width: 32px;
    height: 32px;
  }

  .pbp-play-left {
    width: 32px;
  }

  .pbp-play {
    padding: 14px 16px;
    gap: 12px;
  }

  .pbp-header {
    padding: 16px 20px;
  }

  .pbp-feed {
    max-height: none;
  }
}
