.match-images {
    margin: 20px 0;
}

.match-main-image, .match-additional-image {
    margin-bottom: 15px;
}

.match-main-image img.main-image,
.match-additional-image img.additional-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-description {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Матчі, супротивники, турніри */
.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;
    }
}

.match_details_inner {
    position: relative;
}

.match-impact-title {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 116px;
    margin: 0 0 28px;
    padding: 20px 34px;
    overflow: hidden;
    border: 1px solid rgba(159, 124, 255, 0.3);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 222, 94, 0.13), transparent 19%),
        radial-gradient(circle at 18% 10%, rgba(152, 88, 255, 0.24), transparent 30%),
        radial-gradient(circle at 84% 92%, rgba(255, 40, 210, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(10, 2, 45, 0.96), rgba(18, 5, 65, 0.95) 52%, rgba(4, 0, 24, 0.98));
    box-shadow: inset 0 0 52px rgba(120, 78, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.24);
}

.match-impact-title::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(177, 84, 240, 0.76) 0 1px, transparent 1.5px);
    background-position: 0 0, 42px 30px;
    background-size: 88px 88px, 120px 120px;
    animation: matchImpactStars 22s linear infinite;
}

.match-impact-title::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 26px;
    height: 26px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    background:
        radial-gradient(circle, #fff 0 13%, #ffe76b 14% 25%, rgba(255, 128, 38, 0.86) 26% 38%, transparent 40%),
        conic-gradient(from 8deg, transparent 0 10deg, rgba(255, 235, 118, 0.95) 11deg 17deg, transparent 18deg 45deg, rgba(255, 62, 218, 0.86) 46deg 53deg, transparent 54deg 90deg, rgba(255, 235, 118, 0.95) 91deg 99deg, transparent 100deg 147deg, rgba(255, 95, 38, 0.86) 148deg 156deg, transparent 157deg 210deg, rgba(255, 235, 118, 0.9) 211deg 218deg, transparent 219deg 360deg);
    filter: drop-shadow(0 0 16px rgba(255, 229, 97, 0.92)) drop-shadow(0 0 34px rgba(255, 62, 218, 0.55));
    animation: matchImpactSpark 5s ease-in-out infinite;
}

.match-impact-team {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    font-family: "Exo", sans-serif;
    font-size: clamp(28px, 3.55vw, 50px);
    font-weight: 900;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 26px rgba(159, 124, 255, 0.34);
}

.match-impact-team-left {
    text-align: right;
    animation: matchImpactLeft 5s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.match-impact-team-right {
    text-align: left;
    animation: matchImpactRight 5s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.match-impact-core {
    position: relative;
    z-index: 2;
    display: flex;
    width: 96px;
    height: 96px;
    align-items: center;
    justify-content: center;
}

.match-impact-core span {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 233, 105, 0.46);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 228, 80, 0.22), rgba(116, 48, 255, 0.16) 48%, rgba(5, 0, 29, 0.82));
    color: #ffe96b;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 232, 101, 0.9);
    box-shadow: 0 0 32px rgba(159, 124, 255, 0.24), inset 0 0 18px rgba(255, 255, 255, 0.08);
    animation: matchImpactVs 5s ease-in-out infinite;
}

.match-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 190px minmax(180px, 1fr);
    align-items: center;
    gap: 26px;
    margin: 0 0 34px;
    padding: 34px 42px;
    overflow: hidden;
    border: 4px solid rgba(92, 70, 151, 0.48);
    border-radius: 38px;
    background:
        radial-gradient(circle at 50% 35%, rgba(116, 72, 255, 0.24), transparent 36%),
        radial-gradient(circle at 18% 32%, rgba(204, 40, 255, 0.12), transparent 26%),
        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);
}

.match-hero-card::before {
    content: '';
    position: absolute;
    inset: 18px 22px;
    pointer-events: none;
    opacity: 0.4;
    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: matchStars 18s linear infinite;
}

.match-hero-space {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-family: "Exo", sans-serif;
    font-size: clamp(62px, 10vw, 150px);
    font-weight: 900;
    line-height: 1;
    color: transparent;
    text-transform: uppercase;
    opacity: 0.16;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(158, 95, 255, 0.85), rgba(255, 45, 245, 0.5), rgba(255, 255, 255, 0.1));
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: matchSpaceGlow 7s ease-in-out infinite;
}

.match-hero-team,
.match-hero-score {
    position: relative;
    z-index: 1;
}

