/* Player Database Page Styles - NHL Player Database Browser */

/* Reset margins from shared */
.explore-body {
  margin: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  color: var(--text-color);
}

/* Fancy but subtle background - matching landing page */
.bg-layer {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(13, 110, 253, 0.25), transparent 60%),
              radial-gradient(800px 400px at 10% 110%, rgba(13, 110, 253, 0.15), transparent 60%),
              linear-gradient(180deg, #f9fbff 0%, #f6f8fc 30%, #f8fafc 100%);
  filter: saturate(110%);
  z-index: -1;
}

.explore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand-link {
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.top-nav {
  display: flex;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  color: rgba(0,0,0,0.7);
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover { 
  color: var(--primary-color);
  background: rgba(13, 110, 253, 0.08);
}

.nav-link.active {
  color: var(--primary-color);
  background: rgba(13, 110, 253, 0.12);
  font-weight: 700;
}

.explore-main {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.explore-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  flex: 1;
  min-height: 0;
}

.explore-header-section {
  text-align: center;
  margin-bottom: 0px;
}

.explore-header-section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.explore-description {
  font-size: 1.1rem;
  color: var(--text-muted-color);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Player Database Controls */
.player-database-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-controls {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

#player-database-search {
  width: 300px;
  min-width: 200px;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 1em;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#player-database-search:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

#player-database-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

#player-database-position-filter {
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 1em;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.database-stats {
  font-size: 0.9em;
  color: var(--text-muted-color);
  font-weight: bold;
}

/* Column Visibility Overlay */
.column-visibility-overlay-content {
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color-light);
}

.overlay-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

.overlay-close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.overlay-close-button:hover {
  background-color: var(--light-gray);
  color: var(--danger-color);
}

.overlay-description {
  color: var(--text-muted-color);
  font-size: 0.9rem;
  margin: 0 0 var(--spacing-lg) 0;
  text-align: center;
}

.column-sections {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: var(--spacing-md);
}

.column-section {
  margin-bottom: var(--spacing-lg);
}

.column-section h4 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color-light);
}

.column-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-sm);
}

.column-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
}

.column-toggle:hover {
  background-color: var(--light-gray);
}

.column-toggle input[type="checkbox"] {
  display: none;
}

.column-toggle input[type="checkbox"]:disabled + .toggle-switch {
  opacity: 0.5;
  cursor: not-allowed;
}

.column-toggle input[type="checkbox"]:disabled ~ .toggle-label {
  opacity: 0.7;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: var(--border-color);
  border-radius: 12px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--white);
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.column-toggle input[type="checkbox"]:checked + .toggle-switch {
  background-color: var(--primary-color);
}

.column-toggle input[type="checkbox"]:checked + .toggle-switch::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.875rem;
  color: var(--text-color);
  font-weight: 500;
  flex: 1;
}

.required-indicator {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  background-color: rgba(13, 110, 253, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* Action Buttons */
.overlay-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color-light);
}

.overlay-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 100px;
}

/* Hide columns based on data attributes */
.player-database-table-container table th[data-column-hidden="true"],
.player-database-table-container table td[data-column-hidden="true"] {
  display: none;
}

/* Player Table Container */
.player-database-table-container {
  flex: 1;
  overflow: auto;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  min-height: 0;
}

#player-database-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: auto;
}

#player-database-table th {
  position: sticky;
  top: 0;
  background-color: var(--table-header-bg);
  color: var(--white);
  padding: var(--spacing-sm);
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  font-size: 0.9em;
}

#player-database-table th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.2s ease;
}

#player-database-table th.sortable:hover {
  background-color: #1a4b8c;
}

.sort-indicator {
  margin-left: 0px;
  opacity: 0.5;
  font-size: 0.8em;
}

#player-database-table th.sort-asc .sort-indicator::after {
  content: "▲";
  opacity: 1;
}

#player-database-table th.sort-desc .sort-indicator::after {
  content: "▼";
  opacity: 1;
}

#player-database-table td {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color-light);
  vertical-align: middle;
  font-size: 0.9em;
}

