/* === General Styles === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: #0D1117;
  color: #C9D1D9;
  font-size: 16px;
  padding-top: 68px !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.1"/%3E%3C/svg%3E');
  z-index: -1;
  opacity: 0.1;
}

body.menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  pointer-events: none;
}

/* Matchup Insights Page Polish */
.title-section {
    padding: 3rem 20px; /* More vertical space */
    border-bottom: 1px solid #30363D; /* Consistent border */
}

.timeline-scroll-container {
    padding: 1rem 20px 2rem 20px; /* Adjust padding */
}

.game-tile {
    min-width: 380px; /* Slightly smaller tiles */
    max-width: 380px;
    height: auto; /* Auto height for content */
    padding-bottom: 1rem;
}

.game-tile-header {
    padding: 0.5rem 1rem;
}

.game-tile-body {
    gap: 0.75rem;
}

.team-full-name {
    font-size: 1rem; /* Smaller full name */
}

.game-tile-footer {
    padding: 0.75rem 1rem 0 1rem; /* Adjust padding */
}

.probable-pitchers .probable-pitchers-card {
    background: #0D1117; /* Darker background */
    border: 1px solid #21262D;
    padding: 1.5rem;
}

.probable-pitcher-info {
    background: #161B22;
}

.starting-lineups .lineup-table th {
    background-color: #0D1117;
}

.player-trends .card.shadow-lg {
    background: #0D1117;
    border: 1px solid #21262D;
    padding: 1.5rem;
}

.player-trends-title {
    background: #0D1117;
    border: 1px solid #21262D;
    padding: 1rem;
}

.sortable-table th {
    background: #161B22; /* Darker header */
}

.sortable-table tbody tr:hover > * {
    background-color: #1C2128; /* Lighter hover */
}

.expandable-row .card {
    background: #0D1117;
    border: 1px solid #21262D;
}

.player-trend-card .card-top {
    background-color: #161B22;
    margin: -1.5rem -1.5rem 0 -1.5rem;
    padding: 1rem 1.5rem;
}

.text-navy {
  color: #C9D1D9 !important;
}

/* === Header Section === */
.title-section {
  background: transparent;
  color: #F0F6FC;
  padding: 2.5rem 20px 2rem;
  text-align: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #21262D;
}

.title-section .hero-inner {
  position: relative;
  z-index: 1;
}

.title-section h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  color: #F0F6FC;
  animation: fadeInUp 0.8s ease-out forwards;
}

.matchup-date {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.matchup-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #8B949E;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

/* === Today's Games Section === */
.todays-games {
  background: transparent !important;
}

.todays-games .card.shadow-lg {
  padding: 20px !important;
  background: #161B22;
  border: 1px solid #30363D;
  border-radius: 18px;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.2), 0 6px 12px -3px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.todays-games .todays-games-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  color: #FFFFFF !important;
  margin-bottom: 1rem !important;
  text-align: left !important;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.todays-games .game-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.todays-games .game-column {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Strictly two columns */
  gap: 12px;
  margin-top: 0;
  padding-top: 0;
}

.todays-games .game-card {
  background: #161B22 !important;
  border: 1px solid #30363D !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem;
  cursor: pointer;
}
.todays-games .game-time {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem !important;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8) !important;
  letter-spacing: 0.02em;
}

.todays-games .team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.todays-games .pitcher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.todays-games .team-col {
  display: flex;
  align-items: center;
}

.todays-games .team-col.text-end {
  justify-content: flex-end;
}


.todays-games .pitcher-line {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.todays-games .game-card-fixed {
  display: flex !important;
  flex-direction: column !important;
}

.todays-games .game-card:hover {
  background: #141c34 !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32) !important;
  transform: translateY(-8px);
}

.todays-games .game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px !important;
}

.todays-games .game-time-badge {
  background: none !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem !important;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  line-height: 1;
  box-shadow: none !important;
}

.todays-games .btn-analyze {
  background: linear-gradient(135deg, #1A5CFF, #197BFF) !important;
  color: #FFFFFF !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem !important;
  font-weight: 700;
  padding: 6px 16px;
  border: none !important;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(25, 123, 255, 0.5);
}

.todays-games .btn-analyze:hover {
  background: #FFFFFF !important;
  color: #0D1117 !important;
  box-shadow: 0 0 12px rgba(25, 123, 255, 0.7) !important;
  transform: translateY(-2px) scale(1.05);
}

.todays-games .game-card .game-matchup {
  display: flex !important; /* Ensure flexbox applies */
  align-items: center !important; /* Center vertically */
  justify-content: space-around !important; /* Distribute space evenly */
  gap: 15px; /* Adjusted gap for spacing */
  flex: 1;
  width: 100%; /* Span full width */
}

.todays-games .team-display {
  flex: 0 0 35%; /* Slightly increased to 35% for more space */
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px; /* Reduced gap to save vertical space */
  max-width: 300px;
}

.todays-games .team-display.text-end {
  align-items: flex-end;
}

.todays-games .team-info {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.todays-games .team-info.d-flex.align-items-end {
  align-items: flex-end;
}

.todays-games .team-logo {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  filter: brightness(1.5);
}

.todays-games .team-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem !important;
  font-weight: 700;
  color: #FFFFFF !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.todays-games .vs-divider {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem !important;
  font-weight: 600;
  color: #ffffff !important;
  padding: 0 10px;
  white-space: nowrap;
}

.todays-games .pitcher-info {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.todays-games .pitcher-info.text-end {
  justify-content: flex-end;
}

.todays-games .pitcher-info.text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
}

.todays-games .pitcher-name {
  font-size: 0.8rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
}

.todays-games .pitcher-stats {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

.todays-games .loading-text {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem !important;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todays-games .loading-text .spinner-border {
  border-color: #197BFF !important;
  border-right-color: transparent !important;
}

.todays-games .animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

@media (min-width: 992px) {
  .todays-games .game-card {
    max-width: none; /* Remove the previous max-width */
    margin: 0; /* Remove centering */
  }
}

/* === Form Section === */
.btn-navy {
  background: #197BFF;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 0 15px rgba(25, 123, 255, 0.5);
}

.btn-navy:hover {
  background: #FFFFFF;
  color: #0D1117;
  box-shadow: 0 0 20px rgba(25, 123, 255, 0.9);
  transform: scale(1.08);
}

.btn-navy:disabled {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

select.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #161B22 !important;
  border: 1px solid #30363D !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  padding-right: 40px !important;
  font-size: 1rem !important;
  font-family: 'Manrope', sans-serif !important;
  color: #FFFFFF !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' width='10' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,50 70,90 110,50' stroke='%23FFFFFF' stroke-width='14' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px !important;
}

select.form-select:focus {
  border-color: #197BFF !important;
  box-shadow: 0 0 0 0.15rem rgba(25, 123, 255, 0.3) !important;
  outline: none !important;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
}

/* === General Container and Card Styles === */
.container.mb-4 {
  width: 100% !important;
  max-width: 1800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.card.shadow-sm {
  width: 100% !important;
  margin: 0 !important;
  background: #161B22 !important;
  backdrop-filter: blur(15px);
  border: 1px solid #30363D;
  border-radius: 15px;
  padding: 24px !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card.shadow-sm:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(25, 123, 255, 0.3);
  border-color: rgba(25, 123, 255, 0.6);
  transform: translateY(-5px);
}

/* === Probable Starting Pitchers Section === */
.probable-pitchers {
  background: transparent !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.probable-pitchers .probable-pitchers-card {
  background: #161B22 !important;
  padding: 16px !important;
}

.probable-pitchers-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  text-align: left !important;
  letter-spacing: 0.03em;
  text-shadow: none;
  position: relative;
  padding-bottom: 0;
}

.probable-pitchers .card.shadow-lg {
  background: #161B22;
  border: 1px solid #30363D; /* Subtle border */
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 10px rgba(25, 123, 255, 0.1); /* Soft shadow + faint blue glow */
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.probable-pitcher-info {
  background: #161B22 !important;
  border: 1px solid #30363D !important;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
}

.probable-pitcher-info:hover {
  background: rgba(88, 166, 255, 0.08) !important;
  box-shadow: 0 5px 12px rgba(88, 166, 255, 0.25) !important;
  transform: translateY(-2px);
}

.probable-pitcher-team-logo {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  filter: brightness(1.5);
}

.probable-pitcher-team-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
}

.probable-pitcher-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.probable-pitcher-name:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline !important;
}

.probable-pitcher-hand {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.85rem !important;
}

.probable-pitcher-stats {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem !important;
  color: #FFFFFF !important;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 12px;
}

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

.stat-item strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
}

.highlight-k9 {
  color: #4CAF50 !important; /* Green for high K/9 */
  font-weight: bold;
}

.highlight-bb9 {
  color: #F44336 !important; /* Red for high BB/9 */
  font-weight: bold;
}

/* Bold styling for AVG vs LH/RH indicators */
.highlight-avg-low {
  color: #F44336 !important;
  font-weight: bold;
}

.highlight-avg-high {
  color: #4CAF50 !important;
  font-weight: bold;
}

/* === Table Section === */
.container.mb-5 {
  width: 100% !important;
  max-width: 1800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.card.shadow-sm {
  width: 100% !important;
  margin: 0 !important;
  background: #161B22 !important;
  backdrop-filter: blur(15px);
  border: 1px solid #30363D;
  border-radius: 15px;
  padding: 24px !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.card.shadow-sm:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(25, 123, 255, 0.3);
  border-color: rgba(25, 123, 255, 0.6);
}

.table-responsive {
  width: 100% !important;
  background: transparent !important;
}

.table {
  background-color: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
}

.table-sm {
  font-size: 0.875rem;
}

/* Starting lineup table */
.lineup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.lineup-table th,
.lineup-table td {
  padding: 1rem;
  border-bottom: 1px solid #21262D;
  color: #C9D1D9 !important;
  vertical-align: middle;
  white-space: nowrap;
}
.lineup-table > :not(caption) > * > * {
  background-color: transparent !important;
  color: #C9D1D9 !important;
}
.lineup-table th {
  background-color: rgba(13, 17, 23, 0.5);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom: 2px solid #388BFD;
}
.lineup-table tbody tr:hover {
  background-color: #21262D;
}

.sortable-table {
  width: 100% !important;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: #FFFFFF !important;
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  table-layout: auto; /* Allow columns to adjust based on content */
}

.sortable-table a.player-link {
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.sortable-table a.player-link:hover {
  color: #197BFF !important;
  text-decoration: underline;
}

/* Override Bootstrap's table cell background */
.sortable-table > :not(caption) > * > * {
  background-color: transparent !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  padding: 10px 12px !important;
  border-bottom: 1px solid #30363D !important;
}

.sortable-table thead {
  background: rgba(13, 17, 23, 0.55) !important;
  color: #C9D1D9 !important;
  position: sticky;
  top: 0;
  z-index: 1;
}

.sortable-table thead th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #C9D1D9 !important;
  background: rgba(13, 17, 23, 0.55) !important;
  border-bottom: 1px solid #21262D !important;
  border-top: none !important;
  padding: 8px 12px !important;
  white-space: nowrap;
}

/* Ensure the Player column has enough space */
.sortable-table thead th:first-child {
  width: 25%; /* Default width for larger screens */
  min-width: 200px; /* Minimum width to accommodate player names */
}

.sortable-table tbody {
  background: transparent !important;
}

.sortable-table tbody tr {
  background: transparent !important;
  border-bottom: 1px solid #30363D;
}

.sortable-table tbody tr.row-light {
  background-color: #161B22 !important;
}

.sortable-table tbody tr.row-light > * {
  background-color: #161B22 !important;
  box-shadow: none !important;
}

.sortable-table tbody tr.row-alt {
  background-color: rgba(30, 38, 70, 0.95) !important;
}

.sortable-table tbody tr.row-alt > * {
  background-color: rgba(30, 38, 70, 0.95) !important;
  box-shadow: none !important;
}

.sortable-table tbody tr:hover {
  background-color: rgba(88, 166, 255, 0.03) !important;
}

.sortable-table tbody tr:hover > * {
  background-color: rgba(88, 166, 255, 0.03) !important;
  box-shadow: none !important;
}

.sortable-table td,
.sortable-table th {
  border-right: 1px solid #30363D !important;
  padding: 10px 12px !important;
  color: #FFFFFF !important;
  vertical-align: middle;
}

.sortable-table td:last-child,
.sortable-table th:last-child {
  border-right: none !important;
}

.sortable-table th:first-child {
  text-align: left !important;
  padding-left: 12px !important;
}

.sortable-table thead > tr > th:first-child {
  border-top-left-radius: 8px !important;
}

.sortable-table thead > tr > th:last-child {
  border-top-right-radius: 8px !important;
}

.row-light {
  background-color: #161B22 !important;
  color: #FFFFFF !important;
  transition: background-color 0.3s ease;
}

.row-alt {
  background-color: rgba(30, 38, 70, 0.95) !important;
  color: #FFFFFF !important;
  transition: background-color 0.3s ease;
}

/* === Expandable Row Styles === */
.expandable-row {
  background-color: #161B22 !important;
  display: none;
}

.expandable-row.is-visible {
  display: table-row !important;
  opacity: 1;
  max-height: 500px;
}

.expandable-row td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.expandable-row .card {
  margin: 0 !important;
  background: #161B22 !important;
  border: 1px solid #21262D !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

@media (min-width: 601px) and (max-width: 1024px) {
  /* Ensure expanded rows fit on tablet screens */
  .expandable-row .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .expandable-row .player-trend-card {
    padding: 1rem !important; /* Reduce padding to shrink card */
  }
  .expandable-row .trend-box {
    width: 55px !important;
    height: 55px !important;
    padding: 6px !important;
    margin: 3px !important;
    font-size: 11px !important;
  }
  .expandable-row .circle-graph-group svg {
    width: 70px !important;
    height: 70px !important;
  }
}

.expand-link {
  color: #197BFF !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.expand-link:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

/* === Player Trends Section === */
.player-trends {
  background: transparent !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.player-trends .card.shadow-lg {
  padding: 16px !important;
  background: #161B22;
  border: 1px solid #30363D; /* Subtle border */
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 0 10px rgba(25, 123, 255, 0.1); /* Soft shadow + faint blue glow */
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Ensure consistency for specific sections (optional, for fine-tuning) */
.todays-games .card.shadow-lg,
.probable-pitchers .card.shadow-lg,
.player-trends .card.shadow-lg {
  backdrop-filter: blur(10px); /* Matches Analyze a Custom Matchup's frosted glass effect */
}

.player-trends-header {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  text-align: center !important;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-trends-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  background: #161B22;
  border: 0.1px solid #30363D;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.player-trends-title .player-trends-header {
  flex-grow: 1;
  flex-basis: 100%;
  text-align: center !important;
  margin-bottom: 0 !important;
}

.player-trends-title form {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
}

.game-range-select {
  min-width: 150px;
}

@media (max-width: 600px) {
  /* Hide game range filter on mobile */
  #gameRangeForm {
    display: none !important;
  }
}

.player-trends-title .player-trends-subheader {
  flex-basis: auto;
  text-align: inherit;
  margin-top: 0;
  margin-bottom: 0;
}

.sortable-table th {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
  background: rgba(30, 38, 70, 0.95) !important;
  border-bottom: 1px solid #30363D !important;
  padding: 8px !important;
  white-space: nowrap;
  position: relative; /* For icon positioning */
  cursor: pointer; /* Indicate clickability */
  text-align: center;
  vertical-align: middle;
}

.sortable-table th:hover {
  background: rgb(13 44 87 / 8%) !important; /* Subtle hover effect */
}

.sortable-table th:hover .sort-icon {
  opacity: 1; /* Show icon on hover */
  transform: scale(1.1); /* Slight scale animation */
}

.sort-icon {
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for hover */
}

.sortable-table th.sorted-asc .sort-icon,
.sortable-table th.sorted-desc .sort-icon {
  opacity: 1;
  transform: none;
}

.sortable-table th .sort-icon path {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sortable-table th:hover .sort-icon path:first-child {
  opacity: 0.42;
}

.sortable-table th.sorted-asc .sort-icon path:first-child,
.sortable-table th.sorted-desc .sort-icon path:last-child {
  opacity: 1;
}

.sortable-table td {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem !important;
  color: #FFFFFF !important;
  padding: 6px !important;
  vertical-align: middle !important;
}

.sortable-table td.highlight-text {
  font-size: 0.9rem !important;
}

.sortable-table td .expand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.sortable-table td .expand-link:hover {
  color: #ffffff;
}

.sortable-table td .expand-link.is-expanded {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(56, 139, 253, 0.32), rgba(37, 99, 235, 0.22));
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45), 0 10px 24px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

/* Highlight the stat that is currently expanded */
.sortable-table td.expanded-cell {
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 165, 250, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(56, 139, 253, 0.18), rgba(30, 41, 59, 0.14)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sortable-table tbody tr:hover {
  background: rgb(3 20 44 / 8%) !important;
  transition: background 0.3s ease;
}

.player-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.player-link:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline !important;
}

/* Star icon next to players in the starting lineup */
.starting-lineup-star {
  color: #0066ff !important;
}

.expand-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.expand-link:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: underline !important;
}

.player-info {
  align-items: center;
}

.player-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0rem;
}

.player-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem !important;
  font-weight: 700;
  color: #FFFFFF !important;
}

.team-info {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: #FFFFFF !important;
}

.team-info .team-logos {
  width: 16px !important;
  height: 16px !important;
  margin-right: 0.25rem;
}

.player-stats {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem !important;
  color: #FFFFFF !important;
}

.stat-line {
  margin-bottom: 4px;
}

.stat-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85) !important;
}

.sp-info {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.sp-name {
  font-weight: 600;
  color: #FFFFFF !important;
}

.sp-stats {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.trend-box {
  width: 80px;
  padding: 10px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem !important;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hit-box {
  background: linear-gradient(135deg, #197BFF, #1A5CFF) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 5px rgba(25, 123, 255, 0.3);
}

.miss-box {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

@keyframes hitPulse {
  0% { transform: scale(1); box-shadow: 0 0 5px rgba(25, 123, 255, 0.3); }
  50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(25, 123, 255, 0.6); }
  100% { transform: scale(1); box-shadow: 0 0 5px rgba(25, 123, 255, 0.3); }
}

.animated-hit {
  animation: hitPulse 0.8s ease forwards;
}

.tb-value {
  font-weight: 600;
}

.opponent-abbr {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.prop-title {
  color: #FFFFFF !important;
}

.last-games-text {
  color: #FFFFFF !important;
}

.circle-graph-group h6 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem !important;
  font-weight: 600;
  width: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
}

.circle-graph-title {
  color: #FFFFFF !important;
}

.circle-graph-item {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem !important;
  color: #FFFFFF !important;
}

.circle-graph-label {
  color: #FFFFFF !important;
}

.circle-percent {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
}

.percentile-text {
  font-size: 0.65rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

@keyframes fillCircle {
  from { stroke-dasharray: 0, 100; }
  to { stroke-dasharray: var(--fill), 100; }
}

.player-trend-card .stat-card {
  background: #161B22;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important; /* Stronger border for contrast */
  border-radius: 8px;
  padding: 16px;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.player-trend-card .stat-card:hover {
  background: rgba(88, 166, 255, 0.08) !important;
  border-color: #58A6FF !important; /* Theme accent on hover */
  box-shadow: 0 5px 12px rgba(88, 166, 255, 0.3) !important, inset 0 5px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) !important;
}

.stat-card h6 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem !important;
  font-weight: 600;
  color: #FFFFFF !important;
}

.stat-card .fw-semibold {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem !important;
  color: #FFFFFF !important;
}

.stat-card .today-sp-hand {
  color: #FFFFFF !important;
}

.stat-label-white {
  color: #FFFFFF !important;
}

.opponent-pct {
  color: #FFFFFF !important;
}

.opposing-pitcher-box * {
  color: #FFFFFF !important;
}

.opposing-pitcher-box .pitcher-section,
.opposing-pitcher-box .hitter-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opposing-pitcher-box .pitcher-section {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.opposing-pitcher-box .hitter-section {
  padding-left: 12px;
}

.pct-text {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.btn-close-trend {
  background: #223241;
  color: #FFFFFF !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem !important;
  font-weight: 600;
  padding: 4px 12px;
  border: none !important;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(25, 123, 255, 0.3);
}

.btn-close-trend:hover {
  background: #FFFFFF !important;
  color: #0D1117 !important;
  box-shadow: 0 0 8px rgba(25, 123, 255, 0.5) !important;
  transform: scale(1.05);
}

/* Bottom control buttons on expanded player cards */
.trend-card-buttons {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* invisible spacer so the close button stays centered */
.trend-card-buttons::before {
  content: "";
  flex: 0 0 7.5rem; /* width of the three action buttons */
}

.trend-card-buttons .btn:not(.btn-close-trend),
.trend-card-buttons .add-pick-btn {
  font-size: 1rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: #1F6FEB;
  border-color: #1F6FEB;
  color: #FFFFFF;
}

.trend-card-buttons .btn:not(.btn-close-trend):hover,
.trend-card-buttons .add-pick-btn:hover {
  background-color: #388BFD;
  border-color: #388BFD;
}

/* === Background Effects === */
.background-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(25, 123, 255, 0.2), transparent);
  pointer-events: none;
  z-index: -2;
  animation: backgroundPulse 10s ease-in-out infinite;
}

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(25, 123, 255, 0.3);
  border-radius: 50%;
  animation: particleFloat 0.25s linear infinite;
}

/* Subtle background for highlighted stat blocks */
.stat-highlight {
  background: rgb(193 218 255 / 10%)
}

/* === Animations === */
@keyframes fillCircle {
  0% { stroke-dasharray: 0, 0 100; }
  100% { stroke-dasharray: var(--fill), 100; }
}

@keyframes fadeInLinks {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes expand {
  0% { width: 0; }
  100% { width: 60px; }
}

@keyframes backgroundPulse {
  0% { background: radial-gradient(circle at center, rgba(25, 123, 255, 0.2), transparent); }
  50% { background: radial-gradient(circle at center, rgba(25, 123, 255, 0.1), transparent); }
  100% { background: radial-gradient(circle at center, rgba(25, 123, 255, 0.2), transparent); }
}

@keyframes dabIn {
  from { opacity: 0; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseFade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

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

/* === Responsive Images === */
.team-logo,
.table img {
  max-width: 100% !important;
  height: auto !important;
}

/* === Media Queries === */
@media (min-width: 1201px) {
  .container.mb-4,
  .container.mb-5 {
    max-width: 1280px !important;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .title-section {
    padding: 2rem 15px 1.5rem !important;
  }
  body .container.mb-4,
  body .container.mb-5 {
    width: 90% !important;
    max-width: 1100px !important; /* Maintain wider container */
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  .todays-games .game-column {
    grid-template-columns: 1fr !important; /* Force single column at 1180px */
    max-width: 100% !important;
    gap: 15px !important; /* Maintain gap */
    overflow-x: hidden !important;
  }
  .todays-games .game-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important; /* Reduced padding */
    height: 140px !important; /* Slightly reduced height */
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }
  .todays-games .game-matchup {
    gap: 8px !important; /* Reduced gap */
    justify-content: space-between !important;
    padding: 0 !important;
    flex-wrap: wrap !important; /* Allow wrapping if needed */
  }
  .todays-games .team-display {
    flex: 0 0 30% !important; /* Reduced to 30% */
    max-width: 30% !important;
    overflow: hidden !important;
  }
  .todays-games .btn-analyze {
    padding: 3px 10px !important; /* Reduced padding */
    font-size: 0.75rem !important; /* Smaller font */
    white-space: nowrap !important;
    max-width: 80px !important; /* Cap button width */
    box-shadow: 0 0 5px rgba(25, 123, 255, 0.3) !important; /* Reduced shadow */
  }
  .todays-games .vs-divider {
    padding: 0 5px !important; /* Reduced padding around "vs" */
    font-size: 0.85rem !important; /* Slightly smaller text */
  }
  /* Adjust Player column width for tablet */
  .sortable-table thead th:first-child {
    width: 35%; /* Increase width for tablet */
    min-width: 250px; /* Ensure enough space for player names */
  }
  .sortable-table td:first-child {
    min-width: 250px; /* Match the header width */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body .container.mb-4,
  body .container.mb-5 {
    width: calc(90% - 30px) !important;
    max-width: 920px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  .todays-games .game-column {
    grid-template-columns: 1fr !important; /* Single column up to 1024px */
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .todays-games .game-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    height: 150px !important;
    box-sizing: border-box !important; /* Ensure padding is included in width */
  }
  .todays-games .game-matchup {
    gap: 10px !important; /* Reduce gap to save space */
    justify-content: space-between !important; /* Ensure even distribution */
    padding: 0 !important; /* Remove extra padding */
  }
  .todays-games .team-display {
    flex: 0 0 32% !important; /* Slightly reduce width to fit better */
    max-width: 32% !important; /* Cap width to prevent overflow */
    overflow: hidden !important; /* Hide any overflow */
  }
  .todays-games .btn-analyze {
    padding: 4px 12px !important; /* Reduce padding to fit better */
    font-size: 0.8rem !important; /* Slightly smaller font */
    white-space: nowrap !important; /* Prevent wrapping */
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 60px !important;
  }
  .hamburger {
    display: flex !important;
  }
  .title-section {
    padding: 2rem 15px 1.5rem !important;
  }
  .title-section h1 {
    font-size: 2rem !important;
  }
  .matchup-date {
    font-size: 14.4px !important;
  }
  .matchup-subtitle {
    font-size: 16px !important;
    max-width: 90% !important;
  }
  .todays-games-section {
    padding: 16px !important;
  }
  .container.mb-4,
  .container.mb-5 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .card-shadow-sm.mb-4 {
    padding: 16px !important;
  }
  .todays-games-header h2 {
    font-size: 22.4px !important;
  }
  .game-card {
    padding: 12px !important;
  }
  .team-name {
    font-size: 12px !important;
  }
  .team-logo-frame {
    width: 28px !important;
    height: 28px !important;
  }
  .team-logo-frame img {
    width: 20px !important;
    height: 20px !important;
  }
  .pitcher-info {
    font-size: 12px !important;
  }
  .game-time-badge {
    font-size: 12px !important;
    padding: 4.8px !important;
  }
  .btn-primary {
    padding: 8px !important;
    font-size: 12.8px !important;
    min-width: 70px !important;
  }
  .card {
    padding: 12px !important;
  }
  .sortable-table {
    font-size: 12px !important;
  }
  .thead th {
    font-size: 14.4px !important;
  }
  .sortable-table {
    padding: 12.8px !important;
  }
  .player-stats {
    padding: 12px !important;
  }
  .trend-box {
    width: 56px !important;
    height: 64px !important;
    font-size: 12px !important;
  }
  .trend-box .tb-value {
    font-size: 12px !important;
  }
  .trend-box .opponent-abbr {
    font-size: 10px !important;
  }
  .circle-graph-group svg {
    width: 70px !important;
    height: 70px !important;
  }
  .circle-graph-group .text-circle {
    font-size: 12px !important;
  }
  .circle-graph-group .fw-bold {
    font-size: 13px !important;
  }
  .circle-graph-group .text-muted {
    font-size: 11px !important;
  }
  .particle-container {
    display: none !important;
  }
  .todays-games .game-column {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  /* Adjust Player column width for mobile */
  .sortable-table thead th:first-child {
    width: 40%; /* Increase width for mobile */
    min-width: 180px; /* Ensure enough space for player names */
  }
  .sortable-table td:first-child {
    min-width: 180px; /* Match the header width */
  }
  .expandable-row .trend-box {
    width: 60px !important;
    height: 60px !important;
    padding: 8px !important;
    margin: 4px !important;
  }
}

@media (max-width: 576px) {
  .title-section h1 {
    font-size: 1.75rem !important;
  }
  .matchup-date {
    font-size: 12.6px !important;
  }
  .matchup-subtitle {
    font-size: 15.2px !important;
  }
  .mobile-menu {
    padding: 80px 15px 15px !important;
  }
  .mobile-menu ul li a {
    font-size: 25.6px !important;
    padding: 8px 0 !important;
  }
  .team-display {
    max-width: 48% !important;
  }
  .vs-badge {
    margin: 0 6px !important;
    font-size: 14.4px !important;
  }
  .game-card {
    height: 120px !important;
    padding: 10px !important;
  }
  .team-name {
    font-size: 12.8px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 125px !important;
  }
  .pitcher-info {
    font-size: 11.2px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 128px !important;
  }
  .pitcher-name,
  .pitcher-box {
    display: inline !important;
  }
  .team-logo-frame {
    width: 26px !important;
    height: 26px !important;
  }
  .team-logo-frame img {
    width: 18px !important;
    height: 18px !important;
  }
  .game-time-badge {
    font-size: 11.2px !important;
    padding: 3.2px !important;
  }
  .btn-primary {
    font-size: 12px !important;
    padding: 6.4px !important;
  }
  .sortable-table {
    font-size: 13.6px !important;
  }
  .thead th {
    font-size: 12px !important;
  }
  .sortable-table td {
    padding: 9.6px !important;
  }
  .player-trend-card {
    padding: 19.2px !important;
  }
  .trend-box {
    width: 52px !important;
    height: 60px !important;
  }
  .circle-graph-group svg {
    width: 60px !important;
    height: 60px !important;
  }
  .circle-graph-group .circle-percent {
    font-size: 0.75rem !important; /* Your preferred size */
    line-height: 1 !important;
    transform: translate(-50%, -138%) !important; /* Your preferred centering */
  }
  .circle-graph-group .fw-bold {
    font-size: 12px !important;
  }
  .circle-graph-group .text-muted {
    font-size: 10px !important;
  }
  .form-select {
    font-size: 14.4px !important;
    padding: 12.8px !important;
  }
  .expandable-row .trend-box {
    width: 50px !important;
    height: 50px !important;
    padding: 6px !important;
    margin: 3px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 375px) {
  .game-card {
    height: 120px !important;
    padding: 8px !important;
  }
  .team-name {
    font-size: 13.6px !important;
  }
  .pitcher-info {
    font-size: 10.4px !important;
  }
  .game-time-badge {
    font-size: 11.2px !important;
    padding: 3.2px !important;
  }
  .player-trend-card {
    padding: 19.2px !important;
  }
  .trend-box {
    width: 52px !important;
    height: 60px !important;
  }
  .circle-graph-group svg {
    width: 60px !important;
    height: 60px !important;
  }
  .circle-graph-group .circle-percent {
    font-size: 0.75rem !important; /* Your preferred size */
    line-height: 1 !important;
    transform: translate(-50%, -138%) !important; /* Your preferred centering */
  }
  .expandable-row .trend-box {
    width: 45px !important;
    height: 45px !important;
    padding: 4px !important;
    margin: 2px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 767.98px) {
  .card form .row > div {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .card .btn-primary {
    margin-top: 16px !important;
  }
}

@media (max-width: 600px) {
  /* Use the full screen width for key sections */
  .todays-games-timeline,
  .probable-pitchers,
  .player-trends {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .timeline-scroll-container {
    padding: 1rem 10px 2rem 10px;
  }

  .game-tile {
    min-width: 300px;
    max-width: 100%;
  }

  .game-tile-header {
    padding: 0.4rem 0.75rem;
  }

  .game-time-tile,
  .game-odds-tile {
    font-size: 0.8rem;
  }

  .game-tile-body {
    gap: 0.5rem;
  }

  .team-full-name {
    font-size: 0.9rem;
  }

  .game-tile-footer {
    padding: 0.5rem 0.75rem 0 0.75rem;
  }

  .game-tile-footer .pitcher-line {
    font-size: 0.75rem;
  }

  .probable-pitcher-info {
    padding: 1rem !important;
  }

  .probable-pitcher-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 8px;
    font-size: 0.8rem !important;
  }

  .lineup-table th,
  .lineup-table td {
    padding: 0.5rem;
    font-size: 0.8rem;
    white-space: normal;
  }

  .player-trends .sortable-table th,
  .player-trends .sortable-table td {
    padding: 6px;
    font-size: 0.75rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .probable-pitchers {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .probable-pitcher-info {
    padding: 1.25rem !important;
  }

  .probable-pitcher-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 10px;
    font-size: 0.85rem !important;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: auto 80px !important;
  gap: 16px !important;
  font-size: 15.2px !important;
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif !important;
}

.stat-header {
  color: #197BFF !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.stat-box {
  font-weight: bold;
  text-align: right !important;
  color: #FFFFFF !important;
}

.stats-grid .stat-box:not(.stat-box.stat-box) {
  text-align: center !important;
  background: rgba(30, 38, 70, 0.95) !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  color: #FFFFFF !important;
}

.player-trend-card .player-stats {
  font-size: 11.32px !important;
  line-height: 1.5 !important;
  color: #FFFFFF !important;
  position: static; /* Remove absolute positioning */
  padding: 0; /* Remove padding to avoid shifting stat lines */
  margin: 0; /* Reset margins */
  z-index: auto;
}

.player-trend-card .card-top {
  background-color: rgb(20 23 33 / 50%) !important;
  padding: 12px 15px; /* Maintain padding for height */
  margin: -16px -16px 0 -16px; /* Extend to card edges, leave bottom margin for spacing */
  position: relative;
}

.trend-logo-box img {
  width: 40px;
  height: 28px;
  opacity: 0.7;
  margin-right: 5px;
}

.stat-line {
  display: flex !important;
  align-items: baseline !important;
}

.team-badge {
  color: #ffffff;
  font-weight: 600;
  width: 48px;
  height: 32px;
  line-height: 32px;
  padding: 0;
  border-radius: 6px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}

/* === Horizontal Timeline Today's Games Section === */
.todays-games-timeline {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
  position: relative; /* For potential gradient overlays for scrolling hints */
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.timeline-header {
  text-align: left; /* Align header to the left */
  margin-bottom: 1.5rem; /* Space between header and scroll container */
  padding-left: 15px; /* Align with container padding if any */
  padding-right: 15px;
}

.timeline-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem; /* Slightly smaller than full-center title */
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
  letter-spacing: -0.3px;
}

.timeline-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.timeline-scroll-container {
  overflow-x: auto; /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding: 0.5rem 20px 1.5rem 20px; /* Padding around the scrolling area, bottom for scrollbar */
  scrollbar-width: thin; /* Firefox scrollbar */
  scrollbar-color: #57606a #21262d; /* Firefox scrollbar colors */
  color-scheme: dark; /* Use dark scrollbars where supported */
  position: relative;
}

/* Webkit (Chrome, Safari) scrollbar styling */
.timeline-scroll-container::-webkit-scrollbar {
  height: 8px;
  background-color: #0D1117;
}
.timeline-scroll-container::-webkit-scrollbar-track {
  background: #21262d;
  border-radius: 4px;
}
.timeline-scroll-container::-webkit-scrollbar-thumb {
  background-color: #57606a;
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.timeline-scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #6e7681;
}

.timeline-games-wrapper {
  display: flex; /* Layout game tiles in a row */
  flex-wrap: nowrap; /* Prevent wrapping to enforce horizontal scroll */
  gap: 1rem; /* Space between game tiles */
  padding-bottom: 0.5rem; /* Space for shadows or if scrollbar is outside */
}

.game-tile {
  background: #161B22; /* Slightly different dark shade for tiles */
  border-radius: 12px; /* Consistent rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-width: 450px; /* Larger tile size */
  max-width: 450px;
  height: 250px;
  flex: 0 0 auto; /* Prevent tiles from shrinking/growing */
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); /* Softer shadow */
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden; /* To contain the accent bar */
}

.game-tile:hover,
.game-tile:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #30363D;
}

.game-tile:focus {
  outline: 2px solid #197BFF;
  outline-offset: 1px;
}

.game-tile-header {
  padding: 0.75rem 1rem 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.team-color-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px; /* Thickness of the accent bar */
  /* background-color is set inline via style attribute */
}

.game-time-tile {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  padding-top: 6px; /* Ensure it's below the accent bar */
}

.game-odds-tile {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-left: auto;
}

.game-tile-body {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  flex-grow: 1;
}

.team-info-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1; /* Take up available space */
  min-width: 0; /* For text overflow */
}

.team-info-tile.team-home-tile {
  align-items: flex-end;
}

.team-abbr-tile {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem; /* Prominent abbreviation */
  font-weight: 700;
  line-height: 1.1;
  /* Color is set inline via style attribute */
  margin-bottom: 0.1rem;
}

/* Use larger team badges within game tiles */
.game-tile .team-badge {
  font-size: 1.04rem;
  font-weight: 700;
  padding: 0 12px;
  height: 46px;
  line-height: 36px;
  min-width: 60px;
}

.team-name-tile {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px; /* Prevent long names from breaking layout */
}

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

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

body.nba-matchups .game-tile .team-row,
.nba-page.nba-matchups .game-tile .team-row {
  justify-content: flex-start;
}

.team-full-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-separator-tile {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.25rem;
}

.pitcher-name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  margin-left: auto;
}

.game-tile-footer {
  padding: 0.5rem 1rem 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pitcher-line {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* Optional: Add fading gradient overlays for scroll indication if desired */
/*
.timeline-scroll-container::before,
.timeline-scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px; 
  pointer-events: none;
  z-index: 2;
}
.timeline-scroll-container::before {
  left: 0;
  background: linear-gradient(to right, #0D1117, transparent);
}
.timeline-scroll-container::after {
  right: 0;
  background: linear-gradient(to left, #0D1117, transparent);
}
*/

/* Ensure original .todays-games styles don't interfere */
.todays-games .card.shadow-lg,
.todays-games .game-card {
    /* These are old styles, should not conflict due to new parent class */
}

/* Spacer to push footer below the fold on initial load */
.initial-page-spacer {
  height: 30vh;
}

/* === Matchup Game Hub Layout === */
.game-hub-layout {
  width: min(1760px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 2fr 0.9fr;
  gap: 1.1rem;
  align-items: start;
}

.game-hub-column {
  min-width: 0;
}

.game-hub-column--left .probable-pitchers {
  margin-bottom: 1rem !important;
}

.game-hub-column--left .probable-pitchers-card {
  padding: 1rem !important;
}

.game-hub-column--left .probable-pitchers-header {
  font-size: 1.1rem;
  margin-bottom: 0.8rem !important;
}

.game-hub-column--center .player-trends {
  margin-bottom: 0 !important;
}

.game-hub-column--center .player-trends .card.shadow-lg {
  padding: 1rem !important;
}

.game-hub-column--right {
  position: sticky;
  top: 92px;
}

.game-shortlist-card {
  background: #0D1117;
  border: 1px solid #21262D;
}

.game-shortlist-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #F0F6FC;
  letter-spacing: 0.01em;
}

.game-shortlist-subtitle {
  color: #8B949E;
  font-size: 0.86rem;
}

.game-shortlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.game-shortlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #161B22;
  border: 1px solid #30363D;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.shortlist-item-main {
  display: flex;
  align-items: center;
  min-width: 0;
}

.shortlist-player-link {
  color: #E6EDF3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shortlist-player-link:hover {
  color: #58A6FF;
}

.player-action-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.player-action-group .add-pick-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.game-tile.is-selected {
  border-color: rgba(56, 139, 253, 0.85);
  box-shadow:
    0 0 0 1px rgba(56, 139, 253, 0.65),
    0 10px 26px rgba(31, 111, 235, 0.28);
  transform: translateY(-3px);
}

@media (max-width: 1300px) {
  .game-hub-layout {
    grid-template-columns: 1fr;
    width: min(1180px, 96vw);
  }

  .game-hub-column--right {
    position: static;
  }
}

/* === Two-Column Matchup Dashboard === */
.matchup-dashboard {
  width: min(1820px, 96vw);
  margin: 0.25rem auto 0;
  display: block;
}

.matchup-main-column {
  min-width: 0;
  position: static;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.slate-strip {
  position: sticky;
  top: 0;
  z-index: 8;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 17, 26, 0.96), rgba(13, 17, 23, 0.98)),
    rgba(13, 17, 23, 0.96);
  box-shadow:
    0 20px 44px rgba(2, 6, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.slate-strip__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.slate-strip__header-right {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.slate-strip__filter {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 0.22rem;
}

.slate-strip__filter-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.slate-strip__filter-btn:hover {
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.slate-strip__filter-btn.is-active {
  background: rgba(69, 130, 240, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(69, 130, 240, 0.28);
}

.slate-strip__card.is-filtered-out {
  display: none;
}

.slate-strip__eyebrow {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(191, 219, 254, 0.96);
  margin-bottom: 0.34rem;
}

.slate-strip__subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.slate-strip__meta-count {
  color: rgba(226, 232, 240, 0.9);
  font-weight: 700;
}

.slate-strip__meta-divider {
  color: rgba(96, 165, 250, 0.42);
  transform: translateY(-0.02em);
}

.slate-strip__meta-date {
  color: rgba(148, 163, 184, 0.72);
}

.slate-strip__selection {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
}

.slate-strip__selection-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.65);
}

.slate-strip__selection-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f0f6fc;
}

.slate-strip__scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(470px, 540px);
  gap: 0.8rem;
  overflow-x: auto;
  padding-top: 0.3rem;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.slate-strip__scroller::-webkit-scrollbar {
  height: 8px;
}

.slate-strip__scroller::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.9);
  border-radius: 999px;
}

.slate-strip__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 250px;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(160deg, rgba(8, 13, 22, 0.98) 0%, rgba(10, 16, 26, 1) 100%);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  scroll-snap-align: start;
  appearance: none;
  cursor: pointer;
  text-align: left;
}

.slate-strip__card::before,
.slate-strip__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.slate-strip__card::before {
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--away-color) 34%, transparent), transparent 34%),
    radial-gradient(circle at 86% 22%, color-mix(in srgb, var(--home-color) 34%, transparent), transparent 34%),
    linear-gradient(120deg, color-mix(in srgb, var(--away-color) 9%, transparent) 0%, transparent 34%, color-mix(in srgb, var(--home-color) 8%, transparent) 100%);
  opacity: 0.95;
}

.slate-strip__card::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 16px);
  mix-blend-mode: screen;
  opacity: 0.35;
  transition: opacity 0.18s ease;
}

.slate-strip__card:hover,
.slate-strip__card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(88, 166, 255, 0.48);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(88, 166, 255, 0.18);
}

.slate-strip__selected-pill {
  position: absolute;
  top: 0.62rem;
  right: 0.78rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fbff;
}

.slate-strip__card-top.has-selected-pill {
  padding-right: 8.6rem;
}

.slate-strip__viewed-pill {
  position: absolute;
  top: 0.72rem;
  right: 0.78rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 10px 20px rgba(2, 6, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.82);
}

.slate-strip__card.is-selected {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--away-color) 50%, var(--home-color));
  background:
    linear-gradient(160deg, rgba(14, 21, 35, 0.98) 0%, rgba(10, 16, 26, 1) 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--away-color) 42%, var(--home-color)),
    0 20px 40px rgba(2, 6, 23, 0.34),
    0 0 0 6px color-mix(in srgb, color-mix(in srgb, var(--away-color) 50%, var(--home-color)) 14%, transparent);
  animation: slate-card-selected 420ms ease-out;
}

.slate-strip__card.is-selected::before {
  opacity: 1;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--away-color) 52%, transparent), transparent 36%),
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--home-color) 52%, transparent), transparent 36%),
    linear-gradient(120deg, color-mix(in srgb, var(--away-color) 18%, transparent) 0%, transparent 34%, color-mix(in srgb, var(--home-color) 16%, transparent) 100%);
}