.match-hero-team {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.match-hero-logo {
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    padding: 10px;
    border: 1px solid rgba(142, 101, 255, 0.72);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 28px rgba(81, 18, 255, 0.22);
}

.match-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.match-hero-team h3 {
    display: -webkit-box;
    min-height: 48px;
    max-height: 48px;
    margin: 0;
    overflow: hidden;
    font-family: "Exo", sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    color: #ffffff;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.match-hero-team h3 a {
    color: inherit;
}

.match-hero-team h3 a:hover {
    color: #9f7cff;
}

.match-hero-score {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
}

.match-hero-score strong {
    font-family: "Exo", sans-serif;
    font-size: clamp(42px, 6vw, 70px);
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}

.match-hero-scoreline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.match-hero-scoreline span {
    font-size: clamp(42px, 6vw, 70px) !important;
    font-weight: 900;
    line-height: inherit;
    color: #ffffff;
}

.match-hero-scoreline em {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    font-style: normal;
    color: rgba(255, 255, 255, 0.56);
}

.match-hero-scoreline .is-winner {
    color: #67ff9d;
    text-shadow: 0 0 22px rgba(103, 255, 157, 0.38);
}

.match-hero-scoreline .is-loser {
    color: #ff657f;
    text-shadow: 0 0 18px rgba(255, 101, 127, 0.28);
}

.match-hero-score span {
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #c028ff;
    text-transform: uppercase;
}

.match-hero-status {
    color: #67ff9d !important;
}

.match_details_content .date {
    display: inline-flex;
    padding: 12px 18px;
    border: 1px solid rgba(159, 124, 255, 0.38);
    border-radius: 8px;
    font-family: "Exo", sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(7, 0, 35, 0.72);
}

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

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

@keyframes matchImpactLeft {
    0%, 62%, 100% { transform: translateX(0) skewX(0); filter: none; }
    70% { transform: translateX(15%) skewX(-4deg); filter: brightness(1.08); }
    73% { transform: translateX(22%) skewX(-7deg); filter: brightness(1.4); }
    77% { transform: translateX(-2%) skewX(2deg); filter: brightness(1.15); }
    84% { transform: translateX(0) skewX(0); filter: none; }
}

@keyframes matchImpactRight {
    0%, 62%, 100% { transform: translateX(0) skewX(0); filter: none; }
    70% { transform: translateX(-15%) skewX(4deg); filter: brightness(1.08); }
    73% { transform: translateX(-22%) skewX(7deg); filter: brightness(1.4); }
    77% { transform: translateX(2%) skewX(-2deg); filter: brightness(1.15); }
    84% { transform: translateX(0) skewX(0); filter: none; }
}

@keyframes matchImpactTop {
    0%, 62%, 100% { transform: translateY(0) scale(1); filter: none; }
    70% { transform: translateY(17px) scale(1.01); filter: brightness(1.08); }
    73% { transform: translateY(28px) scale(1.04); filter: brightness(1.4); }
    77% { transform: translateY(-4px) scale(0.99); filter: brightness(1.15); }
    84% { transform: translateY(0) scale(1); filter: none; }
}

@keyframes matchImpactBottom {
    0%, 62%, 100% { transform: translateY(0) scale(1); filter: none; }
    70% { transform: translateY(-17px) scale(1.01); filter: brightness(1.08); }
    73% { transform: translateY(-28px) scale(1.04); filter: brightness(1.4); }
    77% { transform: translateY(4px) scale(0.99); filter: brightness(1.15); }
    84% { transform: translateY(0) scale(1); filter: none; }
}

@keyframes matchImpactSpark {
    0%, 68%, 84%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.18) rotate(0deg); }
    72% { opacity: 0.95; transform: translate(-50%, -50%) scale(2.2) rotate(24deg); }
    76% { opacity: 0.38; transform: translate(-50%, -50%) scale(3.4) rotate(42deg); }
}

@keyframes matchImpactVs {
    0%, 66%, 100% { transform: scale(1); filter: none; }
    73% { transform: scale(0.86); filter: brightness(1.5); }
    77% { transform: scale(1.08); filter: brightness(1.15); }
}

@keyframes matchImpactStars {
    from { background-position: 0 0, 42px 30px; }
    to { background-position: 88px 88px, 162px 150px; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .match-impact-title {
        grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
        gap: 14px;
        min-height: 104px;
        padding: 18px 24px;
    }

    .match-impact-team {
        font-size: clamp(26px, 3.2vw, 38px);
    }

    .match-impact-core {
        width: 78px;
        height: 78px;
    }

    .match-impact-core span {
        width: 60px;
        height: 60px;
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .match-impact-title {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        padding: 22px 18px;
    }

    .match-impact-team,
    .match-impact-team-left,
    .match-impact-team-right {
        text-align: center;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: clamp(24px, 8vw, 38px);
    }

    .match-impact-team-left {
        animation-name: matchImpactTop;
    }

    .match-impact-team-right {
        animation-name: matchImpactBottom;
    }

    .match-impact-core {
        width: 100%;
        height: 62px;
    }

    .match-impact-core span {
        width: 58px;
        height: 58px;
        font-size: 19px;
    }

    .match-hero-card {
        grid-template-columns: 1fr;
        padding: 24px 16px;
        border-radius: 24px;
    }

    .match-hero-logo {
        width: 100px;
        height: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .match-impact-title::before,
    .match-impact-title::after,
    .match-impact-team-left,
    .match-impact-team-right,
    .match-impact-core span {
        animation: none;
    }
}