.player-database-team-logo {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-sm);
  vertical-align: middle;
}

.player-database-position {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85em;
  display: inline-block;
  text-align: center;
  min-width: 20px;
}

.player-database-position.pos-F {
  background-color: var(--pos-f-bg);
  color: #ffffff;  /* White for better contrast with vibrant red */
}

.player-database-position.pos-D {
  background-color: var(--pos-d-bg);
  color: #ffffff;  /* White for better contrast with vibrant blue */
}

.player-database-position.pos-G {
  background-color: var(--pos-g-bg);
  color: #ffffff;  /* White for better contrast with vibrant green */
}

.player-database-salary {
  color: var(--text-color);
}

.non-goalie-stat {
  color: var(--dark-gray);
}

.skater-stat-cell {
  font-style: normal;
}

.non-skater-stat {
  color: var(--dark-gray);
}

/* Column visibility handling */
#player-database-table th[data-column-hidden="true"],
#player-database-table td[data-column-hidden="true"] {
  display: none;
}

/* Base minimum width for all columns */
#player-database-table th {
  min-width: 35px;
}

/* Specific column width overrides */
#player-database-table th:nth-child(1) { min-width: 190px; } /* Name */
#player-database-table th:nth-child(3) { min-width: 130px; } /* Team */
#player-database-table th:nth-child(5) { min-width: 85px; } /* Cap Hit */

/* Center align numeric columns */
#player-database-table td:nth-child(n + 4) {
  text-align: center;
}

/* Left align name and team columns */
#player-database-table td:nth-child(1),
#player-database-table td:nth-child(3) {
  text-align: left;
}

/* Footer */
.explore-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.signings-last-updated {
  font-size: 0.85em;
  color: var(--text-muted-color);
}

.explore-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.explore-page-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px 22px 16px;
  margin-top: -30px;
  color: rgba(0,0,0,0.5);
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .explore-main {
    padding: 20px 16px;
  }
  
  .player-database-controls {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }
  
  .search-controls {
    justify-content: center;
  }
  
  #player-database-search {
    width: 100%;
    max-width: 300px;
  }
  
  .column-visibility-dropdown {
    left: 50%;
    transform: translateX(-50%);
    max-width: 90vw;
  }
  
  .explore-footer {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .explore-header {
    padding: 12px 16px;
  }
  
  .brand-logo {
    height: 32px;
  }
  
  .top-nav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .explore-header-section h1 {
    font-size: 1.8rem;
  }
  
  .explore-description {
    font-size: 1rem;
  }
  
  .player-database-table-container {
    min-height: 400px;
  }
}

/* Loading state */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-xl);
  color: var(--text-muted-color);
}

.loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: var(--spacing-sm);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Team Filter Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay.visible {
  display: flex;
}

.overlay-content {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  max-height: 80vh;
  width: 90vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-filter-overlay-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  height: 100%;
}

.team-filter-overlay-content h2 {
  margin: 0;
  text-align: center;
  color: var(--text-color);
  font-size: 1.5rem;
}

.team-filter-overlay-content p {
  margin: 0;
  text-align: center;
  color: var(--text-muted-color);
  font-size: 0.9em;
}

.team-filter-controls {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color-light);
}

.team-filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--spacing-sm);
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-sm);
  background-color: var(--white);
  flex: 1;
}

.team-filter-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 4px 6px;
  border-radius: var(--border-radius-sm);
  background-color: var(--light-gray);
  border: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.team-filter-item:hover {
  background-color: var(--medium-gray);
}

