/* Standings / Prediction toggle + Monte Carlo prediction views (bracket standings and score tables) */

.gs-view-toggle {
    display: inline-flex;
    padding: 2px;
    background: rgba(8, 8, 12, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

.gs-view-toggle_button {
    padding: 4px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
}

.gs-view-toggle_button:hover {
    color: #fff;
}

.gs-view-toggle_button.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.gs-view-toggle_button i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.gs-prediction_summary {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 12px 16px;
    background: rgba(8, 8, 12, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.gs-prediction_cutoff {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex: 0 0 auto;
}

.gs-prediction_label,
.gs-prediction_range {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.gs-prediction_value {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.gs-prediction_histogram {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 480px;
}

.gs-prediction_bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 56px;
}

.gs-prediction_bar {
    flex: 1 1 0;
    min-width: 2px;
    background: rgba(34, 197, 94, 0.35);
    border-radius: 2px 2px 0 0;
}

.gs-prediction_bar--median {
    background: rgba(34, 197, 94, 0.9);
}

.gs-prediction_axis {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.gs-prediction_meta {
    margin: 0 0 0.75rem;
    padding: 0 0.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.gs-prediction-table th:nth-child(3),
.gs-prediction-table td:nth-child(3),
.gs-prediction-table th:nth-child(4),
.gs-prediction-table td:nth-child(4) {
    width: 48px;
    text-align: right;
}

.gs-prediction-table td:nth-child(3) {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 600px) {
    .gs-prediction_summary {
        flex-direction: column;
        gap: 0.75rem;
    }

    .gs-prediction_histogram {
        max-width: none;
    }

    .gs-prediction-table th:nth-child(3),
    .gs-prediction-table td:nth-child(3),
    .gs-prediction-table th:nth-child(4),
    .gs-prediction-table td:nth-child(4) {
        width: 38px;
    }
}

/* Score tables (group pages) */
.score-table_view-toggle {
    display: flex;
    justify-content: center;
    margin: -0.25rem 0 1rem;
}

.score-table_prediction .gs-prediction_summary {
    margin: 0 0.5rem 1rem;
}

.score-table_prediction .gs-prediction_now {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.score-table_prediction .team-kills {
    font-size: 0.9rem;
}

.score-table_row.gs-prediction_row--cutoff {
    border-bottom: 2px dashed rgba(34, 197, 94, 0.6);
}

.score-table_prediction .gs-prediction_message {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}