.slate-strip__card.is-selected::after {
  opacity: 0.58;
}

.slate-strip__card.is-selected .slate-strip__time,
.slate-strip__card.is-selected .slate-strip__market,
.slate-strip__card.is-selected .slate-strip__probable-team {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fbff;
}

.slate-strip__card.is-selected .slate-strip__club-name,
.slate-strip__card.is-selected .slate-strip__crest-core {
  color: #ffffff;
}

.slate-strip__card.is-selected .slate-strip__club-record,
.slate-strip__card.is-selected .slate-strip__probable-name,
.slate-strip__card.is-selected .slate-strip__probable-stats {
  color: rgba(226, 232, 240, 0.88);
}

.slate-strip__card.is-selected .slate-strip__club--away .slate-strip__crest-ring {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--away-color) 68%, rgba(255, 255, 255, 0.18)),
    0 18px 32px color-mix(in srgb, var(--away-color) 32%, transparent);
}

.slate-strip__card.is-selected .slate-strip__club--home .slate-strip__crest-ring {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--home-color) 68%, rgba(255, 255, 255, 0.18)),
    0 18px 32px color-mix(in srgb, var(--home-color) 32%, transparent);
}

@keyframes slate-card-selected {
  0% {
    transform: translateY(0) scale(0.99);
  }
  100% {
    transform: translateY(-4px) scale(1);
  }
}

.slate-strip__card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.slate-strip__time,
.slate-strip__market {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(191, 203, 219, 0.88);
}

.slate-strip__market {
  white-space: nowrap;
}

.slate-strip__battle {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.52rem;
}

.slate-strip__club {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.slate-strip__crest {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
}

.slate-strip__crest-ring,
.slate-strip__crest-core {
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.slate-strip__club--away .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--away-color) 24%, rgba(15, 23, 42, 0.94));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--away-color) 52%, rgba(255, 255, 255, 0.14)),
    0 14px 30px color-mix(in srgb, var(--away-color) 22%, transparent);
}

.slate-strip__club--home .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--home-color) 24%, rgba(15, 23, 42, 0.94));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--home-color) 52%, rgba(255, 255, 255, 0.14)),
    0 14px 30px color-mix(in srgb, var(--home-color) 22%, transparent);
}

.slate-strip__crest-core {
  inset: 6px;
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f8fbff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(8, 13, 22, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.slate-strip__club-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  min-width: 0;
}

.slate-strip__club-side {
  display: none;
}

.slate-strip__club-name {
  min-width: 0;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.98);
}

.slate-strip__club-record {
  font-size: 0.6rem;
  color: rgba(191, 203, 219, 0.72);
}

.slate-strip__versus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;
}

.slate-strip__versus-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(240, 246, 252, 0.92);
}

.slate-strip__versus-label {
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.52);
}

.slate-strip__probables {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  min-height: 48px;
  padding-top: 0.56rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.slate-strip__probable-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.32rem;
  align-items: center;
}

.slate-strip__probable-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 18px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.57rem;
  font-weight: 800;
  color: rgba(240, 246, 252, 0.96);
}

.slate-strip__probable-name {
  min-width: 0;
  overflow: hidden;
  font-size: 0.76rem;
  line-height: 1.15;
  font-weight: 650;
  color: rgba(222, 230, 239, 0.92);
}

.slate-strip__probable-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.34rem;
  margin-left: 0.34rem;
  font-size: 0.58rem;
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: rgba(191, 203, 219, 0.68);
}

.slate-strip__probable-stat {
  white-space: nowrap;
}

.slate-strip__accent {
  position: absolute;
  inset: 0 0 auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 4px;
}

.slate-strip__accent span {
  opacity: 0.95;
}

.slate-strip__accent span:first-child {
  background: var(--away-color);
}

.slate-strip__accent span:last-child {
  background: var(--home-color);
}

/* ── Live / Final card states ─────────────────────────────────────────── */

.slate-strip__live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.slate-strip__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slate-strip__live-dot {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  animation: slate-live-pulse 1.4s ease-in-out infinite;
}

@keyframes slate-live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.slate-strip__final-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.slate-strip__outs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.594rem;
  color: #94a3b8;
}

.slate-strip__out-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #374151;
  flex-shrink: 0;
}

.slate-strip__out-dot--on {
  background: #f59e0b;
  border-color: #f59e0b;
}

.slate-strip__score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0 0.5rem;
}

.slate-strip__team-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slate-strip__team-block--home {
  flex-direction: row-reverse;
}

.slate-strip__team-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.slate-strip__team-block--home .slate-strip__team-meta {
  align-items: flex-end;
}

.slate-strip__team-nickname {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
}

.slate-strip__team-nickname--leading {
  color: #f8fafc;
}

.slate-strip__team-rec {
  font-size: 0.625rem;
  color: #94a3b8;
}

.slate-strip__score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.slate-strip__score-pair {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.slate-strip__score-num {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1;
  color: #dbe7f5;
}

.slate-strip__score-num--leading {
  color: #ffffff;
}

.slate-strip__score-num--tied {
  color: #93c5fd;
}

.slate-strip__score-dash {
  font-size: 1rem;
  color: #7f8ea3;
  font-weight: 300;
}

.slate-strip__inning-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slate-strip__final-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: #a8b6c8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slate-strip__divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  margin: 0.25rem 0 0.44rem;
}

.slate-strip__linescore {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}

.slate-strip__linescore th {
  color: #a8b6c8;
  font-weight: 600;
  text-align: center;
  padding: 2px 2px;
  font-size: 0.563rem;
  letter-spacing: 0.04em;
}

.slate-strip__linescore td {
  text-align: center;
  padding: 3px 2px;
  color: #c2cfdf;
  border-top: 1px solid rgba(148, 163, 184, 0.06);
  min-width: 12px;
}

.slate-strip__ls-name {
  text-align: left !important;
  color: #9fb0c6;
  font-weight: 700;
  font-size: 0.594rem;
  padding-left: 0 !important;
  width: 24px;
}

.slate-strip__ls-rhe-header {
  border-left: 1px solid rgba(148, 163, 184, 0.1);
}

.slate-strip__ls-rhe {
  border-left: 1px solid rgba(148, 163, 184, 0.1);
}

.slate-strip__ls-cell--active {
  color: #93c5fd !important;
  font-weight: 700;
}

.slate-strip__ls-cell--future {
  color: #72839a !important;
}

.slate-strip__ls-r {
  color: #f0f6fc;
  font-weight: 700;
  border-left: 1px solid rgba(148, 163, 184, 0.1);
}

.slate-strip__ls-he {
  color: #9fb0c6;
  font-weight: 600;
}

/* ── Live/Final card: team color crest rings (dark mode) ──────────────── */

.slate-strip__team-block--away .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--away-color) 24%, rgba(15, 23, 42, 0.94));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--away-color) 52%, rgba(255, 255, 255, 0.14)),
    0 14px 30px color-mix(in srgb, var(--away-color) 22%, transparent);
}

.slate-strip__team-block--home .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--home-color) 24%, rgba(15, 23, 42, 0.94));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--home-color) 52%, rgba(255, 255, 255, 0.14)),
    0 14px 30px color-mix(in srgb, var(--home-color) 22%, transparent);
}

/* ── Postgame hub ──────────────────────────────────────────────────────── */

.postgame-hero,
.postgame-hub {
  color: #e5edf6;
}

.postgame-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(8, 12, 18, 0.96), rgba(7, 10, 16, 0.98));
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.postgame-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 14%, color-mix(in srgb, var(--away-color) 18%, transparent), transparent 36%),
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--home-color) 18%, transparent), transparent 34%);
  pointer-events: none;
}

.postgame-hero__bar,
.postgame-hero__scoreboard,
.postgame-hero__linescore-wrap,
.postgame-hero__meta {
  position: relative;
  z-index: 1;
}

.postgame-hero__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.9rem 0;
}

.postgame-hero__status,
.postgame-hero__extras {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.postgame-hero__status {
  color: #f8fafc;
  background: rgba(248, 250, 252, 0.08);
}

.postgame-hero__extras {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.12);
}

.postgame-hero__scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.9rem 1.25rem;
}

.postgame-hero__team {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.postgame-hero__team--home {
  text-align: right;
}

.postgame-hero__team-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.postgame-hero__team--home .postgame-hero__team-top {
  justify-content: flex-end;
}

.postgame-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.postgame-hero__label,
.postgame-hero__record {
  font-size: 0.72rem;
  color: #8fa3ba;
}

.postgame-hero__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.08;
}

.postgame-hero__team.is-winner .postgame-hero__name {
  color: #ffffff;
}

.postgame-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.postgame-hero__scoreline {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
}

.postgame-hero__score {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  color: #9fb0c6;
}

.postgame-hero__score.is-winner {
  color: #ffffff;
}

.postgame-hero__dash {
  font-size: 1.25rem;
  color: #5f7188;
}

.postgame-hero__pitchers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  font-size: 0.78rem;
  color: #b5c4d6;
}

.postgame-hero__pitchers strong {
  color: #ffffff;
  font-weight: 800;
  margin-right: 0.35rem;
}

.postgame-hero__linescore-wrap {
  padding: 0 1.9rem 1rem;
}

.postgame-hero__linescore {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.postgame-hero__linescore th,
.postgame-hero__linescore td {
  padding: 0.42rem 0.4rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.postgame-hero__linescore th {
  color: #8fa3ba;
  font-size: 0.68rem;
  font-weight: 700;
}

.postgame-hero__linescore td {
  color: #dbe7f5;
}

.postgame-hero__linescore td:first-child {
  text-align: left;
  font-weight: 800;
  color: #f8fafc;
}

.postgame-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem 1rem;
  padding: 1rem 1.9rem 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.postgame-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.postgame-hero__meta-label,
.postgame-section__eyebrow {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f92aa;
}

.postgame-hero__meta-value {
  font-size: 0.86rem;
  color: #f8fafc;
}

.postgame-hub {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.postgame-section {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0)),
    rgba(8, 12, 18, 0.58);
}

.postgame-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

.postgame-section__title,
.postgame-leaders__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.postgame-compare-table-wrap .table-responsive {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.postgame-compare-table-wrap .table-responsive::-webkit-scrollbar {
  height: 8px;
}

.postgame-compare-table-wrap .table-responsive::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.26);
  border-radius: 999px;
}

.postgame-compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.postgame-compare-table th,
.postgame-compare-table td {
  padding: 0.85rem 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  text-align: center;
  white-space: normal;
}

.postgame-compare-table thead th {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa3ba;
  border-top: none;
}

.postgame-compare-table tbody td {
  font-size: 1rem;
  font-weight: 600;
  color: #b8c6d8;
}

.postgame-compare-table tbody td.is-winner {
  color: #ffffff;
  font-weight: 800;
}

.postgame-compare-table th:first-child,
.postgame-compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: #0b1017;
}

.postgame-compare-table thead th:first-child {
  z-index: 2;
}

.postgame-compare-table__team {
  min-width: 88px;
}

@media (max-width: 900px) {
  .postgame-compare-table {
    min-width: 920px;
    table-layout: auto;
  }

  .postgame-compare-table th,
  .postgame-compare-table td {
    white-space: nowrap;
  }
}

.postgame-leaders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.postgame-leaders__column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.postgame-leader-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.postgame-leader-row:first-of-type {
  border-top: none;
}

.postgame-leader-row__topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.28rem;
}

.postgame-leader-row__name {
  font-size: 0.96rem;
  font-weight: 700;
  color: #f8fafc;
}

.postgame-leader-row__summary,
.postgame-scoring__description {
  font-size: 0.78rem;
  color: #9fb0c6;
}

.postgame-leader-row__decision,
.postgame-scoring__result {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe1ff;
}

.postgame-leader-row__decision {
  margin-left: 0.15rem;
}

.postgame-scoring {
  display: flex;
  flex-direction: column;
}

.postgame-scoring__row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.postgame-scoring__row:first-child {
  border-top: none;
}

.postgame-scoring__inning {
  font-size: 0.76rem;
  font-weight: 800;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.postgame-scoring__event {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.postgame-scoring__topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.postgame-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.postgame-table-wrap {
  min-width: 0;
}

.postgame-table-wrap__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.postgame-scoring__score {
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dbe7f5;
  white-space: nowrap;
}

.postgame-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.postgame-table th,
.postgame-table td {
  padding: 0.55rem 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  white-space: nowrap;
}

.postgame-table th {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa3ba;
}

.postgame-table td {
  color: #dbe7f5;
}

.postgame-table th:first-child,
.postgame-table td:first-child {
  text-align: left;
}

.postgame-table td:first-child {
  color: #f8fafc;
  font-weight: 600;
}

.postgame-table__decision-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.42rem;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  color: #cfe1ff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.postgame-table th:not(:first-child),
.postgame-table td:not(:first-child) {
  text-align: center;
}

.postgame-batting-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.postgame-batting-player__order {
  flex-shrink: 0;
  width: 1.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7f92aa;
  text-align: right;
}

.postgame-batting-player__name {
  color: #f8fafc;
  font-weight: 600;
}

.postgame-batting-player__role {
  flex-shrink: 0;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.postgame-table__row--sub td {
  background: rgba(148, 163, 184, 0.018);
}

.postgame-table__row--sub .postgame-batting-player__name,
.postgame-table__row--sub td:first-child {
  color: #dbe7f5;
}

.postgame-table__row--sub .postgame-batting-player {
  padding-left: 1.6rem;
}

@media (max-width: 980px) {
  .postgame-hero__scoreboard,
  .postgame-leaders,
  .postgame-tables {
    grid-template-columns: 1fr;
  }

  .postgame-hero__center {
    order: -1;
  }

  .postgame-hero__team--home {
    text-align: left;
  }

  .postgame-hero__team--home .postgame-hero__team-top {
    justify-content: flex-start;
  }
}

html[data-theme='light'] .postgame-hero,
html[data-theme='light'] .postgame-hub {
  color: #122033;
}

html[data-theme='light'] .postgame-hero {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 252, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(241, 245, 249, 0.94));
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-theme='light'] .postgame-hero::before {
  background:
    radial-gradient(circle at 14% 14%, color-mix(in srgb, var(--away-color) 10%, transparent), transparent 34%),
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--home-color) 10%, transparent), transparent 32%);
}

html[data-theme='light'] .postgame-hero__status {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}

html[data-theme='light'] .postgame-hero__extras {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

html[data-theme='light'] .postgame-hero__label,
html[data-theme='light'] .postgame-hero__record,
html[data-theme='light'] .postgame-hero__linescore th,
html[data-theme='light'] .postgame-hero__meta-label,
html[data-theme='light'] .postgame-section__eyebrow {
  color: #64748b;
}

html[data-theme='light'] .postgame-hero__name,
html[data-theme='light'] .postgame-hero__team.is-winner .postgame-hero__name,
html[data-theme='light'] .postgame-hero__score.is-winner,
html[data-theme='light'] .postgame-hero__meta-value,
html[data-theme='light'] .postgame-hero__linescore td:first-child {
  color: #0f172a;
}

html[data-theme='light'] .postgame-hero__score {
  color: #475569;
}

html[data-theme='light'] .postgame-hero__dash {
  color: #94a3b8;
}

html[data-theme='light'] .postgame-hero__pitchers {
  color: #475569;
}

html[data-theme='light'] .postgame-hero__pitchers strong {
  color: #0f172a;
}

html[data-theme='light'] .postgame-hero__linescore th,
html[data-theme='light'] .postgame-hero__linescore td,
html[data-theme='light'] .postgame-hero__meta {
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme='light'] .postgame-hero__linescore td {
  color: #334155;
}

html[data-theme='light'] .postgame-section {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
    #ffffff;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme='light'] .postgame-section__title,
html[data-theme='light'] .postgame-leaders__heading,
html[data-theme='light'] .postgame-leader-row__name,
html[data-theme='light'] .postgame-scoring__inning,
html[data-theme='light'] .postgame-table-wrap__header,
html[data-theme='light'] .postgame-table td:first-child,
html[data-theme='light'] .postgame-batting-player__name {
  color: #0f172a;
}

html[data-theme='light'] .postgame-compare-table thead th,
html[data-theme='light'] .postgame-table th {
  color: #64748b;
}

html[data-theme='light'] .postgame-compare-table th,
html[data-theme='light'] .postgame-compare-table td,
html[data-theme='light'] .postgame-leader-row,
html[data-theme='light'] .postgame-scoring__row,
html[data-theme='light'] .postgame-table th,
html[data-theme='light'] .postgame-table td {
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme='light'] .postgame-compare-table tbody td,
html[data-theme='light'] .postgame-table td {
  color: #475569;
}

html[data-theme='light'] .postgame-compare-table tbody td.is-winner {
  color: #0f172a;
}

html[data-theme='light'] .postgame-compare-table th:first-child,
html[data-theme='light'] .postgame-compare-table td:first-child {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

html[data-theme='light'] .postgame-leader-row__summary,
html[data-theme='light'] .postgame-scoring__description {
  color: #475569;
}

html[data-theme='light'] .postgame-leader-row__decision,
html[data-theme='light'] .postgame-scoring__result {
  color: #1d4ed8;
}

html[data-theme='light'] .postgame-table__decision-badge {
  background: rgba(241, 245, 249, 0.96);
  border-color: rgba(148, 163, 184, 0.36);
  color: #334155;
}

html[data-theme='light'] .postgame-scoring__score,
html[data-theme='light'] .postgame-batting-player__role {
  color: #334155;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme='light'] .postgame-batting-player__order {
  color: #64748b;
}

html[data-theme='light'] .postgame-table__row--sub td {
  background: rgba(148, 163, 184, 0.05);
}

html[data-theme='light'] .postgame-table__row--sub .postgame-batting-player__name,
html[data-theme='light'] .postgame-table__row--sub td:first-child {
  color: #1e293b;
}

@media (max-width: 640px) {
  .postgame-hero__bar,
  .postgame-hero__scoreboard,
  .postgame-hero__linescore-wrap,
  .postgame-hero__meta,
  .postgame-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .postgame-compare {
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  }

  .postgame-scoring__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .postgame-scoring__score {
    margin-left: 0;
  }

  .postgame-hero__name {
    font-size: 1.12rem;
  }

  .postgame-hero__meta {
    grid-template-columns: 1fr 1fr;
  }
}

.matchup-empty-state {
  background: #0D1117;
  border: 1px solid #21262D;
  color: #E6EDF3;
}

.game-hub-board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--away-color, #f97316) 11%, transparent) 0%, transparent 28%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--home-color, #2563eb) 10%, transparent) 0%, transparent 30%),
    linear-gradient(180deg, rgba(11, 15, 22, 0.94), rgba(9, 13, 19, 0.98));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.game-hub-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--away-color, #f97316) 0%, color-mix(in srgb, var(--away-color, #f97316) 45%, transparent) 46%, color-mix(in srgb, var(--home-color, #2563eb) 45%, transparent) 54%, var(--home-color, #2563eb) 100%);
  opacity: 0.8;
}

.game-hub-board > .mb-4,
.game-hub-board > .mb-5 {
  margin-bottom: 0 !important;
}

.game-hub-board > .probable-pitchers,
.game-hub-board > .player-trends,
.game-hub-board > .team-game-prop-research,
.game-hub-board > .matchup-empty-state {
  position: relative;
  z-index: 1;
}

.matchup-main-column .probable-pitchers .probable-pitchers-card,
.matchup-main-column .player-trends .card.shadow-lg {
  background: #0D1117;
}

.game-hub-board .probable-pitchers-card,
.game-hub-board .player-trends .card.shadow-lg,
.game-hub-board .team-game-prop-research .probable-pitchers-card,
.game-hub-board .matchup-empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0)),
    rgba(10, 14, 21, 0.44) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  box-shadow: none !important;
}

