/* Force scrollbar to always be visible to prevent layout shift when content loads
   (e.g., when switching between games view and standings view on desktop) */
html {
  overflow-y: scroll;
  background-color: #f8f9fa;
}

body {
  background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  touch-action: pan-x pan-y;
  min-height: 100vh;
  transition: background 0.3s ease;
  color-scheme: light;
}

/* Dark mode styles */
body.dark-mode {
  background: linear-gradient(to bottom, #1a1a1a 0%, #0d0d0d 100%);
  color: #e9ecef;
  color-scheme: dark;
}

html:has(body.dark-mode) {
  background-color: #1a1a1a;
}

body.dark-mode .filter-bar {
  background: rgba(42, 42, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .filter-bar.stuck {
  background: rgba(42, 42, 42, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .refresh-button,
body.dark-mode .dark-mode-button {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .refresh-button:hover,
  body.dark-mode .dark-mode-button:hover {
    background-color: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    color: #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

body.dark-mode .filter-group {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .filter-group:hover {
    background-color: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

body.dark-mode .filter-group:active {
  background-color: #3a3a3a;
}

body.dark-mode .filter-group svg {
  color: #adb5bd;
}

body.dark-mode .filter-label {
  color: #adb5bd;
}

body.dark-mode .team-dropdown {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-dropdown-header {
  background: linear-gradient(to bottom, #2a2a2a 0%, #252525 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e9ecef;
}

body.dark-mode .dropdown-close {
  background: #333333;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
}

@media (hover: hover) {
  body.dark-mode .dropdown-close:hover {
    background-color: #3a3a3a;
    color: #dee2e6;
    border-color: rgba(255, 255, 255, 0.2);
  }
}

body.dark-mode .dropdown-close:active {
  background-color: #404040;
}

body.dark-mode .team-search-container {
  background-color: #252525;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .team-search-input {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e9ecef;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .team-dropdown-list::-webkit-scrollbar-track {
  background: #252525;
}

body.dark-mode .team-dropdown-list::-webkit-scrollbar-thumb {
  background: #404040;
}

@media (hover: hover) {
  body.dark-mode .team-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
  }
}

body.dark-mode .team-option {
  color: #e9ecef;
}

@media (hover: hover) {
  body.dark-mode .team-option:hover {
    background-color: #333333;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

body.dark-mode .team-option:active {
  background-color: #3a3a3a;
}

body.dark-mode .team-option-logo {
  background: #2a2a2a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

body.dark-mode .filter-value {
  color: #e9ecef;
}

body.dark-mode .filter-clear {
  background-color: #333333;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .filter-clear:hover {
    background-color: #3a3a3a;
    color: #dee2e6;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }
}

body.dark-mode .filter-clear:active {
  background-color: #404040;
}

body.dark-mode .team-logo-small {
  background-color: #2a2a2a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode .team-count {
  color: #e9ecef;
}

body.dark-mode .date-header {
  color: #adb5bd;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  body.dark-mode .date-header:hover {
    color: #ced4da;
    border-bottom-color: rgba(255, 255, 255, 0.15);
  }
}

body.dark-mode .date-header:active {
  color: #e9ecef;
}

body.dark-mode .game-count {
  color: inherit;
}

body.dark-mode .toggle-icon {
  color: inherit;
}

body.dark-mode .date-box-today .date-header {
  color: #4da3ff;
  border-bottom-color: #4da3ff;
}

@media (hover: hover) {
  body.dark-mode .date-box-today .date-header:hover {
    color: #6cb5ff;
    border-bottom-color: #6cb5ff;
  }
}

body.dark-mode .date-box-today .date-header:active {
  color: #3a92e6;
}

body.dark-mode .date-box-today .toggle-icon {
  color: inherit;
}

body.dark-mode .date-box-today .game-count {
  color: inherit;
}

body.dark-mode .game-row {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

body.dark-mode .game-summary:active {
  background-color: #333333;
}

@media (hover: hover) {
  body.dark-mode .game-row.expandable .game-summary:hover {
    background-color: rgba(255, 255, 255, 0.03);
  }
}

body.dark-mode .team-name {
  color: #e9ecef;
}

body.dark-mode .team-record,
body.dark-mode .team-seed {
  color: #adb5bd;
}

body.dark-mode .team-logo-placeholder {
  border: 2px solid #404040;
  background-color: #2a2a2a;
}

body.dark-mode .losing-score {
  color: #6c757d;
}

body.dark-mode .game-time {
  color: #adb5bd;
}

body.dark-mode .game-time.pre-game {
  color: #e9ecef;
}

body.dark-mode .live-time {
  color: #ff4d5a;
}

body.dark-mode .network {
  color: #868e96;
}

body.dark-mode .local-tooltip {
  background-color: rgba(42, 42, 42, 0.95);
  color: #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.dark-mode .no-games {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #adb5bd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.dark-mode .load-link {
  color: #4da3ff;
}

@media (hover: hover) {
  body.dark-mode .load-link:hover {
    color: #6cb5ff;
  }
}

body.dark-mode .load-link:active {
  color: #3a92e6;
}

body.dark-mode .headline {
  color: #adb5bd;
}

body.dark-mode .game-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #2a2a2a;
}

body.dark-mode .game-details > *:first-child {
  border-top: none;
}

body.dark-mode .odds-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .odds-label {
  color: #adb5bd;
}

body.dark-mode .odds-value {
  color: #e9ecef;
}

body.dark-mode .recap-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #ced4da;
}

body.dark-mode .stats-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .stats-header {
  color: #adb5bd;
}

body.dark-mode .stats-table th {
  color: #adb5bd;
}

body.dark-mode .stats-table td {
  color: #e9ecef;
}

body.dark-mode .stats-table td.team-abbr {
  color: #ced4da;
}

body.dark-mode .stats-table tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

body.dark-mode .leaders-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .leaders-header {
  color: #adb5bd;
}

body.dark-mode .leader-team-name {
  color: #ced4da;
}

body.dark-mode .leader-line {
  color: #e9ecef;
}

body.dark-mode .game-flow-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .game-flow-tab {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ced4da;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .game-flow-tab:hover {
    background-color: #333333;
    color: #e9ecef;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

body.dark-mode .game-flow-tab.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.4);
}

body.dark-mode .game-flow-header {
  color: #adb5bd;
}

body.dark-mode .game-flow-loading {
  color: #adb5bd;
}

body.dark-mode .game-flow-tooltip {
  background-color: rgba(42, 42, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

body.dark-mode .tooltip-time {
  color: #adb5bd;
}

body.dark-mode .tooltip-score {
  color: #e9ecef;
}

body.dark-mode .tooltip-description {
  color: #ced4da;
}

body.dark-mode .game-flow-canvas {
  background-color: transparent;
}

body.dark-mode .box-score-section {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .box-score-header {
  color: #adb5bd;
}

body.dark-mode .box-score-tab {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ced4da;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .box-score-tab:hover {
    background-color: #333333;
    color: #e9ecef;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

body.dark-mode .box-score-tab.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.4);
}

body.dark-mode .box-score-table th {
  color: #adb5bd;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .box-score-table th.stat-group-left {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}


body.dark-mode .box-score-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e9ecef;
}

body.dark-mode .box-score-table td.stat-group-left {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}


body.dark-mode .box-score-table th.sticky-col,
body.dark-mode .box-score-table td.sticky-col {
  background-color: #2a2a2a;
  border-right: 2px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .box-score-table th.sticky-col {
  background-color: #2a2a2a;
}

body.dark-mode .box-score-table td.player-name {
  color: #e9ecef;
  background-color: #2a2a2a;
}

body.dark-mode .box-score-table .totals-row td.sticky-col {
  background-color: #252525;
}

body.dark-mode .player-position {
  color: #868e96;
}

body.dark-mode .box-score-table .totals-row {
  background-color: #252525;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.custom-padding {
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .custom-padding {
    padding: 1rem 8px !important;
  }
}

.dates-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px auto 0;
  max-width: 700px;
}

.dates-container.standings-view {
  max-width: 1400px;
}

@media (max-width: 768px) {
  .dates-container {
    margin: 12px auto 0;
    gap: 12px;
  }
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease, border-radius 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.filter-bar.stuck {
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  border-top-color: transparent;
}

.filter-bar.hidden {
  transform: translateY(-120%);
}

@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
}

.refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 38px;
  width: 38px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (hover: hover) {
  .refresh-button:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.12);
    color: #495057;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

.refresh-button:active {
  transform: scale(0.95);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}

.refresh-button svg {
  transition: transform 0.3s ease;
}

.refresh-button.spinning svg {
  animation: spin 0.3s ease-in-out;
}

.dark-mode-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 38px;
  width: 38px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

@media (hover: hover) {
  .dark-mode-button:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.12);
    color: #495057;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

.dark-mode-button:active {
  transform: scale(0.95);
}

.filter-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 38px;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  z-index: 100;
  flex-shrink: 0;
}

@media (hover: hover) {
  .filter-group:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

.filter-group:active {
  transform: scale(0.98);
  background-color: #e9ecef;
}

.filter-group-active {
  z-index: 10001 !important;
}


.filter-label {
  font-size: 13px;
  color: #6c757d;
  margin: 0;
  font-weight: 500;
  pointer-events: none;
  line-height: 1;
}


.team-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  min-width: 200px;
  max-width: 300px;
  animation: dropdown-slide-in 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdown-slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.2px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-radius: 10px 10px 0 0;
}

.dropdown-close {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

@media (hover: hover) {
  .dropdown-close:hover {
    background-color: #e9ecef;
    color: #495057;
    border-color: rgba(0, 0, 0, 0.12);
    transform: scale(1.1);
  }
}

.dropdown-close:active {
  transform: scale(0.95);
  background-color: #dee2e6;
}

.team-search-container {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #f8f9fa;
}

.team-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  background-color: white;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.team-search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.team-dropdown-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.team-dropdown-list::-webkit-scrollbar {
  width: 8px;
}

.team-dropdown-list::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 4px;
}

.team-dropdown-list::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 4px;
  transition: background 0.2s ease;
}

@media (hover: hover) {
  .team-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #ced4da;
  }
}

.team-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

@media (hover: hover) {
  .team-option:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateX(2px);
  }
}

.team-option:active {
  background-color: #e9ecef;
  transform: scale(0.98);
}

.team-option input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #0d6efd;
}

.team-option-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-value {
  font-size: 14px;
  color: #212529;
  font-weight: 500;
  padding: 0 4px;
  line-height: 1;
}

.filter-clear {
  background-color: #e9ecef;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (hover: hover) {
  .filter-clear:hover {
    background-color: #dee2e6;
    color: #495057;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
  }
}

.filter-clear:active {
  transform: scale(0.95);
  background-color: #ced4da;
}

@media (max-width: 768px) {
  .filter-clear {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

.filter-chip-single {
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-logos {
  display: flex;
  align-items: center;
  gap: 2px;
}

.team-logo-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.team-count {
  white-space: nowrap;
  font-size: 14px;
  color: #212529;
  font-weight: 500;
}

.date-input {
  border: none;
  background: none;
  font-size: 14px;
  padding: 2px 4px;
  cursor: pointer;
  color: #212529;
  font-weight: 500;
  outline: none;
  width: auto;
  max-width: 120px;
}

.date-input-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.date-input-always-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: auto;
  width: 0;
  height: 0;
  z-index: 0;
}

.date-filter .filter-clear {
  position: relative;
  z-index: 10;
}

.date-box {
  /* No background, border, or shadow - just a logical grouping */
  overflow: visible;
}

.date-box-today {
  /* No special styling for today - handled in header */
}

.date-header {
  background-color: transparent;
  padding: 12px 0;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c757d;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-count {
  font-size: 13px;
  font-weight: 400;
  color: inherit;
  opacity: 0.7;
}

@media (hover: hover) {
  .date-header:hover {
    color: #495057;
    border-color: rgba(0, 0, 0, 0.15);
  }
}

.date-header:active {
  color: #212529;
}

.toggle-icon {
  font-size: 12px;
  color: inherit;
}

.date-box-today .date-header {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
  border-bottom-width: 2px;
}

@media (hover: hover) {
  .date-box-today .date-header:hover {
    color: #0b5ed7;
    border-bottom-color: #0b5ed7;
  }
}

.date-box-today .date-header:active {
  color: #084298;
}

.date-box-today .toggle-icon {
  color: inherit;
}

.date-box-today .game-count {
  color: inherit;
}

.games-list {
  padding: 0 0 20px 0;
  min-height: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 768px) {
  .date-header {
    padding: 8px 0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
  }

  .date-box-collapsed .date-header {
    margin-bottom: 0;
  }

  .games-list {
    padding: 0 0 16px 0;
    gap: 12px;
  }
}

.slide-enter-active,
.slide-leave-active {
  transition: all 0.3s ease;
  overflow: hidden;
}

.slide-enter-from,
.slide-leave-to {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.slide-enter-to,
.slide-leave-from {
  max-height: 2000px;
  opacity: 1;
}

.game-row {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0, 0, 0.2, 1);
  overflow: hidden;
}

.game-summary {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 50px 120px 50px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  position: relative;
  transition: background-color 0.2s ease;
}

.game-summary:has(.headline) {
  row-gap: 0;
}

.game-row.expandable .game-summary {
  cursor: pointer;
}

.game-summary:active {
  background-color: #f8f9fa;
}

@media (max-width: 768px) {
  .game-row {
    border-radius: 10px;
  }

  .game-summary {
    padding: 14px 8px;
    padding-left: 5px;
    padding-right: 5px;
    gap: 4px;
    grid-template-columns: minmax(60px, 1fr) 35px 80px 35px minmax(60px, 1fr);
  }
}

@media (hover: hover) {
  .game-row.expandable .game-summary:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }
}

.team-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  justify-self: center;
}


.team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background-color: white;
  flex-shrink: 0;
}

.team-name {
  font-size: 11px;
  font-weight: 400;
  color: #212529;
}

.team-record {
  font-size: 11px;
  color: #6c757d;
  margin-top: -2px;
}

.team-seed {
  color: #6c757d;
  margin-right: 3px;
}

.game-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.pre-game-summary .game-center {
  grid-column: 2 / 5;
}

.score {
  font-weight: 800;
  font-size: 26px;
  min-width: 40px;
  text-align: center;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .score {
    font-size: 18px;
    min-width: 28px;
  }
}

.away-score {
  text-align: right;
}

.home-score {
  text-align: left;
}

.losing-score {
  color: #adb5bd;
}

.game-time {
  font-size: 13px;
  color: #6c757d;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

.game-time.pre-game {
  font-size: 24px;
  font-weight: 700;
  color: #212529;
}

@media (max-width: 768px) {
  .game-time {
    font-size: 12px;
  }

  .game-time.pre-game {
    font-size: 18px;
  }
}

.live-time {
  color: #dc3545;
  font-weight: 600;
}

.network {
  font-size: 11px;
  color: #868e96;
  text-align: center;
  min-height: 13px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.25em;
}

@media (max-width: 768px) {
  .network {
    flex-direction: column;
    gap: 0;
  }
}

.network-primary {
  white-space: nowrap;
}

.local-indicator {
  position: relative;
  cursor: help;
  opacity: 0.7;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .local-indicator {
    cursor: pointer;
  }
}

.local-indicator:hover {
  opacity: 1;
}

.local-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  text-align: center;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tooltip-network {
  display: block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .local-tooltip {
    left: 50%;
    right: auto;
  }
}


.no-games {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  display: block;
  min-height: 40px;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .no-games {
    padding: 16px;
    border-radius: 10px;
  }
}

.load-link {
  display: block;
  text-align: center;
  padding: 8px 0;
  margin: 0;
  color: #0d6efd;
  text-decoration: none;
  font-size: 14px;
}

@media (max-width: 768px) {
  .load-link {
    text-align: left;
  }
}

@media (hover: hover) {
  .load-link:hover {
    text-decoration: underline;
    color: #0b5ed7;
  }
}

.load-link:active {
  color: #084298;
  opacity: 0.8;
}

.headline {
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  color: #6c757d;
  font-style: italic;
}

/* Started games: headline lives in its own grid row spanning all columns */
.game-summary > .headline {
  grid-column: 1 / -1;
  align-self: start;
  margin-top: -20px;
  margin-bottom: -4px;
}

.headline-line {
  display: block;
}

@media (max-width: 768px) {
  .headline {
    font-size: 12px;
  }
}

.game-details {
  padding: 0 0 16px 0;
  border-top: 1px solid #e9ecef;
  background-color: #ffffff;
}

.game-details > *:first-child {
  border-top: none;
  padding-top: 16px;
}

@media (max-width: 768px) {
  .game-details {
    padding: 0 0 12px 0;
  }

  .game-details > *:first-child {
    padding-top: 12px;
  }
}

.odds-section {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.odds-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.odds-label {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.odds-value {
  font-size: 14px;
  color: #212529;
  font-weight: 500;
}

@media (max-width: 768px) {
  .odds-section {
    padding: 12px 8px;
  }
}

.recap-section {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 13px;
  line-height: 1.6;
  color: #495057;
  text-align: left;
}

@media (max-width: 768px) {
  .recap-section {
    font-size: 12px;
    padding: 12px 8px;
  }
}

.expand-enter-active,
.expand-leave-active {
  transition: all 0.3s ease;
  overflow: hidden;
}

.expand-enter-from,
.expand-leave-to {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
}

.expand-enter-to,
.expand-leave-from {
  max-height: 600px;
  opacity: 1;
}

.stats-section {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stats-header {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stats-table th {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 8px;
  text-align: center;
}

.stats-table th:first-child {
  text-align: left;
}

.stats-table td {
  padding: 6px 8px;
  text-align: center;
  color: #212529;
  font-weight: 500;
}

.stats-table td.team-abbr {
  text-align: left;
  font-weight: 600;
  color: #495057;
}

.stats-table tbody tr:nth-child(odd) {
  background-color: transparent;
}

@media (max-width: 768px) {
  .stats-section {
    padding: 12px 8px;
  }

  .stats-table {
    font-size: 12px;
  }

  .stats-table th {
    font-size: 10px;
    padding: 4px 6px;
  }

  .stats-table td {
    padding: 6px 6px;
  }
}

.leaders-section {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.leaders-header {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.team-leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


.team-leader-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leader-team-name {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 2px;
}

.leader-line {
  font-size: 12px;
  color: #212529;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .leaders-section {
    padding: 12px 8px;
  }

  .leader-team-name {
    font-size: 11px;
  }

  .leader-line {
    font-size: 11px;
  }
}

.game-flow-section {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.game-flow-header-container {
  margin-bottom: 12px;
}

.game-flow-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.game-flow-tab {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (hover: hover) {
  .game-flow-tab:hover {
    background-color: #ffffff;
    color: #212529;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
  }
}

.game-flow-tab:active {
  transform: scale(0.96);
}

.game-flow-tab.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

.game-flow-header {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-align: center;
}

.game-flow-loading {
  text-align: center;
  color: #6c757d;
  padding: 40px;
  font-size: 13px;
}

.game-flow-chart-container {
  position: relative;
}

.game-flow-tooltip {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 10;
  pointer-events: none;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.tooltip-time {
  font-size: 11px;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 4px;
}

.tooltip-score {
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 4px;
}

.tooltip-description {
  font-size: 12px;
  color: #495057;
  line-height: 1.4;
}

.game-flow-canvas {
  width: 100%;
  display: block;
  cursor: crosshair;
  background-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}

@media (max-width: 768px) {
  .game-flow-section {
    padding: 12px 8px;
  }

  .tooltip-description {
    font-size: 11px;
  }
}

/* Box Score Section */
.box-score-section {
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.box-score-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 10px;
  text-align: center;
}

.box-score-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.box-score-tab {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (hover: hover) {
  .box-score-tab:hover {
    background-color: #ffffff;
    color: #212529;
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
  }
}

.box-score-tab:active {
  transform: scale(0.96);
}

.box-score-tab.active {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

.box-score-table-wrapper {
  overflow: hidden;
  position: relative;
}

.box-score-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
  padding-left: 0;
  margin-left: 0;
  overscroll-behavior-x: none;
  scrollbar-width: none; /* Firefox */
}

.box-score-table-scroll::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.box-score-table {
  width: 100%;
  min-width: 800px;
  font-size: 12px;
  border-collapse: separate;
  border-spacing: 0;
}

.box-score-table th {
  text-align: right;
  padding: 6px 8px;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 1px solid #dee2e6;
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.box-score-table th.stat-group-left {
  border-left: 1px solid #dee2e6;
  padding-right: 4px;
}

.box-score-table th.stat-group-right {
  padding-left: 4px;
  padding-right: 8px;
}

.box-score-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f3f5;
  white-space: nowrap;
  text-align: right;
}

.box-score-table td.stat-group-left {
  border-left: 1px solid #e9ecef;
  padding-right: 4px;
}

.box-score-table td.stat-group-right {
  padding-left: 4px;
  padding-right: 8px;
}

.box-score-table th.sticky-col,
.box-score-table td.sticky-col {
  position: sticky;
  left: 0;
  background-color: #ffffff;
  z-index: 2;
  max-width: 140px;
  padding-left: 16px;
  padding-right: 12px;
  border-right: 2px solid #dee2e6;
}

.box-score-table th.sticky-col {
  text-align: left;
  background-color: #ffffff;
}

.box-score-table td.player-name {
  font-weight: 500;
  color: #212529;
  background-color: #ffffff;
  text-align: left;
}

.box-score-table .totals-row td.sticky-col {
  background-color: #f8f9fa;
  text-align: left;
}

.player-position {
  margin-left: 4px;
  font-size: 9px;
  color: #868e96;
  font-weight: 600;
}

.box-score-table .totals-row {
  font-weight: 600;
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
}

.box-score-table .totals-row td {
  border-bottom: none;
}

@media (max-width: 768px) {
  .box-score-section {
    padding: 12px 8px;
  }

  .box-score-table-scroll {
    margin: 0;
    padding: 0;
    padding-left: 0;
    margin-left: 0;
  }

  .box-score-table {
    font-size: 11px;
  }

  .box-score-table th,
  .box-score-table td {
    padding: 5px 6px;
  }

  .box-score-table th.sticky-col,
  .box-score-table td.sticky-col {
    max-width: 110px;
    padding-left: 12px;
  }
}

/* Date filter - button-like when empty, filter-like when selected */
.date-filter {
  min-width: 38px;
  width: auto;
  padding: 8px 12px;
  color: #6c757d;
}

.date-filter:not(:has(.filter-value)) {
  width: 38px;
  padding: 0;
  justify-content: center;
}

.date-clear-overlay {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  background-color: #0d6efd;
  color: white;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
  .date-clear-overlay:hover {
    background-color: #0b5ed7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translate(50%, -50%) scale(1.05);
  }
}

.date-clear-overlay:active {
  transform: translate(50%, -50%) scale(0.95);
}

body.dark-mode .date-clear-overlay {
  background-color: #0d6efd;
}

@media (hover: hover) {
  body.dark-mode .date-clear-overlay:hover {
    background-color: #0b5ed7;
  }
}

/* Standings button */
.standings-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 38px;
  width: 38px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

@media (hover: hover) {
  .standings-button:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.12);
    color: #495057;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

.standings-button:active {
  transform: scale(0.95);
}

body.dark-mode .standings-button {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .standings-button:hover {
    background-color: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    color: #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

/* Games button */
.games-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 38px;
  width: 38px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

@media (hover: hover) {
  .games-button:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.12);
    color: #495057;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

.games-button:active {
  transform: scale(0.95);
}

body.dark-mode .games-button {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .games-button:hover {
    background-color: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    color: #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

/* Playoffs button */
.playoffs-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  height: 38px;
  width: 38px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
}

@media (hover: hover) {
  .playoffs-button:hover {
    background-color: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.12);
    color: #495057;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
  }
}

.playoffs-button:active {
  transform: scale(0.95);
}

body.dark-mode .playoffs-button {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  body.dark-mode .playoffs-button:hover {
    background-color: #333333;
    border-color: rgba(255, 255, 255, 0.2);
    color: #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

/* Standings container */
.standings-container {
  max-width: 1400px;
  margin: 20px auto 0;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .standings-container {
    padding: 0 8px;
    margin: 20px 0 0;
    max-width: 100%;
  }
}

.standings-loading {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #6c757d;
}

body.dark-mode .standings-loading {
  color: #adb5bd;
}

.conference-section {
  margin-bottom: 32px;
}

.conference-section:first-child {
  margin-top: 0;
}

.conference-title {
  display: none;
}

.standings-table-wrapper {
  overflow-x: auto;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.dark-mode .standings-table-wrapper {
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.standings-table thead {
  background-color: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

body.dark-mode .standings-table thead {
  background-color: #1f1f1f;
}

.standings-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

body.dark-mode .standings-table th {
  color: #adb5bd;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.standings-table th.team-col {
  text-align: left;
  min-width: 200px;
}

.standings-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.15s ease;
}

body.dark-mode .standings-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (hover: hover) {
  .standings-table tbody tr:hover {
    background-color: #f8f9fa;
  }

  body.dark-mode .standings-table tbody tr:hover {
    background-color: #333333;
  }
}

.standings-table td {
  padding: 12px 8px;
  text-align: center;
  color: #212529;
  font-weight: 500;
  white-space: nowrap;
}

body.dark-mode .standings-table td {
  color: #e9ecef;
}

.standings-table td.team-col {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-number {
  font-weight: 700;
  color: #6c757d;
  min-width: 24px;
  text-align: center;
}

body.dark-mode .rank-number {
  color: #adb5bd;
}

.clincher-indicator {
  position: relative;
  font-size: 11px;
  color: #999;
  margin-left: -6px;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.clincher-indicator::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
}

body.dark-mode .clincher-indicator {
  color: #777;
}

.clincher-indicator::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
}

body.dark-mode .clincher-indicator::after {
  background-color: rgba(42, 42, 42, 0.95);
  color: #e9ecef;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.clincher-indicator:hover::after {
  opacity: 1;
}

.standings-team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-name-text {
  font-weight: 600;
  color: #212529;
}

body.dark-mode .team-name-text {
  color: #e9ecef;
}

.positive-diff {
  color: #198754;
  font-weight: 600;
}

body.dark-mode .positive-diff {
  color: #75b798;
}

.negative-diff {
  color: #dc3545;
  font-weight: 600;
}

body.dark-mode .negative-diff {
  color: #e57373;
}

/* Playoff cutoff borders - using background gradient for continuous dotted line */
.standings-table tbody tr.playoff-cutoff td {
  background-image: repeating-linear-gradient(to right, #6c757d 0, #6c757d 4px, transparent 4px, transparent 8px);
  background-position: left bottom;
  background-size: 100% 2px;
  background-repeat: no-repeat;
}

body.dark-mode .standings-table tbody tr.playoff-cutoff td {
  background-image: repeating-linear-gradient(to right, #adb5bd 0, #adb5bd 4px, transparent 4px, transparent 8px);
}

/* Play-in cutoff borders - using box-shadow for continuous solid line */
.standings-table tbody tr.playin-cutoff td {
  box-shadow: inset 0 -2px 0 0 #6c757d;
}

body.dark-mode .standings-table tbody tr.playin-cutoff td {
  box-shadow: inset 0 -2px 0 0 #adb5bd;
}

@media (max-width: 768px) {
  .conference-title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .conference-section {
    margin-bottom: 24px;
    max-width: 100%;
  }

  .standings-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
    margin: 0 -8px;
    border-radius: 10px;
    max-width: calc(100% + 16px);
    scrollbar-width: none; /* Firefox */
  }

  .standings-table-wrapper::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
  }

  .standings-table {
    font-size: 11px;
    min-width: 700px;
    border-collapse: collapse;
  }

  .standings-table thead {
    position: static;
  }

  .standings-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #f8f9fa;
  }

  body.dark-mode .standings-table thead th {
    background-color: #1f1f1f;
  }

  /* Team column header needs highest z-index since it's sticky both ways */
  .standings-table thead th.team-col {
    z-index: 20;
  }

  .standings-table th,
  .standings-table td {
    padding: 8px 4px;
  }

  .standings-table th {
    font-size: 10px;
  }

  /* Team column as leftmost sticky column (like box score player names) */
  .standings-table th.team-col,
  .standings-table td.team-col {
    position: sticky;
    left: 0;
    z-index: 10;
    min-width: 60px;
    max-width: 60px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .standings-table th.team-col {
    background-color: #f8f9fa;
    width: 60px;
    text-align: center;
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.05);
  }

  .standings-table td.team-col {
    background-color: #ffffff;
    width: 60px;
    display: table-cell;
    text-align: center;
    white-space: nowrap;
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.05);
  }

  body.dark-mode .standings-table th.team-col {
    background-color: #1f1f1f;
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.15);
  }

  body.dark-mode .standings-table td.team-col {
    background-color: #2a2a2a;
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.15);
  }

  /* Since we're using background/box-shadow on all td cells now,
     the sticky column will automatically have the same pattern without extra work */

  .team-name-text {
    display: none;
  }

  .rank-number {
    display: inline-block;
    min-width: 16px;
    font-size: 10px;
    margin-right: 4px;
    vertical-align: middle;
  }

  .standings-team-logo {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }

  .clincher-indicator {
    margin-left: 2px;
    font-size: 10px;
  }

  .clincher-indicator:hover::after {
    opacity: 0;
  }

  .clincher-indicator:focus::after {
    opacity: 1;
    bottom: auto;
    left: calc(100% + 6px);
    top: 50%;
    transform: translateY(-50%);
  }
}
