/* Increase size of Jellyfin logo */
.layout-desktop .pageTitleWithLogo {
    margin-left: 10px !important;
    height: 40px !important;
}

/* Static left drawer */
.layout-desktop .mainDrawer {
    left: 0 !important;
    top: 0 !important;
    width: 250px !important;
    /* Modified background color */
    background-color: transparent !important;
    /* Move drawer behind header */
    z-index: 998 !important;
}
/* Lower drawer buttons */
.layout-desktop .mainDrawer-scrollContainer {
    margin-top: 95px !important;
}
.layout-mobile .mainDrawer-scrollContainer {
    margin-top: 20px !important;
}
/* Shift content to the right */
.layout-desktop .libraryPage:not(#editItemMetadataPage) {
    margin-left: 250px !important;
}
/* Fix for Jellyfin Media Player */
.quickConnectSettingsContainer {
    margin-left: 250px !important;
}
/* Hide transition on page load */
.layout-desktop .touch-menu-la.transition {
    transition: none !important;
}
/* Hide hamburger button */
.layout-desktop .mainDrawerButton {
    display: none !important;
}
/* Fix for dashboard leaking out of the sections */
.dashboardColumn {
    flex-shrink: inherit;
}
/* Fix for dashboard drawer button height */
.layout-desktop .dashboardDocument .mainDrawer-scrollContainer {
    padding-top: 0 !important;
}
/* Hide home button */
.layout-desktop .headerHomeButton {
    display: none !important;
}
.layout-desktop .dashboardDocument .headerHomeButton {
    display: block !important;
}
/* Fix for video player and login page */
.layout-desktop .hide-scroll .mainDrawer,
.layout-desktop .hideMainDrawer .mainDrawer {
    left: -320px !important;
}
/* Fix for scroll menus on home page */
.emby-scroller {
    margin-right: -2% !important;
}

/* Hide 'My Media' title on Homepage */
#indexPage .section0 .sectionTitle {
    display: none;
}

/* Centralise the 'My Media (small)'  */
#indexPage .section0 .itemsContainer.padded-left.padded-right {
    justify-content: center;
    padding-top: 15px;
}

#indexPage .section0 .itemsContainer.padded-left.padded-right .emby-button {
    background: rgba(35, 35, 35, 0.5);
    backdrop-filter: blur(50px);
}

/* Rounded cards */
.cardContent,
.cardPadder,
.cardOverlayContainer,
.blurhash-canvas,
.dialog,
.itemSelectionPanel {
    border-radius: 10px !important;
}
/* Rounded selection menu */
.itemSelectionPanel {
    border: 2px solid #00a4dc !important;
}
.itemSelectionPanel .checkboxOutline {
    margin: 7px !important;
}



/* Floating progress bar */
.innerCardFooter {
    border-radius: 15px !important;
    width: 100px !important;
    margin-left: 5px !important;
    margin-bottom: 5px !important;
    padding: 5px !important;
    bottom: 0% !important;
    background: rgba(0,0,0,0.5) !important;
}
.fullInnerCardFooter {
    bottom: 5% !important;
    width: 90% !important;
    margin: auto !important;
    border-radius: 100px !important;
    padding: 0px !important;
}
.itemProgressBar {
    height: 10px !important;
    background: rgba(35,35,35,0.75) !important;
    backdrop-filter: blur(2px) !important;
}
.innerCardFooterClear {
    background-color: none !important;
}
.innerCardFooter .cardText {
    padding: 0 0 0 10px !important
}
.itemProgressBarForeground {
    border-radius: 100px !important;
}

/* Green watched indicator */
.playedIndicator {
    /* background: rgb(64, 152, 67, 0.5) !important; */
    background: linear-gradient(to bottom right, rgba(74, 150, 76, 0.5), rgba(32, 139, 35, 0.5)) !important;
}

.countIndicator, .fullSyncIndicator, .mediaSourceIndicator, .playedIndicator {
    /* background: rgba(35, 35, 35, 0.5); */
    background: linear-gradient(to bottom right, rgba(170, 92, 195, 0.5), rgba(0, 164, 220, 0.5));
    backdrop-filter: blur(50px);
}

/* Rounded left drawer buttons */
.navMenuOption,
.navMenuOption:hover,
.navMenuOption-selected {
    border-radius: 100px !important;
    width: 85% !important;
    margin: auto !important;
    text-align: center !important;
    height: 45px !important;
}
.navMenuOption:hover:not(.navMenuOption-selected) {
    background-color: rgba(44, 44, 44, 0.7);
}
/* Center icons and text and shift to the left */
.navMenuOptionIcon,
.navMenuOptionText {
    position: inherit !important;
    left: -10% !important;
    margin-top: 0 !important;
}
/* Fix for header buttons */
.layout-desktop .emby-button-foreground {
    top: -9px !important;
}
.layout-tv .emby-button-foreground {
    top: -14px !important;
}



