body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0033A0 0%, #1e5fb8 100%);
  min-height: 100vh;
  color: #333;
}

/* Remove underlines from all links */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: linear-gradient(135deg, #0033A0 0%, #002868 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 20px;
  width: 140px;
  height: 140px;
  background-image: url('/blinky-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  z-index: 10;
}

.header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
  margin: 10px 0 0 0;
  opacity: 0.95;
  font-size: 1.1rem;
}

.main-content {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border-right: 2px solid #0033A0;
  padding: 0;
  overflow-y: auto;
}

.level-section {
  margin-bottom: 0;
}

.level-header {
  background: linear-gradient(135deg, #0033A0 0%, #002868 100%);
  padding: 12px 20px;
  font-weight: 600;
  color: white;
  border-bottom: 1px solid #CE1126;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab {
  display: block;
  width: 100%;
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.tab:hover {
  background: linear-gradient(90deg, rgba(0, 51, 160, 0.08) 0%, transparent 100%);
  color: #0033A0;
}

.tab.active {
  background: white;
  color: #0033A0;
  border-left-color: #CE1126;
  font-weight: 600;
  box-shadow: inset 0 0 10px rgba(0, 51, 160, 0.1);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
}

.tab-content {
  display: none;
  padding: 30px;
}

.tab-content.active {
  display: block;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.game-card {
  background: white;
  border: 2px solid #e1e8ed;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 51, 160, 0.1);
}

.game-card:hover {
  box-shadow: 0 8px 24px rgba(0, 51, 160, 0.2);
  transform: translateY(-3px);
  border-color: #0033A0;
}

.game-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0033A0 0%, #1e5fb8 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 51, 160, 0.3);
}

.game-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
}

.game-time {
  font-weight: 700;
  color: #0033A0;
  font-size: 1.3rem;
  margin-bottom: 12px;
  text-shadow: 1px 1px 2px rgba(0, 51, 160, 0.1);
}

.game-teams {
  margin: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
}

.game-location {
  font-size: 0.85rem;
  color: #666;
  margin-top: 12px;
  font-style: italic;
}

.no-games {
  padding: 60px 30px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.no-content {
  padding: 60px 30px;
  text-align: center;
  color: #666;
  font-style: italic;
}


.error {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #b71c1c;
  padding: 20px;
  margin: 20px;
  border-radius: 12px;
  border: 2px solid #b71c1c;
  text-align: center;
}

.team-group {
  margin-bottom: 10px;
}

.team-name-header {
  padding: 8px 20px;
  background: rgba(0, 51, 160, 0.1);
  font-weight: 600;
  font-size: 0.85rem;
  color: #0033A0;
  border-bottom: 1px solid #ddd;
  border-left: 2px solid #CE1126;
}

.sub-tab {
  padding: 8px 20px 8px 35px !important;
  font-size: 0.8rem;
  background: rgba(248, 249, 250, 0.8);
}

.sub-tab:hover {
  background: linear-gradient(90deg, rgba(0, 51, 160, 0.05) 0%, transparent 100%);
}

.stats-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0, 51, 160, 0.1);
  border: 2px solid rgba(0, 51, 160, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.stat-card {
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 51, 160, 0.05);
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.15);
  transform: translateY(-1px);
}

.rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: #CE1126;
  min-width: 40px;
}

.player-info {
  flex: 1;
}

.player-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.player-teams {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.player-stats {
  text-align: right;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0033A0;
}

.stat-breakdown {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 15px;
  padding: 30px;
}

.player-card, .goalie-card {
  background: white;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 51, 160, 0.05);
}

.player-card:hover, .goalie-card:hover {
  box-shadow: 0 6px 16px rgba(0, 51, 160, 0.15);
  border-color: #0033A0;
}

.goalie-card {
  border-left: 4px solid #CE1126;
}

