/*
Theme Name: Skyway Strikers Theme
*/

/* Player Links - blue color with obvious hover effects */
.player-link {
    color: #2563eb !important; /* Specific blue color for links */
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: inherit;
}

.player-link:hover {
    color: #1e40af !important; /* Darker blue on hover */
    text-decoration: none !important;
    background-color: rgba(37, 99, 235, 0.1); /* Light blue background on hover */
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 3px;
}

.player-link:visited {
    color: #2563eb !important;
}

.player-link:active {
    color: #1e3a8a !important; /* Even darker blue when clicked */
}

/* Noto Serif Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --border: #e0e0e0;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #135b86;
  --accent-dark: #0e4566;
  --blue-light: #1a7ba8;
  --blue-dark: #0a3d57;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 3px 6px 0 rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

body.menu-open {
  overflow: hidden;
}

/* Header */
.site-header {
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
}

.logo-wrapper:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.logo-wrapper:active {
  transform: translateY(0);
  opacity: 0.9;
}

.logo-wrapper:hover .site-logo {
  filter: brightness(1.1);
}

.logo-wrapper:hover .logo-text img {
  filter: brightness(1.05);
}

.site-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  margin-top: 15px;
  pointer-events: none;
}

.logo-text img {
  max-width: 250px;
  transition: all 0.3s ease;
}

.logo-title {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--accent);
  line-height: 1.1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.logo-subtitle {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

/* Hamburger Menu Button */
.hamburger-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--accent);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu-overlay[aria-hidden="false"] {
  transform: translateX(0);
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all 0.3s ease;
  padding: 0;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.close-icon-line {
  position: absolute;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.close-icon-line:nth-child(1) {
  transform: rotate(45deg);
}

.close-icon-line:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-menu-content {
  padding: 80px 48px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-menu-logo-link {
  display: block;
  text-align: center;
  transition: opacity 0.3s ease;
  align-self: center;
  margin-bottom: 25px;
}

.mobile-menu-logo-link:hover {
  opacity: 0.8;
}

.mobile-menu-logo-link:active {
  opacity: 0.9;
}

.mobile-menu-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.mobile-nav {
  width: 100%;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-link {
  display: block;
  color: white;
  font-size: 24px;
  font-weight: 400;
  padding: 20px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-overlay[aria-hidden="false"] .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu-overlay[aria-hidden="false"] .mobile-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu-overlay[aria-hidden="false"] .mobile-nav-link:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu-overlay[aria-hidden="false"] .mobile-nav-link:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu-overlay[aria-hidden="false"] .mobile-nav-link:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-menu-overlay[aria-hidden="false"] .mobile-nav-link:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-menu-overlay[aria-hidden="false"] .mobile-nav-link:nth-child(6) {
  transition-delay: 0.35s;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: white;
  padding-left: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link-active {
  color: white;
  font-weight: 600;
  border-left: 4px solid white;
  padding-left: 16px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.04);
}

.nav-link-active {
  color: var(--accent) !important;
  font-weight: 500;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
}

.page-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--bg);
  box-sizing: border-box;
  padding-top: 0px;
}

/* Top Players Section (Masters.com style) */
.top-players-section {
  background: #f4f4f4;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.top-players-container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.top-players-leaderboard {
  padding: 24px 48px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #f4f4f4;
}

@media (max-width: 1499px) {
  .top-players-leaderboard {
    padding: 16px 20px;
  }
}

.top-players-list-wrapper {
  display: flex;
  align-items: stretch;
  gap: 20px;
  position: relative;
}

@media (max-width: 1499px) {
  .top-players-list-wrapper {
    gap: 12px;
  }
}

.top-players-control-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  padding: 24px 20px;
  border-radius: 12px;
  flex-shrink: 0;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  gap: 12px;
}

@media (max-width: 1499px) {
  .top-players-control-box {
    min-width: 140px;
    padding: 16px 12px;
    gap: 8px;
  }
}

.top-players-list-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.top-players-fade-left,
.top-players-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 3;
}

.top-players-fade-left {
  left: 0;
  background: linear-gradient(to right, #f4f4f4 0%, rgba(244, 244, 244, 0.9) 20%, rgba(244, 244, 244, 0.5) 50%, transparent 100%);
}

.top-players-fade-right {
  right: 0;
  background: linear-gradient(to left, #f4f4f4 0%, rgba(244, 244, 244, 0.9) 20%, rgba(244, 244, 244, 0.5) 50%, transparent 100%);
}

.top-players-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  align-items: stretch;
  padding: 0 20px 0 20px;
  padding-right: 60px;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar but keep scrolling */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  margin: 0;
  width: 100%;
  min-width: 0;
  /* Allow cards to extend slightly on hover for shadow effects */
  padding-top: 4px;
  padding-bottom: 4px;
  /* Ensure we can scroll through all cards */
  justify-content: flex-start;
}

@media (max-width: 1499px) {
  .top-players-list {
    gap: 12px;
    padding: 0 12px 0 12px;
    padding-right: 50px;
  }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.top-players-list::-webkit-scrollbar {
  display: none;
}

.top-players-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  opacity: 0.8;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s, box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: rgba(19, 91, 134, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: 0 1px 4px rgba(19, 91, 134, 0.15);
  transform: scale(1) translateZ(0);
  visibility: visible;
  will-change: opacity, transform;
}

@media (max-width: 1499px) {
  .top-players-scroll-indicator {
    width: 36px;
    height: 36px;
  }
  
  .top-players-scroll-indicator svg {
    width: 16px;
    height: 16px;
  }
}

.top-players-scroll-indicator:hover {
  opacity: 1;
  background: rgba(19, 91, 134, 1);
  transform: scale(1.1) translateZ(0);
  box-shadow: 0 2px 6px rgba(19, 91, 134, 0.25);
}

.top-players-scroll-indicator:active {
  transform: scale(0.95) translateZ(0);
  box-shadow: 0 1px 3px rgba(19, 91, 134, 0.2);
}

.top-players-scroll-indicator.scroll-indicator-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.75) translateZ(0);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.6s;
  visibility: hidden;
}

.top-players-scroll-left {
  left: 20px;
  z-index: 4;
}

.top-players-scroll-right {
  right: 8px;
  z-index: 4;
}

@media (max-width: 1499px) {
  .top-players-scroll-left {
    left: 12px;
  }
  
  .top-players-scroll-right {
    right: 4px;
  }
}

.top-players-list-wrapper:hover .top-players-scroll-indicator {
  opacity: 0.9;
}

.btn-top-players-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #135b86;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  width: 100%;
  box-shadow: 0 1px 3px rgba(19, 91, 134, 0.15);
}

@media (max-width: 1499px) {
  .btn-top-players-view-all {
    padding: 6px 12px;
    font-size: 11px;
  }
}

.btn-top-players-view-all:hover {
  background: #0f4a6f;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(19, 91, 134, 0.25);
}

.btn-top-players-view-all:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(19, 91, 134, 0.2);
}

.top-players-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  letter-spacing: -0.3px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 1500px) {
  .top-players-title {
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 24px;
    color: var(--accent);
  }
}