/* Custom button color */
.navMenuOption-selected {
    background: rgba(33, 149, 243, 0.2) !important;
    color: rgb(33, 149, 243) !important;
    backdrop-filter: blur(50px) !important;
}



/* Transparent header bar */
.skinHeader {
    background-color: transparent !important;
}
.layout-desktop .skinHeader,
.layout-tv .skinHeader {
    padding-top: 1.5em !important;
}
.layout-tv .skinHeader {
    padding-bottom: 10px !important;
}
/* Rounded header buttons */
.headerTabs,
.headerRight {
    background-color:rgba(35, 35, 35, 0.5) !important;
    border-radius: 50px !important;
    backdrop-filter: blur(50px) !important;
}
.layout-desktop .headerTabs,
.layout-desktop .headerRight,
.layout-tv .headerTabs,
.layout-tv .headerRight {
    margin-bottom: 10px !important;
}
.layout-desktop .headerTabs {
    margin-left: 160px !important;
}
/* Button height */
.headerRight,
.emby-tab-button {
    height: 45px !important;
}
/* Lower header and add padding to right buttons */
.layout-desktop .headerRight {
    padding: 0px 5px !important;
}
.layout-tv .headerRight {
    padding: 20px 10px !important;
}
/* Move left header back up */
.layout-desktop .headerLeft
.layout-tv .headerLeft {
    position: relative !important;
    top: -17px !important;
}
/* Mobile fixes */
.layout-mobile .headroom--unpinned {
    transform: translateY(-50%);
}
.layout-mobile .sectionTabs {
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto !important;
}
.layout-mobile .emby-button-foreground {
    top: -2px !important;
}



/* Settings and dashboard modifications */
.emby-input,
.emby-textarea,
.paperList,
.listItem:hover,
.subtitleappearance-preview {
    border-radius: 15px !important;
}
.button-submit,
.emby-select,
.checkboxOutline,
.btnRefresh,
#btnShutdown,
.raised {
    border-radius: 100px !important;
}
/* Modify username placement on profile page */
.layout-desktop #userProfilePage .readOnlyContent div:not([class]), div[class=""]{
    align-items: initial !important;
}
.layout-desktop .username {
    margin: 0px 0px 10px 10px !important;
}
/* Red shutdown button */
#btnShutdown {
    background: #AE3739 !important;
}
/* Remove border under certain dashboard items */
.listItem-border {
    border: 0 !important;
}
/* Add padding to list items */
.layout-desktop .listItem,
.layout-tv .listItem {
    padding-left: 15px !important;
}
/* Rounded dashboard cards */
.cardBox {
    border-radius: 15px !important;
}
/* Removed ugliness of border-card styling */
.layout-desktop fieldset.verticalSection-extrabottompadding,
.layout-tv fieldset.verticalSection-extrabottompadding {
    border-radius: 15px !important;
    border-color: #3B3B3B !important;
    padding: 10px 35px !important;
}



/* Metadata editor fixes */
.editPageSidebar {
    margin-left: 250px !important;
    width: 20% !important;
}
.layout-desktop #editItemMetadataPage {
    margin-left: 215px !important;
}
.jstree-default-large .jstree-node {
    line-height: 35px !important;
}
.jstree-default .jstree-wholerow-clicked {
    background: rgba(33, 149, 243, 0.2) !important;
}
.jstree-wholerow-hovered {
    background: rgba(35, 35, 35, 0.5) !important;
}
.jstree-children {
    margin-left: -10px !important;
}
#editItemMetadataPage .btnHeaderSave {
    background: #00A4DC !important;
    border-radius: 100px !important;
    height: 40px !important;
    color: white !important;
}



/* Remove show/movie image on details page */
.layout-desktop .detailImageContainer {
    display: none !important;
}

/* Re-position content on details page */
.layout-desktop .detailSection {
    margin-right: 0 !important;
}
.layout-desktop .detailPageContent {
    padding-left: 4% !important;
}

/* Re-position logo */
.layout-desktop .detailLogo,
.layout-tv .detailLogo {
    right: 0 !important;
    left: 4% !important;
    top: 14vh !important;
}

/* Transparent ribbon bar */
.detailRibbon {
    background: transparent !important;
}

