@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;700&family=Noto+Sans:wght@400;700&display=swap');

:root {
    --bg-color: #0e1113;
    --primary-color: #1C1D21;
    --secondary-color: #2B2D31;
    --text-color: #D7DADC;
    --header-color: #FFFFFF;
    --accent-color: #FF4500;
    --border-color: #343536;
    --subtle-text-color: #aaa; /* New variable */
    --slider-thumb-bg: var(--primary-color); /* New variable for slider thumb background */
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6, .section-title {
    font-family: 'IBM Plex Sans', sans-serif;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--header-color);
    font-size: 2.5em;
    margin-bottom: 5px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

.controls {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.control-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: bold;
}

input[type="text"], input[type="number"], select, button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1em;
}

input[type="text"] {
    width: 250px;
}

button {
    cursor: pointer;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
    border: none;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #E53E00;
}

#leaderboard-button {
}

#player-suggestions {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 60px;
    width: 274px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: var(--accent-color);
}

nav {
    margin-top: 20px;
    border-bottom: 1px solid var(--border-color);
}

.nav-tab {
    display: inline-block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    background-color: var(--secondary-color);
    margin-right: 5px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    position: relative;
    top: 1px;
}

.nav-tab.active {
    background-color: var(--primary-color);
    color: var(--header-color);
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: -1px;
}

#stats-content-display, #leaderboards-content-display {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
}


.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.8em;
}

.stats-table th, .stats-table td {
    padding: 8px 5px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.stats-table th {
    background-color: var(--secondary-color);
    font-weight: bold;
}

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

.stats-table tr:hover {
    background-color: var(--secondary-color);
}

.stats-table td:first-child, .stats-table th:first-child {
    font-weight: bold;
}

.section-title {
    color: var(--header-color);
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.player-id-display {
    font-size: 0.9em;
    color: var(--subtle-text-color); /* Updated */
    margin-top: -10px;
    margin-bottom: 10px;
}

.former-names {
    font-style: italic;
    color: var(--subtle-text-color); /* Updated */
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Loader */
.loader-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 9999;
}
.loader { 
    border: 8px solid var(--secondary-color); border-top: 8px solid var(--accent-color);
    border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Scouting Report */
.scouting-report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 900px) {
    .scouting-report-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.scouting-report-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scouting-section {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 6px;
}

.scouting-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.scouting-section h3 {
    margin: 0;
}

/* Info Items (used for Favorite Pitches and Tendencies) */
.horizontal-items-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

.info-item-value {
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
}

.info-item-label {
    font-size: 0.9em;
    color: var(--text-color);
}

.histogram-header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.histogram-n-value {
    font-size: 0.9em;
    color: var(--text-color);
    white-space: nowrap;
}



.career-row {
    font-weight: bold;
    border-top: 2px solid var(--accent-color);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.leaderboard-card {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 6px;
}

.leaderboard-card h4 {
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.qualifier {
    font-size: 0.8em;
    color: var(--subtle-text-color); /* Updated */
    margin-top: -8px;
    margin-bottom: 10px;
}

.tie-info {
    text-align: center !important;
    font-style: italic;
    color: var(--subtle-text-color); /* Updated */
}

#stats-controls {
    justify-content: flex-end;
}
.player-team-logo {
    height: 40px;
    width: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

.sub-row {
    font-size: 0.8em; /* Slightly smaller */
    font-style: italic; /* Add italic for more distinction */
    color: var(--subtle-text-color); /* Updated */
}

.sub-row td:first-child {
    padding-left: 25px !important;
}


#glossary-view {
    display: flex;
    gap: 20px;
    background-color: transparent;
    padding: 0;
}

#glossary-sidebar {
    width: 250px;
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    height: fit-content;
}

.glossary-stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glossary-stat-list li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
}

.glossary-stat-list li:hover {
    background-color: var(--secondary-color);
}

.glossary-stat-list li.active {
    background-color: var(--accent-color);
    color: #fff;
    font-weight: bold;
}

#glossary-content {
    flex: 1;
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
}

#glossary-content h4 {
    margin-top: 15px;
    margin-bottom: 5px;
}

#glossary-content ul {
    padding-left: 20px;
    margin: 0;
}

#glossary-content li {
    margin-bottom: 10px;
}

