
/* Матчі, супротивники, турніри */
.match-row
{
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}
.match-info-tournament,
.match-tournament
{
    display: flex;
}
.tournament-row img {
    max-height: 100px;
    margin-right: 10px;
    border-radius: 4px;
    max-width: 100%;
}

.match-teams-maps,
.match-tournament
{
    padding: 10px;
}
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.match-teams .team {
    display: flex;
    align-items: center;
    flex-basis: 40%;
    justify-content: flex-start;
    text-align: left;
}

.match-teams .team-logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #e9ecef;
    border: 1px solid #ddd;
}

.match-teams .team-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-teams .match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 20%;
    text-align: center;
    padding: 10px;
}

.match-teams .match-score .score {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.match-teams .match-score .format {
    font-size: 14px;
    color: #6c757d;
}


.map-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.map-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.map-name {
    font-weight: bold;
    color: #333;
    padding: 5px;
    display: inline-block;
}

.map-score {
    font-size: 14px;
    color: #666;
    padding: 5px;
    display: inline-block;
}



@media (max-width: 768px) {
    .match-teams {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .match-teams .team {
        flex-basis: auto;
        justify-content: center;
        margin-bottom: 10px;
    }

    .match-teams .match-score {
        margin: 10px 0;
    }
    .match-info-tournament, .match-tournament
    {
        display: block;
    }
}
@media (max-width: 576px) {
    .match-row,

    .tournament-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.matches-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(440px, 0.95fr);
    align-items: center;
    gap: 28px;
    margin-bottom: 30px;
    padding: 34px 54px;
    border: 4px solid rgba(92, 70, 151, 0.48);
    border-radius: 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 42%, rgba(116, 72, 255, 0.22), transparent 34%),
        radial-gradient(circle at 34% 34%, rgba(204, 40, 255, 0.12), transparent 28%),
        linear-gradient(135deg, rgba(13, 4, 55, 0.98), rgba(4, 0, 25, 0.94) 48%, rgba(14, 4, 50, 0.98)),
        rgba(7, 0, 35, 0.92);
}

.matches-card::before {
    content: '';
    position: absolute;
    inset: 18px 22px;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(159, 124, 255, 0.8) 0 1px, transparent 1.5px);
    background-position: 0 0, 36px 28px;
    background-size: 72px 72px, 94px 94px;
    animation: matchesStars 18s linear infinite;
}

.matches-card::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 43%;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(159, 124, 255, 0.48), transparent);
    box-shadow: 0 0 28px rgba(116, 72, 255, 0.55);
}

.matches-card__space {
    position: absolute;
    left: 42%;
    top: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-family: "Exo", sans-serif;
    font-size: clamp(58px, 9vw, 132px);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    letter-spacing: 0;
    text-transform: uppercase;
    opacity: 0.18;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(158, 95, 255, 0.8), rgba(255, 45, 245, 0.48), rgba(255, 255, 255, 0.1));
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: matchesSpaceGlow 7s ease-in-out infinite;
}

.matches-card__info {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.matches-card__date {
    margin: 0 0 18px;
    font-family: "Exo", sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.matches-card__title {
    max-width: 560px;
    margin: 0;
    font-family: "Exo", sans-serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.12;
    color: #ffffff;
    text-transform: uppercase;
}

.matches-card__title a {
    color: inherit;
}

.matches-card__title a:hover {
    color: #9f7cff;
}

.matches-card__details {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid rgba(159, 124, 255, 0.65);
    border-radius: 6px;
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-transform: uppercase;
    background: #5112ff;
}

.matches-card__details:hover {
    color: #ffffff;
    background: #6f3cff;
}

.matches-card__meta {
    display: block;
    margin-top: 20px;
    font-family: "Exo", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #c028ff;
}

.matches-card__versus {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 100px minmax(130px, 1fr);
    align-items: start;
    gap: 18px;
}

@keyframes matchesStars {
    from {
        background-position: 0 0, 36px 28px;
    }
    to {
        background-position: 72px 72px, 130px 122px;
    }
}

@keyframes matchesSpaceGlow {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.12;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.24;
    }
}

.matches-card__team {
    display: grid;
    grid-template-rows: 100px 48px;
    justify-items: center;
    align-items: start;
    min-width: 0;
    text-align: center;
}

.matches-card__logo {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
}

.matches-card__logo img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}

