.header-section .ts-header-search {
    flex: 1;
    min-width: 0;
    margin: 0 24px;
}

.header-section .ts-header-search > li {
    width: 100%;
    padding: 0;
}

.header-section .ts-header-search .ts-search {
    min-width: 0;
    margin: auto;
}

.header-section .ts-primary-menu {
    width: 100%;
    justify-content: flex-start;
}

.ts-primary-menu .ts-menu-icon {
    display: none;
}

.ts-primary-menu .ts-mobile-menu-heading {
    display: none;
}

.header-section :is(a, button):focus-visible,
.footer-navbar :is(a, button):focus-visible {
    outline: 2px solid var(--ts-accent);
    outline-offset: 3px;
}

.footer-navbar button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    min-width: 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ts-text);
    font-size: 10px;
    line-height: 1;
}

.footer-navbar a {
    min-width: 0;
    text-align: center;
}

.footer-navbar :is(a, button) span {
    overflow-wrap: anywhere;
}

.footer-navbar svg {
    flex-shrink: 0;
}

.footer-navbar button[aria-expanded=true] {
    color: var(--ts-accent);
}

.header-section [data-language-toggle] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid var(--ts-border);
    border-radius: 14px;
    background: transparent;
    color: var(--ts-text);
}

.header-section [data-language-toggle] img {
    max-width: 26px;
    max-height: 26px;
    margin: 0 !important;
}

.header-section .mobile-lang-menu {
    display: none;
}

.header-section .mobile-lang:not(.is-open) .mobile-lang-menu {
    display: none;
}

.header-section .mobile-lang.is-open .mobile-lang-menu {
    display: block;
}

.header-section .mobile-lang-menu a {
    min-height: 44px;
}

.header-section .ts-desktop-language .submenu {
    left: auto;
    right: 0;
    min-width: 160px;
}

.header-section .ts-desktop-language:not(.is-open):hover > .submenu {
    visibility: hidden;
    opacity: 0;
    display: none !important;
}

.header-section .ts-desktop-language.is-open > .submenu,
.header-section .ts-primary-menu li:focus-within > .submenu {
    display: block !important;
    visibility: visible;
    opacity: 1;
    transform: none;
}