.equation {
    background-color: var(--secondary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1em;
    text-align: center;
    border: 1px solid var(--border-color);
}

.chart-container {
    margin-bottom: 20px;
}

.histogram-select {
    background-color: var(--primary-color);
}

/* Glossary Sidebar Groups */
.glossary-group-header {
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.glossary-group-header .arrow {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s ease-in-out;
}

.glossary-group-header.expanded .arrow {
    transform: rotate(90deg);
}

.glossary-stat-list.collapsed {
    display: none;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.team-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.team-list-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.team-list-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    object-fit: contain;
}

.team-list-name {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-color);
}

.team-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 20px; /* Add space below the header */
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.season-nav-buttons {
    display: flex;
    gap: 15px; /* Space between buttons */
}

.season-nav-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.season-nav-button:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* Adjust title margin for better alignment */
.team-stats-header .section-title {
    margin-bottom: 0; /* Remove bottom margin to align with buttons */
    border-bottom: none; /* Remove the border from the title in this context */
}

/* Standings specific styles */
.division-title {
    color: var(--header-color);
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.standings-table {
    margin-bottom: 20px;
}

.standings-table th, .standings-table td {
    text-align: left; /* Align text left for standings table */
}

.standings-table td:first-child {
    display: flex;
    align-items: center;
}

.standings-logo {
    height: 24px;
    width: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.standings-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columns, responsive */
    gap: 20px;
    margin-top: 20px;
}

.division-standings-container {
    background-color: var(--primary-color); /* Or secondary-color */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team-link {
    cursor: pointer;
    text-decoration: underline;
    color: var(--text-color);
}

.team-link:hover {
    color: var(--accent-color);
}

/* Make season selector dropdown in title smaller */
.title-season-select {
    font-size: 1rem;
    font-weight: normal;
    vertical-align: middle;
    margin-left: 10px;
}

.welcome-container {
    background-color: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
}

.welcome-container ul {
    list-style: disc;
    margin-left: 20px;
    padding: 0;
}

.welcome-container li {
    margin-bottom: 5px;
}

.welcome-container li {
    margin-bottom: 5px;
}

.action-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button:hover {
    background-color: #E53E00;
}

.action-button:hover {
    background-color: #E53E00;
}

.action-item {
    background-color: var(--secondary-color);
}

.featured-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.featured-item {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 200px; /* Adjusted min-width */
}

.featured-item h4 {
    margin-top: 0;
    color: var(--accent-color);
}

.featured-item p {
    margin: 5px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.featured-player-season-range {
    font-size: 0.9em;
    color: var(--subtle-text-color); /* New Variable */
    margin-top: -5px;
}

.featured-item img {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 10px;
}

.welcome-container ul li a {
    text-decoration: underline;
}

.player-info p {
    margin: 2px 0; /* Adjust as needed */
}

.player-info {
    margin-bottom: 10px; /* Adjust as needed */
}

.disabled-input {
    color: #888; /* Gray text */
    cursor: not-allowed;
}

input:disabled {
    color: #888; /* Apply to input value */
    -webkit-text-fill-color: #888; /* For some browsers like Safari */
    opacity: 1; /* Prevent default browser opacity change */
}

:root.light-mode {
    --bg-color: #f0f2f5;
    --primary-color: #ffffff;
    --secondary-color: #e9ecef;
    --text-color: #0e1113;
    --header-color: #000000;
    --accent-color: #FF4500;
    --border-color: #ced4da;
    --subtle-text-color: #555; /* New variable for light mode */
    --slider-thumb-bg: white; /* New variable for slider thumb background in light mode */
}

.theme-switch-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--slider-thumb-bg);
    transition: .4s;
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FF4500" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>');
}

.awards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.award-box {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    border: 1px solid var(--border-color);
}

.award-hof {
    background-color: #D4AF37; /* Gold */
    color: #000;
    border-color: #B8860B; /* Darker Gold */
}

.award-mvp, .award-cya {
    background-color: var(--accent-color);
    color: #fff;
    border-color: #E53E00;
}

/* Awards Page */
.awards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.awards-header .section-title {
    border-bottom: none;
}

.award-team-logo {
    width: 24px;
    height: 24px;
}

#awards-view .awards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
}

.league-toggle-buttons {
    display: none;
    gap: 10px;
    margin-bottom: 20px;
}

.league-toggle-button {
    flex-grow: 1;
    padding: 10px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}
.league-toggle-button.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.leagues-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .leagues-wrapper {
        grid-template-columns: 1fr;
    }
    .league-toggle-buttons {
        display: flex;
    }
    .leagues-wrapper.show-al .league-column.league-nl {
        display: none;
    }
    .leagues-wrapper.show-nl .league-column.league-al {
        display: none;
    }
}

.league-column {
    display: flex;
    flex-direction: column;
}