.matches-card__name {
    display: -webkit-box;
    width: 100%;
    min-height: 48px;
    max-height: 48px;
    margin-top: 8px;
    overflow: hidden;
    font-family: "Exo", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.45;
    color: #ffffff;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.matches-card__name a {
    color: inherit;
}

.matches-card__name a:hover {
    color: #9f7cff;
}

.matches-card__vs {
    display: grid;
    place-items: center;
    height: 100px;
}

.matches-card__vs img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.matches-pagination {
    display: none;
}

.matches-loader {
    margin: 24px auto 60px;
    padding: 14px 18px;
    width: min(260px, 100%);
    border: 1px solid rgba(120, 78, 255, 0.38);
    border-radius: 8px;
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    text-transform: uppercase;
    background: rgba(7, 0, 35, 0.92);
}

.matches-loader.is-loading {
    color: #ffffff;
}

.matches-loader.is-error {
    color: #ff657f;
}

@media (max-width: 1100px) {
    .matches-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .matches-card::after {
        display: none;
    }

    .matches-card__space {
        left: 50%;
        top: 54%;
    }

    .matches-card__title {
        max-width: none;
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .matches-card {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .matches-card__versus {
        grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
        gap: 10px;
    }

    .matches-card__team {
        grid-template-rows: 76px 44px;
    }

    .matches-card__logo,
    .matches-card__vs {
        width: auto;
        height: 76px;
    }

    .matches-card__logo img {
        max-width: 76px;
        max-height: 76px;
    }

    .matches-card__vs img {
        width: 62px;
        height: 62px;
    }

    .matches-card__name {
        min-height: 44px;
        max-height: 44px;
        font-size: 13px;
    }
}

.upcoming_gaming_list .upcoming_gaming_thumb {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center;
    gap: 20px;
    flex: 0 0 390px;
    max-width: 390px;
}

.upcoming_gaming_list .single_upcoming_thumb {
    display: flex;
    width: 130px;
    min-width: 0;
    min-height: 150px;
    flex: 0 0 130px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 !important;
    text-align: center;
}

.upcoming_gaming_list .single_upcoming_thumb:nth-child(2) {
    width: 90px;
    min-height: 104px;
    flex: 0 0 90px;
    justify-content: center;
}

.upcoming_gaming_list .single_upcoming_thumb img {
    width: 94px !important;
    height: 94px !important;
    max-width: 94px;
    max-height: 94px;
    object-fit: contain;
}

.upcoming_gaming_list .single_upcoming_thumb:nth-child(2) img {
    width: 84px !important;
    height: 84px !important;
}

.upcoming_gaming_list .single_upcoming_thumb h5 {
    display: -webkit-box;
    width: 100%;
    min-height: 44px;
    max-height: 44px;
    margin: 8px 0 0;
    overflow: hidden;
    font-family: "Exo", sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    color: #ffffff;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.upcoming_gaming_list .single_upcoming_thumb h5 a {
    color: inherit;
}

.upcoming_gaming_list .single_upcoming_thumb h5 a:hover {
    color: #9f7cff;
}

@media (max-width: 992px) {
    .upcoming_gaming_list .upcoming_gaming_thumb {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .upcoming_gaming_list .upcoming_gaming_thumb {
        gap: 10px;
    }

    .upcoming_gaming_list .single_upcoming_thumb {
        width: 104px;
        min-height: 130px;
        flex-basis: 104px;
    }

    .upcoming_gaming_list .single_upcoming_thumb:nth-child(2) {
        width: 68px;
        flex-basis: 68px;
    }

    .upcoming_gaming_list .single_upcoming_thumb img {
        width: 76px !important;
        height: 76px !important;
    }

    .upcoming_gaming_list .single_upcoming_thumb:nth-child(2) img {
        width: 62px !important;
        height: 62px !important;
    }

    .upcoming_gaming_list .single_upcoming_thumb h5 {
        font-size: 13px;
    }
}