.game-hub-board .probable-pitchers-card,
.game-hub-board .player-trends .card.shadow-lg,
.game-hub-board .team-game-prop-research .probable-pitchers-card {
  border-radius: 18px;
}

.game-hub-board .player-trends .table-responsive,
.game-hub-board .tgpr-results-shell,
.game-hub-board .pitcher-split-panel,
.game-hub-board .lineup-card-header {
  border-color: rgba(148, 163, 184, 0.09) !important;
}

.game-info-card {
  background: linear-gradient(155deg, rgba(16, 22, 30, 0.98), rgba(13, 17, 23, 1));
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.game-info-matchup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.game-info-team {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.game-info-vs {
  color: rgba(203, 213, 225, 0.72);
  font-weight: 700;
  font-size: 1.05rem;
}

.game-info-team-meta {
  min-width: 0;
}

.game-info-team-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #F0F6FC;
  line-height: 1.2;
}

.game-info-team-record {
  font-size: 0.8rem;
  color: rgba(191, 203, 219, 0.88);
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.95rem;
}

.game-info-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 0.6rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.game-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.92);
}

.game-info-value {
  font-size: 0.9rem;
  color: #E6EDF3;
  font-weight: 620;
  line-height: 1.25;
  word-break: break-word;
}

/* Two-column dashboard tuning: Probable Starting Pitchers */
.matchup-main-column .probable-pitchers:not(.starting-lineups) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitchers-card {
  padding: 0.72rem !important;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.2);
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitchers-header {
  font-size: 1.15rem !important;
  letter-spacing: -0.01em;
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-info {
  background: linear-gradient(165deg, rgba(20, 27, 36, 0.95), rgba(13, 17, 23, 0.98)) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 12px !important;
  padding: 0.9rem !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24) !important;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-info:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 166, 255, 0.45) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28) !important,
    0 0 0 1px rgba(88, 166, 255, 0.2) !important;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-name {
  font-size: 1rem !important;
  line-height: 1.25;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-hand {
  font-size: 0.78rem !important;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 0.7rem;
  margin-top: 0.35rem !important;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-stats .stat-item {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 9px;
  padding: 0.42rem 0.5rem;
  min-width: 0;
}

.matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-stats .stat-item strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(191, 203, 219, 0.88) !important;
}

/* Two-column dashboard tuning: Starting Lineups */
.matchup-main-column .starting-lineups {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.matchup-main-column .starting-lineups .probable-pitchers-card {
  padding: 0.95rem !important;
  border-radius: 14px;
  border-color: rgba(148, 163, 184, 0.2);
}

.matchup-main-column .starting-lineups .probable-pitchers-header {
  font-size: 1.25rem !important;
  letter-spacing: -0.01em;
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

.matchup-main-column .starting-lineups .probable-pitcher-info {
  background: linear-gradient(165deg, rgba(20, 27, 36, 0.95), rgba(13, 17, 23, 0.98)) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 12px !important;
  padding: 0.9rem !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24) !important;
}

.matchup-main-column .starting-lineups .lineup-table {
  font-size: 0.82rem;
}

.matchup-main-column .starting-lineups .lineup-table th,
.matchup-main-column .starting-lineups .lineup-table td {
  padding: 0.48rem 0.55rem;
}

.matchup-main-column .starting-lineups .lineup-table th:first-child,
.matchup-main-column .starting-lineups .lineup-table td:first-child {
  width: 46px;
  min-width: 46px;
  text-align: center;
}

.matchup-main-column .starting-lineups .lineup-table th:nth-child(2) {
  text-align: left;
}

.matchup-main-column .starting-lineups .lineup-table td:nth-child(2) {
  white-space: normal;
  line-height: 1.25;
}

.matchup-main-column .starting-lineups .lineup-table tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.015) !important;
}

.matchup-main-column .starting-lineups .lineup-table tbody tr:hover td {
  background: rgba(88, 166, 255, 0.08) !important;
}

/* Two-column dashboard tuning: Player Trends table (base table only) */
.matchup-main-column .player-trends {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.matchup-main-column .player-trends .card.shadow-lg {
  padding: 0.84rem !important;
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.16);
}

.matchup-main-column .player-trends .player-trends-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  padding: 0.2rem 0 0;
  margin-bottom: 0.7rem !important;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.matchup-main-column .player-trends .player-trends-header {
  font-size: 1.16rem !important;
  letter-spacing: -0.01em;
}

.matchup-main-column .player-trends .player-trends-subheader {
  max-width: 64ch;
  font-size: 0.76rem !important;
  line-height: 1.45;
  color: rgba(191, 203, 219, 0.7) !important;
  text-align: left;
  margin: 0;
}

.matchup-main-column .player-trends .player-trends-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  flex-wrap: wrap;
}

.matchup-main-column .player-trends .player-trends-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.76);
  cursor: pointer;
  user-select: none;
}

.matchup-main-column .player-trends .player-trends-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #58A6FF;
}

.matchup-main-column .player-trends .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    linear-gradient(160deg, rgba(17, 23, 33, 0.98), rgba(13, 17, 23, 1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.matchup-main-column .player-trends .player-trends-pitchers {
  display: flex;
  flex-direction: column;
}

.matchup-main-column .player-trends .player-trends-pitcher-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%),
    linear-gradient(160deg, rgba(17, 23, 33, 0.98), rgba(13, 17, 23, 1));
}

.matchup-main-column .player-trends .player-trends-pitcher-table {
  min-width: 1020px;
  table-layout: fixed;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.matchup-main-column .player-trends .player-trends-pitcher-table thead th {
  cursor: default;
  font-size: 0.66rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82) !important;
  background: rgba(8, 13, 22, 0.82) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09) !important;
  padding: 0.58rem 0.44rem !important;
  white-space: nowrap;
}

.matchup-main-column .player-trends .player-trends-pitcher-table tbody td {
  font-size: 0.78rem !important;
  font-weight: 700;
  padding: 0.66rem 0.44rem !important;
  line-height: 1.2;
  border-bottom: 1px solid rgba(148, 163, 184, 0.045);
  background: transparent !important;
  color: rgba(230, 237, 243, 0.96) !important;
}

.matchup-main-column .player-trends .player-trends-pitcher-table tbody td.highlight-text {
  color: #f0f6fc !important;
}

.matchup-main-column .player-trends .player-trends-pitcher-table tbody td .player-link {
  color: #f0f6fc !important;
}

.matchup-main-column .player-trends .player-trends-pitcher-table tbody td .pitcher-expand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #58A6FF !important;
  font-size: 0.79rem !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.matchup-main-column .player-trends .player-trends-pitcher-table tbody td .pitcher-expand-link:hover {
  background: rgba(56, 139, 253, 0.22);
  border-color: rgba(56, 139, 253, 0.5);
  color: #80BFFF !important;
  text-decoration: none !important;
}

.matchup-main-column .player-trends .player-trends-pitcher-table tbody td .pitcher-expand-link.is-expanded {
  color: #ffffff !important;
}

.matchup-main-column .player-trends .player-trends-pitcher-table thead th:nth-child(n+2),
.matchup-main-column .player-trends .player-trends-pitcher-table tbody td:nth-child(n+2) {
  border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.matchup-main-column .player-trends .player-trends-pitcher-table th:first-child,
.matchup-main-column .player-trends .player-trends-pitcher-table td:first-child {
  width: 24.39%;
  padding-left: 0.8rem !important;
}

.matchup-main-column .player-trends .player-trends-pitcher-table th:nth-child(2),
.matchup-main-column .player-trends .player-trends-pitcher-table th:nth-child(3),
.matchup-main-column .player-trends .player-trends-pitcher-table th:nth-child(4),
.matchup-main-column .player-trends .player-trends-pitcher-table td:nth-child(2),
.matchup-main-column .player-trends .player-trends-pitcher-table td:nth-child(3),
.matchup-main-column .player-trends .player-trends-pitcher-table td:nth-child(4) {
  width: 6.30%;
}

.matchup-main-column .player-trends .player-trends-pitcher-table th:nth-child(n+5),
.matchup-main-column .player-trends .player-trends-pitcher-table td:nth-child(n+5) {
  width: 11.34%;
}

.matchup-main-column .player-trends .player-trends-pitcher-table tbody > tr:not(.expandable-row) > td:nth-child(2),
.matchup-main-column .player-trends .player-trends-pitcher-table tbody > tr:not(.expandable-row) > td:nth-child(3),
.matchup-main-column .player-trends .player-trends-pitcher-table tbody > tr:not(.expandable-row) > td:nth-child(4) {
  font-size: 0.82rem !important;
  font-weight: 700;
}

.matchup-main-column .player-trends .sortable-table {
  min-width: 1020px;
  table-layout: fixed;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.matchup-main-column .player-trends .sortable-table thead th {
  font-size: 0.68rem !important;
  padding: 0.62rem 0.48rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82) !important;
  background: rgba(8, 13, 22, 0.82) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09) !important;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.matchup-main-column .player-trends .sortable-table thead th .sort-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: 0.18rem;
  opacity: 0.5;
}

.matchup-main-column .player-trends .sortable-table thead th:not(.sorted-asc):not(.sorted-desc) .sort-icon path:first-child {
  opacity: 0.3;
}

.matchup-main-column .player-trends .sortable-table thead th:not(.sorted-asc):not(.sorted-desc) .sort-icon path:last-child {
  opacity: 0;
}

.matchup-main-column .player-trends .sortable-table thead th:hover {
  color: #F0F6FC !important;
  background: rgba(56, 139, 253, 0.08) !important;
}

.matchup-main-column .player-trends .sortable-table thead th.sorted-asc,
.matchup-main-column .player-trends .sortable-table thead th.sorted-desc {
  color: #58A6FF !important;
  font-weight: 800;
  background: rgba(56, 139, 253, 0.12) !important;
  box-shadow: inset 0 -2px 0 rgba(88, 166, 255, 0.88);
}

.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td {
  font-size: 0.76rem !important;
  padding: 0.72rem 0.48rem !important;
  line-height: 1.2;
  border-bottom: 1px solid rgba(148, 163, 184, 0.045);
  background: transparent !important;
  transition: background-color 0.16s ease;
}

.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td .player-link {
  font-size: 0.92rem !important;
  line-height: 1.2;
  font-weight: 700;
}

.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td .expand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.79rem !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.matchup-main-column .player-trends .sortable-table td.highlight-text {
  font-size: 0.8rem !important;
  font-weight: 700;
}

.matchup-main-column .player-trends .sortable-table th:first-child,
.matchup-main-column .player-trends .sortable-table td:first-child {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  padding-left: 0.8rem !important;
}

.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td:first-child {
  overflow: hidden;
  display: table-cell !important;
}

.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td:first-child .team-badge {
  flex-shrink: 0;
}

.matchup-main-column .player-trends .player-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.46rem;
}

.matchup-main-column .player-trends .player-cell .team-badge {
  min-width: 40px;
  height: 26px;
  padding: 0 8px;
  font-size: 0.72rem;
  border-radius: 8px;
  line-height: 26px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 6px 12px rgba(0,0,0,0.12);
}

.matchup-main-column .player-trends .sortable-table td:first-child .player-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.matchup-main-column .player-trends .sortable-table th:nth-child(n+2):nth-child(-n+13),
.matchup-main-column .player-trends .sortable-table td:nth-child(n+2):nth-child(-n+13) {
  width: 62px;
  min-width: 62px;
  max-width: 62px;
}

.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td:nth-child(2),
.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td:nth-child(3),
.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td:nth-child(4) {
  font-size: 0.82rem !important;
  font-weight: 700;
}

.matchup-main-column .player-trends .sortable-table th:nth-child(n+5):nth-child(-n+13),
.matchup-main-column .player-trends .sortable-table td:nth-child(n+5):nth-child(-n+13) {
  background-image: linear-gradient(180deg, rgba(56, 139, 253, 0.025), transparent 68%);
}

.matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row):hover > td {
  background: rgba(255,255,255,0.022) !important;
}

.matchup-main-column .player-trends .sortable-table td.expanded-cell {
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 165, 250, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(56, 139, 253, 0.16), rgba(17, 24, 39, 0.12)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.34),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.matchup-main-column .player-trends .starting-lineup-star {
  color: #58A6FF !important;
  font-size: 0.78rem;
}

@media (max-width: 1280px) {
  .game-hub-board {
    padding: 0.88rem;
    gap: 0.8rem;
  }

  .slate-strip__scroller {
    grid-auto-columns: minmax(336px, 372px);
    scroll-snap-type: x mandatory;
  }

  .slate-strip__card {
    scroll-snap-stop: always;
  }

  /* Vertical team-block layout so scores never crowd team names at ~285px */
  .slate-strip__score-row {
    align-items: flex-start;
    padding: 0.15rem 0 0.35rem;
    gap: 0.25rem;
  }

  .slate-strip__team-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    min-width: 0;
    flex-shrink: 0;
  }

  .slate-strip__team-block--home {
    flex-direction: column;
    align-items: flex-end;
  }

  .slate-strip__team-meta { align-items: flex-start; }
  .slate-strip__team-block--home .slate-strip__team-meta { align-items: flex-end; }

  .slate-strip__score-center {
    flex-shrink: 0;
    padding-top: 0.18rem;
  }
}

@media (max-width: 1024px) {
  .slate-strip {
    position: static;
    padding: 0.55rem 0.9rem 0.9rem;
  }

  .game-info-grid {
    grid-template-columns: 1fr;
  }

  .matchup-main-column .starting-lineups .lineup-table {
    font-size: 0.8rem;
  }

  .matchup-main-column .starting-lineups .lineup-table th,
  .matchup-main-column .starting-lineups .lineup-table td {
    padding: 0.42rem 0.5rem;
  }

  .matchup-main-column .player-trends .sortable-table {
    min-width: 920px;
  }

  .matchup-main-column .player-trends .sortable-table th:first-child,
  .matchup-main-column .player-trends .sortable-table td:first-child {
    width: 195px;
    min-width: 195px;
    max-width: 195px;
  }

  .matchup-main-column .player-trends .player-trends-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .matchup-dashboard {
    width: min(96vw, 820px);
  }

  .game-hub-board {
    padding: 0.78rem;
    border-radius: 20px;
  }

  .matchup-main-column .player-trends .sortable-table {
    min-width: 840px;
  }

  .matchup-main-column .player-trends .sortable-table th:first-child,
  .matchup-main-column .player-trends .sortable-table td:first-child {
    width: 175px;
    min-width: 175px;
    max-width: 190px;
  }

  .matchup-main-column .starting-lineups .probable-pitcher-info {
    padding: 0.78rem !important;
  }

}

/* ============================================================
   GAME HUB REDESIGN — New Components
   ============================================================ */

/* ── Section Label Row (shared across all hub cards) ── */
.section-label-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(56, 139, 253, 0.14);
  border-radius: 7px;
  color: #58A6FF;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.hub-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.14rem;
}

.hub-section-heading__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
}

/* ── Game Hub Hero Card (replaces old game-info-card) ── */
.game-hub-hero-card {
  position: relative;
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--away-color, #f97316) 26%, transparent) 0%, transparent 32%),
    radial-gradient(circle at 88% 50%, color-mix(in srgb, var(--home-color, #2563eb) 24%, transparent) 0%, transparent 34%),
    linear-gradient(145deg, rgba(16, 22, 32, 0.98) 0%, rgba(11, 15, 22, 1) 58%, rgba(13, 18, 26, 1) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.game-hub-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%, transparent 78%, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.game-hub-color-bar {
  display: flex;
  height: 4px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.color-bar-away,
.color-bar-home {
  flex: 1;
}

.game-hub-hero-body {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.7rem 1.3rem;
}

.game-hub-teams-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
}

.game-hub-team {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    linear-gradient(120deg, color-mix(in srgb, var(--team-color, #58A6FF) 12%, transparent), transparent 48%);
  overflow: hidden;
}

.game-hub-team--home {
  align-items: flex-end;
  text-align: right;
}

.game-hub-team::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--team-color, #58A6FF) 90%, white 10%), transparent 86%);
  opacity: 0.95;
}

.game-hub-team--home::after {
  inset: 0 0 0 auto;
}

.game-hub-team--away {
  --team-color: var(--away-color, #f97316);
}

.game-hub-team--home {
  --team-color: var(--home-color, #2563eb);
}

.game-hub-team-watermark {
  position: absolute;
  top: 50%;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(4rem, 7vw, 5.9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--team-color, #58A6FF) 18%, transparent);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
  transform: translateY(-50%);
}

.game-hub-team--away .game-hub-team-watermark {
  right: 1rem;
}

.game-hub-team--home .game-hub-team-watermark {
  left: 1rem;
}

.game-hub-team-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.game-hub-team-topline--home {
  flex-direction: row-reverse;
}

.game-hub-team-badge {
  color: #fff;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  min-width: 68px;
  height: 54px;
  padding: 0 0.9rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 22px rgba(0, 0, 0, 0.28);
}

.game-hub-team-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.game-hub-team-info--right {
  text-align: right;
}

.game-hub-team-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #F0F6FC;
  line-height: 1.02;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.game-hub-team-record {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(218, 226, 237, 0.82);
  margin-top: 0.34rem;
  padding-inline-start: 0.14rem;
}

.game-hub-team-ml {
  display: inline-flex;
  align-items: center;
  margin-top: 0.38rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(225, 233, 244, 0.92);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-hub-team-ml--right {
  margin-left: auto;
}

.game-hub-team-info--right .game-hub-team-record {
  padding-inline-start: 0;
  padding-inline-end: 0.14rem;
}

.game-hub-team-role {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.7);
}

.game-hub-vs-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.72rem;
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  width: min(100%, 320px);
  justify-self: center;
  align-self: center;
  margin-inline: auto;
}

.game-hub-center-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
}

.game-hub-vs-label {
  position: relative;
  font-family: 'Outfit', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  font-size: 1.48rem;
  font-weight: 800;
  color: rgba(236, 242, 249, 0.92);
  letter-spacing: -0.5px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.12), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 12px rgba(255, 255, 255, 0.018);
}

.game-hub-vs-label::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: inherit;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.game-hub-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.game-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-meta-chip--time {
  background: color-mix(in srgb, var(--home-color, #58A6FF) 14%, rgba(7, 13, 22, 0.8));
  color: #7ab8ff;
  border: 1px solid color-mix(in srgb, var(--home-color, #58A6FF) 36%, rgba(255, 255, 255, 0.1));
}

.game-meta-chip--odds {
  background: rgba(148, 163, 184, 0.08);
  color: rgba(225, 233, 244, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.game-meta-chip--type {
  background: rgba(255, 255, 255, 0.045);
  color: rgba(214, 222, 234, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-hub-venue-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.1rem 0;
  font-size: 0.8rem;
  color: rgba(188, 198, 212, 0.78);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}

.game-hub-venue-bar i {
  color: color-mix(in srgb, var(--away-color, #58A6FF) 45%, white 24%);
  font-size: 0.74rem;
}

/* ── Pitcher Card (replaces probable-pitcher-info) ── */
.pitching-duel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.pitcher-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(160deg, rgba(19, 26, 36, 0.98) 0%, rgba(13, 17, 23, 0.99) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  overflow: hidden;
  padding: 0.72rem 0.78rem 0.72rem 0.84rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.24);
}

.pitcher-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--team-color, #58A6FF) 46%, rgba(255, 255, 255, 0.16));
  box-shadow: 0 16px 34px rgba(0,0,0,0.32), 0 0 0 1px color-mix(in srgb, var(--team-color, #58A6FF) 20%, transparent);
}

.pitcher-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 16px 0 0 16px;
  opacity: 0.92;
}

.pitcher-card-header {
  position: relative;
  z-index: 1;
  margin-bottom: 0.48rem;
}

.pitcher-card-identity {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.pitcher-card-team-badge {
  min-width: 52px;
  height: 34px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pitcher-card-name-stack {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  min-width: 0;
  flex: 1;
}

.pitcher-card-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.pitcher-card-team-name {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.76);
  font-weight: 700;
  white-space: nowrap;
}

.pitcher-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #F0F6FC;
  text-decoration: none;
  line-height: 1.02;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.pitcher-card-name:hover {
  color: #58A6FF;
}

.pitcher-card-hand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.38rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(191, 203, 219, 0.85);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.pitcher-season-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.34rem;
  margin-bottom: 0.4rem;
}

.pitcher-season-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  text-align: center;
  min-height: 52px;
  padding: 0.36rem 0.48rem 0.4rem;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, color-mix(in srgb, var(--team-color, #58A6FF) 9%, transparent), transparent 55%);
}

.pitcher-season-stat .psc-label {
  font-size: 0.5rem;
  letter-spacing: 0.11em;
}

.pitcher-season-stat .psc-value {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pitcher-primary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
  margin-bottom: 0.34rem;
}

.pitcher-primary-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.52rem;
  min-height: 52px;
  padding: 0.38rem 0.54rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, color-mix(in srgb, var(--team-color, #58A6FF) 9%, transparent), transparent 55%);
}

.pitcher-primary-stat .psc-label {
  font-size: 0.54rem;
  letter-spacing: 0.11em;
}

.pitcher-primary-stat .psc-value {
  font-size: 1.18rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.pitcher-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.34rem;
  margin-bottom: 0.4rem;
}

.pitcher-stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 10px;
  padding: 0.34rem 0.48rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.44rem;
  min-height: 44px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pitcher-stat-chip .psc-label {
  font-size: 0.54rem;
  letter-spacing: 0.11em;
}

.pitcher-stat-chip .psc-value {
  font-size: 0.98rem;
}

.pitcher-card:hover .pitcher-stat-chip,
.pitcher-card:hover .pitcher-primary-stat,
.pitcher-card:hover .pitcher-season-stat,
.pitcher-card:hover .pitcher-split-card {
  background: rgba(255, 255, 255, 0.055);
}

.pitcher-split-panel {
  padding-top: 0.48rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.pitcher-split-panel__title {
  margin-bottom: 0.28rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.72);
}

.pitcher-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.pitcher-split-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
  min-height: 62px;
  padding: 0.44rem 0.54rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, color-mix(in srgb, var(--team-color, #58A6FF) 8%, transparent), transparent 62%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pitcher-split-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.78);
  white-space: nowrap;
  min-width: 44px;
  line-height: 1.1;
}

.pitcher-split-card .psc-value {
  font-size: 0.9rem;
}

.pitcher-split-matrix {
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  width: min(100%, 372px);
}

.pitcher-split-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.07rem;
  text-align: center;
}

.pitcher-split-metric .psc-label {
  font-size: 0.53rem;
}

.pitcher-split-metric .psc-value {
  font-size: 0.76rem;
}

.psc-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.psc-value {
  font-size: 0.8rem;
  font-weight: 800;
  color: #E6EDF3;
  font-family: 'Manrope', sans-serif;
  line-height: 1.1;
}

.psc-value--good {
  color: #4ade80 !important;
}

.psc-value--bad {
  color: #f87171 !important;
}

@media (max-width: 600px) {
  /* Keep pitching-duel, primary, secondary as single-col; fix season + split */
  .pitching-duel-grid,
  .pitcher-primary-grid,
  .pitcher-secondary-grid {
    grid-template-columns: 1fr;
  }

  /* 3-column season stats so IP/ERA/WHIP + K/BB/HR fit compactly */
  .pitcher-season-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Keep VS LH / VS RH side by side */
  .pitcher-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slate-strip__card-top.has-selected-pill {
    padding-right: 6.4rem;
  }

  .lineup-sheet-grid {
    grid-template-columns: 1fr;
  }

  .pitcher-card {
    padding: 0.68rem 0.7rem 0.68rem 0.74rem;
  }

  .pitcher-card-name {
    font-size: 0.92rem;
  }

  .pitcher-primary-stat {
    min-height: 46px;
  }

  .pitcher-season-stat {
    min-height: 48px;
    padding: 0.34rem 0.46rem 0.38rem;
  }

  .pitcher-split-card {
    min-height: 56px;
    align-items: flex-start;
    flex-direction: column;
  }

  .pitcher-split-matrix {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem 0.4rem;
    margin-left: 0;
  }

  .pitcher-split-metric {
    align-items: flex-start;
    text-align: left;
  }

  .lineup-card-header {
    padding: 0.74rem 0.78rem 0.66rem 0.82rem;
  }

  .lineup-player-row {
    padding: 0.46rem 0.82rem;
  }
}

@media (max-width: 1260px) and (min-width: 601px) {
  .pitcher-season-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) and (min-width: 601px) {
  .pitcher-season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Lineup Card (replaces probable-pitcher-info in lineups) ── */
.lineup-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.lineup-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 22%),
    linear-gradient(160deg, rgba(17, 23, 33, 0.98) 0%, rgba(13, 17, 23, 1) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}

.lineup-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--team-color, #58A6FF) 34%, rgba(255,255,255,0.14));
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.lineup-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  opacity: 0.92;
}

.lineup-card-header {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.82rem 0.9rem 0.72rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.lineup-card-team-badge {
  min-width: 50px;
  height: 34px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 8px 16px rgba(0,0,0,0.18);
}

.lineup-card-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
}

.lineup-card-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.68);
}

.lineup-team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #F0F6FC;
  line-height: 1.05;
}

.lineup-player-list {
  list-style: none;
  margin: 0;
  padding: 0.28rem 0 0.3rem;
  counter-reset: none;
}

.lineup-player-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lineup-player-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.lineup-player-row:not(:last-child) {
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.lineup-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    color-mix(in srgb, var(--team-color, #58A6FF) 8%, transparent);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.72rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: rgba(226, 232, 240, 0.88);
  flex-shrink: 0;
}

.lineup-player-name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 640;
  color: #E6EDF3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineup-hand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.36rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(191, 203, 219, 0.76);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.lineup-unavailable {
  padding: 1rem 0.95rem 1.05rem;
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.82rem;
  font-style: normal;
  text-align: left;
  margin: 0;
}

/* ── Empty State ── */
.matchup-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(13, 17, 23, 0.6);
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  min-height: 260px;
  gap: 0.75rem;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #58A6FF;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.empty-state-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F0F6FC;
  margin: 0;
}

.empty-state-body {
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.75);
  max-width: 340px;
  line-height: 1.5;
  margin: 0;
}

.matchup-empty-state--no-data {
  min-height: 320px;
}

.slate-overview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  width: 100%;
}

.slate-overview__hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34%),
    radial-gradient(circle at right center, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(155deg, rgba(11, 17, 26, 0.98), rgba(15, 23, 42, 0.94) 58%, rgba(10, 16, 26, 1));
  box-shadow:
    0 24px 60px rgba(2, 6, 23, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 1.4rem;
}

.slate-overview__hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -32% 45%;
  height: 220px;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.14), rgba(56, 189, 248, 0.03) 55%, transparent 100%);
  transform: rotate(-10deg);
  pointer-events: none;
}

.slate-overview__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 0.7rem;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(147, 197, 253, 0.82);
}

.slate-overview__top-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.1rem;
  align-items: start;
}

.slate-overview__copy {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.slate-overview__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2rem, 2.45vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.slate-overview__body {
  max-width: 52ch;
  margin: -0.05rem 0 0;
  font-size: 0.94rem;
  color: rgba(203, 213, 225, 0.82);
  line-height: 1.55;
}

.slate-overview__status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(420px, 100%);
  align-items: stretch;
}

.slate-overview__status-wrap {
  justify-self: end;
  width: 100%;
}

.slate-overview__status-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.6rem 0.72rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.34);
  justify-items: center;
  align-content: center;
  text-align: center;
}

.slate-overview__status-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(191, 219, 254, 0.72);
}

.slate-overview__status-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: #f8fbff;
}

.slate-overview__recommended {
  margin-top: 0;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.slate-overview__recommended-label {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(191, 219, 254, 0.76);
}

.slate-overview__recommended-card,
.slate-feature-card {
  appearance: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.slate-overview__recommended-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  width: 100%;
  min-height: 146px;
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(15, 23, 42, 0.55));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.slate-overview__recommended-card:hover,
.slate-feature-card:hover {
  transform: translateY(-2px);
}

.slate-overview__recommended-card:hover {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 16px 32px rgba(8, 47, 73, 0.2);
}

.slate-overview__recommended-matchup {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.slate-overview__recommended-separator,
.slate-feature-card__teams-separator {
  color: rgba(191, 203, 219, 0.58);
  font-weight: 700;
}

.slate-overview__recommended-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.slate-overview__recommended-meta strong {
  font-size: 0.95rem;
  color: #f8fbff;
}

.slate-overview__recommended-meta span {
  color: rgba(191, 203, 219, 0.78);
  font-size: 0.8rem;
  line-height: 1.35;
}

.slate-overview__recommended-cta {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  margin-top: 0.3rem;
  color: #8ec5ff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.slate-overview__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.slate-feature-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 140px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(165deg, rgba(14, 21, 33, 0.98), rgba(10, 16, 26, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.slate-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
}

.slate-feature-card--pitching::before {
  background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.2), transparent 34%);
}

.slate-feature-card--offense::before {
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 34%);
}

.slate-feature-card--form::before {
  background: radial-gradient(circle at top right, rgba(52, 211, 153, 0.16), transparent 34%);
}

.slate-feature-card:hover {
  border-color: rgba(148, 197, 253, 0.34);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.26);
}

.slate-feature-card__eyebrow {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(191, 219, 254, 0.8);
}

.slate-feature-card__title {
  position: relative;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.08;
  color: #f8fbff;
}

.slate-feature-card__detail {
  position: relative;
  z-index: 1;
  margin-top: 0.12rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slate-feature-card__meta {
  position: relative;
  z-index: 1;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.82);
}

