@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,1..1000;1,1..1000&display=swap');

/* Limit Custom CSS code box size */
#txtCustomCss, #txtLocalCustomCss {
    height: 400px !important;
    max-height: none !important;
    overflow-y: scroll !important;
    resize: vertical !important;
}

.customCssContainer textarea {
    height: auto !important;
}

html {
  color: #fff;
  color: rgba(255, 255, 255, 1);
}

/* Backdrop */
.backgroundContainer, .preload {
  background-color: #080210;
}

.itemsContainer.padded-left {
    position: top;
    z-index: 1;
}

.sections.homeSectionsContainer::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url(https://i.imgur.com/dGBenC7.jpeg) center top no-repeat #030322;
    background-size: cover;
    opacity: 0;
    z-index: -1;
    background-attachment: fixed;
}

.pageTabContent.is-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url(https://i.imgur.com/dGBenC7.jpeg) center top no-repeat #030322;
    background-size: cover;
    opacity: 0.925;
	filter: brightness(90%);
    z-index: -1;
    background-attachment: fixed;
}

/*Apply bg to detail Ribbon */
.detailPagePrimaryContainer {
    position: relative;
    z-index: 2;
}

.detailPagePrimaryContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://i.imgur.com/dGBenC7.jpeg) center top no-repeat #030322;
    background-size: cover;
    opacity: 0.85;
    z-index: -1;
	filter: saturate(65%) brightness(105%);
}

/* Apply bg to detailPage content */
.detailPageSecondaryContainer {
    position: relative;
    z-index: 1;
}

.detailPageSecondaryContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(https://i.imgur.com/dGBenC7.jpeg) center top no-repeat #030322;
    background-size: cover;
    opacity: 0.925;
    z-index: -1;
	filter: saturate(75%) brightness(95%) contrast(100%);
}

/* Resize navbar */
.headerTop {
    padding: 0.95em;
}

body {
    font-family: "Sofia Sans", sans-serif;
    font-size: 12pt;
}

.layout-mobile body {
    font-size: 12pt;
}

h2 {
  font-size: 1.3em;
}

/* Movies / Shows gallery titles */
.layout-desktop .card,
.layout-tv .card {
    font-size: 1em;
}

.cardScalable {
	margin-bottom: 0.2em;
}

.textActionButton {
  font-size: 1.1em;
  transition: color 0.3s, font-weight 0.3s;
}

.textActionButton:hover {
  -webkit-text-decoration: none;
  text-decoration: none;
  color: #15afe6;
  font-weight: 700;
}

.cardText-secondary, .fieldDescription, .guide-programNameCaret, .listItem .secondary, .nowPlayingBarSecondaryText, .programSecondaryTitle, .secondaryText {
  color: rgba(255, 255, 255, 0.75);
}

/* Movies / Shows gallery titles */
.layout-mobile .card {
    font-size: 12pt !important;
}

@media (min-height: 31.25em) {
  [dir="ltr"] .padded-right-withalphapicker {
    padding-left: max(env(safe-area-inset-left),3.7%);
    padding-right: 7.5%;
    padding-right: max(env(safe-area-inset-right),3.5%);
  }
}

.parentName {
  margin: 0 0 0;
}

.hide + .detailPageWrapperContainer .itemName {
  display: none !important;
}

/* Font size for release year, ratings */
div.itemMiscInfo.itemMiscInfo-primary {
    font-size: 12pt;
}

.layout-desktop div.itemMiscInfo.itemMiscInfo-primary,
.layout-tv div.itemMiscInfo.itemMiscInfo-primary {
    font-size: 12pt;
}

/* Font size for the description */
p.overview.detail-clamp-text {
    font-size: 1.1em;
	color: #fff;
	font-weight: 400;
}

#itemDetailPage .tagline {
	font-weight: 600;
	font-size: 1.15em;
}

/* Font size for the description */
.layout-mobile p.overview.detail-clamp-text {
    font-size: 12pt; 
}

/* Font for the Movies, TV and Live TV buttons */
span.homeLibraryText {
    font-family: "Sofia Sans", sans-serif;
    font-size: 1.2em;
	transform: translateY(5%);
}

.layout-mobile span.homeLibraryText {
    font-size: 12pt;
}

/* Position card progress bar */
.innerCardFooter.fullInnerCardFooter.innerCardFooterClear {
    background: rgba(0, 0, 0, 0);
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: 0;
}

/* Apply progress bar gradient */
.itemProgressBarForeground {
    background: linear-gradient(90deg, rgb(1, 9, 40) 0%, rgb(36, 75, 147) 45%, rgb(23, 125, 255) 85%, rgb(24, 170, 222) 100%);}

/*Raise detailPage detailRibbon */

.itemBackdrop {
  height: 25.5em !important;
  display: inherit;
}

.layout-desktop .detailRibbon,
.layout-tv .detailRibbon {
  margin-top: 0;
  padding-top: 0em;
  padding-bottom: 0em;
}

.layout-tv .detailRibbon {
	margin-top: -4em !important;
}

.layout-desktop .detailImageContainer .card,
.layout-tv .detailImageContainer .card {
  top: 18vh;
}

[dir="ltr"] .detailPageContent {
  padding-left: 31em;
  padding-right: 0%;
}


.layout-desktop .itemName.infoText.parentNameLast,
.layout-tv .itemName.infoText.parentNameLast {
    display: block;
	text-align: center;
}

.layout-desktop [dir="ltr"] .detailPagePrimaryContainer, .layout-tv [dir="ltr"] .detailPagePrimaryContainer {
  padding-left: 31em;
}

.hide+.detailPageWrapperContainer .itemName {
    display: block !important;
}

.itemName {
    margin: .5em 0 !important;
}

.layout-mobile .itemName.infoText.parentNameLast {
    display: block;
    font-size: 1.3em;
}

/* Color and style changes for the dark theme type*/
:root {--selection: 170, 95, 200;}

.backgroundContainer.withBackdrop {
    background-color: rgba(0, 0, 0, 0);
}

.emby-select-withcolor > option {
  color: inherit;
  background: #11091d;
}

/* Dashboard*/

#user_usage_report_table,
.detailTable {
    background: rgba(0,0,0,.5);
}
.detailTableBodyRow-shaded {
    background: #0000 !important;
}

.infoBanner {
    background: #101010;
}
.navMenuOptionText {
    margin-top: 0;
}
.backgroundProgress > div {
    background-color: #0000;
}

.visualCardBox, .cardImageContainer {
  box-shadow: none;
}

.mdl-switch__input:checked + .mdl-switch__label + .mdl-switch__trackContainer > .mdl-switch__track {
    background: rgba(120, 120, 120, 0.6);
}
.mdl-switch__input:checked + .mdl-switch__label + .mdl-switch__trackContainer > .mdl-switch__thumb {
    background: white;
}

.dashboardSection h3 {
  margin-left: 0.5em;
}
.sessionCardFooter {
  border: none;
}
.paperList, 
.visualCardBox {
  background-color: rgba(0, 0, 0, 0.5);
}
.listItem-border {
  border-color: rgba(255, 255, 255, 0) !important; 
}
fieldset {
  border: 1px solid rgba(4, 4, 4, 0.8); 
  border-radius: 0.4em;
}

/* detailRibbon transparency*/
.layout-desktop .detailRibbon,
.layout-tv .detailRibbon {
  background: rgba(255,255,255,.1) !important;
  height: 6em;
}
.itemBackdrop::after {
  background: rgba(0,0,0,.1) !important;
}

/*Homepage modifications, transparent footerplayer and fixed sectiontitles*/
.appfooter {
	background: rgba(0,0,0,0.9);
}
.button-flat:hover {
	background: rgba(0,0,0,0.9);
}

/*Theme the library scan progress bar*/
progress {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
progress::-webkit-progress-bar {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 0px solid rgba(255, 255, 255, 0.22);
}
progress::-moz-progress-bar {
  background-color: rgba(255,255,255,0.75);
}
progress::-webkit-progress-value {
  background-color: rgba(255,255,255,0.75);
}
#divRunningTasks span {
  color: rgba(255,255,255,0.75) !important;
}
.taskProgressOuter {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.taskProgressInner {
  background: rgba(255,255,255,0.75) !important;
}
#scheduledTasksPage span {
  color: rgba(255,255,255,0.75) !important;
}

/*Login background*/
#loginPage {
  background: url(https://i.imgur.com/3JRhFzi.jpeg) !important; 
  background-size: cover !important;
}

/*Make watched icon, footer on chapter thumbnails (and other things), and count indicator dark and transparent*/
.innerCardFooter {
  background: #2f1b57b8;
  box-shadow: none;
  color: rgb(--accent);
}

.countIndicator, 
.playedIndicator {
  background: linear-gradient(90deg, rgb(40.392% 6.275% 50.98%) 0%, rgb(40.023% 6.794% 51.27%) 6.25%, rgb(38.929% 8.334% 52.13%) 12.5%, rgb(37.154% 10.835% 53.525%) 18.75%, rgb(34.764% 14.2% 55.403%) 25%, rgb(31.852% 18.3% 57.69%) 31.25%, rgb(28.53% 22.978% 60.301%) 37.5%, rgb(24.925% 28.054% 63.133%) 43.75%, rgb(21.176% 33.333% 66.078%) 50%, rgb(17.428% 38.612% 69.024%) 56.25%, rgb(13.823% 43.688% 71.856%) 62.5%, rgb(10.501% 48.366% 74.466%) 68.75%, rgb(7.589% 52.467% 76.754%) 75%, rgb(5.199% 55.832% 78.632%) 81.25%, rgb(3.423% 58.332% 80.027%) 87.5%, rgb(2.33% 59.872% 80.886%) 93.75%, rgb(1.961% 60.392% 81.176%) 100% );
  box-shadow: none;
  color: rgb(--accent);
}

