.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.player-selection {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.player-select {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-select-container {
    width: 100%;
    margin-top: 10px;
}

.league-select, .season-select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.season-select {
    margin-left: 0;
}

.select-controls {
    display: flex;
    gap: 5px;
    width: 100%;
}

.player-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.player-info img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.bar-chart-container {
    width: 100%;
    margin-top: 30px;
}

.stat-bar {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.stat-name {
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.bar {
    height: 30px;
    width: 70%;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    margin: 0 auto;
}

.player1-bar {
    height: 100%;
    background-color: #15607A;
    position: relative;
    z-index: 1;
}

.player2-bar {
    height: 100%;
    background-color: #65E0BA;
    position: relative;
    z-index: 1;
}

.stat-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.loading-spinner {
    margin: 50px auto;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 8px;
}

.section-title {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.player-names-header {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: 0 auto 30px auto;
    font-weight: bold;
}

.player-season {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 160px;
}

.player-season img {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    object-fit: contain;
}

.player-season .player-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 3px;
}

.player-season .competition {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 2px;
}

.player-season .season {
    font-size: 0.85em;
    color: #666;
}

/* Stats selector styling improvements */
.stats-selector {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stats-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.stats-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
}

.stats-selector label:hover {
    background-color: #f0f0f0;
}

.stats-selector input:checked + span {
    font-weight: bold;
    color: #3498db;
}

/* Searchable dropdown styles */
.select-container {
    position: relative;
    width: 100%;
}

.select-search {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    display: none;
}

.select-dropdown.show {
    display: block;
}

.select-option {
    padding: 10px;
    cursor: pointer;
}

.select-option:hover {
    background-color: #f5f5f5;
}

/* Stats selector dropdown styling */
.stats-dropdown {
    position: relative;
    margin: 20px 0;
}

.stats-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.stats-dropdown-button:hover {
    background-color: #f0f0f0;
}

.stats-dropdown-button:after {
    content: '▼';
    font-size: 12px;
    margin-left: 10px;
}

.stats-dropdown-button.active:after {
    content: '▲';
}

.stats-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    margin-top: -1px;
    display: none;
}

.stats-dropdown-content.show {
    display: block;
}

.stats-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.stats-action-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

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

.selected-stats-preview {
    font-size: 14px;
    color: #555;
    margin-left: 10px;
}

.no-data-message {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}