.slate-feature-card__teams {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slate-feature-card--featured {
  min-height: 146px;
}

.slate-feature-card--featured .slate-feature-card__detail {
  -webkit-line-clamp: 2;
}

/* ── Schedule Rail Improvements ── */
.schedule-rail-header {
  padding: 0.5rem 0.4rem 0.85rem;
}

.schedule-rail-header .timeline-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.schedule-rail-header .timeline-subtitle {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Stronger selected game tile state */
.matchup-schedule-column .game-tile.is-selected {
  border-color: rgba(56, 139, 253, 0.9) !important;
  background: linear-gradient(165deg, rgba(22, 35, 52, 0.99) 0%, rgba(13, 17, 23, 1) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(56, 139, 253, 0.55),
    0 14px 32px rgba(14, 74, 154, 0.45) !important;
}

.matchup-schedule-column .game-tile.is-selected .team-color-accent {
  height: 4px;
}

/* No-game message */
.no-game-message {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.6);
  padding: 1.5rem 0;
}

/* ── Player Trends Title (new layout) ── */
.matchup-main-column .player-trends .player-trends-title {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.35rem;
}

.matchup-main-column .player-trends .player-trends-subheader {
  font-size: 0.76rem !important;
  color: rgba(148, 163, 184, 0.7) !important;
  line-height: 1.4;
  margin-left: 0;
  align-self: flex-start;
}

/* ── Expand Link Improvement ── */
.sortable-table td .expand-link {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.22);
  color: #58A6FF !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
}

.sortable-table td .expand-link:hover {
  background: rgba(56, 139, 253, 0.22);
  border-color: rgba(56, 139, 253, 0.5);
  color: #80BFFF !important;
}

/* Starting lineup star adjustment */
.starting-lineup-star {
  font-size: 0.7rem !important;
  vertical-align: middle;
}

/* ── Probable Pitchers Section label in matchup context ── */
.matchup-main-column .probable-pitchers:not(.starting-lineups) .section-label-row,
.matchup-main-column .starting-lineups .section-label-row {
  margin-bottom: 0.85rem !important;
}

/* ── Trend box hit/miss refresh ── */
.hit-box {
  background: linear-gradient(135deg, rgba(56, 139, 253, 0.9), rgba(25, 92, 255, 0.85)) !important;
  border: 1px solid rgba(56, 139, 253, 0.5);
  box-shadow: 0 0 8px rgba(25, 123, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

.miss-box {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(148, 163, 184, 0.6) !important;
}

/* ── Trend card top header ── */
.player-trend-card .card-top {
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* ── Circle graph percent label ── */
.circle-graph-group {
  padding: 0.75rem 0;
}

.circle-graph-item .fw-bold {
  font-size: 0.78rem;
  color: #E6EDF3;
}

/* ── Trend card buttons ── */
.trend-card-buttons {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 0.85rem;
  margin-top: 0.5rem;
}

.btn-close-trend {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: rgba(191, 203, 219, 0.85) !important;
  letter-spacing: 0.02em;
  font-size: 0.72rem !important;
}

.btn-close-trend:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #F0F6FC !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  transform: none;
  box-shadow: none !important;
}

/* ── Stat card inside expandable row ── */
.player-trend-card .stat-card {
  background: rgba(19, 27, 38, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 10px;
  box-shadow: none;
}

.player-trend-card .stat-card:hover {
  background: rgba(30, 42, 58, 0.9) !important;
  border-color: rgba(88, 166, 255, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important, inset 0 0 0 rgba(0,0,0,0) !important;
}

/* ── vs-matchup line ── */
.vs-matchup-line {
  color: rgba(191, 203, 219, 0.7) !important;
  padding-top: 0.5rem !important;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  margin-top: 0.35rem;
}

/* ── Premium overlay ── */
.premium-overlay {
  background: linear-gradient(to bottom, rgba(13,17,23,0) 0%, rgba(13,17,23,0.92) 35%, rgba(13,17,23,1) 100%);
  border-radius: 0 0 14px 14px;
}

/* ── animate-slide-in on game hub ── */
.game-info.animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

/* ── Alert styling ── */
.ps-alert.alert-info {
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.28);
  color: #58A6FF;
  border-radius: 10px;
  font-size: 0.84rem;
}

/* ── Loading text ── */
.loading-text {
  color: rgba(191, 203, 219, 0.8) !important;
  font-size: 0.88rem;
}

.matchup-loading-shell {
  position: relative;
  margin-top: 1rem;
}

.matchup-loading-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 118px;
  padding: 1.1rem 1.2rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(11, 17, 26, 0.96), rgba(13, 17, 23, 0.98)),
    rgba(13, 17, 23, 0.96);
  box-shadow:
    0 18px 36px rgba(2, 6, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.matchup-loading-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 28%, color-mix(in srgb, var(--loading-away-color, #2563eb) 18%, transparent), transparent 34%),
    radial-gradient(circle at 88% 22%, color-mix(in srgb, var(--loading-home-color, #0ea5e9) 18%, transparent), transparent 34%);
  pointer-events: none;
}

.matchup-loading-panel__spinner,
.matchup-loading-panel__copy {
  position: relative;
  z-index: 1;
}

.matchup-loading-panel__spinner {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.22);
  border-top-color: color-mix(in srgb, var(--loading-home-color, #0ea5e9) 70%, white 30%);
  border-right-color: color-mix(in srgb, var(--loading-away-color, #2563eb) 70%, white 30%);
  animation: matchup-loading-spin 0.9s linear infinite;
}

.matchup-loading-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.matchup-loading-panel__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
}

.matchup-loading-panel__copy strong {
  font-size: 1rem;
  color: #f8fbff;
}

.matchup-loading-panel__copy span:last-child {
  color: rgba(191, 203, 219, 0.78);
}

@keyframes matchup-loading-spin {
  to {
    transform: rotate(360deg);
  }
}


/* ── Section header consistency across all cards ── */
.probable-pitchers-card .section-label-row .probable-pitchers-header,
.probable-pitchers-card .section-label-row .player-trends-header {
  font-size: 1.15rem !important;
}

.matchup-main-column .section-label-row .probable-pitchers-header {
  font-size: 1.15rem !important;
}

/* ── Game tile accent height consistency ── */
.matchup-schedule-column .game-tile .team-color-accent {
  height: 3px;
  border-radius: 0;
}


/* ============================================================
   PLAYER TREND CARD (PTC) — Premium Inline Drawer
   ============================================================ */

.trend-card-td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.matchup-main-column .player-trends .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

.matchup-main-column .player-trends .sortable-table .expandable-row > td.trend-card-td {
  padding: 0 !important;
  border: none !important;
}

/* Clip expanded card cleanly to the card's rounded corners */
.matchup-main-column .player-trends .card {
  overflow: hidden;
}

.ptc-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(14, 20, 30, 0.98) 0%, rgba(9, 13, 20, 1) 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0 0 20px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 50px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  animation: ptcReveal 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Full-bleed: pull ptc-shell flush to card edges */
.trend-card-td .ptc-shell {
  margin-left: -15px;
  margin-right: -15px;
  width: calc(100% + 30px);
  max-width: calc(100% + 30px);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: none;
}

/* Mobile: ptc-shell sticks to left edge while table scrolls horizontally */
@media (max-width: 640px) {
  /* Use overflow:clip so sticky children still work (hidden creates a scroll container) */
  .matchup-main-column .player-trends .card {
    overflow: clip;
  }

  .trend-card-td .ptc-shell {
    position: sticky;
    left: 0;
    margin: 0;
    /* card occupies 96vw with ~13px padding each side + ~21px outer margin each side
       available inner width = 100vw - 2*(21+13) = 100vw - 68px; add 2px breathing room */
    width: calc(100vw - 55px);
    max-width: calc(100vw - 55px);
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

@keyframes ptcReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ptc-color-bar {
  height: 2px;
  width: 100%;
}

.ptc-header {
  position: relative;
  padding: 1.08rem 1.24rem 0.74rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.ptc-header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding-inline: 0.38rem;
}

.ptc-identity-cluster {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.ptc-headshot-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.ptc-headshot-glow {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--player-color, #58A6FF) 40%, transparent) 0%, transparent 72%);
  filter: blur(10px);
  opacity: 0.95;
}

.ptc-headshot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
}

.ptc-team-badge {
  position: absolute;
  left: -4px;
  bottom: -4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ptc-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
  min-width: 0;
}

.ptc-panel-eyebrow,
.ptc-prop-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.48);
}

.ptc-player-name {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.56rem;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #f8fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ptc-team-label-row {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.ptc-team-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(203, 213, 225, 0.68);
}

.ptc-prop-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.16rem;
  text-align: right;
  justify-self: end;
  max-width: 320px;
}

.ptc-prop-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--player-color, #58A6FF) 26%, #f8fbff);
  text-shadow:
    0 1px 10px rgba(15, 23, 42, 0.55),
    0 0 16px color-mix(in srgb, var(--player-color, #58A6FF) 36%, transparent);
}

.ptc-prop-summary {
  display: flex;
  gap: 0.32rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.68);
}

.ptc-stats-strip {
  margin-top: 0.68rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  gap: 0;
}

.ptc-stat-period {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.58rem 0.68rem 0.08rem;
  min-width: 0;
}

.ptc-stat-period + .ptc-stat-period {
  border-left: 1px solid rgba(148, 163, 184, 0.1);
}

.ptc-stat-period-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.42);
  text-align: center;
}

.ptc-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.2rem;
  align-items: center;
}

.ptc-stat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  padding: 0.2rem 0.32rem 0.24rem;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  font-weight: 800;
  color: rgba(241, 245, 249, 0.86);
  line-height: 1;
  white-space: nowrap;
  min-width: 0;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ptc-stat-pill em {
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.62);
  text-transform: uppercase;
  line-height: 1;
}

.ptc-stat-pill strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(241, 245, 249, 0.92);
  line-height: 1;
}

.ptc-body {
  padding: 0.82rem 1.12rem 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.ptc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.82fr);
  gap: 0.68rem;
  align-items: start;
}

.ptc-main-column,
.ptc-side-column {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  min-width: 0;
}

.ptc-proof-band,
.ptc-matchup-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 0.76rem;
}

.ptc-proof-band {
  align-items: start;
}

.ptc-proof-panel,
.ptc-section-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 0.72rem 0.82rem;
}

.ptc-panel-heading,
.ptc-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.62rem;
  margin-bottom: 0.52rem;
}

.ptc-panel-heading-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.ptc-panel-summary {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.82);
}

.ptc-panel-summary--subtle {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.74);
}

.ptc-panel-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f3f7ff;
}

.ptc-recent-strip {
  display: grid;
  grid-template-columns: repeat(var(--ptc-recent-cols, 10), minmax(0, 1fr));
  justify-content: space-between;
  gap: 0.52rem;
  padding: 0.56rem 0.08rem 0.08rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.26), rgba(15, 23, 42, 0.1));
}

.ptc-recent-strip.is-sparse {
  justify-content: center;
  gap: 0.68rem;
}

.ptc-recent-game {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  grid-template-rows: auto 1fr auto;
  gap: 0.34rem;
  padding: 0.34rem 0.42rem 0.42rem;
  min-width: 0;
  min-height: 132px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.34), rgba(15, 23, 42, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(2, 6, 23, 0.34);
}

.ptc-recent-game__result {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(241, 245, 249, 0.96);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.48);
}

.ptc-recent-game__meter {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 18px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.62), rgba(30, 41, 59, 0.44));
  overflow: hidden;
}

.ptc-recent-game__fill {
  display: block;
  width: 100%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--player-color, #58A6FF) 62%, white) 0%, var(--player-color, #58A6FF) 100%);
  box-shadow:
    0 -2px 14px color-mix(in srgb, var(--player-color, #58A6FF) 30%, transparent);
  animation: ptcBarRise 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ptc-recent-game.is-miss .ptc-recent-game__fill,
.ptc-recent-game.is-zero .ptc-recent-game__fill {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.38) 0%, rgba(100, 116, 139, 0.22) 100%);
  box-shadow: none;
}

.ptc-recent-game.is-hit {
  border-color: color-mix(in srgb, var(--player-color, #58A6FF) 44%, rgba(148, 163, 184, 0.22));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--player-color, #58A6FF) 16%, transparent), transparent 66%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.22));
}

@keyframes ptcBarRise {
  from { height: 0% !important; }
}

.ptc-recent-game__meta {
  display: flex;
  align-items: center;
  gap: 0.34rem;
}

.ptc-recent-game__opp {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.88);
}

.ptc-recent-game__status {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.52);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.46);
}

.ptc-recent-game.is-hit .ptc-recent-game__status {
  background: color-mix(in srgb, var(--player-color, #58A6FF) 82%, white);
  box-shadow: 0 0 12px color-mix(in srgb, var(--player-color, #58A6FF) 42%, transparent);
}

.ptc-recent-game.is-miss .ptc-recent-game__status {
  background: rgba(244, 114, 182, 0.82);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.24);
}

.ptc-recent-game.is-zero .ptc-recent-game__result,
.ptc-recent-game.is-zero .ptc-recent-game__opp {
  color: rgba(148, 163, 184, 0.58);
}

.ptc-recent-empty {
  display: grid;
  place-items: center;
  min-height: 132px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.2), rgba(15, 23, 42, 0.08));
}

.ptc-recent-empty__label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(203, 213, 225, 0.74);
}

.ptc-proof-panel--rates {
  display: flex;
  flex-direction: column;
}

.ptc-side-rail {
  padding: 0.72rem 0.82rem;
}

.ptc-side-rail-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ptc-side-rail-block--context .ptc-section-head {
  margin-bottom: 0.48rem;
}

.ptc-side-rail-divider {
  height: 1px;
  margin: 0.64rem 0;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.02), rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.02));
}

.ptc-rate-ladder {
  display: grid;
  gap: 0.28rem;
}

.ptc-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
  padding: 0.1rem 0;
}

.ptc-rate-row + .ptc-rate-row {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.ptc-rate-row.is-season {
  margin-top: 0.04rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ptc-rate-row-main {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(56px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.ptc-rate-row-labels {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.ptc-rate-row-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.84);
}

.ptc-rate-row-record {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.66);
}

.ptc-rate-row-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ptc-rate-row-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--player-color, #58A6FF) 68%, #38bdf8) 0%, var(--player-color, #58A6FF) 100%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--player-color, #58A6FF) 16%, transparent);
}

.ptc-rate-row.is-season .ptc-rate-row-bar {
  height: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024));
}

.ptc-rate-row-value {
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.08rem;
}

.ptc-rate-row-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  color: #f8fbff;
}

.ptc-rate-row.is-season .ptc-rate-row-pct {
  font-size: 1.16rem;
}

.ptc-rate-row-meta {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.6);
}

.ptc-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.54rem;
}

.ptc-context-group {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  padding: 0.58rem 0.62rem 0.62rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012));
}

.ptc-context-group-head {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ptc-context-group-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #f8fbff;
}

.ptc-context-group-subtitle {
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.58);
}

.ptc-context-rows {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.ptc-context-row {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.04rem 0;
}

.ptc-context-row + .ptc-context-row {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding-top: 0.44rem;
}

.ptc-context-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.72rem;
}

.ptc-context-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ptc-context-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.88);
}

.ptc-context-record {
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.6);
}

.ptc-context-row-right {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ptc-context-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--player-color, #58A6FF) 42%, rgba(15, 23, 42, 0.56));
  border: 1px solid color-mix(in srgb, var(--player-color, #58A6FF) 70%, rgba(148, 163, 184, 0.2));
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fbff;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 12px color-mix(in srgb, var(--player-color, #58A6FF) 40%, transparent);
}

.ptc-context-pct {
  min-width: 42px;
  text-align: right;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(248, 251, 255, 0.94);
}

.ptc-context-rail {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.ptc-context-rail-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--player-color, #58A6FF) 64%, #38bdf8) 0%, var(--player-color, #58A6FF) 100%);
}

.ptc-context-row.is-active .ptc-context-label {
  color: #f8fbff;
}

.ptc-context-row.is-active .ptc-context-tag {
  background: color-mix(in srgb, var(--player-color, #58A6FF) 56%, rgba(15, 23, 42, 0.48));
  border-color: color-mix(in srgb, var(--player-color, #58A6FF) 78%, rgba(148, 163, 184, 0.26));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 16px color-mix(in srgb, var(--player-color, #58A6FF) 48%, transparent);
}

.ptc-context-row.is-active .ptc-context-pct {
  color: #f8fbff;
  text-shadow: 0 0 10px color-mix(in srgb, var(--player-color, #58A6FF) 48%, transparent);
}

.ptc-context-row.is-active .ptc-context-rail-fill {
  box-shadow: 0 0 12px color-mix(in srgb, var(--player-color, #58A6FF) 34%, transparent);
}

.ptc-context-row:not(.is-active) .ptc-context-pct {
  color: rgba(226, 232, 240, 0.76);
}

.ptc-context-row:not(.is-active) .ptc-context-rail-fill {
  opacity: 0.62;
  filter: saturate(0.82) brightness(0.9);
}

.ptc-context-note {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(148, 163, 184, 0.62);
}

.ptc-context-note.is-positive {
  color: #4ade80;
}

.ptc-context-note.is-negative {
  color: #f59e0b;
}

.ptc-context-note.is-neutral {
  color: rgba(203, 213, 225, 0.64);
}

.ptc-splits-entity {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.ptc-splits-entity + .ptc-splits-entity {
  margin-top: 0.54rem;
  padding-top: 0.54rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.ptc-splits-entity-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ptc-splits-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fbff;
}

.ptc-splits-hand-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.44rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(203, 213, 225, 0.7);
}

.ptc-splits-recent {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.08);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(226, 232, 240, 0.92);
}

.ptc-splits-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.46rem;
}

.ptc-split-box {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  padding: 0.56rem 0.68rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.32), rgba(15, 23, 42, 0.18));
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ptc-split-box--active {
  border-color: color-mix(in srgb, var(--player-color, #58A6FF) 42%, rgba(148, 163, 184, 0.12));
  background: color-mix(in srgb, var(--player-color, #58A6FF) 10%, rgba(255, 255, 255, 0.035));
  transform: translateY(-1px);
}

.ptc-split-box-label {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.34rem;
  width: 100%;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(203, 213, 225, 0.78);
}

.ptc-split-box-label-main {
  display: inline-block;
}

.ptc-split-box-label-meta {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(148, 163, 184, 0.7);
}

.ptc-split-box--active .ptc-split-box-label {
  color: color-mix(in srgb, var(--player-color, #58A6FF) 68%, white);
  text-shadow: 0 0 10px color-mix(in srgb, var(--player-color, #58A6FF) 26%, transparent);
}

.ptc-split-box--active .ptc-split-box-label-meta {
  color: color-mix(in srgb, var(--player-color, #58A6FF) 40%, rgba(241, 245, 249, 0.86));
}

.ptc-split-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.34rem;
}

.ptc-split-stat-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ptc-split-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  text-align: center;
}

.ptc-split-stat em {
  font-style: normal;
  font-size: 0.53rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.74);
}

.ptc-split-stat strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(241, 245, 249, 0.96);
}

.ptc-split-box--active .ptc-split-stat strong {
  color: #f8fbff;
}

.ptc-h2h {
  margin-top: 0.56rem;
  display: flex;
  align-items: flex-start;
  gap: 0.42rem 0.72rem;
  flex-wrap: wrap;
  padding: 0.56rem 0.74rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.ptc-h2h-icon {
  color: var(--player-color, #58A6FF);
  font-size: 0.78rem;
  margin-top: 0.08rem;
}

.ptc-h2h-icon--none {
  color: rgba(148, 163, 184, 0.44);
}

.ptc-h2h-matchup {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.88);
  line-height: 1.25;
  flex: 0 1 auto;
  min-width: 180px;
  text-align: left;
  margin-right: auto;
}

.ptc-h2h-stats {
  display: flex;
  gap: 0.28rem 0.66rem;
  align-items: center;
  flex-wrap: wrap;
  flex: 1 1 100%;
  padding-top: 0.02rem;
  justify-content: flex-start;
}

.ptc-h2h-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  white-space: nowrap;
}

.ptc-h2h-val {
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  color: #f8fbff;
  letter-spacing: 0.01em;
}

.ptc-h2h-key {
  font-size: 0.62rem;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.ptc-h2h-sep {
  font-size: 0.56rem;
  color: rgba(148, 163, 184, 0.22);
}

.ptc-h2h > span:not(.ptc-h2h-matchup) {
  font-size: 0.68rem;
  color: rgba(203, 213, 225, 0.62);
}

.ptc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem 1.2rem 0.76rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(255, 255, 255, 0.012);
}

.ptc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.78rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 245, 249, 0.84);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ptc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.28);
  color: #fff;
}

.ptc-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ptc-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 245, 249, 0.84);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ptc-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.28);
  color: #fff;
}

@media (max-width: 1120px) {
  .ptc-workspace,
  .ptc-proof-band,
  .ptc-matchup-band {
    grid-template-columns: 1fr;
  }

  .ptc-header-main {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .ptc-prop-panel {
    align-items: flex-start;
    text-align: left;
  }

  .ptc-prop-summary {
    justify-content: flex-start;
  }

  .ptc-stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ptc-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.22rem;
  }

  .ptc-recent-strip {
    grid-template-columns: repeat(var(--ptc-recent-cols, 10), minmax(66px, 80px));
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.22rem;
    scrollbar-width: thin;
  }

  .ptc-recent-strip.is-sparse {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .ptc-header,
  .ptc-body,
  .ptc-footer {
    padding-left: 0.82rem;
    padding-right: 0.82rem;
  }

  .ptc-identity-cluster {
    align-items: flex-start;
  }

  .ptc-headshot-wrap {
    width: 56px;
    height: 56px;
  }

  .ptc-player-name {
    font-size: 1.08rem;
    white-space: normal;
  }

  .ptc-prop-title {
    font-size: 0.98rem;
  }

  /* Keep 3-column layout — stacking makes the strip enormous on mobile */
  .ptc-stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
  }

  /* Restore vertical dividers between periods */
  .ptc-stat-period + .ptc-stat-period {
    border-left: 1px solid rgba(148, 163, 184, 0.08);
    border-top: none;
  }

  /* Compact period padding */
  .ptc-stat-period {
    padding: 0.34rem 0.18rem 0.1rem;
  }

  .ptc-stat-period-label {
    font-size: 0.52rem;
  }

  /* Compact pill sizes so 3 per row fit at mobile widths */
  .ptc-stat-pill {
    padding: 0.14rem 0.14rem 0.16rem;
    min-height: 30px;
    min-width: 0;
  }

  .ptc-stat-pill em {
    font-size: 0.44rem;
  }

  .ptc-stat-pill strong {
    font-size: 0.68rem;
  }

  .ptc-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.14rem;
  }

  .ptc-recent-strip {
    gap: 0.4rem;
  }

  .ptc-recent-game {
    min-height: 112px;
    padding: 0.28rem 0.32rem 0.34rem;
  }

  .ptc-recent-game__meter {
    height: 56px;
  }

  .ptc-panel-heading {
    padding: 0.54rem 0.82rem;
  }

  .ptc-rate-row {
    align-items: flex-start;
  }

  .ptc-rate-row-main,
  .ptc-context-grid,
  .ptc-splits-boxes {
    grid-template-columns: 1fr;
  }

  .ptc-context-row {
    grid-template-columns: minmax(80px, auto) minmax(0, 1fr) 42px;
  }

  .ptc-splits-recent {
    margin-left: 0;
  }

  .ptc-split-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.3rem;
  }

  .ptc-footer {
    flex-wrap: wrap;
  }
}


/* ── TGPR card dark mode background (mirrors .probable-pitchers-card rule) ── */
.team-game-prop-research .probable-pitchers-card {
  background: #0D1117;
  border: 1px solid #21262D;
}

/* ============================================================
   LIGHT MODE OVERRIDES — matchup.css
   All dark-mode hardcoded colors are overridden here for
   html[data-theme='light']. Dark mode (default) is unchanged.
   ============================================================ */

/* ── Body noise texture ── */
html[data-theme='light'] body::before {
  opacity: 0.03;
}

/* ── Title section ── */
html[data-theme='light'] .title-section {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .title-section h1 {
  color: #0f172a;
}
html[data-theme='light'] .matchup-date {
  color: rgba(15, 23, 42, 0.7);
}
html[data-theme='light'] .matchup-subtitle {
  color: #5b6574;
}

/* ── Card base ── */
html[data-theme='light'] .card.shadow-sm {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .card.shadow-sm:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.11), 0 0 12px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.38);
}

/* ── Form controls ── */
html[data-theme='light'] select.form-select {
  background-color: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: #1f2937 !important;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' width='10' height='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,50 70,90 110,50' stroke='%231f2937' stroke-width='14' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}
html[data-theme='light'] select.form-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.2) !important;
}
html[data-theme='light'] .form-label {
  color: #0f172a;
}

/* ── Today's Games cards ── */
html[data-theme='light'] .todays-games .card.shadow-lg {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .todays-games .todays-games-header {
  color: #0f172a !important;
  text-shadow: none;
}
html[data-theme='light'] .todays-games .game-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
}
html[data-theme='light'] .todays-games .game-card:hover {
  background: #f0f6ff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.11) !important;
}
html[data-theme='light'] .todays-games .game-time {
  color: rgba(15, 23, 42, 0.62) !important;
}
html[data-theme='light'] .todays-games .game-time-badge {
  color: rgba(15, 23, 42, 0.62) !important;
}
html[data-theme='light'] .todays-games .team-name {
  color: #0f172a !important;
}
html[data-theme='light'] .todays-games .vs-divider {
  color: rgba(15, 23, 42, 0.45) !important;
}
html[data-theme='light'] .todays-games .pitcher-info {
  color: rgba(15, 23, 42, 0.58) !important;
}
html[data-theme='light'] .todays-games .pitcher-name {
  color: #1e293b !important;
}
html[data-theme='light'] .todays-games .pitcher-stats {
  color: rgba(15, 23, 42, 0.62) !important;
}
html[data-theme='light'] .todays-games .pitcher-line {
  color: rgba(15, 23, 42, 0.58) !important;
}
html[data-theme='light'] .todays-games .btn-analyze:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

/* ── Game tiles (horizontal timeline) ── */
html[data-theme='light'] .game-tile {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .game-tile:hover,
html[data-theme='light'] .game-tile:focus-within {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .game-time-tile,
html[data-theme='light'] .game-odds-tile {
  color: rgba(15, 23, 42, 0.6);
}
html[data-theme='light'] .team-name-tile {
  color: rgba(15, 23, 42, 0.75);
}
html[data-theme='light'] .team-full-name {
  color: rgba(15, 23, 42, 0.88);
}
html[data-theme='light'] .vs-separator-tile {
  color: rgba(15, 23, 42, 0.35);
}
html[data-theme='light'] .pitcher-name {
  color: rgba(15, 23, 42, 0.55);
}
html[data-theme='light'] .game-tile-footer {
  border-top-color: rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .pitcher-line {
  color: rgba(15, 23, 42, 0.6);
}
html[data-theme='light'] .timeline-title {
  color: #0f172a;
}
html[data-theme='light'] .timeline-subtitle {
  color: rgba(15, 23, 42, 0.5);
}
html[data-theme='light'] .timeline-scroll-container {
  scrollbar-color: #94a3b8 #e2e8f0;
}
html[data-theme='light'] .timeline-scroll-container::-webkit-scrollbar {
  background-color: #f1f5f9;
}
html[data-theme='light'] .timeline-scroll-container::-webkit-scrollbar-track {
  background: #e2e8f0;
}
html[data-theme='light'] .timeline-scroll-container::-webkit-scrollbar-thumb {
  background-color: #94a3b8;
}

/* ── Schedule column (sticky sidebar) game tiles ── */
html[data-theme='light'] .matchup-schedule-column .game-tile {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme='light'] .matchup-schedule-column .game-tile:hover,
html[data-theme='light'] .matchup-schedule-column .game-tile:focus-within {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.16);
}
html[data-theme='light'] .matchup-schedule-column .game-tile.is-selected {
  border-color: rgba(37, 99, 235, 0.92) !important;
  background: linear-gradient(165deg, #eff6ff 0%, #e0f2fe 100%) !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.48), 0 14px 32px rgba(37, 99, 235, 0.18) !important;
}
html[data-theme='light'] .matchup-schedule-column .game-tile.is-selected .team-full-name {
  color: #1d4ed8;
}
html[data-theme='light'] .matchup-schedule-column .team-full-name {
  color: rgba(15, 23, 42, 0.88);
}
html[data-theme='light'] .matchup-schedule-column .game-time-tile,
html[data-theme='light'] .matchup-schedule-column .game-odds-tile {
  color: rgba(15, 23, 42, 0.65);
}
html[data-theme='light'] .matchup-schedule-column .pitcher-line {
  color: rgba(15, 23, 42, 0.62);
}
html[data-theme='light'] .matchup-schedule-column .game-tile-footer {
  border-top-color: rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .matchup-schedule-column::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html[data-theme='light'] .matchup-main-column::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html[data-theme='light'] .schedule-rail-header .timeline-subtitle {
  color: rgba(15, 23, 42, 0.5);
}
html[data-theme='light'] .no-game-message {
  color: rgba(15, 23, 42, 0.5);
}

/* ── Section label icon ── */
html[data-theme='light'] .section-label-icon {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
html[data-theme='light'] .hub-section-heading__eyebrow {
  color: rgba(15, 23, 42, 0.48);
}

/* ── Game Hub Hero Card ── */
html[data-theme='light'] .game-hub-hero-card {
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--away-color, #f97316) 14%, transparent) 0%, transparent 32%),
    radial-gradient(circle at 88% 50%, color-mix(in srgb, var(--home-color, #2563eb) 14%, transparent) 0%, transparent 34%),
    linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .game-hub-team {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.7)),
    linear-gradient(120deg, color-mix(in srgb, var(--team-color, #2563eb) 8%, transparent), transparent 48%);
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .game-hub-team-watermark {
  color: color-mix(in srgb, var(--team-color, #2563eb) 12%, transparent);
  opacity: 0.7;
}
html[data-theme='light'] .game-hub-center-eyebrow {
  color: rgba(15, 23, 42, 0.48);
}
html[data-theme='light'] .game-hub-vs-label {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.9), transparent 56%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 0 0 12px rgba(15, 23, 42, 0.03);
}
html[data-theme='light'] .game-hub-vs-label::before {
  border-color: rgba(15, 23, 42, 0.05);
}
html[data-theme='light'] .game-info-card {
  background: linear-gradient(155deg, #ffffff, #f8fafc);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .game-info-matchup-row {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .game-info-vs {
  color: rgba(15, 23, 42, 0.5);
}
html[data-theme='light'] .game-info-team-name {
  color: #0f172a;
}
html[data-theme='light'] .game-info-team-record {
  color: rgba(15, 23, 42, 0.65);
}
html[data-theme='light'] .game-info-item {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .game-info-label {
  color: rgba(15, 23, 42, 0.55);
}
html[data-theme='light'] .game-info-value {
  color: #1e293b;
}
html[data-theme='light'] .game-hub-venue-bar {
  color: rgba(15, 23, 42, 0.58);
}
html[data-theme='light'] .game-hub-team-name {
  color: #0f172a;
}
html[data-theme='light'] .game-hub-team-record {
  color: rgba(15, 23, 42, 0.6);
}
html[data-theme='light'] .game-hub-team-ml {
  color: rgba(15, 23, 42, 0.78);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.34);
}
html[data-theme='light'] .game-meta-chip--odds {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.34);
}
html[data-theme='light'] .game-hub-team-role {
  color: rgba(15, 23, 42, 0.45);
}
html[data-theme='light'] .game-meta-chip--type {
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
}

/* ── Probable pitchers section ── */
html[data-theme='light'] .probable-pitchers .probable-pitchers-card,
html[data-theme='light'] .matchup-main-column .probable-pitchers .probable-pitchers-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-theme='light'] .game-hub-board {
  border-color: rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--away-color, #f97316) 8%, transparent) 0%, transparent 28%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--home-color, #2563eb) 7%, transparent) 0%, transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.96));
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme='light'] .game-hub-board .probable-pitchers-card,
html[data-theme='light'] .game-hub-board .player-trends .card.shadow-lg,
html[data-theme='light'] .game-hub-board .team-game-prop-research .probable-pitchers-card,
html[data-theme='light'] .game-hub-board .matchup-empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}
html[data-theme='light'] .probable-pitchers .card.shadow-lg {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .probable-pitchers-header {
  color: #0f172a !important;
}
html[data-theme='light'] .probable-pitcher-info {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme='light'] .probable-pitcher-info:hover {
  background: rgba(37, 99, 235, 0.04) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
}
html[data-theme='light'] .probable-pitcher-team-name {
  color: #0f172a !important;
}
html[data-theme='light'] .probable-pitcher-name {
  color: #0f172a !important;
}
html[data-theme='light'] .probable-pitcher-name:hover {
  color: rgba(15, 23, 42, 0.72) !important;
}
html[data-theme='light'] .probable-pitcher-hand {
  color: rgba(15, 23, 42, 0.5) !important;
}
html[data-theme='light'] .probable-pitcher-stats {
  color: #1f2937 !important;
}
html[data-theme='light'] .stat-item strong {
  color: rgba(15, 23, 42, 0.72) !important;
}

/* Matchup main column pitcher card refinements */
html[data-theme='light'] .matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-info {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
}
html[data-theme='light'] .matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-info:hover {
  border-color: rgba(37, 99, 235, 0.28) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1) !important, 0 0 0 1px rgba(37, 99, 235, 0.1) !important;
}
html[data-theme='light'] .matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-stats .stat-item {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.09);
}
html[data-theme='light'] .matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitcher-stats .stat-item strong {
  color: rgba(15, 23, 42, 0.55) !important;
}

/* ── New Pitcher Card (redesign) ── */
html[data-theme='light'] .pitcher-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .pitcher-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.12);
}
html[data-theme='light'] .pitcher-card-team-name,
html[data-theme='light'] .pitcher-card-subline,
html[data-theme='light'] .pitcher-split-label,
html[data-theme='light'] .pitcher-split-panel__title {
  color: rgba(15, 23, 42, 0.56);
}
html[data-theme='light'] .pitcher-card-name {
  color: #0f172a;
}
html[data-theme='light'] .pitcher-card-hand-badge {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.65);
}
html[data-theme='light'] .pitcher-primary-stat,
html[data-theme='light'] .pitcher-season-stat,
html[data-theme='light'] .pitcher-stat-chip {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.09);
}
html[data-theme='light'] .pitcher-split-card {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.09);
}
html[data-theme='light'] .pitcher-card:hover .pitcher-stat-chip,
html[data-theme='light'] .pitcher-card:hover .pitcher-primary-stat,
html[data-theme='light'] .pitcher-card:hover .pitcher-split-card {
  background: rgba(15, 23, 42, 0.04);
}
html[data-theme='light'] .psc-label {
  color: rgba(15, 23, 42, 0.5);
}
html[data-theme='light'] .psc-value {
  color: #1e293b;
}

/* ── Starting lineups ── */
html[data-theme='light'] .lineup-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16)),
    linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .lineup-card:hover {
  border-color: rgba(37, 99, 235, 0.16);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .lineup-card-header {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .lineup-card-label {
  color: rgba(15, 23, 42, 0.46);
}
html[data-theme='light'] .lineup-team-name {
  color: #0f172a;
}
html[data-theme='light'] .lineup-player-row:hover {
  background: rgba(15, 23, 42, 0.02);
}
html[data-theme='light'] .lineup-player-row:not(:last-child) {
  border-bottom-color: rgba(15, 23, 42, 0.04);
}
html[data-theme='light'] .lineup-order {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.88)),
    color-mix(in srgb, var(--team-color, #2563eb) 6%, transparent);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.78);
}
html[data-theme='light'] .lineup-player-name {
  color: #1e293b;
}
html[data-theme='light'] .lineup-hand {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.58);
}
html[data-theme='light'] .lineup-unavailable {
  color: rgba(15, 23, 42, 0.52);
}
html[data-theme='light'] .matchup-main-column .starting-lineups .probable-pitcher-info {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07) !important;
}
html[data-theme='light'] .lineup-table th,
html[data-theme='light'] .lineup-table td {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  color: #1f2937 !important;
}
html[data-theme='light'] .lineup-table > :not(caption) > * > * {
  color: #1f2937 !important;
  background-color: transparent !important;
}
html[data-theme='light'] .lineup-table th {
  background-color: rgba(15, 23, 42, 0.03);
  border-bottom-color: #2563eb;
}
html[data-theme='light'] .lineup-table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.04);
}

/* ── New Lineup Card ── */
html[data-theme='light'] .lineup-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .lineup-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .lineup-card-header {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .lineup-team-name {
  color: #0f172a;
}
html[data-theme='light'] .lineup-player-row:hover {
  background: rgba(37, 99, 235, 0.04);
}
html[data-theme='light'] .lineup-player-row:not(:last-child) {
  border-bottom-color: rgba(15, 23, 42, 0.05);
}
html[data-theme='light'] .lineup-order {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.65);
}
html[data-theme='light'] .lineup-player-name {
  color: #1e293b;
}
html[data-theme='light'] .lineup-hand {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.5);
}
html[data-theme='light'] .lineup-unavailable {
  color: rgba(15, 23, 42, 0.45);
}

/* ── Player trends section ── */
html[data-theme='light'] .player-trends .card.shadow-lg {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .matchup-main-column .player-trends .card.shadow-lg {
  background: #ffffff;
}
html[data-theme='light'] .player-trends-header {
  color: #0f172a !important;
  text-shadow: none;
}
html[data-theme='light'] .player-trends-title {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.09);
}
html[data-theme='light'] .matchup-main-column .player-trends .player-trends-title {
  background: transparent;
}
html[data-theme='light'] .matchup-main-column .player-trends .player-trends-subheader {
  color: rgba(15, 23, 42, 0.6) !important;
  text-align: left;
}

html[data-theme='light'] .matchup-main-column .player-trends .player-trends-toggle {
  color: rgba(15, 23, 42, 0.58);
}
html[data-theme='light'] .matchup-main-column .player-trends .table-responsive {
  border-color: rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.94);
}

/* ── Sortable table ── */
html[data-theme='light'] .sortable-table {
  color: #1f2937 !important;
}
html[data-theme='light'] .sortable-table > :not(caption) > * > * {
  color: #1f2937 !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}
html[data-theme='light'] .sortable-table thead {
  background: rgba(248, 250, 252, 0.98) !important;
}
html[data-theme='light'] .sortable-table thead th {
  color: #334155 !important;
  background: rgba(248, 250, 252, 0.98) !important;
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
  border-top: none !important;
}
html[data-theme='light'] .sortable-table th {
  color: #334155 !important;
  background: rgba(248, 250, 252, 0.98) !important;
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}
html[data-theme='light'] .sortable-table th:hover {
  background: rgba(37, 99, 235, 0.05) !important;
}
html[data-theme='light'] .sortable-table td,
html[data-theme='light'] .sortable-table th {
  border-right-color: rgba(15, 23, 42, 0.07) !important;
  color: #1f2937 !important;
}
html[data-theme='light'] .sortable-table tbody tr.row-light {
  background-color: #ffffff !important;
}
html[data-theme='light'] .sortable-table tbody tr.row-light > * {
  background-color: #ffffff !important;
}
html[data-theme='light'] .sortable-table tbody tr.row-alt {
  background-color: rgba(248, 250, 252, 0.98) !important;
}
html[data-theme='light'] .sortable-table tbody tr.row-alt > * {
  background-color: rgba(248, 250, 252, 0.98) !important;
}
html[data-theme='light'] .sortable-table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.04) !important;
}
html[data-theme='light'] .sortable-table tbody tr:hover > * {
  background-color: rgba(37, 99, 235, 0.04) !important;
}
html[data-theme='light'] .sortable-table a.player-link {
  color: #1d4ed8;
}
html[data-theme='light'] .row-light {
  background-color: #ffffff !important;
  color: #1f2937 !important;
}
html[data-theme='light'] .row-alt {
  background-color: rgba(248, 250, 252, 0.98) !important;
  color: #1f2937 !important;
}

/* Matchup main column table refinements */
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table thead th:hover {
  color: #0f172a !important;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.06) !important;
}
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table thead th.sorted-asc,
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table thead th.sorted-desc {
  color: #1d4ed8 !important;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.09) !important;
  box-shadow: inset 0 -2px 0 rgba(37, 99, 235, 0.8);
}
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table thead th {
  color: rgba(15, 23, 42, 0.56) !important;
  background: rgba(248, 250, 252, 0.96) !important;
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row) > td {
  border-bottom-color: rgba(15, 23, 42, 0.035) !important;
}
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table tbody > tr:not(.expandable-row):hover > td {
  background: rgba(15, 23, 42, 0.02) !important;
}
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table th:nth-child(n+5):nth-child(-n+13),
html[data-theme='light'] .matchup-main-column .player-trends .sortable-table td:nth-child(n+5):nth-child(-n+13) {
  background-image: linear-gradient(180deg, rgba(37, 99, 235, 0.035), transparent 70%);
}

/* ── Links and interactive text ── */
html[data-theme='light'] .player-link {
  color: #1d4ed8 !important;
}
html[data-theme='light'] .player-link:hover {
  color: rgba(30, 64, 175, 0.85) !important;
}
html[data-theme='light'] .expand-link {
  color: #1d4ed8 !important;
}
html[data-theme='light'] .expand-link:hover {
  color: #1e40af !important;
}
html[data-theme='light'] .sortable-table td .expand-link {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8 !important;
}
html[data-theme='light'] .sortable-table td .expand-link:hover {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.38);
  color: #1e40af !important;
}
html[data-theme='light'] .matchup-main-column .player-trends .player-cell .team-badge {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 10px rgba(15,23,42,0.08);
}

/* ── Expandable rows ── */
html[data-theme='light'] .expandable-row {
  background-color: #f8fafc !important;
}
html[data-theme='light'] .expandable-row .card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* ── Player info text ── */
html[data-theme='light'] .player-name {
  color: #0f172a !important;
}
html[data-theme='light'] .team-info {
  color: #1f2937 !important;
}
html[data-theme='light'] .player-stats {
  color: #1f2937 !important;
}
html[data-theme='light'] .stat-label {
  color: rgba(15, 23, 42, 0.75) !important;
}
html[data-theme='light'] .sp-info {
  color: rgba(15, 23, 42, 0.6) !important;
}
html[data-theme='light'] .sp-name {
  color: #0f172a !important;
}
html[data-theme='light'] .sp-stats {
  color: rgba(15, 23, 42, 0.6) !important;
}
html[data-theme='light'] .prop-title {
  color: #0f172a !important;
}
html[data-theme='light'] .last-games-text {
  color: #0f172a !important;
}

/* ── Circle graphs ── */
html[data-theme='light'] .circle-graph-group h6,
html[data-theme='light'] .circle-graph-title {
  color: #0f172a !important;
}
html[data-theme='light'] .circle-graph-item,
html[data-theme='light'] .circle-graph-label {
  color: #1f2937 !important;
}
html[data-theme='light'] .circle-percent {
  color: #0f172a !important;
}
html[data-theme='light'] .percentile-text {
  color: rgba(15, 23, 42, 0.5) !important;
}
html[data-theme='light'] .opponent-abbr {
  color: rgba(15, 23, 42, 0.5) !important;
}
html[data-theme='light'] .circle-graph-item .fw-bold {
  color: #1e293b;
}

/* ── Trend boxes ── */
html[data-theme='light'] .miss-box {
  background: rgba(15, 23, 42, 0.05) !important;
  color: rgba(15, 23, 42, 0.45) !important;
  border-color: rgba(15, 23, 42, 0.1);
}

/* ── Stat cards (inside expandable player trend cards) ── */
html[data-theme='light'] .player-trend-card .stat-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: none;
}
html[data-theme='light'] .player-trend-card .stat-card:hover {
  background: rgba(37, 99, 235, 0.04) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07) !important;
}
html[data-theme='light'] .stat-card h6 {
  color: #0f172a !important;
}
html[data-theme='light'] .stat-card .fw-semibold {
  color: #1f2937 !important;
}
html[data-theme='light'] .stat-card .today-sp-hand {
  color: #1f2937 !important;
}
html[data-theme='light'] .stat-label-white {
  color: #1f2937 !important;
}
html[data-theme='light'] .opponent-pct {
  color: #1f2937 !important;
}
html[data-theme='light'] .opposing-pitcher-box * {
  color: #1f2937 !important;
}
html[data-theme='light'] .opposing-pitcher-box .pitcher-section {
  border-right-color: rgba(15, 23, 42, 0.12);
}
html[data-theme='light'] .pct-text {
  color: rgba(15, 23, 42, 0.5) !important;
}
html[data-theme='light'] .player-trend-card .card-top {
  background-color: rgba(248, 250, 252, 0.88) !important;
}