/*Modify subtitle settings page*/
.subtitleappearance-preview {
  background: linear-gradient(140deg,#444,#111) !important;
}

/*Affects blurhash to remove the saturated colors to fit overall look*/
.blurhash-canvas {
	filter: opacity(60%) saturate(60%);
}

/*Dash and general UI styling*/
.navMenuOption-selected, .selectionCommandsPanel {
    background: #101010 !important;
}
.mainDrawer {
    background-color: rgba(0, 0, 0, 0.8);
}
.raised,
.fab,
a[data-role="button"] {
  background: rgba(4, 4, 4, 0.8) !important;
	transition: all 0.2s !important;
}
.raised:hover,
.fab:hover,
.navMenuOption:hover,
.actionSheetMenuItem:hover {
  background: rgba(80, 80, 80, 0.8) !important;
  color: #fff !important;
}
.paper-icon-button-light:hover {
  background-color: rgba(0, 0, 0, 0) !important;
}
.navMenuOption-selected,
.selectionCommandsPanel {
  background: #101010 !important;
}

.paper-icon-button-light:hover,
.raised.homeLibraryButton:hover,
.button-flat:hover,
.playstatebutton-icon-played,
.ratingbutton-icon-withrating,
.paper-icon-button-light:hover:not(:disabled),
.emby-tab-button:hover,
.selectLabelFocused,
.inputLabelFocused,
.textareaLabelFocused,
.buttonActive,
.button-link{
  color: rgba(120, 120, 120, 0.6) !important;
}
progress {
    background: rgba(0, 0, 0, 0.5) !important;
}


/*Theme syncplay*/
.syncPlayIconCircle {
  color: rgba(255,255,255,1) !important;
  text-shadow: none !important;
}

@-webkit-keyframes pulse {
 0% {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,.3)
 }
 70% {
  -webkit-transform:scale(1);
  transform:scale(1);
  color:rgba(0,0,0,.6);
  background:rgba(0,0,0,0);
  box-shadow:0 0 0 60px rgba(0,0,0,0)
 }
 to {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,0)
 }
}
@keyframes pulse {
 0% {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,.3)
 }
 70% {
  -webkit-transform:scale(1);
  transform:scale(1);
  color:rgba(0,0,0,.6);
  background:rgba(0,0,0,0);
  box-shadow:0 0 0 60px rgba(0,0,0,0)
 }
 to {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,0)
 }
}
@-webkit-keyframes infinite-pulse {
 0% {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,.3)
 }
 70% {
  -webkit-transform:scale(1);
  transform:scale(1);
  color:rgba(0,0,0,.6);
  background:rgba(0,0,0,0);
  box-shadow:0 0 0 60px rgba(0,0,0,0)
 }
 to {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,0)
 }
}
@keyframes infinite-pulse {
 0% {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,.3)
 }
 70% {
  -webkit-transform:scale(1);
  transform:scale(1);
  color:rgba(0,0,0,.6);
  background:rgba(0,0,0,0);
  box-shadow:0 0 0 60px rgba(0,0,0,0)
 }
 to {
  -webkit-transform:scale(.95);
  transform:scale(.95);
  color:rgba(0,0,0,.7);
  background:rgba(0,0,0,.3);
  box-shadow:0 0 0 0 rgba(0,0,0,0)
 }
}

/*Colors for loading spinner, placeholders, scroll bars*/
.mdl-spinner__layer-1 {border-color: rgba(255, 255, 255, 1);}
.mdl-spinner__layer-2 {border-color: rgba(128, 128, 128, 1);}
.mdl-spinner__layer-3 {border-color: rgba(4, 4, 4, 1);}
.mdl-spinner__layer-4 {border-color: rgba(0, 0, 0, 1);}

::-webkit-scrollbar-track-piece {
  background-color: #0000;
}
::-webkit-scrollbar-corner {
  background-color: #0000;
}
::-webkit-scrollbar-thumb {
  background: rgba(120,120,120,0.6) !important;
  border-radius: var(--rounding);
}

* {
  scrollbar-color: rgba(120,120,120,0.6) #0000 !important;
}

.defaultCardBackground1 {
	background-color: #3d3479ba;
}
.defaultCardBackground2 {
	background-color: #352b78ba;
}
.defaultCardBackground3 {
	background-color: #2d2176ba;
}
.defaultCardBackground4 {
	background-color: #352c67ba;
}
.defaultCardBackground5 {
	background-color: #2c1f78ba;
}

.raised:hover, 
.fab:hover,
a[data-role="button"]:hover {
  background: linear-gradient(to right, rgba(168, 6, 217, 0.3), rgba(6, 161, 217, 0.6)) !important;
}

.subtitleappearance-preview {
  background: linear-gradient(140deg,rgb(var(--accent)),#111) !important;
}

.navMenuOption-selected {
  color: rgba(var(--accent));
}
.mdl-slider-background-lower {
  background-color: rgba(var(--accent));
}   

.playbackProgress>div {
  background-color: rgba(var(--accent),0.75);
}
progress::-moz-progress-bar {
  background-color: rgba(var(--accent),0.75);
}
progress::-webkit-progress-value {
  background-color: rgba(var(--accent),0.75);
}
.taskProgressInner {
  background: rgba(var(--accent),0.75) !important;
}

.transcodingProgress>div, 
.itemProgressBarForeground {
  background-color: rgba(var(--accent),0.35);
}

.mdl-slider-background-lower {
  background-color: rgb(var(--accent));
}
.mdl-slider::-moz-range-thumb {
  background: rgb(var(--accent));
}
.mdl-slider::-ms-thumb {
  background: rgb(var(--accent));
}
.mdl-slider::-webkit-slider-thumb {
  background: rgb(var(--accent));
}
.iconOsdProgressInner {
  background: rgb(var(--accent));
}

.paper-icon-button-light:hover,
.raised.homeLibraryButton:hover,
.button-flat:hover,
.playstatebutton-icon-played,
.ratingbutton-icon-withrating,
.paper-icon-button-light:hover:not(:disabled),
.emby-tab-button:hover,
.selectLabelFocused,
.inputLabelFocused,
.textareaLabelFocused,
.buttonActive,
.button-link {
  color: rgba(var(--accent)) !important;
}

#itemDetailPage .button-link {color: inherit !important;}

.navMenuOption:hover,
.actionSheetMenuItem:hover {
  background-color: linear-gradient(to right, rgba(168, 6, 217, 0.3), rgba(6, 161, 217, 0.6)) !important;
}

.upNextDialog-countdownText {
  color: rgba(var(--accent));
}

.mdl-spinner__layer-1 {
  border-color: rgba(var(--accent));
}
.mdl-switch__input:checked + .mdl-switch__label + .mdl-switch__trackContainer > .mdl-switch__track {
  background: rgba(var(--accent), 0.5);
}
.mdl-switch__input:checked + .mdl-switch__label + .mdl-switch__trackContainer > .mdl-switch__thumb {
  background: rgba(var(--accent));
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--accent),0.8) !important;
}
* {
  scrollbar-color: rgba(var(--accent),0.8) #0000 !important;
}

/* Syncplay theming*/
.syncPlayIconCircle {
  color: rgba(var(--accent),1) !important;
  text-shadow: none !important;
}

/*Card indicators style normal*/
.innerCardFooter {
    margin: .5em;
}

.countIndicator {
  background: linear-gradient(90deg, rgb(40.392% 6.275% 50.98%) 0%, rgb(40.023% 6.794% 51.27%) 6.25%, rgb(38.929% 8.334% 52.13%) 12.5%, rgb(37.154% 10.835% 53.525%) 18.75%, rgb(34.764% 14.2% 55.403%) 25%, rgb(31.852% 18.3% 57.69%) 31.25%, rgb(28.53% 22.978% 60.301%) 37.5%, rgb(24.925% 28.054% 63.133%) 43.75%, rgb(21.176% 33.333% 66.078%) 50%, rgb(17.428% 38.612% 69.024%) 56.25%, rgb(13.823% 43.688% 71.856%) 62.5%, rgb(10.501% 48.366% 74.466%) 68.75%, rgb(7.589% 52.467% 76.754%) 75%, rgb(5.199% 55.832% 78.632%) 81.25%, rgb(3.423% 58.332% 80.027%) 87.5%, rgb(2.33% 59.872% 80.886%) 93.75%, rgb(1.961% 60.392% 81.176%) 100% );
  box-shadow: none;
}

.mediaSourceIndicator {
  background: rgba(0,0,0,0.4);
  box-shadow: none;
  border-radius: var(--rounding);
}

/*Tweak entry fields, checkmarks, thin borders dark highlight*/
.emby-input,
.emby-textarea {
  padding: .4em .55em;
}
.emby-select {
  padding: .35em 1.9em .35em .35em;
}
.selectArrow {
    margin-top: 1.05em;
}
.checkboxOutline,
.emby-input,
.emby-textarea,
.emby-select-withcolor {
  background: rgba(0, 0, 0, 0.2); 
  border: 0.01em solid rgba(255, 255, 255, 0.22);
}
.emby-input:focus,
.emby-textarea:focus,
.emby-select-withcolor:focus {
  background: rgba(0, 0 , 0, 0.4) !important; 
}

.emby-textarea:focus,
.emby-select-withcolor:focus,
.emby-input:focus,
.itemSelectionPanel {
  border: 0.01em solid rgba(var(--selection), 0.8) !important;
}
.emby-checkbox:checked + span + .checkboxOutline {
  background-color: rgba(0, 0 , 0, 0.4) !important; 
  border: 0.01em solid rgba(var(--selection), 0.8) !important;
}

/*Theme the library scan progress bar*/
progress {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
progress::-webkit-progress-bar {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 0px solid rgba(255, 255, 255, 0.22);
}
progress::-moz-progress-bar {
  background-color: rgba(255,255,255,0.75);
}
progress::-webkit-progress-value {
  background-color: rgba(255,255,255,0.75);
}
#divRunningTasks span {
  color: rgba(255,255,255,0.75) !important;
}
.taskProgressOuter {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.taskProgressInner {
  background: rgba(255,255,255,0.75) !important;
}
#scheduledTasksPage span {
  color: rgba(255,255,255,0.75) !important;
}

/*Narrow the login form, size according to display size (bigger on mobile)*/
#loginPage .readOnlyContent,
#loginPage form {
  max-width: 22em;
}

#loginPage .padded-left.padded-right.padded-bottom-page {
  margin-top: 8em
}

/*Hide "manual" and "forgot" buttons}*/
#loginPage .raised.cancel.block.btnForgotPassword.emby-button {
  display: none
}

#loginPage .padded-left.padded-right.padded-bottom-page {
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.35);
    width: 24em;
    border-radius: var(--rounding);
}
#loginPage .squareCard {
    width: 33%;
}
#loginPage form {
    padding-top: 4em;
}

#loginPage .sectionTitle{
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 1.2em !important;
}
#loginPage {
  background: url(https://i.imgur.com/3JRhFzi.jpeg) !important; 
  background-size: cover !important;
}

.listItemImageButton {
  margin: auto; 
  font-size: 1.6em !important;
}

#childrenContent .starRatingContainer {
	display: none;
}

.missingIndicator, .unairedIndicator {
    background: #ae3030eb;
    padding: .3em .6em;
    color: #fff;
}
.layout-mobile .listItemImageButton {
    background: rgba(0, 0, 0, 0);
}

/*Rounded corners on pretty much everything*/

