/* =========================================================
   STK PUBLIC MATCH CENTER
========================================================= */

.dynamic-match-page {
    min-height: 100vh;
    padding: 80px 30px 120px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.84),
            rgba(0, 0, 0, 0.96)
        ),
        url("images/stkbackround.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dynamic-match-record {
    width: min(900px, 100%);
    margin: 0 auto 45px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.dynamic-match-record article {
    padding: 22px;

    background: #101010;

    border: 1px solid #555;
    border-radius: 10px;

    text-align: center;
}

.dynamic-match-record strong,
.dynamic-match-record span {
    display: block;
}

.dynamic-match-record strong {
    margin-bottom: 7px;

    font-size: 2.2rem;
}

.dynamic-match-record span {
    font-size: 0.66rem;
    font-weight: bold;
    letter-spacing: 1.4px;

    opacity: 0.58;
}

.matches-loading-message {
    min-height: 24px;
    margin-bottom: 35px;

    text-align: center;

    opacity: 0.65;
}

.dynamic-match-section {
    width: min(1200px, 100%);
    margin: 0 auto 70px;
}

.dynamic-match-section-heading {
    margin-bottom: 24px;

    text-align: center;
}

.dynamic-match-section-heading h2 {
    margin-top: 8px;

    font-size: clamp(2.2rem, 5vw, 3.7rem);
}

.dynamic-matches-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}

.public-match-card {
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0)
        ),
        #101010;

    border: 2px solid white;
    border-radius: 16px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.public-match-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.65),
        0 0 24px rgba(255, 255, 255, 0.1);
}

.public-match-card.featured {
    box-shadow:
        0 0 26px rgba(255, 255, 255, 0.12);
}

.public-match-top {
    position: relative;

    padding: 24px;

    background:
        linear-gradient(
            rgba(255, 255, 255, 0.055),
            rgba(0, 0, 0, 0)
        ),
        #151515;

    border-bottom: 1px solid #333;
}

.public-match-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;
    margin-bottom: 20px;
}

.public-match-status,
.public-match-featured {
    padding: 7px 10px;

    border: 1px solid #777;
    border-radius: 999px;

    font-size: 0.62rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.public-match-status.live {
    color: #ff9999;

    border-color: #ff6666;

    animation: matchLivePulse 1.4s ease-in-out infinite;
}

.public-match-status.final {
    color: #91ffac;

    border-color: #5bbd70;
}

.public-match-featured {
    background: white;
    color: black;
    border-color: white;
}

@keyframes matchLivePulse {
    0%,
    100% {
        box-shadow:
            0 0 0 rgba(255, 80, 80, 0);
    }

    50% {
        box-shadow:
            0 0 16px rgba(255, 80, 80, 0.38);
    }
}

.public-match-teams {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto minmax(0, 1fr);

    align-items: center;

    gap: 18px;

    text-align: center;
}

.public-match-team img,
.public-match-team-placeholder {
    width: 90px;
    height: 90px;

    margin: 0 auto 12px;

    border-radius: 50%;
}

.public-match-team img {
    object-fit: contain;

    background: white;

    border: 2px solid white;
}

.public-match-team-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;

    background: white;
    color: black;

    border: 2px solid white;

    font-size: 1.7rem;
    font-weight: bold;
}

.public-match-team h3 {
    overflow-wrap: anywhere;

    font-size: 1rem;
    letter-spacing: 1px;
}

.public-match-vs {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;

    opacity: 0.5;
}

.public-match-score {
    font-size: 2.2rem;

    opacity: 1;
}

.public-match-body {
    padding: 24px;
}

.public-match-tournament {
    margin-bottom: 17px;

    text-align: center;

    font-size: 0.73rem;
    font-weight: bold;
    letter-spacing: 1.5px;

    opacity: 0.62;
}

.public-match-details {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;
}

.public-match-detail {
    padding: 12px 8px;

    background: rgba(0, 0, 0, 0.4);

    border: 1px solid #444;
    border-radius: 6px;

    text-align: center;
}

.public-match-detail strong,
.public-match-detail span {
    display: block;
}

.public-match-detail strong {
    margin-bottom: 6px;

    font-size: 0.56rem;
    letter-spacing: 1px;

    opacity: 0.5;
}

.public-match-detail span {
    font-size: 0.78rem;
    font-weight: bold;
}

.public-match-stream {
    display: block;

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

    background: white;
    color: black;

    border: 2px solid white;

    text-align: center;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.public-match-stream:hover {
    background: transparent;
    color: white;
}

.dynamic-match-empty {
    grid-column: 1 / -1;

    padding: 55px 25px;

    background: rgba(10, 10, 10, 0.85);

    border: 1px dashed #666;
    border-radius: 12px;

    text-align: center;

    opacity: 0.66;
}

@media (max-width: 900px) {
    .dynamic-matches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dynamic-match-page {
        padding: 65px 18px 90px;

        background-attachment: scroll;
    }

    .dynamic-match-record {
        grid-template-columns: 1fr;
    }

    .public-match-top,
    .public-match-body {
        padding: 20px 16px;
    }

    .public-match-team img,
    .public-match-team-placeholder {
        width: 72px;
        height: 72px;
    }

    .public-match-details {
        grid-template-columns: 1fr;
    }
}
