.top-repertoire-heading {
    border-bottom: 1px solid #000;
    align-items: center;
    font-size: 22px;
    line-height: 22px;
    transition: opacity 0.3s ease;
}

.top-repertoire-heading h2 {
    margin-bottom: 0;
    font-size: 26px;
    text-transform: uppercase;
    line-height: 38px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 120px;
    padding: 0 12px;
}

.events-category {
    display: flex;
    gap: 20px;
    opacity: 1;
    flex-wrap: wrap;
    transition: opacity 0.3s ease-in-out;
}

.events-category.hidden {
    opacity: 0;
}

.event-group {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    color: #5E6E76;
    transition: color .2s ease;
}

.event-group,
.event-group.active {
    text-transform: uppercase;
    color: #5E6E76;
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.1s ease;
}

.event-group:focus {
    outline: none;
}

.event-group:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.separator {
    color: #5E6E76;
    font-size: 40px;
    line-height: 22px;
}

.all-events-btn {
    font-size: 18px;
    font-weight: 500;
    padding: 6px;
    background-color: var(--active-color);
    border: 2px solid var(--active-color);
    border-radius: var(--radius);
    min-width: 350px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s !important;
}

.sort-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: #fff;
    border: 1px solid #5E6E76;
    min-width: 193px;
    max-width: 193px;
    z-index: 1000;
    padding: 0;
    margin-top: 0;
    list-style: none;
}

.sort-menu.show {
    display: block;
}

.sort-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.sort-toggle {
    background: none;
    border: none;
    color: #5E6E76;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    font-size: 20px;
    text-transform: uppercase;
}

.sort-toggle:focus {
    outline: none;
}

.sort-item {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: left;
    background: none;
    border: none;
    text-decoration: none;
    color: #5E6E76;
    font-size: 16px;
    font-weight: 300;
    transition: background-color .2s;
    text-transform: uppercase;
}

.sort-item.active {
    font-weight: 500;
}

ul.sort-menu>li:nth-child(1)>a {
    padding-bottom: 8px;
    padding-top: 10px;
}

ul.sort-menu>li:nth-child(2)>a {
    padding-top: 8px;
    padding-bottom: 10px;
}

.sort-item:hover {
    background: #f5f5f5;
}

.sort-arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    border-style: solid;
    border-width: 2px 2px 0 0;
    border-color: #5E6E76;
    transform: rotate(-45deg);
    transition: transform .3s ease;
}

.sort-menu.show+.sort-toggle .sort-arrow,
.sort-toggle[aria-expanded="true"] .sort-arrow {
    transform: rotate(135deg);
}

.filter-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.separator {
    color: #5E6E76;
    margin: 0 5px;
}

.event-card {
    background: rgba(242, 246, 250, 1);
    display: flex;
    gap: 18px;
    padding: 18px 20px;
    position: relative;
    min-height: 240px;
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: hidden;
    transform: translateY(0);
    transition:
        opacity 0.3s ease-in-out,
        visibility 0.3s ease-in-out,
        transform 0.3s ease-in-out,
        background-color 0.3s ease-in-out,
        box-shadow .25s ease, transform .25s ease, border-color .25s ease;
    min-width: 0;
    will-change: opacity, transform;
}

.event-card.hidden {
    opacity: 0;
    margin-bottom: 0;
    visibility: hidden;
    height: 0;
    pointer-events: none;
    border: none;
    padding: 0 !important;
    transform: translateY(20px);
}

.event-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transform: translateY(-3px);
}

.event-card:focus-within {
    border-color: #222;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
}

.event-image-horizontal {
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--poster-gradient-bg);
    max-width: 250px;
}

.event-image-horizontal img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: cover;
    display: block;
}

.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.event-title {
    font-size: 26px;
    font-weight: 500;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: none;
}

.scene-info {
    font-size: 12px;
    line-height: 1.2;
    color: #313c40;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scene-info div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.scene-info span[class$='icon'] {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.event-button {
    margin-top: 14px;
    align-self: flex-end;
    border: 1px solid #000;
    color: #000;
    border-radius: 40px;
    padding: 0 26px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .25px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.event-button:hover,
.event-button:focus {
    background: #000;
    color: #fff;
}

.event-button:active {
    transform: translateY(1px);
}

.event-button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}


@media (max-width:1100px) {
    .event-card {
        flex-direction: column;
        padding: 16px 16px 18px;
    }

    .event-image-horizontal {
        width: 100%;
        flex: 0 0 auto;
        aspect-ratio: 3/4;
    }

    .event-content {
        padding-top: 4px;
    }

    .event-button {
        width: 100%;
    }
}

@media (max-width:900px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width:768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width:650px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width:600px) {
    .event-card {
        padding: 14px 14px 16px;
    }

    .event-title {
        font-size: 15px;
    }
}

@media (max-width:576px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width:420px) {
    .event-card {
        padding: 12px 14px 14px;
        gap: 14px;
    }

    .event-title {
        font-size: 14px;
    }
}