/* Playoff mode: bracket + series cards */

/* ── Page layout ── */
.playoff-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.playoff-header {
    text-align: center;
    margin-bottom: 24px;
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playoff-header h1 { margin: 6px 0 4px; font-size: 1.6em; color: #1a1a1a; }
.playoff-header .subtitle { color: #666; font-size: 14px; margin: 0; }
.playoff-header .site-brand { color: #4a6fa5; text-decoration: none; font-size: 14px; }

/* ── Round labels ── */
.round-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0 12px;
    margin-bottom: 8px;
    text-align: center;
}

.round-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}

/* ── Bracket grid ── */
.bracket {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0 12px;
    margin-bottom: 24px;
}

.bracket-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* ── Conference labels ── */
.conf-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 4px 0;
    text-align: center;
}

.conf-label.east { color: #0066cc; }

.conf-label.west {
    color: #dc3545;
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 10px;
}

/* ── Series card ── */
.series-card {
    background: #fff;
    border-radius: 6px;
    margin: 4px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    font-size: 12px;
}

.series-card.pending {
    background: #f5f5f5;
    opacity: 0.35;
    box-shadow: none;
}

/* ── Team row ── */
.series-team {
    display: grid;
    grid-template-columns: 20px 42px 46px 50px 1fr auto auto;
    column-gap: 6px;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.series-card.pending .series-team {
    border-bottom-color: #e8e8e8;
}

.series-team:last-child,
.series-team + .series-footer {
    /* handled by footer borders */
}

.series-team.loser {
    opacity: 0.45;
}

.series-logo {
    grid-column: 1;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.series-logo-placeholder {
    grid-column: 1;
    width: 20px;
    height: 20px;
    background: #ddd;
    border-radius: 50%;
    flex-shrink: 0;
}

.series-abbr {
    grid-column: 2;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    justify-self: start;
}

.series-abbr:hover {
    text-decoration: underline;
}

.series-team.loser .series-abbr {
    color: #999;
}

.series-abbr-tbd {
    grid-column: 2;
    color: #999;
    font-weight: 500;
    justify-self: start;
}

.series-prob-chip {
    grid-column: 3;
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: #0066cc;
    padding: 1px 6px;
    border-radius: 10px;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    justify-self: start;
}

.series-team.loser .series-prob-chip {
    display: none;
}

.cup-badge {
    grid-column: 4;
    font-size: 9px;
    color: #777;
    background: #f3f4f6;
    padding: 1px 4px;
    border-radius: 8px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    justify-self: start;
}

.cup-badge-icon {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

.series-team.loser .cup-badge {
    display: none;
}

.series-spacer {
    grid-column: 5;
}

/* ── Game result dots ── */
.game-dots {
    grid-column: 6;
    display: flex;
    gap: 2px;
    margin-right: 8px;
    align-items: center;
    flex-shrink: 0;
}

.game-dot {
    width: 6px;
    height: 14px;
    border-radius: 2px;
    display: inline-block;
}

.game-dot.win { background: #60d394; }
.game-dot.loss { background: #ee6055; }

/* ── Series win count ── */
.series-wins {
    grid-column: 7;
    font-weight: 700;
    font-size: 14px;
    min-width: 14px;
    text-align: right;
    color: #333;
    flex-shrink: 0;
}

.series-wins.clinched {
    color: #28a745;
}

.series-team.loser .series-wins {
    color: #999;
}

.series-card.pending .series-wins {
    color: #ccc;
    font-size: 14px;
}

/* ── Series footer ── */
.series-footer {
    padding: 5px 10px;
    font-size: 10px;
    color: #888;
    background: #fafafa;
}

.series-footer.complete {
    color: #28a745;
    background: #f0fff4;
    font-weight: 500;
}

/* ── Today's games ── */
.todays-games {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 16px 20px;
}

.todays-games h3 {
    margin: 0 0 12px;
    font-size: 1em;
    color: #1a1a1a;
}

.todays-games ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.todays-games li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.todays-games li:last-child { border-bottom: none; }

.today-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.today-team { font-weight: 600; color: #333; }
.today-at { color: #999; font-size: 12px; }
.today-time { color: #888; margin-left: auto; font-size: 12px; }

.no-games { color: #888; font-size: 13px; margin: 0; }

/* ── Team detail playoff page ── */
.series-detail { margin-bottom: 32px; }

.series-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.matchup-team { display: flex; align-items: center; gap: 12px; }
.matchup-team .abbr { font-size: 24px; font-weight: 700; }
.matchup-team .wins { font-size: 36px; font-variant-numeric: tabular-nums; }
.matchup-team .prob { font-size: 12px; color: #666; }
.vs { font-size: 18px; color: #999; }
.team-logo { width: 48px; height: 48px; }
.series-games { list-style: none; padding: 0; }
.series-games li { padding: 6px 0; border-bottom: 1px solid #eee; }
.series-games li.upcoming { color: #888; }

.path-tiles { display: flex; gap: 12px; margin-top: 12px; }

.path-tile {
    flex: 1;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.path-tile.status-pending { opacity: 0.35; }
.path-tile.status-active { border-color: #4a90e2; background: #f0f7ff; }
.path-tile.status-complete { background: #f5f5f5; }
.round-labels + .bracket .round-label { display: none; } /* avoid conflict with path-tile round-label */

.path-tile .round-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
}