/* Add card around top-right buttons */
.layout-desktop .mainDetailButtons {
    background: rgba(35, 35, 35, 0.5) !important;
    border-radius: 100px !important;
    backdrop-filter: blur(10px) !important;
}
.layout-mobile .mainDetailButtons {
    background: #181818 !important;
    border-radius: 100px !important;
}

/* Add card around groups section */
.layout-desktop .detailsGroupItem {
    background: rgba(35, 35, 35, 0.5) !important;
    padding: 10px 20px !important;
    border-radius: 100px !important;
    width: fit-content !important;
    max-width: max-content !important;
    backdrop-filter: blur(40px) !important;
    display: flex;
    gap: 1em;
}

/* Fix for group section labels */
.detailsGroupItem .label, .trackSelections .selectContainer .selectLabel {
    min-width: 75px;
    flex-basis: unset;
    margin: unset;
}

/* Alternative mobile group section card */
.layout-mobile .itemDetailsGroup {
    background: #181818 !important;
    padding: 15px 20px 5px 20px !important;
    border-radius: 15px !important;
}

/* Add card around description */
.layout-desktop .detailSectionContent {
    background: rgba(35, 35, 35, 0.5) !important;
    border-radius: 15px !important;
    padding: 40px 20px 10px 20px !important;
    margin-top: 50px !important;
    backdrop-filter: blur(40px) !important;
}
.layout-mobile .detailSectionContent {
    background: #181818 !important;
    border-radius: 15px !important;
    padding: 10px 20px !important;
}

/* Add card around track selection */
.layout-desktop .trackSelections {
    background: rgba(35, 35, 35, 0.5) !important;
    border-radius: 15px !important;
    padding: 10px 20px !important;
    margin-top: 20px !important;
    backdrop-filter: blur(40px) !important;
}
.layout-mobile .trackSelections {
    background: #181818 !important;
    border-radius: 15px !important;
    padding: 10px 20px !important;
    margin-top: 20px !important;
}

/* Fix for track select dropdowns */
.trackSelections .selectContainer .detailTrackSelect {
    padding: 0 10px;
}

/* Re-position title */
.layout-desktop .infoWrapper {
    margin-top: 245px !important;
}
.layout-desktop .detailPagePrimaryContainer {
    padding-left: 4% !important;
}
.layout-desktop .nameContainer {
    position: absolute !important;
    margin-top: -55px !important;
}
.layout-desktop .itemMiscInfo {
    position: absolute !important;
    margin-left: 21px !important;
    margin-top: 16px !important;
}

/* Move track selection box */
.detailSection {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
}
.detailSection .detailSectionContent {
    -webkit-box-ordinal-group: 1;
    -moz-box-ordinal-group: 1;
    box-ordinal-group: 1;
}
.detailSection .recordingFields {
    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    box-ordinal-group: 2;
}
.detailSection .trackSelections {
    -webkit-box-ordinal-group: 3;
    -moz-box-ordinal-group: 3;
    box-ordinal-group: 3;
}
.detailSection .itemDetailsGroup {
    -webkit-box-ordinal-group: 4;
    -moz-box-ordinal-group: 4;
    box-ordinal-group: 4;
}
/* Fix for backdrops */
.layout-desktop #itemBackdrop {
    display: none !important;
}
.layout-desktop .detailPageWrapperContainer {
    padding-top: 20% !important;
}
/* Move episode title */
.layout-desktop .nameContainer {
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
}
.layout-desktop .nameContainer .parentName {
    -webkit-box-ordinal-group: 1;
    -moz-box-ordinal-group: 1;
    box-ordinal-group: 1;
}
.layout-desktop .nameContainer .itemName {
    -webkit-box-ordinal-group: 2;
    -moz-box-ordinal-group: 2;
    box-ordinal-group: 2;
    margin: 0.45em 0 0 0 !important;
}



/* Live TV */
/* Modified background color of active guide cells */
.programCell-active {
    background: #181818 !important;
}
/* Translucent buttons */
.raised.emby-button:not(.button-submit) {
    background: rgba(35, 35, 35, 0.5) !important;
    backdrop-filter: blur(40px) !important;
}
/* Repositioned record button */
.recordingFields {
    margin: 5px 0 -7px 0 !important;
}
.recordingButton {
    height: 40px !important;
}
.recordingIcon {
    color: red !important;
}
/* Remove overlapping text */
.itemMiscInfo.itemMiscInfo-secondary {
    margin-left: 65px !important;
}



