/* ======================================================
   SIXSTATS — FULL EVENT MATCHES
   Load after styling2.1.css.
====================================================== */

.eventMatchesPageShell {
    width: 100%;
    justify-content: center;
}

.eventMatchesProfilePage {
    width: 70vw;
    max-width: 72.92vw;
    margin: 2vw auto 4vw;
    padding: 1.4vw;

    color: var(--text-main);
    background: rgba(255,255,255,0.025);
    border: 0.052vw solid rgba(255,255,255,0.10);
    border-radius: 1vw;
    box-shadow: 0 0.8vw 2.2vw rgba(0,0,0,0.32);
}

.eventMatchesProfilePage button {
    font-family: "Oswald", system-ui, sans-serif;
}

/* ======================================================
   EVENT HERO
====================================================== */

#eventMatchesHero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.2vw;

    background:
        radial-gradient(
            circle at 12% 10%,
            rgba(135,206,250,0.18),
            transparent 28vw
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        ),
        var(--bg-card);

    border: 0.052vw solid rgba(135,206,250,0.20);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

#eventMatchesHeroTop {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1vw 1.2vw 0;
}

#eventMatchesHero #backButton {
    width: 2.7vw;
    height: 2.7vw;
    min-width: 2.7vw;
    min-height: 2.7vw;
    margin: 0;

    color: var(--accent);
    background: rgba(135,206,250,0.12);
    border: 0.052vw solid rgba(135,206,250,0.28);
    border-radius: 50vw;

    font-size: 0.9vw;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

#eventMatchesHero #backButton:hover {
    transform: translateY(-0.12vw);
    background: rgba(135,206,250,0.20);
    border-color: rgba(135,206,250,0.50);
}

#eventMatchesStatus {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.42vw 0.72vw;

    color: var(--text-muted);
    background: rgba(15,17,21,0.58);
    border: 0.052vw solid var(--border-soft);
    border-radius: 50vw;

    font-size: 0.7vw;
    letter-spacing: 0.045vw;
    text-transform: uppercase;
}

#eventMatchesStatusDot {
    width: 0.48vw;
    height: 0.48vw;
    border-radius: 50%;
}

#eventMatchesStatus.isLive #eventMatchesStatusDot {
    background: #4ade80;
    box-shadow: 0 0 0 0.22vw rgba(74,222,128,0.12);
}

#eventMatchesStatus.isUpcoming #eventMatchesStatusDot {
    background: var(--accent);
    box-shadow: 0 0 0 0.22vw rgba(135,206,250,0.12);
}

#eventMatchesStatus.isCompleted #eventMatchesStatusDot {
    background: var(--text-muted);
    box-shadow: 0 0 0 0.22vw rgba(154,164,178,0.10);
}

#eventMatchesHeroContent {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 13vw minmax(0, 1fr);
    gap: 1.8vw;
    align-items: stretch;
    padding: 1vw 1.4vw 1.4vw;
}

#eventMatchesLogoFrame {
    position: relative;
    min-height: 13vw;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(135,206,250,0.16),
            transparent 55%
        ),
        linear-gradient(
            150deg,
            rgba(135,206,250,0.08),
            rgba(15,17,21,0.75)
        ),
        var(--bg-secondary);

    border: 0.052vw solid rgba(255,255,255,0.10);
    border-radius: var(--radius);
    box-shadow: 0 1vw 2vw rgba(0,0,0,0.30);
}

#eventMatchesLogoFrame::after {
    content: "";
    position: absolute;
    inset: auto 12% -38% 12%;
    height: 45%;
    background: var(--accent);
    filter: blur(2.6vw);
    opacity: 0.08;
    pointer-events: none;
}

#eventMatchesLogo {
    position: relative;
    z-index: 1;
    width: 8.5vw;
    height: 8.5vw;
    object-fit: contain;
    filter: drop-shadow(0 0.65vw 1vw rgba(0,0,0,0.38));
    transition: transform 0.2s ease;
}

#eventMatchesLogoFrame:hover #eventMatchesLogo {
    transform: scale(1.035);
}

#eventMatchesHeroInfo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#eventMatchesEyebrow,
.eventMatchesSectionKicker {
    margin: 0 0 0.35vw;
    color: var(--accent);
    font-size: 0.72vw;
    font-weight: 500;
    letter-spacing: 0.1vw;
    text-transform: uppercase;
}

#eventMatchesTitle {
    margin: 0;
    color: #fff;
    font-size: 2.2vw;
    font-weight: 650;
    line-height: 1.08;
    letter-spacing: 0.015vw;
}