.detailButton {
  border-radius: 50%;
}

progress {
  border-radius: var(--rounding);
}
progress::-webkit-progress-bar {
  border-radius: var(--rounding);
}
progress::-moz-progress-bar {
  border-radius: var(--rounding);
}
progress::-webkit-progress-value {
  border-radius: var(--rounding);
}
.taskProgressOuter,
.taskProgressInner {
  border-radius: var(--rounding) !important;
}
.formDialogHeader {
  border-top-left-radius: var(--rounding);
  border-top-right-radius: var(--rounding);
}
.formDialogFooter {
  border-bottom-left-radius: var(--rounding);
  border-bottom-right-radius: var(--rounding);
}
.cardOverlayContainer {
	border-radius: var(--rounding) !important;
}
.missingIndicator, 
.unairedIndicator,
.detailTable,
.primaryImageWrapper > img,
.toast,
.paperList,
.cardContent,
.sessionNowPlayingInnerContent, 
.listItem:hover, 
.cardImage,
.fab,
.raised,
.multiSelectCheckboxOutline,
.itemSelectionPanel,
.cardContent-button, 
.cardContent-shadow, 
.itemDetailImage, 
.cardImageContainer,
.cardPadder,
.listItemImage,
.listItemImageButton,
.listItemButton,
.innerCardFooter,
.blurhash-canvas,
.dialog,
.countIndicator,
.playedIndicator,
.listItemIcon,
.listItem-border,
.visualCardBox,
.checkboxOutline,
.emby-select-withcolor,
.chapterThumbTextContainer,
.chapterThumbContainer,
.chapterThumb,
.emby-input, 
.emby-textarea, 
.emby-select-withcolor,
.nowPlayingPageImage,
.upNextDialog-poster-img,
.upNextContainer,
.cardOverlayButtonIcon {
  border-radius: var(--rounding) !important;
}
.osdPoster img {
  border-radius: var(--rounding); border: none;
}
.mdl-slider::-moz-range-thumb {
  border-radius: var(--rounding);
}
.mdl-slider::-ms-thumb {
  border-radius: var(--rounding);
}
.mdl-slider::-webkit-slider-thumb {
  border-radius: var(--rounding);
}

div[data-role="controlgroup"] a[data-role="button"]:first-child {
	border-bottom-left-radius: var(--rounding);
	border-top-left-radius: var(--rounding);
}
div[data-role="controlgroup"] a[data-role="button"]:last-child {
	border-bottom-right-radius: var(--rounding);
	border-top-right-radius: var(--rounding);
}
#dashboardPage .cardContent, #dashboardPage .sessionNowPlayingInnerContent {
    border-radius: var(--rounding) var(--rounding) 0 0 !important;
}
#divVirtualFolders .cardImageContainer, #divVirtualFolders .cardContent {
    border-radius: var(--rounding) var(--rounding) 0 0 !important;
}
#userProfilesPage .cardImage, #userProfilesPage .cardContent {
    border-radius: var(--rounding) var(--rounding) 0 0 !important;
}

.emby-textarea {
  font-family: monospace;
  font-size: 12pt;
}

.card.show-animation:focus>.cardBox {
  -webkit-transform:scale(1.1);
  transform:scale(1.1);
}

/*Theme user setting tab buttons*/
div[data-role="controlgroup"] a.ui-btn-active {
  background: rgba(0, 0, 0, 0.5) !important;
  color: orange !important;
}

div[data-role="controlgroup"] a[data-role="button"] {
  display: table-cell !important;
  margin: 0 !important;
}

/*Mobile tweaks*/
.layout-mobile .detailPagePrimaryContainer {
    background: transparent;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 

}
.layout-mobile .adminDrawerLogo {
    border-bottom: none;
}
.layout-mobile .itemBackdrop {
    margin-top: 0rem;
}

.layout-mobile .detailPageContent {
  padding-left: 5%;
  padding-right: 0%;
}

/* Portrait orientation styles */
@media (orientation: portrait) {
  .layout-mobile .itemBackdrop {
    display: block;
    -webkit-animation: backdrop-fadein .8s ease-in normal both;
    animation: backdrop-fadein .8s ease-in normal both;
    background-attachment: fixed;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh !important;
    position: fixed !important;
    top: 0;
    margin-top: 0rem;
    left: 0;
    width: 100%;
    z-index: -1;
  }
}

@media (orientation: portrait) {
  #itemDetailPage .detailLogo {
    position: static;
    margin-left: 40%;
    display: block;
    -webkit-filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    flex-shrink: 0;
    background-position: 0 70%;
    margin-top: -18vh;
    margin-bottom: 1vh;
    width: 50vw;
  }
}

@media (orientation: portrait) {
  .itemDetailPage {
    padding-top: 13em !important;
  }
}


/* Landscape orientation styles */
@media (orientation: landscape) {
  .layout-mobile .itemBackdrop {
    display: block;
    -webkit-animation: backdrop-fadein .8s ease-in normal both;
    animation: backdrop-fadein .8s ease-in normal both;
    background-attachment: fixed;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh !important;
    position: fixed !important;
    top: 0;
    margin-top: 0rem;
    left: 0;
    width: 100%;
    z-index: -1;
  }
}

@media (orientation: landscape) {
  .layout-desktop .detailLogo,
  .layout-tv .detailLogo {
    position: absolute;
    left: 60vw;
    margin-right: 10%;
    display: block;
    -webkit-filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    width: 64vw;
    max-height: 21em;
    height: 26vw;
    top: 10em;
    margin-bottom: 7.7em;
	transform: translateX(-50%);
  }
  .layout-tv .detailLogo {
	  margin-top: -3em;
  }
}

.layout-desktop #itemDetailPage .nameContainer {
	position: fixed;
	left: 2.8em;
	top: 39em;
	width: 26em;
	justify-content: center;
	text-align: center;
	height: 4.8em;
}

.layout-tv #itemDetailPage .nameContainer {
  position: fixed;
  left: 2.8em;
  top: 35em;
  width: 22em;
  justify-content: center;
  text-align: center;
  height: 4.8em;
}

.layout-desktop .skinHeader,
.layout-tv .skinHeader {
	position: absolute;
}

@media (orientation: landscape) {
  .layout-mobile .detailLogo {
    position: absolute;
    left: 65%;
    top: 26%;
    transform: translate(-50%, -50%);
    display: block;
    -webkit-filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    flex-shrink: 0;
    background-position: 0 70%;
    margin: 0;
    width: 50vw !important;
    height: 30vh !important;
  }
}

/* Fix logo position on iPad / Kindle */

@media (orientation: landscape) and (min-width:1000px) and (min-width:800px) {
  .layout-mobile .detailLogo {
    position: absolute;
    left: 65%;
    top: 8%;
    transform: translate(-50%, -50%);
    display: block;
    -webkit-filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    filter: drop-shadow(0 0 10px rgba(2, 2, 2, 0.75));
    flex-shrink: 0;
    background-position: 0 70%;
    margin: 0;
    width: 50vw !important;
    height: 30vh !important;
  }
}

@media (orientation: landscape) {
  .itemDetailPage {
    padding-top: 13em !important;
  }
}

/*Stop covers from being scrolled on desktop*/
.layout-desktop .detailImageContainer .card {
    position: fixed !important;
    top: 10% !important;
}

.layout-tv .detailImageContainer .card {
	position: fixed !important;
	top: 50%;
}

@media (orientation: landscape) {
    .layout-mobile .detailImageContainer .card {
        position: fixed !important;
        top: 20% !important;
    }
	.layout-mobile #itemDetailPage .card.backdropCard {
		width:13em;
		position:absolute!important;
	}
}

/*Top "task bar" enlarge text*/
.headerTabs.sectionTabs {
  text-size-adjust: 110%;
  font-size: 110%;
}
.pageTitle {
  margin-top: auto; 
  margin-bottom: auto;
}

/*Theme process progress ring*/
.progressring-spiner {
  border-color: rgba(var(--accent));
  border-width: .35em;
}
.progressring {
    margin: .4em;
}
.progressring-bg {
   display: none;
}

/*Theme link color*/
#itemDetailPage .button-link {color: inherit !important;}

/*Accommodate mobile and align buttons and indicators*/
.cardIndicators,
.listItemIndicators {
  right: 0.5em; 
  top: 0.5em;
}

.mediaSourceIndicator {
  left: 0.5em;
  top: 0.5em;
}

@media all and (min-width: 70em){
  .cardOverlayFab-primary {
    background-color: #00000000;
  }
  .cardOverlayButtonIcon {
    background-color: #00000000 !important;
  }
  .cardOverlayContainer {
    background-color: rgba(255, 255, 255, 0.05);
  }
}
/* Play button hovering (for low width windows) */
@media all and (max-width: 70em){
  .cardOverlayFab-primary {
    background-color: #00000000;
  }
  .cardOverlayButtonIcon {
    background-color: #00000000 !important;
  }
  .cardOverlayContainer {
    background-color: rgba(0, 0, 0, 0.5);
  }
  .cardOverlayButton {
    padding: 0.25em;
  }
}

/*Media player*/
.nowPlayingPageImage {
  border: none;
}

.upNextDialog-countdownText {
  color: white;
}

/*Shrink the mouseover chapter image when scrobbling, still media player*/
.chapterThumb {
    height: 14vh;
    min-width: 14vh;
	box-shadow: 0 0 1.9vh #000;
}
.chapterThumbText {
    font-size: 1em;
}
.sliderBubble {
  background: #0000;
}
.chapterThumbTextContainer {
    right: auto;
	bottom: 4px;
	padding: .25em 0.7em;
}
.chapterThumbContainer {
    box-shadow: 0 0 1.9vh #000;
}
.sliderBubble {
    -webkit-transform: translate3d(-50%,-108%,0);
    transform: translate3d(-50%,-108%,0);
}

