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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.needle-container {
    background: white;
    border-radius: 12px;
    padding: 30px 40px 25px 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.needle-label {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 6px;
}

.needle-value {
    font-size: 4em;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.expected-summary {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 12px;
    min-height: 30px;
}

#circles-svg {
    width: 100%;
    max-width: 600px;
    height: 200px;
    margin: 12px auto;
}

.circles-container {
    position: relative;
    margin: 12px 0 8px 0;
}

#tooltip-group {
    pointer-events: none;
    z-index: 1000;
}

#tooltip-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: block;
}

#expected-range {
    z-index: 1;
}

#current-line {
    z-index: 2;
}

#needle-line {
    z-index: 3;
}

.circle-number {
    cursor: pointer;
    transition: r 0.2s, stroke-width 0.2s;
}

.circle-number:hover {
    r: 10 !important;
    stroke: #000;
    stroke-width: 2;
}

.circle-number.active {
    stroke: #000;
    stroke-width: 2;
}

.key-and-filter {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin: 24px 0;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.status-key {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.key-label {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    font-size: 0.875rem;
}

.key-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.key-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.87);
    white-space: nowrap;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
    font-size: 0.875rem;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.23);
    background-color: rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    width: 40px;
    height: 40px;
}

.filter-chip:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
}

.filter-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    left: 0;
    top: 0;
}

.filter-emoji {
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.filter-chip:has(input[type="checkbox"]:checked) {
    background-color: rgba(25, 118, 210, 0.2);
    border-color: #1976d2;
}

.filter-chip:has(input[type="checkbox"]:checked):hover {
    background-color: rgba(25, 118, 210, 0.3);
}

.filter-chip:has(input[type="checkbox"]:not(:checked)) .filter-emoji {
    opacity: 0.4;
}

.cfbd-footer {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 1000;
}

.cfbd-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2), 0px 2px 2px 0px rgba(0,0,0,0.14), 0px 1px 5px 0px rgba(0,0,0,0.12);
    transition: background-color 0.2s, box-shadow 0.2s;
    text-transform: none;
}

.cfbd-button:hover {
    background: #1565c0;
    box-shadow: 0px 2px 4px -1px rgba(0,0,0,0.2), 0px 4px 5px 0px rgba(0,0,0,0.14), 0px 1px 10px 0px rgba(0,0,0,0.12);
}

.cfbd-icon {
    width: 24px;
    height: 24px;
}

.arc-label {
    font-size: 14px;
    fill: #666;
    font-weight: 500;
}

.cutoff-info {
    margin-top: 8px;
    font-size: 1.1em;
    color: #666;
    min-height: 30px;
}

.teams-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.conference-section {
    margin-bottom: 40px;
}

.conference-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.conference-logo {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    border-radius: 4px;
}

.conference-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a1a1a;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.team-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 60px;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-height: auto;
}

.team-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 4px;
}

.team-info {
    flex: 1;
}

.team-name {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.team-record {
    font-size: 0.85em;
    color: #666;
}

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

.team-card.filtered {
    display: none;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2em;
}

.error {
    text-align: center;
    padding: 40px;
    color: #f44336;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .needle-value {
        font-size: 3em;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
}