#eventMatchesDates {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin: 0.65vw 0 0;
    color: var(--text-muted);
    font-size: 0.88vw;
}

#eventMatchesDates i {
    color: var(--accent);
}

#eventMatchesMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55vw;
    margin-top: 0.8vw;
}

#eventMatchesMeta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38vw;
    padding: 0.38vw 0.62vw;

    color: var(--text-muted);
    background: rgba(255,255,255,0.035);
    border: 0.052vw solid var(--border-soft);
    border-radius: 50vw;
    font-size: 0.72vw;
}

#eventMatchesMeta i {
    color: var(--accent);
}

#eventMatchesMetrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7vw;
    margin-top: 1vw;
}

.eventMatchesMetric {
    min-width: 0;
    padding: 0.72vw 0.8vw;

    background: rgba(15,17,21,0.46);
    border: 0.052vw solid var(--border-soft);
    border-radius: var(--radius-sm);
}

.eventMatchesMetric span {
    display: block;
    margin-bottom: 0.15vw;
    color: var(--text-muted);
    font-size: 0.66vw;
    letter-spacing: 0.035vw;
    text-transform: uppercase;
}

.eventMatchesMetric strong {
    display: block;
    color: var(--text-main);
    font-size: 1.18vw;
    line-height: 1.1;
}

/* ======================================================
   RESULTS SECTION
====================================================== */

#eventMatchesResultsSection {
    padding: 1.2vw;
    background: rgba(255,255,255,0.018);
    border: 0.052vw solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
}

#eventMatchesSectionHeader {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1vw;
    margin-bottom: 1vw;
}

#eventMatchesResultsTitle {
    margin: 0;
    color: var(--text-main);
    font-size: 1.45vw;
    font-weight: 600;
    line-height: 1.1;
}

#eventMatchesEventLink {
    display: inline-flex;
    align-items: center;
    gap: 0.45vw;
    padding: 0.48vw 0.72vw;

    color: var(--accent);
    background: rgba(135,206,250,0.08);
    border: 0.052vw solid rgba(135,206,250,0.20);
    border-radius: 50vw;

    font-size: 0.72vw;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

#eventMatchesEventLink:hover {
    transform: translateY(-0.08vw);
    background: rgba(135,206,250,0.14);
    border-color: rgba(135,206,250,0.38);
}

#eventMatchesList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7vw;
}

.eventMatchTileLink {
    display: block;
    min-width: 0;
}

.eventMatchesProfilePage .eventMatchTile {
    height: 100%;
    min-height: 6.3vw;
    display: grid;
    grid-template-columns: 2.8vw minmax(0, 1fr) 2.8vw;
    align-items: center;
    gap: 0.55vw;
    padding: 0.85vw;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        ),
        var(--bg-secondary);

    border: 0.052vw solid var(--border-soft);
    border-radius: var(--radius-sm);
    box-shadow: none;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.eventMatchTileLink:hover .eventMatchTile {
    transform: translateY(-0.15vw);
    background:
        linear-gradient(
            145deg,
            rgba(135,206,250,0.10),
            rgba(135,206,250,0.02)
        ),
        var(--bg-secondary);
    border-color: rgba(135,206,250,0.35);
}

.eventMatchesProfilePage .eventMatchTileDate,
.eventMatchesProfilePage .eventMatchTileTime {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.65vw;
    line-height: 1.25;
}

.eventMatchesProfilePage .eventMatchTileDate {
    text-align: left;
}

.eventMatchesProfilePage .eventMatchTileTime {
    min-height: 0.82vw;
    text-align: center;
}

.eventMatchesProfilePage .eventMatchTileTeams {
    grid-column: 2;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.32vw;
    color: var(--text-main);
    font-size: 0.85vw;
    text-align: center;
    white-space: nowrap;
}

.eventMatchesProfilePage .eventMatchTileTeams > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eventMatchesProfilePage .eventmatchscore,
.eventMatchesProfilePage .matchType {
    color: var(--accent);
}

.eventMatchesProfilePage .eventmatchscore {
    flex-shrink: 0;
    font-weight: 600;
}

.eventMatchesProfilePage .eventMatchTileLogo1,
.eventMatchesProfilePage .eventMatchTileLogo2 {
    width: 2.5vw;
    height: 2.5vw;
    min-height: 0;
    object-fit: contain;
    filter: drop-shadow(0 0.2vw 0.35vw rgba(0,0,0,0.30));
}

/* ======================================================
   EMPTY STATE
====================================================== */

#eventMatchesEmpty {
    min-height: 12vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2vw;
    text-align: center;

    background: var(--bg-card);
    border: 0.052vw dashed rgba(135,206,250,0.24);
    border-radius: var(--radius-sm);
}