/*Narrow margins, theme main page*/
.cardBox-bottompadded {
    margin-bottom: 0.4em !important;
}
.itemsContainer > .card > .cardBox {
    margin-right: 0.8em;
}
.raised.homeLibraryButton {
    background: rgba(0, 0, 0, 0.35) !important;
	filter: drop-shadow(0 0 1px rgba(2, 2, 2, 0.75));
}
.raised.homeLibraryButton:hover {
    background: rgba(0, 0, 0, 0.5) !important;
}
.raised.homeLibraryButton:hover {transition: filter 0.2s}
.raised.homeLibraryButton {transition: filter 0.2s}
.homeLibraryButton {
    min-width: 9em;
    margin: 0.4em;
}
@media all and (max-width: 26em){
  .homeLibraryButton {
    min-width: 35%;
    width: auto !important;
  }
}
.homeLibraryButton {
  width: auto !important;
}
.listItem:hover,
.listItem:focus {
    transition: 0.2s;
    background: rgba(0, 0, 0, 0.4);
}
.visualCardBox, .cardImageContainer {
    box-shadow: none;
}
#itemDetailPage .cardImageContainer {
	border-radius: 0.2em !important;
}
.backgroundProgress > div {
    background: rgba(0, 0, 0, 0);
}
.itemProgressBar {
    background: rgba(0, 0, 0, 0.25);
  height: .5em;
  position: absolute;
  bottom: 0em;
  left: 0;
  width: 100%;
}
#divRunningTasks span {
    color: rgba(255,255,255,0.75) !important;
}
.itemsContainer > .card > .cardBox {
    margin-left: 0.6em !important;
    margin-right: 0.2em !important;
}

/*ANIMATIONS*/
/*Hover background for section title buttons*/
.button-flat:hover {
	background: transparent !important;
	color: #00a4dc !important;
}
.dashboardSection h3 {
    margin: .5em .0em .5em .5em;
}
.dashboardSection .sectionTitleTextButton > .material-icons.material-icons {
    margin-top: .5em;
    margin-bottom: .5em;
    margin-right: .2em;
}

/*Remove background on some icons*/
.listItemIcon {
    background: #0000 !important;
}

/*Remove divider on list items*/
.listItem-border {
    border-color: rgba(255, 255, 255, 0) !important;
}

/*Fix footers/headers displaying on small pop-ups*/
.formDialogFooter-clear,
.formDialogHeader-clear,
.innerCardFooterClear {
    background-color: transparent !important;
}

.emby-button.show-focus:focus {
  filter: drop-shadow(0 0 1px rgba(2, 2, 8px, 0.75));
  transform: scale(1.5);
}
.paper-icon-button-light.show-focus:focus {
    color: rgba(var(--accent)) !important;
}

/*Title text buttons*/
button-flat:hover {
    color: rgba(var(--accent)) !important;
}

.raised:hover, 
.fab:hover,
a[data-role="button"]:hover {
	background: #2c1f78ba !important;
	color: #fff !important;
	font-weight: 800;
}

.subtitleappearance-preview {
  background: linear-gradient(140deg,rgb(var(--accent)),#111) !important;
}

.navMenuOption-selected {
  color: rgba(var(--accent));
}
.mdl-slider-background-lower {
  background-color: rgba(var(--accent));
}   

progress::-moz-progress-bar {
  background-color: rgba(var(--accent),0.75);
}
progress::-webkit-progress-value {
  background-color: rgba(var(--accent),0.75);
}
.taskProgressInner {
  background: rgba(var(--accent),0.75) !important;
}

#dashboardPage .playbackProgress > div {
    background-color: rgba(var(--accent), 0.75) !important;
}
#dashboardPage .transcodingProgress > div {
    background-color: rgba(var(--accent), 0.35) !important;
}

.mdl-slider-background-lower {
  background-color: rgb(var(--accent));
}
.mdl-slider::-moz-range-thumb {
  background: rgb(var(--accent));
}
.mdl-slider::-ms-thumb {
  background: rgb(var(--accent));
}
.mdl-slider::-webkit-slider-thumb {
  background: rgb(var(--accent));
}
.iconOsdProgressInner {
  background: rgb(var(--accent));
}

.paper-icon-button-light:hover,
.raised.homeLibraryButton:hover,
.button-flat:hover,
.playstatebutton-icon-played,
.ratingbutton-icon-withrating,
.paper-icon-button-light:hover:not(:disabled),
.emby-tab-button:hover,
.selectLabelFocused,
.inputLabelFocused,
.textareaLabelFocused,
.buttonActive,
.button-link {
  color: rgba(var(--accent)) !important;
}

#itemDetailPage .button-link {color: inherit !important;}

.navMenuOption:hover,
.actionSheetMenuItem:hover {
  background-color: linear-gradient(to right, rgba(168, 6, 217, 0.3), rgba(6, 161, 217, 0.6)) !important;
}

.emby-checkbox:checked + span + .checkboxOutline,
.emby-textarea:focus,
.emby-select-withcolor:focus,
.emby-input:focus,
.itemSelectionPanel {
  border: 0.01em solid linear-gradient(to right, rgba(168, 6, 217, 0.3), rgba(6, 161, 217, 0.6)) !important;
}

.upNextDialog-countdownText {
  color: rgba(var(--accent));
}

.mdl-spinner__layer-1 {
  border-color: rgba(var(--accent));
}
.mdl-switch__input:checked + .mdl-switch__label + .mdl-switch__trackContainer > .mdl-switch__track {
  background: rgba(var(--accent), 0.5);
}
.mdl-switch__input:checked + .mdl-switch__label + .mdl-switch__trackContainer > .mdl-switch__thumb {
  background: rgba(var(--accent));
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--accent),0.8) !important;
}
* {
  scrollbar-color: rgba(var(--accent),0.8) #0000 !important;
}

/* Syncplay theming*/
.syncPlayIconCircle {
  color: rgba(var(--accent),1) !important;
  text-shadow: none !important;
}

/*Enlarge button row on item page, even more on mobile*/
.mainDetailButtons {
	font-size: 120%;
}

@media (orientation: landscape){
  .layout-mobile .button-flat {
    margin-top: -1em !important;
  }
}

/*Media player*/
.startTimeText, .endTimeText {
    width: 3.4em;
    display: block;
    text-align: center;
}
.osdTitle {
  margin-left: 0.5em;
}

.osdTimeText {
  font-size: 90%;
}

.videoOsdBottom {
    padding-top: 1em;
}

.skinHeader-withBackground.osdHeader {
    height: 5em;
}

/*Accommodate ultrawide aspect ratios*/
@media (min-aspect-ratio: 1.98/1) {
  .detailImageContainer .card {
    max-width: 21.35em !important ;
  }
  .detailPagePrimaryContainer {
    padding-left: 28.45vw !important;
  }
  .detailPageContent {
    padding-left: 28.45vw !important;
  }
}
@media (min-aspect-ratio: 2.7/1) {
  .detailImageContainer .card {
    width: 21.35em !important;
  }
  .detailPagePrimaryContainer {
    padding-left: 23.45vw !important;
  }
  .detailPageContent {
    padding-left: 23.45vw !important;
  }
}

@media (orientation: landscape) {
    .layout-mobile .detailPageContent {
        padding-left: 27%;
        padding-right: 0%;
}
}

@media (max-width: 750px)  and (orientation: landscape) {
    .layout-mobile .detailPagePrimaryContainer {
        padding-right: 11vw;
    }
}

@media (orientation: landscape) {
    .layout-mobile  .detailPagePrimaryContainer {
        padding-left: 1.45vw !important;
  }
}

/*Tweak entry field padding and alignment/sizes*/
.emby-input,
.emby-textarea {
  padding: .4em .55em;
}
.emby-select {
  padding: .35em 1.9em .35em .35em;
}
.selectArrow {
    margin-top: 1.05em;
}

/*Fix weird shevron off centering*/
.layout-mobile :not(.sectionTitleContainer-cards)>.sectionTitle-cards {
 padding-top: 1em;
}

.sectionTitleTextButton > .material-icons {
  font-size: 1.5em;
  margin-bottom: -0.1em;
  opacity: 0;
 }
 
.sectionTitle {
    margin-left: 0em !important;
	margin-top: 0.5em !important;
	margin-bottom: 0.5em !important;
	font-weight: 700;
	font-size: 1.6em;
}

.sectionTitleTextButton > .material-icons {

}
.layout-mobile .sectionTitleTextButton > .material-icons {

}

.itemsContainer.padded-left.padded-right.padded-right-withalphapicker.vertical-wrap {
	padding-left: 3%;
	margin-right: 3%;
}

.layout-desktop .itemsContainer.padded-left.padded-right.padded-right-withalphapicker.vertical-wrap,
.layout-tv .itemsContainer.padded-left.padded-right.padded-right-withalphapicker.vertical-wrap {
	padding-left: 3%;
	margin-right: unset;
}

#homeTab .emby-scroller {
	padding-left: 1em;
}

[dir="ltr"] .padded-left {
  padding-left: 1em;
}

.card:hover .indicator.videoIndicator {
	opacity: 0;
}

/*Fix the UI shifting around*/
.nowPlayingBarCurrentTime {
    width: 6em;
}
.osdTextContainer {
    margin: 0 !important;
    margin-top: 0.2em !important;
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
}

/*Fix top right user icon when using a profile image*/
.headerUserButtonRound {
  border-radius: 50px !important;
}

/*Improve some menu alignments*/
.navMenuOptionText {
    margin-top: 0;
}
.formDialogHeaderTitle {
  margin-left: 1em;
}
.formDialogContent {
  margin-bottom: 6.2em;
}
.dialogContentInner {
  padding: .5em 1em 1em;
  padding-right: 1em;
  padding-left: 1em;
}
.listItem-indexnumberleft {
  margin: 1em;
}
.listItem {
  padding-left: 1em;
}

.layout-desktop .overflowPortraitCard,
.layout-tv .overflowPortraitCard {
    width: 11.85em;
}

.layout-desktop .overflowSquareCard,
.layout-tv .overflowSquareCard {
    width: 11.85em;
}

.layout-mobile .overflowPortraitCard {
	width: 11.85em;
}

.layout-mobile .overflowSquareCard {
    width: 11.85em;
}

/* Larger screens */
@media all and (min-width: 58em) and (max-width: 64em) {
  #castContent .card.overflowPortraitCard {
    width: 11.85em !important;
  }
}

/* Extra-large screens */
@media all and (min-width: 64em) {
  #castContent .card.overflowPortraitCard {
        width: 11.85em !important;
  }
}

/* Mobile or smaller screens */
@media all and (max-width: 48em) {
  #castContent .card.overflowPortraitCard {
        width: 11.85em !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  #castContent .card.overflowPortraitCard {
    width: 11.85em !important;
  }
}

@media (max-width: 930px) and (orientation: landscape) {
  #castContent .card.overflowPortraitCard {
    width: 11.85em !important;
  }
}

.cardPadder {
  background-color: #0000 !important; box-shadow: none !important;
}

.cardText {
  overflow: hidden;
  padding: 0;
  padding-top: 0.2em;
  text-overflow: ellipsis;
  white-space: normal;
  margin-left: 0em;
  font-weight: 400;
  font-size: 1.1em;
}

.cardText.cardTextCentered.cardText-secondary {
	font-size: 0.85em;
}