.player-card .player-info {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.player-position {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.player-stats, .goalie-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}

.stat-item {
  text-align: center;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
}

.stat-item.primary {
  background: linear-gradient(135deg, #0033A0 0%, #1e5fb8 100%);
  color: white;
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 2px;
  font-weight: 500;
}

.stat-item.primary .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile Dropdown Navigation */
.mobile-nav-dropdown {
  display: none;
  position: relative;
  width: 100%;
}

.desktop-sidebar {
  display: block;
}

.dropdown-toggle {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #0033A0 0%, #002868 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 51, 160, 0.2);
}

.dropdown-toggle:hover {
  background: linear-gradient(135deg, #002868 0%, #001a4d 100%);
  box-shadow: 0 4px 12px rgba(0, 51, 160, 0.3);
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
}

.dropdown-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #0033A0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 51, 160, 0.2);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.dropdown-menu.show {
  display: block;
  animation: dropdownSlide 0.2s ease;
}

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

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(0, 51, 160, 0.08) 0%, transparent 100%);
  color: #0033A0;
}

.dropdown-item.active {
  background: linear-gradient(90deg, #0033A0 0%, #1e5fb8 100%);
  color: white;
  font-weight: 600;
}

.dropdown-group-header {
  background: rgba(0, 51, 160, 0.1);
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0033A0;
  border-bottom: 1px solid #ddd;
}

.team-item {
  padding-left: 30px !important;
  font-size: 0.85rem;
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  body {
    font-size: 16px; /* Prevent zoom on iOS */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .container {
    max-width: none; /* Remove max-width constraint on mobile */
    width: 100%; /* Full width without viewport issues */
    min-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .header {
    padding: 20px 15px;
    text-align: center;
    position: relative;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .header p {
    font-size: 1rem;
  }

  .header::after {
    width: 100px;
    height: 100px;
    top: 8px;
    right: 8px;
  }

  .main-content {
    flex-direction: column;
  }

  /* Show mobile dropdown, hide desktop sidebar */
  .mobile-nav-dropdown {
    display: block;
  }

  .desktop-sidebar {
    display: none;
  }

  /* Mobile sidebar container */
  .sidebar {
    width: 100%;
    background: white;
    border-right: none;
    border-bottom: 3px solid #0033A0;
    box-shadow: 0 2px 8px rgba(0, 51, 160, 0.1);
    padding: 15px;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
  }

  /* Content area improvements */
  .content-area {
    padding: 0;
    margin: 0;
    width: 100%;
    background: #f8f9fa;
    box-sizing: border-box;
  }

  .tab-content {
    padding: 0; /* Remove padding for full width */
    margin: 0;
  }

  /* Game cards optimized for mobile */
  .games-grid {
    grid-template-columns: 1fr;
    gap: 0; /* Remove gaps for full width */
    padding: 15px; /* Add padding inside grid instead */
    margin: 0;
  }

  .game-card {
    padding: 15px;
    margin: 0 0 15px 0; /* Only bottom margin */
    border-radius: 0; /* Remove border radius for edge-to-edge */
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }

  .game-status {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .game-date {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .game-time {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .game-teams {
    font-size: 0.95rem;
    line-height: 1.3;
    margin: 10px 0;
  }

  .game-location {
    font-size: 0.8rem;
    margin-top: 8px;
  }

  /* No games message */
  .no-games {
    padding: 40px 20px;
    font-size: 1rem;
  }


  /* Touch-friendly interactions */
  .tab, .game-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 51, 160, 0.2);
    touch-action: manipulation; /* Prevent double-tap zoom */
  }

  /* Smooth scrolling for sidebar */
  .sidebar-scroll::-webkit-scrollbar {
    height: 4px;
  }

  .sidebar-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }

  .sidebar-scroll::-webkit-scrollbar-thumb {
    background: #0033A0;
    border-radius: 2px;
  }

  .sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #002868;
  }

  /* Prevent horizontal overflow on small screens */
  .game-teams {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Better contrast for mobile */
  .game-card {
    box-shadow: 0 2px 8px rgba(0, 51, 160, 0.12);
  }

  .game-card:hover {
    box-shadow: 0 4px 16px rgba(0, 51, 160, 0.2);
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .header h1 {
    font-size: 1.6rem;
  }

  .header::after {
    width: 85px;
    height: 85px;
    top: 5px;
    right: 5px;
  }

  .game-card {
    padding: 12px;
  }

  .game-time {
    font-size: 1rem;
  }

  .level-header {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .tab {
    min-width: 85px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .sub-tab {
    min-width: 75px;
    padding: 6px 10px !important;
    font-size: 0.7rem;
  }
}

/* Desktop and tablet adjustments for sidebar-scroll wrapper */
@media (min-width: 769px) {
  .sidebar-scroll {
    display: block;
    overflow: visible;
    padding: 0;
    gap: 0;
  }

  .level-section {
    margin-bottom: 10px;
  }
}

/* Tablet breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
  .header h1 {
    font-size: 2.2rem;
  }

  .sidebar {
    width: 250px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
  }

  .tab-content {
    padding: 25px;
  }
}

/* Large desktop breakpoint */
@media (min-width: 1400px) {
  .container {
    max-width: 1600px;
  }

  .sidebar {
    width: 320px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
  }
}

/* Stats Table Styles */
.stats-container {
  padding: 20px;
}

.stats-container h3 {
  color: #0033A0;
  margin: 30px 0 15px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.stats-container h3:first-child {
  margin-top: 0;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-table th {
  background: linear-gradient(135deg, #0033A0 0%, #002868 100%);
  color: white;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}

.stats-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.stats-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.stats-table tr:hover {
  background-color: #e3f2fd;
}

.stats-table .player-name {
  font-weight: 600;
  color: #0033A0;
}

.stats-table .primary-stat {
  font-weight: 700;
  color: #0033A0;
  background-color: rgba(0, 51, 160, 0.1);
}

.team-breakdown {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  opacity: 0.8;
}

.team-breakdown li {
  margin: 2px 0;
  color: #666;
  font-weight: 400;
}

.stats-table td:not(:last-child),
.stats-table th:not(:last-child) {
  border-right: 1px solid #ddd;
}

.details-link {
  color: #0033A0;
  text-decoration: underline;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.details-link:hover {
  color: #002868;
  text-decoration: underline;
}

/* Schedule Table Styles */
.schedule-container {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 20px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-table th {
  background: linear-gradient(135deg, #0033A0 0%, #002868 100%);
  color: white;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid #CE1126;
}

.schedule-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  vertical-align: top;
}

.schedule-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.schedule-table tr:hover {
  background-color: #e3f2fd;
  transition: background-color 0.2s ease;
}

.schedule-table .game-date {
  font-weight: 600;
  color: #0033A0;
  white-space: nowrap;
}

.schedule-table .game-time {
  font-weight: 600;
  color: #CE1126;
  white-space: nowrap;
}

.schedule-table .game-matchup {
  font-weight: 500;
}

.schedule-table .game-location {
  color: #666;
  font-style: italic;
}

.schedule-table .game-score {
  font-weight: 700;
  color: #0033A0;
  text-align: center;
  font-size: 1.1em;
}

/* Results table win/loss styling */
.game-win {
  background-color: rgba(34, 197, 94, 0.1);
  border-left: 4px solid #22c55e;
}

.game-loss {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 4px solid #ef4444;
}

.game-tie {
  background-color: rgba(251, 191, 36, 0.1);
  border-left: 4px solid #fbbf24;
}

.result-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.winning-score {
  font-weight: 900;
  color: #22c55e;
}

.losing-score {
  font-weight: 400;
  color: #000000;
}

.tie-score {
  font-weight: 700;
  color: #000000;
}

.default-score {
  font-weight: 400;
  color: #000000;
}

/* Live games styling */
.live-section {
  border: 2px solid #ef4444;
  border-radius: 8px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
}

.live-section h3 {
  color: #dc2626;
  animation: pulse-live 2s ease-in-out infinite alternate;
}

@keyframes pulse-live {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

.game-live {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
}

.game-live:hover {
  background-color: #fee2e2;
}

.live-status {
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
}

.score-separator {
  margin: 0 4px;
  color: #6b7280;
}

.home-away-indicator {
  font-size: 0.8em;
  color: #6b7280;
  font-weight: 500;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .stats-table {
    font-size: 0.8rem;
  }

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

  .schedule-container {
    padding: 10px;
    margin: 0;
    border-radius: 0;
  }

  .schedule-table {
    font-size: 0.75rem;
    table-layout: fixed;
    width: 100%;
  }

  .schedule-table th {
    padding: 8px 4px;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .schedule-table td {
    padding: 8px 4px;
    line-height: 1.3;
    vertical-align: middle;
  }

  /* Mobile column widths - different for upcoming vs results tables */

  /* Upcoming table (4 columns with location): Date | Time | Opponent | Location */
  .upcoming-table .schedule-table th:nth-child(1),
  .upcoming-table .schedule-table td:nth-child(1) {
    width: 24%; /* Date column */
  }

  .upcoming-table .schedule-table th:nth-child(2),
  .upcoming-table .schedule-table td:nth-child(2) {
    width: 20%; /* Time column */
  }

  .upcoming-table .schedule-table th:nth-child(3),
  .upcoming-table .schedule-table td:nth-child(3) {
    width: 32%; /* Opponent column */
  }

  .upcoming-table .schedule-table th:nth-child(4),
  .upcoming-table .schedule-table td:nth-child(4) {
    width: 24%; /* Location column */
  }

  /* Results table (5 columns with details): Date | Time | Opponent | Score | Details */
  .results-table .schedule-table th:nth-child(1),
  .results-table .schedule-table td:nth-child(1) {
    width: 18%; /* Date column */
  }

  .results-table .schedule-table th:nth-child(2),
  .results-table .schedule-table td:nth-child(2) {
    width: 12%; /* Time column */
  }

  .results-table .schedule-table th:nth-child(3),
  .results-table .schedule-table td:nth-child(3) {
    width: 25%; /* Opponent column */
  }

  .results-table .schedule-table th:nth-child(4),
  .results-table .schedule-table td:nth-child(4) {
    width: 20%; /* Score column */
  }

  .results-table .schedule-table th:nth-child(5),
  .results-table .schedule-table td:nth-child(5) {
    width: 25%; /* Details column */
  }

  .schedule-table .game-date {
    font-size: 0.7rem;
    font-weight: 600;
  }

  .schedule-table .game-time {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .schedule-table .game-opponent {
    font-size: 0.65rem;
    line-height: 1.2;
    word-wrap: break-word;
  }

  .home-away-indicator {
    font-size: 0.6em;
    margin-left: 2px;
  }

  .schedule-table .game-score {
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: center;
  }

  .schedule-table .game-location {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .result-icon {
    font-size: 0.9em;
    margin-right: 2px;
  }

  .details-link {
    color: #0033A0;
    text-decoration: underline;
    font-size: 0.75rem;
    font-weight: 600;
    background: none;
    padding: 0;
    border-radius: 0;
    transition: color 0.2s ease;
  }

  .details-link:hover {
    color: #002868;
    text-decoration: underline;
  }
}

@media (max-width: 480px) {
  .schedule-table {
    font-size: 0.7rem;
  }

  .schedule-table th {
    padding: 6px 3px;
    font-size: 0.65rem;
  }

  .schedule-table td {
    padding: 6px 3px;
  }

  .schedule-table .game-date {
    font-size: 0.65rem;
  }

  .schedule-table .game-time {
    font-size: 0.65rem;
  }

  .schedule-table .game-opponent {
    font-size: 0.6rem;
  }

  .schedule-table .game-score {
    font-size: 0.7rem;
  }

  .schedule-table .game-location {
    font-size: 0.6rem;
  }

  .result-icon {
    font-size: 0.8em;
    margin-right: 1px;
  }

  .details-link {
    font-size: 0.65rem;
    padding: 0;
  }

  /* Mobile Team Stats - Remove Card, Go Full Native */
  .team-stats-container {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
  }

  .team-stats-container h2 {
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    padding: 15px 12px;
    text-align: center;
    background: none;
    color: #0033A0;
  }

  .team-stats-container h3 {
    font-size: 1.2rem;
    margin: 20px 0 8px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 4px solid #0033A0;
  }

  .stats-section {
    margin-bottom: 0;
    background: white;
  }

  .stats-table {
    width: 100% !important;
    margin: 0 !important;
    font-size: 0.9rem;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .stats-table th {
    padding: 12px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0033A0 0%, #002868 100%);
    color: white;
    text-align: left;
    border-right: none;
  }

  .stats-table td {
    padding: 10px 8px;
    font-size: 0.85rem;
    border-bottom: 1px solid #eee;
    border-right: none;
  }

  .stats-table .player-name {
    font-weight: 600;
    color: #0033A0;
  }

  .stats-table .primary-stat {
    font-weight: 700;
    color: #0033A0;
    background-color: rgba(0, 51, 160, 0.1);
  }

  .stats-loading {
    margin: 0;
    padding: 20px 12px;
    background: white;
  }
}

/* Future Game Days Styles */
.future-games-container {
  max-width: 100%;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.date-selector-container {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.date-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 1.1em;
}

.date-picker {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background: white;
  color: #333;
  transition: border-color 0.2s ease;
}

.date-picker:focus {
  outline: none;
  border-color: #0033A0;
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.25);
}

#selected-date-games {
  display: grid;
  gap: 15px;
}

#selected-date-games .game-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  transition: background-color 0.2s ease;
  position: relative;
}

#selected-date-games .game-card:hover {
  background: #e9ecef;
}

.game-team-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0033A0 0%, #1e5fb8 100%);
  color: white;
  padding: 4px 10px;
  font-size: 0.8em;
  border-radius: 12px;
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 51, 160, 0.3);
}

@media (max-width: 768px) {
  .future-games-container {
    padding: 15px;
    margin: 0;
    border-radius: 0;
  }

  .date-selector-container {
    padding: 12px;
  }

  .date-picker {
    font-size: 16px;
    padding: 12px 15px;
  }

  #selected-date-games .game-card {
    padding: 12px;
    margin-bottom: 10px;
  }

  .game-team-badge {
    font-size: 0.75em;
    padding: 3px 8px;
  }
}

/* Main Page Sections Styling */
.main-page-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.main-page-sections .stats-section {
  margin-bottom: 0;
}

.main-page-sections .rank {
  font-size: 1.2rem;
  font-weight: 700;
  color: #CE1126;
  min-width: 30px;
  text-align: center;
}

@media (max-width: 768px) {
  .main-page-sections {
    padding: 0;
    gap: 15px;
  }

  .main-page-sections .stats-section {
    margin: 0;
    border-radius: 0;
  }

  .main-page-sections .stats-table {
    font-size: 0.85rem;
  }

  .main-page-sections .stats-table th,
  .main-page-sections .stats-table td {
    padding: 8px 6px;
  }
}

/* Team Stats Page Specific Styles */
.team-stats-container {
  padding: 20px;
  max-width: 100%;
}

.team-stats-container h2 {
  color: #0033A0;
  margin-bottom: 30px;
  text-align: center;
}

.stats-loading {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.placeholder-stats {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.back-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  margin-left: 20px;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}
