.match-event-discovery {
    position: relative;
    margin-bottom: 1rem;
    padding: 0.9rem;
    overflow: hidden;
    border: 1px solid #e7e2ec;
    border-radius: 1rem;
    background:
        radial-gradient(circle at 100% 0, rgba(118, 76, 145, 0.1), transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #faf8fc 100%);
    box-shadow: 0 0.35rem 1rem rgba(41, 31, 48, 0.07);
}

.match-event-discovery::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.25rem;
    background: linear-gradient(180deg, #7d557f, #c2788a);
    content: "";
}

.match-event-discovery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 0.2rem;
}

.match-event-discovery__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
    color: #302936;
    font-size: 0.9rem;
    font-weight: 900;
}

.match-event-discovery__icon {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 1.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eee8f2;
    color: #76527f;
}

.match-event-discovery__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
}

.match-event-discovery__more {
    padding: 0.35rem 0.45rem;
    color: #6f5877;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.match-event-discovery__close {
    display: inline-flex;
    width: 1.9rem;
    height: 1.9rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b828f;
}

.match-event-discovery__close:hover,
.match-event-discovery__close:focus-visible {
    background: #eee9f1;
    color: #3f3445;
}

.match-event-discovery__items {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.match-event-discovery__item {
    display: flex;
    min-width: 0;
    flex: 1 0 13.75rem;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem;
    border: 1px solid #ebe6ef;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.match-event-discovery__item:hover {
    border-color: #cfc0d6;
    box-shadow: 0 0.3rem 0.75rem rgba(75, 50, 88, 0.08);
    transform: translateY(-1px);
}

.match-event-discovery__thumb {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 0.65rem;
    background: #f5f2f7;
    object-fit: cover;
}

.match-event-discovery__body {
    min-width: 0;
}

.match-event-discovery__badge {
    display: block;
    width: fit-content;
    margin-bottom: 0.2rem;
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    background: #f0eaf3;
    color: #704e78;
    font-size: 0.64rem;
    font-weight: 900;
}

.match-event-discovery__title {
    display: -webkit-box;
    overflow: hidden;
    color: #343038;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.match-event-discovery__arrow {
    flex: 0 0 auto;
    margin-left: auto;
    color: #8e7695;
    font-size: 1.15rem;
}

@media (min-width: 769px) {
    .match-event-discovery__item {
        flex-basis: 0;
    }
}

@media (max-width: 576px) {
    .match-event-discovery {
        padding: 0.75rem;
        border-radius: 0.9rem;
    }

    .match-event-discovery__header {
        margin-bottom: 0.6rem;
    }

    .match-event-discovery__item {
        flex-basis: 12.4rem;
        padding: 0.55rem;
    }

    .match-event-discovery__thumb {
        width: 2.7rem;
        height: 2.7rem;
        flex-basis: 2.7rem;
    }
}
