/* ========================================
   COMPARAISON DES ÉQUIPES — PREMIUM
======================================== */

.team-compare-page,
.team-compare-page * {
    box-sizing: border-box;
}

.team-compare-page {
    --competition-primary: #A3E635;
    --competition-primary-rgb: 163, 230, 53;
    --competition-secondary: #0F172A;

    min-height: 100vh;

    padding: 55px 0 80px;

    background:
        radial-gradient(
            circle at 8% 4%,
            rgba(var(--competition-primary-rgb), 0.07),
            transparent 28rem
        ),
        #020617;

    color: #f8fafc;
}

.team-compare-admin-preview,
.team-compare-hero,
.team-compare-navigation,
.team-compare-selector,
.team-compare-duel,
.team-compare-summary,
.team-compare-form-section,
.team-head-to-head,
.team-compare-premium-preview,
.team-compare-empty {
    width: min(92%, 1260px);
    margin-right: auto;
    margin-left: auto;
}

.team-compare-admin-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 16px;
    padding: 10px 14px;

    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 12px;

    background: rgba(250, 204, 21, 0.07);
    color: #fde68a;

    font-size: 0.66rem;
    font-weight: 850;
}

.team-compare-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.95),
            rgba(2, 6, 23, 0.98)
        );
}

.team-compare-hero h1 {
    margin-top: 6px;

    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.team-compare-hero p:not(.section-subtitle) {
    max-width: 720px;

    margin-top: 10px;

    color: #94a3b8;

    font-size: 0.78rem;
    line-height: 1.55;
}

.team-compare-competition-logo {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;

    display: grid;
    place-items: center;
    overflow: hidden;

    padding: 10px;

    border: 1px solid rgba(
        var(--competition-primary-rgb),
        0.24
    );
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 35% 25%,
            rgba(
                var(--competition-primary-rgb),
                0.10
            ),
            transparent 64%
        ),
        linear-gradient(
            145deg,
            rgba(7, 17, 31, 0.98),
            rgba(15, 23, 42, 0.98)
        );

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.team-compare-competition-logo img {
    width: 88%;
    height: 88%;

    display: block;

    object-fit: contain;

    opacity: 1;
    filter: none;
}

.team-compare-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 14px;
}

.team-compare-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 39px;
    padding: 8px 11px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;

    background: #0f172a;
    color: #cbd5e1;

    font-size: 0.63rem;
    font-weight: 850;
    text-decoration: none;
}

.team-compare-navigation a.is-active {
    border-color: rgba(
        var(--competition-primary-rgb),
        0.3
    );

    background: rgba(
        var(--competition-primary-rgb),
        0.09
    );

    color: var(--competition-primary);
}

.team-compare-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;

    margin-top: 18px;
    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 17px;

    background: #0f172a;
}

.team-compare-selector label span {
    display: block;

    margin-bottom: 6px;

    color: #64748b;

    font-size: 0.57rem;
    font-weight: 850;
}

.team-compare-selector select {
    width: 100%;
    min-height: 43px;

    padding: 9px 11px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    outline: none;

    background: #020617;
    color: #f8fafc;

    font: inherit;
    font-size: 0.7rem;
}

.team-compare-selector select:focus {
    border-color: var(--competition-primary);
}

.team-compare-versus {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: rgba(
        var(--competition-primary-rgb),
        0.09
    );
    color: var(--competition-primary);

    font-size: 0.68rem;
    font-weight: 950;
}

.team-compare-selector button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 9px 14px;

    border: 0;
    border-radius: 10px;

    background: var(--competition-primary);
    color: #07111f;

    font: inherit;
    font-size: 0.68rem;
    font-weight: 900;

    cursor: pointer;
}

.team-compare-duel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;

    margin-top: 18px;
}

.team-compare-club-card {
    min-width: 0;

    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;

    padding: 20px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.96),
            rgba(2, 6, 23, 0.98)
        );
}

.team-compare-club-logo {
    width: 74px;
    height: 74px;

    display: grid;
    place-items: center;

    padding: 8px;

    border-radius: 20px;

    background: #ffffff;
}

.team-compare-club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-compare-club-logo strong {
    color: #0f172a;
}

.team-compare-club-card small,
.team-compare-club-card h2,
.team-compare-club-card p {
    display: block;
}

.team-compare-club-card small {
    color: var(--competition-primary);

    font-size: 0.53rem;
    font-weight: 900;
}

.team-compare-club-card h2 {
    margin-top: 4px;

    font-size: 1.15rem;
}

.team-compare-club-card p {
    margin-top: 4px;

    color: #64748b;

    font-size: 0.64rem;
}

.team-compare-club-card > a {
    padding: 8px 10px;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;

    color: #cbd5e1;

    font-size: 0.58rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.team-compare-summary {
    margin-top: 18px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;

    background: #0f172a;
}

.team-compare-table-head,
.team-compare-summary > article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.3fr minmax(0, 1fr);
    align-items: center;
    gap: 12px;

    text-align: center;
}

.team-compare-table-head {
    padding: 14px 18px;

    background: #111827;

    font-size: 0.68rem;
}

.team-compare-table-head span {
    color: var(--competition-primary);

    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
}

.team-compare-summary > article {
    min-height: 52px;
    padding: 10px 18px;

    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.team-compare-summary > article strong {
    color: #f8fafc;

    font-size: 0.8rem;
}

.team-compare-summary > article span {
    color: #64748b;

    font-size: 0.62rem;
}

.team-compare-form-section,
.team-head-to-head {
    margin-top: 18px;
    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.95),
            rgba(2, 6, 23, 0.98)
        );
}

