.hidingAnimatedTab {
    visibility: hidden;
}

.headerArrowImage {
    height: 20px;
    margin-left: .5em;
}

.background-theme-b .backgroundContainer, .dialog.background-theme-b {
    background-color: #121314;
    /*background: radial-gradient(circle, #282828, #141414);*/
}

    .background-theme-b .backgroundContainer.withBackdrop {
        background-color: rgba(6, 6,6, .9);
        /*background: radial-gradient(circle, #282828, #141414);*/
    }

.ui-body-b {
    /* Need the important tag for paper dialogs with this class */
    color: #fff !important;
}

.pageWithAbsoluteTabs {
    background-color: transparent !important;
}

.backdropContainer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.pageWithAbsoluteTabs neon-animatable {
    z-index: 2;
}

.libraryPage .header {
    padding-bottom: 0;
}

.pageTabContent {
    contain: style;
}

.textActionButton {
    border: 0 !important;
    background: transparent;
    border: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    outline: none !important;
    color: inherit;
    vertical-align: middle;
    font-family: inherit;
    font-size: inherit;
}

    .textActionButton:hover {
        text-decoration: underline;
        opacity: 1;
    }

.pageWithAbsoluteTabs .pageTabContent, .libraryPage > .ui-content {
    padding-top: 10px;
}

/*.pageWithAbsoluteTabs .pageTabContent {
    padding-left: .5em !important;
    padding-right: .5em !important;
}*/

.flexPageTabContent.is-active {
    display: flex !important;
}

@media all and (max-width: 600px) {

    .libraryPage > .ui-content {
        padding-left: .5em !important;
        padding-right: .5em !important;
    }
}

.listHeader {
    margin: .25em 0;
    padding-left: 2px;
    line-height: 1.25em;
    line-height: initial;
}

@media all and (max-width: 500px) {

    .listHeader {
        padding-left: 5px;
    }
}

.listHeader + button {
    margin-left: 2em;
}

.ehsContent, .ehsContent .pageTabContent {
    margin: 0 auto;
}

.homePageSection {
    margin-top: 20px;
}

    .homePageSection + .homePageSection {
        margin-top: 30px;
    }

.sectionHeaderButton {
    vertical-align: middle;
    margin: 0 0 .25em 1.5em;
    position: relative;
    top: 8px;
}

.viewPanelTabs {
    margin-bottom: 2em;
}

@media all and (max-width: 800px) {

    .hiddenSectionOnMobile {
        display: none;
    }
}

@media all and (min-width: 800px) {

    .hiddenSectionOnNonMobile {
        display: none;
    }
}

@media all and (min-width: 1200px) {

    .paddedItemsContainer {
        padding: 0 .8em;
    }
}

@media all and (min-width: 1200px) {

    .ehsContent:not(.fullWidth), .ehsContent .pageTabContent {
        width: 96%;
    }
}

@media all and (min-width: 2560px) {

    .ehsContent:not(.fullWidth), .ehsContent .pageTabContent {
        width: 96%;
    }
}

.detailPageContent {
    margin: 0 auto;
    padding: 0;
    border-spacing: 0;
    border-collapse: collapse;
}

.viewSettings {
    margin: 0 0 .25em;
    text-align: center;
}

.listPaging {
    text-align: center;
    margin: .5em 0 .5em;
}

.viewControls + .listTopPaging {
    margin-left: .5em !important;
}

.criticReview {
    margin: 1.5em 0;
    background: #222;
    padding: .8em .8em .8em 55px;
    border-radius: 5px;
    position: relative;
}

    .criticReview:first-child {
        margin-top: .5em;
    }

    .criticReview img {
        width: 30px;
    }

.criticRatingScore {
    margin-bottom: .5em;
}

.itemTag {
    display: inline-block;
    background-color: #181818;
    border-radius: 4px;
    padding: 5px 7px;
    margin: 0 5px 5px 0;
    color: #fff !important;
    text-decoration: none;
    font-weight: normal !important;
}

.itemOverview {
    white-space: pre-wrap;
}

a.itemTag:hover {
    background-color: #2489ce;
}

.itemLinks {
    text-align: center;
    padding: 0;
}

    .itemLinks p {
        margin: .5em 0;
    }

.reviewerName {
    color: #ccc;
    margin-top: .5em;
}

.reviewLink {
    margin-top: .5em;
}

.reviewDate {
    margin-left: 1em;
}

.reviewScore {
    position: absolute;
    left: .8em;
}