/* ── Stats grid ── */
html[data-theme='light'] .stats-grid {
  color: #1f2937 !important;
}
html[data-theme='light'] .stat-box {
  color: #1f2937 !important;
}
html[data-theme='light'] .stats-grid .stat-box:not(.stat-box.stat-box) {
  background: rgba(248, 250, 252, 0.98) !important;
  color: #1f2937 !important;
}

/* ── Buttons ── */
html[data-theme='light'] .btn-close-trend {
  background: rgba(15, 23, 42, 0.05) !important;
  color: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: none;
}
html[data-theme='light'] .btn-close-trend:hover {
  background: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

/* ── vs-matchup line ── */
html[data-theme='light'] .vs-matchup-line {
  color: rgba(15, 23, 42, 0.6) !important;
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* ── Empty state ── */
html[data-theme='light'] .matchup-empty-state {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.14);
  color: #1e293b;
}
html[data-theme='light'] .empty-state-title {
  color: #0f172a;
}
html[data-theme='light'] .empty-state-body {
  color: rgba(15, 23, 42, 0.6);
}
html[data-theme='light'] .slate-strip {
  border-color: rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    #ffffff;
  box-shadow:
    0 18px 34px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme='light'] .slate-strip__eyebrow {
  color: rgba(30, 64, 175, 0.9);
}
html[data-theme='light'] .slate-strip__selection-value,
html[data-theme='light'] .slate-strip__club-name,
html[data-theme='light'] .slate-strip__crest-core,
html[data-theme='light'] .slate-strip__versus-mark,
html[data-theme='light'] .slate-strip__probable-team {
  color: #0f172a;
}
html[data-theme='light'] .slate-strip__subtitle,
html[data-theme='light'] .slate-strip__selection-label,
html[data-theme='light'] .slate-strip__time,
html[data-theme='light'] .slate-strip__market,
html[data-theme='light'] .slate-strip__club-record,
html[data-theme='light'] .slate-strip__club-side,
html[data-theme='light'] .slate-strip__versus-label,
html[data-theme='light'] .slate-strip__probable-name {
  color: rgba(15, 23, 42, 0.7);
}
html[data-theme='light'] .slate-strip__meta-count {
  color: rgba(15, 23, 42, 0.82);
}
html[data-theme='light'] .slate-strip__meta-divider {
  color: rgba(37, 99, 235, 0.34);
}
html[data-theme='light'] .slate-strip__meta-date {
  color: rgba(15, 23, 42, 0.64);
}
html[data-theme='light'] .slate-strip__count {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}
html[data-theme='light'] .slate-strip__card {
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(236, 243, 251, 1));
  box-shadow:
    0 18px 34px rgba(148, 163, 184, 0.2),
    0 1px 0 rgba(148, 163, 184, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme='light'] .slate-strip__card::before {
  background: none;
  opacity: 0;
}
html[data-theme='light'] .slate-strip__card::after {
  opacity: 0.1;
}
html[data-theme='light'] .slate-strip__card:hover,
html[data-theme='light'] .slate-strip__card:focus-visible {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    0 22px 38px rgba(148, 163, 184, 0.24),
    0 0 0 1px rgba(37, 99, 235, 0.14);
}
html[data-theme='light'] .slate-strip__card.is-selected {
  border-color: color-mix(in srgb, var(--away-color) 50%, var(--home-color));
  background: linear-gradient(165deg, rgba(244, 249, 255, 0.98), rgba(236, 243, 251, 1));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--away-color) 30%, var(--home-color)),
    0 22px 40px rgba(148, 163, 184, 0.24),
    0 0 0 6px color-mix(in srgb, color-mix(in srgb, var(--away-color) 50%, var(--home-color)) 10%, transparent);
}
html[data-theme='light'] .slate-strip__selected-pill {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.98));
  border-color: rgba(148, 163, 184, 0.26);
  color: #0f172a;
  box-shadow:
    0 10px 18px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme='light'] .slate-strip__viewed-pill {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.24);
  color: rgba(15, 23, 42, 0.68);
  box-shadow:
    0 10px 18px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__time,
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__market,
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__probable-team {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.28);
  color: #0f172a;
}
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__club-record,
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__probable-name,
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__probable-stats {
  color: rgba(15, 23, 42, 0.78);
}
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__club-name,
html[data-theme='light'] .slate-strip__card.is-selected .slate-strip__crest-core {
  color: #0f172a;
}
html[data-theme='light'] .slate-strip__time,
html[data-theme='light'] .slate-strip__market,
html[data-theme='light'] .slate-strip__versus-mark,
html[data-theme='light'] .slate-strip__probable-team {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(148, 163, 184, 0.22);
}
html[data-theme='light'] .slate-strip__versus-mark {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(15, 23, 42, 0.82);
  box-shadow:
    0 8px 16px rgba(148, 163, 184, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}
html[data-theme='light'] .slate-strip__crest-core {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.9));
  border-color: rgba(148, 163, 184, 0.24);
}
html[data-theme='light'] .slate-strip__club--away .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--away-color) 92%, white 8%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--away-color) 86%, black 6%),
    0 10px 22px color-mix(in srgb, var(--away-color) 20%, transparent);
}
html[data-theme='light'] .slate-strip__club--home .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--home-color) 92%, white 8%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--home-color) 86%, black 6%),
    0 10px 22px color-mix(in srgb, var(--home-color) 20%, transparent);
}
html[data-theme='light'] .slate-strip__probables {
  border-top-color: rgba(148, 163, 184, 0.24);
}
html[data-theme='light'] .slate-strip__probable-row {
  color: rgba(15, 23, 42, 0.82);
}
html[data-theme='light'] .slate-strip__probable-team {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.24);
  color: rgba(15, 23, 42, 0.8);
}
html[data-theme='light'] .slate-strip__probable-name {
  color: rgba(15, 23, 42, 0.76);
  font-weight: 650;
}
html[data-theme='light'] .slate-strip__probable-stats {
  color: rgba(71, 85, 105, 0.82);
}
html[data-theme='light'] .slate-strip__scroller::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.9);
}
html[data-theme='light'] .slate-strip__filter {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .slate-strip__filter-btn {
  color: rgba(71, 85, 105, 0.8);
}
html[data-theme='light'] .slate-strip__filter-btn:hover {
  color: #1e3a5f;
  background: rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .slate-strip__filter-btn.is-active {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}
html[data-theme='light'] .slate-overview__hero {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.13), transparent 34%),
    radial-gradient(circle at right center, rgba(14, 165, 233, 0.08), transparent 28%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96) 58%, rgba(248, 250, 252, 1));
  box-shadow:
    0 24px 50px rgba(148, 163, 184, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme='light'] .slate-overview__eyebrow,
html[data-theme='light'] .slate-insight-card__label {
  color: rgba(30, 64, 175, 0.8);
}
html[data-theme='light'] .slate-overview__title,
html[data-theme='light'] .slate-overview__recommended-meta strong,
html[data-theme='light'] .slate-overview__metric-value,
html[data-theme='light'] .slate-action-chip__label,
html[data-theme='light'] .slate-feature-card__title,
html[data-theme='light'] .slate-insight-card__value {
  color: #0f172a;
}
html[data-theme='light'] .slate-overview__body,
html[data-theme='light'] .slate-overview__recommended-meta span,
html[data-theme='light'] .slate-feature-card__meta,
html[data-theme='light'] .slate-insight-card__body {
  color: rgba(15, 23, 42, 0.64);
}
html[data-theme='light'] .slate-overview__status-item {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.86);
}
html[data-theme='light'] .slate-overview__status-label {
  color: rgba(15, 23, 42, 0.56);
}
html[data-theme='light'] .slate-overview__status-value {
  color: #0f172a;
}
html[data-theme='light'] .slate-overview__recommended-card,
html[data-theme='light'] .slate-overview__metric,
html[data-theme='light'] .slate-action-chip,
html[data-theme='light'] .slate-feature-card,
html[data-theme='light'] .slate-insight-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html[data-theme='light'] .slate-overview__recommended-card:hover,
html[data-theme='light'] .slate-feature-card:hover,
html[data-theme='light'] .slate-action-chip:hover {
  border-color: rgba(37, 99, 235, 0.22);
}
html[data-theme='light'] .slate-overview__recommended-cta {
  color: #1d4ed8;
}
html[data-theme='light'] .slate-overview__metric-label,
html[data-theme='light'] .slate-action-chip__desc,
html[data-theme='light'] .slate-feature-card__eyebrow {
  color: rgba(15, 23, 42, 0.56);
}

/* ── Game shortlist card ── */
html[data-theme='light'] .game-shortlist-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .game-shortlist-title {
  color: #0f172a;
}
html[data-theme='light'] .game-shortlist-subtitle {
  color: rgba(15, 23, 42, 0.55);
}
html[data-theme='light'] .game-shortlist-item {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .shortlist-player-link {
  color: #1e293b;
}

/* ── Alert ── */
html[data-theme='light'] .ps-alert.alert-info {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

/* ── Loading text ── */
html[data-theme='light'] .loading-text {
  color: rgba(15, 23, 42, 0.7) !important;
}

/* ── Stat highlight ── */
html[data-theme='light'] .stat-highlight {
  background: rgba(37, 99, 235, 0.06);
}

/* ── Premium overlay ── */
html[data-theme='light'] .premium-overlay {
  background: linear-gradient(to bottom,
    rgba(238, 243, 251, 0) 0%,
    rgba(238, 243, 251, 0.92) 35%,
    rgba(238, 243, 251, 1) 100%
  );
}

/* ── NEW PTC — Player Trend Card (full redesign) ── */
html[data-theme='light'] .ptc-shell {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .ptc-header {
  background: rgba(15, 23, 42, 0.02);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .ptc-player-name {
  color: #0f172a;
}
html[data-theme='light'] .ptc-prop-title {
  color: #0f172a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.74);
}
html[data-theme='light'] .ptc-team-label {
  color: rgba(15, 23, 42, 0.5);
}
html[data-theme='light'] .ptc-prop-eyebrow {
  color: rgba(15, 23, 42, 0.35);
}
html[data-theme='light'] .ptc-stats-strip {
  border-top-color: rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .ptc-stat-period-label {
  color: rgba(15, 23, 42, 0.55);
}
html[data-theme='light'] .ptc-stat-pill {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
  box-shadow: none;
}
html[data-theme='light'] .ptc-stat-pill em {
  color: rgba(15, 23, 42, 0.52);
}
html[data-theme='light'] .ptc-stat-pill strong {
  color: #0f172a;
}
html[data-theme='light'] .ptc-stat-divider {
  background: rgba(15, 23, 42, 0.09);
}
html[data-theme='light'] .ptc-panel-label {
  color: rgba(15, 23, 42, 0.42);
}
html[data-theme='light'] .ptc-yaxis-tick {
  color: rgba(15, 23, 42, 0.28);
}
html[data-theme='light'] .ptc-grid-line {
  background: rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .ptc-grid-line--zero {
  background: rgba(15, 23, 42, 0.13);
}
html[data-theme='light'] .ptc-bar-fill--miss {
  background: linear-gradient(to top, rgba(100, 116, 139, 0.14) 0%, rgba(148, 163, 184, 0.1) 100%);
  border-color: rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .ptc-bar-opp {
  color: rgba(15, 23, 42, 0.38);
}
html[data-theme='light'] .ptc-bar-value-label {
  color: rgba(15, 23, 42, 0.55);
}
html[data-theme='light'] .ptc-rates-panel {
  border-left-color: rgba(15, 23, 42, 0.09);
}
html[data-theme='light'] .ptc-circle-pct {
  color: #0f172a;
}
html[data-theme='light'] .ptc-circle--cold .ptc-circle-pct {
  color: rgba(15, 23, 42, 0.5);
}
html[data-theme='light'] .ptc-circle-count {
  color: rgba(15, 23, 42, 0.6);
}
html[data-theme='light'] .ptc-circle-label {
  color: rgba(15, 23, 42, 0.48);
}
html[data-theme='light'] .ptc-circle-percentile {
  color: rgba(15, 23, 42, 0.42);
}
html[data-theme='light'] .ptc-analysis-card {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .ptc-analysis-card-label {
  color: rgba(15, 23, 42, 0.48);
}
html[data-theme='light'] .ptc-ha-context {
  color: rgba(15, 23, 42, 0.58);
}
html[data-theme='light'] .ptc-ha-loc {
  color: rgba(15, 23, 42, 0.72);
}
html[data-theme='light'] .ptc-ha-fraction {
  color: rgba(15, 23, 42, 0.58);
}
html[data-theme='light'] .ptc-ha-pct {
  color: #1e293b;
}
html[data-theme='light'] .ptc-ha-bar-track {
  background: rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .ptc-splits-entity + .ptc-splits-entity {
  border-top-color: rgba(15, 23, 42, 0.07);
}
html[data-theme='light'] .ptc-splits-name {
  color: #1e293b;
}
html[data-theme='light'] .ptc-splits-hand-tag {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.52);
}
html[data-theme='light'] .ptc-splits-recent {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.58);
}
html[data-theme='light'] .ptc-split-box {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9));
  border-color: rgba(15, 23, 42, 0.09);
}
html[data-theme='light'] .ptc-split-box-label {
  color: rgba(15, 23, 42, 0.54);
}
html[data-theme='light'] .ptc-split-box-label-meta {
  color: rgba(15, 23, 42, 0.46);
}
html[data-theme='light'] .ptc-split-stat em {
  color: rgba(15, 23, 42, 0.46);
}
html[data-theme='light'] .ptc-split-stat strong {
  color: rgba(15, 23, 42, 0.84);
}
html[data-theme='light'] .ptc-h2h {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .ptc-h2h-matchup {
  color: rgba(15, 23, 42, 0.62);
}
html[data-theme='light'] .ptc-h2h-val {
  color: #1e293b;
}
html[data-theme='light'] .ptc-h2h-key {
  color: rgba(15, 23, 42, 0.42);
}
html[data-theme='light'] .ptc-h2h-sep {
  color: rgba(15, 23, 42, 0.16);
}
html[data-theme='light'] .ptc-h2h > span:not(.ptc-h2h-matchup) {
  color: rgba(15, 23, 42, 0.48);
}
html[data-theme='light'] .ptc-footer {
  border-top-color: rgba(15, 23, 42, 0.07);
  background: rgba(15, 23, 42, 0.015);
}
html[data-theme='light'] .ptc-btn--close {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.72);
}
html[data-theme='light'] .ptc-btn--close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.28);
}
html[data-theme='light'] .ptc-shell {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 1));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 16px 34px rgba(15, 23, 42, 0.1);
}
html[data-theme='light'] .ptc-identity-meta,
html[data-theme='light'] .ptc-panel-eyebrow,
html[data-theme='light'] .ptc-prop-eyebrow,
html[data-theme='light'] .ptc-stat-period-label,
html[data-theme='light'] .ptc-rate-row-label {
  color: rgba(15, 23, 42, 0.48);
}
html[data-theme='light'] .ptc-team-label,
html[data-theme='light'] .ptc-prop-summary,
html[data-theme='light'] .ptc-rate-row-record,
html[data-theme='light'] .ptc-rate-row-meta,
html[data-theme='light'] .ptc-context-record,
html[data-theme='light'] .ptc-h2h > span:not(.ptc-h2h-matchup) {
  color: rgba(15, 23, 42, 0.62);
}
html[data-theme='light'] .ptc-meta-pill,
html[data-theme='light'] .ptc-context-tag {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}
html[data-theme='light'] .ptc-proof-panel,
html[data-theme='light'] .ptc-section-card {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .ptc-recent-strip {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.84));
  border-top-color: rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .ptc-recent-game {
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 6px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme='light'] .ptc-recent-game__result,
html[data-theme='light'] .ptc-recent-game__opp {
  color: #0f172a;
}
html[data-theme='light'] .ptc-recent-game__meter {
  border-color: rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.34), rgba(148, 163, 184, 0.2));
}
html[data-theme='light'] .ptc-recent-empty {
  border-color: rgba(15, 23, 42, 0.16);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.72), rgba(248, 250, 252, 0.92));
}
html[data-theme='light'] .ptc-recent-empty__label {
  color: rgba(15, 23, 42, 0.62);
}
html[data-theme='light'] .ptc-panel-title,
html[data-theme='light'] .ptc-context-group-title,
html[data-theme='light'] .ptc-rate-row-pct,
html[data-theme='light'] .ptc-context-label,
html[data-theme='light'] .ptc-context-pct {
  color: #0f172a;
}
html[data-theme='light'] .ptc-rate-row-bar,
html[data-theme='light'] .ptc-context-rail {
  background: rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .ptc-footer {
  background: rgba(15, 23, 42, 0.012);
}
html[data-theme='light'] .ptc-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.74);
}
html[data-theme='light'] .ptc-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
html[data-theme='light'] .ptc-action-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.74);
}
html[data-theme='light'] .ptc-action-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.tgpr-section-heading {
  gap: 0.16rem;
}

.tgpr-section-copy {
  max-width: 58ch;
  font-size: 0.88rem;
  color: rgba(203, 213, 225, 0.76);
  line-height: 1.4;
}