@media (min-width: 120em) {
  .portraitCard, .squareCard {
    width: 12%;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .portraitCard, .squareCard {
    width: 20%;
  }
}

.skinHeader-withBackground {
    background-color: transparent !important;
}

@media all and (min-width: 100em){
  #indexPage,
  #moviesPage,
  #tvRecommendedPage,
  #musicRecommendedPage {
    margin-top: 4.5em;
    padding-top: 0em !important;
    overflow-y: scroll;
  }
}

@media all and (max-width: 100em){
  #indexPage,
  #moviesPage,
  #tvRecommendedPage,
  #musicRecommendedPage {
    margin-top: 6em;
    padding-top: 0.5em !important;
    overflow-y: scroll;
  }
}

.force-scroll {
    overflow-y: auto;
    overflow-x: auto;
}

/*Glow accent on hover*/
.raised.homeLibraryButton {
    box-shadow: 0px 0px 5px rgba(var(--accent), 0) !important;
    border: solid 1px rgba(var(--accent),0) !important;
}

#homeTab .itemsContainer.padded-left.padded-right.vertical-wrap.focuscontainer-x .raised.homeLibraryButton.emby-button .material-icons.homeLibraryIcon {
	margin-left:0.05em;
}

.cardOverlayContainer:hover,
.dialog,
.toast,
.raised.homeLibraryButton:hover {
  box-shadow: 0px 0px 5px rgb(var(--accent));
  border: solid 1px rgba(var(--accent),0);
}
.cardOverlayContainer {
  border: solid 1px rgba(var(--accent),0.0) !important;
}
.drawer-open {
    box-shadow: 0px 0px 5px rgba(var(--accent), 1) !important;
    border-right: solid 1px rgba(var(--accent), 1) !important;
}

@supports (backdrop-filter: blur(15px)) {
  .dialog,
  .mainDrawer,
  .toast,
  .appfooter {
    backdrop-filter: blur(15px);
    background-color: rgba(0, 0, 0, 0.35);
  }
  .paper-icon-button-light:hover,
  #itemDetailPage .itemProgressBar,
  #dashboardPage .backgroundProgress > div {
    backdrop-filter: blur(0px);
  }
  @media all and (max-width: 70em){
    .cardOverlayButtonIcon {
      background-color: rgba(0, 0, 0, 0) !important;
    }
  }
}

.layout-mobile .cardOverlayButtonIcon {
    display: none !important;
}

/* Position watched/heart/menu container on cards */
.cardOverlayButton-br {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  width: auto;
  padding: 0em;
  gap: 1em;
  border-radius: 10px;
}

/* Style individual icons */
.cardOverlayButtonIcon {
  font-size: 1.5em !important;
  width: 1.1em !important;
  height: 1.5em !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cardOverlayButton {
  position: relative;
  color: #fff;
}


.cardOverlayContainer > .cardOverlayFab-primary {
  background-color: rgba(0,0,0,0);
  font-size: 100%;
  height: 3em;
  left: 50%;
  margin-left: -1.5em;
  margin-top: -1.5em;
  padding: 0;
  position: absolute;
  top: 50%;
  width: 3.1em;
}

:root {--accent: 6, 161, 217;}

:root {--rounding: 12px;}

/*hover zoom*/
.layout-desktop .homeLibraryButton:hover,
.layout-tv .homeLibraryButton:hover,
.layout-desktop .homeLibraryButton:focus,
.layout-tv .homeLibraryButton:focus,
.layout-desktop .card:hover,
.layout-tv .card:focus {
    -webkit-filter: none !important;
    box-shadow: 0 0 5px 0, 255, 222;
    filter: none !important;
    transform: scale(1.02);
    transition: transform 1s ease;
}

.layout-desktop .homeLibraryButton,
.layout-tv .homeLibraryButton {
	font-weight: 700;
	border-radius: 0.5em !important;
}

.layout-desktop .homeLibraryButton:hover,
.layout-tv .homeLibraryButton:hover,
.layout-desktop .homeLibraryButton:focus,
.layout-tv .homeLibraryButton:focus {
  filter: drop-shadow(0 0 1px rgba(2, 2, 2, 0.75));
  background: #fff !important;
  color: #000 !important;
  transform: revert;
  font-weight: 700;
}

/*Style backdrop*/
.backdropImage {filter: blur(0px) saturate(100%) contrast(110%) brightness(100%);}


/* Center the listItem content */
.listItem {
    text-align: center;
    padding: 10px;
    font-size: 12pt;
}

/* Hide the listItemIcon */
.listItemIcon {
    display: none;
    padding: 10px;
}

#childrenContent .childrenItemsContainer.itemsContainer.padded-right.vertical-list .listItem.listItem-largeImage.listItem-withContentWrapper .listItem-content .listItemImage.listItemImage-large.itemAction.lazy.non-blurhashable.lazy-image-fadein-fast {
	height: 13.2em;
}

#childrenContent .childrenItemsContainer.itemsContainer.padded-right.vertical-list .listItem.listItem-largeImage.listItem-withContentWrapper .listItem-content {
	max-height: 30em;
	min-height: 20em;
}

#childrenContent .childrenItemsContainer.itemsContainer.padded-right.vertical-list .listItem.listItem-largeImage.listItem-withContentWrapper .itemProgressBarForeground {
	border-bottom-left-radius: 1em;
	border-bottom-right-radius: 1em;
}

/* Hide Genres and Writers */
.detailsGroupItem.genresGroup,
.detailsGroupItem.writersGroup {
    display: none;
}

/* Hide Tags */
.itemTags {
    display: none;
}

/* Extend max width of Video, Audio and Subtitles details */

.layout-desktop .detailsGroupItem, .trackSelections .selectContainer,
.layout-tv .detailsGroupItem, .trackSelections .selectContainer {
  display: -webkit-flex;
  display: flex;
  margin: 0 0 .5em !important;
  max-width: 33em;
  font-size: 0.85em;
}

.layout-desktop .trackSelections {
	position: fixed;
	left: 0em;
	width: 33em;
	top: 47em;
}

.layout-tv .trackSelections {
	position: fixed;
	left: 0em;
	width: 33em;
	top: 47em;
}

.layout-desktop .trackSelections .selectContainer .detailTrackSelect,
.layout-tv .trackSelections .selectContainer .detailTrackSelect {
  font-size: inherit;
  padding-left: 0.5em;
  max-width: 25em;
  text-overflow: ellipsis;
  text-align: center;
}

/* Hide Upcoming On TV section */
#seriesScheduleSection {
    display: none;
}

#detailPage .sectionTitle.sectionTitle-cards {
    margin-right: 10px;
    margin-left: 1.2em !important;
}

.layout-mobile .sectionTitle.sectionTitle-cards {
    font-size: 110%;
}

.itemsContainer.padded-left {
    flex: 1;
    display: flex; 
}

.layout-desktop #homeTab .section0 .verticalSection.verticalSection-extrabottompadding .itemsContainer.padded-left.padded-right.vertical-wrap.focuscontainer-x,
.layout-tv #homeTab .section0 .verticalSection.verticalSection-extrabottompadding .itemsContainer.padded-left.padded-right.vertical-wrap.focuscontainer-x {
	justify-content: space-evenly;
}

.sectionTitle.sectionTitle-cards {
    margin-right: 0.1em;
}

.itemsContainer.padded-left {
    flex: 1;
}

.layout-desktop .detailImageContainer .card {
  left: 5em;
  width: 21.35em;
  top: 3.5em !important;
  max-width: unset;
}

.layout-tv .detailImageContainer .card {
  left: 4.75em;
  max-height: 32em;
  max-width: 18vw !important;
  width: 18.35em;
  top: 18em !important;
}

.layout-desktop #itemDetailPage .card.squareCard {
  left: 5em;
  width: 21.35em;
  top: 14.15em !important;
  max-width: unset;
}

.layout-tv #itemDetailPage .card.squareCard {
  left: 4.75em;
  max-height: 32em;
  max-width: 18vw !important;
  width: 18.35em;
  top: 18em !important;
}



.layout-desktop .detailImageContainer .card.backdropCard,
.layout-tv .detailImageContainer .card.backdropCard {
	top: 23.5em !important;
}

/* Top bar padding 1px */
.flex.align-items-center.flex-grow.headerTop {
    padding-bottom: 20px;
    height: 3.2em;
}

/* Top bar padding 1px */
.layout-mobile .flex.align-items-center.flex-grow.headerTop {
    padding-bottom: 0em;
    height: 3.2em;
}

/* Position home tab buttons */
.headerTabs .emby-tab-button {
    width: 160px;
    padding-top: 1em;
}

/* Position home tab buttons on mobile */
.layout-mobile .headerTabs .emby-tab-button {
    width: 160px;
    padding-top: 0.1em;
}

/* Index Page header */

@media (min-width:45em) {
.layout-desktop .headerTop,
.layout-tv .headerTop {
    padding:.8em .8em
  }
  .headerTabs {
    -webkit-align-items:center;
    align-items:center;
    -webkit-align-self:center;
    align-self:center;
    -webkit-justify-content:center;
    justify-content:center;
    margin-top:-4.3em;
    position:relative;
    width:auto;
  }
}

@media (max-width:45em) {
.layout-desktop .headerTop,
.layout-tv .headerTop {
    padding:.8em .8em
  }
  .headerTabs {
    -webkit-align-items:center;
    align-items:center;
    -webkit-align-self:center;
    align-self:center;
    -webkit-justify-content:center;
    justify-content:center;
    margin-top:-2em;
    position:relative;
  }
}

/* Movies / Shows page header tabs */
@media (max-width:85em) {
#moviesTab .layout-desktop .headerTop {
    padding:.8em .8em
  }
  .headerTabs {
    -webkit-align-items:center;
    align-items:center;
    -webkit-align-self:center;
    align-self:center;
    -webkit-justify-content:center;
    justify-content:center;
    margin-top:-1.3em;
    position:relative;
  }
}

.layout-mobile .headerTabs {
    -webkit-align-items: center;
    align-items: center;
    -webkit-align-self: center;
    align-self: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-top: 0em;
    position: relative;
  }
}

/* Hide My Media text on desktop */
/* .verticalSection-extrabottompadding > .sectionTitle-cards:not(#similarCollapsible .sectionTitle-cards) {
  display: none;
} */

/* Smaller Next Up cards */
.verticalSection.section2 .card.overflowBackdropCard {
  width: 13.88em !important;
  font-size: 90% !important;
}


/* Adjust font size for smaller screens if needed */
@media all and (max-width: 767px) {
  .verticalSection.section2 .card.overflowBackdropCard {
    width: 14.3em !important;
    font-size: 90% !important;
  }
}