.league-title {
    font-size: 1.5em;
    text-align: center;
    color: var(--header-color);
    margin-bottom: 15px;
}

.awards-sub-title {
    font-size: 1.2em; /* Smaller than league-title, larger than inner h5/h4 */
    text-align: center;
    color: var(--header-color);
    margin-top: 20px; /* Space above the sub-title */
    margin-bottom: 15px; /* Space below the sub-title before the box */
}

.award-category {
    margin-bottom: 0;
}

.award-category h4 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.award-winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.award-winner-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.awards-section {
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
}

.awards-section-title {
    font-size: 1.5em;
    text-align: center;
    color: var(--header-color);
    margin-bottom: 15px;
}

.award-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.awards-major-section {
    margin-bottom: 0;
}

.awards-major-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.award-category h5 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.awards-major-row .award-category {
    text-align: center;
}

.awards-major-row .award-winner-item {
    justify-content: center;
}

.all-star-winners-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* New styles for Silver Slugger awards */
.ss-winners-list {
    display: block;
}

@media (min-width: 768px) {
    .ss-winners-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.ss-winners-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ss-winners-col + .ss-winners-col {
    margin-top: 8px;
}
@media (min-width: 768px) {
    .ss-winners-col + .ss-winners-col {
        margin-top: 0;
    }
}

.award-winner-item-pos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.award-position-label {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--header-color);
    width: 30px;
    flex-shrink: 0;
}

.award-player-info-pos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.award-player-item-pos {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* All-Star Team Layout */
.all-star-team {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.as-section h5 {
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.2em;
}

.as-gms {
    text-align: left;
}

.as-gm-list {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.as-main-roster {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .as-main-roster {
        grid-template-columns: 1fr 1fr;
    }
}

.as-player-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-starters .award-winner-item .award-position-label {
    width: 30px;
    flex-shrink: 0;
    font-weight: bold;
    color: var(--header-color);
}

.as-reserves-list {
    display: block;
}

@media (min-width: 768px) {
    .as-reserves-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.as-reserves-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-reserves-col + .as-reserves-col {
    margin-top: 8px;
}
@media (min-width: 768px) {
    .as-reserves-col + .as-reserves-col {
        margin-top: 0;
    }
}

.awards-sub-section {
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
}

/* Hall of Fame Page */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); /* Max 5 columns on wide screens */
    gap: 20px;
    padding: 20px 0;
}

.hof-player-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hof-player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.hof-player-card .player-link {
    text-decoration: none;
    color: var(--text-color);
}

.hof-player-logo-container {
    width: 80px; /* Smaller logo */
    height: 80px; /* Smaller logo */
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hof-player-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hof-placeholder-logo {
    width: 80px; /* Smaller placeholder */
    height: 80px; /* Smaller placeholder */
    background-color: var(--primary-color);
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--subtle-text-color);
}

.hof-placeholder-logo::after {
    content: '?';
    font-size: 2em;
    font-weight: bold;
}

.hof-player-card p {
    margin: 0;
    font-size: 1.3em; /* Bigger name */
    font-weight: bold;
}

/* Hall of Fame Note */
.hof-note {
    text-align: left;
    color: var(--subtle-text-color);
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Responsive tables with sticky columns */
@media (max-width: 900px) {
    .stats-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .stats-table {
        white-space: nowrap;
    }
    .stats-table th,
    .stats-table td {
        padding: 8px 12px;
    }

    .sticky-col {
        position: -webkit-sticky;
        position: sticky;
        z-index: 1;
    }
    .stats-table th.sticky-col {
        background-color: var(--secondary-color);
        z-index: 2;
    }
    .stats-table td.sticky-col {
        background-color: var(--primary-color);
    }
    .stats-table tr:hover .sticky-col {
        background-color: var(--secondary-color);
    }

    .col-0 { left: 0; }
    /* .col-1 left offset is set by JS */
}

/* Custom Scrollbar for dark mode */
.stats-table-container::-webkit-scrollbar {
    height: 8px; /* height of horizontal scrollbar */
}

.stats-table-container::-webkit-scrollbar-track {
    background: var(--primary-color); /* background of the scrollbar track */
    border-radius: 10px;
}

.stats-table-container::-webkit-scrollbar-thumb {
    background: var(--border-color); /* color of the scroll thumb */
    border-radius: 10px;
}

.stats-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--subtle-text-color); /* color of the scroll thumb on hover */
}

/* Firefox scrollbar styles */
.stats-table-container {
    scrollbar-color: var(--border-color) var(--primary-color);
    scrollbar-width: thin;
}