.tgpr-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tgpr-console {
  position: relative;
}

.tgpr-console-panel,
.tgpr-group {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(12, 17, 24, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tgpr-console-panel {
  padding: 0.72rem 0.9rem;
}

.tgpr-console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.tgpr-panel-header,
.tgpr-group__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.tgpr-panel-kicker,
.tgpr-group__title {
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.76);
}

.tgpr-panel-copy,
.tgpr-group__copy {
  font-size: 0.8rem;
  color: rgba(203, 213, 225, 0.68);
  line-height: 1.35;
}

.tgpr-today-context {
  margin-top: 0.55rem;
  margin-bottom: 0.72rem;
  padding: 0.52rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.14));
}

.tgpr-today-context__title {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.86);
  margin-bottom: 0.45rem;
}

.tgpr-today-context__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tgpr-today-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.34rem 0.52rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  line-height: 1;
}

.tgpr-today-chip em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.92);
}

.tgpr-today-chip strong {
  font-size: 0.69rem;
  font-weight: 700;
  color: rgba(241, 245, 249, 0.96);
}

.tgpr-team-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.42rem;
}

.tgpr-team-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  color: rgba(241, 245, 249, 0.88);
  padding: 0.5rem 0.88rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tgpr-team-tab:hover {
  border-color: rgba(125, 211, 252, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.tgpr-team-tab.is-active {
  background: linear-gradient(135deg, rgba(11, 87, 122, 0.96), rgba(2, 132, 199, 0.9));
  border-color: rgba(125, 211, 252, 0.72);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.18);
}

.tgpr-team-tab__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.56);
}

.tgpr-group {
  padding: 0.86rem 0.92rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tgpr-controls-grid {
  display: grid;
  gap: 10px;
  margin-top: 0.65rem;
}

.tgpr-core-stack {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  margin-top: 0.65rem;
}

.tgpr-core-market {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(241, 245, 249, 0.92);
}

.tgpr-controls-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(241, 245, 249, 0.92);
}

.tgpr-controls-grid--core {
  grid-template-columns: 188px minmax(170px, 220px) minmax(118px, 146px);
  align-items: end;
  justify-content: start;
}

.tgpr-controls-grid--context {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.tgpr-controls-grid--context label {
  gap: 0.36rem;
}

.tgpr-controls-grid--core > label:first-child {
  min-width: 0;
}

.tgpr-hidden {
  display: none !important;
}

.tgpr-market-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tgpr-market-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.48);
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.72rem 0.55rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tgpr-market-card:hover {
  border-color: rgba(125, 211, 252, 0.52);
  color: #ffffff;
  transform: translateY(-1px);
}

.tgpr-market-card.is-active {
  background: linear-gradient(135deg, rgba(12, 89, 123, 0.94), rgba(2, 132, 199, 0.9));
  border-color: rgba(125, 211, 252, 0.72);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.16);
}

.tgpr-market-card__title {
  display: block;
  line-height: 1.15;
}

.tgpr-form .form-select,
.tgpr-form .form-control,
.tgpr-line-display,
.tgpr-line-btn,
.tgpr-outcome-btn {
  background: rgba(15, 23, 42, 0.56);
  border-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}

.tgpr-controls-grid--context .form-select {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0.5rem 2rem 0.5rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 11px;
  -webkit-appearance: none;
  appearance: none;
}

.tgpr-line-stepper {
  display: grid;
  grid-template-columns: 36px minmax(64px, 84px) 36px;
  align-items: center;
  gap: 8px;
}

.tgpr-line-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  height: 38px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tgpr-line-btn:hover:not(:disabled) {
  border-color: rgba(125, 211, 252, 0.58);
  transform: translateY(-1px);
}

.tgpr-line-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.tgpr-line-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 64px;
  padding-inline: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 800;
}

.tgpr-outcome-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tgpr-outcome-btn {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
  height: 38px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tgpr-outcome-btn:hover {
  border-color: rgba(125, 211, 252, 0.58);
  transform: translateY(-1px);
}

.tgpr-outcome-btn.is-active {
  background: linear-gradient(135deg, rgba(12, 89, 123, 0.94), rgba(2, 132, 199, 0.9));
  border-color: rgba(125, 211, 252, 0.72);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.16);
}

.tgpr-form .form-select option {
  background: #0f172a;
  color: #f8fafc;
}

.tgpr-form .form-select:focus,
.tgpr-form .form-control:focus {
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.16);
}

.tgpr-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0;
}

.tgpr-form-actions__hint {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.35;
}

.tgpr-form-actions__buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tgpr-form-actions--in-panel {
  margin-top: auto;
  padding-top: 12px;
}

.tgpr-submit {
  align-self: flex-start;
  font-weight: 700;
  min-width: 126px;
}

.tgpr-clear-btn {
  border-color: rgba(148, 163, 184, 0.38);
  color: rgba(226, 232, 240, 0.9);
}

.tgpr-clear-btn:hover {
  border-color: rgba(125, 211, 252, 0.54);
  color: #ffffff;
}

.tgpr-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.tgpr-stat-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
}

.tgpr-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.65);
}

.tgpr-stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.tgpr-table th,
.tgpr-table td {
  color: rgba(248, 250, 252, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

.tgpr-table > :not(caption) > * > * {
  background-color: transparent;
}

.tgpr-table thead th {
  background: rgba(15, 23, 42, 0.75);
}

.tgpr-table tbody tr td {
  background: rgba(2, 6, 23, 0.72);
}

.tgpr-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.tgpr-table tbody tr:hover td {
  background: rgba(30, 41, 59, 0.62);
}

.tgpr-results-shell {
  margin-top: 0;
  padding-top: 0.78rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.tgpr-log-details {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.26);
  padding: 0.62rem 0.78rem;
}

.tgpr-log-details > summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.9);
  list-style: none;
}

.tgpr-log-details > summary::-webkit-details-marker {
  display: none;
}

.tgpr-log-details > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.15s ease;
}

.tgpr-log-details[open] > summary::before {
  transform: rotate(90deg);
}

.tgpr-chart-wrap {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(12, 17, 24, 0.68);
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tgpr-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tgpr-chart-title-wrap {
  min-width: 0;
}

.tgpr-chart-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.96);
  letter-spacing: -0.01em;
}

.tgpr-chart-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.tgpr-context-badge {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.tgpr-context-badge--homeaway-home,
.tgpr-context-badge--sp-hand-r,
.tgpr-context-badge--market-favorite,
.tgpr-context-badge--total-high {
  color: rgba(147, 197, 253, 0.96);
  background: rgba(30, 64, 175, 0.2);
  border-color: rgba(96, 165, 250, 0.34);
}

.tgpr-context-badge--homeaway-away,
.tgpr-context-badge--sp-hand-l,
.tgpr-context-badge--market-underdog,
.tgpr-context-badge--total-low {
  color: rgba(253, 224, 71, 0.96);
  background: rgba(133, 77, 14, 0.22);
  border-color: rgba(250, 204, 21, 0.34);
}

.tgpr-context-badge--sp-era-good,
.tgpr-context-badge--bullpen-top {
  color: rgba(252, 165, 165, 0.96);
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.34);
}

.tgpr-context-badge--sp-era-bad,
.tgpr-context-badge--bullpen-bottom {
  color: rgba(134, 239, 172, 0.96);
  background: rgba(20, 83, 45, 0.22);
  border-color: rgba(74, 222, 128, 0.34);
}

.tgpr-context-badge--market-pickem,
.tgpr-context-badge--total-medium,
.tgpr-context-badge--sp-era-mid,
.tgpr-context-badge--bullpen-middle {
  color: rgba(226, 232, 240, 0.94);
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(148, 163, 184, 0.3);
}

.tgpr-context-badge--market-unknown,
.tgpr-context-badge--total-unknown,
.tgpr-context-badge--sp-era-unknown,
.tgpr-context-badge--bullpen-unknown,
.tgpr-context-badge--sp-hand-unknown,
.tgpr-context-badge--homeaway-unknown {
  color: rgba(203, 213, 225, 0.9);
  background: rgba(71, 85, 105, 0.22);
  border-color: rgba(148, 163, 184, 0.26);
}

.tgpr-chart-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, auto));
  gap: 8px;
  align-items: stretch;
}

.tgpr-chart-kpi {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.5rem 0.72rem;
  min-width: 0;
}

.tgpr-chart-kpi__label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.88);
  line-height: 1;
}

.tgpr-chart-kpi__value {
  display: block;
  margin-top: 3px;
  font-size: 0.96rem;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  line-height: 1.05;
}

.tgpr-chart {
  position: relative;
  height: 210px;
  border: 1px solid rgba(69, 130, 240, 0.14);
  border-radius: 13px;
  background: rgba(9, 14, 28, 0.52);
  padding: 10px 10px 6px;
  overflow: hidden;
  --tgpr-bar-col-min: 16px;
  --tgpr-bar-gap: 5px;
}

.tgpr-chart-plot {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 16px;
  bottom: 46px;
}

.tgpr-chart-grid {
  display: none;
}

.tgpr-chart-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.5px dashed rgba(69, 130, 240, 0.55);
  pointer-events: none;
}

.tgpr-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  top: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--tgpr-bar-col-min), 1fr);
  gap: var(--tgpr-bar-gap);
  align-items: end;
}

.tgpr-x-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.tgpr-xlabels {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 30px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--tgpr-bar-col-min), 1fr);
  gap: var(--tgpr-bar-gap);
  align-items: start;
}

.tgpr-xlabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  min-width: 0;
  white-space: nowrap;
}

.tgpr-xlabel__date {
  font-size: 0.67rem;
  color: #9aa6bf;
  line-height: 1;
}

.tgpr-xlabel__opp {
  font-size: 0.64rem;
  color: #afbdd9;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.tgpr-chart.is-dense {
  --tgpr-bar-col-min: 10px;
  --tgpr-bar-gap: 3px;
}

.tgpr-chart.is-ultra-dense {
  --tgpr-bar-col-min: 6px;
  --tgpr-bar-gap: 2px;
}

.tgpr-bar-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  position: relative;
}

.tgpr-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  border: 1px solid transparent;
  position: relative;
  z-index: 2;
}

.tgpr-bar.is-hit {
  background: rgba(69, 130, 240, 0.4);
  border-color: rgba(69, 130, 240, 0.28);
  border-top: 2px solid rgba(69, 130, 240, 0.85);
}

.tgpr-bar.is-miss {
  background: rgba(69, 130, 240, 0.13);
  border-color: rgba(69, 130, 240, 0.1);
  border-top: 2px solid rgba(69, 130, 240, 0.22);
}

.tgpr-bar-val {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-height, 0%) + 4px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8e9dbb;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

.tgpr-bar-col.is-hit .tgpr-bar-val {
  color: #92b4f8;
}

.tgpr-hit {
  color: #4ade80;
  font-weight: 700;
}

.tgpr-miss {
  color: #f87171;
  font-weight: 700;
}

.tgpr-empty {
  border: 1px dashed rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  padding: 0.82rem 0.92rem;
  color: rgba(226, 232, 240, 0.82);
  background: rgba(15, 23, 42, 0.3);
}

@media (max-width: 992px) {
  .tgpr-console-grid {
    grid-template-columns: 1fr;
  }

  .tgpr-controls-grid--core,
  .tgpr-controls-grid--context {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .tgpr-market-cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .tgpr-market-card {
    flex: 0 0 auto;
    min-width: 120px;
  }
  .tgpr-stats-row {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .tgpr-chart-header {
    flex-direction: column;
    align-items: stretch;
  }
  .tgpr-chart-kpis {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tgpr-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tgpr-form-actions__buttons {
    justify-content: flex-end;
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .tgpr-controls-grid--core {
    grid-template-columns: 172px minmax(158px, 206px) minmax(110px, 140px);
  }
  .tgpr-controls-grid--context {
    grid-template-columns: repeat(3, minmax(98px, 1fr));
    gap: 8px;
  }
  .tgpr-controls-grid--context label {
    gap: 5px;
    font-size: 0.75rem;
  }
}

html[data-theme='light'] .tgpr-section-copy {
  color: rgba(15, 23, 42, 0.62);
}

html[data-theme='light'] .tgpr-console-panel,
html[data-theme='light'] .tgpr-group {
  border-color: rgba(15, 23, 42, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.78)),
    rgba(15, 23, 42, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

html[data-theme='light'] .tgpr-panel-kicker,
html[data-theme='light'] .tgpr-group__title {
  color: rgba(15, 23, 42, 0.5);
}

html[data-theme='light'] .tgpr-panel-copy,
html[data-theme='light'] .tgpr-group__copy,
html[data-theme='light'] .tgpr-core-market,
html[data-theme='light'] .tgpr-controls-grid label,
html[data-theme='light'] .tgpr-form-actions__hint {
  color: rgba(15, 23, 42, 0.68);
}

html[data-theme='light'] .tgpr-today-context {
  border-color: rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.02));
}

html[data-theme='light'] .tgpr-today-context__title {
  color: rgba(30, 64, 175, 0.82);
}

html[data-theme='light'] .tgpr-today-chip {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(248, 250, 252, 0.86);
}

html[data-theme='light'] .tgpr-today-chip em {
  color: rgba(71, 85, 105, 0.92);
}

html[data-theme='light'] .tgpr-today-chip strong {
  color: rgba(15, 23, 42, 0.92);
}

html[data-theme='light'] .tgpr-team-tab {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.78);
}

html[data-theme='light'] .tgpr-team-tab:hover {
  border-color: rgba(2, 132, 199, 0.72);
}

html[data-theme='light'] .tgpr-team-tab.is-active {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border-color: rgba(3, 105, 161, 0.88);
  color: #ffffff;
}

html[data-theme='light'] .tgpr-team-tab__dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

html[data-theme='light'] .tgpr-market-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: rgba(15, 23, 42, 0.8);
}

html[data-theme='light'] .tgpr-market-card:hover {
  border-color: rgba(2, 132, 199, 0.72);
}

html[data-theme='light'] .tgpr-market-card.is-active {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border-color: rgba(2, 132, 199, 0.88);
  color: #ffffff;
}

html[data-theme='light'] .tgpr-form .form-select,
html[data-theme='light'] .tgpr-form .form-control {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.34);
  color: #0f172a;
}

html[data-theme='light'] .tgpr-controls-grid--context .form-select {
  color: rgba(15, 23, 42, 0.92);
}

html[data-theme='light'] .tgpr-clear-btn {
  border-color: rgba(15, 23, 42, 0.18);
  color: rgba(15, 23, 42, 0.72);
}

html[data-theme='light'] .tgpr-line-btn,
html[data-theme='light'] .tgpr-line-display {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

html[data-theme='light'] .tgpr-outcome-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

html[data-theme='light'] .tgpr-outcome-btn:hover {
  border-color: rgba(2, 132, 199, 0.72);
}

html[data-theme='light'] .tgpr-outcome-btn.is-active {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  border-color: rgba(2, 132, 199, 0.88);
  color: #ffffff;
}

html[data-theme='light'] .tgpr-form .form-select option {
  background: #ffffff;
  color: #0f172a;
}

html[data-theme='light'] .tgpr-form .form-select:focus,
html[data-theme='light'] .tgpr-form .form-control:focus {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.18);
}

html[data-theme='light'] .tgpr-stat-chip {
  border-color: rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme='light'] .tgpr-stat-label {
  color: rgba(15, 23, 42, 0.6);
}

html[data-theme='light'] .tgpr-stat-value {
  color: #0f172a;
}

html[data-theme='light'] .tgpr-table th,
html[data-theme='light'] .tgpr-table td {
  color: rgba(15, 23, 42, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme='light'] .tgpr-table > :not(caption) > * > * {
  background-color: transparent;
}

html[data-theme='light'] .tgpr-table thead th {
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme='light'] .tgpr-table tbody tr td {
  background: rgba(248, 250, 252, 0.86);
}

html[data-theme='light'] .tgpr-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.02);
}

html[data-theme='light'] .tgpr-table tbody tr:hover td {
  background: rgba(226, 232, 240, 0.64);
}

html[data-theme='light'] .tgpr-log-details {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.025);
}

html[data-theme='light'] .tgpr-log-details > summary {
  color: rgba(15, 23, 42, 0.78);
}

html[data-theme='light'] .tgpr-chart-wrap {
  border-color: rgba(15, 23, 42, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84)),
    rgba(15, 23, 42, 0.02);
}

html[data-theme='light'] .tgpr-chart-title {
  color: rgba(15, 23, 42, 0.95);
}

html[data-theme='light'] .tgpr-context-badge {
  color: rgba(15, 23, 42, 0.78);
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.14);
}

html[data-theme='light'] .tgpr-context-badge--homeaway-home,
html[data-theme='light'] .tgpr-context-badge--sp-hand-r,
html[data-theme='light'] .tgpr-context-badge--market-favorite,
html[data-theme='light'] .tgpr-context-badge--total-high {
  color: rgba(29, 78, 216, 0.95);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
}

html[data-theme='light'] .tgpr-context-badge--homeaway-away,
html[data-theme='light'] .tgpr-context-badge--sp-hand-l,
html[data-theme='light'] .tgpr-context-badge--market-underdog,
html[data-theme='light'] .tgpr-context-badge--total-low {
  color: rgba(146, 64, 14, 0.95);
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(217, 119, 6, 0.28);
}

html[data-theme='light'] .tgpr-context-badge--sp-era-good,
html[data-theme='light'] .tgpr-context-badge--bullpen-top {
  color: rgba(153, 27, 27, 0.95);
  background: rgba(248, 113, 113, 0.13);
  border-color: rgba(239, 68, 68, 0.26);
}

html[data-theme='light'] .tgpr-context-badge--sp-era-bad,
html[data-theme='light'] .tgpr-context-badge--bullpen-bottom {
  color: rgba(21, 128, 61, 0.95);
  background: rgba(74, 222, 128, 0.13);
  border-color: rgba(34, 197, 94, 0.26);
}

html[data-theme='light'] .tgpr-context-badge--market-pickem,
html[data-theme='light'] .tgpr-context-badge--total-medium,
html[data-theme='light'] .tgpr-context-badge--sp-era-mid,
html[data-theme='light'] .tgpr-context-badge--bullpen-middle {
  color: rgba(30, 41, 59, 0.85);
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(100, 116, 139, 0.24);
}

html[data-theme='light'] .tgpr-context-badge--market-unknown,
html[data-theme='light'] .tgpr-context-badge--total-unknown,
html[data-theme='light'] .tgpr-context-badge--sp-era-unknown,
html[data-theme='light'] .tgpr-context-badge--bullpen-unknown,
html[data-theme='light'] .tgpr-context-badge--sp-hand-unknown,
html[data-theme='light'] .tgpr-context-badge--homeaway-unknown {
  color: rgba(71, 85, 105, 0.9);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme='light'] .tgpr-chart-kpi {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme='light'] .tgpr-chart-kpi__label {
  color: rgba(15, 23, 42, 0.58);
}

html[data-theme='light'] .tgpr-chart-kpi__value {
  color: rgba(15, 23, 42, 0.9);
}

html[data-theme='light'] .tgpr-chart {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.035);
}

html[data-theme='light'] .tgpr-chart-grid {
  background-image: linear-gradient(to top, rgba(15, 23, 42, 0.13) 1px, transparent 1px);
}

html[data-theme='light'] .tgpr-chart-line {
  border-top-color: rgba(2, 132, 199, 0.88);
}

html[data-theme='light'] .tgpr-bar-val {
  color: rgba(15, 23, 42, 0.86);
}

html[data-theme='light'] .tgpr-xlabel {
  color: rgba(15, 23, 42, 0.64);
}

html[data-theme='light'] .tgpr-x-axis {
  border-top-color: rgba(15, 23, 42, 0.2);
}

html[data-theme='light'] .tgpr-empty {
  border-color: rgba(15, 23, 42, 0.16);
  color: rgba(15, 23, 42, 0.74);
  background: rgba(15, 23, 42, 0.03);
}

html[data-theme='light'] .tgpr-results-shell {
  border-top-color: rgba(15, 23, 42, 0.08);
}

@media (max-width: 576px) {
  .tgpr-controls-grid,
  .tgpr-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Additional mobile & tablet refinements
   ============================================================ */

/* ── Tablet portrait and large phones (481px – 1024px) ──────────────────────
   The laptop breakpoint (max-width: 1280px) sets cards to minmax(238px, 262px)
   which is far too narrow for tablet. Override with wider, snap-friendly sizing
   and switch the score row to a vertical team-block layout so long names like
   "Mariners" or "Nationals" never crowd the score digits.               ── */
@media (max-width: 1024px) {
  .slate-strip__scroller {
    grid-auto-columns: minmax(min(400px, 44vw), min(455px, 50vw));
    scroll-snap-type: x mandatory;
  }

  .slate-strip__card {
    scroll-snap-stop: always;
  }

  /* Live/Final: stack each team block vertically (crest → name → record)
     so the score center always has room regardless of team-name length.  */
  .slate-strip__score-row {
    align-items: flex-start;
    padding: 0.15rem 0 0.35rem;
    gap: 0.25rem;
  }

  .slate-strip__team-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    min-width: 0;
    flex-shrink: 0;
  }

  .slate-strip__team-block--home {
    flex-direction: column;
    align-items: flex-end;
  }

  .slate-strip__team-meta {
    align-items: flex-start;
  }

  .slate-strip__team-block--home .slate-strip__team-meta {
    align-items: flex-end;
  }

  .slate-strip__score-center {
    flex-shrink: 0;
    padding-top: 0.18rem;
  }
}

/* ── Game Hub Hero Card: small phones (< 480px) ── */
@media (max-width: 480px) {
  .matchup-dashboard {
    margin-top: 0.15rem;
    gap: 0.75rem;
  }

  .slate-strip {
    padding: 0.45rem 0.75rem 0.85rem;
    border-radius: 18px;
  }

  /* Keep header in a single row on mobile — saves vertical space */
  .slate-strip__header {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .slate-strip__eyebrow {
    font-size: 0.72rem;
    margin-bottom: 0.22rem;
  }

  .slate-strip__subtitle {
    font-size: 0.72rem;
  }

  .slate-strip__selection {
    align-items: flex-end;
    flex-shrink: 0;
  }

  .slate-strip__selection-label {
    font-size: 0.66rem;
  }

  .slate-strip__selection-value {
    font-size: 0.88rem;
  }

  /* Core fix: use vw-based minimum so cards fill width regardless of
     how many columns exist (negative free space always locks to min). */
  .slate-strip__scroller {
    grid-auto-columns: minmax(min(300px, 82vw), min(336px, 91vw));
    gap: 0.7rem;
    scroll-snap-type: x mandatory;
  }

  .slate-strip__card {
    min-height: 196px;
    padding: 0.8rem 0.9rem 0.88rem;
    scroll-snap-stop: always;
  }

  .slate-strip__card-top {
    margin-bottom: 0.42rem;
  }

  .slate-strip__time,
  .slate-strip__market {
    font-size: 0.62rem;
    padding: 0.15rem 0.48rem;
    min-height: 24px;
  }

  .slate-strip__battle {
    grid-template-columns: 1fr 38px 1fr;
    margin-bottom: 0.44rem;
  }

  .slate-strip__crest {
    width: 48px;
    height: 48px;
  }

  .slate-strip__crest-core {
    inset: 6px;
    font-size: 0.84rem;
  }

  .slate-strip__club-name {
    font-size: 0.8rem;
    max-width: 12ch;
  }

  .slate-strip__versus-mark {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  /* Live / Final card content */
  .slate-strip__linescore {
    font-size: 0.6rem;
  }

  .slate-strip__linescore th {
    font-size: 0.55rem;
    padding: 2px 1.5px;
  }

  .slate-strip__linescore td {
    padding: 2px 1.5px;
  }

  .slate-strip__score-num {
    font-size: 1.5rem;
  }

  /* Live/Final card: stack each team block vertically (crest → name → rec)
     so the score center in the middle has room to breathe and long team
     names like "Dodgers" or "Nationals" never crowd the score digits. */
  .slate-strip__score-row {
    align-items: flex-start;
    padding: 0.15rem 0 0.35rem;
    gap: 0.25rem;
  }

  .slate-strip__team-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    min-width: 0;
    flex-shrink: 0;
  }

  .slate-strip__team-block--home {
    flex-direction: column;
    align-items: flex-end;
  }

  .slate-strip__team-meta {
    align-items: flex-start;
  }

  .slate-strip__team-block--home .slate-strip__team-meta {
    align-items: flex-end;
  }

  /* Nudge score down slightly so numerals optically align with crests */
  .slate-strip__score-center {
    flex-shrink: 0;
    padding-top: 0.18rem;
  }

  .slate-strip__team-nickname {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .slate-strip__team-rec {
    font-size: 0.6rem;
  }

  /* Probables section */
  .slate-strip__probable-name {
    font-size: 0.74rem;
  }

  .slate-strip__probable-stats {
    font-size: 0.57rem;
  }

  .slate-overview__hero {
    padding: 1rem;
    border-radius: 20px;
  }

  .slate-overview__title {
    max-width: none;
    font-size: 1.8rem;
  }

  .slate-overview__recommended-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .slate-feature-card {
    min-height: 180px;
  }

  .game-hub-hero-body {
    padding: 1rem 1rem 0.95rem;
  }

  .game-hub-teams-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .game-hub-team {
    gap: 0.6rem;
    padding: 0.95rem 0.95rem 0.88rem;
  }

  .game-hub-team-badge {
    min-width: 56px;
    height: 46px;
    padding: 0 0.7rem;
    font-size: 0.94rem;
    border-radius: 12px;
  }

  .game-hub-team-watermark {
    font-size: 3.4rem;
  }

  .game-hub-team-name {
    font-size: 1.05rem;
    max-width: none;
  }

  .game-hub-team-record {
    font-size: 0.76rem;
    padding-inline-start: 0.1rem;
  }

  .game-hub-team-ml {
    margin-top: 0.28rem;
    padding: 0.18rem 0.48rem;
    font-size: 0.62rem;
  }

  .game-hub-team-info--right .game-hub-team-record {
    padding-inline-start: 0;
    padding-inline-end: 0.1rem;
  }

  .game-hub-team-role {
    font-size: 0.62rem;
  }

  .game-hub-team-topline--home {
    align-self: flex-end;
  }

  .game-hub-vs-block {
    width: 100%;
    min-width: 0;
    order: -1;
    padding: 0.2rem 0.3rem 0.35rem;
  }

  .game-hub-vs-label {
    width: 52px;
    height: 52px;
    font-size: 1.12rem;
  }

  .game-hub-meta-chips {
    gap: 0.3rem;
  }

  .game-meta-chip {
    font-size: 0.67rem;
    padding: 0.28rem 0.56rem;
  }

  .game-hub-venue-bar {
    font-size: 0.72rem;
  }

  .section-label-row {
    gap: 0.4rem;
  }

  .probable-pitchers-header {
    font-size: 1.35rem !important;
  }
}

/* ── Smallest phones (≤ 360px) ── */
@media (max-width: 360px) {
  .game-hub-hero-body {
    padding: 0.88rem 0.82rem 0.82rem;
  }

  .game-hub-team-badge {
    min-width: 48px;
    height: 40px;
    font-size: 0.82rem;
  }

  .game-hub-team-name {
    font-size: 0.92rem;
  }

  .game-hub-venue-bar {
    font-size: 0.68rem;
  }

  .schedule-rail-header .timeline-title {
    font-size: 1.35rem;
  }
}

/* ── Mobile TGPR: ensure market cards scroll at all small sizes ── */
@media (max-width: 640px) {
  .tgpr-market-cards {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .tgpr-market-card {
    flex: 0 0 auto;
    min-width: 100px;
  }

  .tgpr-controls-grid--core {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tgpr-controls-grid--core > label:first-child {
    grid-column: 1 / -1;
  }

  .tgpr-controls-grid--context {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ── Tablet: TGPR context grid at mid-range tablets ── */
@media (min-width: 577px) and (max-width: 768px) {
  .tgpr-controls-grid--context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Mobile: matchup main column card padding ── */
@media (max-width: 480px) {
  .slate-overview__top-row,
  .slate-overview__cards {
    grid-template-columns: 1fr;
  }

  .slate-overview__status-wrap {
    justify-self: stretch;
  }

  .slate-overview__status-strip {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .matchup-main-column .probable-pitchers:not(.starting-lineups) .probable-pitchers-card {
    padding: 0.75rem !important;
  }

  .matchup-main-column .starting-lineups .probable-pitchers-card {
    padding: 0.75rem !important;
  }

  .matchup-main-column .player-trends .card.shadow-lg {
    padding: 0.75rem !important;
  }

  /* PTC compact sizing for small phones */
  .ptc-header,
  .ptc-body,
  .ptc-footer {
    padding-left: 0.68rem;
    padding-right: 0.68rem;
  }

  .ptc-headshot-wrap {
    width: 48px;
    height: 48px;
  }

  .ptc-player-name {
    font-size: 0.98rem;
  }

  .ptc-team-label {
    font-size: 0.62rem;
  }

  .ptc-prop-title {
    font-size: 0.9rem;
  }

  .ptc-prop-eyebrow {
    font-size: 0.58rem;
  }

  .ptc-prop-summary {
    font-size: 0.7rem;
  }

  .ptc-panel-heading {
    padding: 0.46rem 0.68rem;
  }

  .ptc-panel-eyebrow {
    font-size: 0.58rem;
  }

  .ptc-recent-game {
    min-height: 100px;
  }

  .ptc-recent-game__meter {
    height: 48px;
  }

  .ptc-recent-game__score {
    font-size: 0.88rem;
  }

  .ptc-recent-game__opp {
    font-size: 0.52rem;
  }
}

@media (max-width: 1180px) {
  .slate-overview__top-row,
  .slate-overview__cards {
    grid-template-columns: 1fr;
  }

  .slate-overview__status-wrap {
    justify-self: stretch;
  }
}

/* ============================================================
   LIGHT MODE — Supplemental overrides
   ============================================================ */

/* ── TGPR card light mode (explicit white + border + shadow) ── */
html[data-theme='light'] .team-game-prop-research .probable-pitchers-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07) !important;
}

/* ── Body (explicit for matchup page in light mode) ── */
html[data-theme='light'] body {
  background-color: #eef3fb;
  color: #0f172a;
}

/* ── Background glow: suppress in light mode ── */
html[data-theme='light'] .background-glow {
  opacity: 0;
}

/* ── Scrollbar tracks for the dashboard columns ── */
html[data-theme='light'] .matchup-schedule-column::-webkit-scrollbar {
  background-color: #f1f5f9;
}

html[data-theme='light'] .matchup-schedule-column::-webkit-scrollbar-track {
  background: #e2e8f0;
}

html[data-theme='light'] .matchup-main-column::-webkit-scrollbar {
  background-color: #f1f5f9;
}

html[data-theme='light'] .matchup-main-column::-webkit-scrollbar-track {
  background: #e2e8f0;
}

/* ── Probable pitchers header accent underline ── */
html[data-theme='light'] .probable-pitchers-header::after {
  background: linear-gradient(to right, rgba(37, 99, 235, 0), #2563eb, rgba(37, 99, 235, 0));
}

/* ── Expanded cell highlight ── */
html[data-theme='light'] .sortable-table td.expanded-cell {
  background: rgba(37, 99, 235, 0.06) !important;
}

html[data-theme='light'] .sortable-table td .expand-link.is-expanded {
  color: #0f172a;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(59, 130, 246, 0.14));
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18), 0 8px 18px rgba(37, 99, 235, 0.12);
}

/* ── Game range select in player trends title ── */
html[data-theme='light'] .player-trends-title select.form-select {
  background-color: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #1f2937 !important;
}

/* ── TGPR market cards scroll track ── */
html[data-theme='light'] .tgpr-market-cards {
  scrollbar-color: #94a3b8 #e2e8f0;
}

/* ── Loading spinner ── */
html[data-theme='light'] .loading-text .spinner-border {
  border-color: #2563eb;
  border-right-color: transparent;
}

/* ── Section label icon ── */
html[data-theme='light'] .section-label-icon {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

/* ── Matchup dashboard title in light mode ── */
html[data-theme='light'] .schedule-rail-header .timeline-title {
  color: #0f172a;
}

html[data-theme='light'] .no-game-message {
  color: rgba(15, 23, 42, 0.5);
}

/* ── Trend card buttons ── */
html[data-theme='light'] .trend-card-buttons {
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* ── TGPR miss bar: slightly more visible on light backgrounds ── */
html[data-theme='light'] .tgpr-bar.is-miss {
  background: linear-gradient(to top, rgba(100, 116, 139, 0.55) 0%, rgba(148, 163, 184, 0.65) 100%);
  border-color: rgba(100, 116, 139, 0.45);
}

/* ── TGPR bar value labels ── */
html[data-theme='light'] .tgpr-bar-val {
  color: rgba(15, 23, 42, 0.82);
}

/* ── Starting lineup star ── */
html[data-theme='light'] .starting-lineup-star {
  color: #1d4ed8 !important;
}

/* ── Btn navy in light mode ── */
html[data-theme='light'] .btn-navy {
  background: #2563eb;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

html[data-theme='light'] .btn-navy:hover {
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

/* ── Mobile TGPR market card scrollbar ── */
@media (max-width: 640px) {
  html[data-theme='light'] .tgpr-market-cards::-webkit-scrollbar {
    height: 4px;
    background: #f1f5f9;
  }

  html[data-theme='light'] .tgpr-market-cards::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 99px;
  }
}

html[data-theme='light'] .matchup-loading-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    #ffffff;
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow:
    0 18px 32px rgba(148, 163, 184, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme='light'] .matchup-loading-panel__eyebrow {
  color: rgba(71, 85, 105, 0.72);
}

html[data-theme='light'] .matchup-loading-panel__copy strong {
  color: #0f172a;
}

html[data-theme='light'] .matchup-loading-panel__copy span:last-child {
  color: rgba(71, 85, 105, 0.8);
}

/* ── Live/Final card light mode overrides ────────────────────────────── */

/* Scores: losing team muted, winning team dark/prominent */
html[data-theme='light'] .slate-strip__score-num {
  color: #94a3b8;
}
html[data-theme='light'] .slate-strip__score-num--leading {
  color: #0f172a;
}
html[data-theme='light'] .slate-strip__score-num--tied {
  color: #2563eb;
}
html[data-theme='light'] .slate-strip__score-dash {
  color: #cbd5e1;
}

/* Team names: losing muted, winning dark */
html[data-theme='light'] .slate-strip__team-nickname {
  color: #64748b;
}
html[data-theme='light'] .slate-strip__team-nickname--leading {
  color: #0f172a;
}
html[data-theme='light'] .slate-strip__team-rec {
  color: #94a3b8;
}

/* Inning / status labels */
html[data-theme='light'] .slate-strip__inning-label {
  color: #2563eb;
}
html[data-theme='light'] .slate-strip__final-label {
  color: #64748b;
}
html[data-theme='light'] .slate-strip__outs-row {
  color: #64748b;
}

/* Divider */
html[data-theme='light'] .slate-strip__divider {
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* Linescore table */
html[data-theme='light'] .slate-strip__linescore th {
  color: #94a3b8;
}
html[data-theme='light'] .slate-strip__linescore td {
  color: #374151;
  border-top-color: rgba(15, 23, 42, 0.06);
}
html[data-theme='light'] .slate-strip__ls-name {
  color: #374151;
}
html[data-theme='light'] .slate-strip__ls-r {
  color: #0f172a;
  font-weight: 700;
}
html[data-theme='light'] .slate-strip__ls-he {
  color: #64748b;
}
html[data-theme='light'] .slate-strip__ls-cell--active {
  color: #2563eb !important;
}
html[data-theme='light'] .slate-strip__ls-cell--future {
  color: #cbd5e1 !important;
}

/* Crest rings for JS-rendered live/final cards */
html[data-theme='light'] .slate-strip__team-block--away .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--away-color) 92%, white 8%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--away-color) 86%, black 6%),
    0 10px 22px color-mix(in srgb, var(--away-color) 20%, transparent);
}
html[data-theme='light'] .slate-strip__team-block--home .slate-strip__crest-ring {
  background: color-mix(in srgb, var(--home-color) 92%, white 8%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--home-color) 86%, black 6%),
    0 10px 22px color-mix(in srgb, var(--home-color) 20%, transparent);
}

.live-hub-hero,
.live-hub-section,
.live-hub-table-wrap {
  position: relative;
  overflow: hidden;
}

.live-hub-hero {
  display: block;
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(8, 12, 18, 0.96), rgba(7, 10, 16, 0.98));
  box-shadow:
    0 22px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.live-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 14%, color-mix(in srgb, var(--away-color) 18%, transparent), transparent 36%),
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--home-color) 18%, transparent), transparent 34%);
  pointer-events: none;
}

