/* =========================================================
   JUPITER MATCH OVERLAY
   ========================================================= */

.jupiter-match-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(7, 15, 30, 0.78);
    backdrop-filter: blur(5px);
}

.jupiter-match-overlay[hidden] {
    display: none;
}


/* =========================================================
   JUPITER MATCH PANEL
   ========================================================= */

.jupiter-match-panel {
    position: relative;

    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 30px;

    background: #ffffff;
    color: #152238;

    border-radius: 22px;

    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.36);
}


/* =========================================================
   CLOSE
   ========================================================= */

.jupiter-match-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.jupiter-match-close:hover {
    background: #dfe4eb;
}


/* =========================================================
   HEADER
   ========================================================= */

.jupiter-match-header {
    padding: 4px 0 24px;

    border-bottom: 1px solid #dfe4eb;
}

.jupiter-match-brand {
    margin-bottom: 6px;

    color: #152238;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jupiter-match-meta {
    margin-right: 44px;

    color: #667085;

    font-size: 14px;
    line-height: 1.4;
}


/* =========================================================
   TEAMS
   ========================================================= */

.jupiter-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;

    margin-top: 24px;
}

.jupiter-match-team {
    min-width: 0;

    text-align: center;
}

.jupiter-match-team-logo {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 18px;

    background: #20242b;
    color: #21d4ca;

    font-size: 26px;
    font-weight: 900;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.jupiter-match-team-name {
    color: #152238;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;

    overflow-wrap: anywhere;
}

.jupiter-match-team-role {
    margin-top: 4px;

    color: #667085;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jupiter-match-vs {
    color: #98a2b3;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.jupiter-match-section {
    padding-top: 24px;
}

.jupiter-match-section-title {
    margin-bottom: 12px;

    color: #15bfb3;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.jupiter-match-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.jupiter-match-summary-card {
    min-width: 0;

    padding: 14px;

    border-radius: 13px;

    background: #f3f5f7;
}

.jupiter-match-summary-card span {
    display: block;

    margin-bottom: 6px;

    color: #667085;

    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.jupiter-match-summary-card strong {
    display: block;

    color: #152238;

    font-size: 16px;
    line-height: 1.35;

    overflow-wrap: anywhere;
}


/* =========================================================
   JUPITER READING
   ========================================================= */

.jupiter-match-reading {
    padding: 18px;

    border-radius: 16px;

    background: #20242b;
    color: #ffffff;
}

.jupiter-match-reading p {
    position: relative;

    margin: 0;
    padding-left: 18px;

    font-size: 14px;
    line-height: 1.55;
}

.jupiter-match-reading p + p {
    margin-top: 12px;
}

.jupiter-match-reading p::before {
    content: '';

    position: absolute;
    top: 8px;
    left: 0;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #21d4ca;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.jupiter-match-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.jupiter-match-action {
    padding: 12px 14px;

    border: 0;
    border-radius: 11px;

    background: #20242b;
    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;
}

.jupiter-match-action:hover {
    background: #2d323a;
}

.jupiter-match-action:active {
    transform: translateY(1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .jupiter-match-overlay {
        align-items: flex-end;
        padding: 10px;
    }

    .jupiter-match-panel {
        max-width: none;
        max-height: calc(100vh - 20px);

        padding: 26px 18px 22px;

        border-radius: 20px 20px 14px 14px;
    }

    .jupiter-match-teams {
        gap: 10px;
    }

    .jupiter-match-team-logo {
        width: 62px;
        height: 62px;

        border-radius: 15px;

        font-size: 22px;
    }

    .jupiter-match-team-name {
        font-size: 17px;
    }

    .jupiter-match-summary {
        grid-template-columns: 1fr;
    }

}