span.itemCommunityRating:not(:empty) + .userDataIcons {
    margin-left: 1.25em;
}

.itemBackdrop {
    background-size: cover;
    background-position: center 15%;
    background-repeat: no-repeat;
    height: 640px;
    position: relative;
}

.smallBackdrop {
    height: 500px;
}

.noSecondaryNavPage .itemBackdrop {
    margin-top: -50px;
}

.noBackdrop {
    height: 170px;
    background: #181818;
    margin-top: 0 !important;
}

.withBackdrop + .mainDrawerPanel .noBackdrop {
    background-color: transparent;
}

.itemBackdropContent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    min-height: 120px;
}

.noBackdrop .itemBackdropContent {
    background-color: transparent;
}

.detailNameContainer {
    margin-top: -120px;
    height: 110px;
}

.desktopMiscInfoContainer {
    position: absolute;
    bottom: 10px;
}

.lnkSibling {
    position: absolute;
    bottom: 0;
    text-decoration: none;
    font-weight: normal !important;
    display: none;
    background-color: rgba(0,0,0,0.6);
    color: #ddd !important;
    background-color: transparent;
    padding: 0;
}

    .lnkSibling:not(.hide) {
        display: block;
    }

.detailUserDataIcons {
    display: inline-block;
}

@media all and (min-width: 540px) {

    .detailUserDataIcons {
        margin-left: .5em;
    }
}

@media all and (max-width: 1200px) {

    .lnkSibling {
        display: none !important;
    }
}

.lnkPreviousItem {
    left: 10px;
}

.lnkNextItem {
    right: 10px;
}

.detailImageContainer {
    float: left;
    margin-top: -140px;
}

.itemDetailImage {
    border: solid 1px transparent;
}

    .itemDetailImage.loaded {
        -moz-box-shadow: 0px 0 20px #000;
        -webkit-box-shadow: 0px 0 20px #000;
        box-shadow: 0px 0 20px #000;
        border: solid 1px #222;
    }

.detailImageContainer img {
    width: 280px;
    /* This is just to make sure it always takes up some space */
    min-height: 140px;
}

.portraitDetailImageContainer img {
    width: 220px;
}

.squareDetailImageContainer {
    margin-top: -150px;
}

.thumbDetailImageContainer {
    margin-top: -130px;
}

.itemDetailGalleryLink img:hover {
    -moz-box-shadow: 0 0 20px 3px #52B54B;
    -webkit-box-shadow: 0 0 20px 3px #52B54B;
    box-shadow: 0 0 20px 3px #52B54B;
}

.primaryDetailsContainer {
    float: left;
    padding: .75em 0 0 1.5em;
    width: 66%;
}

.portraitDetailImageContainer + .primaryDetailsContainer {
    width: 74%;
}

.parentName {
    display: block;
    margin-bottom: .5em;
}

.emby-button.detailFloatingButton {
    width: 56px !important;
    height: 56px !important;
    top: -28px;
    position: absolute;
    right: 25%;
    background-color: #52B54B !important;
}

.emby-button.btnFloatingRecord {
    background-color: #cc3333 !important;
}

@media all and (max-width: 1000px) {

    .primaryDetailsContainer {
        width: 64%;
    }

    .portraitDetailImageContainer + .primaryDetailsContainer {
        width: 72%;
    }

    .detailImageContainer img {
        width: 240px;
        /* This is just to make sure it always takes up some space */
        min-height: 120px;
    }

    .portraitDetailImageContainer img {
        width: 180px;
    }
}

@media all and (max-width: 800px) {

    .parentName {
        margin-bottom: 1em;
    }

    .primaryDetailsContainer {
        padding-top: 2.5em;
        padding-left: 1em;
    }

    .detailNameContainer {
        margin-top: auto;
        height: auto;
    }

    .itemBackdropContent {
        min-height: 0;
    }
}

@media all and (max-width: 600px) {

    .detailFloatingButton {
        right: 15px !important;
    }
}

@media all and (max-width: 600px) {

    .primaryDetailsContainer {
        width: 68%;
    }

    .portraitDetailImageContainer + .primaryDetailsContainer {
        width: 68%;
    }
}

@media all and (max-width: 400px) {

    .primaryDetailsContainer {
        width: 60%;
    }

    .portraitDetailImageContainer + .primaryDetailsContainer {
        width: 60%;
    }
}

@media all and (min-width: 500px) {

    .mobileDetails {
        display: none;
    }
}

@media all and (max-width: 500px) {

    .desktopDetails {
        display: none !important;
    }
}