.live-hub-hero__status-bar,
.live-hub-hero__scoreboard,
.live-hub-hero__linescore-wrap,
.live-hub-hero__meta {
  position: relative;
  z-index: 1;
}

.live-hub-hero__status-bar,
.live-hub-hero__status-group,
.live-hub-hero__team-top,
.live-hub-hero__rhe {
  display: flex;
  align-items: center;
}

.live-hub-hero__status-bar {
  padding: 1.1rem 1.9rem 0;
  justify-content: flex-start;
  gap: 0.75rem;
}

.live-hub-hero__status-group,
.live-hub-hero__rhe {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-hub-hero__live-pill,
.live-hub-hero__inning {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 36px;
  padding: 0 0.92rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-hub-hero__live-pill {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.live-hub-hero__live-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: live-hub-pulse 1.8s ease-out infinite;
}

.live-hub-hero__inning {
  background: rgba(248, 250, 252, 0.08);
  color: #f8fafc;
}

.live-hub-hero__record,
.live-hub-hero__side-label,
.live-hub-hero__meta-label,
.live-hub-section__eyebrow,
.live-hub-state__label,
.live-hub-feed__inning,
.live-hub-feed__result,
.live-hub-scoring__inning,
.live-hub-table th,
.live-hub-player__role,
.live-hub-table-wrap__totals {
  color: rgba(148, 163, 184, 0.92);
}

.live-hub-hero__meta-divider {
  color: rgba(148, 163, 184, 0.45);
}

.live-hub-hero__scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  padding: 0.95rem 1.9rem 1.25rem;
}

.live-hub-hero__team {
  display: grid;
  grid-template-rows: auto auto auto;
  row-gap: 0.42rem;
  align-content: center;
  min-height: 142px;
  min-width: 0;
}

.live-hub-hero__team--home {
  text-align: right;
  justify-items: end;
  justify-self: end;
}

.live-hub-hero__team--home .live-hub-hero__team-top {
  justify-content: flex-end;
}

.live-hub-hero__team-top {
  gap: 0.55rem;
  min-height: 36px;
}

.live-hub-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 36px;
  padding: 0 0.88rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.live-hub-hero__side-label {
  font-size: 0.85rem;
  color: rgba(176, 193, 214, 0.92);
}

.live-hub-hero__name,
.live-hub-section__title,
.live-hub-feed__description,
.live-hub-scoring__description,
.live-hub-table td:first-child {
  color: #f8fafc;
}

.live-hub-hero__name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.08;
}

.live-hub-hero__record {
  font-size: 0.9rem;
  color: rgba(188, 204, 223, 0.92);
}

.live-hub-hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.live-hub-hero__scoreline {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.live-hub-hero__score {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #f8fafc;
}

.live-hub-hero__dash {
  font-size: 1.38rem;
  color: rgba(120, 141, 166, 0.78);
  line-height: 1;
  transform: translateY(-0.12em);
}

.live-hub-hero__linescore-wrap,
.live-hub-hero__meta,
.live-hub-section,
.live-hub-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
}

.live-hub-hero__linescore-wrap {
  padding: 0 1.9rem 1rem;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
}

.live-hub-hero__linescore,
.live-hub-table {
  width: 100%;
  border-collapse: collapse;
}

.live-hub-hero__linescore {
  table-layout: fixed;
}

.live-hub-hero__linescore-team-col {
  width: clamp(64px, 5.8vw, 82px);
}

.live-hub-hero__linescore-inning-col {
  width: clamp(34px, 4.7vw, 52px);
}

.live-hub-hero__linescore-rhe-col {
  width: clamp(42px, 3.6vw, 54px);
}

.live-hub-hero__linescore th,
.live-hub-hero__linescore td {
  padding: 0.42rem 0.4rem;
}

.live-hub-table th,
.live-hub-table td {
  padding: 0.72rem 0.66rem;
}

.live-hub-hero__linescore th,
.live-hub-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-hub-hero__linescore th {
  text-align: center;
  white-space: nowrap;
}

.live-hub-hero__linescore th:first-child {
  text-align: left;
}

.live-hub-hero__linescore td {
  font-size: 0.74rem;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  color: #e8f0fc;
}

.live-hub-hero__linescore td:first-child {
  font-weight: 700;
  text-align: left;
  color: #f8fafc;
}

.live-hub-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem 1rem;
  padding: 1rem 1.9rem 1.2rem;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: transparent;
  backdrop-filter: none;
}

.live-hub-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.live-hub-hero__meta-item--umpires {
  grid-column: span 2;
  max-width: 78ch;
}

.live-hub-hero__meta-label,
.live-hub-section__eyebrow,
.live-hub-state__label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-hub-hero__meta-value {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #dbe7f5;
}

.live-hub-hero__rhe-head {
  color: rgba(148, 163, 184, 0.72) !important;
}

.live-hub-hero__rhe-cell {
  color: rgba(219, 231, 245, 0.86) !important;
  font-weight: 600;
}

.live-hub-hero__inning-cell--pending {
  color: rgba(148, 163, 184, 0.58) !important;
}

.live-hub {
  display: grid;
  gap: 1.2rem;
}

.live-hub-section {
  padding: clamp(1rem, 0.86rem + 0.65vw, 1.4rem);
  border-radius: 24px;
}

.live-hub-section__header {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.live-hub-section__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.08;
}

.live-hub-state__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.86fr);
  gap: 1rem;
  align-items: stretch;
}

.live-hub-state__spotlight,
.live-hub-state__inning-feed,
.live-hub-state__metric-chip,
.live-hub-state__bases-inline {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.36);
}

.live-hub-state__spotlight,
.live-hub-state__inning-feed {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
}

.live-hub-state__spotlight {
  position: relative;
  align-content: start;
  overflow: hidden;
  min-height: 100%;
}

.live-hub-state__spotlight::before,
.live-hub-state__spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.live-hub-state__spotlight::before {
  background:
    radial-gradient(circle at 16% 68%, color-mix(in srgb, var(--away-color) 16%, transparent), transparent 34%),
    radial-gradient(circle at 84% 68%, color-mix(in srgb, var(--home-color) 16%, transparent), transparent 34%);
  opacity: 0.9;
}

.live-hub-state__spotlight::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.018));
  opacity: 0.8;
}

.live-hub-state__status-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.live-hub-state__status-pill,
.live-hub-state__inning-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-hub-state__status-pill {
  background: rgba(239, 68, 68, 0.14);
  color: #fda4af;
}

.live-hub-state__inning-pill {
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
}

.live-hub-state__duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
  padding-top: 1rem;
  min-height: 0;
}

.live-hub-state__competitor {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  align-content: start;
}

.live-hub-state__competitor--pitcher {
  text-align: right;
  justify-items: end;
}

.live-hub-state__versus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 62%),
    rgba(15, 23, 42, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(2, 6, 23, 0.26);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: center;
}

.live-hub-state__name {
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: #f8fafc;
  word-break: break-word;
}

.live-hub-state__summary {
  max-width: 28ch;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.4;
}

.live-hub-state__subcopy {
  max-width: 42ch;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.live-hub-state__situation,
.live-hub-state__metric-strip,
.live-hub-state__bases-inline,
.live-hub-state__inning-list {
  display: grid;
  gap: 0.85rem;
}

.live-hub-state__situation {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
}

.live-hub-state__metric-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.live-hub-state__metric-chip {
  display: grid;
  gap: 0.42rem;
  padding: 0.82rem 0.95rem;
  border-radius: 18px;
  align-content: center;
  min-height: 0;
}

.live-hub-state__metric-chip--bases {
  align-content: start;
}

.live-hub-state__metric-inline {
  font-size: clamp(1.25rem, 1.05rem + 0.45vw, 1.55rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #f8fafc;
}

.live-hub-state__outs-dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.3rem;
}

.live-hub-state__out-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.live-hub-state__out-dot.is-on {
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.live-hub-state__support-value {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: #f8fafc;
}

.live-hub-state__bases-chip {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
}

.live-hub-state__bases-inline {
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
}

.live-hub-state__bases-copy {
  display: grid;
  gap: 0.28rem;
  align-content: center;
}

.live-hub-state__bases-copy--on-deck {
  justify-items: start;
}

.live-hub-state__inning-feed {
  align-content: start;
  position: relative;
}

.live-hub-state__inning-list {
  max-height: 23rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.live-hub-state__inning-list::-webkit-scrollbar {
  width: 8px;
}

.live-hub-state__inning-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.live-hub-state__inning-list::-webkit-scrollbar-track {
  background: transparent;
}

.live-hub-state__inning-feed-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.live-hub-state__inning-title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.live-hub-state__inning-play {
  display: grid;
  gap: 0.32rem;
  padding: 0.2rem 0 0.82rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.live-hub-state__inning-play--with-out {
  position: relative;
  padding-right: 5.2rem;
}

.live-hub-state__inning-play:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.live-hub-state__inning-play.is-scoring {
  position: relative;
}

.live-hub-state__inning-play.is-scoring::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7185, #f97316);
}

.live-hub-state__inning-topline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.live-hub-state__inning-result,
.live-hub-state__inning-player {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-hub-state__inning-result {
  color: #e2e8f0;
}

.live-hub-state__inning-result.is-change {
  color: #fda4af;
}

.live-hub-state__inning-player {
  color: rgba(148, 163, 184, 0.9);
}

.live-hub-state__out-badge {
  position: absolute;
  top: 0.16rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.3rem;
  padding: 0 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.68);
  color: #f8fafc;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.live-hub-state__inning-description {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #f8fafc;
}

.live-hub-state__inning-details {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.08rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.live-hub-diamond {
  position: relative;
  width: 5.2rem;
  height: 4.4rem;
  margin-top: 0.2rem;
}

.live-hub-diamond--large {
  width: 6.3rem;
  height: 5.5rem;
  justify-self: end;
}

.live-hub-diamond--chip {
  width: 4.9rem;
  height: 4.2rem;
  margin-top: 0;
}

.live-hub-diamond--chip .live-hub-diamond__base,
.live-hub-diamond--chip .live-hub-diamond__plate {
  width: 0.94rem;
  height: 0.94rem;
}

.live-hub-diamond--chip .live-hub-diamond__base--second,
.live-hub-diamond--chip .live-hub-diamond__plate {
  margin-left: -0.47rem;
}

.live-hub-diamond--chip .live-hub-diamond__base--third {
  top: 1.12rem;
  left: 0.56rem;
}

.live-hub-diamond--chip .live-hub-diamond__base--first {
  top: 1.12rem;
  right: 0.56rem;
}

.live-hub-diamond__base,
.live-hub-diamond__plate {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 0.28rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  transform: rotate(45deg);
}

.live-hub-diamond__base.is-occupied {
  background: linear-gradient(135deg, #fb7185, #f97316);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.live-hub-diamond__base--second {
  top: 0;
  left: 50%;
  margin-left: -0.5rem;
}

.live-hub-diamond__base--third {
  top: 1.18rem;
  left: 0.62rem;
}

.live-hub-diamond__base--first {
  top: 1.18rem;
  right: 0.62rem;
}

.live-hub-diamond__plate {
  bottom: 0;
  left: 50%;
  margin-left: -0.5rem;
  background: rgba(248, 250, 252, 0.95);
  border-color: transparent;
}

.live-hub-diamond--large .live-hub-diamond__base,
.live-hub-diamond--large .live-hub-diamond__plate {
  width: 1.08rem;
  height: 1.08rem;
}

.live-hub-diamond--large .live-hub-diamond__base--second {
  margin-left: -0.54rem;
}

.live-hub-diamond--large .live-hub-diamond__base--third {
  top: 1.58rem;
  left: 0.82rem;
}

.live-hub-diamond--large .live-hub-diamond__base--first {
  top: 1.58rem;
  right: 0.82rem;
}

.live-hub-diamond--large .live-hub-diamond__plate {
  margin-left: -0.54rem;
}

.live-hub-story-grid,
.live-hub-tables {
  display: grid;
  gap: 1rem;
}

.live-hub-story-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
}

.live-hub-feed,
.live-hub-scoring {
  display: grid;
  gap: 0.8rem;
}

.live-hub-feed__inning-break {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.15rem 0 0.2rem;
}

.live-hub-feed__inning-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
}

.live-hub-feed__inning-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.32rem;
  padding: 0 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #cfdcf0;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Keep Recent Plays from growing indefinitely on long games. */
.live-hub-story--feed .live-hub-feed {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 0.35rem;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

.live-hub-story--feed .live-hub-feed::-webkit-scrollbar {
  width: 8px;
}

.live-hub-story--feed .live-hub-feed::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.live-hub-story--feed .live-hub-feed::-webkit-scrollbar-track {
  background: transparent;
}

/* Match Recent Plays panel height and scroll behavior. */
.live-hub-story--scoring .live-hub-scoring {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 0.35rem;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

.live-hub-story--scoring .live-hub-scoring::-webkit-scrollbar {
  width: 8px;
}

.live-hub-story--scoring .live-hub-scoring::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.live-hub-story--scoring .live-hub-scoring::-webkit-scrollbar-track {
  background: transparent;
}

.live-hub-feed__item,
.live-hub-scoring__item {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.live-hub-feed__item:last-child,
.live-hub-scoring__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.live-hub-feed__item.is-scoring {
  position: relative;
}

.live-hub-feed__item.is-scoring::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7185, #f97316);
}

.live-hub-feed__meta,
.live-hub-scoring__topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.live-hub-feed__head {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;
}

.live-hub-feed__inning,
.live-hub-feed__result,
.live-hub-scoring__inning,
.live-hub-scoring__result,
.live-hub-scoring__score {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-hub-feed__inning,
.live-hub-feed__result,
.live-hub-feed__out-badge {
  white-space: nowrap;
}

.live-hub-feed__result,
.live-hub-scoring__result {
  color: #e2e8f0;
}

.live-hub-feed__result.is-change {
  color: #fda4af;
}

.live-hub-feed__player {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-hub-feed__description,
.live-hub-scoring__description {
  font-size: 0.97rem;
  line-height: 1.48;
}

.live-hub-feed__out-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.3rem;
  padding: 0 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.68);
  color: #f8fafc;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.live-hub-feed__details {
  display: grid;
  gap: 0.26rem;
  margin-top: 0.18rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

@media (max-width: 860px) {
  .live-hub-feed__head {
    grid-template-columns: max-content max-content;
    align-items: start;
    row-gap: 0.38rem;
  }

  .live-hub-feed__player {
    grid-column: 1 / -1;
  }
}

.live-hub-scoring__score {
  color: #f8fafc;
}

.live-hub-empty {
  padding: 1rem 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.live-hub-tables {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-hub-table-wrap {
  border-radius: 22px;
}

.live-hub-table-wrap__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 1rem 1rem 0.2rem;
  font-weight: 600;
  color: #f8fafc;
}

.live-hub-table-wrap__totals {
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-hub-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.94);
}

.live-hub-table td {
  font-size: 0.93rem;
  color: #dbe4f0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.live-hub-table th:first-child,
.live-hub-table td:first-child {
  text-align: left;
}

.live-hub-table th:not(:first-child),
.live-hub-table td:not(:first-child) {
  text-align: center;
}

.live-hub-player {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.live-hub-player__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
}

.live-hub-player__name {
  font-weight: 600;
}

.live-hub-player__role {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-hub-table__row--sub td,
.live-hub-table__row--sub .live-hub-player__name,
.live-hub-table__row--sub td:first-child {
  color: #94a3b8;
}

@keyframes live-hub-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

html[data-theme='light'] .live-hub-hero {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--away-color) 16%, transparent) 0%, transparent 36%),
    radial-gradient(circle at top right, color-mix(in srgb, var(--home-color) 16%, transparent) 0%, transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 24px 54px rgba(148, 163, 184, 0.22);
}

html[data-theme='light'] .live-hub-hero::before {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.02), transparent 22%, transparent 78%, rgba(15, 23, 42, 0.02)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent 28%);
}

html[data-theme='light'] .live-hub-hero__inning {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

html[data-theme='light'] .live-hub-hero__record,
html[data-theme='light'] .live-hub-hero__side-label,
html[data-theme='light'] .live-hub-hero__meta-label,
html[data-theme='light'] .live-hub-section__eyebrow,
html[data-theme='light'] .live-hub-state__label,
html[data-theme='light'] .live-hub-feed__inning,
html[data-theme='light'] .live-hub-feed__result,
html[data-theme='light'] .live-hub-scoring__inning,
html[data-theme='light'] .live-hub-table th,
html[data-theme='light'] .live-hub-player__role,
html[data-theme='light'] .live-hub-table-wrap__totals {
  color: #64748b;
}

html[data-theme='light'] .live-hub-hero__name,
html[data-theme='light'] .live-hub-section__title,
html[data-theme='light'] .live-hub-state__name,
html[data-theme='light'] .live-hub-state__metric-inline,
html[data-theme='light'] .live-hub-state__support-value,
html[data-theme='light'] .live-hub-feed__description,
html[data-theme='light'] .live-hub-scoring__description,
html[data-theme='light'] .live-hub-table td:first-child,
html[data-theme='light'] .live-hub-scoring__score,
html[data-theme='light'] .live-hub-feed__result,
html[data-theme='light'] .live-hub-state__inning-title,
html[data-theme='light'] .live-hub-state__inning-description,
html[data-theme='light'] .live-hub-state__inning-result {
  color: #0f172a;
}

html[data-theme='light'] .live-hub-hero__dash,
html[data-theme='light'] .live-hub-hero__meta-divider {
  color: #94a3b8;
}

html[data-theme='light'] .live-hub-hero__meta-value,
html[data-theme='light'] .live-hub-feed__details,
html[data-theme='light'] .live-hub-empty,
html[data-theme='light'] .live-hub-table td,
html[data-theme='light'] .live-hub-table__row--sub td,
html[data-theme='light'] .live-hub-table__row--sub .live-hub-player__name,
html[data-theme='light'] .live-hub-table__row--sub td:first-child,
html[data-theme='light'] .live-hub-state__summary,
html[data-theme='light'] .live-hub-state__subcopy,
html[data-theme='light'] .live-hub-state__inning-player,
html[data-theme='light'] .live-hub-state__inning-details {
  color: #475569;
}

html[data-theme='light'] .live-hub-feed__player {
  color: #64748b;
}

html[data-theme='light'] .live-hub-feed__inning-break::after {
  background: rgba(148, 163, 184, 0.24);
}

html[data-theme='light'] .live-hub-feed__inning-chip {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
}

html[data-theme='light'] .live-hub-feed__out-badge {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
}

html[data-theme='light'] .live-hub-state__out-badge {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
}

html[data-theme='light'] .live-hub-state__inning-list {
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

html[data-theme='light'] .live-hub-story--scoring .live-hub-scoring {
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

html[data-theme='light'] .live-hub-hero__rhe-head {
  color: #94a3b8 !important;
}

html[data-theme='light'] .live-hub-hero__rhe-cell {
  color: #334155 !important;
}

html[data-theme='light'] .live-hub-hero__inning-cell--pending {
  color: #94a3b8 !important;
}

html[data-theme='light'] .live-hub-hero__score {
  color: #020617;
}

html[data-theme='light'] .live-hub-hero__linescore-wrap,
html[data-theme='light'] .live-hub-hero__meta,
html[data-theme='light'] .live-hub-section,
html[data-theme='light'] .live-hub-table-wrap,
html[data-theme='light'] .live-hub-state__spotlight,
html[data-theme='light'] .live-hub-state__inning-feed,
html[data-theme='light'] .live-hub-state__metric-chip,
html[data-theme='light'] .live-hub-state__bases-inline {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme='light'] .live-hub-state__spotlight::before {
  background:
    radial-gradient(circle at 16% 68%, color-mix(in srgb, var(--away-color) 11%, transparent), transparent 34%),
    radial-gradient(circle at 84% 68%, color-mix(in srgb, var(--home-color) 11%, transparent), transparent 34%);
}

html[data-theme='light'] .live-hub-state__spotlight::after {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.015), transparent 24%, transparent 76%, rgba(15, 23, 42, 0.015));
}

html[data-theme='light'] .live-hub-hero__linescore td,
html[data-theme='light'] .live-hub-table td,
html[data-theme='light'] .live-hub-feed__item,
html[data-theme='light'] .live-hub-scoring__item {
  border-top-color: rgba(148, 163, 184, 0.14);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='light'] .live-hub-hero__linescore td:first-child {
  color: #0f172a;
}

html[data-theme='light'] .live-hub-table th {
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme='light'] .live-hub-diamond__base,
html[data-theme='light'] .live-hub-diamond__plate {
  border-color: rgba(148, 163, 184, 0.34);
  background: #ffffff;
}

html[data-theme='light'] .live-hub-state__versus {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52) 52%, rgba(255, 255, 255, 0.18) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 14px 28px rgba(148, 163, 184, 0.18);
  color: #334155;
}

@media (max-width: 1199px) {
  .live-hub-state__layout,
  .live-hub-story-grid,
  .live-hub-tables,
  .live-hub-hero__scoreboard {
    grid-template-columns: 1fr;
  }

  .live-hub-state__duel {
    min-height: 0;
    padding-top: 1.15rem;
  }

  .live-hub-hero__team,
  .live-hub-hero__team--home {
    text-align: left;
    justify-items: start;
    justify-self: stretch;
    min-height: 0;
  }

  .live-hub-hero__team--home .live-hub-hero__team-top {
    justify-content: flex-start;
  }

  .live-hub-state__competitor--pitcher {
    text-align: left;
    justify-items: start;
  }
}

@media (max-width: 767px) {
  .live-hub-hero,
  .live-hub-section {
    border-radius: 22px;
  }

  .live-hub-hero__status-bar,
  .live-hub-hero__scoreboard,
  .live-hub-hero__linescore-wrap,
  .live-hub-hero__meta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .live-hub-hero__status-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-hub-hero__center {
    min-width: 0;
  }

  .live-hub-table-wrap__totals {
    margin-left: 0;
  }

  .live-hub-hero__scoreline {
    gap: 0.55rem;
  }

  .live-hub-hero__meta-item--umpires {
    grid-column: auto;
    max-width: none;
  }

  .live-hub-state__duel,
  .live-hub-state__metric-strip,
  .live-hub-state__bases-inline {
    grid-template-columns: 1fr;
  }

  .live-hub-state__duel {
    padding-top: 0.85rem;
  }

  .live-hub-state__competitor--pitcher {
    text-align: left;
    justify-items: start;
  }

  .live-hub-state__versus {
    width: 2.5rem;
    height: 2.5rem;
    justify-self: start;
  }

  .live-hub-story--feed .live-hub-feed {
    max-height: 360px;
    padding-right: 0.2rem;
  }

  .live-hub-story--scoring .live-hub-scoring {
    max-height: 360px;
    padding-right: 0.2rem;
  }

  .live-hub-state__inning-list {
    max-height: 18rem;
    padding-right: 0.2rem;
  }
}

/* Live hub sections use postgame shell styling */
.live-hub.postgame-hub {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.live-hub.postgame-hub .live-hub-section.postgame-section {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), rgba(255, 255, 255, 0)),
    rgba(8, 12, 18, 0.58);
}

.live-hub.postgame-hub .live-hub-section__header.postgame-section__header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

.live-hub.postgame-hub .live-hub-section__title.postgame-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.live-hub.postgame-hub .live-hub-feed__item.postgame-leader-row {
  display: grid;
  gap: 0.52rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: none;
}

.live-hub.postgame-hub .live-hub-feed__item.postgame-leader-row:first-of-type {
  border-top: none;
}

.live-hub.postgame-hub .live-hub-feed__result.postgame-leader-row__decision,
.live-hub.postgame-hub .live-hub-scoring__result.postgame-scoring__result {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe1ff;
}

.live-hub.postgame-hub .live-hub-feed__description.postgame-leader-row__summary,
.live-hub.postgame-hub .live-hub-scoring__description.postgame-scoring__description {
  font-size: 0.94rem;
  color: #aebed3;
  line-height: 1.45;
}

.live-hub.postgame-hub .live-hub-scoring.postgame-scoring {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.live-hub.postgame-hub .live-hub-scoring__item.postgame-scoring__row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: start;
  column-gap: 0.9rem;
  row-gap: 0.22rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: none;
}

.live-hub.postgame-hub .live-hub-scoring__item.postgame-scoring__row:first-child {
  border-top: none;
}

.live-hub.postgame-hub .live-hub-scoring__inning.postgame-scoring__inning {
  padding-top: 0.34rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(159, 176, 198, 0.96);
  white-space: nowrap;
}

.live-hub.postgame-hub .live-hub-scoring__content.postgame-scoring__event {
  min-width: 0;
  display: grid;
  gap: 0.44rem;
}

.live-hub.postgame-hub .live-hub-scoring__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  min-width: 0;
}

.live-hub.postgame-hub .live-hub-scoring__topline.postgame-scoring__topline {
  gap: 0.56rem;
  min-width: 0;
  flex-wrap: nowrap;
}

.live-hub.postgame-hub .live-hub-scoring__result.postgame-scoring__result {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-hub.postgame-hub .live-hub-scoring__team-badge {
  min-width: 52px;
  height: 2rem;
  padding: 0 0.62rem;
  border-radius: 10px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 14px rgba(2, 6, 23, 0.25);
}

.live-hub.postgame-hub .live-hub-scoring__score.postgame-scoring__score {
  margin-left: 0.45rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #dbe7f5;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-hub.postgame-hub .live-hub-scoring__description.postgame-scoring__description {
  font-size: 0.93rem;
  line-height: 1.42;
  color: #aebed3;
}

@media (max-width: 860px) {
  .live-hub.postgame-hub .live-hub-scoring__item.postgame-scoring__row {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
  }

  .live-hub.postgame-hub .live-hub-scoring__inning.postgame-scoring__inning {
    padding-top: 0;
  }
}

.live-hub.postgame-hub .live-hub-table-wrap.postgame-table-wrap {
  min-width: 0;
  border-radius: 0;
}

.live-hub.postgame-hub .live-hub-table-wrap__header.postgame-table-wrap__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  padding: 0.74rem 0.72rem 0.18rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.live-hub.postgame-hub .live-hub-table-wrap__totals {
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-hub.postgame-hub .live-hub-table.postgame-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.live-hub.postgame-hub .live-hub-table.postgame-table th,
.live-hub.postgame-hub .live-hub-table.postgame-table td {
  padding: 0.55rem 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  white-space: nowrap;
}

.live-hub.postgame-hub .live-hub-table.postgame-table th {
  position: static;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa3ba;
  background: transparent;
}

.live-hub.postgame-hub .live-hub-table.postgame-table td {
  font-size: 0.75rem;
  color: #dbe7f5;
}

.live-hub.postgame-hub .live-hub-table.postgame-table td:first-child {
  color: #f8fafc;
  font-weight: 600;
}

.live-hub.postgame-hub .live-hub-player.postgame-batting-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.live-hub.postgame-hub .live-hub-player__order.postgame-batting-player__order {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.64rem;
  font-weight: 700;
  color: #9fb0c6;
}

.live-hub.postgame-hub .live-hub-player__name.postgame-batting-player__name {
  color: #f8fafc;
  font-size: 0.83rem;
  font-weight: 600;
}

.live-hub.postgame-hub .live-hub-player__role.postgame-batting-player__role {
  color: #9fb0c6;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-hub.postgame-hub .live-hub-table__row--sub.postgame-table__row--sub td {
  background: rgba(148, 163, 184, 0.06);
}

.live-hub.postgame-hub .live-hub-table__row--sub.postgame-table__row--sub .live-hub-player__name {
  color: #93a3b8;
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-section.postgame-section {
  border-color: rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
    #ffffff;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-section__title.postgame-section__title,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-table-wrap__header.postgame-table-wrap__header,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-table.postgame-table td:first-child,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-player__name.postgame-batting-player__name {
  color: #0f172a;
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-table.postgame-table th {
  color: #64748b;
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-feed__item.postgame-leader-row,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-scoring__item.postgame-scoring__row,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-table.postgame-table th,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-table.postgame-table td {
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-feed__description.postgame-leader-row__summary,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-scoring__description.postgame-scoring__description {
  color: #475569;
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-feed__result.postgame-leader-row__decision,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-scoring__result.postgame-scoring__result {
  color: #1d4ed8;
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-scoring__score.postgame-scoring__score,
html[data-theme='light'] .live-hub.postgame-hub .live-hub-player__role.postgame-batting-player__role {
  color: #334155;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-scoring__inning.postgame-scoring__inning {
  color: #64748b;
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-scoring__team-badge {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 6px 14px rgba(148, 163, 184, 0.2);
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-player__order.postgame-batting-player__order {
  color: #64748b;
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-table__row--sub.postgame-table__row--sub td {
  background: rgba(148, 163, 184, 0.05);
}

html[data-theme='light'] .live-hub.postgame-hub .live-hub-table__row--sub.postgame-table__row--sub .live-hub-player__name {
  color: #1e293b;
}

/* ── Simple Pitch Compare (pregame hub) ───────────────────────── */
.simple-pitch-compare .card.shadow-lg {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(10, 14, 21, 0.44);
  box-shadow: none;
  color: #e2e8f0;
}

.simple-pitch-compare .hub-section-heading__eyebrow {
  color: rgba(148, 163, 184, 0.92);
}

.simple-pitch-compare .player-trends-header {
  color: #f8fafc;
}

.simple-pitch-compare__header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.simple-pitch-compare__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.simple-pitch-compare__toolbar--card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 0 0;
  margin-bottom: 8px;
}

.simple-pitch-compare__control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.simple-pitch-compare__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.simple-pitch-compare__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: rgba(191, 219, 254, 0.95);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(30, 41, 59, 0.75);
  cursor: help;
}

.simple-pitch-compare__hint::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 220px;
  max-width: 300px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.98);
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.simple-pitch-compare__hint:hover::after,
.simple-pitch-compare__hint:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.simple-pitch-compare__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
}

.simple-pitch-compare__select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(20, 22, 26, 0.7);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 32px 6px 10px;
  line-height: 1.1;
  cursor: pointer;
}

.simple-pitch-compare__select:focus {
  outline: none;
  border-color: rgba(147, 197, 253, 0.9);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.simple-pitch-compare__chip {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
}

.simple-pitch-compare__chip:hover {
  border-color: rgba(99, 102, 241, 0.65);
  color: #e2e8f0;
}

.simple-pitch-compare__chip.is-active {
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.95), rgba(99, 102, 241, 0.95));
  border-color: rgba(147, 197, 253, 0.95);
  color: #eff6ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.simple-pitch-compare__grid {
  display: block;
}

.simple-pitch-compare__card {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  background: transparent;
  overflow: hidden;
}

.simple-pitch-compare__card.is-hidden {
  display: none;
}

.simple-pitch-compare__card-switch {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(71, 85, 105, 0.52);
  background: rgba(7, 13, 29, 0.6);
  margin-bottom: 12px;
}

.simple-pitch-compare__card-tab {
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9px;
  padding: 6px 10px;
  background: rgba(30, 41, 59, 0.45);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.16s ease;
}

.simple-pitch-compare__card-tab:hover {
  border-color: rgba(147, 197, 253, 0.65);
  color: #eff6ff;
}

.simple-pitch-compare__card-tab.is-active {
  border-color: rgba(147, 197, 253, 0.95);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.92), rgba(99, 102, 241, 0.9));
  color: #eff6ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.simple-pitch-compare__card-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.4);
}

.simple-pitch-compare__card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
}

.simple-pitch-compare__card-head p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
}

.simple-pitch-compare__card-layout {
  display: grid;
  grid-template-columns: minmax(400px, 43%) minmax(0, 57%);
  gap: 0;
}

.simple-pitch-compare__left-pane {
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  background: transparent;
  padding: 10px 12px 12px;
}

.simple-pitch-compare__right-pane {
  min-width: 0;
  padding: 10px 12px 12px;
}

.simple-pitch-compare__sp-snapshot-wrap {
  margin-top: 0;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  background: rgba(10, 14, 21, 0.44);
  overflow-x: auto;
}

.simple-pitch-compare__sp-snapshot-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.34);
  color: #dbeafe;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.simple-pitch-compare__sp-snapshot-pitcher {
  color: #f8fafc;
}

.simple-pitch-compare__sp-snapshot-sep {
  color: rgba(148, 163, 184, 0.8);
}

.simple-pitch-compare__sp-snapshot {
  margin: 0;
  min-width: 640px;
}

.simple-pitch-compare__sp-snapshot thead th {
  border-color: rgba(148, 163, 184, 0.1);
  background: rgba(20, 22, 26, 0.6);
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 7px 8px;
}

.simple-pitch-compare__sp-snapshot thead th.text-start {
  padding-left: 14px;
}

.simple-pitch-compare__sp-snapshot tbody td {
  border-color: rgba(148, 163, 184, 0.08);
  background: transparent;
  color: #dbe4f3;
  font-size: 0.76rem;
  font-weight: 650;
  padding: 7px 8px;
}

.simple-pitch-compare__sp-snapshot tbody td.text-start {
  padding-left: 14px;
}

.simple-pitch-compare__sp-snapshot tbody tr:nth-child(even) td {
  background: transparent;
}

.simple-pitch-compare__sp-snapshot tbody tr:hover td {
  background: rgba(255, 255, 255, 0.07);
}

.simple-pitch-compare__sp-snapshot .spc-sp-usage {
  color: #bfdbfe;
}

.simple-pitch-compare__mix-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin-bottom: 0.45rem;
}