/* Mobile or smaller screens */
@media all and (max-width: 25em) {
  .verticalSection.section2 .card.overflowBackdropCard {
    width: 13.88em !important;
    font-size: 90% !important;
  }
}

/* Adjust the size of cards in the "Series" section */
.verticalSection.detailVerticalSection .overflowPortraitCard {
    width: 30vw !important;
    font-size: 90% !important; 
}

/* Larger screens */
@media all and (min-width: 58em) and (max-width: 64em) {
    .verticalSection.detailVerticalSection .overflowPortraitCard {
        width: 15vw !important;
    }
}

/* Extra-large screens */
@media all and (min-width: 64em) {
    .verticalSection.detailVerticalSection .overflowPortraitCard {
        width: 15em !important;
    }
}

/* Mobile or smaller screens */
@media all and (max-width: 48em) {
    .verticalSection.detailVerticalSection .overflowPortraitCard {
        width: 13.88em !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
  .verticalSection.detailVerticalSection .overflowPortraitCard {
    width: 19vw !important;
  }
}

@media (max-width: 930px) and (orientation: landscape) {
  .verticalSection.detailVerticalSection .overflowPortraitCard {
    width: 19vw !important;
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  .detailPageContent {
    padding-left: 30vw !important;
  }
}

/* Main Drawer */
.mainDrawer {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Gradient for buttons on hover */
.mainDrawer-scrollContainer.scrollContainer .navMenuOption:hover,
.mainDrawer-scrollContainer.scrollContainer .navMenuOption:hover emby-button,
button.is-emby-button:hover emby-button {
    background: linear-gradient(to right, rgba(168, 6, 217 , 0.3), rgba(6, 161, 217, 0.6)) !important;
    transition: background 0.3s ease;
}

.navMenuOption,
.navMenuOption:hover,
.navMenuOption-selected {
    border-radius: var(--rounding) !important;
    width: 90% !important;
    margin-left: 1em !important;
}

/* Remove default hover background color */
.mainDrawer-scrollContainer.scrollContainer .navMenuOption,
.mainDrawer-scrollContainer.scrollContainer .navMenuOption emby-button,
button.is-emby-button emby-button {
    background-color: transparent !important;
    transition: background 0.3s ease;
}

/* Ensure the text color remains white when hovered */
.mainDrawer-scrollContainer.scrollContainer .navMenuOption:hover .navMenuOptionText,
button.is-emby-button:hover emby-button .navMenuOptionText {
    color: white !important; 
}

/* Gradient for buttons on hover in the Settings section */
#myPreferencesMenuPage .verticalSection-extrabottompadding .emby-button:hover {
    background: linear-gradient(to right, rgba(168, 6, 217, 0.3), rgba(6, 161, 217, 0.6)) !important;
    transition: background 0.3s ease;
}

/* Adjust width, margin, and text alignment for buttons in the Settings section */
#myPreferencesMenuPage .verticalSection-extrabottompadding {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#myPreferencesMenuPage .sectionTitle {
    margin-left: 0em !important;
	margin-bottom: 0em !important;
}

#myPreferencesMenuPage .verticalSection-extrabottompadding .emby-button {
    width: 30% !important;
    margin-left: 0 !important;
    margin-bottom: 1em;
    border-radius: var(--rounding) !important;
    background-color: transparent !important;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Ensure the text is centered in the Settings section */
#myPreferencesMenuPage .verticalSection-extrabottompadding .emby-button .listItemBodyText {
    text-align: center;
    width: 100%;
}

/* Ensure the text color remains white when hovered in the Settings section */
#myPreferencesMenuPage .verticalSection-extrabottompadding .emby-button:hover .listItemBodyText {
    color: white !important;
}

/* Video Playback Progress Bar */
.mdl-slider-background-lower {
    background: linear-gradient(90deg, rgb(1, 9, 40) 0%, rgb(36, 75, 147) 45%, rgb(23, 125, 255) 85%, rgb(24, 170, 222) 100%);
}

.mdl-slider-background-upper {
  background: #92dcf499;
}

.layout-desktop div:not(.sectionTitleContainer-cards) > .sectionTitle-cards,
.layout-tv div:not(.sectionTitleContainer-cards) > .sectionTitle-cards {
  margin: 0;
  padding-bottom: 0.5em;
  padding-top: .5em;
}

.layout-mobile .homePage .section1.verticalSection .itemsContainer .card.overflowBackdropCard {
  width: 13.88em !important;
  margin-top: 0em;
  margin-bottom: 0em;
}

.layout-mobile #indexPage .overflowBackdropCard, .overflowSmallBackdropCard {
  width: 12.88em;
  margin: 0em !important;
  margin-right: -0.5em !important;
}

/* Push scroll buttons to the right */
.homePage .section1.verticalSection .sectionTitle-cards + .emby-scrollbuttons {
    margin-left: auto;
}

.emby-scrollbuttons-button > .material-icons {
  display: block;
  min-height: 24px;
  min-width: 24px;
  margin-top: -0.3em;
}

/* Adjust alignment for the cards within the Continue Watching section */
.layout-desktop .homePage .section1.verticalSection .itemsContainer .card.overflowBackdropCard,
.layout-tv .homePage .section1.verticalSection .itemsContainer .card.overflowBackdropCard {
    width: 21.85em;
    margin-top: 0em;
    font-size: 90% !important;
}

/* Adjust the card size for smaller screens if needed */
@media all and (max-width: 767px) {
    .homePage .section1.verticalSection .itemsContainer .card.overflowBackdropCard {
        width: 250px !important;
        font-size: 90% !important;
    }
}

.layout-desktop .overflowBackdropCard,
.layout-tv .overflowBackdropCard {
   width: 25em;
}

/* Adjust the size of the card image */
.verticalSection .card img {
    width: 100%;
    height: auto;
}

@media (min-width: 100em) {
  .layout-tv .mainDetailButtons {
    font-size: 108%;
    margin: 1em 0 1.25em;
    position: absolute;
    right: 10em;
    top: 1em;
  }
}

.detailVerticalSection .nextUpItems {
    margin-top: -5px;
}

/* hide Live TV shortcuts on Homepage */
.padded-top.padded-bottom.scrollSlider.focuscontainer-x {
    display: none;
}

/* Reduce space between My Media buttons and Continue Watching */
.layout-desktop .sectionTitle.sectionTitle-cards.padded-left + .itemsContainer,
.layout-tv .sectionTitle.sectionTitle-cards.padded-left + .itemsContainer {
    margin-bottom: 0em;
    padding-top: 0em;
}

/* Reduce space between My Media buttons and Continue Watching */
.layout-mobile .sectionTitle.sectionTitle-cards.padded-left + .itemsContainer {
    margin-bottom: 0em;
    padding-top: 0.5em;
	display: grid;
}

/* Position release year, ratings */
.layout-desktop .mediaInfoItem,
.layout-tv .mediaInfoItem {
	margin-top: 0.2em !important;
}

.layout-mobile .mediaInfoItem {
	margin-top: 0.6em !important;
}

/* Raise Next Up cards on homepage */
.sectionTitleContainer-cards {
  margin: 0;
  padding-top: 0em;
}

.itemName {
  margin: 0em 0 !important;
  padding-top: 0em;
}
.infoText {
  max-width: 100%;
  min-width: 0;
  text-align: left;
}
.subtitle {
  margin: .15em 0 .2em -1em;
  padding-left: 0em;
  text-align: center;
}

/* For mobile devices with a maximum width of 426px (portrait orientation) */
@media only screen and (max-width: 426px) {
  .homePage .section1.verticalSection .sectionTitle-cards {
    margin-right: -3.5em;
    margin-left: 10px;
  }
}

/*Position Continue Watching card */
.layout-mobile .homePage .section1.verticalSection .sectionTitle-cards {
  margin-right: 0.5em;
  margin-left: 10px;
}

.layout-mobile .homePage .section1.verticalSection .sectionTitle-cards {
  margin-top: 0.5em !important;
  margin-left: 10px;
}

/* Tighter My Media buttons */
.homeLibraryButton {
  margin-left: 1em !important;
  margin-right: 1em !important;
  min-width: 7em;
}

/* Reposition A-Z */

.layout-desktop .alphaPickerButton-vertical,
.layout-tv .alphaPickerButton-vertical {
    width: 3vw;
}

.layout-desktop .alphaPickerButton,
.layout-tv .alphaPickerButton {
    padding: .2em .4em;
}

.layout-desktop .alphaPicker-fixed,
.layout-tv .alphaPicker-fixed {
    top: 17vh;
    top: max(env(safe-area-inset-top),17vh);

}

.cardOverlayFab-primary {
  background-color: rgba(0,0,0,0);
  font-size: 100%;
  height: 3em;
  left: 50%;
}

.infoWrapper {
  min-width: 52%;
  max-width: 100%;
  max-height: 5.5em;
}

/* Padding on detailPage action buttons */

@media (orientation: landscape) {
.layout-mobile .detailButton {
    padding-left: 1.8em !important;
    padding-right: 1.8em !important;
  }
}

@media (orientation: portrait) {
.layout-mobile .detailButton {
    padding-left: 1em !important;
    padding-right: 1em !important;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
    .mainDetailButtons.focuscontainer-x {
        margin-bottom: 0em;
        margin-top: 0em;
    }
}

@media (max-width: 32em) and (orientation: portrait) {
  .layout-mobile [dir="ltr"] .mainDetailButtons {
    margin-bottom: 0;
    padding-left: 0em;
    font-size: 73%;
	margin-top: 2em;
	width: 95vw;
    justify-content: space-evenly;
	margin-left: -1em;
	}
}

@media (min-width: 50em) {
  .layout-mobile [dir="ltr"] .mainDetailButtons {
    font-size: 85%;
    margin-bottom: 0em;
    margin-top: 2em;
  }
}

.layout-mobile .mediaInfoOfficialRating {
	position: relative;
}

.trackSelections .selectContainer {
  font-size: 0.85em;
  overflow: hidden;
  }
}

@media (max-width: 50em) {
.trackSelections .selectContainer {
  font-size: 8pt;
  overflow: hidden;
  }
}

/* Live TV Guide */

.programCell {
  background: transparent !important;
}

.programCell-active {
  background: rgba(6, 161, 217, 0.05) !important;
}

.programCell-movie {
  background: transparent !important;
}

.guideProgramNameText {
  font-weight: 400;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 80%;
}

.channelPrograms {
  white-space: wrap;
}

#detailPage .layout-mobile .card.overflowBackdropCard.card-withuserdata {
    width: 18.15em !important; 
}