/* Player modifications */
.upNextContainer, .toastVisible {
    backdrop-filter: blur(50px) !important;
}
.upNextContainer {
    border-radius: 15px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
}
.toastVisible {
    border-radius: 30px !important;
    background-color: rgba(35, 35, 35, 0.5) !important;
}
.sliderBubble {
    border-radius: 15px !important;
    background-color: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(10px) !important;
}
.mdl-slider-background-flex {
    height: 10px !important;
    margin-top: -5px !important;
    border-radius: 100px !important;
    background: hsla(0,0%,100%,.2) !important;
}
.mdl-slider-background-lower {
    border-radius: 100px !important;
}
.mdl-slider::-moz-range-thumb {
    background: rgba(0,0,0,0) !important;
}
.mdl-slider-background-upper {
    display: none !important;
}

/* Support for Jellyscrub plugin */
.chapterThumbContainer {
    background: none !important;
    border-radius: 15px !important;
}
.chapterThumb {
    border-radius: 15px !important;
    margin-bottom: 40px !important;
}
.chapterThumbTextContainer {
    background: none !important;
}
.chapterThumbText {
    text-align: center !important;
}
.chapterThumbText-dim {
    display: none !important;
}



/* Music Player */
.layout-desktop .appfooter {
    margin-left: 250px !important;
}
.layout-desktop .appfooter .nowPlayingBarInfoContainer {
    margin-left: 10px !important;
}
.layout-desktop .volumeOsd {
    border-radius: 10px !important;
    background: rgba(0,0,0,.6) !important;
}
.layout-desktop .nameContainer .musicParentName {
    margin-top: 18px !important;
    margin-right: 22px !important;
}



/* Fix for scaling issues */
@media (width: 1600px) {
    .layout-desktop .headerRight {
        margin-bottom: 0 !important;
    }
    .layout-desktop .emby-button-foreground {
        top: -4px !important;
    }
}
@media (max-width: 1599px) {
    .layout-desktop .pageTitleWithLogo {
        margin-left: 25px !important;
    }
    .layout-desktop .headerTabs {
        margin-top: -65px !important;
    }
    .layout-desktop .headerRight {
        margin-right: 15px !important;
    }
    .layout-desktop .sectionTabs {
        width: auto !important;
        align-self: center !important;
    }
    .layout-desktop .emby-button-foreground {
        top: -2px !important;
    }
}



/* Fixes for TV Layout */
.layout-tv .sectionTabs {
    width: auto !important;
}
.layout-tv .headerLeft {
    padding: 5px !important;
}



/* Login page */
.layout-desktop #loginPage {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.layout-desktop #loginPage .padded-left.padded-right.padded-bottom-page.margin-auto-y {
    background: #181818 !important;
    width: 400px !important;
    border-radius: 25px !important;
    padding: 50px !important;
}
.layout-desktop #loginPage .manualLoginForm .btnCancel {
    position: absolute !important;
    background: none !important;
    width: 100px !important;
    margin-left: -10px !important;
    margin-top: 70px !important;
    text-align: left !important;
}
.layout-desktop #loginPage .visualLoginForm {
    position: relative !important;
    background: #181818 !important;
    z-index: 1000 !important;
}
.layout-desktop #loginPage .btnForgotPassword {
    background: none !important;
    font-weight: normal !important;
    width: 150px !important;
    text-align: right !important;
    position: absolute !important;
    margin-left: 255px !important;
    margin-top: -195px !important;
    font-size: smaller !important;
    color: rgba(255, 255, 255, 0.5) !important;
    z-index: 1 !important;
}
.layout-desktop #loginPage .disclaimerContainer {
    top: 130px !important;
    position: relative !important;
    left: -50px !important;
    width: 500px !important;
    margin-top: -35px !important;
}
.layout-desktop #loginPage .squareCard {
    width: 25% !important;
    font-size: smaller !important;
}
@media (max-width: 100em) {
    .layout-desktop #loginPage .squareCard {
        width: 20% !important;
    }
    .layout-desktop #loginPage .padded-left.padded-right.padded-bottom-page.margin-auto-y {
        width: 600px !important;
    }
    .layout-desktop #loginPage .btnForgotPassword {
        margin-left: 450px !important;
    }
    .layout-desktop #loginPage .disclaimerContainer {
        width: 700px !important;
    }
}
@media (max-width: 87.5em) {
    .layout-desktop #loginPage .squareCard {
        width: 20% !important;
    }
}
@media (max-width: 75em) {
    .layout-desktop #loginPage .squareCard {
        width: 20% !important;
    }
}
@media (max-width: 43.75em) {
    .layout-desktop #loginPage .squareCard {
        width: 20% !important;
    }
}



/* Dialog box */
.layout-desktop .dialog {
    padding: 0px 10px 10px 10px !important;
}