.playoff-wrapper {
    padding: 1.5rem 0 3rem;
}

.playoff-page-header,
.playoff-bracket-heading,
.playoff-category-card,
.playoff-selector-card,
.playoff-mobile-card,
.playoff-admin-series-card,
.playoff-series-card {
    border-radius: 18px;
}

.playoff-page-header {
    align-items: center;
    background: linear-gradient(135deg, rgba(35, 53, 84, 0.96), rgba(125, 149, 179, 0.92));
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1.75rem;
}

.playoff-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.35rem;
    opacity: 0.78;
    text-transform: uppercase;
}

.playoff-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.playoff-page-subtitle {
    margin-bottom: 0;
    max-width: 640px;
    opacity: 0.88;
}

.playoff-selector-card,
.playoff-category-card,
.playoff-bracket-block,
.playoff-mobile-card {
    background: #fff;
    box-shadow: 0 14px 32px rgba(23, 31, 52, 0.08);
}

.playoff-selector-card {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem 1.25rem;
}

.playoff-selector-label {
    color: #4f5d75;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.playoff-category-card {
    background: linear-gradient(180deg, #ffffff, #f3f6fb);
    border: 1px solid rgba(35, 53, 84, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: space-between;
    padding: 1.5rem;
}

.playoff-category-class,
.playoff-bracket-kicker {
    color: #c47e1a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.playoff-category-title,
.playoff-bracket-title {
    color: #1f2f4a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.playoff-category-copy {
    color: #5d6a80;
    margin-bottom: 0;
}

.playoff-category-link {
    align-self: flex-start;
}

.playoff-cup-tabs {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.playoff-cup-tabs .nav-link {
    border: 1px solid rgba(31, 47, 74, 0.12);
    border-radius: 999px;
    color: #1f2f4a;
    font-weight: 700;
    padding: 0.65rem 1.1rem;
}

.playoff-cup-tabs .nav-link.active {
    background: #1f2f4a;
    color: #fff;
}

.playoff-bracket-block {
    border: 1px solid rgba(35, 53, 84, 0.08);
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.playoff-bracket-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.playoff-bracket-badge {
    background: #eef2f8;
    border-radius: 999px;
    color: #1f2f4a;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
}

.playoff-bracket {
    align-items: start;
    column-gap: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.playoff-round-header,
.playoff-mobile-phase-header {
    color: #1f2f4a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.playoff-round-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playoff-series-card {
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
    border: 1px solid rgba(35, 53, 84, 0.12);
    padding: 1rem;
    position: relative;
}

.playoff-series-card-pending {
    border-style: dashed;
}

.playoff-series-label {
    color: #6b778d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.playoff-team-row {
    align-items: center;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.5rem;
}

.playoff-team-main {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    min-width: 0;
}

.playoff-team-logo {
    background: #dbe3ef;
    border-radius: 50%;
    flex: 0 0 38px;
    height: 38px;
    object-fit: cover;
    width: 38px;
}

.playoff-team-logo-placeholder {
    align-items: center;
    color: #1f2f4a;
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    justify-content: center;
}

.playoff-team-logo-empty {
    background: transparent;
    opacity: 0;
}

.playoff-team-name {
    color: #1f2f4a;
    font-weight: 600;
    line-height: 1.2;
}

.playoff-score {
    color: #1f2f4a;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    text-align: right;
}

.playoff-winner {
    background: rgba(196, 126, 26, 0.12);
}

.playoff-series-meta {
    color: #42516a;
    font-size: 0.92rem;
    font-weight: 600;
    margin-top: 0.6rem;
}

.playoff-series-extra {
    color: #6b778d;
    font-size: 0.84rem;
    margin-top: 0.3rem;
}

.playoff-mobile-card {
    padding: 1rem;
}

.playoff-mobile-nav {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 44px 1fr 44px;
    margin-bottom: 1rem;
}

.playoff-mobile-title {
    color: #1f2f4a;
    font-weight: 700;
    text-align: center;
}

.playoff-mobile-phase .playoff-series-card + .playoff-series-card {
    margin-top: 0.85rem;
}

.playoff-admin-phase-card .card-body {
    background: #f8fafc;
}

.playoff-admin-series-card {
    background: #fff;
    border: 1px solid rgba(35, 53, 84, 0.1);
    margin-bottom: 1rem;
    padding: 1rem;
}

.playoff-admin-series-header {
    color: #1f2f4a;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

@media (min-width: 768px) {
    .playoff-bracket {
        --playoff-round-slot: 11rem;
        align-items: start;
        column-gap: 2rem;
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        grid-template-rows: auto repeat(4, minmax(var(--playoff-round-slot), auto));
        row-gap: 1rem;
    }

    .playoff-round {
        display: contents;
    }

    .playoff-round-header {
        margin-bottom: 0;
    }

    .playoff-round-cuartos .playoff-round-header {
        grid-column: 1;
        grid-row: 1;
    }

    .playoff-round-semifinal .playoff-round-header {
        grid-column: 2;
        grid-row: 1;
    }

    .playoff-round-final .playoff-round-header {
        grid-column: 3;
        grid-row: 1;
    }

    .playoff-round-body {
        display: contents;
    }

    .playoff-series-card {
        align-self: center;
        height: auto;
        margin: 0;
        min-height: 11rem;
        width: 100%;
    }

    .playoff-round-cuartos .playoff-series-order-1 {
        grid-column: 1;
        grid-row: 2;
    }

    .playoff-round-cuartos .playoff-series-order-2 {
        grid-column: 1;
        grid-row: 3;
    }

    .playoff-round-cuartos .playoff-series-order-3 {
        grid-column: 1;
        grid-row: 4;
    }

    .playoff-round-cuartos .playoff-series-order-4 {
        grid-column: 1;
        grid-row: 5;
    }

    .playoff-round-semifinal .playoff-series-order-1 {
        grid-column: 2;
        grid-row: 2 / span 2;
    }

    .playoff-round-semifinal .playoff-series-order-2 {
        grid-column: 2;
        grid-row: 4 / span 2;
    }

    .playoff-round-final .playoff-series-order-1 {
        grid-column: 3;
        grid-row: 3 / span 2;
    }
}

@media (max-width: 767.98px) {
    .playoff-page-header,
    .playoff-bracket-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
    }

    .playoff-page-title {
        font-size: 1.6rem;
    }
}