.layout-desktop .overflowBackdropCard,
.layout-tv .overflowBackdropCard {
	width: 21.85em;
	font-size: 90% !important;
	filter: drop-shadow(4px 5px 2px rgba(2, 2, 2, 0.5));
}

.layout-desktop .verticalSection.section2 .card.overflowBackdropCard,
.layout-tv .verticalSection.section2 .card.overflowBackdropCard {
	width: 21.85em !important;
	font-size: 90% !important;
}

.verticalSection.section0 .textActionButton {
	display: none;
}

.layout-mobile .verticalSection-extrabottompadding {
	margin-bottom: 2em;
	margin-top: 0em;
}

.layout-desktop .verticalSection-extrabottompadding,
.layout-tv .verticalSection-extrabottompadding {
	margin-bottom: 1em !important;
}

.layout-desktop .nextUpSection.verticalSection.detailVerticalSection {
}

/* Remove empty space at bottom of page */
.content-primary, .padded-bottom-page, .page, .pageWithAbsoluteTabs .pageTabContent {
	padding-bottom: 0 !important;
}

.collectionItems .itemsContainer.padded-left::before {
	opacity: 0;
}

.layout-desktop #childrenContent .listItemBodyText.secondary.listItem-overview.listItemBodyText,
.layout-tv #childrenContent .listItemBodyText.secondary.listItem-overview.listItemBodyText {
	transition: filter 0.8s, opacity 0.8s;
	filter: blur(0px);
	opacity: 1;
	min-height: 7em;
	overflow-y: auto;
	padding-right: 1em;
}

#childrenContent .listItem-content .listItemBodyText {
	color: #fff;
	font-weight: 600;
}

#childrenContent .listItem-content .secondary.listItemBodyText {
	color: #fff;
	font-weight: 300;
}

.layout-desktop #childrenContent .listItemBodyText.secondary.listItem-overview.listItemBodyText:hover,
.layout-tv #childrenContent .listItemBodyText.secondary.listItem-overview.listItemBodyText:hover {
	filter: blur(0px);
	opacity: 1;
}

.cardOverlayButtonIcon, .cardOverlayButtonIcon.material-icons {
	display: flex;
	filter: drop-shadow(1px -1px 1px rgba(2, 2, 2, 0.8));
}

#skipIntro .emby-button:hover, #skipIntro .emby-button:focus {

}

#skipIntro {

}

#skipIntro .emby-button {

}

.upNextContainer {
  background: #000;
  z-index: 50;
}

.raised.raised-mini.btnHide.upNextDialog-button.emby-button:hover {

}

/*Iskelderon's cleaner Scenes & Specials grid */
@media (min-width:1800px) and (min-height:900px) {
  #specialsCollapsible .emby-scroller,
  #musicVideosCollapsible.emby-scroller,
  #scenesCollapsible.emby-scroller {
	margin-right: 0;
  }

  #specialsCollapsible .emby-scrollbuttons,
  #musicVideosCollapsible .emby-scrollbuttons,
  #scenesCollapsible .emby-scrollbuttons  {
	display: none;
  }

  #specialsCollapsible .itemsContainer,
  #musicVideosCollapsible .itemsContainer,
  #scenesCollapsible .itemsContainer {
	flex-wrap: wrap;
  }

  #specialsCollapsible .overflowBackdropCard,
  #musicVideosCollapsible .overflowBackdropCard,
  #scenesCollapsible .overflowBackdropCard {
	max-width: 15.4vw;
	}
}

.osdControls {
	font-size: 1.25em;
}

.css-4yt2of, .css-139vfv2 {
	background-color: rgb(20, 16, 28);
	color: rgb(255, 255, 255);
	background-image: none;
}


/*Change Intro Skip Color*/
.skip-button {
	bottom: 7.52em;
	right: 7.5em;
	color: #fff;
	background: #000;
	border: 1px solid white;
	border-radius: 0;
	padding: 0.5em 1em;
	transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.skip-button:hover,
.skip-button:focus {
	background: #fff;
	color: #000;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.layout-mobile .backgroundContainer { background-color: transparent;}

#myPreferencesMenuPage .sectionTitle {
	text-decoration: underline;
}

#myPreferencesPage .readOnlycontent {
	font-size: 90%;
}

#myPreferencesMenuPage .verticalSection-extrabottompadding .emby-button .listItem {
	justify-content: center;
}


#myPreferencesMenuPage .verticalSection-extrabottompadding .emby-button .listItemBody {
	overflow: visible;
	text-overflow: unset;
	white-space: wrap;
	padding-right: 0.75em;
}

#myPreferencesMenuPage .verticalSection-extrabottompadding .emby-button .listItemBodyText {
	text-overflow: visible !important;
}

.layout-mobile .flex.align-items-center.flex-grow.headerTop {
  width: 100vw;
  padding-left: 0;
}

.layout-mobile [dir="ltr"] .pageTitle {
  margin: 0;
}

.layout-desktop div.itemMiscInfo.itemMiscInfo-primary,
.layout-tv div.itemMiscInfo.itemMiscInfo-primary,
.layout-desktop .itemName.originalTitle,
.layout-tv .itemName.originalTitle {
	margin-bottom: 0em !important;
	font-size: 1.4em;
	font-weight: 600;
	text-align: center;
	justify-content: space-between;
}

.layout-desktop .itemName.infoText.subtitle.focuscontainer-x,
.layout-tv .itemName.infoText.subtitle.focuscontainer-x {
	text-align: center;
	position: fixed;
  top: 38.5em;
  left: 4em;
  width: 23.3em;
}

.layout-mobile .itemMiscInfo, .layout-mobile .itemName, .layout-mobile .mainDetailButtons, .layout-mobile .parentName {
  justify-content: center;
  text-align: center;
}

button[is="paper-icon-button-light"].cardOverlayButton.cardOverlayButton-hover.itemAction.paper-icon-button-light.cardOverlayFab-primary[data-action="resume"] {
  background-color: rgba(0, 0, 0, 0.7);
  font-size: 130%;
  height: 3em;
  left: 50%;
  margin-left: -1.5em;
  margin-top: -1.5em;
  padding: 0;
  position: absolute;
  top: 50%;
  width: 3em;
}

.first-imageEditor-buttons, .imageEditor-buttons {
  margin-top: 0em;
  margin-bottom: 0em;
}

@media (min-width: 60em) {
	.headerTabs.sectionTabs .tabs-viewmenubar.emby-tabs.focusable.scrollX .emby-tab-button.emby-button.emby-tab-button-active {
		background: #fff !important;
		color: #000 !important;
		border-radius: 2em;
		height: 2em;
		width: auto;
		transform: translateY(-11%);
			transition: 0s;
	}

	.headerTabs.sectionTabs .tabs-viewmenubar.emby-tabs.focusable.scrollX .emby-tab-button.emby-button.emby-tab-button-active .emby-button-foreground {
		transform: translateY(-29%);
	}

	.headerTabs .emby-tab-button {
		transition: 0s !important;
		width: auto;
		color: #fff;
	}

	#moviesTab .listItem {
		font-size: 1.15em;
	}

	#moviesTab .listItemBody.itemAction {
		max-width: 60vw;
	}

	#moviesTab .secondary.listItemMediaInfo {
		width: 13vw;
	}

	#moviesTab .secondary.listItemMediaInfo .mediaInfoItem {
		transform: translateX(-50%);
		min-width: 4vw;
	}

	#moviesTab .secondary.listItemMediaInfo .starRatingContainer.mediaInfoItem {
		transform: translateX(-50%);
		min-width: 4vw;
		margin-right: 2vw;
	}

	#moviesTab .secondary.listItemMediaInfo .mediaInfoItem.mediaInfoText.closedCaptionMediaInfoText {
		transform: translateX(-50%);
		min-width: 1.5vw;
		justify-content: center;
	}

	#moviesTab .listViewUserDataButtons {
		width: 13vw;
		justify-content: space-around;
	}

	#seriesTab .listItem {
		font-size: 1.15em;
	}

	#seriesTab .listItemBody.itemAction {
		max-width: 60vw;
	}

	#seriesTab .secondary.listItemMediaInfo {
		width: 3vw;
	}

	#seriesTab .secondary.listItemMediaInfo .mediaInfoItem {
		transform: translateX(-50%);
		min-width: 4vw;
	}

	#seriesTab .secondary.listItemMediaInfo .starRatingContainer.mediaInfoItem {
		transform: translateX(-50%);
		min-width: 4vw;
		margin-right: 2vw;
	}

	#seriesTab .secondary.listItemMediaInfo .mediaInfoItem.mediaInfoText.closedCaptionMediaInfoText {
		transform: translateX(-50%);
		min-width: 4vw;
		justify-content: center;
	}

	#seriesTab .listViewUserDataButtons {
		width: 13vw;
		justify-content: space-around;
	}
	
	#episodesTab .listItem {
		font-size: 1.15em;
	}

	#episodesTab .listItemBody.itemAction {
		max-width: 50vw;
	}

	#episodesTab .secondary.listItemMediaInfo {
		width: 21vw;
	}

	#episodesTab .secondary.listItemMediaInfo .mediaInfoItem {
		transform: translateX(-50%);
		min-width: 6.5vw;
		justify-content: center !important;
		display: flex;
		margin-right: 0;
	}

	#episodesTab .secondary.listItemMediaInfo .starRatingContainer.mediaInfoItem {
		transform: translateX(-50%);
		min-width: 6vw;
		margin-right: 0vw;
	}

	#episodesTab .secondary.listItemMediaInfo .mediaInfoItem.mediaInfoText.closedCaptionMediaInfoText {
		transform: translateX(-50%);
		min-width: 1.5vw;
		justify-content: center;
		margin-right: 1em;
	}

	#episodesTab .listViewUserDataButtons {
		width: 13vw;
		justify-content: space-around;
	}

	#genresTab .portraitCard, .squareCard {
		width: 11%;
	}
}

#displayPreferencesPage .sectionTitle {
  margin-bottom: 1em !important;
  margin-left: 0em !important;
}

.card.overflowPortraitCard.card-hoverable.card-withuserdata:hover .countIndicator.indicator {
  opacity: 0;
}

.card.portraitCard.card-hoverable.card-withuserdata:hover .countIndicator.indicator {
  opacity: 0;
}

.countIndicator.indicator {
  transition: opacity 0.3s ease;
}

[dir="ltr"] .emby-scrollbuttons {
  right: 0em;
  padding-right: 0em;
}

#castCollapsible .emby-scrollbuttons.padded-right,
 #similarCollapsible .emby-scrollbuttons.padded-right,
 #guestCastCollapsible .emby-scrollbuttons.padded-right, 
 #specialsCollapsible .emby-scrollbuttons.padded-right, 
 #musicVideosCollapsible .emby-scrollbuttons.padded-right,
 #scenesCollapsible .emby-scrollbuttons.padded-right {
	padding-top: 2em !important;
}

