.box-office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 500px);
    justify-content: center;
    align-items: start;
    gap: 35px 28px;
    width: 100%;
    margin: 30px auto;
}

.box-office-card {
    position: relative;
    width: 500px;
    max-width: 100%;
}

.box-office-card__image-link {
    display: block;
}

.box-office-card__image {
    display: block;
    width: 100%;
    height: auto;
}

.box-office-card__actions {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: flex;
    gap: 8px;
}

.box-office-card__button {
    display: inline-block;
    padding: 6px 10px;
    color: #fff;
    background: #000;
    border: 1px solid #fff;
    text-decoration: none;
    font-weight: 600;
}

.box-office-card__button:hover,
.box-office-card__button:focus {
    color: #000;
    background: #fff;
}


.box-office-card__ticket {
    display: inline-block;
    padding: 7px 12px;
    color: #fff;
    border: 1px solid #fff;
    text-decoration: none;
}

.box-office-card__ticket:hover,
.box-office-card__ticket:focus {
    color: #0a2140;
    background: #fff;
}

.box-office-card[hidden] {
    display: none;
}





.box-office-controls {
    width: min(100%, 1528px);
    margin: 0 auto 28px;
}

.box-office-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.box-office-passes {
    margin-top: 0;
}

.box-office-passes__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.box-office-passes__links a {
    display: inline-block;
    padding: 9px 16px;
    color: #0a2140 !important;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 0px;
    font-weight: 600;
    text-decoration: none !important;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.box-office-passes__links a:hover {
    color: #0a2140;
    background-color: #fdb913;
    border-color: #fdb913;
    text-decoration: none;
    transform: translateY(-1px);
}

.box-office-passes__links a:focus-visible {
    outline: 3px solid #fdb913;
    outline-offset: 3px;
}


.box-office-header {
    width: min(100%, 1528px);
    margin: 0 auto;
    text-align: center;
}








.box-office-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.box-office-filter {
    padding: 9px 16px;
    border: 2px solid #0a2140;
    border-radius: 999px;
    background: #fff;
    color: #0a2140;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.box-office-filter:hover {
    background: #eef2f7;
    transform: translateY(-1px);
}

.box-office-filter:focus-visible {
    outline: 3px solid #fdb913;
    outline-offset: 3px;
}

.box-office-filter.is-checked {
    background: #0a2140;
    color: #fff;
    border-color: #0a2140;
}

.box-office-filter.is-checked {
    background: #fdb913;
    color: #0a2140;
    border-color: #fdb913;
}


.box-office-passes {
    margin-bottom: 28px;
}

.box-office-passes h2 {
    margin: 0 0 8px;
}

.box-office-passes__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.box-office-passes__links a {
    color: #0a2140;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.box-office-passes__links a:hover {
    color: #0056b3;
}

.box-office-passes__links a:focus-visible {
    outline: 3px solid #fdb913;
    outline-offset: 3px;
}









/*overrides*/




.box-office-controls-panel {
    background-color: #084b7a;
    padding: 28px 20px 32px;
    margin-bottom: 34px;
}

.box-office-controls {
    width: min(100%, 1528px);
    margin: 0 auto;
}




.box-office-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.box-office-filter {
    padding: 11px 20px;
    border: 2px solid #fff;
    border-radius: 0;
    background: #fff;
    color: #0a2140;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.box-office-filter:hover {
    background: #f2f5f8;
    transform: translateY(-1px);
}

.box-office-filter.is-checked {
    background: #fdb913;
    color: #0a2140;
    border-color: #fdb913;
}

.box-office-filter:focus-visible {
    outline: 3px solid #fdb913;
    outline-offset: 3px;
}




.box-office-controls__heading_1 {
    margin: 0 0 14px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    /*text-transform: uppercase;*/
    letter-spacing: 0.04em;
}



.box-office-controls__heading_2 {
    margin: 0 0 14px;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}




.box-office-passes {
    text-align: center;
}


.box-office-passes h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}



.box-office-passes__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.box-office-passes__links a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.box-office-passes__links a:hover {
    color: #fdb913;
}






.box-office-pass-menu {
    position: relative;
}

.box-office-pass-menu__toggle {
    padding: 10px 18px;
    border: 0;
    background: #fff;
    color: #0a2140;
    font-weight: 700;
    cursor: pointer;
}

.box-office-pass-menu__toggle span {
    margin-left: 6px;
}

.box-office-pass-menu__options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid #d6dce3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.box-office-pass-menu__options a {
    display: block;
    padding: 10px 14px;
    color: #0a2140;
    text-decoration: none;
    white-space: nowrap;
}

.box-office-pass-menu__options a:hover,
.box-office-pass-menu__options a:focus {
    background: #f3f5f7;
}



.box-office-pass-menu__options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: #f7f8fa;
    border: 1px solid #cfd6de;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    z-index: 20;
}

.box-office-pass-menu__options a {
    display: block;
    padding: 11px 16px;
    color: #0a2140;
    background: transparent;
    text-decoration: none;
    text-align: left;
    font-weight: 600;
}

.box-office-pass-menu__options a + a {
    border-top: 1px solid #d8dee5;
}

.box-office-pass-menu__options a:hover,
.box-office-pass-menu__options a:focus {
    background: #e9eef3;
}



.box-office-pass-menu__options a::after {
    content: "→";
    float: right;
    font-weight: 400;
}



@media (max-width: 540px) {
    .box-office-grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 0 15px;
    }

    .box-office-card {
        width: 100%;
    }
}