.team-filter-item.filtered {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.team-filter-item.filtered:hover {
  background-color: #f1b0b7;
}

.team-filter-checkbox {
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.team-filter-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.team-filter-name {
  font-size: 0.85em;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.team-filter-actions {
  display: flex;
  justify-content: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color-light);
}

/* Team column hover trigger */
#player-database-table th[data-sort="team"] {
  position: relative;
}

.team-filter-button {
  position: absolute;
  left: calc(50% + 35px);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  z-index: 11;
}

.team-filter-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.team-filter-button::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='256' height='256' viewBox='0 0 256 256' xml:space='preserve'%3e%3cg style='stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;' transform='translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)'%3e%3cpath d='M 85.813 59.576 H 55.575 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 30.237 c 1.657 0 3 1.343 3 3 S 87.47 59.576 85.813 59.576 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 48.302 66.849 c -5.664 0 -10.272 -4.608 -10.272 -10.272 c 0 -5.665 4.608 -10.273 10.272 -10.273 c 5.665 0 10.273 4.608 10.273 10.273 C 58.575 62.24 53.967 66.849 48.302 66.849 z M 48.302 52.303 c -2.356 0 -4.272 1.917 -4.272 4.273 c 0 2.355 1.917 4.272 4.272 4.272 c 2.356 0 4.273 -1.917 4.273 -4.272 C 52.575 54.22 50.658 52.303 48.302 52.303 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 41.029 59.576 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 36.842 c 1.657 0 3 1.343 3 3 S 42.686 59.576 41.029 59.576 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 85.813 36.424 h -57.79 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 57.79 c 1.657 0 3 1.343 3 3 S 87.47 36.424 85.813 36.424 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 20.75 43.697 c -5.665 0 -10.273 -4.608 -10.273 -10.273 s 4.608 -10.273 10.273 -10.273 s 10.273 4.608 10.273 10.273 S 26.414 43.697 20.75 43.697 z M 20.75 29.151 c -2.356 0 -4.273 1.917 -4.273 4.273 s 1.917 4.273 4.273 4.273 s 4.273 -1.917 4.273 -4.273 S 23.105 29.151 20.75 29.151 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 13.477 36.424 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 9.289 c 1.657 0 3 1.343 3 3 S 15.133 36.424 13.477 36.424 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 57.637 13.273 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 53.449 c 1.657 0 3 1.343 3 3 S 59.294 13.273 57.637 13.273 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 64.909 20.546 c -5.664 0 -10.272 -4.608 -10.272 -10.273 S 59.245 0 64.909 0 c 5.665 0 10.273 4.608 10.273 10.273 S 70.574 20.546 64.909 20.546 z M 64.909 6 c -2.355 0 -4.272 1.917 -4.272 4.273 s 1.917 4.273 4.272 4.273 c 2.356 0 4.273 -1.917 4.273 -4.273 S 67.266 6 64.909 6 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 85.813 13.273 h -13.63 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 13.63 c 1.657 0 3 1.343 3 3 S 87.47 13.273 85.813 13.273 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 85.813 82.728 h -57.79 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 57.79 c 1.657 0 3 1.343 3 3 S 87.47 82.728 85.813 82.728 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 20.75 90 c -5.665 0 -10.273 -4.608 -10.273 -10.272 c 0 -5.665 4.608 -10.273 10.273 -10.273 s 10.273 4.608 10.273 10.273 C 31.022 85.392 26.414 90 20.75 90 z M 20.75 75.454 c -2.356 0 -4.273 1.917 -4.273 4.273 c 0 2.355 1.917 4.272 4.273 4.272 s 4.273 -1.917 4.273 -4.272 C 25.022 77.371 23.105 75.454 20.75 75.454 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 13.477 82.728 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 9.289 c 1.657 0 3 1.343 3 3 S 15.133 82.728 13.477 82.728 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}

#player-database-table th[data-sort="team"]:hover {
  background-color: #1a4b8c;
}

#player-database-table th[data-sort="team"].team-filter-active {
  background-color: #2c5aa0;
}