#eventMatchesEmpty i {
    margin-bottom: 0.7vw;
    color: var(--accent);
    font-size: 1.8vw;
}

#eventMatchesEmpty h3 {
    margin: 0 0 0.35vw;
    color: var(--text-main);
    font-size: 1.15vw;
}

#eventMatchesEmpty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78vw;
}

/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1024px) {
    .eventMatchesProfilePage {
        width: 92vw;
        max-width: 92vw;
    }

    #eventMatchesList {
        grid-template-columns: 1fr;
    }

}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {
    .eventMatchesPageShell {
        padding: 14px 0;
    }

    .eventMatchesProfilePage {
        width: 94vw;
        max-width: 94vw;
        margin: 0 auto 24px;
        padding: 10px;
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.30);
    }

    #eventMatchesHero {
        margin-bottom: 10px;
        border: 1px solid rgba(135,206,250,0.20);
        border-radius: 14px;
    }

    #eventMatchesHeroTop {
        padding: 12px 12px 0;
    }

    #eventMatchesHero #backButton {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        border-width: 1px;
        font-size: 15px;
    }

    #eventMatchesStatus {
        gap: 7px;
        padding: 7px 10px;
        border-width: 1px;
        font-size: 11px;
        letter-spacing: 0.7px;
    }

    #eventMatchesStatusDot {
        width: 7px;
        height: 7px;
    }

    #eventMatchesHeroContent {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 14px 16px;
    }

    #eventMatchesLogoFrame {
        width: 128px;
        min-height: 128px;
        margin: 0 auto;
        border-width: 1px;
        border-radius: 14px;
    }

    #eventMatchesLogo {
        width: 82px;
        height: 82px;
    }

    #eventMatchesHeroInfo {
        align-items: center;
        text-align: center;
    }

    #eventMatchesEyebrow,
    .eventMatchesSectionKicker {
        margin-bottom: 5px;
        font-size: 11px;
        letter-spacing: 1.1px;
    }

    #eventMatchesTitle {
        font-size: 26px;
        line-height: 1.08;
    }

    #eventMatchesDates {
        gap: 7px;
        margin-top: 9px;
        font-size: 13px;
    }

    #eventMatchesMeta {
        justify-content: center;
        gap: 7px;
        margin-top: 10px;
    }

    #eventMatchesMeta span {
        gap: 6px;
        padding: 6px 9px;
        border-width: 1px;
        font-size: 11px;
    }

    #eventMatchesMetrics {
        width: 100%;
        gap: 7px;
        margin-top: 12px;
    }

    .eventMatchesMetric {
        padding: 9px 7px;
        border-width: 1px;
        border-radius: 10px;
    }

    .eventMatchesMetric span {
        margin-bottom: 3px;
        font-size: 9px;
        letter-spacing: 0.4px;
    }

    .eventMatchesMetric strong {
        font-size: 18px;
    }

    #eventMatchesResultsSection {
        padding: 10px;
        border-width: 1px;
        border-radius: 14px;
    }

    #eventMatchesSectionHeader {
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    #eventMatchesResultsTitle {
        font-size: 20px;
    }

    #eventMatchesEventLink {
        gap: 6px;
        padding: 7px 9px;
        border-width: 1px;
        font-size: 11px;
    }

    #eventMatchesList {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .eventMatchesProfilePage .eventMatchTile {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        min-height: 112px;
        gap: 8px;
        padding: 11px;
        border-width: 1px;
        border-radius: 10px;
    }

    .eventMatchesProfilePage .eventMatchTileDate,
    .eventMatchesProfilePage .eventMatchTileTime {
        font-size: 11px;
    }

    .eventMatchesProfilePage .eventMatchTileTeams {
        gap: 5px;
        font-size: 13px;
    }

    .eventMatchesProfilePage .eventMatchTileLogo1,
    .eventMatchesProfilePage .eventMatchTileLogo2 {
        width: 40px;
        height: 40px;
    }

    #eventMatchesEmpty {
        min-height: 180px;
        padding: 24px 16px;
        border-width: 1px;
        border-radius: 12px;
    }

    #eventMatchesEmpty i {
        margin-bottom: 10px;
        font-size: 28px;
    }

    #eventMatchesEmpty h3 {
        margin-bottom: 5px;
        font-size: 18px;
    }

    #eventMatchesEmpty p {
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    #eventMatchesSectionHeader {
        align-items: flex-start;
        flex-direction: column;
    }

    #eventMatchesEventLink {
        align-self: flex-start;
    }

}