/*
 * STREAMC1TY branding for Jellyfin Web 12 administration pages.
 * Dashboard intentionally excludes server CustomCss, so this small global
 * stylesheet provides only the missing brand mark.
 */
.dashboard-appBar { position: relative; }

.dashboard-appBar::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9rem;
  height: 2.5rem;
  margin-left: 0;
  pointer-events: none;
  background: url("jellyfinlogonowe-20260612.png") left center / contain no-repeat;
}

.dashboard-appBar img[src*="icon-transparent"] {
  content: url("jellyfinlogonowe-20260612.png");
  width: auto !important;
  height: 2.5rem !important;
  max-width: 9rem !important;
  max-height: 2.5rem !important;
  object-fit: contain !important;
}

#dashboardPage:not(.hide) .skinHeader .pageTitle {
  display: inline-block !important;
  width: 13.5em !important;
  height: 3.2em !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  background: url("jellyfinlogonowe-20260612.png") left center / contain no-repeat !important;
}

/* Jellyfin 12 renders a separate Material UI header on the home screen. */
header.MuiAppBar-root:not(.dashboard-appBar) > .MuiToolbar-root:first-of-type {
  --streamc1ty-wordmark: url("/jellyfin/web/jellyfinlogonowe-20260612.png");
}

header.MuiAppBar-root:not(.dashboard-appBar) > .MuiToolbar-root:first-of-type a.MuiButton-sizeLarge[href="#/"] {
  box-sizing: border-box;
  width: 7rem;
  min-height: 2.75rem;
  flex-shrink: 0;
  color: transparent !important;
  text-shadow: none;
  background-image: var(--streamc1ty-wordmark);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto 4.25rem;
}

header.MuiAppBar-root:not(.dashboard-appBar) > .MuiToolbar-root:first-of-type a.MuiButton-sizeLarge[href="#/"] .MuiButton-startIcon {
  display: none;
}

/* The narrow home toolbar renders a menu button instead of the home link. */
@media (max-width: 899px) {
  html[data-active-page="home"] header.MuiAppBar-root:not(.dashboard-appBar) > .MuiToolbar-root:first-of-type:has(> button.MuiIconButton-root:first-child):not(:has(a.MuiButton-sizeLarge[href="#/"]))::after {
    content: "";
    position: absolute;
    inset-inline-start: 3.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(1.125rem, calc(100vw - 299px), 5.75rem);
    height: clamp(1rem, calc(42vw - 7.4rem), 2.375rem);
    background: var(--streamc1ty-wordmark) center top / min(100%, 5.55rem) auto no-repeat;
    pointer-events: none;
  }
}