.itemName {
    font-weight: normal !important;
    margin: .5em 0;
}

.empty {
    margin: 0;
}

.detailSection {
    vertical-align: top;
    margin-bottom: 3em;
}

.detailCollapsibleSection:not(.hide) + .detailCollapsibleSection {
    margin-top: -2em;
}

.detailPageCollabsible {
    margin-top: 0;
}

.detailSection h1 {
    margin-bottom: .25em;
    position: relative;
}

.detailSectionHeader {
    background-clip: border-box;
    padding: 0 0 .25em .25em;
    background-color: transparent;
    border-radius: 0;
    margin-bottom: .5em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    position: relative;
}

.ui-body-a .detailSectionHeader {
    border: 1px solid #ddd;
    border-width: 0 0 1px 0;
}

.ui-body-b .detailSectionHeader {
    border: 1px solid #444;
    border-width: 0 0 1px 0;
}

.detailSectionHeader, .detailSectionHeader h3 {
    font-size: 20px;
    font-weight: 400;
}

    .detailSectionHeader button {
        font-size: 13px;
    }

.detailSectionHeaderButton {
    margin-left: 1em;
}

.detailImageProgressContainer {
    position: absolute;
    bottom: 4px;
    right: 1px;
    left: 1px;
    text-align: center;
}

.viewControls, .listTopPaging {
    display: inline-block;
}

@media all and (min-width: 600px) {
    .inlineDetailSection:not(.hide) {
        display: inline-block;
        margin-bottom: 2em;
    }
}

@media all and (max-height: 900px), (max-width: 800px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 500px;
    }

    .smallBackdrop:not(.noBackdrop) {
        height: 300px;
    }
}

@media all and (max-height: 800px), (max-width: 700px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 450px;
    }

    .smallBackdrop:not(.noBackdrop) {
        height: 300px;
    }
}

@media all and (max-height: 700px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 350px;
    }

    .smallBackdrop:not(.noBackdrop) {
        height: 300px;
    }
}

@media all and (max-width: 540px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 290px;
    }

    .smallBackdrop:not(.noBackdrop) {
        height: 200px;
    }
}

@media all and (max-height: 540px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 250px;
    }

    .smallBackdrop:not(.noBackdrop) {
        height: 200px;
    }
}

@media all and (max-height: 460px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 200px;
    }

    .smallBackdrop:not(.noBackdrop) {
        height: 120px;
    }
}

@media all and (max-height: 300px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 150px;
    }

    .smallBackdrop:not(.noBackdrop) {
        height: 120px;
    }
}

@media all and (max-height: 250px) {

    .itemBackdrop:not(.noBackdrop) {
        height: 120px;
    }
}

@media all and (max-width: 1000px) {

    .detailImageContainer {
        padding-left: 15px;
    }
}

@media all and (max-width: 800px) {

    .editorMenuLink {
        display: none;
    }

    .noBackdrop {
        height: 80px;
    }

    .detailImageContainer {
        margin-top: -55px;
    }

    .squareDetailImageContainer {
        margin-top: -40px;
    }

    .thumbDetailImageContainer {
        margin-top: -80px;
    }

    .portraitDetailImageContainer + .primaryDetailsContainer {
        width: 70%;
    }

    .detailImageContainer img {
        width: 140px;
        /* This is just to make sure it always takes up some space */
        min-height: 140px;
    }

    .primaryDetailPageContent p {
        margin: 1em 0 !important;
    }

    .backdropDetailPageContent {
        text-align: center;
    }

    .thumbDetailImageContainer img {
        width: 180px;
        /* This is just to make sure it always takes up some space */
        min-height: 60px;
    }
}

