.playoff-series-section {
    --bracket-connector: var(--text-secondary);
    margin-top: 30px;
    margin-bottom: 2rem;
    max-width: 100%;
    min-width: 0;
}
[data-theme="dark"] .playoff-series-section {
    --bracket-connector: #c8c8c8;
}
[data-theme="dark"] .bracket-match {
    border-color: #8a8a8a;
}
.playoff-series-section h2 {
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.playoff-series-note {
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}
.playoff-series-round {
    margin-bottom: 1.5rem;
}
.playoff-series-round h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 0 0 0.75rem 0;
}
.playoff-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}
.playoff-series-team-chips {
    display: grid;
    grid-template-columns: repeat(var(--playoff-chip-count, 1), minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
.playoff-series-team-chips .playoff-series-card {
    min-width: 0;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
}
.playoff-series-team-chips .playoff-series-team img {
    width: 40px;
    height: 40px;
}
.playoff-series-team-chips .playoff-series-team.nhl img {
    width: 48px;
    height: 48px;
}
.playoff-series-team-chips .playoff-series-games {
    font-size: 0.8rem;
}
.playoff-series-bye {
    display: flex;
    flex-direction: column;
}
.playoff-series-bye-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.playoff-series-empty {
    border-style: dashed;
    box-shadow: none;
    opacity: 0.45;
}
@media (max-width: 700px) {
    .playoff-series-team-chips {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
.playoff-series-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px var(--shadow);
}
.playoff-series-card.in_progress {
    border-color: var(--text-primary);
}
.playoff-series-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.playoff-series-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.playoff-series-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    white-space: nowrap;
}
.playoff-series-status.in_progress {
    background: var(--text-primary);
    color: var(--bg-primary);
}
.playoff-series-matchup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.playoff-series-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: var(--text-primary);
}
.playoff-series-team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.playoff-series-team.nhl img {
    width: 56px;
    height: 56px;
}
.playoff-series-team .abbr {
    font-weight: 700;
}
.playoff-series-matchup .vs {
    font-weight: 700;
    color: var(--text-secondary);
    flex: 0 0 auto;
}
.playoff-series-score-line {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.playoff-series-games {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}
.playoff-series-games li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.playoff-series-games .game-num {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--text-primary);
}
.playoff-series-games .game-matchup {
    flex: 1;
    min-width: 0;
}
.playoff-series-games .game-score {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}
.playoff-series-games .badge {
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
}
@media (max-width: 768px) {
    .playoff-series-team img {
        width: 40px;
        height: 40px;
    }
    .playoff-series-team.nhl img {
        width: 48px;
        height: 48px;
    }
}

.playoff-bracket-wrap {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 8px;
    box-sizing: border-box;
}
.playoff-bracket {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
    width: max-content;
    min-width: min-content;
    margin-inline: 0;
    transform-origin: top left;
    transform: scale(var(--bracket-scale, 1));
}
.playoff-bracket-split {
    flex-direction: row;
    align-items: center;
    gap: 0;
}
.bracket-final-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.bracket-final-anchor {
    position: relative;
}
.playoff-bracket-split > .bracket-final-column {
    margin: 0 18px;
    align-self: stretch;
    display: grid;
    grid-template-rows: 1fr auto minmax(min-content, 1fr);
    justify-items: center;
}
.playoff-bracket-split > .bracket-final-column > .bracket-final-anchor {
    grid-row: 2;
}
.playoff-bracket-split > .bracket-final-column > .bracket-champion {
    grid-row: 3;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 196px;
    max-width: 196px;
    overflow: visible;
}
.playoff-bracket-split > .bracket-final-column .bracket-match::before,
.playoff-bracket-split > .bracket-final-column .bracket-match::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 18px;
    border-top: 2px solid var(--bracket-connector);
}
.playoff-bracket-split > .bracket-final-column .bracket-match::before {
    left: -18px;
}
.playoff-bracket-split > .bracket-final-column .bracket-match::after {
    right: -18px;
}
.bracket-node {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.bracket-node.rtl {
    flex-direction: row-reverse;
}
.bracket-children {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: stretch;
    position: relative;
    padding-right: 14px;
}
.bracket-children > .bracket-node {
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
}
.bracket-node.rtl > .bracket-children {
    padding-right: 0;
    padding-left: 14px;
}
.bracket-node.has-children > .bracket-children::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    border-right: 2px solid var(--bracket-connector);
}
.bracket-node.rtl.has-children > .bracket-children::after {
    right: auto;
    left: 0;
    border-right: none;
    border-left: 2px solid var(--bracket-connector);
}
.bracket-match {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 148px;
    min-width: 148px;
    max-width: 148px;
    box-sizing: border-box;
    margin: 6px 0;
    flex-shrink: 0;
    box-shadow: 0 2px 4px var(--shadow);
    overflow: visible;
}
.bracket-match-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    padding: 4px 8px 2px;
    white-space: normal;
    line-height: 1.2;
    border-radius: 5px 5px 0 0;
    background: var(--bg-primary);
}
.bracket-line:last-of-type {
    border-radius: 0 0 5px 5px;
}
.bracket-node.has-children > .bracket-match,
.bracket-node.has-children > .bracket-final-column {
    margin-left: 14px;
}
.bracket-node.rtl.has-children > .bracket-match,
.bracket-node.rtl.has-children > .bracket-final-column {
    margin-left: 0;
    margin-right: 14px;
}
.bracket-node.has-children > .bracket-match::before,
.bracket-node.has-children > .bracket-final-column .bracket-match::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 14px;
    border-top: 2px solid var(--bracket-connector);
}
.bracket-node.rtl.has-children > .bracket-match::before,
.bracket-node.rtl.has-children > .bracket-final-column .bracket-match::before {
    left: auto;
    right: -14px;
}
.bracket-match.rtl .bracket-line {
    flex-direction: row-reverse;
}
.bracket-match.featured {
    width: 196px;
    min-width: 196px;
    max-width: 196px;
    border-width: 2px;
}
.bracket-match.featured .bracket-match-label {
    font-size: 0.8rem;
    padding: 6px 10px 4px;
}
.bracket-match.featured .bracket-line {
    padding: 8px 12px;
    gap: 8px;
}
.bracket-match.featured .bracket-line img {
    width: 32px;
    height: 32px;
}
.bracket-match.featured .bracket-line img.nhl {
    width: 40px;
    height: 40px;
}
.bracket-match.featured .bracket-line .abbr,
.bracket-match.featured .bracket-line .w {
    font-size: 1.15rem;
}
.bracket-champion {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 196px;
    max-width: 196px;
    box-sizing: border-box;
    text-align: center;
    pointer-events: auto;
    overflow: visible;
}
.bracket-champion a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-primary);
}
.bracket-champion img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.bracket-champion img.nhl {
    width: 88px;
    height: 88px;
}
.bracket-champion-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: break-word;
}
.bracket-champion-label {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
}
.bracket-match.in_progress {
    border-color: var(--text-primary);
}
.playoff-bracket.has-scope .bracket-match:not(.out-of-scope) {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 2px var(--text-primary), 0 2px 4px var(--shadow);
    z-index: 1;
}
.playoff-bracket.has-scope .bracket-match.out-of-scope {
    opacity: 0.38;
}
.playoff-bracket.has-scope .bracket-match.out-of-scope .bracket-line img {
    filter: grayscale(0.65);
}
.playoff-series-card.out-of-scope {
    opacity: 0.4;
}
[data-theme="dark"] .playoff-bracket.has-scope .bracket-match:not(.out-of-scope) {
    box-shadow: 0 0 0 2px #c8c8c8, 0 2px 4px var(--shadow);
}
.bracket-match-chip {
    display: none;
    position: fixed;
    z-index: 500;
    width: 280px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    overflow: auto;
    pointer-events: auto;
}
.bracket-match-chip.is-open {
    display: block;
}
.bracket-match-chip .playoff-series-card {
    margin: 0;
    box-shadow: 0 8px 24px var(--shadow);
    opacity: 1;
}
.bracket-match-chip .playoff-series-team img {
    width: 40px;
    height: 40px;
}
.bracket-match-chip .playoff-series-team.nhl img {
    width: 48px;
    height: 48px;
}
.bracket-match-chip .playoff-series-games {
    font-size: 0.8rem;
}
.bracket-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    text-decoration: none;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}
.bracket-line img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.bracket-line img.nhl {
    width: 26px;
    height: 26px;
}
.bracket-line .abbr {
    font-weight: 700;
    flex: 1;
    min-width: 0;
}
.bracket-line .w {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.bracket-line.winner {
    background: var(--bg-secondary);
}
.playoff-series-unplaced-heading {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin: 1.25rem 0 0.75rem;
}