#player-database-table th[data-sort="team"].team-filter-active::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' width='256' height='256' viewBox='0 0 256 256' xml:space='preserve'%3e%3cg style='stroke: none; stroke-width: 0; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: none; fill-rule: nonzero; opacity: 1;' transform='translate(1.4065934065934016 1.4065934065934016) scale(2.81 2.81)'%3e%3cpath d='M 85.813 59.576 H 55.575 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 30.237 c 1.657 0 3 1.343 3 3 S 87.47 59.576 85.813 59.576 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 48.302 66.849 c -5.664 0 -10.272 -4.608 -10.272 -10.272 c 0 -5.665 4.608 -10.273 10.272 -10.273 c 5.665 0 10.273 4.608 10.273 10.273 C 58.575 62.24 53.967 66.849 48.302 66.849 z M 48.302 52.303 c -2.356 0 -4.272 1.917 -4.272 4.273 c 0 2.355 1.917 4.272 4.272 4.272 c 2.356 0 4.273 -1.917 4.273 -4.272 C 52.575 54.22 50.658 52.303 48.302 52.303 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 41.029 59.576 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 36.842 c 1.657 0 3 1.343 3 3 S 42.686 59.576 41.029 59.576 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 85.813 36.424 h -57.79 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 57.79 c 1.657 0 3 1.343 3 3 S 87.47 36.424 85.813 36.424 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 20.75 43.697 c -5.665 0 -10.273 -4.608 -10.273 -10.273 s 4.608 -10.273 10.273 -10.273 s 10.273 4.608 10.273 10.273 S 26.414 43.697 20.75 43.697 z M 20.75 29.151 c -2.356 0 -4.273 1.917 -4.273 4.273 s 1.917 4.273 4.273 4.273 s 4.273 -1.917 4.273 -4.273 S 23.105 29.151 20.75 29.151 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 13.477 36.424 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 9.289 c 1.657 0 3 1.343 3 3 S 15.133 36.424 13.477 36.424 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 57.637 13.273 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 53.449 c 1.657 0 3 1.343 3 3 S 59.294 13.273 57.637 13.273 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 64.909 20.546 c -5.664 0 -10.272 -4.608 -10.272 -10.273 S 59.245 0 64.909 0 c 5.665 0 10.273 4.608 10.273 10.273 S 70.574 20.546 64.909 20.546 z M 64.909 6 c -2.355 0 -4.272 1.917 -4.272 4.273 s 1.917 4.273 4.272 4.273 c 2.356 0 4.273 -1.917 4.273 -4.273 S 67.266 6 64.909 6 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 85.813 13.273 h -13.63 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 13.63 c 1.657 0 3 1.343 3 3 S 87.47 13.273 85.813 13.273 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 85.813 82.728 h -57.79 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 57.79 c 1.657 0 3 1.343 3 3 S 87.47 82.728 85.813 82.728 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 20.75 90 c -5.665 0 -10.273 -4.608 -10.273 -10.272 c 0 -5.665 4.608 -10.273 10.273 -10.273 s 10.273 4.608 10.273 10.273 C 31.022 85.392 26.414 90 20.75 90 z M 20.75 75.454 c -2.356 0 -4.273 1.917 -4.273 4.273 c 0 2.355 1.917 4.272 4.273 4.272 s 4.273 -1.917 4.273 -4.272 C 25.022 77.371 23.105 75.454 20.75 75.454 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3cpath d='M 13.477 82.728 H 4.188 c -1.657 0 -3 -1.343 -3 -3 s 1.343 -3 3 -3 h 9.289 c 1.657 0 3 1.343 3 3 S 15.133 82.728 13.477 82.728 z' style='stroke: none; stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-linejoin: miter; stroke-miterlimit: 10; fill: white; fill-rule: nonzero; opacity: 1;' transform=' matrix(1 0 0 1 0 0) ' stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

/* Player database toolbar buttons (toggle + open in new tab) - Override .btn and .btn-sm base classes */
#column-visibility-toggle.btn.btn-sm,
#open-player-database-new-tab.btn.btn-sm {
  min-width: 200px;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 1em;
  background-color: rgba(255, 255, 255, 0.9);
  min-width: 130px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
}

#column-visibility-toggle.btn.btn-sm:hover,
#open-player-database-new-tab.btn.btn-sm:hover {
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 1px var(--primary-color);
}

#column-visibility-toggle.btn.btn-sm:focus,
#open-player-database-new-tab.btn.btn-sm:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}