.itemMiscInfo {
    text-overflow: ellipsis;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.mediaInfoItem {
    white-space: nowrap;
}

@media all and (max-width: 600px) {

    .portraitDetailImageContainer + .primaryDetailsContainer {
        width: 65%;
    }
}

@media all and (max-width: 500px) {

    .detailImageContainer img {
        width: 80px;
        /* This is just to make sure it always takes up some space */
        min-height: 60px;
    }

    .thumbDetailImageContainer img {
        width: 180px;
        /* This is just to make sure it always takes up some space */
        min-height: 60px;
    }

    .mobileDetails .itemMiscInfo {
        text-align: center;
        justify-content: center;
    }

    .itemMiscInfo .endsAt {
        display: none;
    }
}

@media all and (min-width: 750px) {
    .detailPageContent {
        max-width: 950px;
    }
}

.detailPageParentLink {
    text-decoration: none;
}

.mediaInfoContent {
    line-height: 1.5em;
}

.mediaInfoStream {
    margin: 1em 3em 1em 0;
    display: inline-block;
    color: #bbb;
    vertical-align: top;
}

.mediaInfoStreamType {
    display: block;
    color: #fff;
    margin-bottom: 1em;
}

.mediaInfoAttribute {
    color: #fff;
    display: inline-block;
}

.mediaInfoLabel {
    color: #aaa;
    margin-right: 1em;
    display: inline-block;
}

.posterRibbon {
    display: block;
    position: absolute;
    top: 5px;
    right: 5px;
    text-align: center;
    padding: 5px 6px;
    border-radius: 10px;
    color: #fff;
    background: rgb(0, 143, 187);
    background: rgba(0, 143, 187, .8);
    line-height: initial;
}

.offlinePosterRibbon {
    background: rgba(248, 58, 34, .8);
}

.unairedPosterRibbon {
    background: rgba(255, 106, 0, .8);
}

.missingPosterRibbon {
    background: rgba(248, 58, 34, .8);
}

.recordingProgressBar::-moz-progress-bar {
    background-color: #cc3333;
}

.recordingProgressBar::-webkit-progress-value {
    background-color: #cc3333;
}

.recordingProgressBar[aria-valuenow]:before {
    background-color: #cc3333;
}

.timelineHeader {
    margin-bottom: .25em;
    line-height: 1.25em;
    line-height: initial;
}

.itemsContainer {
    margin: 0 auto;
}

.alphabetPicker {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 999;
    text-align: center;
    font-size: 90%;
    display: none;
    line-height: 1;
}

.layout-desktop .absolutePageTabContent .alphabetPicker {
    right: 20px;
}

@media all and (max-height: 480px) {

    .alphabetPicker {
        display: none !important;
    }
}

@media all and (min-height: 480px) {

    .itemsContainerWithAlphaPicker {
        margin-right: 20px;
    }

    .absolutePageTabContent .itemsContainerWithAlphaPicker {
        margin-right: 30px;
    }
}

@media all and (min-height: 500px) {

    .alphabetPicker {
        bottom: 5px;
    }
}

@media all and (min-width: 1200px) {

    .itemsContainerWithAlphaPicker, .absolutePageTabContent .itemsContainerWithAlphaPicker {
        margin-right: 0;
    }
}

@media all and (max-height: 700px) {

    .alphaPicker-vertical .alphaPickerButton {
        padding-top: 1px !important;
        padding-bottom: 1px !important;
    }
}

@media all and (max-height: 600px) {

    .alphaPicker-vertical .alphaPickerButton {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media all and (max-height: 530px) {

    .alphabetPicker {
        font-size: 80%;
    }
}

@media all and (max-height: 480px) {

    .alphabetPicker {
        font-size: 76%;
    }
}

@media all and (min-height: 900px) {

    .alphabetPicker {
        bottom: 120px;
    }
}

@media all and (min-height: 1000px) {

    .alphabetPicker {
        bottom: 200px;
    }
}

@media all and (max-width: 1200px) {

    .listViewUserDataButtons {
        display: none !important;
    }
}

.userProfileSettingsForm {
    max-width: 700px;
}

@media all and (max-width: 700px) {

    .userProfileSettingsForm .detailSection {
        margin-left: .5em;
        margin-right: .5em;
    }
}

@media all and (max-width: 1000px) {

    .smallDetailImageContainer {
        padding-left: 1em;
    }
}

.homeFavoritesDisabled .homeFavoritesTab {
    display: none !important;
}

#criticReviewsContent.hiddenScrollX {
    white-space: nowrap;
}

    #criticReviewsContent.hiddenScrollX .paperList {
        min-width: 240px;
        width: 90%;
        max-width: 500px;
        display: inline-block;
        vertical-align: top;
        margin: 0 4px 0 0;
    }


@media all and (min-width: 1000px) {

    .itemDetailPage .portraitCard-scalable {
        width: 25% !important;
    }

    .itemDetailPage .squareCard-scalable {
        width: 25% !important;
    }

    .itemDetailPage .backdropCard-scalable, .itemDetailPage .smallBackdropCard-scalable {
        width: 33.3333333333333333% !important;
    }

    .itemDetailPage .personCard.portraitCard {
        width: 16.666666666666666666666666666667% !important;
    }
}

.btnSyncComplete {
    background: #673AB7 !important;
}

    .btnSyncComplete i {
        border-radius: 1000px;
    }