.top-players-week {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.top-players-badge {
  margin: 0;
}

@media (max-width: 1499px) {
  .top-players-control-box .current-week-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .top-players-control-box .current-week-badge .week-label {
    font-size: 8px;
  }
  
  .top-players-control-box .current-week-badge .week-number {
    font-size: 11px;
  }
}

.top-player-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc((100% - 40px - 60px) / 2);
  min-width: 250px;
  max-width: 400px;
  padding: 18px 22px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* On screens below 1500px, use compact version */
/* @media (max-width: 1500px) {
  .top-player-item {
    width: calc((100% - 24px - 36px) / 3); 
    min-width: 220px;
    max-width: 260px;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 8px;
  }
} */

@media (max-width:1099px) {
  .top-player-item {
    width: calc((100% - 24px - 12px) / 2.5); /* 2 cards, 12px padding each side, 1 gap of 12px */
    min-width: 350px;
    max-width: none;
  }
}
/* On smaller screens, show 2 cards */
@media (min-width:1100px) and(max-width: 1500px) {
  .top-player-item {
    width: calc((100% - 24px - 12px) / 2.5); /* 2 cards, 12px padding each side, 1 gap of 12px */
    min-width: 200px;
    max-width: none;
  }
}

.top-player-item:hover {
  background: #ffffff;
  border-color: rgba(19, 91, 134, 0.3);
  box-shadow: 0 3px 8px rgba(19, 91, 134, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.top-player-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(19, 91, 134, 0.08);
}

.top-player-podium {
  background: #ffffff;
  border: 2px solid rgba(19, 91, 134, 0.25);
  box-shadow: 0 2px 6px rgba(19, 91, 134, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.top-player-podium:hover {
  background: #ffffff;
  border-color: rgba(19, 91, 134, 0.4);
  box-shadow: 0 4px 12px rgba(19, 91, 134, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.top-player-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.top-player-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1499px) {
  .top-player-medal {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

.top-player-item:hover .top-player-medal {
  transform: scale(1.1);
}

.top-player-medal.medal-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 2px 5px rgba(251, 191, 36, 0.25);
}

.top-player-medal.medal-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 2px 5px rgba(148, 163, 184, 0.25);
}

.top-player-medal.medal-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  box-shadow: 0 2px 5px rgba(205, 127, 50, 0.25);
}

.top-player-rank-num {
  font-size: 22px;
  font-weight: 600;
  color: #6b7280;
  transition: color 0.2s ease;
}

.top-player-item:hover .top-player-rank-num {
  color: #135b86;
}

.top-player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top-player-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-player-name-text {
  color: #1f2937;
  transition: color 0.2s ease;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 1499px) {
  .top-player-name-text {
    font-size: 14px;
  }
}

.top-player-item:hover .top-player-name-text {
  color: #135b86;
}

.top-player-division {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

@media (max-width: 1499px) {
  .top-player-division {
    font-size: 10px;
  }
}

.top-player-division-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.top-player-stats-compact {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 2px;
}

.top-player-stats-compact .stat-item {
  font-variant-numeric: tabular-nums;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  min-height: 36px;
}

.top-player-stats-compact .stat-item .stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  display: block;
}

@media (max-width: 1499px) {
  .top-player-stats-compact .stat-item .stat-value {
    font-size: 12px;
  }
}

.top-player-stats-compact .stat-item .stat-label {
  font-size: 9px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1;
  display: block;
}

@media (max-width: 1499px) {
  .top-player-stats-compact .stat-item .stat-label {
    font-size: 8px;
  }
}

.top-player-stats-compact .stat-sep {
  color: #d1d5db;
  align-self: center;
  margin: 0 6px;
  line-height: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.top-player-score-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 60px;
  gap: 4px;
}

.top-player-score {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1;
  transition: transform 0.2s ease;
}

@media (max-width: 1499px) {
  .top-player-score {
    font-size: 20px;
  }
}

.top-player-item:hover .top-player-score {
  transform: scale(1.05);
}

.top-player-score.score-under-par {
  color: #dc2626; /* Red for under par */
}

.top-player-score.score-over-par {
  color: #16a34a; /* Green for over par */
}

.top-player-score.score-even {
  color: #4b5563; /* Dark gray for even par */
}

.top-player-score-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

@media (max-width: 1499px) {
  .top-player-score-label {
    font-size: 9px;
  }
}

.top-player-link-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #9ca3af;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.top-player-item:hover .top-player-link-indicator {
  opacity: 1;
  transform: translateX(0);
  color: #135b86;
}

.top-players-empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

.top-players-empty p {
  margin: 0;
  font-size: 14px;
}

/* Content Ribbon (Flows from Hero) */
.content-ribbon-wrapper {
  position: relative;
  margin-top: -40px;
  z-index: 10;
  pointer-events: none;
}

.content-ribbon {
  /* background: linear-gradient(180deg, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 0.95) 30%, var(--bg) 100%); */
  padding: 60px 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ribbon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.ribbon-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

.ribbon-arrow {
  font-size: 24px;
  color: var(--accent);
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Hero Section - Split Layout (Masters.com style) */
.hero-section-split {
  position: relative;
  min-height: 500px;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--bg);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://www.skywaygolfcourse.com/wp-content/uploads/2021/02/unspecified8.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  margin: 0 auto;
  padding: 60px 64px;
  align-items: center;
}

.hero-content-left {
  padding-right: 48px;
  color: white;
}

.hero-content {
  max-width: 100%;
}

.hero-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 400;
  color: white;
  margin: 0 0 20px;
  letter-spacing: -0.3px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-content-right {
  padding-left: 48px;
}

.hero-highlights {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.hero-division-leaders {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-division-leaders .division-leaders-section {
  background: transparent;
  padding: 0;
  box-shadow: none;
  flex: 1;
}

.hero-division-leaders .division-leaders-header {
  margin-bottom: 16px;
}

.hero-division-leaders .content-heading {
  font-size: 20px;
  margin: 0 0 12px;
}

.hero-division-leaders .division-leaders-grid {
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.hero-division-leaders .division-leader-card {
  padding: 14px;
  overflow: hidden;
  min-width: 0;
}

.hero-division-leaders .leader-card-header {
  margin-bottom: 8px;
  gap: 8px;
}

.hero-division-leaders .leader-division-name {
  font-size: 14px;
}

.hero-division-leaders .leader-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.hero-division-leaders .leader-stats-horizontal {
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.hero-division-leaders .leader-stat-horizontal {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}

/* Hide the Scores stat in hero section to prevent overflow */
.hero-division-leaders .leader-stats-horizontal .leader-stat-horizontal:last-child {
  display: none;
}

.hero-division-leaders .leader-stat-horizontal .stat-value-horizontal {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.hero-division-leaders .leader-stat-horizontal.leader-stat-net .stat-value-horizontal.stat-value-net {
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.hero-division-leaders .leader-stat-horizontal .stat-label-horizontal {
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.hero-division-leaders .stat-separator-horizontal {
  font-size: 14px;
  margin: 0 2px;
}

/* .hero-division-leaders .content-heading {
  color: var(--text);
  font-size: 24px;
  margin: 0 0 16px;
} */

.league-highlights-home-section {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  height: 100%;
}

.league-highlights-wrapper {
  background: var(--card);
  border-radius: 6px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: visible;
  height: 100%;
}

.highlights-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.2px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.hero-panels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1;
}

/* Homepage league highlights - 2 columns on larger screens */
@media (min-width: 768px) {
  .league-highlights-wrapper .hero-panels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.hero-panels-grid .ssl-panel {
  margin: 0;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-panels-grid .ssl-panel h3 {
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 600;
}

.hero-panels-grid .ssl-panel .panel-value {
  font-size: 26px;
  margin: 8px 0 4px !important;
}

.hero-panels-grid .ssl-panel .panel-player {
  font-size: 12px;
  margin-top: 4px !important;
}

.hero-panels-grid .ssl-panel .panel-player-leader {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-panels-grid .ssl-panel .panel-player-division-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero-panels-grid .ssl-panel .panel-other-players {
  margin-top: 8px;
  padding-top: 8px;
  gap: 4px;
}

.hero-panels-grid .ssl-panel .panel-other-player {
  font-size: 10px;
  gap: 6px;
}

.hero-panels-grid .ssl-panel .panel-other-rank {
  min-width: 14px;
}

.hero-panels-grid .ssl-panel .panel-other-name {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-panels-grid .ssl-panel .panel-other-division-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero-panels-grid .ssl-panel .panel-other-value {
  font-size: 10px;
}

/* Homepage Intro Section */
.homepage-intro-section {
  margin: 25px 0;
}

/* Homepage Main Content - Two Column Layout */
.homepage-main-content {
  margin: 25px 0;
}

.homepage-content-grid-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .homepage-content-grid-main {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

.homepage-content-column-left {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.homepage-content-column-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Intro Card */
.homepage-intro-card {
  background: var(--card);
  border-radius: 6px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.homepage-intro-content {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
}

.homepage-intro-content p {
  margin: 0 0 16px;
}

.homepage-intro-content p:last-child {
  margin-bottom: 0;
}

/* Record Book Card */
.homepage-record-book-card {
  background: var(--card);
  border-radius: 6px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.homepage-section-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 20px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.homepage-record-book-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 28px;
  flex: 1;
}

.homepage-record-book-description p {
  margin: 0 0 12px;
}

.homepage-record-book-description p:last-child {
  margin-bottom: 0;
}

.homepage-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #135b86;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(19, 91, 134, 0.2);
  align-self: flex-start;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.homepage-btn-primary:hover {
  background: #0f4a6f;
  box-shadow: 0 4px 12px rgba(19, 91, 134, 0.35);
  transform: translateY(-2px);
}

.homepage-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(19, 91, 134, 0.25);
}

/* Events Card */
.homepage-events-card {
  background: var(--card);
  border-radius: 6px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.homepage-events-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.homepage-event-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.homepage-event-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.homepage-event-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.homepage-event-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.homepage-event-title-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.homepage-event-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.homepage-event-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.homepage-event-badge.event-badge-featured {
  background: #fef3c7;
  color: #92400e;
}

.homepage-event-badge.event-badge-tournament {
  background: #ede9fe;
  color: #5b21b6;
}

.homepage-event-badge.event-badge-coming-soon {
  background: #f1f5f9;
  color: #475569;
}

.homepage-event-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.homepage-event-detail {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.homepage-event-detail-label {
  font-weight: 600;
  color: var(--text);
  min-width: 70px;
  flex-shrink: 0;
}

.homepage-event-detail-value {
  color: var(--muted);
  line-height: 1.5;
}

.homepage-event-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.homepage-event-description p {
  margin: 0;
}

/* Championship Belt Section (Standalone - removed, now inline only) */
.championship-belt-section {
  margin: 64px 0;
}

.championship-belt-wrapper {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
}

.championship-belt-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  pointer-events: none;
}

.championship-belt-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .championship-belt-content {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 48px;
  }
}

/* Championship Belt Inline (for column layout) */
.championship-belt-wrapper-inline {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #1e3a5f 100%);
  border-radius: 6px;
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.championship-belt-wrapper-inline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
  pointer-events: none;
}

.championship-belt-content-inline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px;
  position: relative;
  z-index: 1;
  flex: 1;
  justify-content: flex-start;
}

.championship-belt-header-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.championship-belt-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.championship-belt-icon {
  font-size: 80px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

.championship-belt-sparkle {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 32px;
  animation: sparkle 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2) rotate(180deg);
  }
}

.championship-belt-text {
  color: white;
  text-align: center;
}

@media (min-width: 1024px) {
  .championship-belt-text {
    text-align: left;
  }
}

.championship-belt-content-inline .championship-belt-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.championship-belt-content-inline .championship-belt-title {
  margin: 0;
  text-align: center;
}

.championship-belt-content-inline .championship-belt-icon {
  font-size: 48px;
}

.championship-belt-content-inline .championship-belt-sparkle {
  font-size: 20px;
  top: -6px;
  right: -6px;
}

.championship-belt-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffd700;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  .championship-belt-title {
    font-size: 42px;
  }
}

.championship-belt-content-inline .championship-belt-title {
  font-size: 24px;
  margin: 0 0 16px;
}

@media (min-width: 1024px) {
  .championship-belt-content-inline .championship-belt-title {
    font-size: 28px;
  }
}

.championship-belt-description {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .championship-belt-description {
    margin-left: 0;
    margin-right: 0;
    font-size: 19px;
  }
}

.championship-belt-content-inline .championship-belt-description {
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 100%;
}

.championship-belt-description strong {
  color: #ffd700;
  font-weight: 600;
}

.championship-belt-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .championship-belt-features {
    margin-left: 0;
    margin-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
}

.championship-belt-content-inline .championship-belt-features {
  gap: 10px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.championship-belt-content-inline .championship-feature {
  padding: 10px 16px;
  display: flex;
  width: 100%;
  justify-content: center;
}

.championship-belt-content-inline .feature-icon {
  font-size: 20px;
}

.championship-belt-content-inline .feature-text {
  font-size: 13px;
}

.championship-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.championship-feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.feature-text {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.3px;
}

.championship-belt-cta {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-style: italic;
}

.championship-belt-cta strong {
  color: #ffd700;
  font-weight: 700;
  font-style: normal;
}

.championship-belt-content-inline .championship-belt-cta {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  margin-top: auto;
}

.championship-belt-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.championship-belt-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  min-width: 200px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.championship-belt-placeholder:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
}

.belt-placeholder-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.belt-placeholder-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Content Area Headings (Unified) */
.content-heading {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 24px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

/* Section Titles */
.section-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 32px;
  letter-spacing: -0.2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Homepage Content Grid (Side by Side Layout) */
.homepage-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 25px 0;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (min-width: 1500px) {
  .homepage-content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: stretch;
  }
}

/* Mobile Menu - Show hamburger, hide desktop menu below 1024px */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  
  .hamburger-menu-toggle {
    display: flex;
  }
  
  .header-container {
    padding: 0 24px;
  }
  
  .logo-title {
    font-size: 22px;
  }
  
  .site-logo {
    height: 48px;
  }
}

/* Division Leaders Section (Homepage) */
.division-leaders-home-section {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.division-leaders-section {
  background: var(--card);
  border-radius: 6px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.division-leaders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}


.current-week-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #12476d 0%, #356f91 100%);
  color: #FFF;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #5b88a7;
  min-width: 75px;
  height: auto;
  margin-top: 0;
  position: relative;
}

.current-week-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.week-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #CCC;
  margin-bottom: 3px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.week-number {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: #FFF;
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
}

.division-leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}

@media (min-width: 768px) {
  .division-leaders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .division-leaders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Flip Card Container */
.division-leader-card-flip {
  perspective: 1000px;
  height: 100%;
  min-height: 150px;
  width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.division-leader-card-flip.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
}

.flip-card-back {
  transform: rotateY(180deg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.division-leader-card {
  background: var(--bg);
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.division-leader-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.leader-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.division-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.leader-division-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  flex: 1;
  letter-spacing: -0.1px;
}

.leader-tier {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: white;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tier color coding - subtle/faint colors */
.leader-tier.tier-1,
.division-tier.tier-1,
.division-tier-badge.tier-1 {
  background: #4a4a4a;
  color: #ffffff;
}

.leader-tier.tier-2,
.division-tier.tier-2,
.division-tier-badge.tier-2 {
  background: #f4d03f;
  color: #5a4a00;
}

.leader-tier.tier-3,
.division-tier.tier-3,
.division-tier-badge.tier-3 {
  background: #f5f5f5;
  color: #666666;
  border: 1px solid #d0d0d0;
}

.leader-tier.tier-4,
.division-tier.tier-4,
.division-tier-badge.tier-4 {
  background: #7c9bc7;
  color: #ffffff;
}

.leader-card-content {
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.leader-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.leader-handicap-small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.leader-stats-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.leader-stat-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.leader-stat-horizontal .stat-value-horizontal {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.leader-stat-horizontal.leader-stat-net .stat-value-horizontal.stat-value-net {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.leader-stat-horizontal .stat-label-horizontal {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-separator-horizontal {
  color: var(--border);
  font-size: 14px;
  font-weight: 300;
  margin: 0 2px;
}

/* Flip Card Back Styles */
.flip-card-back-content {
  padding: 12px 16px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.flip-card-back-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  justify-content: flex-start;
}

.flip-card-back-division-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.flip-card-back-division-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.flip-card-back-player {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.flip-card-back-player a {
  color: white !important;
  text-decoration: none;
}

.flip-card-back-player a:hover {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Ensure all links in flip card back are white */
.flip-card-back a,
.flip-card-back-content a {
  color: white !important;
  text-decoration: none;
}

.flip-card-back a:hover,
.flip-card-back-content a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: underline;
}

.flip-card-back-handicap-small {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 4px;
}

.flip-card-back-stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.flip-card-back-stats .stat-separator-horizontal {
  font-size: 12px;
  margin: 0 2px;
}

.flip-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.flip-stat-label {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  line-height: 1;
}

.flip-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.division-leaders-empty {
  text-align: center;
  padding: 48px 40px;
  color: var(--muted);
}

.division-leaders-empty p {
  margin: 0;
  font-size: 16px;
}

.standings-button-wrapper {
  margin-top: 32px;
  text-align: center;
  flex-shrink: 0;
  display: block;
  width: 100%;
}

.btn-see-standings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #135b86;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(19, 91, 134, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 180px;
  border: none;
  cursor: pointer;
}

.btn-see-standings:hover {
  background: #0f4a6f;
  box-shadow: 0 4px 12px rgba(19, 91, 134, 0.35);
  transform: translateY(-2px);
}

.btn-see-standings:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(19, 91, 134, 0.25);
}

/* Leaderboard Section */
.leaderboard-section {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 100%;
}

/* Homepage Leaderboard */
.homepage-leaderboard-wrapper {
  background: var(--card);
  border-radius: 6px;
  padding: 48px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}


/* Table wrapper for scrolling */
.homepage-leaderboard-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  /* Ensure scrollbar is visible */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
  flex-shrink: 0;
}

/* Webkit scrollbar styling */
.homepage-leaderboard-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.homepage-leaderboard-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.homepage-leaderboard-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.homepage-leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.homepage-leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  min-width: 750px;
  flex: 1;
  table-layout: auto;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Sort indicator styling */
.leaderboard-sort-indicator {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
  margin-left: 8px;
}

/* Highlight sorted column */
.leaderboard-sorted-column {
  color: white !important;
  font-weight: 600 !important;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
}

.leaderboard-sorted-column .sort-indicator {
  display: inline-block;
  margin-left: 4px;
  color: white;
  font-weight: 700;
}

.leaderboard-sorted-cell {
  color: var(--accent);
  font-weight: 600;
}

/* Make table scrollable on mobile - wrap it in a scrollable container using CSS */
.homepage-leaderboard-wrapper > .homepage-leaderboard-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.homepage-leaderboard-table thead th {
  padding: 16px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
  position: relative;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.homepage-leaderboard-table thead th:first-child {
  padding-left: 20px;
}

.homepage-leaderboard-table thead th:last-child {
  padding-right: 20px;
}

.homepage-leaderboard-table tbody {
  background: var(--card);
}

.homepage-leaderboard-table tbody td {
  padding: 16px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.homepage-leaderboard-table tbody td:first-child {
  padding-left: 20px;
}

.homepage-leaderboard-table tbody td:last-child {
  padding-right: 20px;
}

.homepage-leaderboard-table tbody tr {
  transition: all 0.2s ease;
}

.homepage-leaderboard-table tbody tr:hover {
  background: rgba(19, 91, 134, 0.03);
}

.homepage-leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

/* Podium row styling */
.homepage-podium-row {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 100%);
  border-left: 3px solid transparent;
}

.homepage-podium-row.leaderboard-row[data-rank="1"] {
  border-left-color: #fbbf24; /* Gold */
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.04) 100%);
}

.homepage-podium-row.leaderboard-row[data-rank="2"] {
  border-left-color: #94a3b8; /* Silver */
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0%, rgba(148, 163, 184, 0.04) 100%);
}

.homepage-podium-row.leaderboard-row[data-rank="3"] {
  border-left-color: #cd7f32; /* Bronze */
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.12) 0%, rgba(205, 127, 50, 0.04) 100%);
}

/* Rank cell styling */
.rank-cell-homepage {
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 50px;
}

/* Player name cell */
.homepage-leaderboard-table tbody td:nth-child(2) {
  font-weight: 500;
}

.leaderboard-player-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-player-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
}

.leaderboard-handicap-small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}

.leaderboard-player-meta-small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

/* Player name cell with formatted content */
.player-name-cell {
  line-height: 1.4;
}

.player-name-cell small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}

.player-name-cell small .leaderboard-division-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.leaderboard-empty-message {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.leaderboard-empty-message p {
  margin: 0;
  font-size: 14px;
}

.leaderboard-player-name-row .player-link {
  display: inline-block;
  vertical-align: middle;
}

.leaderboard-division-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.leaderboard-score-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.2;
}

.leaderboard-week {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

/* Numeric cells - updated for new column order: Rank, Player, Points, Power Points, Avg Gross, Avg Net */
.homepage-leaderboard-table tbody td:nth-child(3),
.homepage-leaderboard-table tbody td:nth-child(4),
.homepage-leaderboard-table tbody td:nth-child(5),
.homepage-leaderboard-table tbody td:nth-child(6) {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.homepage-leaderboard-empty {
  text-align: center;
  padding: 48px 40px;
  color: var(--muted);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-leaderboard-empty p {
  margin: 0;
  font-size: 16px;
}

.homepage-leaderboard-footer {
  margin-top: 24px;
  text-align: center;
  padding-top: 20px;
  flex-shrink: 0;
}

.btn-see-full-leaderboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #135b86;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(19, 91, 134, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.btn-see-full-leaderboard:hover {
  background: #0f4a6f;
  box-shadow: 0 4px 12px rgba(19, 91, 134, 0.35);
  transform: translateY(-2px);
}

.btn-see-full-leaderboard:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(19, 91, 134, 0.25);
}

/* Comprehensive Leaderboard Page */
.leaderboard-page-hero {
  padding: 48px 20px 32px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.leaderboard-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.leaderboard-page-hero .season-filter-wrapper {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leaderboard-page-hero .season-filter-label {
  color: var(--muted, #6b7280);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.leaderboard-page-hero .season-filter-select {
  background: var(--card, #ffffff);
  color: var(--text, #1f2937);
  border: 1px solid var(--border, #e5e7eb);
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  max-width: 160px;
  min-width: 120px;
  border-radius: 6px;
  height: 28px;
  line-height: 1.2;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
  transition: all 0.2s ease;
}

.leaderboard-page-hero .season-filter-select:hover {
  border-color: var(--accent, #2563eb);
  background-color: var(--card, #ffffff);
}

.leaderboard-page-hero .season-filter-select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 1px;
  border-color: var(--accent, #2563eb);
}

@media (min-width: 1024px) {
  .leaderboard-page-hero {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1400px) {
  .leaderboard-page-hero {
    padding-left: 60px;
    padding-right: 60px;
  }
}

.comprehensive-leaderboard {
  width: 100%;
  margin: 0;
  min-width: 0;
  box-sizing: border-box;
}

/* Ensure leaderboard content fits within page layout */
.leaderboard-page-main .comprehensive-leaderboard {
  width: 100%;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.leaderboard-page-main .leaderboard-subnav {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.leaderboard-page-main .leaderboard-tables-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Leaderboard Page Layout */
.leaderboard-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 0;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  align-items: start;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .leaderboard-page-layout {
    grid-template-columns: 1fr 380px;
    gap: 25px;
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .leaderboard-page-layout {
    grid-template-columns: 1fr 420px;
    padding: 0 60px;
  }
}

.leaderboard-page-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  min-width: 0;
}

.leaderboard-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.leaderboard-page-sidebar .sidebar-widget {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Leaderboard Subnavigation - More Visible */
.leaderboard-subnav {
  background: var(--card);
  padding: 12px 20px;
  margin: 0 auto 32px;
  max-width: 800px;
  width: fit-content;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  z-index: 99;
  border: 1px solid var(--border);
}

.leaderboard-subnav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.leaderboard-subnav-link {
  display: inline-block;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 6px;
  position: relative;
}

.leaderboard-subnav-link:hover {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.08);
}

.leaderboard-subnav-link:active,
.leaderboard-subnav-link:focus {
  outline: none;
  color: var(--accent);
}

.leaderboard-subnav-link.active {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.12);
  font-weight: 600;
}

/* Leaderboard Main Sections */
.leaderboard-main-section {
  margin-bottom: 64px;
  scroll-margin-top: 120px;
}

.leaderboard-main-section:last-child {
  margin-bottom: 0;
}

.leaderboard-section-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 32px;
  letter-spacing: -0.3px;
}

/* Season Filter Styling */
.season-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--card);
}

/* Compact season filter for hero sections */
.leaderboard-page-hero .season-filter-wrapper,
.standings-hero .season-filter-wrapper,
.player-report-page .season-filter-wrapper {
  margin-bottom: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.leaderboard-page-hero .season-filter-label,
.standings-hero .season-filter-label,
.player-report-page .season-filter-label {
  color: var(--muted, #6b7280);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.leaderboard-page-hero .season-filter-select,
.standings-hero .season-filter-select,
.player-report-page .season-filter-select {
  background: var(--card, #ffffff);
  color: var(--text, #1f2937);
  border: 1px solid var(--border, #e5e7eb);
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  max-width: 160px;
  min-width: 120px;
  border-radius: 6px;
  height: 28px;
  line-height: 1.2;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.leaderboard-page-hero .season-filter-select:hover,
.standings-hero .season-filter-select:hover,
.player-report-page .season-filter-select:hover {
  border-color: var(--accent, #2563eb);
  background-color: var(--card, #ffffff);
}

.leaderboard-page-hero .season-filter-select:focus,
.standings-hero .season-filter-select:focus,
.player-report-page .season-filter-select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 1px;
  border-color: var(--accent, #2563eb);
  box-shadow: none;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.season-filter-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}

.season-filter-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 300px;
}

.season-filter-select:hover {
  border-color: var(--accent);
}

.season-filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19, 91, 134, 0.1);
}

/* Player report page season filter */
.player-report-page .season-filter-wrapper {
  margin-bottom: 32px;
}

/* Standings page season filter - removed, now in hero */

/* Roster page season filter */
.roster-page-main .season-filter-wrapper {
  margin-bottom: 32px;
}

.leaderboard-table-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 24px;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

/* Move title inside the panel */
.leaderboard-section-page .leaderboard-table-title {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Section anchor offset for sticky nav */
.leaderboard-section-page {
  scroll-margin-top: 120px;
}

/* Standings Subnavigation */
.standings-subnav {
  background: var(--card);
  padding: 12px 20px;
  margin: 0 auto 32px;
  max-width: 800px;
  width: fit-content;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  z-index: 99;
  border: 1px solid var(--border);
}

.standings-subnav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.standings-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 6px;
  position: relative;
}

.standings-subnav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.standings-subnav-link:hover {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.08);
}

.standings-subnav-link:active,
.standings-subnav-link:focus {
  outline: none;
  color: var(--accent);
}

.standings-subnav-link.active {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.12);
  font-weight: 600;
}

.division-standings-card {
  scroll-margin-top: 120px;
}

.leaderboard-tables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 0 0 25px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.leaderboard-section-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.leaderboard-table-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.homepage-leaderboard-table-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.homepage-leaderboard-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

/* When there's only one item, it should span full width even in multi-column grids */
.leaderboard-tables-grid:has(> :only-child) {
  grid-template-columns: 1fr;
}

/* Fallback for browsers without :has() support - single child takes full width */
.leaderboard-tables-grid > :only-child {
  grid-column: 1 / -1;
}

/* Achievements section should always stack vertically */
#achievements-section .leaderboard-tables-grid {
  grid-template-columns: 1fr !important;
}

@media (min-width: 1200px) {
  .leaderboard-tables-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* Achievements section should always stack vertically, even at larger breakpoints */
  #achievements-section .leaderboard-tables-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 1600px) {
  .leaderboard-tables-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* Achievements section should always stack vertically, even at larger breakpoints */
  #achievements-section .leaderboard-tables-grid {
    grid-template-columns: 1fr !important;
  }
}

.leaderboard-section-page {
  display: flex;
  flex-direction: column;
  /* Removed min-height to prevent equal height distribution causing whitespace */
  min-height: auto;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible; /* Allow content to be visible but contained by parent */
}

.leaderboard-section-page > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Ensure table titles don't cause overflow */
.leaderboard-section-page .leaderboard-table-title {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0px 32px;
}

.leaderboard-section-page .content-heading {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}

.leaderboard-table-wrapper {
  background: white;
  border-radius: 12px;
  padding: 32px 0px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  overflow-x: auto;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  /* Removed flex: 1 to prevent excessive whitespace */
  min-height: auto;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-bottom: 25px;
  -webkit-overflow-scrolling: touch;
  transition: all 0.3s ease;
}

.leaderboard-table-wrapper:hover {
  box-shadow: var(--shadow-lg);
}

.leaderboard-table-wrapper > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.leaderboard-table-wrapper .homepage-leaderboard-table-wrapper {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.leaderboard-row-hidden {
  display: none !important;
}

.leaderboard-data-row {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When rows are hidden, completely remove from layout */
.leaderboard-data-row.leaderboard-row-hidden {
  display: none !important;
  height: 0 !important;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}

.leaderboard-data-row.leaderboard-row-hidden td {
  padding: 0 !important;
  border: none !important;
  height: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

.leaderboard-expand-control {
  margin-top: 16px;
  text-align: center;
  padding-top: 16px;
  flex-shrink: 0;
}

.leaderboard-expand-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #135b86;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-expand-btn:hover {
  background: #135b86;
  color: white;
  border-color: #135b86;
  box-shadow: 0 2px 8px rgba(19, 91, 134, 0.25);
  transform: translateY(-1px);
}

.leaderboard-expand-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(19, 91, 134, 0.2);
}

.leaderboard-expand-btn[aria-expanded="true"] .expand-icon {
  transform: rotate(180deg);
}

.expand-icon {
  transition: transform 0.3s ease;
  font-size: 16px;
  display: inline-block;
}

.expandable-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.expandable-table thead th {
  padding: 14px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.expandable-table thead th:first-child {
  padding-left: 16px;
}

.expandable-table thead th:last-child {
  padding-right: 16px;
}

.expandable-table tbody {
  background: var(--card);
}

.expandable-table tbody td {
  padding: 14px 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.expandable-table tbody td:first-child {
  padding-left: 16px;
}

.expandable-table tbody td:last-child {
  padding-right: 16px;
}

.expandable-table tbody tr {
  transition: all 0.2s ease;
}

.expandable-table tbody tr:hover {
  background: rgba(19, 91, 134, 0.03);
}

.expandable-table tbody tr:last-child td {
  border-bottom: none;
}

.expandable-table tbody td:nth-child(4),
.expandable-table tbody td:nth-child(5),
.expandable-table tbody td:nth-child(6),
.expandable-table tbody td:nth-child(7),
.expandable-table tbody td:nth-child(8),
.expandable-table tbody td:nth-child(9) {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.division-standings-comprehensive {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.division-standings-card-page {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid;
}

.division-standings-title-page {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.2px;
}

.leaderboard-empty {
  background: white;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.leaderboard-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Homepage Leaderboard Medals */
.homepage-podium-row {
  background: linear-gradient(90deg, rgba(19, 91, 134, 0.05) 0%, rgba(19, 91, 134, 0.02) 100%) !important;
}

.rank-cell-homepage {
  text-align: center;
  font-weight: 600;
}

.rank-badge-homepage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rank-badge-homepage.rank-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.rank-badge-homepage.rank-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.4);
}

.rank-badge-homepage.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

/* Events Page */
.events-page-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.events-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .events-page-layout {
    grid-template-columns: 1fr 380px;
    gap: 25px;
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .events-page-layout {
    grid-template-columns: 1fr 420px;
    padding: 0 60px;
  }
}

.events-page-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.events-group-section {
  margin-bottom: 25px;
}

.events-group-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.events-group-icon {
  font-size: 32px;
}

.events-grid-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .events-grid-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid-page {
    grid-template-columns: 1fr;
  }
}

.event-card-page {
  background: var(--card);
  border-radius: 6px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card-page:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-card-featured-page {
  border-top-color: #f59e0b;
}

.event-card-tournament-page {
  border-top-color: #7c3aed;
}

.event-card-coming-soon-page {
  border-top-color: #64748b;
}

.event-card-page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.event-icon-page {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.event-title-wrapper-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-title-page {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.event-badge-page {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.event-badge-featured-page {
  background: #fef3c7;
  color: #92400e;
}

.event-badge-tournament-page {
  background: #ede9fe;
  color: #5b21b6;
}

.event-badge-coming-soon-page {
  background: #f1f5f9;
  color: #475569;
}

.event-details-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.event-detail-page {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.event-detail-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.4;
}

.event-detail-text {
  color: var(--text);
  line-height: 1.5;
}

.event-description-page {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: auto;
}

.event-description-page p {
  margin: 0;
}

.events-empty {
  background: var(--card);
  border-radius: 6px;
  padding: 64px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.events-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Events Page Sidebar */
.events-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: var(--card);
  border-radius: 6px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 24px;
  letter-spacing: -0.2px;
}

/* Add padding above League Highlight (second title in sidebar widget) */
.sidebar-widget h3.sidebar-widget-title:nth-of-type(2) {
  padding-top: 25px;
}

/* Add padding above Quick Links section */
.sidebar-widget-links {
  padding-top: 25px;
}

.sidebar-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sidebar-widget .ssl-panel {
  margin: 0;
  width: 100%;
}

.sidebar-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links-list li {
  margin: 0;
}

.sidebar-links-list a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.sidebar-links-list a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateX(4px);
}

/* Standard Sidebar - Simplified Division Leaders */
.sidebar-division-leaders-simple {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-division-leader-item {
  display: block;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sidebar-division-leader-item:hover {
  background: #fdfdfd;
  border-color: rgba(19, 91, 134, 0.2);
  box-shadow: 0 3px 8px rgba(19, 91, 134, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.sidebar-division-leader-item:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(19, 91, 134, 0.08);
}

.sidebar-leader-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sidebar-leader-division-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.sidebar-leader-division-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-leader-player {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-leader-player-name {
  color: #1f2937;
  transition: color 0.2s ease;
}

.sidebar-division-leader-item:hover .sidebar-leader-player-name {
  color: #135b86;
}

.sidebar-leader-hcp {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.sidebar-leader-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar-leader-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sidebar-leader-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sidebar-leader-stat-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.sidebar-leader-stat-sep {
  color: var(--border);
  font-size: 12px;
}

.sidebar-leader-link-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-division-leader-item:hover .sidebar-leader-link-indicator {
  opacity: 1;
  transform: translateX(0);
  color: #135b86;
}

.sidebar-division-leaders-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Standings Page Layout */
.standings-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 0;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  align-items: start;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .standings-page-layout {
    grid-template-columns: 1fr 380px;
    gap: 25px;
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .standings-page-layout {
    grid-template-columns: 1fr 420px;
    padding: 0 60px;
  }
}

.standings-page-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.standings-page-sidebar,
.leaderboard-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.standings-page-sidebar .sidebar-widget,
.leaderboard-page-sidebar .sidebar-widget {
  width: 100%;
  max-width: 100%;
}

/* Roster Page */
.roster-page-hero {
  padding: 48px 0 32px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.roster-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}

.roster-page-hero .season-filter-wrapper {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.roster-page-hero .season-filter-label {
  color: var(--muted, #6b7280);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.roster-page-hero .season-filter-select {
  background: var(--card, #ffffff);
  color: var(--text, #1f2937);
  border: 1px solid var(--border, #e5e7eb);
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  max-width: 160px;
  min-width: 120px;
  border-radius: 6px;
  height: 28px;
  line-height: 1.2;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.roster-page-hero .season-filter-select:hover {
  border-color: var(--accent, #2563eb);
  background-color: var(--card, #ffffff);
}

.roster-page-hero .season-filter-select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 1px;
  border-color: var(--accent, #2563eb);
}

.roster-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 25px 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .roster-page-layout {
    grid-template-columns: 1fr 380px;
    gap: 25px;
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .roster-page-layout {
    grid-template-columns: 1fr 420px;
    padding: 0 60px;
  }
}

.roster-page-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.roster-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.roster-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Roster Subnavigation */
.roster-subnav {
  background: var(--card);
  padding: 12px 20px;
  margin: 0 auto 32px;
  max-width: 800px;
  width: fit-content;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  z-index: 99;
  border: 1px solid var(--border);
}

.roster-subnav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.roster-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 6px;
  position: relative;
}

.roster-subnav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.roster-subnav-link:hover {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.08);
}

.roster-subnav-link:active,
.roster-subnav-link:focus {
  outline: none;
  color: var(--accent);
}

.roster-subnav-link.active {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.12);
  font-weight: 600;
}

.roster-division-section {
  margin-bottom: 48px;
  scroll-margin-top: 120px;
  background: color-mix(in srgb, var(--division-color, #2563eb) 3%, #ffffff);
  border-radius: 12px;
  padding: 32px 24px;
  border: 2px solid color-mix(in srgb, var(--division-color, #2563eb) 15%, transparent);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--division-color, #2563eb) 8%, transparent);
}

.roster-division-title {
  text-align: left;
  color: var(--muted, #6b7280);
  padding: 16px 12px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  margin-bottom: 25px;
}

.roster-division-title .roster-division-dot {
  flex-shrink: 0;
}

.roster-division-title .roster-division-tier {
  margin-left: auto;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #6b7280);
  background: var(--bg, #f4f4f4);
  padding: 2px 8px;
  border-radius: 4px;
}

.roster-division-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.roster-division-tier {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  margin-left: auto;
}

.roster-players-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .roster-players-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .roster-players-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.roster-player-card {
  background: var(--card);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 3px solid var(--division-color, #2563eb);
  /* border-left: 2px solid color-mix(in srgb, var(--division-color, #2563eb) 20%, transparent); */
  position: relative;
  overflow: hidden;
}

.roster-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--division-color, #2563eb) 0%,
    color-mix(in srgb, var(--division-color, #2563eb) 70%, transparent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.roster-player-card:hover {
  box-shadow: 0 4px 16px color-mix(in srgb, var(--division-color, #2563eb) 15%, rgba(0, 0, 0, 0.1));
  transform: translateY(-2px);
  border-top-color: var(--division-color, #2563eb);
  /* border-left-color: var(--division-color, #2563eb); */
  background: color-mix(in srgb, var(--division-color, #2563eb) 2%, #ffffff);
}

.roster-player-card:hover::before {
  opacity: 1;
}

.roster-player-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.roster-player-name-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roster-player-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.roster-player-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.roster-badge-commish {
  background: #fef3c7;
  color: #92400e;
}

.roster-badge-co-commish {
  background: #dbeafe;
  color: #1e40af;
}

.roster-player-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.roster-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roster-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roster-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.roster-empty {
  background: var(--card);
  border-radius: 6px;
  padding: 64px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.roster-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Record Book Page */
.record-book-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.record-type-section {
  margin: 64px 0;
}

.record-type-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 32px;
  padding-left: 16px;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.record-type-icon {
  font-size: 32px;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.record-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid;
  transition: all 0.3s ease;
}

.record-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.record-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.record-player-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.3px;
}

.record-hole {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
}

.record-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-detail {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.record-label {
  font-weight: 600;
  color: var(--muted);
  min-width: 60px;
}

.record-value {
  color: var(--text);
}

.record-description {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
}

.record-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.records-empty {
  background: white;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin: 48px 0;
}

.records-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Stats Section */
.stats-section {
  margin: 64px 0;
}

.leaderboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 0;
}

/* Cards/Panels */
.card,
.ssl-panel {
  background: var(--card);
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ssl-panel:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.ssl-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.ssl-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.ssl-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ssl-panel .panel-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  margin: 16px 0 8px !important;
  line-height: 1;
}

.ssl-panel .panel-player {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px !important;
}

.ssl-panel .panel-player-leader {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 8px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssl-panel .panel-player-division-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.panel-other-players {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-other-player {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.panel-other-rank {
  font-weight: 600;
  color: var(--muted);
  min-width: 16px;
  font-variant-numeric: tabular-nums;
}

.panel-other-name {
  flex: 1;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.panel-other-division-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.panel-other-value {
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.panel-player-division {
  font-size: 0.85em;
  font-weight: 500;
  margin-left: 0px;
}

.panel-other-division {
  font-size: 0.9em;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
}

.panel-week {
  font-size: 0.85em;
  color: var(--muted);
  margin-left: 0px;
  font-weight: 500;
}

.panel-other-week {
  font-size: 0.85em;
  color: var(--muted);
  margin-left: 0px;
  font-weight: 400;
}

.leaderboard-week {
  font-size: 0.9em;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.leaderboard-player-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.leaderboard-division-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.leaderboard-score-count {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.league-highlights-button-wrapper {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.btn-view-leaderboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #135b86;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(19, 91, 134, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}

.btn-view-leaderboard:hover {
  background: #0f4a6f;
  box-shadow: 0 4px 12px rgba(19, 91, 134, 0.35);
  transform: translateY(-2px);
}

.btn-view-leaderboard:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(19, 91, 134, 0.25);
}

/* Table */
.ssl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 800px;
}

.ssl-table th {
  text-align: left;
  color: var(--muted);
  padding: 16px 12px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ssl-table th:first-child {
  padding-left: 16px;
}

.ssl-table th:last-child {
  padding-right: 16px;
}

.ssl-table th:nth-child(n+3) {
  text-align: right;
}

.ssl-table th:hover {
  color: var(--accent);
}

.ssl-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.ssl-table td:first-child {
  padding-left: 16px;
  font-weight: 600;
}

.ssl-table td:last-child {
  padding-right: 16px;
}

.ssl-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ssl-table tr:last-child td {
  border-bottom: none;
}

.ssl-table tr:hover {
  background: rgba(19, 91, 134, 0.02);
}

.ssl-table tr:first-child {
  background: rgba(19, 91, 134, 0.05);
}

/* Footer */
.site-footer {
  background: var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0 24px;
  margin-top: 0px;
  color: white;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
  align-items: start;
}

/* Footer Menu Section */
.footer-menu-section {
  display: flex;
  flex-direction: column;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu-link {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 0;
  transition: all 0.2s ease;
  opacity: 0.9;
  display: inline-block;
}

.footer-menu-link:hover {
  color: white;
  opacity: 1;
  padding-left: 8px;
}

.footer-menu-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}

/* Sponsors Section */
.footer-sponsors-section {
  display: flex;
  flex-direction: column;
}

.footer-sponsors-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

.footer-sponsors-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-sponsors-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-style: italic;
  margin: 0;
}

/* Copyright Section */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
}

.footer-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* Responsive Design */
/* Mobile styles - apply to all screen sizes below 1024px to catch more cases */
@media (max-width: 1024px) {
  .hero-panels-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Catch-all for ssl-panels on smaller screens */
  .hero-panels-grid .ssl-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Fix button wrapper on smaller screens too */
  .league-highlights-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Force all ssl-panels to be 100% width on mobile - highest priority */
  * .ssl-panel,
  div.ssl-panel,
  [class*="ssl-panel"],
  .hero-panels-grid .ssl-panel,
  .league-highlights-wrapper .ssl-panel,
  .league-highlights-home-section .ssl-panel,
  .league-highlights-wrapper .hero-panels-grid .ssl-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex-basis: 100% !important;
  }

  /* Hide top players bar on mobile */
  .top-players-section {
    display: none;
  }
  
  .top-players-list-wrapper {
    gap: 8px;
  }
  
  .top-players-scroll-indicator {
    display: none;
  }
  
  .top-players-view-all {
    margin-left: 0;
  }
  
  .btn-top-players-view-all {
    font-size: 12px;
    padding: 6px 12px;
  }

  .header-container {
    padding: 12px 20px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  }

  .logo-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 50px);
    padding: 6px;
    margin: -6px;
  }

  .site-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    max-width: 40px;
  }

  .logo-wrapper {
    padding: 6px;
    margin: -6px;
  }

  .logo-text {
    max-width: 160px;
    overflow: hidden;
    min-width: 0;
    flex-shrink: 1;
  }

  .logo-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .logo-subtitle {
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .hamburger-menu-toggle {
    flex-shrink: 0;
    margin-left: auto;
  }


  .page-container {
    padding: 10px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-section-split {
    min-height: auto;
    margin: 0 0 48px;
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    gap: 32px;
  }

  .hero-content-left {
    padding-right: 0;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-content-right {
    padding-left: 0;
  }

  .hero-highlights {
    padding: 24px;
  }

  .hero-division-leaders {
    padding: 16px;
  }

  .hero-division-leaders .division-leaders-section {
    padding: 0;
  }

  .hero-division-leaders .content-heading {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .hero-division-leaders .division-leaders-header {
    margin-bottom: 12px;
  }

  .hero-division-leaders .division-leaders-grid {
    gap: 10px;
  }

  .hero-division-leaders .division-leader-card {
    padding: 12px;
  }

  .hero-division-leaders .leader-name {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .hero-division-leaders .leader-stat-horizontal.leader-stat-net .stat-value-horizontal.stat-value-net {
    font-size: 24px;
  }

  .hero-division-leaders .leader-stat-horizontal .stat-value-horizontal {
    font-size: 14px;
  }

  .hero-division-leaders .leader-stat-horizontal .stat-label-horizontal {
    font-size: 8px;
  }

  /* .hero-division-leaders .content-heading {
    font-size: 20px;
  } */

  /* League highlights grid is handled above with horizontal scroll */

  /* League highlights stack vertically on mobile */
  .league-highlights-home-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .league-highlights-wrapper {
    padding: 24px 16px;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    /* Ensure it doesn't exceed parent */
    flex-basis: 100% !important;
    flex-shrink: 1 !important;
  }

  /* Force ALL children of league-highlights-wrapper to respect container */
  .league-highlights-wrapper > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Specifically target button wrapper as a child */
  .league-highlights-wrapper > .league-highlights-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Last resort: override any width on button wrapper */
  div[class*="league-highlights-button-wrapper"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-panels-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: 0;
    min-width: 0 !important;
    box-sizing: border-box !important;
    /* Prevent grid from creating columns wider than container */
    grid-auto-columns: minmax(0, 1fr) !important;
    /* Force all columns to be 100% width on mobile */
    grid-template-columns: 100% !important;
    /* Force grid to recalculate */
    grid-auto-rows: auto !important;
  }

  /* On larger screens, allow 2 columns for homepage league highlights */
  @media (min-width: 768px) {
    .league-highlights-wrapper .hero-panels-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }

  /* Force ALL direct children of the grid to be full width on mobile */
  .hero-panels-grid > * {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* On larger screens, allow homepage league highlights to use 2 columns */
  @media (min-width: 768px) {
    .league-highlights-wrapper .hero-panels-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .league-highlights-wrapper .hero-panels-grid > * {
      grid-column: auto !important;
    }
  }

  /* Force grid items to be full width and prevent overflow */
  .hero-panels-grid > *,
  .hero-panels-grid > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .ssl-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding: 20px;
  }

  .hero-panels-grid .ssl-panel {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .league-highlights-wrapper .hero-panels-grid .ssl-panel,
  .league-highlights-home-section .hero-panels-grid .ssl-panel,
  .league-highlights-wrapper .ssl-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Fix button wrapper overflow - multiple selectors for maximum specificity */
  .league-highlights-button-wrapper,
  div.league-highlights-button-wrapper,
  .league-highlights-wrapper .league-highlights-button-wrapper,
  .league-highlights-home-section .league-highlights-button-wrapper,
  .league-highlights-wrapper > .league-highlights-button-wrapper,
  .league-highlights-home-section > .league-highlights-wrapper > .league-highlights-button-wrapper,
  section.league-highlights-home-section div.league-highlights-wrapper div.league-highlights-button-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* Force it to respect parent width */
    flex-basis: 100% !important;
    flex-shrink: 1 !important;
    /* Override any potential grid column assignment */
    grid-column: 1 / -1 !important;
  }

  /* Nuclear option: force any ssl-panel to never exceed container */
  .league-highlights-home-section .ssl-panel,
  .league-highlights-wrapper .ssl-panel,
  .league-highlights-home-section .hero-panels-grid .ssl-panel {
    max-width: calc(100vw - 40px) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Nuclear option for button wrapper too */
  .league-highlights-home-section .league-highlights-button-wrapper,
  .league-highlights-wrapper .league-highlights-button-wrapper,
  section.league-highlights-home-section div.league-highlights-wrapper div.league-highlights-button-wrapper {
    max-width: calc(100vw - 40px) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Force grid items to respect container width - make them span full width */
  .hero-panels-grid .ssl-panel {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Override any potential fixed widths */
  div.ssl-panel[style*="width"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .homepage-intro-section {
    margin: 32px 0 24px;
  }

  .homepage-main-content {
    margin: 32px 0;
  }

  .homepage-content-grid-main {
    gap: 24px;
  }

  .homepage-content-column-left {
    gap: 24px;
  }

  .homepage-content-column-right {
    gap: 24px;
  }

  .homepage-record-book-card {
    padding: 32px 24px;
  }

  .homepage-events-card {
    padding: 32px 24px;
  }

  .championship-belt-content-inline {
    padding: 32px 24px;
    gap: 24px;
  }

  .championship-belt-header-inline {
    gap: 12px;
    margin-bottom: 4px;
  }

  .championship-belt-content-inline .championship-belt-icon {
    font-size: 40px;
  }

  .championship-belt-content-inline .championship-belt-sparkle {
    font-size: 18px;
    top: -4px;
    right: -4px;
  }

  .championship-belt-content-inline .championship-belt-title {
    font-size: 22px;
  }

  .championship-belt-content-inline .championship-belt-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .championship-belt-content-inline .championship-belt-features {
    gap: 8px;
    margin-bottom: 20px;
  }

  .championship-belt-content-inline .championship-belt-cta {
    font-size: 13px;
  }

  .homepage-intro-card {
    padding: 32px 24px;
  }

  .homepage-intro-content {
    font-size: 15px;
  }

  .homepage-section-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .homepage-record-book-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .homepage-events-card {
    padding: 28px 24px;
  }

  .homepage-events-list {
    gap: 20px;
  }

  .homepage-event-item {
    padding-bottom: 20px;
  }

  .homepage-event-header {
    gap: 12px;
    margin-bottom: 12px;
  }

  .homepage-event-icon {
    font-size: 28px;
  }

  .homepage-event-title {
    font-size: 18px;
  }

  .homepage-event-details {
    gap: 8px;
    margin-bottom: 12px;
  }

  .homepage-event-detail {
    font-size: 13px;
  }

  .homepage-event-detail-label {
    min-width: 60px;
  }

  .homepage-event-description {
    font-size: 13px;
  }

  .championship-belt-section {
    margin: 48px 0;
  }

  .championship-belt-content {
    padding: 32px 24px;
    gap: 32px;
  }

  .championship-belt-icon {
    font-size: 64px;
  }

  .championship-belt-sparkle {
    font-size: 24px;
    top: -8px;
    right: -8px;
  }

  .championship-belt-title {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .championship-belt-description {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .championship-belt-features {
    gap: 12px;
    margin-bottom: 24px;
  }

  .championship-feature {
    padding: 10px 16px;
  }

  .feature-icon {
    font-size: 20px;
  }

  .feature-text {
    font-size: 14px;
  }

  .championship-belt-cta {
    font-size: 15px;
  }

  .championship-belt-placeholder {
    padding: 32px 24px;
    min-width: auto;
    width: 100%;
  }

  .belt-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
  }

  .belt-placeholder-text {
    font-size: 13px;
  }

  .championship-belt-wrapper-inline {
    height: auto;
  }

  .content-ribbon-wrapper {
    margin-top: -30px;
  }

  .content-ribbon {
    padding: 40px 0 30px;
  }

  .ribbon-text {
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .ribbon-arrow {
    font-size: 20px;
  }

  .championship-belt-content-inline {
    padding: 32px 24px;
    gap: 24px;
  }

  .championship-belt-header-inline {
    gap: 12px;
    margin-bottom: 4px;
  }

  .championship-belt-content-inline .championship-belt-title {
    font-size: 22px;
    margin: 0;
  }

  .championship-belt-content-inline .championship-belt-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .championship-belt-content-inline .championship-belt-icon {
    font-size: 40px;
  }

  .championship-belt-content-inline .championship-belt-sparkle {
    font-size: 18px;
    top: -4px;
    right: -4px;
  }

  .championship-belt-content-inline .championship-belt-features {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .championship-belt-content-inline .championship-belt-cta {
    font-size: 13px;
  }

  /* Events Page Mobile */
  .events-page-layout {
    gap: 25px;
    margin: 25px 0;
  }

  .events-page-main {
    gap: 25px;
  }

  .events-group-section {
    margin-bottom: 25px;
  }

  .events-group-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .events-group-icon {
    font-size: 26px;
  }

  .events-grid-page {
    gap: 20px;
  }

  .event-card-page {
    padding: 24px 20px;
  }

  .event-icon-page {
    font-size: 32px;
  }

  .event-title-page {
    font-size: 20px;
  }

  .event-details-page {
    gap: 10px;
    margin-bottom: 16px;
  }

  .event-detail-page {
    font-size: 13px;
  }

  .event-detail-icon {
    font-size: 16px;
  }

  .event-description-page {
    font-size: 13px;
  }

  .events-page-sidebar {
    gap: 25px;
  }

  .standings-page-layout {
    gap: 25px;
    margin: 25px 0;
  }

  .standings-page-main {
    gap: 25px;
  }

  .standings-page-sidebar {
    gap: 25px;
  }

  .sidebar-division-leader-item {
    padding: 14px;
  }

  .sidebar-leader-stats {
    gap: 6px;
  }

  .sidebar-leader-stat-value {
    font-size: 13px;
  }

  .sidebar-leader-stat-label {
    font-size: 9px;
  }

  .sidebar-widget {
    padding: 24px 20px;
  }

  .sidebar-widget-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .sidebar-highlights-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sidebar-links-list {
    gap: 10px;
  }

  .sidebar-links-list a {
    padding: 10px 14px;
    font-size: 13px;
  }

  .division-leaders-home-section {
    margin: 32px 0;
  }

  .division-leaders-section {
    padding: 24px;
  }

  .division-leaders-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .content-heading {
    font-size: 26px;
  }

  .current-week-badge {
    align-self: flex-end;
  }

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

  .division-leader-card {
    padding: 20px;
  }

  .leader-stats-horizontal {
    gap: 10px;
  }

  .leader-stat-horizontal .stat-value-horizontal {
    font-size: 18px;
  }

  .leader-stat-horizontal.leader-stat-net .stat-value-horizontal.stat-value-net {
    font-size: 28px;
  }

  .leader-stat-horizontal .stat-label-horizontal {
    font-size: 10px;
  }

  .stat-separator-horizontal {
    font-size: 14px;
    margin: 0 2px;
  }

  .leader-name {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .leader-stat .stat-value {
    font-size: 24px;
  }

  .leader-stat.leader-stat-main .stat-value {
    font-size: 36px;
  }

  .stat-value-compact {
    font-size: 16px;
  }

  .stat-label-compact {
    font-size: 9px;
  }

  .section-title {
    font-size: 26px;
  }

  .leaderboard-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }


  .ssl-table {
    font-size: 14px;
  }

  .ssl-table th,
  .ssl-table td {
    padding: 12px;
  }
}

/* Standings Page */
.standings-hero {
  padding: 48px 0 32px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.standings-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}

.standings-hero .season-filter-wrapper {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.standings-hero .season-filter-label {
  color: var(--muted, #6b7280);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.standings-hero .season-filter-select {
  background: var(--card, #ffffff);
  color: var(--text, #1f2937);
  border: 1px solid var(--border, #e5e7eb);
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  max-width: 160px;
  min-width: 120px;
  border-radius: 6px;
  height: 28px;
  line-height: 1.2;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
  transition: all 0.2s ease;
}

.standings-hero .season-filter-select:hover {
  border-color: var(--accent, #2563eb);
  background-color: var(--card, #ffffff);
}

.standings-hero .season-filter-select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 1px;
  border-color: var(--accent, #2563eb);
}

.page-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.page-description {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ssl-standings {
  margin: 0;
}

.ssl-standings-empty {
  background: white;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.ssl-standings-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.standings-table-wrapper {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: visible;
  margin-bottom: 25px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px 0px;
}

.ssl-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 900px;
}

.ssl-standings-table th {
  text-align: left;
  color: var(--muted);
  padding: 16px 12px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ssl-standings-table th:first-child {
  padding-left: 16px;
}

.ssl-standings-table th:last-child {
  padding-right: 16px;
}

.ssl-standings-table th:nth-child(n+2) {
  text-align: right;
}

.ssl-standings-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.ssl-standings-table td:first-child {
  padding-left: 16px;
}

.ssl-standings-table td:last-child {
  padding-right: 16px;
}

.ssl-standings-table td:nth-child(n+2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ssl-standings-table tr:last-child td {
  border-bottom: none;
}

.division-row {
  transition: background-color 0.2s ease;
  border-left: 4px solid transparent;
}

.division-row:hover {
  background: rgba(19, 91, 134, 0.02);
}

.division-name {
  text-align: left !important;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.division-color-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.division-tier {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.standings-division-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 25px;
}

.division-standings-card {
  background: white;
  border-radius: 12px;
  padding: 32px 0px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid;
  transition: all 0.3s ease;
}

.division-standings-card:hover {
  box-shadow: var(--shadow-lg);
}

.division-standings-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  color: var(--text);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
  padding: 0px 32px;
}

.division-tier-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 6px;
  margin-left: auto;
}

.division-standings-table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.division-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}

.division-standings-table th {
  text-align: left;
  color: var(--muted);
  padding: 12px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.division-standings-table th:first-child {
  padding-left: 16px;
  width: 60px;
}

.division-standings-table th:nth-child(2) {
  min-width: 150px;
}

.division-standings-table th:nth-child(n+3) {
  text-align: right;
  width: 100px;
}

.division-standings-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.division-standings-table td:first-child {
  padding-left: 16px;
}

.division-standings-table td:nth-child(n+3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.division-standings-table tr:last-child td {
  border-bottom: none;
}

.division-standings-table tr:hover {
  background: rgba(19, 91, 134, 0.02);
}

/* Divisions Page */
.divisions-hero {
  padding: 48px 0 32px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.divisions-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 20px;
}

.divisions-hero .season-filter-wrapper {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.divisions-hero .season-filter-label {
  color: var(--muted, #6b7280);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.divisions-hero .season-filter-select {
  background: var(--card, #ffffff);
  color: var(--text, #1f2937);
  border: 1px solid var(--border, #e5e7eb);
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  max-width: 160px;
  min-width: 120px;
  border-radius: 6px;
  height: 28px;
  line-height: 1.2;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px;
  transition: all 0.2s ease;
  flex: 0 0 auto;
}

.divisions-hero .season-filter-select:hover {
  border-color: var(--accent, #2563eb);
  background-color: var(--card, #ffffff);
}

.divisions-hero .season-filter-select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 1px;
  border-color: var(--accent, #2563eb);
}

.divisions-page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 25px 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .divisions-page-layout {
    grid-template-columns: 1fr 380px;
    gap: 25px;
    padding: 0 40px;
  }
}

@media (min-width: 1400px) {
  .divisions-page-layout {
    grid-template-columns: 1fr 420px;
    padding: 0 60px;
  }
}

.divisions-page-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.divisions-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.divisions-page-sidebar .sidebar-widget {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.ssl-divisions {
  margin: 0;
}

.ssl-divisions-empty {
  background: white;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.ssl-divisions-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Divisions Subnavigation */
.divisions-subnav {
  background: var(--card);
  padding: 12px 20px;
  margin: 0 auto 32px;
  max-width: 800px;
  width: fit-content;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  z-index: 99;
  border: 1px solid var(--border);
}

.divisions-subnav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.divisions-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 6px;
  position: relative;
}

.divisions-subnav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.divisions-subnav-link:hover {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.08);
}

.divisions-subnav-link:active,
.divisions-subnav-link:focus {
  outline: none;
  color: var(--accent);
}

.divisions-subnav-link.active {
  color: var(--accent);
  background: rgba(19, 91, 134, 0.12);
  font-weight: 600;
}

.divisions-table-wrapper {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: visible;
  margin-bottom: 25px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ssl-divisions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 1000px;
}

.ssl-divisions-table th {
  text-align: left;
  color: var(--muted);
  padding: 16px 12px;
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ssl-divisions-table th:first-child {
  padding-left: 16px;
}

.ssl-divisions-table th:last-child {
  padding-right: 16px;
}

.ssl-divisions-table th:nth-child(n+2) {
  text-align: right;
}

.ssl-divisions-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.ssl-divisions-table td:first-child {
  padding-left: 16px;
}

.ssl-divisions-table td:last-child {
  padding-right: 16px;
}

.ssl-divisions-table td:nth-child(n+2) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ssl-divisions-table tr:last-child td {
  border-bottom: none;
}

.best-score-detail {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: 4px;
}

.divisions-division-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 25px;
}

.division-divisions-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid;
  transition: all 0.3s ease;
  scroll-margin-top: 120px;
}

.division-divisions-card:hover {
  box-shadow: var(--shadow-lg);
}

.division-divisions-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.division-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.division-stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.division-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.division-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(19, 91, 134, 0.15);
  border-color: var(--accent);
}

.division-stat-card:hover::before {
  opacity: 1;
}

.division-stat-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.division-stat-card:hover .division-stat-icon {
  transform: scale(1.1);
}

.division-stat-content {
  flex: 1;
  min-width: 0;
}

.division-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: block;
}

.division-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.division-stat-detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.4;
}

/* Specific card styling variations */
.division-stat-card-points {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
}

.division-stat-card-points .division-stat-icon {
  opacity: 1;
}

.division-stat-card-power {
  background: linear-gradient(135deg, #e6f3ff 0%, #d6ebff 100%);
}

.division-stat-card-scores {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.division-stat-card-avg-gross,
.division-stat-card-avg-net {
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.division-stat-card-best-gross,
.division-stat-card-best-net {
  background: linear-gradient(135deg, #fef3e6 0%, #ffe9d6 100%);
}

.division-stat-card-birdies,
.division-stat-card-avg-birdies {
  background: linear-gradient(135deg, #e6f9f0 0%, #d6f5e6 100%);
}

/* Division Players Section */
.division-players-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

.division-players-title {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.2px;
}

.division-players-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.division-player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg, #fafafa);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
  gap: 16px;
}

.division-player-item:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(19, 91, 134, 0.1);
  transform: translateX(4px);
}

.division-player-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.division-player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.division-player-hcp {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(19, 91, 134, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.division-player-hcp-none {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
}

.division-player-scores {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.division-player-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.division-player-item:hover .division-player-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* Divisions Page Responsive */
@media (max-width: 768px) {
  .division-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .division-stat-card {
    padding: 20px;
  }
  
  .division-stat-icon {
    font-size: 28px;
  }
  
  .division-stat-value {
    font-size: 24px;
  }
  
  .division-player-item {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  
  .division-player-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .division-player-arrow {
    display: none;
  }
}

/* Division Leader Styling */
.division-leader {
  background: linear-gradient(90deg, rgba(19, 91, 134, 0.08) 0%, rgba(19, 91, 134, 0.03) 100%) !important;
  font-weight: 600;
}

.division-leader:hover {
  background: linear-gradient(90deg, rgba(19, 91, 134, 0.12) 0%, rgba(19, 91, 134, 0.06) 100%) !important;
}

.division-leader .player-name-cell {
  font-weight: 700;
  color: var(--accent);
}

.rank-cell {
  font-weight: 600;
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}


.player-name-cell {
  font-weight: 500;
}

/* Roster Page Mobile */
@media (max-width: 768px) {
  .roster-page-layout {
    padding: 0 16px;
    gap: 25px;
  }


  .roster-division-title {
    font-size: 24px;
    padding-left: 16px;
  }
  
  .roster-division-section {
    padding: 24px 16px;
  }

  .roster-players-grid {
    grid-template-columns: 1fr;
  }

  .roster-player-card {
    padding: 20px;
  }

  .roster-player-name {
    font-size: 18px;
  }

  .roster-player-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .roster-stat-value {
    font-size: 16px;
  }
  
  .roster-subnav {
    position: relative !important;
    top: auto !important;
    margin-bottom: 24px;
    padding: 10px 14px;
    max-width: calc(100% - 40px);
    width: calc(100% - 40px);
    box-sizing: border-box;
  }

  .roster-subnav-list {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .roster-subnav-link {
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .roster-subnav-dot {
    width: 8px;
    height: 8px;
  }
}

/* Events Page Mobile */
@media (max-width: 768px) {
  .events-page-layout {
    padding: 0 16px;
    gap: 25px;
  }


  .standings-page-layout,
  .leaderboard-page-layout {
    gap: 25px;
    margin: 25px 0;
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .standings-page-main,
  .leaderboard-page-main {
    gap: 25px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .standings-page-sidebar,
  .leaderboard-page-sidebar {
    /* Sidebar comes after content naturally */
    gap: 25px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .sidebar-division-leader-item {
    padding: 14px;
  }

  .sidebar-leader-stats {
    gap: 6px;
  }

  .sidebar-leader-stat-value {
    font-size: 13px;
  }

  .sidebar-leader-stat-label {
    font-size: 9px;
  }

  .events-grid-page {
    grid-template-columns: 1fr;
  }

  .event-card-page {
    padding: 24px 20px;
  }

  .event-title-page {
    font-size: 20px;
  }
}

/* Responsive for Standings */
@media (max-width: 768px) {
  /* Ensure ssl-panels are constrained here too */
  .hero-panels-grid .ssl-panel,
  .league-highlights-wrapper .ssl-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Fix button wrapper overflow in this media query too - MUST come after any other width rules */
  .league-highlights-button-wrapper,
  .league-highlights-wrapper .league-highlights-button-wrapper,
  div.league-highlights-button-wrapper,
  section.league-highlights-home-section div.league-highlights-wrapper div.league-highlights-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .page-title {
    font-size: 32px;
  }

  .page-description {
    font-size: 16px;
  }

  /* Make the standings table wrapper scrollable on mobile */
  .standings-table-wrapper {
    padding: 25px 0px;
    border-radius: 12px;
    /* width: calc(100% + 32px); */
    /* max-width: calc(100% + 32px); */
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    display: block;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
  }

  /* Webkit scrollbar for mobile */
  .standings-table-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .standings-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }

  .standings-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }

  .ssl-standings-table {
    font-size: 14px;
    min-width: 700px !important;
    width: 100%;
    margin: 0;
    display: table;
    table-layout: auto;
  }

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

  .ssl-standings-table th:first-child,
  .ssl-standings-table td:first-child {
    padding-left: 16px;
  }

  .ssl-standings-table th:last-child,
  .ssl-standings-table td:last-child {
    padding-right: 16px;
  }

  .standings-division-details {
    gap: 24px;
  }

  .division-standings-card {
    padding: 20px 16px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .division-standings-table-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
  }

  /* Webkit scrollbar for mobile division tables */
  .division-standings-table-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .division-standings-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }

  .division-standings-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }

  .division-standings-title {
    font-size: 20px;
    flex-wrap: wrap;
  }

  .division-standings-table {
    font-size: 13px;
    min-width: 700px !important;
    width: 100%;
    margin: 0;
    display: table;
    table-layout: auto;
  }

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

  .division-standings-table th:first-child,
  .division-standings-table td:first-child {
    padding-left: 16px;
  }

  .division-standings-table th:last-child,
  .division-standings-table td:last-child {
    padding-right: 16px;
  }

  .rank-badge {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  /* Leaderboard section constraints */
  .leaderboard-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .homepage-leaderboard-wrapper {
    padding: 24px 16px;
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex-basis: 100% !important;
    flex-shrink: 1 !important;
  }

  /* Make the table wrapper scrollable */
  .homepage-leaderboard-table-wrapper {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    /* Ensure it's actually scrollable */
    display: block;
    position: relative;
    /* Force scrollbar to be visible when content overflows */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
  }

  /* Webkit scrollbar for mobile */
  .homepage-leaderboard-table-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .homepage-leaderboard-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }

  .homepage-leaderboard-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
  }

  .homepage-leaderboard-table {
    font-size: 13px;
    min-width: 750px !important; /* Increased to accommodate new columns */
    width: 100%;
    margin: 0;
    display: table;
    /* Ensure table maintains its width */
    table-layout: auto;
  }
  
  .homepage-content-grid {
    gap: 24px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Force all children of homepage-content-grid to respect container */
  .homepage-content-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .homepage-leaderboard-table thead th {
    font-size: 11px;
    padding: 8px 6px;
  }

  .homepage-leaderboard-table tbody td {
    font-size: 13px;
    padding: 8px 6px;
  }

  .footer-container {
    padding: 0 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 24px;
  }

  .footer-menu {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-menu-link {
    font-size: 14px;
  }

  .footer-sponsors-title {
    font-size: 16px;
  }

  /* FINAL OVERRIDE - Must be last to override any 600px width rule */
  .league-highlights-button-wrapper,
  div.league-highlights-button-wrapper,
  .league-highlights-wrapper .league-highlights-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* .leaderboard-section-page {
    margin-top: 25px;
  } */

  .content-heading {
    font-size: 24px;
  }

  .leaderboard-table-wrapper {
    padding: 20px;
  }

  .leaderboard-subnav,
  .standings-subnav {
    position: relative !important;
    top: auto !important;
    margin-bottom: 24px;
    padding: 10px 14px;
    max-width: calc(100% - 40px);
    width: calc(100% - 40px);
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .leaderboard-subnav-list,
  .standings-subnav-list {
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .leaderboard-subnav-link,
  .standings-subnav-link {
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .standings-subnav-dot {
    width: 8px;
    height: 8px;
  }

  .leaderboard-section-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .leaderboard-main-section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
  }

  .division-standings-card-page {
    padding: 24px;
  }

  .division-standings-title-page {
    font-size: 20px;
  }

  .rank-badge-homepage {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .top-players-leaderboard {
    padding: 20px;
  }

  .top-players-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .top-players-list {
    flex-direction: column;
    gap: 12px;
  }

  .top-player-item {
    min-width: 100%;
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }

  .hero-content-left,
  .hero-content-right {
    padding: 0;
  }

  .record-type-section {
    margin: 48px 0;
  }

  .record-type-title {
    font-size: 26px;
  }

  .records-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .record-card {
    padding: 20px;
  }
}

/* Player Report Page Enhancements */

/* Week Subnavigation */
.player-week-subnav {
  background: var(--card);
  padding: 14px 24px;
  margin: 0 auto 40px;
  max-width: 800px;
  width: fit-content;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 100px;
  z-index: 99;
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.player-week-subnav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.player-week-subnav-link {
  display: inline-block;
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  position: relative;
}

.player-week-subnav-link:hover {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(19, 91, 134, 0.1) 0%, rgba(19, 91, 134, 0.06) 100%);
  transform: translateY(-1px);
}

.player-week-subnav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--accent, #2563eb) 0%, color-mix(in srgb, var(--accent, #2563eb) 90%, transparent) 100%);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(19, 91, 134, 0.2);
}

.week-scorecard {
  scroll-margin-top: 120px;
}

/* Scorecard Legend */
.scorecard-legend {
  background: linear-gradient(135deg, var(--card) 0%, color-mix(in srgb, var(--card) 98%, var(--bg)) 100%);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.scorecard-legend::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent, #2563eb) 0%, transparent 100%);
}

.scorecard-legend-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scorecard-legend-title::before {
  content: 'ℹ️';
  font-size: 16px;
  opacity: 0.7;
}

.scorecard-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.scorecard-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.scorecard-legend-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.scorecard-legend-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* Score Indicators - Circle/Box the numbers themselves */
.scorecard-cell {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.scorecard-score-value {
  font-weight: 600;
  display: inline-block;
  padding: 2px 4px;
  min-width: 20px;
  text-align: center;
  vertical-align: middle;
}

/* Birdie - Circle around the number */
.scorecard-score-value.score-indicator-birdie {
  border: 2px solid #10b981;
  border-radius: 50%;
  color: #10b981;
  padding: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

/* Eagle or Better - Double circle */
.scorecard-score-value.score-indicator-eagle {
  border: 2px solid #3b82f6;
  border-radius: 50%;
  color: #3b82f6;
  padding: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  vertical-align: middle;
}

.scorecard-score-value.score-indicator-eagle::before {
  content: '';
  position: absolute;
  border: 1px solid #3b82f6;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Bogey - Box around the number */
.scorecard-score-value.score-indicator-bogey {
  border: 2px solid #f59e0b;
  border-radius: 2px;
  color: #f59e0b;
  padding: 0 6px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

/* Double Bogey+ - Double box */
.scorecard-score-value.score-indicator-bogeyplus {
  border: 2px solid #ef4444;
  border-radius: 2px;
  color: #ef4444;
  padding: 0 6px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  vertical-align: middle;
}

.scorecard-score-value.score-indicator-bogeyplus::before {
  content: '';
  position: absolute;
  border: 1px solid #ef4444;
  border-radius: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Enhanced Scorecard Stats */
.scorecard-stats {
  background: var(--card);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scorecard-round-summary {
  background: linear-gradient(135deg, rgba(19, 91, 134, 0.05) 0%, rgba(19, 91, 134, 0.02) 100%);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(19, 91, 134, 0.1);
}

.scorecard-round-header {
  margin-bottom: 12px;
}

.scorecard-round-label {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.scorecard-round-scores {
  display: flex;
  gap: 24px;
  margin-bottom: 12px;
}

.scorecard-score-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scorecard-score-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.scorecard-score-value-large {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.scorecard-round-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(19, 91, 134, 0.1);
}

.scorecard-detail-eagle {
  color: #3b82f6;
  font-weight: 600;
}

.scorecard-detail-birdie {
  color: #10b981;
  font-weight: 600;
}

.scorecard-detail-bogey {
  color: #f59e0b;
  font-weight: 600;
}

.scorecard-detail-bogeyplus {
  color: #ef4444;
  font-weight: 600;
}

.scorecard-total-summary {
  background: linear-gradient(135deg, rgba(19, 91, 134, 0.1) 0%, rgba(19, 91, 134, 0.05) 100%);
  border-radius: 8px;
  padding: 20px;
  border: 2px solid var(--accent);
  margin-top: 8px;
}

.scorecard-total-header {
  margin-bottom: 12px;
}

.scorecard-total-label {
  font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.scorecard-total-scores {
  display: flex;
  gap: 32px;
}

.scorecard-total-scores .scorecard-score-value-large {
  font-size: 32px;
  color: var(--accent);
}

/* Scorecard Footer Rows - Hard Blue Background with White Text */
.scorecard-footer {
  border-top: 2px solid var(--accent);
}

.scorecard-footer-row {
  background: var(--accent) !important;
  color: white !important;
}

.scorecard-footer-row td {
  color: white !important;
  padding: 12px 16px !important;
  border: none !important;
}

.scorecard-footer-label {
  font-weight: 600;
  font-size: 14px;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.scorecard-footer-stats {
  color: white !important;
}

.scorecard-footer-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: white !important;
}

.scorecard-footer-label-small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.scorecard-footer-inline strong {
  color: white !important;
  font-weight: 700;
  font-size: 14px;
}

.scorecard-footer-separator {
  color: rgba(255, 255, 255, 0.6) !important;
  margin: 0 2px;
}

/* Keep colors on detail stats in footer */
.scorecard-footer-inline .scorecard-detail-eagle {
  color: #3b82f6 !important;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.scorecard-footer-inline .scorecard-detail-birdie {
  color: #10b981 !important;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.scorecard-footer-inline .scorecard-detail-bogey {
  color: #f59e0b !important;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.scorecard-footer-inline .scorecard-detail-bogeyplus {
  color: #ef4444 !important;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Style the TOTAL row in the table body with blue background */
.scorecard-row-total {
  background: var(--accent) !important;
  color: white !important;
}

.scorecard-row-total td {
  color: white !important;
  padding: 12px 16px !important;
  border: none !important;
  background: var(--accent) !important;
}

.scorecard-row-total .scorecard-label {
  font-weight: 600;
  font-size: 14px;
  color: white !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scorecard-row-total .scorecard-total {
  color: white !important;
  font-weight: 700;
}

.scorecard-row-total .scorecard-total strong {
  color: white !important;
}

/* Fill empty cells in TOTAL row */
.scorecard-row-total td:not(.scorecard-label):not(.scorecard-total) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-align: center;
}

/* Style IN row's total column with blue background */
.scorecard-row-in .scorecard-total {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 700;
}

.scorecard-row-in .scorecard-total strong {
  color: white !important;
}

/* Style OUT row's total column with blue background */
.scorecard-row-out .scorecard-total {
  background: var(--accent) !important;
  color: white !important;
  font-weight: 700;
}

.scorecard-row-out .scorecard-total strong {
  color: white !important;
}

@media (max-width: 768px) {
  .player-week-subnav {
    top: 110px;
    padding: 8px 16px;
    max-width: calc(100% - 40px);
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .player-week-subnav-list {
    gap: 6px;
  }
  
  .player-week-subnav-link {
    font-size: 13px;
    padding: 4px 10px;
  }
  
  .scorecard-legend-items {
    gap: 12px;
  }
  
  .scorecard-round-scores {
    gap: 16px;
  }
  
  .scorecard-score-value-large {
    font-size: 24px;
  }
  
  .scorecard-total-scores {
    gap: 20px;
  }
  
  .scorecard-total-scores .scorecard-score-value-large {
    font-size: 28px;
  }
}