.header-section button.header-bar {
    width: 44px;
    height: 44px;
    padding: 9px 7px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

.header-section button.header-bar span {
    left: 7px;
    width: 30px;
}

.header-section button.header-bar span:first-child {
    top: 11px;
}

.header-section button.header-bar span:nth-child(2) {
    top: 21px;
}

.header-section button.header-bar span:last-child {
    top: 31px;
}

.header-section button.header-bar.active span:first-child,
.header-section button.header-bar.active span:last-child {
    top: 21px;
}

.header-section button.header-bar.active span:first-child {
    transform: rotate(45deg);
}

.header-section button.header-bar.active span:last-child {
    transform: rotate(-45deg);
}

@media (max-width: 991px) {
    .header-section .mobile-header-actions {
        gap: 6px;
    }

    .header-section .mobile-lang > button,
    .header-section button.header-bar {
        border-radius: 12px;
        background: rgba(255, 255, 255, .06);
    }

    .header-section .ts-header-utilities,
    .header-section .ts-header-search {
        display: none !important;
    }

    .header-section .ts-primary-menu {
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: calc(20px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        background: #071526;
        box-shadow: none;
        overscroll-behavior: contain;
        overflow-y: auto;
    }

    .header-section .ts-primary-menu.active {
        animation: ts-menu-slide-in .2s ease-out;
    }

    .header-section .ts-primary-menu > li > a {
        display: flex !important;
        justify-content: flex-start;
        gap: 10px;
        min-height: 52px;
        padding: 10px 12px;
        border: 0;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.4;
        text-transform: none;
    }

    .header-section .ts-primary-menu > li + li {
        border: 0;
        margin-top: 2px;
    }

    .header-section .ts-primary-menu > li > a {
        background: transparent;
    }

    .header-section .ts-primary-menu .gradient-text {
        -webkit-text-fill-color: currentColor;
        background-image: none;
    }

    .header-section .ts-primary-menu > li > a > :is(img, .ts-menu-icon) {
        display: block;
        width: 24px;
        height: 24px;
        max-height: 24px !important;
        padding: 0;
        margin: 0 !important;
        object-fit: contain;
        flex-shrink: 0;
        color: var(--ts-muted);
    }

    .header-section .ts-primary-menu > li:not(.header-button) > a::after {
        content: '';
        position: static;
        margin-left: auto;
        width: 7px;
        height: 7px;
        flex-shrink: 0;
        border-top: 1.5px solid currentColor;
        border-right: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: .55;
    }

    .header-section .ts-primary-menu > .menu-item-has-children > a::after {
        transform: rotate(135deg);
    }

    .header-section .ts-primary-menu > .menu-item-has-children.open > a::after {
        transform: rotate(-45deg);
    }

    .header-section .ts-primary-menu .ts-mobile-menu-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin: 0 0 16px;
        padding: 0 4px 16px;
        border-bottom: 1px solid var(--ts-border);
    }

    .ts-mobile-menu-heading h2 {
        margin: 4px 0 0;
        color: var(--ts-text);
        font-size: 20px;
        line-height: 1.2;
    }

    .ts-menu-eyebrow {
        color: var(--ts-accent);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .06em;
    }

    .ts-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--ts-border);
        border-radius: 14px;
        background: transparent;
        color: var(--ts-text);
    }

    body.ts-menu-open {
        overflow: hidden;
    }

    body.ts-menu-open .footer-navbar {
        visibility: hidden;
    }

    body.ts-menu-open .overlay {
        z-index: 98;
        background: rgba(0, 0, 0, .48);
        animation: none;
    }

    .header-section .ts-primary-menu > li > a.active,
    .header-section .ts-primary-menu > li > a:hover {
        background: rgba(49, 215, 169, .1);
        color: var(--ts-accent);
    }

    .header-section .ts-primary-menu .submenu {
        margin: 6px 0 12px 34px;
        padding: 0 0 0 12px;
        border-left: 2px solid var(--ts-border);
    }

    .header-section .ts-primary-menu .submenu a {
        min-height: 48px;
        padding: 12px;
        border: 0;
        font-size: 15px;
        line-height: 1.4;
    }

    .header-section .ts-primary-menu li.header-button {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--ts-border);
    }

    .header-section .ts-primary-menu li.header-button > a {
        justify-content: center;
        background: rgba(255, 255, 255, .06);
        border: 1px solid var(--ts-border);
        border-radius: 10px;
        color: var(--ts-text) !important;
    }

    .header-section .ts-primary-menu li:focus-within > .submenu {
        display: none !important;
    }

    .header-section .ts-primary-menu li.open > .submenu {
        display: block !important;
    }

    .header-section .ts-search button {
        width: 44px;
        height: 44px;
        right: 0;
        background: transparent;
    }

    body .ts-footer {
        padding-bottom: calc(var(--ts-bottom-nav-height, 90px) + 36px);
    }

    html.white-mode .header-section .ts-primary-menu > li + li {
        border-top-color: #e2e8f0;
    }

    html.white-mode .header-section .ts-primary-menu > li > a {
        background: transparent;
    }

    html.white-mode .header-section .ts-primary-menu > li > a.active {
        background: #e8f3ef;
    }

    html.white-mode .header-section .ts-primary-menu li.header-button > a {
        background: #f2f5f9 !important;
        border-color: #c6cfdd !important;
        color: #18283e !important;
    }

    html.white-mode .header-section :is(.mobile-lang > button, button.header-bar) {
        background: #edf1f7;
    }
}

@keyframes ts-menu-slide-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-section .cinema-menu img {
        animation: none;
    }

    .header-section.header-active,
    .header-section .menu.active {
        animation: none;
    }

    .footer-navbar,
    .header-section .submenu {
        transition: none;
    }
}