.layout-desktop #homeTab .emby-scroller-container,
.layout-tv #homeTab .emby-scroller-container {
  position: relative;
  overflow: hidden;
}

.listItemImage {
	cursor: pointer;
}

.listItemImage:hover {
  box-shadow: 0px 0px 5px rgb(var(--accent));
}

.skinHeader {
	pointer-events: none;
}

.headerButton,
.headerTabs.sectionTabs {
	pointer-events: all;
	-webkit-filter: drop-shadow(0px 0px 1.5px rgb(0, 0, 0));
	filter: drop-shadow(0px 0px 1.5px rgb(0, 0, 0));
	color: #fff;
}

.collectionItems {
    min-height: calc(18em + 8.6vh);
}

.layout-mobile .raised.homeLibraryButton {
	min-width: unset !important;
	max-width: unset !important;
	width: unset !important;
	margin: 0 !important;
	justify-content: center;
	border-radius: 0em !important;
	border: 1px solid #1d102e94 !important;
}

@media (orientation: landscape) {
	.layout-mobile .raised.homeLibraryButton {
		max-width: 47vw !important;
	}

	.layout-mobile .sectionTitle.sectionTitle-cards.padded-left + .itemsContainer {
		margin-bottom: 0em;
		padding-top: 0.5em;
		display: grid;
		grid-template-columns: repeat(2, 1fr); /* 2 column layout */
		grid-gap: 1em;
	}
}

.layout-desktop #homeTab .emby-scrollbuttons.padded-right,
.layout-tv #homeTab .emby-scrollbuttons.padded-right {
  right: 0em;
  padding-right: 0em;
  width: 100vw;
}

#homeTab button[data-direction="left"] {
	right: 6.5em;
	position: absolute;
	top: 0em;
	z-index: 50;
	font-size: 1.5em;
	color: #fff;
	height: 1.5em;
	border-radius: 0.1em;
	cursor: pointer;
	opacity: 0.1;
	margin: 0;
	width: 1.5em;;
	padding: 0;
	padding-top: 1em;
}

#homeTab button[data-direction="right"] {
	right: 0.5em;
	position: absolute;
	top: 0em;
	z-index: 50;
	font-size: 1.5em;;
	color: #fff;
	height: 1.5em;;
	border-radius: 0.1em;
	cursor: pointer;
	opacity: 0.1;
	margin: 0;
	width: 1.5em;;
	padding: 0;
	padding-top: 1em;
}

#homeTab button[data-direction="left"]:hover {
	color: #fff !important;
	opacity: 1;
}

#homeTab button[data-direction="right"]:hover {
	color: #fff !important;
	opacity: 1;
}

#itemDetailPage button[data-direction="left"] {
	right: 5em;
	position: absolute;
	top: 1em;
	z-index: 50;
	font-size: 2em;
	color: #fff;
	height: 2em;
	border-radius: 0.1em;
	cursor: pointer;
	opacity: 0.1;
	margin: 0;
	width: 2em;
	padding: 0;
	padding-top: 0.5em;
}

#itemDetailPage button[data-direction="right"] {
	right: 0em;
	position: absolute;
	top: 1em;
	z-index: 50;
	font-size: 2em;
	color: #fff;
	height: 2em;
	border-radius: 0.1em;
	cursor: pointer;
	opacity: 0.1;
	margin: 0;
	width: 2em;
	padding: 0;
	padding-top: 0.5em;
}

#itemDetailPage button[data-direction="left"]:hover {
	color: #fff !important;
	opacity: 1;
}

#itemDetailPage button[data-direction="right"]:hover {
	color: #fff !important;
	opacity: 1;
}

.layout-tv .cardBox.cardBox-bottompadded {
	margin-bottom: 2em !important;
}


.layout-desktop .childrenItemsContainer.itemsContainer.padded-right.vertical-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.layout-desktop .listItemImage-large,
.layout-tv .listItemImage-large {
    height: 9em;
}

@media all and (max-width: 2000px) {
  .layout-desktop .childrenItemsContainer.itemsContainer.padded-right.vertical-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media all and (max-width: 1000px) {
  .layout-desktop .childrenItemsContainer.itemsContainer.padded-right.vertical-list {
    grid-template-columns: 1fr 1fr;
  }
}

.layout-mobile
  .childrenItemsContainer.itemsContainer.padded-right.vertical-list {
  grid-template-columns: 1fr;
}

.layout-desktop #itemDetailPage .listItem-content {
  border-radius: var(--rounding);
  overflow: hidden;
  transition: background 0.15s ease-in-out;
  flex-flow: column;
  -webkit-transition: background 0.15s ease-in-out;
  -moz-transition: background 0.15s ease-in-out;
  -ms-transition: background 0.15s ease-in-out;
  -o-transition: background 0.15s ease-in-out;
}

.layout-desktop .listItemImage.listItemImage-large {
  width: 100%;
  margin: 0;
}

.layout-desktop .listViewUserDataButtons {
	justify-content: space-evenly;
	width: 100% !important;
}

.layout-desktop .listItem-overview.listItemBodyText {
  height: 5.5em !important;
  font-size: 1em !important;
  padding-top: 0em !important;
}

.layout-desktop #itemDetailPage .listItem {
  position: relative;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  max-height: 30em;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: var(--rounding);
  padding: .5em;
}

.layout-desktop itemDetailPage .secondary.listItem-overview.listItemBodyText {
  height: 100%;
  margin: 0;
}

.layout-desktop .listItem[data-mediatype="Audio"] {
  padding: 0 1em;
  border-radius: var(--rounding) !important;
  -webkit-border-radius: var(--rounding) !important;
  -moz-border-radius: var(--rounding) !important;
  -ms-border-radius: var(--rounding) !important;
  -o-border-radius: var(--rounding) !important;
}

.layout-desktop .listItemImageButton {
  margin: auto;
  font-size: 1.6em !important;
}
.layout-desktop .listItemBody.itemAction,
.layout-desktop .listItem-bottomoverview.secondary {
  z-index: 1;
  min-width: 15em;
}
.layout-desktop .listItem-bottomoverview.secondary {
  text-align: justify;
  padding: .5em;
  margin: 0;
}

.layout-desktop .trackSelections .selectContainer .selectLabel,
.layout-tv .trackSelections .selectContainer .selectLabel {
	text-align: center;
}

.layout-tv .itemDetailPage {
  padding-top: 38.5em !important;
}

/* IMDb link replaced with logo */
a[href*="imdb.com"]::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 25px;
    background-image: url('https://i.imgur.com/pbNvPMX.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

a[href*="imdb.com"] {
    font-size: 0;
}

/* TheMovieDb link replaced with logo */
a[href*="themoviedb.org"]::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 25px;
    background-image: url('https://i.imgur.com/RlC69qy.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

a[href*="themoviedb.org"] {
    font-size: 0;
}

/* TheMovieDb link replaced with logo */
a[href*="themoviedb.org/collection"]::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 25px;
    background-image: url('https://i.imgur.com/HDodxf3.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

/* TheTVDb link replaced with logo */
a[href*="thetvdb.com"]::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 25px;
    background-image: url('https://i.imgur.com/Jp1VNqp.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

a[href*="thetvdb.com"] {
    font-size: 0;
}

/* TVMaze link replaced with logo */
a[href*="tvmaze.com"]::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 25px;
    background-image: url('https://i.imgur.com/sd2al6G.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

a[href*="tvmaze.com"] {
    font-size: 0;
}

/* aniDB link replaced with logo */
a[href*="anidb.net"]::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 25px;
    background-image: url('https://i.imgur.com/7hpyHRn.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

a[href*="anidb.net"] {
    font-size: 0;
}

.itemExternalLinks.focuscontainer-x {
	color: #000a;
}

@media (min-width: 2000px) {
	body {
		font-size: 133%;
	}
	.detailImageContainer .card {
		font-size: 100% !important;
	}
	p.overview.detail-clamp-text {
		font-size: 100% !important;
	}
	.detailsGroupItem, .trackSelections .selectContainer {
		font-size: 83% !important;
	}
	.listItem {
		font-size: 92% !important;
	}
}

.layout-desktop .mainDetailButtons.focuscontainer-x {
	position: fixed;
	left: 4.15em;
	width: 17.85em;
	justify-content: space-evenly;
	top: 28.28em;
	z-index: 2;
	background: #110e1ce3;
	border-radius: 0em;
	margin: 1.25em 0;
}

.layout-tv .mainDetailButtons.focuscontainer-x {
	position: fixed;
	left: 4.15em;
	width: 17.85em;
	justify-content: space-between;
	top: 28.1em;
	background: #110e1ce3;
	border-radius: 0.26em;
	z-index: 5;
	margin: 1.25em 0;
}

.layout-desktop .cardPadder,
.layout-tv .cardPadder {
  border-radius: unset;
}

.layout-desktop .itemExternalLinks.focuscontainer-x,
.layout-tv .itemExternalLinks.focuscontainer-x {
	color: #000a;
	position: fixed;
	width: 22em;
	left: 6em;
	top: 61em;
	display: flex;
	justify-content: space-between;
}

.layout-desktop .mainDetailButtons.focuscontainer-x .button-flat,
.layout-tv .mainDetailButtons.focuscontainer-x .button-flat {
	margin-right: 0em !important;
	padding: 0.5em !important;
	z-index: 5;
	border-radius: 0.26em !important;
}

.layout-desktop .mainDetailButtons.focuscontainer-x .button-flat:hover,
.layout-tv .mainDetailButtons.focuscontainer-x .button-flat:focus {
	background: #29264a !important;
}

/* D-E-N-U's title fix */ 
.layout-desktop .itemName.infoText.parentNameLast,
.layout-desktop .itemName.infoText.subtitle,
.layout-tv .itemName.infoText.subtitle,
.layout-tv .itemName.infoText.parentNameLast {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.layout-desktop .itemName.infoText.originalTitle,
.layout-desktop .itemName.infoText.subtitle,
.layout-tv .itemName.infoText.originalTitle {
  position: absolute;
  top: 6em;
  left: 1em;
  font-size: 1em;
  width: 23.75em;
}

.layout-tv #itemDetailPage .detailImageContainer.padded-left .card:hover {
	transform: scale(1) translateY(-50%);
}

.layout-desktop #itemDetailPage .detailImageContainer.padded-left .card:hover {
	transform: scale(1);
}

@media (min-width: 3000px) {
	body {
		font-size: 200% !important;
	}
}
