@charset "utf-8";
/* New header layout: logo left, centered nav, search right (no sidebar) */

#header,
#header .container,
#header #header_menu,
#header #header_menu ul.header_menu-list {
    height: auto !important;
}
#header,
#header .container {
    min-height: 60px;
    display: block;
}
#header .container {
    min-height: 60px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Logo - left */
#header #logo {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 40px;
    margin: 0 0 0 20px;
}
#header #logo img {
    height: 100%;
    width: auto;
    margin: 0;
    display: block;
}

/* Center nav */
#header #header_menu {
    display: block;
    float: none;
    margin: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    text-align: center;
}
#header #header_menu ul.header_menu-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}
@media (min-width: 821px) {
    #header #header_menu ul.header_menu-list {
        width: 80%;
    }
}
#header #header_menu ul.header_menu-list .nav-item {
    display: inline-block;
    margin: 0;
    position: relative;
}
#header #header_menu ul.header_menu-list .nav-item > a {
    height: 60px;
    line-height: 60px;
    padding: 0 18px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    position: relative;
}
#header #header_menu ul.header_menu-list .nav-item > a:hover {
    color: #d41f1c;
}
#header #header_menu ul.header_menu-list .nav-item.active > a {
    color: #d41f1c;
}
#header #header_menu ul.header_menu-list .nav-item.active > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d41f1c;
}

/* Search - right */
#header #search {
    position: static;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 320px;
    flex: 0 1 320px;
    min-width: 130px;
    width: 320px;
    margin-right: 12px;
    top: auto;
    left: auto;
}
#header #search input.search-input {
    padding-right: 90px;
}

/* User area - far right */
#header #header_right {
    position: static;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-right: 10px;
}

@media (max-width: 1440px) {
    #header #header_menu ul.header_menu-list .nav-item > a {
        padding: 0 12px;
        font-size: 13px;
    }
    #header #header_menu ul.header_menu-list .nav-item > a i {
        font-size: 12px;
        margin-right: 4px;
    }
    #header #search {
        -ms-flex: 0 1 280px;
        flex: 0 1 280px;
        min-width: 130px;
        width: 280px;
    }
}
@media (max-width: 1024px) {
    #header #logo {
        margin-left: 12px;
    }
    #header #header_menu ul.header_menu-list .nav-item > a {
        padding: 0 8px;
        font-size: 11px;
    }
    #header #header_menu ul.header_menu-list .nav-item > a i {
        font-size: 10px;
        margin-right: 3px;
    }
    #header #search {
        -ms-flex: 0 1 200px;
        flex: 0 1 200px;
        min-width: 120px;
        width: 200px;
    }
}
@media (max-width: 820px) {
    #header #header_menu ul.header_menu-list .nav-item > a {
        padding: 0 10px;
        font-size: 12px;
    }
    #header #logo {
        display: none;
    }
    #header #search {
        -ms-flex-preferred-size: 220px;
        flex-basis: 220px;
        width: 220px;
        margin-left: auto;
    }
}

/* Sidebar removed: content should span full page width */
body {
    padding-left: 0 !important;
}
.film-detail.detail-medium {
    padding-left: 20px !important;
}

/* ==== Mobile navigation fix (<=820px): logo+search+user row, scrollable menu row ==== */
@media (max-width: 820px) {
    #header {
        height: auto;
    }
    #header .container {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding: 8px 6px;
    }
    #header .container .clearfix {
        display: none;
    }
    #header #logo {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        height: 46px;
        margin: 0 8px 0 14px;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }
    #header #logo img {
        height: 100%;
        width: auto;
    }
    #header #search {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 160px;
        flex: 1 1 160px;
        -ms-flex-preferred-size: auto;
        flex-basis: auto;
        width: auto;
        min-width: 120px;
        max-width: 240px;
        margin: 0 4px 0 auto;
    }
    #header #header_right {
        margin-right: 8px;
    }
    #header #header_menu {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 100%;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        text-align: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-top: 6px;
        order: 4;
    }
    #header #header_menu::-webkit-scrollbar {
        display: none;
    }
    #header #header_menu ul.header_menu-list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 0 0 2px;
    }
    #header #header_menu ul.header_menu-list .nav-item {
        display: inline-block;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }
    #header #header_menu ul.header_menu-list .nav-item > a {
        height: 38px;
        line-height: 38px;
        padding: 0 8px;
        font-size: 11px;
        letter-spacing: .2px;
    }
    #header #header_menu ul.header_menu-list .nav-item > a i {
        font-size: 11px;
        margin-right: 3px;
    }
}
@media (max-width: 480px) {
    #header #logo {
        height: 42px;
        margin-left: 10px;
    }
    #header #search {
        -webkit-box-flex: 1;
        -ms-flex: 1 1 130px;
        flex: 1 1 130px;
        min-width: 90px;
    }
    #header #header_menu ul.header_menu-list .nav-item > a {
        font-size: 10px;
        padding: 0 6px;
    }
}

/* ==== Country dropdown filter nav item ==== */
.nav-country .dropdown-menu {
    top: calc(100% - 2px);
    left: auto;
    right: 0;
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;
    min-width: 210px;
    max-height: 70vh;
    overflow-y: auto;
    background: #141420;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    -webkit-box-shadow: 0 12px 35px rgba(0,0,0,.4);
    box-shadow: 0 12px 35px rgba(0,0,0,.4);
    padding: 6px 0;
    margin: 0;
    z-index: 1050;
}
.nav-country .dropdown-menu .dropdown-item {
    font-size: 13px;
    line-height: 1.4;
    padding: 7px 16px;
    color: #ddd;
    text-transform: none;
    white-space: normal;
}
.nav-country .dropdown-menu .dropdown-item:hover,
.nav-country .dropdown-menu .dropdown-item:focus {
    background: rgba(255,255,255,.08);
    color: #fff;
}
@media (hover: hover) and (pointer: fine) {
    .nav-country:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 820px) {
    /* no clipping in the menu row so the country dropdown can escape it */
    #header #header_menu {
        overflow: visible;
    }
    /* tighten nav so all items fit without scrolling */
    #header #header_menu ul.header_menu-list .nav-item > a {
        font-size: 10px;
        padding: 0 5px;
        letter-spacing: 0;
    }
    #header #header_menu ul.header_menu-list .nav-item > a i {
        font-size: 9px;
        margin-right: 2px;
    }
    /* anchor the dropdown to the header container: full width, below header */
    .nav-country {
        position: static !important;
    }
    .nav-country .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        min-width: 0 !important;
        -webkit-transform: none !important;
        -ms-transform: none !important;
        transform: none !important;
        max-height: 60vh;
        background: #141420;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 8px;
        -webkit-box-shadow: 0 12px 35px rgba(0,0,0,.4);
        box-shadow: 0 12px 35px rgba(0,0,0,.4);
        padding: 6px 0;
        margin: 0;
        z-index: 1050;
    }
    .nav-country .dropdown-menu .dropdown-item {
        padding: 9px 14px;
    }
}
@media (max-width: 480px) {
    #header #header_menu ul.header_menu-list .nav-item > a {
        font-size: 9px;
        padding: 0 4px;
    }
    #header #header_menu ul.header_menu-list .nav-item > a i {
        font-size: 8px;
        margin-right: 1px;
    }
}
