.tournament-list-section {
    margin-top: -40px;
}

.tournament-list {
    display: grid;
    gap: 16px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

.tournament-list-item {
    overflow: hidden;
    border: 1px solid rgba(120, 78, 255, 0.38);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(81, 18, 255, 0.18), rgba(10, 2, 34, 0.94) 45%, rgba(15, 5, 48, 0.95)),
        rgba(10, 2, 34, 0.94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.tournament-list-heading {
    margin: 0;
}

.tournament-list-toggle.accordion-button {
    min-height: 72px;
    padding: 20px 58px 20px 24px;
    border: 0;
    border-radius: 0;
    font-family: "Exo", sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    text-transform: uppercase;
    background: transparent;
    box-shadow: none;
}

.tournament-list-toggle.accordion-button:focus {
    box-shadow: none;
}

.tournament-list-toggle.accordion-button:not(.collapsed) {
    color: #ffffff;
    background: rgba(81, 18, 255, 0.16);
}

.tournament-list-toggle.accordion-button::after {
    right: 24px;
    width: 16px;
    height: 16px;
    border-color: #ffffff;
}

.tournament-list-title {
    display: block;
    overflow-wrap: anywhere;
}

.tournament-list-body {
    padding: 0 22px 22px;
}

.tournament-list-card {
    display: grid;
    grid-template-columns: 150px minmax(260px, 1fr) minmax(360px, 0.95fr);
    grid-template-areas:
        "logo content stats"
        "logo content action";
    align-items: center;
    gap: 18px 24px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.tournament-list-logo {
    grid-area: logo;
    display: grid;
    place-items: center;
    width: 150px;
    height: 110px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid rgba(142, 101, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 28px rgba(81, 18, 255, 0.22);
}

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

.tournament-list-content {
    grid-area: content;
    min-width: 0;
}

.tournament-list-kicker {
    margin: 0 0 8px;
    font-family: "Exo", sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: #9f7cff;
    text-transform: uppercase;
}

.tournament-list-name {
    margin: 0;
    font-family: "Exo", sans-serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
}

.tournament-list-description {
    margin: 10px 0 0;
    display: -webkit-box;
    max-width: 520px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tournament-list-description:empty {
    display: none;
}

.tournament-list-stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tournament-list-stat {
    min-height: 88px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
}

.tournament-list-stat span {
    display: block;
    margin-bottom: 8px;
    font-family: "Exo", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    white-space: nowrap;
}

.tournament-list-stat strong {
    display: block;
    font-family: "Exo", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
}

.tournament-list-stat--status {
    border-color: rgba(159, 124, 255, 0.45);
    background: rgba(81, 18, 255, 0.18);
}

.tournament-list-stat--active strong {
    color: #67ff9d;
}

.tournament-list-stat--finished strong {
    color: #ff657f;
}

.tournament-list-link {
    grid-area: action;
    justify-self: end;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(159, 124, 255, 0.65);
    border-radius: 6px;
    font-family: "Exo", sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    background: #5112ff;
}

.tournament-list-link:hover {
    color: #ffffff;
    background: #6f3cff;
}

@media (max-width: 1100px) {
    .tournament-list-card {
        grid-template-columns: 132px 1fr;
        grid-template-areas:
            "logo content"
            "stats stats"
            "action action";
    }

    .tournament-list-link {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .tournament-list-stats {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
        overflow-x: auto;
        padding-bottom: 2px;
    }
}

@media (max-width: 768px) {
    .tournament-list-section {
        margin-top: -70px;
    }

    .tournament-list-toggle.accordion-button {
        min-height: 64px;
        padding: 16px 48px 16px 16px;
        font-size: 17px;
    }

    .tournament-list-body {
        padding: 0 14px 14px;
    }

    .tournament-list-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "content"
            "stats"
            "action";
        gap: 16px;
        padding: 18px;
    }

    .tournament-list-logo {
        width: 100%;
        max-width: 220px;
        height: 120px;
    }

    .tournament-list-stats {
        grid-template-columns: 1fr;
    }

    .tournament-list-link {
        width: 100%;
        justify-self: stretch;
    }
}