.simple-pitch-compare__mix-row--hidden {
  display: none;
}

.simple-pitch-compare__mix-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(30, 41, 59, 0.66);
  color: #dbeafe;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.simple-pitch-compare__mix-chip .spc-mix-chip-usage {
  display: none;
}

.simple-pitch-compare__mix-chip:hover {
  border-color: rgba(147, 197, 253, 0.7);
  color: #eff6ff;
}

.simple-pitch-compare__mix-chip.is-active {
  border-color: rgba(147, 197, 253, 0.95);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.9), rgba(99, 102, 241, 0.9));
  color: #eff6ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}


.simple-pitch-compare__table {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.simple-pitch-compare__table thead th {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  border-color: rgba(148, 163, 184, 0.1);
  background: rgba(20, 22, 26, 0.6);
  padding: 7px 8px;
}

.simple-pitch-compare__table thead th.text-start {
  padding-left: 14px;
}

.simple-pitch-compare__table tbody td {
  color: #dbe4f3;
  border-color: rgba(148, 163, 184, 0.08);
  background: transparent;
  padding: 7px 8px;
}

.simple-pitch-compare__table tbody td.text-start {
  padding-left: 14px;
}

.simple-pitch-compare__table tbody tr:nth-child(even) td {
  background: transparent;
}

.simple-pitch-compare__table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.07);
}

.simple-pitch-compare__hidden-cell {
  display: none;
}

.simple-pitch-compare__table .player-link {
  color: #f8fafc;
}

.simple-pitch-compare__table .player-link:hover {
  color: #bfdbfe;
}

.simple-pitch-compare__player-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.simple-pitch-compare__order {
  min-width: 16px;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
}

.simple-pitch-compare__hand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: rgba(49, 46, 129, 0.35);
}

.spc-shortlist-add-btn {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(20, 22, 26, 0.54);
  color: rgba(191, 219, 254, 0.9);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.simple-pitch-compare__add-col,
.simple-pitch-compare__add-cell {
  width: 42px;
  min-width: 42px;
  text-align: center;
}

.simple-pitch-compare__add-cell {
  padding-left: 6px;
  padding-right: 6px;
}

.simple-pitch-compare__table tbody tr:hover .spc-shortlist-add-btn,
.spc-shortlist-add-btn:focus-visible {
  opacity: 1;
}

.spc-shortlist-add-btn:hover,
.spc-shortlist-add-btn:focus-visible {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(8, 47, 73, 0.62);
  color: #e0f2fe;
  transform: translateY(-1px);
}

.spc-shortlist-add-btn:active {
  transform: translateY(0);
}

.spc-shortlist-add-btn.is-added {
  opacity: 1;
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(20, 83, 45, 0.68);
  color: #bbf7d0;
}

@media (max-width: 1100px) {
  .simple-pitch-compare__header-row {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-pitch-compare__card-layout {
    grid-template-columns: 1fr;
  }

  .simple-pitch-compare__left-pane {
    border-right: none;
    border-bottom: 1px solid rgba(71, 85, 105, 0.32);
  }
}

@media (max-width: 640px) {
  .simple-pitch-compare__toolbar--card {
    grid-template-columns: 1fr;
  }

  .simple-pitch-compare__card-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .simple-pitch-compare__card-tab {
    width: 100%;
    text-align: left;
  }

  .simple-pitch-compare__toolbar {
    gap: 8px;
  }

  .simple-pitch-compare__toolbar--card {
    padding: 8px 12px 2px;
  }

  .simple-pitch-compare__control-group {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }

  .simple-pitch-compare__controls {
    margin-right: 0;
  }

  .simple-pitch-compare__select {
    width: 100%;
    min-width: 0;
  }

  .simple-pitch-compare__chip {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}

html[data-theme='light'] .simple-pitch-compare__label {
  color: rgba(71, 85, 105, 0.9);
}

html[data-theme='light'] .simple-pitch-compare__hint {
  border-color: rgba(148, 163, 184, 0.7);
  color: rgba(30, 64, 175, 0.95);
  background: rgba(241, 245, 249, 0.95);
}

html[data-theme='light'] .simple-pitch-compare__hint::after {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
}

html[data-theme='light'] .simple-pitch-compare .card.shadow-lg {
  border-color: rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  color: #334155;
}

html[data-theme='light'] .simple-pitch-compare .hub-section-heading__eyebrow {
  color: rgba(71, 85, 105, 0.9);
}

html[data-theme='light'] .simple-pitch-compare .player-trends-header {
  color: #0f172a;
}

html[data-theme='light'] .simple-pitch-compare__chip {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.96);
  color: #334155;
}

html[data-theme='light'] .simple-pitch-compare__select {
  border-color: rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
}

html[data-theme='light'] .simple-pitch-compare__select:focus {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16);
}

html[data-theme='light'] .simple-pitch-compare__chip:hover {
  border-color: rgba(59, 130, 246, 0.6);
}

html[data-theme='light'] .simple-pitch-compare__chip.is-active {
  color: #eff6ff;
}

html[data-theme='light'] .simple-pitch-compare__card {
  border-color: rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

html[data-theme='light'] .simple-pitch-compare__card-switch {
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(248, 250, 252, 0.86);
}

html[data-theme='light'] .simple-pitch-compare__card-tab {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(241, 245, 249, 0.92);
  color: #334155;
}

html[data-theme='light'] .simple-pitch-compare__card-tab:hover {
  border-color: rgba(59, 130, 246, 0.56);
  color: #1d4ed8;
}

html[data-theme='light'] .simple-pitch-compare__left-pane {
  border-right-color: rgba(203, 213, 225, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.72));
}

html[data-theme='light'] .simple-pitch-compare__card-head h3 {
  color: #0f172a;
}

html[data-theme='light'] .simple-pitch-compare__card-head p {
  color: rgba(71, 85, 105, 0.9);
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot-wrap {
  border-color: rgba(203, 213, 225, 0.92);
  background: rgba(241, 245, 249, 0.82);
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot-title {
  border-bottom-color: rgba(203, 213, 225, 0.9);
  color: #334155;
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot-pitcher {
  color: #0f172a;
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot-sep {
  color: rgba(100, 116, 139, 0.8);
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot thead th {
  color: rgba(71, 85, 105, 0.92);
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(241, 245, 249, 0.94);
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot tbody td {
  color: #334155;
  border-color: rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.95);
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.95);
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot tbody tr:hover td {
  background: rgba(241, 245, 249, 0.95);
}

html[data-theme='light'] .simple-pitch-compare__sp-snapshot .spc-sp-usage {
  color: #1d4ed8;
}

html[data-theme='light'] .simple-pitch-compare__mix-chip {
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(125, 211, 252, 0.7);
  color: #1e3a8a;
}

html[data-theme='light'] .simple-pitch-compare__mix-chip:hover {
  border-color: rgba(59, 130, 246, 0.65);
}

html[data-theme='light'] .simple-pitch-compare__mix-chip.is-active {
  color: #eff6ff;
}


html[data-theme='light'] .simple-pitch-compare__table thead th {
  color: rgba(71, 85, 105, 0.95);
  border-color: rgba(203, 213, 225, 0.9);
  background: rgba(241, 245, 249, 0.92);
}

html[data-theme='light'] .simple-pitch-compare__table {
  border-color: rgba(203, 213, 225, 0.9);
}

html[data-theme='light'] .simple-pitch-compare__table tbody td {
  color: #334155;
  border-color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme='light'] .simple-pitch-compare__table tbody tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.96);
}

html[data-theme='light'] .simple-pitch-compare__table tbody tr:hover td {
  background: rgba(241, 245, 249, 0.98);
}

html[data-theme='light'] .simple-pitch-compare__table .player-link {
  color: #0f172a;
}

html[data-theme='light'] .simple-pitch-compare__table .player-link:hover {
  color: #1d4ed8;
}

html[data-theme='light'] .spc-shortlist-add-btn {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(241, 245, 249, 0.96);
  color: #64748b;
}

html[data-theme='light'] .spc-shortlist-add-btn:hover,
html[data-theme='light'] .spc-shortlist-add-btn:focus-visible {
  border-color: rgba(14, 165, 233, 0.46);
  background: rgba(224, 242, 254, 0.9);
  color: #0c4a6e;
}

html[data-theme='light'] .spc-shortlist-add-btn.is-added {
  border-color: rgba(22, 163, 74, 0.5);
  background: rgba(220, 252, 231, 0.92);
  color: #166534;
}


/* ============================================================
   Opposing Starter History
   ============================================================ */

.opposing-starter-history .card {
  background: #10131a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Team toggle */
.osh-team-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.osh-team-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #bcc5d7;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}

.osh-team-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e2e8f4;
}

.osh-team-btn.is-active {
  background: rgba(69, 130, 240, 0.12);
  border-color: rgba(69, 130, 240, 0.45);
  color: #f1f5ff;
}

.osh-team-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.04em;
}

.osh-team-btn-name {
  font-size: 13px;
}

/* Secondary filters */
.osh-filter-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.osh-filter-label {
  font-size: 11px;
  color: #a9b5cb;
  white-space: nowrap;
}

.osh-filter-select {
  min-width: 96px;
  height: 30px;
  padding: 0 24px 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c4d0e6;
  font-size: 11px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8fa7d7 50%),
    linear-gradient(135deg, #8fa7d7 50%, transparent 50%);
  background-position:
    calc(100% - 13px) 12px,
    calc(100% - 8px) 12px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

#osh-hand-select {
  min-width: 76px;
}

#osh-games-select {
  min-width: 82px;
}

#osh-quality-select {
  min-width: 102px;
}

.osh-filter-select:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #d2d9e8;
}

.osh-filter-select:focus {
  outline: none;
  border-color: rgba(69, 130, 240, 0.55);
  box-shadow: 0 0 0 2px rgba(69, 130, 240, 0.2);
}

.osh-quality-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.osh-quality-input {
  width: 62px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c4d0e6;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

@media (max-width: 1460px) {
  .osh-quality-input {
    width: 58px;
    padding: 0 6px;
  }
}

.osh-quality-input:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.osh-quality-input:focus {
  outline: none;
  border-color: rgba(69, 130, 240, 0.55);
  box-shadow: 0 0 0 2px rgba(69, 130, 240, 0.2);
}

/* Chart wrapper */
.osh-chart {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.osh-empty {
  padding: 32px 0;
  text-align: center;
  color: #9aa6bf;
  font-size: 13px;
}

/* Vertical chart header: hit rate + threshold control */
.osh-vchart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.osh-vchart-hdr__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.osh-odds-display {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 7px;
  background: rgba(69, 130, 240, 0.06);
  border: 1px solid rgba(69, 130, 240, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: #d3e1fb;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.osh-odds-display__text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
}

.osh-odds-display__add-btn {
  width: 26px;
  height: 100%;
  min-height: 24px;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0 7px 7px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(148, 163, 184, 0.06) 100%);
  color: rgba(226, 232, 240, 0.9);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.osh-odds-display__add-btn:hover,
.osh-odds-display__add-btn:focus-visible {
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.18) 0%, rgba(59, 130, 246, 0.13) 100%);
  color: #e0f2fe;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(56, 189, 248, 0.16);
}

.osh-odds-display__add-btn:active {
  background: rgba(56, 189, 248, 0.24);
  color: #f0f9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.osh-odds-display__add-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.osh-odds-divider {
  color: #8da3cf;
  margin: 0 4px;
}

.osh-hit-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(69, 130, 240, 0.1);
  border: 1px solid rgba(69, 130, 240, 0.2);
}

.osh-hit-rate.is-hot {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
}

.osh-hit-rate.is-cold {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.osh-hit-rate__frac {
  font-size: 15px;
  font-weight: 700;
  color: #92b4f8;
  line-height: 1;
}

.osh-hit-rate.is-hot .osh-hit-rate__frac { color: #4ade80; }
.osh-hit-rate.is-cold .osh-hit-rate__frac { color: #f87171; }

.osh-hit-rate__lbl {
  font-size: 11px;
  color: #a9b5cb;
}

.osh-hit-rate__pct {
  font-size: 13px;
  font-weight: 700;
  color: #92b4f8;
}

.osh-hit-rate.is-hot .osh-hit-rate__pct { color: #4ade80; }
.osh-hit-rate.is-cold .osh-hit-rate__pct { color: #f87171; }

.osh-thresh-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.osh-thresh-lbl {
  font-size: 11px;
  color: #a9b5cb;
}

.osh-thresh-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c5d0e4;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 0;
}

.osh-thresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f4;
}

.osh-thresh-val {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f4;
  min-width: 30px;
  text-align: center;
}

/* Bar chart body */
.osh-vchart-body {
  position: relative;
  height: 160px;
}

.osh-thresh-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.5px dashed rgba(69, 130, 240, 0.55);
  z-index: 2;
  pointer-events: none;
}

.osh-vcols {
  display: flex;
  gap: 5px;
  height: 100%;
  align-items: stretch;
}

.osh-vcols.is-sparse {
  justify-content: center;
  gap: 14px;
}

.osh-vcols.is-sparse .osh-vcol {
  flex: 0 1 240px;
  max-width: 240px;
}

.osh-vcols.is-sparse-1 .osh-vcol {
  flex-basis: min(320px, 100%);
  max-width: 320px;
}

.osh-vcols.is-sparse-2 .osh-vcol {
  flex-basis: min(260px, calc((100% - 14px) / 2));
  max-width: 260px;
}

.osh-vcol {
  flex: 1;
  min-width: 0;
  position: relative;
}

.osh-vcol__fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bar-h, 0%);
  border-radius: 3px 3px 0 0;
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(69, 130, 240, 0.13);
  border-top: 2px solid rgba(69, 130, 240, 0.22);
}

.osh-vcol.is-hit .osh-vcol__fill {
  background: rgba(69, 130, 240, 0.4);
  border-top-color: rgba(69, 130, 240, 0.85);
}

.osh-vcol__val {
  position: absolute;
  bottom: calc(var(--bar-h, 0%) + 4px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #8e9dbb;
  line-height: 1;
  z-index: 3;
}

.osh-vcol.is-hit .osh-vcol__val {
  color: #92b4f8;
}

/* X-axis labels */
.osh-xlabel-row {
  display: flex;
  gap: 5px;
  margin-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 7px;
}

.osh-xlabel-row.is-sparse {
  justify-content: center;
  gap: 14px;
}

.osh-xlabel-row.is-sparse .osh-xlabel {
  flex: 0 1 240px;
  max-width: 240px;
}

.osh-xlabel-row.is-sparse-1 .osh-xlabel {
  flex-basis: min(320px, 100%);
  max-width: 320px;
}

.osh-xlabel-row.is-sparse-2 .osh-xlabel {
  flex-basis: min(260px, calc((100% - 14px) / 2));
  max-width: 260px;
}

.osh-xlabel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.osh-xlabel__name {
  font-size: 10px;
  font-weight: 500;
  color: #bac5da;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.osh-xlabel__date {
  font-size: 9px;
  color: #9aa6bf;
  white-space: nowrap;
}

.osh-xlabel__sub {
  font-size: 9px;
  color: #9aa6bf;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.osh-xlabel__metric {
  font-size: 9px;
  color: #afbdd9;
  font-weight: 600;
  white-space: nowrap;
}

.osh-hand-chip {
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #a9b5cb;
  line-height: 1.4;
}

/* DK lines strip */
.osh-dk-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(69, 130, 240, 0.06);
  border: 1px solid rgba(69, 130, 240, 0.14);
}

.osh-dk-strip--with-subcontrols {
  align-items: flex-start;
}

.osh-dk-strip__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.osh-dk-strip__starter-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.osh-dk-strip__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}

.osh-dk-strip__controls-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.osh-dk-strip__controls-sub {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 30px;
}

@media (max-width: 1460px) {
  .osh-dk-strip__controls-main {
    gap: 8px;
  }

  .osh-filter-field {
    gap: 5px;
  }

  .osh-filter-select {
    min-width: 90px;
    padding: 0 22px 0 8px;
  }

  #osh-hand-select {
    min-width: 72px;
  }

  #osh-games-select {
    min-width: 78px;
  }

  #osh-quality-select {
    min-width: 96px;
  }

  .osh-thresh-ctrl {
    gap: 5px;
  }

  .osh-thresh-val {
    min-width: 26px;
  }
}

.osh-dk-strip__label {
  font-size: 13px;
  font-weight: 700;
  color: #a0acc4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.osh-starter-metric-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  padding-left: 2px;
}

.osh-starter-metric-inline__label {
  font-size: 11px;
  color: #8fa0bf;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.osh-starter-metric-inline__value {
  font-size: 12px;
  color: #c7d9fb;
  font-weight: 700;
}

.osh-dk-strip__chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .osh-dk-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .osh-dk-strip__right {
    width: 100%;
    margin-left: 0;
    align-items: flex-start;
  }

  .osh-dk-strip__controls-main {
    justify-content: flex-start;
  }

  .osh-dk-strip__controls-sub {
    justify-content: flex-start;
  }
}

.osh-dk-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(69, 130, 240, 0.2);
  background: transparent;
  color: #aab5ca;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}

.osh-dk-chip span {
  font-weight: 700;
  color: #9abaf7;
}

.osh-dk-chip:hover {
  background: rgba(69, 130, 240, 0.1);
  border-color: rgba(69, 130, 240, 0.35);
  color: #d2d9e8;
}

.osh-dk-chip:hover span {
  color: #92b4f8;
}

.osh-dk-chip.is-active {
  background: rgba(69, 130, 240, 0.2);
  border-color: rgba(69, 130, 240, 0.55);
  color: #e1e9ff;
}

.osh-dk-chip.is-active span {
  color: #92b4f8;
}

/* ---- Light mode overrides ---- */

html[data-theme='light'] .opposing-starter-history .card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme='light'] .osh-team-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  color: #5b6574;
}

html[data-theme='light'] .osh-team-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
  color: #1f2937;
}

html[data-theme='light'] .osh-team-btn.is-active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
  color: #1f2937;
}

html[data-theme='light'] .osh-empty {
  color: #94a3b8;
}

html[data-theme='light'] .osh-hit-rate {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.2);
}

html[data-theme='light'] .osh-hit-rate.is-hot {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
}

html[data-theme='light'] .osh-hit-rate.is-cold {
  background: rgba(220, 38, 38, 0.07);
  border-color: rgba(220, 38, 38, 0.15);
}

html[data-theme='light'] .osh-hit-rate__frac,
html[data-theme='light'] .osh-hit-rate__pct { color: #1d4ed8; }

html[data-theme='light'] .osh-hit-rate.is-hot .osh-hit-rate__frac,
html[data-theme='light'] .osh-hit-rate.is-hot .osh-hit-rate__pct { color: #16a34a; }

html[data-theme='light'] .osh-hit-rate.is-cold .osh-hit-rate__frac,
html[data-theme='light'] .osh-hit-rate.is-cold .osh-hit-rate__pct { color: #dc2626; }

html[data-theme='light'] .osh-hit-rate__lbl { color: #94a3b8; }

html[data-theme='light'] .osh-odds-display {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.16);
  color: #334155;
}

html[data-theme='light'] .osh-odds-divider {
  color: #64748b;
}

html[data-theme='light'] .osh-thresh-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  color: #5b6574;
}

html[data-theme='light'] .osh-thresh-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
  color: #1f2937;
}

html[data-theme='light'] .osh-odds-display__add-btn {
  border-left-color: rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 245, 249, 0.95) 100%);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme='light'] .osh-odds-display__add-btn:hover,
html[data-theme='light'] .osh-odds-display__add-btn:focus-visible {
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.92) 0%, rgba(219, 234, 254, 0.95) 100%);
  color: #0f172a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(56, 189, 248, 0.18);
}

html[data-theme='light'] .osh-thresh-val { color: #0f172a; }
html[data-theme='light'] .osh-thresh-lbl { color: #94a3b8; }

html[data-theme='light'] .osh-thresh-line {
  border-top-color: rgba(37, 99, 235, 0.5);
}

html[data-theme='light'] .osh-vcol__fill {
  background: rgba(37, 99, 235, 0.07);
  border-top-color: rgba(37, 99, 235, 0.18);
}

html[data-theme='light'] .osh-vcol.is-hit .osh-vcol__fill {
  background: rgba(37, 99, 235, 0.18);
  border-top-color: rgba(37, 99, 235, 0.6);
}

html[data-theme='light'] .osh-vcol__val { color: #94a3b8; }
html[data-theme='light'] .osh-vcol.is-hit .osh-vcol__val { color: #1d4ed8; }

html[data-theme='light'] .osh-xlabel-row {
  border-top-color: rgba(15, 23, 42, 0.07);
}

html[data-theme='light'] .osh-xlabel__name { color: #5b6574; }

html[data-theme='light'] .osh-xlabel__date,
html[data-theme='light'] .osh-xlabel__sub { color: #94a3b8; }

html[data-theme='light'] .osh-xlabel__metric {
  color: #64748b;
}

html[data-theme='light'] .osh-hand-chip {
  border-color: rgba(15, 23, 42, 0.1);
  color: #94a3b8;
}

html[data-theme='light'] .osh-dk-strip {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.12);
}

html[data-theme='light'] .osh-dk-strip__label {
  color: #94a3b8;
}

html[data-theme='light'] .osh-dk-chip {
  border-color: rgba(37, 99, 235, 0.18);
  color: #64748b;
}

html[data-theme='light'] .osh-dk-chip span {
  color: #2563eb;
}

html[data-theme='light'] .osh-dk-chip:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: rgba(37, 99, 235, 0.3);
  color: #334155;
}

html[data-theme='light'] .osh-dk-chip.is-active {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
}

html[data-theme='light'] .osh-dk-chip.is-active span {
  color: #1d4ed8;
}

html[data-theme='light'] .osh-filter-label {
  color: #94a3b8;
}

html[data-theme='light'] .osh-filter-select {
  border-color: rgba(15, 23, 42, 0.12);
  background-color: rgba(15, 23, 42, 0.03);
  color: #334155;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
}

html[data-theme='light'] .osh-filter-select:hover {
  background-color: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.16);
  color: #334155;
}

html[data-theme='light'] .osh-filter-select:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

html[data-theme='light'] .osh-quality-input {
  border-color: rgba(15, 23, 42, 0.12);
  background-color: rgba(15, 23, 42, 0.03);
  color: #334155;
}

html[data-theme='light'] .osh-quality-input:hover {
  background-color: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme='light'] .osh-quality-input:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

html[data-theme='light'] .osh-starter-metric-inline__label {
  color: #64748b;
}

html[data-theme='light'] .osh-starter-metric-inline__value {
  color: #334155;
}
