.event-card {
    position: relative;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    overflow: hidden;

    /* минимальная высота, чтобы карточка не схлопывалась */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* текст внизу */
}

/* фон с блюром */
.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--event-bg);
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.1); /* чтобы края не резались */
    z-index: 0;
}

/* затемнение */
.event-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* всё содержимое поверх */
.event-card > * {
    position: relative;
    z-index: 2;
}

.list-container {
    overflow-x: hidden;
    display: grid;
}

@media (min-width: 1000px) {
    .list-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1300px) {
    .list-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ads {
    width: calc(100% - 2rem);
    height: calc(100% - 3rem);
    margin: 0;
    margin-bottom: 1rem;
}

.extrabtnsdiv {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: var(--br);
    font-size: 12px;
    font-weight: 500;
    color: white;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
}

.extrabtn {
    background-color: #44944A;
    border-radius: var(--br);
    width: 35px;
    height: 35px;
    border: none;
    cursor: pointer;
    display: block;
    align-content: center;
}

.extrabtn img {
    width: 20px;
    height: 20px;
    justify-self: center;
}

.extrabtn.discord {
    background-color: #554494;
}

.sourceOfEventDiv {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: var(--br);
    font-size: 12px;
    font-weight: 500;
    color: white;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
}

.sourceOfEventDiv img {
    width: 50px;
}