.team-compare-form-section h2,
.team-head-to-head h2 {
    margin-top: 4px;

    font-size: 1.15rem;
}

.team-compare-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin-top: 16px;
}

.team-compare-form-grid article {
    padding: 14px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.03);
}

.team-compare-form-grid article > strong {
    display: block;

    margin-bottom: 10px;

    font-size: 0.72rem;
}

.team-compare-form-grid article > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.team-compare-form-grid article span {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    font-size: 0.55rem;
    font-weight: 950;
}

.team-compare-form-grid .win {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.team-compare-form-grid .draw {
    background: rgba(250, 204, 21, 0.12);
    color: #fde047;
}

.team-compare-form-grid .loss {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.team-head-to-head-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.team-head-to-head-heading > span {
    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(
        var(--competition-primary-rgb),
        0.08
    );
    color: var(--competition-primary);

    font-size: 0.58rem;
    font-weight: 850;
}

.team-head-to-head-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    margin-top: 16px;
}

.team-head-to-head-summary article {
    padding: 15px;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.03);

    text-align: center;
}

.team-head-to-head-summary small,
.team-head-to-head-summary strong,
.team-head-to-head-summary span {
    display: block;
}

.team-head-to-head-summary small {
    color: #64748b;

    font-size: 0.52rem;
    font-weight: 850;
}

.team-head-to-head-summary strong {
    margin-top: 6px;

    color: var(--competition-primary);

    font-size: 1.4rem;
}

.team-head-to-head-summary span {
    margin-top: 3px;

    color: #64748b;

    font-size: 0.55rem;
}

.team-head-to-head-list {
    display: grid;
    gap: 8px;

    margin-top: 14px;
}

.team-head-to-head-list article {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 12px;

    padding: 11px 13px;

    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.team-head-to-head-list article > span {
    color: #64748b;

    font-size: 0.56rem;
}

.team-head-to-head-list article > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    align-items: center;
    gap: 10px;

    font-size: 0.67rem;
}

.team-head-to-head-list article > div strong:last-child {
    text-align: right;
}

.team-head-to-head-list b {
    color: var(--competition-primary);

    text-align: center;
}

.team-compare-premium-preview {
    position: relative;

    margin-top: 18px;
    padding: 26px;

    border: 1px solid rgba(
        var(--competition-primary-rgb),
        0.18
    );
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.96),
            rgba(2, 6, 23, 0.98)
        );
}

.team-compare-preview-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;

    filter: blur(4px);
    opacity: 0.4;
}

.team-compare-preview-values article {
    padding: 16px;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);
}

.team-compare-preview-values small,
.team-compare-preview-values strong {
    display: block;
}

.team-compare-preview-values small {
    color: #64748b;

    font-size: 0.52rem;
    font-weight: 850;
}

.team-compare-preview-values strong {
    margin-top: 10px;
}

.team-compare-premium-preview > div:last-child {
    width: min(100%, 620px);

    margin: -18px auto 0;
    padding: 22px;

    border: 1px solid rgba(
        var(--competition-primary-rgb),
        0.28
    );
    border-radius: 17px;

    background: #0f172a;

    text-align: center;
}

.team-compare-premium-preview > div:last-child > span {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin: 0 auto;

    border-radius: 15px;

    background: rgba(
        var(--competition-primary-rgb),
        0.1
    );
    color: var(--competition-primary);

    font-size: 1.15rem;
}

.team-compare-premium-preview h2 {
    margin-top: 12px;

    font-size: 1.15rem;
}

.team-compare-premium-preview p {
    margin: 8px auto 0;

    color: #94a3b8;

    font-size: 0.7rem;
    line-height: 1.5;
}

.team-compare-premium-preview a,
.team-compare-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 15px;
    padding: 10px 14px;

    border-radius: 10px;

    background: var(--competition-primary);
    color: #07111f;

    font-size: 0.66rem;
    font-weight: 900;
    text-decoration: none;
}

.team-compare-empty {
    margin-top: 80px;
    padding: 55px 20px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;

    background: #0f172a;

    text-align: center;
}

.team-compare-empty > i {
    color: var(--competition-primary);

    font-size: 1.6rem;
}

.team-compare-empty h1 {
    margin-top: 13px;
}

.team-compare-empty p {
    margin-top: 8px;

    color: #94a3b8;
}

.team-compare-empty.compact {
    margin: 15px 0 0;
    padding: 22px;
}

@media screen and (max-width: 900px) {
    .team-compare-selector {
        grid-template-columns: 1fr;
    }

    .team-compare-versus {
        margin: 0 auto;
    }

    .team-compare-selector button {
        width: 100%;
    }

    .team-compare-duel,
    .team-compare-form-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 650px) {
    .team-compare-page {
        padding-top: 32px;
    }

    .team-compare-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .team-compare-competition-logo {
        width: 74px;
        height: 74px;
        flex-basis: 74px;
    }

    .team-compare-navigation {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .team-compare-navigation a {
        flex: 0 0 auto;
    }

    .team-compare-club-card {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 16px;
    }

    .team-compare-club-logo {
        width: 58px;
        height: 58px;
    }

    .team-compare-club-card > a {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .team-compare-table-head,
    .team-compare-summary > article {
        grid-template-columns: 0.8fr 1.2fr 0.8fr;
        gap: 7px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .team-head-to-head-summary,
    .team-compare-preview-values {
        grid-template-columns: 1fr;
    }

    .team-head-to-head-list article {
        grid-template-columns: 1fr;
    }

    .team-head-to-head-list article > div {
        grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    }
}
