* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    padding: 10px;
    font-size: 12px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border: 1px solid #000000;
    overflow: hidden;
}

.header {
    background: #cccccc;
    color: #000000;
    padding: 10px;
    border-bottom: 2px solid #000000;
}

.header h1 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold;
}

.header p {
    font-size: 11px;
}

.sports-tabs {
    display: flex;
    gap: 0;
    background: #cccccc;
    padding: 10px 10px 0;
    border-bottom: 2px solid #000000;
}
.sports-tab {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    color: #000000;
    background: #b0b0b0;
    border: 1px solid #000000;
    border-bottom: none;
    margin-bottom: -2px;
    cursor: pointer;
}
.sports-tab:hover {
    background: #c8c8c8;
}
.sports-tab.active {
    background: #ffffff;
    cursor: default;
}
.sports-tab-right {
    margin-left: auto;
}

.main-content {
    display: flex;
    flex-direction: row;
}

.controls {
    padding: 10px;
    background: #f0f0f0;
    width: 500px;
    flex-shrink: 0;
    overflow-y: auto;
}

.filters-panel {
    display: block;
    width: 100%;
}

.filter-group {
    display: block;
    margin-bottom: 15px;
    width: 100%;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 3px;
    color: #000000;
    font-size: 11px;
    display: block;
}

.filter-group select,
.filter-group input {
    padding: 3px;
    border: 1px solid #000000;
    font-size: 11px;
    background: white;
    width: 100%;
}

.filter-group input[type="checkbox"] {
    width: auto;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: 1px solid #0000ff;
}

.filter-group select[disabled] {
    background: #e0e0e0;
    cursor: not-allowed;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #cccccc;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #000000;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #000000;
    cursor: pointer;
    border: none;
}


.visualization-container {
    padding: 10px 0 10px 10px;
    overflow: auto;
    flex: 1;
    min-width: 0;
}

#heatmap-container {
    display: block;
    width: 100%;
    overflow: auto;
}

.tooltip {
    position: absolute;
    background: #ffffcc;
    color: #000000;
    padding: 5px;
    border: 1px solid #000000;
    pointer-events: none;
    font-size: 11px;
    z-index: 1000;
    opacity: 0;
}

.tooltip.visible {
    opacity: 1;
}

.tooltip h3 {
    margin-bottom: 3px;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
}

.tooltip p {
    margin: 2px 0;
    color: #000000;
}

.tooltip .highlight {
    color: #0000ff;
    font-weight: bold;
}

.legend {
    margin-top: 10px;
    text-align: center;
}

.legend-item {
    display: inline-block;
    margin: 0 10px;
    vertical-align: middle;
}

.legend-color {
    width: 20px;
    height: 15px;
    border: 1px solid #000000;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #000000;
    font-size: 12px;
}

.loading-spinner {
    border: 2px solid #cccccc;
    border-top: 2px solid #000000;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: inline-block;
}

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

.cell-label {
    font-size: 6px;
    fill: #000000;
    pointer-events: none;
    font-weight: normal;
}

.axis-label {
    font-size: 9px;
    fill: #000000;
    font-weight: bold;
}

.axis-tick {
    font-size: 7px;
    fill: #000000;
}

.axis-tick text {
    font-size: 8px;
    fill: #000000;
}

.axis-logos-x image,
.axis-logos-y image {
    pointer-events: none;
}

.no-data-message {
    text-align: center;
    padding: 20px;
    color: #000000;
    font-size: 12px;
}

.sports-footer {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 10px 20px;
    font-size: 11px;
    color: #333;
    border-top: 1px solid #ccc;
    background: #f8f8f8;
}

.sports-footer a {
    color: #0000ff;
    text-decoration: none;
}

.sports-footer a:hover {
    text-decoration: underline;
}
