/* ==========================================================================
   Playoff Bracket
   ========================================================================== */

.playoff-bracket-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.playoff-conference {
    background: var(--theme-bg-panel);
    border: 1px solid var(--theme-border-strong);
}

.playoff-conference-header {
    padding: 6px 12px;
    font-size: var(--text-lg);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    border-bottom: 1px solid var(--theme-border-strong);
    background: var(--theme-bg-panel);
}

.playoff-rounds {
    display: flex;
    align-items: stretch;
    padding: 12px;
    gap: 0;
}

.playoff-round {
    flex: 1;
    min-width: 0;
}

.playoff-round-label {
    font-size: var(--text-micro);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: center;
}

.playoff-round-matchups {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.playoff-round-r2 {
    justify-content: space-around;
    height: 100%;
}

.playoff-round-cf {
    justify-content: center;
    height: 100%;
}

.playoff-matchup {
    border: 1px solid var(--theme-border-strong);
    background: var(--theme-bg-surface, var(--theme-bg-panel));
}

.playoff-matchup-tbd {
    border-style: dashed;
}

.playoff-seed {
    padding: 4px 8px;
    font-size: var(--text-sm);
    font-weight: 800;
    min-height: 24px;
    display: flex;
    align-items: center;
    background: var(--theme-bg-surface, var(--theme-bg-panel));
}

.playoff-seed-top {
    border-bottom: 1px solid var(--theme-border-strong);
}

.playoff-seed-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.playoff-seed-abbrev {
    font-weight: 900;
    min-width: 28px;
}

.playoff-seed-record {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
}

.playoff-seed-pts {
    margin-left: auto;
    font-size: var(--text-xs);
    font-weight: 900;
    color: var(--text-muted);
}

.playoff-tbd {
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 600;
    font-style: italic;
}

.playoff-matchup-label {
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    text-align: center;
    padding: 2px 4px;
    border-top: 1px solid var(--theme-border-strong);
    background: var(--theme-bg-surface, var(--theme-bg-panel));
}

/* Connectors between rounds */
.playoff-connectors {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 20px;
    flex-shrink: 0;
}

.playoff-connector-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.playoff-connector-line {
    width: 100%;
    height: 0;
    border-top: 1px dashed var(--theme-border-strong);
}

/* Stack playoffs when box score panel is open */
.content-area:has(.detail-column-boxscore) .playoff-bracket-container,
.content-area:has(.detail-column-boxscore-split) .playoff-bracket-container {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .playoff-bracket-container {
        grid-template-columns: 1fr;
    }
    .playoff-rounds {
        flex-wrap: wrap;
        gap: 12px;
    }
    .playoff-connectors {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Playoff bracket (Chunk 7)
   -------------------------------------------------------------------------- */
.bracket-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bracket-conf {
    background: #fff;
    border: 1px solid #000;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #c0c0c0;
    padding: 8px;
}
.bracket-conf-title {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    background: #000;
    color: #fff;
    margin: -8px -8px 8px -8px;
}
.bracket-seed {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-bottom: 1px solid #eee;
}
.bracket-seed:last-child { border-bottom: none; }
.bracket-seed-num {
    font-size: 9px;
    font-weight: 900;
    color: #666;
    min-width: 14px;
    text-align: center;
}
.bracket-team-abbrev {
    font-size: var(--text-xs);
    font-weight: 900;
    color: #000;
    min-width: 30px;
}
.bracket-team-name {
    font-size: var(--text-2xs);
    color: #666;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bracket-pts {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--theme-accent-secondary);
    min-width: 28px;
    text-align: right;
}
.bracket-div {
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    min-width: 24px;
}
