html {
  scrollbar-width: none;
  /* The two Settings gradients are composited in this image at 80% alpha. */
  --playview-dialog-glass: url("assets/playview-window-gradient.png") center / 100% 100% no-repeat;
  --playview-card-menu-glass: linear-gradient(145deg, #24212880, #17161cc2);
}
html::-webkit-scrollbar { display: none; }
.page-scroll-thumb {
  position: fixed;
  z-index: 5;
  top: var(--thumb-top);
  right: 0;
  width: 16px;
  height: var(--thumb-height);
  touch-action: none;
  cursor: grab;
}
.page-scroll-thumb::after {
  content: '';
  position: absolute;
  inset: 0 4px 0 auto;
  width: 3px;
  border-radius: 999px;
  background: #ffffff35;
}
.page-scroll-thumb:is(:hover:where(html:not([data-touch-input]) *), :focus-visible:where(html:not([data-touch-input]) *), :active)::after { background: #ffffffe0; }
html:has(dialog[open]) .page-scroll-thumb { visibility: hidden; pointer-events: none; }
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; background: transparent; }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-track-piece,
  ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-track:vertical { margin-block: 8px; }
  ::-webkit-scrollbar-thumb {
    background: #ffffff35;
    background-clip: padding-box;
    border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb:vertical {
    min-height: 28px;
    border: solid transparent;
    border-width: 2px 4px;
  }
  ::-webkit-scrollbar-thumb:horizontal {
    min-width: 28px;
    border: solid transparent;
    border-width: 4px 2px;
  }
  ::-webkit-scrollbar-thumb:hover,
  ::-webkit-scrollbar-thumb:active { background-color: #ffffffe0; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
@supports not selector(::-webkit-scrollbar) {
  :not(html) { scrollbar-width: thin; scrollbar-color: #ffffff35 transparent; }
}
html:has(dialog[open]) { overflow: hidden; }
.studio-release-calendar {
  --release-padding: clamp(14px, 3vw, 24px);
  container-type: inline-size;
  box-sizing: border-box;
  width: 100%;
  padding: 0 var(--release-padding) var(--release-padding);
  color: #f3f1f5;
}
.studio-release-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  background: inherit;
}
.studio-release-heading {
  top: var(--home-header-height, 78px);
  padding-top: var(--release-padding);
  background: var(--home-background, #0e0d10);
  background-attachment: fixed;
}
.studio-release-content {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 360ms cubic-bezier(.22,.75,.25,1), opacity 230ms ease;
}
.studio-release-content[data-loading=true] { grid-template-rows: 0fr; opacity: 0; }
.studio-release-content-inner { min-height: 0; overflow: clip; }
.studio-release-loading-slot { min-height: 18px; }
.studio-release-loading { display: flex; align-items: center; gap: 8px; color: #c5c2ce; font-size: 12px; }
.studio-release-loading-pulse { display: flex; align-items: center; gap: 3px; }
.studio-release-loading-pulse i {
  width: 4px;
  height: 9px;
  border-radius: 2px;
  background: #ded8ef;
  animation: studio-release-pulse 1.35s ease-in-out infinite;
}
.studio-release-loading-pulse i:nth-child(2) { animation-delay: 120ms; }
.studio-release-loading-pulse i:nth-child(3) { animation-delay: 240ms; }
@keyframes studio-release-pulse {
  0%, 70%, 100% { opacity: .3; transform: scaleY(.65); }
  35% { opacity: .95; transform: scaleY(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .studio-release-content { transition: none; }
  .studio-release-loading-pulse i { animation: none; }
}
.studio-release-calendar header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.studio-release-calendar h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.studio-release-period { margin: 5px 0 0; color: #bcbac5; font-size: 13px; }
.studio-release-scopes { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0 10px; }
.studio-release-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.studio-release-switch {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #d9d4e0;
  font: inherit;
  cursor: pointer;
}
.studio-release-switch:hover:where(html:not([data-touch-input]) *) { color: #fff; }
.studio-release-calendar [hidden] { display: none; }
.studio-release-schedule { display: grid; gap: 5px; margin-top: 9px; }
.studio-release-day {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 9px;
  border-radius: 12px;
}
.studio-release-day + .studio-release-day { border-top: 1px solid #ffffff0c; }
.studio-release-day[data-today=true] {
  background: linear-gradient(105deg, #31445155, #27293330 64%, transparent);
}
.studio-release-day h4 { display: grid; gap: 6px; justify-items: start; margin: 4px 0 0; }
.studio-release-day time { display: grid; gap: 3px; }
.studio-release-day time strong { color: #f3eff5; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.studio-release-day time span { color: #bcb8c4; font-size: 11px; font-weight: 500; white-space: nowrap; }
.studio-release-today { padding: 2px 6px; border-radius: 5px; background: #a3c9d724; color: #cee8f1; font-size: 10px; }
.studio-release-day-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 214px), 1fr)); gap: 8px; }
.studio-release-episode {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px 6px 6px;
  border: 1px solid #ffffff13;
  border-radius: 9px;
  background: linear-gradient(130deg, #2a2932, #222228);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.studio-release-episode:hover:where(html:not([data-touch-input]) *) { background: #302f39; border-color: #ffffff3b; }
.studio-release-episode img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.studio-release-episode > span { display: grid; min-width: 0; gap: 5px; }
.studio-release-episode strong { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.studio-release-episode small { color: #bcbac5; font-size: 11px; }
.studio-release-episode-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.studio-release-episode-labels > span {
  padding: 2px 5px;
  border-radius: 5px;
  background: #89bfd226;
  color: #cae9f2;
  font-size: 10px;
}
.studio-release-episode-labels > [data-type=finale] { background: #ffffff26; color: #fff; }
@container (max-width: 420px) {
  .studio-release-day { grid-template-columns: 57px minmax(0, 1fr); gap: 6px; padding-inline: 4px; }
  .studio-release-episode { grid-template-columns: 39px minmax(0, 1fr); gap: 7px; }
}
.studio-release-scopes button {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: inherit;
  background: #25252c;
  font: inherit;
  cursor: pointer;
}
.studio-release-scopes button[aria-pressed=true] {
  border-color: #728294;
  background: #303c4a;
}
.studio-release-calendar [role=status] { margin: 14px 0 0; }
.studio-release-calendar [role=status]:empty { display: none; }
.studio-release-week {
  --release-square: calc((100cqw - 24px) / 8);
  --release-mini: calc((var(--release-square) - 3px) / 2);
  padding-block: 14px;
}
.studio-release-week + .studio-release-week { border-top: 1px solid #ffffff12; }
.studio-release-week h3 { margin: 0; font-size: 15px; }
.studio-release-showcase {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.studio-release-posters { display: grid; grid-template-columns: repeat(auto-fill, var(--release-mini)); gap: 3px; }
.studio-release-posters:not(:empty) { margin-top: 8px; }
.studio-release-posters .studio-release-mini { height: var(--release-mini); }
.studio-release-tile {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #282830;
  color: inherit;
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.studio-release-showcase > .studio-release-tile, .studio-release-mini-grid { height: var(--release-square); }
.studio-release-mini-grid { display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); gap: 3px; }
.studio-release-mini { border-radius: 5px; }
.studio-release-tile .playview-cover-frame { height: 100%; background: #24242b; }
.studio-release-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.studio-release-tile > span {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 1px;
  padding: 14px 8px 6px;
  background: linear-gradient(transparent, #08080bed 70%);
}
.studio-release-tile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-release-tile small { color: #dbdae2; }
.studio-release-lead strong { font-size: 16px; }
.studio-release-mini > span, .studio-release-mini .playview-cover-placeholder { display: none; }
.studio-release-tile:focus-visible { outline-offset: 2px; }
.studio-release-tile:hover:where(html:not([data-touch-input]) *) strong { color: #c2d7ea; }
@container (max-width: 550px) {
  .studio-release-week { --release-square: calc((100cqw - 16px) / 4); }
  .studio-release-showcase {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  }
  .studio-release-showcase > .studio-release-lead { grid-column: 1 / -1; height: clamp(100px, 28cqw, 150px); }
}
.studio-release-game-posters {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr));
  gap: 10px;
}
.studio-release-game-posters > .studio-release-poster {
  height: auto;
  aspect-ratio: 2 / 3;
}
.studio-release-more-games {
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: linear-gradient(155deg, #ffffff12, #ffffff04);
  color: #eeebf0;
  font: inherit;
  font-size: clamp(22px, 3vw, 34px);
  cursor: pointer;
}
.studio-release-more-games:hover:where(html:not([data-touch-input]) *) { background: #ffffff1a; }
.studio-game-release-gallery {
  box-sizing: border-box;
  width: min(960px, calc(100% - 28px));
  max-height: 86dvh;
  padding: 0 clamp(14px, 2.4vw, 26px) 22px;
  border: 1px solid #ffffff1d;
  border-radius: 18px;
  color: #f3f1f5;
  background: var(--playview-dialog-glass);
  backdrop-filter: blur(20px);
}
.studio-game-release-gallery::backdrop {
  background: #0b090e85;
  backdrop-filter: blur(7px);
}
.studio-game-release-gallery header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
  background: #1b1820f2;
}
.studio-game-release-gallery h2 { margin: 0; font-size: clamp(16px, 2.5vw, 23px); }
.studio-game-release-gallery-posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 9px;
}
.studio-game-release-gallery-posters button {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}
.studio-game-release-gallery-posters button:hover:where(html:not([data-touch-input]) *) { filter: brightness(1.12); }
.studio-game-release-gallery-posters img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 7px;
  background: #ffffff0b;
}
.studio-release-controls { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-release-more { margin-top: 12px; color: inherit; cursor: pointer; }
.studio-release-more[hidden] { display: none; }
#entry-studio {
  --studio-line: #e8d9f224;
  --studio-muted: #c6bdcc;
  --studio-glass: linear-gradient(145deg, #e7d3f214, #a491b506 65%), #17131b95;
  --studio-active: #dec5ef20;
  --studio-active-line: #e4c8f04d;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 8px;
  border: 0;
  color: #f6f5f6;
  background: var(--home-background, #151119) fixed;
  scrollbar-gutter: stable;
}
#entry-studio::backdrop { background: #000; }
#entry-studio.collection-overlay {
  --collection-inset: 5mm;
  --collection-inner-top: 26px;
  padding: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
  background: transparent;
}
#entry-studio.collection-overlay::backdrop {
  background: transparent;
  backdrop-filter: blur(5px) brightness(1.1);
}
.studio-collection-frame, .studio-collection-scroll { display: contents; }
.collection-overlay .studio-collection-frame {
  display: block;
  position: absolute;
  inset: var(--collection-inset);
  overflow: hidden;
  border: 1px solid #e8d9f24d;
  border-radius: 20px;
  background: var(--playview-dialog-glass);
  box-shadow: 0 16px 52px #08060a85;
}
.collection-overlay .studio-collection-scroll {
  display: block;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: var(--collection-inner-top) 8px 8px;
}
.studio-collection-top { display: none; }
#studio-open-filters { display: none; }
.collection-overlay .studio-collection-top {
  position: absolute;
  inset: var(--collection-inset) 0 auto;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.collection-overlay.entry-stage .studio-collection-top { visibility: hidden; }
.studio-collection-top:focus { outline: none; }
#studio-close-collection {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: auto;
  border: 1px solid #e8d9f24d;
  background: #29222f;
}
#studio-close-collection:hover:where(html:not([data-touch-input]) *) {
  background: #42384b;
  opacity: 1;
}
#entry-studio.home-entry-preview, #entry-studio.home-entry-preview::backdrop { background: transparent; }
#entry-studio.home-entry-preview :is(.studio-nav, .studio-filters, .studio-main) { display: none; }
.studio-layout {
  display: grid;
  grid-template-columns: 150px 208px minmax(0, 1fr);
  gap: 8px;
  min-height: 100%;
}
.studio-panel { background: #151517; border: 1px solid #ffffff17; border-radius: 14px; min-width: 0; }
.studio-main { background: transparent; border: 0; }
.studio-nav {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 2;
  height: calc(100dvh - 16px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 12px 14px 8px;
  border-right: 1px solid var(--studio-line);
}
.studio-nav button, .studio-filters button {
  color: inherit;
  font: inherit;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 8px 9px;
  background: transparent;
  cursor: pointer;
}
.studio-nav .studio-home { font: 25px Georgia, serif; margin-bottom: 20px; padding: 8px 9px; white-space: nowrap; }
.collection-overlay :is(.studio-nav, .studio-filters) {
  --collection-content-height: calc(100dvh - 2 * var(--collection-inset) - var(--collection-inner-top) - 10px);
}
.collection-overlay .studio-nav { height: var(--collection-content-height); }
.studio-label { color: var(--studio-muted); font-size: 11px; padding-inline: 9px; }
.studio-nav button:hover:where(html:not([data-touch-input]) *) { background: #e7d3f210; }
.studio-nav button[aria-pressed=true] {
  background: var(--studio-active);
  box-shadow: inset 0 0 0 1px var(--studio-active-line);
}
.studio-nav-groups { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--studio-line); }
#studio-group-choices { display: grid; gap: 4px; margin-top: 4px; }
#studio-group-choices button { display: flex; align-items: center; justify-content: space-between; gap: 6px; overflow-wrap: anywhere; }
.studio-panel h2 {
  margin: 0;
  padding: 13px 14px;
  border-bottom: 1px solid var(--studio-line);
  font: 600 13px/1.5 Arial, sans-serif;
  letter-spacing: normal;
}
#studio-categories { display: grid; padding: 4px 0 10px; gap: 2px; }
.studio-filters {
  position: sticky;
  top: 8px;
  align-self: start;
  z-index: 1;
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding-inline: 12px;
  background: transparent;
  border: 0;
}
.collection-overlay .studio-filters { max-height: var(--collection-content-height); }
.studio-filters h2, .studio-filter-heading strong {
  color: #ebe4ee;
  font: 600 13px/1.4 system-ui, sans-serif;
}
.studio-filters h2 { padding: 13px 0 8px; border-bottom: 0; }
#studio-categories button {
  position: relative;
  padding: 7px 9px 7px 12px;
  color: var(--studio-muted);
}
#studio-categories button:hover:where(html:not([data-touch-input]) *) { background: #ffffff0a; color: #f6effa; }
#studio-categories button[aria-pressed=true] {
  background: linear-gradient(90deg, #e7d3f217, #e7d3f205);
  color: #f6effa;
}
#studio-categories button[aria-pressed=true]::before {
  content: '';
  position: absolute;
  inset: 8px auto 8px 0;
  width: 2px;
  border-radius: 2px;
  background: #e8d9ee;
}
.studio-search {
  display: grid;
  gap: 8px;
  margin: 0 14px;
  padding: 15px 0 10px;
  border-bottom: 1px solid var(--studio-line);
}
.studio-search label { font-weight: 600; }
.studio-search span { color: var(--studio-muted); font-size: 12px; }
#studio-search-field { display: grid; gap: 8px; min-width: 0; }
#studio-library-search, #studio-close-search { display: none; }
.studio-search-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#studio-sort { position: relative; }
#studio-sort summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--studio-line);
  border-radius: 7px;
  background: var(--studio-glass);
  color: #ede5f1;
  list-style: none;
  cursor: pointer;
}
#studio-sort summary::-webkit-details-marker { display: none; }
#studio-sort summary:hover:where(html:not([data-touch-input]) *), #studio-sort[open] summary { background: var(--studio-active); }
.studio-sort-options {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  width: max-content;
  padding: 4px;
  border: 1px solid var(--studio-active-line);
  border-radius: 10px;
  background: var(--playview-dialog-glass);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 20px #0006;
}
.studio-sort-options button {
  padding: 7px 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dddce2;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.studio-sort-options button:hover:where(html:not([data-touch-input]) *) { background: #e7d3f210; }
.studio-sort-options button[aria-pressed=true] { background: var(--studio-active); color: #f5f5f6; }
.studio-filters .studio-add-record {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  margin: 4px 0 12px;
  color: #f6effa;
  background: var(--studio-glass);
  border: 1px solid #ffffff26;
}
.studio-filters .studio-add-record span { font: 18px/1 Arial, sans-serif; }
.studio-filters .studio-add-record:is(:hover:where(html:not([data-touch-input]) *), :focus-visible:where(html:not([data-touch-input]) *)) {
  background: #ffffff12;
  filter: none;
}
#studio-categories button:disabled { opacity: .55; cursor: default; }
.studio-search input, .studio-search select, .studio-manual-form input, .studio-manual-form select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  background: #202023;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  color: inherit;
  font: inherit;
}
.studio-search input {
  background: var(--studio-glass);
  border-color: var(--studio-line);
}
.studio-search input:focus-visible {
  border-color: var(--studio-active-line);
  outline: 1px solid var(--studio-active-line);
}
.studio-result-section {
  padding: 12px 14px 18px;
}
.studio-result-section + .studio-result-section {
  border-top: 1px solid var(--studio-line);
}
.studio-result-section > h3 {
  margin: 0 0 10px;
  font: 600 13px/1.4 Arial, sans-serif;
}
.studio-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(190px, 16vw, 250px)), 1fr));
  gap: 18px 14px;
}
.studio-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: start;
  min-width: 0;
  color: inherit;
  text-align: left;
  font: 400 14px/1.4 system-ui, sans-serif;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--studio-line);
  background: linear-gradient(145deg, var(--studio-card-tint, #aa84bf18), #16121be6);
  cursor: pointer;
}
.studio-card[data-priority=must] { --studio-card-tint: #cd9a5728; --priority-ink: #e1c394; }
.studio-card[data-priority=interested] { --studio-card-tint: #7cb9cd26; --priority-ink: #aac7d0; }
.studio-card[data-priority=trial] { --studio-card-tint: #aaa8ce21; --priority-ink: #bfc2d1; }
.studio-card:is(:hover:where(html:not([data-touch-input]) *), [aria-pressed=true]) { border-color: #ffffff60; }
.studio-card .playview-cover-frame { border-radius: 0; }
.studio-card[data-mode=games] .playview-cover-frame { border-radius: 11px; }
.studio-card img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; background: #0e0e10; }
.studio-result-section[data-completion="watched"] .studio-card img {
  filter: brightness(.35) saturate(.57);
}
.studio-result-section[data-completion="dropped"] .studio-card img {
  filter: brightness(.28) saturate(.42);
}
.studio-result-section[data-completion="dropped"] .playview-cover-frame[data-cover-state="ready"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #8420314d;
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .studio-card .playview-cover-frame[data-cover-state=ready] img {
    transition: transform 280ms ease-out;
  }
  .studio-card:hover:where(html:not([data-touch-input]) *) .playview-cover-frame[data-cover-state=ready] img {
    transform: scale(1.045);
  }
}
.studio-card-caption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 11px 12px; width: 100%; box-sizing: border-box; }
.studio-card-caption > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.studio-card-title { font-size: 15px; font-weight: 650; }
.studio-card-caption:not(:has(.studio-card-unit, .studio-card-priority)) .studio-card-title,
.studio-card-caption:has(.studio-card-unit):not(:has(.studio-card-priority)) .studio-card-title,
.studio-card-caption:has(.studio-card-priority):not(:has(.studio-card-unit)) .studio-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.studio-card small { font-size: 13px; font-weight: 400; }
.studio-card .studio-card-release { color: #d0cfd5; }
.studio-card .studio-card-release[data-release=airing] { color: #a9d7c0; }
.studio-card .studio-card-release[data-release=expected] { color: #e0cda9; }
.studio-card .studio-card-priority { color: var(--priority-ink); margin-top: 3px; }
.studio-card-priority::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: .12em;
}
.studio-empty, #studio-detail, #studio-feedback { padding: 14px; }
#studio-detail img { display: block; max-width: 100%; max-height: 250px; margin-bottom: 12px; border-radius: 9px; }
#studio-detail h3 { margin: 0 0 6px; font-size: 17px; }
#studio-feedback { color: #b7dfc8; margin: 0; }
.studio-manual-form { display: grid; gap: 10px; }
.studio-manual-form label { display: grid; gap: 4px; }
#entry-studio.has-entry:not(.entry-stage) .studio-layout { grid-template-columns: 150px 208px minmax(0, 1fr) clamp(330px, 34vw, 540px); }
.has-entry .studio-detail { border-color: #354251; background: #171d25; }
#entry-studio:not(.has-entry) .studio-detail { display: none; }
.studio-detail-heading { display: flex; justify-content: flex-end; padding: 10px 14px 0; }
.studio-detail-heading:has(#studio-close-detail) { min-height: 42px; }
#studio-close-detail { visibility: hidden; }
.has-entry #studio-close-detail { visibility: visible; }
#studio-close-detail, .studio-priority button, .studio-rating-dialog button {
  color: #dce6f0;
  background: #222d3a;
  border: 1px solid #3c4e62;
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  cursor: pointer;
}
.studio-single-watch-row {
  padding: 4px 12px;
}
.studio-single-watch-row > strong { padding-block: 4px; }
.studio-watch-slot { display: grid; margin-top: 16px; }
.studio-watch-slot > * { grid-area: 1 / 1; min-height: 44px; }
.studio-watch-slot > [hidden] { display: none; }
.studio-watch-slot:has(> :only-child[hidden]) { display: none; }
.studio-rating-dialog.studio-group-picker { width: min(340px, calc(100% - 32px)); max-height: 75dvh; }
.studio-group-picker h3 { margin: 0 0 12px; font-size: 17px; }
.studio-group-choices { display: grid; gap: 6px; margin-bottom: 12px; }
.studio-group-choices button { width: 100%; justify-content: start; white-space: normal; overflow-wrap: anywhere; }
.studio-watch-slot:has(#studio-save:not([hidden]) + .studio-single-watch-row) { gap: 8px; }
.studio-watch-slot:has(#studio-save:not([hidden]) + .studio-single-watch-row) > * { grid-area: auto; }
.studio-before-add :is(.studio-entry-actions:not(.studio-add-priority), .studio-watch-pair, .studio-entry-menu:not(.studio-entry-menu-preview), .studio-game-add-ons),
.studio-awaiting-priority :is(.studio-entry-menu, .studio-game-add-ons) { display: none; }
.studio-game-completion { color: #b6b3bb; font-size: 11px; }
.studio-add-ons-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#studio-detail .studio-add-ons-heading h3 { margin: 0; font-size: 13px; letter-spacing: .06em; }
.studio-add-ons-heading button {
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #c1ccda;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.studio-add-ons-heading button:hover:where(html:not([data-touch-input]) *) { color: #fff; }
.studio-add-on-picker { display: grid; gap: 6px; }
.studio-editor .studio-add-on-picker label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 8px;
  background: #252a32;
}
.studio-add-on-picker small { display: block; color: #b6b3bb; font-size: 11px; }
.studio-priority span.studio-priority-required { color: #ff8d9a; }
.entry-stage .studio-watch-slot #studio-save:not([hidden]) {
  display: inline-flex;
  justify-self: stretch;
  padding: 8px 14px;
  border-radius: 8px;
}
.studio-add-priority:popover-open {
  position: fixed;
  inset: auto;
  display: block;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
  color: inherit;
  animation: studio-priority-enter .18s ease-out;
}
@keyframes studio-priority-enter {
  from { opacity: 0; transform: translateX(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .studio-add-priority:popover-open { animation: none; }
}
.studio-episodes ol { margin: 8px 0 0; padding: 0; list-style: none; }
.studio-episodes li { padding: 6px 0; }
.studio-episodes li small { display: block; color: #a9a9af; }
.studio-episodes { padding: 5px 12px 8px; }
.studio-collection-back {
  max-width: calc(100% - 45px);
  margin-bottom: 14px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #bcc9d8;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.studio-collection-back:hover:where(html:not([data-touch-input]) *) { color: #f5f5f6; text-decoration: underline; }
.studio-entry-header { display: flex; flex-wrap: wrap; align-items: start; gap: 10px 16px; }
.studio-entry-header > div:first-child { flex: 1 1 150px; min-width: 0; }
.studio-watch-pair { display: flex; align-items: center; gap: 7px; flex: none; }
.studio-watch-pair > .studio-rate-button[hidden] { display: none; }
.studio-drop-button, .studio-row-action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #80505a;
  border-radius: 50%;
  background: transparent;
  color: #d69aa6;
  font: 17px/1 Arial, sans-serif;
  cursor: pointer;
}
.studio-drop-button:hover:where(html:not([data-touch-input]) *), .studio-drop-button[aria-pressed=true] { background: #743e4a; color: #fff1f3; }
.studio-watch-pair .studio-drop-button {
  box-sizing: border-box;
  width: 23px;
  height: 23px;
  font-size: 15px;
}
.studio-row-action { border-color: #465362; color: #d5dde5; }
.studio-entry-menu { position: relative; z-index: 2; }
.studio-entry-menu[hidden] { display: none; }
.studio-entry-menu > summary::-webkit-details-marker { display: none; }
.studio-entry-menu-layer {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 175px;
}
.studio-entry-menu-surface {
  display: grid;
  padding: 5px;
  background: var(--playview-dialog-glass);
  backdrop-filter: blur(18px) saturate(.45);
  border: 1px solid #ffffff26;
  border-radius: 9px;
}
.studio-entry-menu button, .studio-editor button {
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.studio-entry-menu button:hover:where(html:not([data-touch-input]) *) { background: #ffffff14; }
.studio-editor button:hover:where(html:not([data-touch-input]) *) { background: #34343c; }
.studio-priority-menu > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.studio-priority-menu > button::after {
  content: '';
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.studio-priority-menu > button[aria-expanded=true] { background: #ffffff14; }
@media (hover: none), (pointer: coarse) {
  .studio-priority-menu > button::after { display: none; }
}
html[data-touch-input] .studio-priority-menu > button::after { display: none; }
#studio-detail .studio-priority-menu > .studio-entry-actions:not(:popover-open) { display: none; }
.studio-entry-menu-layer > .studio-entry-actions[data-inline-open] {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.studio-priority-menu > .studio-entry-actions:popover-open {
  position: fixed;
  inset: auto;
  display: block;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}
.studio-priority-menu > .studio-entry-actions[data-placement=right] { padding-left: 10px; }
.studio-priority-menu > .studio-entry-actions[data-placement=below] { padding-top: 6px; }
.studio-entry-menu .studio-priority {
  display: grid;
  gap: 5px;
}
.studio-entry-menu-layer > [data-inline-open] .studio-priority { justify-items: end; }
:is(.studio-add-priority, .studio-entry-menu) .studio-priority > span { display: none; }
:is(.studio-add-priority, .studio-entry-menu) .studio-priority button {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f2f2f2;
  text-align: start;
}
:is(.studio-entry-menu, .studio-add-priority) .studio-priority button {
  padding-inline: 12px;
  border: 1px solid #ffffff30;
  border-radius: 999px;
}
.studio-add-priority .studio-priority { display: grid; justify-items: start; gap: 6px; }
.studio-editor { max-height: 80dvh; overflow: auto; }
.studio-editor form, .studio-editor label { display: grid; gap: 9px; }
.studio-manual-dialog [hidden] { display: none; }
.studio-manual-dialog::backdrop { backdrop-filter: blur(8px); }
.studio-rating-dialog.studio-manual-dialog {
  box-sizing: border-box;
  border: 0;
  border-radius: 20px;
  background: var(--playview-dialog-glass);
  backdrop-filter: blur(20px);
  color: #f3f2f5;
  box-shadow: 0 22px 72px #0008;
}
.studio-manual-dialog.studio-manual-entry {
  width: min(740px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(16px, 3vw, 28px);
  backdrop-filter: blur(20px) saturate(.78);
  box-shadow: inset 0 1px #ffffff1a, 0 22px 72px #0007;
  font-size: 14px;
}
.studio-rating-dialog.studio-manual-entry::backdrop {
  background: #0a0e1555;
  backdrop-filter: blur(5px);
}
.studio-manual-entry form { gap: 20px; }
.studio-manual-dialog.studio-manual-season { width: min(520px, calc(100% - 28px)); }
.studio-manual-entry h3 { margin: 0; font-size: clamp(21px, 3vw, 26px); font-weight: 600; letter-spacing: -.035em; }
.studio-manual-entry .studio-rating-footer { gap: 6px; }
.studio-manual-entry .studio-rating-footer button { padding: 9px 16px; border-radius: 999px; }
.studio-manual-entry .studio-rating-footer button:last-child { background: #f1edf4; color: #201a23; border-color: transparent; }
.studio-manual-entry .studio-rating-footer button:last-child:hover:where(html:not([data-touch-input]) *) { background: #fff; }
.studio-manual-entry form :is(input:not([type=checkbox], [type=file]), textarea, .studio-select-trigger, .studio-calendar-trigger) {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background-color: #e8d6f210;
  color: #f3eef5;
}
.studio-manual-entry form .studio-select-trigger { padding-right: 28px; }
.studio-manual-entry :is(input:not([type=checkbox], [type=file]), textarea, .studio-select-trigger, .studio-calendar-trigger):focus-visible {
  outline: 1px solid #dfc8ed;
  outline-offset: 2px;
}
.studio-manual-entry :is(.studio-select-trigger, .studio-calendar-trigger):hover:where(html:not([data-touch-input]) *) { background-color: #e8d6f220; }
.studio-manual-entry form textarea { min-height: 70px; }
.studio-manual-entry :is(.studio-manual-popover, .studio-genre-options) {
  border-color: #ffffff22;
  border-radius: 12px;
}
.studio-manual-entry .studio-genre-options {
  gap: 4px;
  padding: 6px;
}
.studio-manual-entry :is(.studio-genre-options, .studio-calendar-grid) > button {
  border-radius: 8px;
}
.studio-manual-entry .studio-genre-options > button[aria-pressed=true] {
  background: #e8d6f225;
}
.studio-manual-entry .studio-genre-options > button:is(:hover:where(html:not([data-touch-input]) *), :focus-visible:where(html:not([data-touch-input]) *)) {
  background: #e8d6f235;
}
.studio-manual-entry .studio-genre-options > button:focus-visible {
  outline: 1px solid #dfc8ed;
  outline-offset: -2px;
}
.studio-manual-layout { display: grid; grid-template-columns: clamp(108px, 23%, 144px) minmax(0, 1fr); gap: 20px; }
.studio-manual-cover, .studio-manual-fields { display: grid; align-content: start; gap: 12px; min-width: 0; }
.studio-manual-poster {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e8d6f20d;
  border: 1px solid #e8d6f220;
  border-radius: 14px;
  color: #dcd2e1;
}
.studio-manual-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-manual-poster-plus { font-size: 24px; line-height: 1; }
.studio-manual-poster-label {
  padding: 6px 9px;
  text-align: center;
  font-size: 12px;
}
.studio-manual-poster.has-image .studio-manual-poster-label {
  position: absolute;
  inset: auto 6px 6px;
  border-radius: 8px;
  background: #18131ccd;
  color: #fff;
}
.studio-manual-poster input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.studio-manual-poster:focus-within { outline: 2px solid #dfc8ed; outline-offset: 2px; }
.studio-manual-poster:hover:where(html:not([data-touch-input]) *) { background: #e8d6f220; }
.studio-manual-entry .studio-manual-cover-remove { text-align: center; font-size: 12px; color: #cbbfd1; }
.studio-manual-cover small:empty, .studio-manual-dialog [role=alert]:empty { display: none; }
.studio-manual-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.studio-manual-pair > :only-child, .studio-manual-pair > :not([hidden]):nth-child(1 of :not([hidden])):nth-last-child(1 of :not([hidden])) { grid-column: 1 / -1; }
.studio-manual-dialog label { gap: 5px; font-size: 13px; }
.studio-manual-select .studio-select-trigger, .studio-manual-dialog input:not([type=checkbox], [type=file]), .studio-manual-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  color: #ebebef;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #26262d;
  font: inherit;
}
.studio-manual-select { display: grid; gap: 5px; min-width: 0; color: #dddde4; font-size: 13px; }
.studio-manual-select .studio-select-trigger {
  cursor: pointer;
  padding-right: 28px;
  background: #26262d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23b6b3bb' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;
}
.studio-manual-select [aria-pressed=true] { background: #323c48; }
.studio-manual-dialog textarea { resize: vertical; }
.studio-manual-genres { position: relative; }
.studio-genre-options {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 4px) 0 auto;
  display: grid;
  padding: 4px;
  border: 1px solid #42424a;
  border-radius: 9px;
  background: var(--playview-dialog-glass);
  box-shadow: 0 8px 20px #0005;
}
.studio-manual-popover {
  box-sizing: border-box;
  position: fixed;
  inset: auto;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--playview-dialog-glass);
  backdrop-filter: blur(18px) saturate(.45);
  color: #ebebef;
}
.studio-manual-popover:not(:popover-open) { display: none; }
.studio-genre-options.studio-manual-popover { --popover-height: 220px; }
.studio-episode-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.studio-manual-date-block { display: grid; gap: 6px; }
.studio-manual-date-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
.studio-manual-date-heading strong { font-size: 13px; font-weight: 400; }
.studio-manual-date-block > small:empty { display: none; }
.studio-episode-controls label:has(input[type=number]) { width: max-content; white-space: nowrap; }
.studio-episode-controls input[type=number] { max-width: 115px; }
.studio-episode-controls .studio-manual-select { flex: 0 1 190px; }
.studio-calendar-field { display: grid; gap: 5px; font-size: 13px; }
.studio-episode-controls .studio-calendar-field { width: min(100%, 155px); }
.studio-manual-dialog .studio-calendar-trigger {
  padding: 8px 10px;
  border: 1px solid #42424a;
  border-radius: 9px;
  background: #212126;
}
.studio-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.studio-calendar-grid small { color: #b6b3bb; padding: 4px 0; }
.studio-calendar-popover {
  width: 292px;
  padding: 11px;
  border: 1px solid #42424a;
  border-radius: 11px;
  box-shadow: 0 8px 22px #0007;
}
.studio-calendar-popover .studio-calendar-grid { margin-top: 8px; }
.studio-calendar-popover .studio-calendar-grid button { text-align: center; padding: 6px 0; }
.studio-calendar-grid button[aria-pressed=true] { background: #323c48; color: #fff; }
.studio-manual-dialog .studio-series-toggle:not([hidden]) { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 12px; color: #c5c5cf; cursor: pointer; }
.studio-series-toggle input {
  appearance: none;
  box-sizing: border-box;
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1px solid #555662;
  border-radius: 999px;
  background: #303038;
  cursor: pointer;
}
.studio-series-toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #c8c8d1; }
.studio-series-toggle input:checked {
  border-color: #8da7bd;
  background: #8da7bd;
}
.studio-series-toggle input:checked::after { left: 17px; background: #181d24; }
.studio-manual-dialog .studio-episode-controls > button { border: 1px solid #465362; border-radius: 9px; }
.studio-manual-dialog .studio-episode-controls > button:disabled { opacity: .5; cursor: default; }
.studio-crop-dialog canvas {
  display: block;
  width: min(100%, 240px, 38dvh);
  height: auto;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border-radius: 8px;
  touch-action: none;
  cursor: grab;
}
.studio-crop-dialog canvas:active { cursor: grabbing; }
@media (max-width: 480px) {
  .studio-manual-layout { grid-template-columns: 94px minmax(0, 1fr); gap: 10px; }
  .studio-manual-fields .studio-manual-pair { grid-template-columns: 1fr; }
}
.studio-manual-episodes { display: grid; gap: 8px; }
.studio-manual-episodes label {
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
}
.studio-editor input:not([type=checkbox]), .studio-editor textarea {
  min-width: 0;
  padding: 7px;
  color: #ebebef;
  border: 1px solid #42424a;
  border-radius: 6px;
  background: #212126;
  font: inherit;
}
.studio-entry-header img { width: 110px; border-radius: 8px; }
.studio-entry-header small, .studio-card small, .studio-season-list small { color: #b6b3bb; }
.studio-season-list, .studio-entry-actions, #studio-status-filters { display: grid; gap: 8px; }
.studio-season-list, .studio-entry-actions { margin-top: 16px; }
.studio-show-season { display: grid; gap: inherit; }
.studio-season-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding-right: 9px;
  background: #202023;
  border: 1px solid #ffffff20;
  border-radius: 8px;
}
.studio-entry-body .studio-season-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c7b6ec2e;
  border-radius: 0;
}
.studio-entry-body .studio-season-row:last-child { border-bottom: 0; }
.studio-entry-body .studio-season-row:has(> .studio-season-select[aria-expanded="true"]) {
  position: relative;
  border-bottom-color: transparent;
}
.studio-entry-body .studio-season-row:has(> .studio-season-select[aria-expanded="true"])::after {
  content: '';
  position: absolute;
  inset: auto 11px 0;
  height: 1px;
  background: #ffffff66;
  pointer-events: none;
}
.studio-add-season {
  min-height: 46px;
  padding: 8px 11px;
  border: 1px dashed #dfd1e344;
  border-radius: 8px;
  background: transparent;
  color: #aaa3b0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.studio-add-season:is(:hover:where(html:not([data-touch-input]) *), :focus-visible:where(html:not([data-touch-input]) *)) { background: #e8d6f210; color: #eee8f1; }
.studio-season-select {
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.studio-watch-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #3c4e62;
  border-radius: 999px;
  background: transparent;
  color: #c3d0dd;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.studio-watch-button:hover:where(html:not([data-touch-input]) *), .studio-watch-button[aria-pressed=true] {
  color: #e2edf8;
  background: #26394a;
  border-color: #819bb4;
}
.studio-watch-icon {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}
.studio-season-watch, .studio-season-watch:hover:where(html:not([data-touch-input]) *) {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}
.studio-season-watch .studio-watch-icon {
  box-sizing: border-box;
  width: 23px;
  height: 23px;
  background: #343437;
  border-color: #f5f5f6;
  color: #f5f5f6;
  font-size: 13px;
}
.studio-season-watch[aria-pressed=true] { background: transparent; }
.studio-season-watch[aria-pressed=true] .studio-watch-icon {
  background: #f5f5f6;
  border-color: #96969b;
  color: #151517;
}
.studio-entry-actions { justify-items: start; gap: 13px; }
.studio-priority { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.studio-priority > span { flex-basis: 100%; color: #bcc9d8; }
.studio-priority button[aria-pressed=true], .studio-rating-footer button:last-child {
  background: #3a5167;
  border-color: #8ca6be;
}
.studio-rating-dialog { width: min(430px, calc(100% - 24px)); padding: 18px; border: 1px solid #e8d9f238; border-radius: 15px; background: var(--playview-dialog-glass); backdrop-filter: blur(20px); color: #eef4fb; }
.studio-rating-dialog::backdrop { background: #0a0e15b8; }
.studio-rating-dialog.playview-confirmation {
  padding: 20px;
  border-radius: 20px;
  color: #f5edf6;
}
.playview-confirmation::backdrop { background: #0f0b1266; backdrop-filter: blur(4px); }
.playview-confirmation form > p { margin: 0; color: #cbbdce; overflow-wrap: anywhere; }
.playview-confirmation form > p:empty { display: none; }
.playview-confirmation .studio-rating-footer { margin-top: 8px; }
.playview-confirmation .studio-rating-footer button {
  padding: 8px 15px;
  border-radius: 999px;
  background: #ffffff13;
}
.playview-confirmation .studio-rating-footer button:hover:where(html:not([data-touch-input]) *) { background: #ffffff23; }
.playview-confirmation .studio-rating-footer button[type=submit] { background: #ede3ef; color: #231b29; }
.playview-confirmation .studio-rating-footer button[type=submit]:hover:where(html:not([data-touch-input]) *) { background: #fff; }
.studio-rating-footer { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.studio-score-dialog {
  width: min(492px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #ffffff26;
  border-radius: 20px;
  color: #f2f0f4;
  box-shadow: 0 20px 56px #0008;
}
.studio-score-dialog::backdrop { background: #08080a80; backdrop-filter: blur(4px); }
.studio-score-dialog h3 { margin: 0; font: 600 19px/1.3 Arial, sans-serif; }
.studio-score-dialog .studio-score-range { margin: 5px 0 15px; color: #bdb9c1; font-size: 13px; }
.studio-score-choices { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.studio-score-dialog :is(.studio-score-choices, .studio-rating-footer) > button {
  min-height: 40px;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  background: #ffffff08;
  color: #e0dde3;
  font: 14px/1.3 Arial, sans-serif;
}
.studio-score-dialog .studio-score-choices > button {
  padding: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.studio-score-dialog .studio-rating-footer { margin-top: 18px; }
.studio-score-dialog .studio-rating-footer > button { padding: 8px 14px; font-size: 13px; }
.studio-score-dialog .studio-rating-footer > button:last-child:enabled { border-color: #ffffff42; background: #ffffff16; }
.studio-score-dialog :is(.studio-score-choices, .studio-rating-footer) > button:enabled:hover:where(html:not([data-touch-input]) *) {
  border-color: #ffffff52;
  background: #ffffff1c;
}
.studio-score-dialog .studio-score-choices > button[aria-pressed=true] {
  border-color: #dedbe1;
  background: #dedbe1;
  color: #1b191e;
}
.studio-score-dialog .studio-score-choices > button[aria-pressed=true]:enabled:hover:where(html:not([data-touch-input]) *) {
  background: #f0edf3;
  color: #1b191e;
}
.studio-score-dialog button:focus-visible { outline: 2px solid #f0edf3; outline-offset: 2px; }
.studio-score-feedback:not(:empty) { margin-top: 12px; color: #f0bec2; font-size: 13px; }
@media (max-width: 520px) {
  .studio-score-choices { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .studio-score-dialog .studio-score-choices > button { min-height: 44px; }
}
.studio-collection-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.studio-collection-preview-actions { width: 100%; }
.studio-collection-offer-actions { margin-top: 8px; }
.studio-entry-back-face :is(.studio-collection-offer-actions, .studio-collection-preview-actions) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}
.studio-entry-back-face :is(.studio-collection-offer-actions, .studio-collection-preview-actions) > button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #e4d0ee60;
  border-radius: 999px;
  background: #e4c6f00b;
  color: #eee7f3;
  white-space: normal;
  text-align: center;
}
.studio-entry-back-face :is(.studio-collection-offer-actions, .studio-collection-preview-actions) > .studio-collection-add {
  background: #e1d3e5c4;
  border-color: transparent;
  color: #211927;
}
.studio-entry-back-face :is(.studio-collection-offer-actions, .studio-collection-preview-actions) > button:hover:where(html:not([data-touch-input]) *) {
  box-shadow: inset 0 0 0 40px #e4c6f018;
}
.studio-entry-actions[hidden] { display: none; }
.studio-entry-body .studio-collection-add,
.studio-collection-editor .studio-rating-footer button[type=submit] {
  color: #171619;
  background: #d9d1e1;
  border-color: transparent;
  cursor: pointer;
}
.studio-entry-body .studio-collection-part-add {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid #e4ddeb80;
  border-radius: 50%;
  background: transparent;
  color: #eee7f3;
}
.studio-collection-part-add::before {
  content: '';
  grid-area: 1 / 1;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' fill='none' stroke='black' stroke-width='1.45' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.studio-entry-body .studio-collection-part-add[aria-pressed=true] { background: #e1d3e5c4; border-color: transparent; color: #211927; }
.studio-collection-part-add[aria-pressed=true]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.2 3.4 3.4L13 4.4' fill='none' stroke='black' stroke-width='1.55' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.studio-entry-body .studio-collection-part-add:hover:enabled { border-color: #f0eaf5; }
.studio-rating-footer button:disabled { opacity: .45; cursor: default; }
#studio-status-filters { padding: 12px 0 8px; border-top: 1px solid var(--studio-line); }
#studio-status-filters[hidden] { display: none; }
.studio-filter-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
.studio-filter-heading .studio-filter-reset { color: var(--studio-muted); font-size: 11px; padding: 3px; }
.studio-filter-reset:disabled { opacity: .45; cursor: default; }
.studio-filter-group { min-width: 0; border: 0; border-bottom: 1px solid var(--studio-line); margin: 0; padding: 0; }
.studio-filter-group legend { padding: 10px 0 5px; font-size: 12px; color: var(--studio-muted); }
.studio-filter-choices { display: flex; flex-wrap: wrap; gap: 2px 4px; padding-bottom: 8px; }
.studio-filter-choices button {
  padding: 5px 8px;
  min-height: 30px;
  font-size: 12px;
  color: var(--studio-muted);
  border-radius: 7px;
}
.studio-filter-choices button:hover:where(html:not([data-touch-input]) *) { color: #f6effa; background: #ffffff0a; }
.studio-filter-choices button[aria-pressed=true] { color: #f6effa; background: #e7d3f218; }
.studio-entry-actions select {
  min-width: 0;
  padding: 7px;
  background: #202023;
  border: 1px solid #ffffff24;
  border-radius: 7px;
  color: inherit;
  font: inherit;
}
#studio-add-dialog {
  --studio-search-top: max(calc(var(--home-header-height, 78px) + 14px), 12svh);
  position: fixed;
  inset: var(--studio-search-top) 0 auto;
  width: min(700px, calc(100% - 32px));
  max-height: min(620px, calc(100dvh - var(--studio-search-top) - 16px));
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: #f5f0f6;
  background: transparent;
  overflow: visible;
}
#studio-add-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
}
#studio-add-dialog::backdrop { background: #0e0a1260; backdrop-filter: blur(5px); }
html:has(.studio-manual-entry[open]) #studio-add-dialog[open] { visibility: hidden; }
html:has(.studio-manual-entry[open]) #studio-add-dialog::backdrop { background: transparent; backdrop-filter: none; }
.studio-add-search, .studio-add-dropdown, .home-ranking-dialog.home-ranking-dialog-list {
  background: var(--playview-dialog-glass);
  backdrop-filter: blur(22px) saturate(.45);
  box-shadow: inset 0 1px #ffffff1a, 0 14px 42px #08060959;
}
.studio-add-header { display: grid; gap: 8px; min-width: 0; }
#studio-add-recent {
  --recent-per-row: 5;
  --recent-gaps: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  padding-inline: 4px;
}
#studio-add-recent[hidden] { display: none; }
#studio-add-recent button {
  box-sizing: border-box;
  min-width: 0;
  max-width: min(24ch, calc((100% - var(--recent-gaps)) / var(--recent-per-row)));
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  color: #c6bdca;
  background: #e8dced0e;
  backdrop-filter: blur(16px);
  font: 500 12px/1.3 system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
#studio-add-recent button:is(:hover:where(html:not([data-touch-input]) *), :focus-visible) {
  background: #e8dced1d;
  color: #e6dee8;
}
@media (max-width: 520px) {
  #studio-add-recent { --recent-per-row: 3; --recent-gaps: 12px; }
}
@media (pointer: coarse) {
  #studio-add-recent button { min-height: 34px; }
}
.studio-add-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(56px, 8vw, 68px);
  padding-inline: clamp(16px, 3.5vw, 23px);
  border-radius: 999px;
  color: #d5c9da;
}
.studio-add-search svg { flex-shrink: 0; }
#studio-add-query {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  padding: 0;
  border: 0;
  outline: 0;
  color: #f5f0f6;
  background: transparent;
  font: 500 clamp(17px, 3vw, 21px)/1.3 system-ui, sans-serif;
}
#studio-add-query::placeholder { color: #c5b8cc; }
#entry-studio:not([open]) ~ #studio-add-dialog .studio-add-search:has(#studio-add-query:placeholder-shown) {
  background: rgb(255 255 255 / .08);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px #ffffff24, inset 0 1px #ffffff1a, 0 12px 32px #0003;
  color: #e1e1e1;
}
#entry-studio:not([open]) ~ #studio-add-dialog #studio-add-query:placeholder-shown::placeholder {
  color: #e1e1e1;
}
.studio-add-dropdown {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px 9px;
  border-radius: 22px;
}
#studio-add-status { margin: 0; padding: 9px 10px; color: #d4c9d9; font-size: 13px; }
#studio-add-status:empty { display: none; }
:is(#studio-add-results, .home-rank-list) button {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 7px;
  border: 0;
  border-bottom: 1px solid #ffffff16;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
:is(#studio-add-results, .home-rank-list) button:is(:hover:where(html:not([data-touch-input]) *), :focus-visible:where(html:not([data-touch-input]) *))::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px 0;
  border-radius: 12px;
  background: #e7d3f215;
  pointer-events: none;
}
#studio-add-results button:last-child, .home-rank-list li:last-child button { border-bottom: 0; }
.studio-entry-body .studio-trailer-trigger {
  align-self: start;
  width: fit-content;
  border: 1px solid #ffffff26;
  background: #e7d3f210;
  color: #f6effa;
  cursor: pointer;
}
.studio-entry-body .studio-trailer-trigger:is(:hover:where(html:not([data-touch-input]) *), :focus-visible:where(html:not([data-touch-input]) *)) { background: #e7d3f225; }
:is(#studio-add-results, .home-rank-list) small { color: #c5beb5; }
:is(#studio-add-results, .home-rank-list) .studio-add-result {
  grid-template-columns: 34px minmax(0, 1fr) var(--studio-result-tail, );
  align-items: center;
  gap: 10px;
}
.studio-add-result-cover { width: 34px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 4px; background: #303034; }
.studio-add-result-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.studio-add-result-caption { display: grid; gap: 3px; overflow-wrap: anywhere; }
#studio-add-results .studio-add-result[data-saved] .studio-add-result-cover { filter: brightness(.58) saturate(.72); }
#studio-add-results .studio-add-result[data-saved] strong { color: #aaa0ad; }
#studio-add-results .studio-add-result[data-saved] small { color: #a69ca9; }
#entry-studio.entry-stage { overflow: hidden; }
.entry-stage .studio-detail {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(44px, 1fr) auto minmax(44px, 1fr);
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #0e0a1260;
  backdrop-filter: blur(5px);
}
.collection-overlay.entry-stage .studio-detail { position: absolute; }
.entry-stage #studio-detail, .entry-stage #studio-feedback {
  width: min(100%, 920px);
  box-sizing: border-box;
  justify-self: center;
}
.entry-stage .studio-detail-heading { display: none; }
.entry-stage #studio-feedback { grid-row: 3; align-self: start; }
.studio-entry-controls { position: absolute; top: 12px; right: 12px; display: grid; justify-items: center; gap: 7px; z-index: 2; }
.dialog-close, #studio-close-detail, .studio-entry-menu > summary {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #eee8f0;
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
}
:is(.dialog-close, #studio-close-detail, .studio-entry-menu > summary):hover:where(html:not([data-touch-input]) *) { background: #ffffff16; }
:is(.dialog-close, #studio-close-detail, .studio-entry-menu > summary):focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.entry-stage #studio-save:disabled { display: none; }
.entry-stage #studio-detail {
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(150px, .74fr) minmax(0, 1.26fr);
  align-items: start;
  gap: clamp(10px, 1.8vw, 20px);
}
.entry-stage #studio-detail:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.studio-entry-body {
  position: relative;
  min-width: 0;
  border-radius: 16px;
  background: #110c17cc;
  backdrop-filter: blur(22px) grayscale(1);
  border: 0;
  padding: clamp(12px, 2.5vw, 22px);
  margin-top: clamp(96px, 25dvh, 188px);
  max-height: max(180px, 58dvh);
  overflow: auto;
  overflow-wrap: anywhere;
}
.studio-entry-body .studio-entry-header { padding-right: 45px; }
.entry-stage #studio-detail > .studio-entry-body:only-child { margin-top: 0; }
.studio-entry-poster { display: grid; min-width: 0; gap: 8px; }
.playview-cover-frame { position: relative; overflow: hidden; width: 100%; border-radius: 7px; }
.playview-cover-frame:not([data-cover-state=ready]) img { visibility: hidden; }
.playview-cover-frame[data-cover-preview=ready] img.playview-cover-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: visible;
}
.playview-cover-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(150deg, #242426, #171719 68%);
  color: #aaa9ac;
  text-align: center;
  font: 11px/1.3 system-ui, sans-serif;
}
.playview-cover-frame[data-cover-state=loading] .playview-cover-placeholder {
  color: transparent;
}
.playview-cover-frame[data-cover-state=loading] .playview-cover-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, #ede9df0a 42%, #ede9df23 52%, #ede9df0a 62%, transparent 84%);
  transform: translateX(-110%);
  animation: playview-cover-light 1.8s ease-in-out .2s infinite;
}
.playview-cover-frame[data-cover-state=ready] img { animation: playview-cover-reveal .24s ease-out; }
.playview-cover-frame[data-cover-preview=ready][data-cover-state=ready] img { animation: none; }
.studio-entry-poster .playview-cover-frame[data-cover-state=ready] img { animation: none; }
@keyframes playview-cover-light { to { transform: translateX(110%); } }
@keyframes playview-cover-reveal { from { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .playview-cover-frame[data-cover-state=loading] .playview-cover-placeholder { color: #aaa9ac; }
  .playview-cover-frame[data-cover-state=loading] .playview-cover-placeholder::after,
  .playview-cover-frame[data-cover-state=ready] img { animation: none; }
}
#studio-detail .studio-entry-poster img { width: 100%; aspect-ratio: 2 / 3; max-height: 52vh; object-fit: contain; object-position: right top; margin: 0; }
#studio-detail .studio-entry-poster[data-mode=games] .playview-cover-frame { border-radius: 11px; }
#studio-detail .studio-entry-poster[data-mode=games] img { object-fit: cover; object-position: center; }
@media (min-width: 651px) {
  .entry-stage #studio-detail:has(> .studio-entry-poster) {
    --poster-height: min(58dvh, 53vw, 490px);
    --panel-offset: clamp(56px, 12dvh, 120px);
    --bottom-offset: clamp(30px, 6dvh, 56px);
    grid-template-columns: calc(var(--poster-height) * 2 / 3) minmax(0, 1fr);
  }
  .entry-stage #studio-detail > .studio-entry-poster {
    margin-bottom: var(--bottom-offset);
  }
  .entry-stage #studio-detail > .studio-entry-poster .playview-cover-frame {
    height: var(--poster-height);
  }
  .entry-stage #studio-detail > .studio-entry-poster img {
    height: 100%;
    max-height: none;
  }
  .entry-stage #studio-detail:has(> .studio-entry-poster) > .studio-entry-body {
    align-self: end;
    margin-top: var(--panel-offset);
  }
}
/* One compact card: poster on desktop, readable poster-backed details on touch. */
.entry-stage #studio-detail:has(.studio-entry-flipper) {
  display: block;
  width: min(470px, calc((100dvh - 88px) * .62963), 100%);
  padding: 0;
}
.studio-entry-flipper {
  --entry-flip-duration: .58s;
  position: relative;
  width: 100%;
  height: min(746px, calc(100dvh - 88px));
  min-height: 200px;
}
.studio-entry-flipper > .studio-entry-poster,
.studio-entry-back-face {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 19px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #110c17;
  transition: transform var(--entry-flip-duration) cubic-bezier(.27,.67,.28,1), visibility 0s;
}
/* Retire the outgoing face after its turn, even if a descendant has its own paint layer. */
.studio-entry-flipper > :is(.studio-entry-poster, .studio-entry-back-face)[aria-hidden=true] {
  visibility: hidden;
  transition-delay: 0s, var(--entry-flip-duration);
}
/* Rotate each face around a fixed vertical axis. The visible face settles without a transform. */
.studio-entry-flipper.is-revealed > .studio-entry-poster { transform: rotateY(180deg); }
.studio-entry-flipper.is-revealed > .studio-entry-back-face { transform: none; }
.studio-entry-back-face {
  --entry-card-background: linear-gradient(180deg,#0d0913c7,#0d0913de 55%,#0d0913f0) center / cover,
    var(--entry-card-art, none) center / cover #110c17;
  transform: rotateY(-180deg);
  contain: paint;
  background: var(--entry-card-background);
}
#studio-detail .studio-entry-flipper .studio-entry-poster .playview-cover-frame {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
}
#studio-detail .studio-entry-flipper .studio-entry-poster img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 0;
}
.studio-entry-flipper > .studio-entry-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,#0d081b24,transparent 35%,#100b1800 52%,#100b18db 82%,#110c17);
}
.studio-entry-cover-caption { position: absolute; z-index: 1; inset: auto 22px 24px; }
#studio-detail .studio-entry-cover-caption h3 { font-size: 23px; line-height: 1.2; margin: 7px 0 9px; }
.studio-entry-cover-caption p { margin: 0; font-size: 12px; line-height: 1.5; color: #d1cbd7; }
.studio-entry-back-face > .studio-entry-body {
  box-sizing: border-box; flex: 1 1 auto; min-height: 0; width: 100%; height: auto; max-height: none;
  margin: 0; padding: 68px 20px 20px; overflow: auto;
  border: 0; border-radius: 0; background: transparent; backdrop-filter: none;
  font: 13px/1.55 Arial,sans-serif; color: #e1dce5;
  scrollbar-width: thin; scrollbar-color: #8d829351 transparent;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.studio-entry-back-face .studio-entry-header { padding-right: 0; }
#studio-detail .studio-entry-back-face .studio-entry-header h3 { font-size: 19px; line-height: 1.2; margin: 0 0 7px; }
.studio-entry-back-face .studio-entry-header p { font-size: 12px; color: #d0cad5; }
.studio-entry-back-face .studio-entry-body > p { margin: 13px 0 0; font-size: 13px; line-height: 1.55; }
.studio-entry-back-face .studio-entry-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #eee8ef;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 18px;
  text-transform: uppercase;
}
.studio-entry-type svg { stroke-width: 2.2; }
.studio-entry-context :is(.studio-entry-type, .studio-entry-collection-label) svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.studio-entry-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-height: 20px;
}
.studio-entry-header .studio-entry-context { margin-bottom: 9px; }
.studio-entry-collection-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e0e8;
  font: 500 13px/18px system-ui, sans-serif;
  white-space: nowrap;
}
.studio-entry-collection-label:not(:first-child) {
  padding-inline-start: 10px;
  border-inline-start: 1px solid #e5e0e838;
}
#studio-detail .studio-entry-back-face .studio-entry-header:has(.studio-entry-type) h3 {
  font-size: clamp(22px, 3.8vw, 28px);
  line-height: 1.12;
  letter-spacing: -.033em;
}
.studio-entry-back-face .studio-entry-body:has(.studio-entry-type) > .studio-entry-genres {
  margin-top: 15px;
  padding-top: 8px;
  border-top: 1px solid #eee8f02b;
  color: #d5cbd9;
  font-size: 12px;
}
.studio-entry-back-face .studio-entry-body:has(.studio-entry-type) > .studio-entry-description {
  color: #e8e0e9;
  font-size: 14px;
}
.studio-entry-back-face .studio-entry-controls { display: flex; align-items: center; justify-content: flex-end; top: 10px; left: 10px; right: 10px; }
.studio-entry-back-face :is(#studio-close-detail, .studio-entry-menu > summary) {
  position: relative; box-sizing: border-box; display: grid; place-items: center; width: 32px; height: 32px;
  padding: 0; border: 1px solid #eee8f030; border-radius: 50%;
  background: #e7d3f21a; color: #eee8f0; font-size: 0;
}
.studio-entry-back-face #studio-close-detail { order: 1; margin-left: auto; }
.studio-entry-back-face #studio-close-detail::before,
.studio-entry-back-face #studio-close-detail::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: currentColor;
  transform: translate(-50%,-50%) rotate(45deg);
}
.studio-entry-back-face #studio-close-detail::after { transform: translate(-50%,-50%) rotate(-45deg); }
.studio-entry-back-face .studio-entry-menu > summary::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 16px; height: 4px;
  background: radial-gradient(circle 1.5px at 2px 2px,currentColor 98%,transparent) 0 0 / 6px 4px repeat-x;
}
.studio-entry-back-face :is(#studio-close-detail, .studio-entry-menu > summary):hover:where(html:not([data-touch-input]) *) { background: #e7d3f230; }
.studio-entry-back-face .studio-collection-back {
  flex: none; display: inline-flex; align-items: center;
  order: -1; height: 32px; margin: 0 auto 0 0; padding: 0 12px;
  border: 1px solid #eee8f030; border-radius: 999px;
  background: #e7d3f21a; color: #eee8f0;
  font: 13px/1 Arial,sans-serif; text-decoration: none;
}
.studio-entry-back-face .studio-collection-back:hover:where(html:not([data-touch-input]) *) { background: #e7d3f230; text-decoration: none; }
.studio-entry-back-face .studio-entry-menu { position: relative; order: -2; }
.studio-entry-back-face .studio-entry-menu-layer { left: 0; right: auto; top: calc(100% + 8px); }
.studio-entry-back-face .studio-entry-menu-surface {
  border: 0; border-radius: 15px;
  box-shadow: inset 0 1px #ffffff1a, 0 14px 42px #08060959;
}
.studio-entry-back-face .studio-entry-menu-surface > button,
.studio-entry-back-face .studio-priority-menu > button { border-radius: 10px; }
.studio-entry-back-face :is(.studio-entry-menu-surface, .studio-priority-menu) > button:hover:where(html:not([data-touch-input]) *),
.studio-entry-back-face .studio-priority-menu > button[aria-expanded=true] { background: #ffffff18; }
.studio-entry-primary-actions {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0; padding: 14px 20px 18px;
  background: linear-gradient(180deg,#110c1700,#110c1780);
}
.studio-entry-primary-actions:not(:has(button:not([hidden]))),
.studio-entry-primary-actions button[hidden] { display: none; }
:is(.studio-entry-menu, .studio-add-priority) .studio-priority button {
  background: var(--playview-dialog-glass); border-color: #ffffff1a;
  backdrop-filter: blur(18px) saturate(.45);
  box-shadow: inset 0 1px #ffffff12, 0 5px 16px #08060926;
}
:is(.studio-entry-menu, .studio-add-priority) .studio-priority button:is(:hover, :focus-visible, [aria-pressed=true]) {
  border-color: #ffffff24;
  box-shadow: inset 0 0 0 40px #ffffff18, 0 5px 16px #08060926;
}
.entry-stage .studio-entry-primary-actions > #studio-save:not([hidden]),
.studio-entry-primary-actions > .studio-trailer-trigger {
  width: auto; min-height: 33px; margin: 0; padding: 7px 12px; border-radius: 999px; font: 12px/1.3 Arial,sans-serif;
}
.entry-stage .studio-entry-primary-actions > :is(#studio-save, .studio-trailer-trigger) {
  background: var(--playview-card-menu-glass); color: #eee8f0; border: 1px solid #eee8f030;
  box-shadow: inset 0 1px #ffffff12, 0 5px 16px #08060926;
}
.entry-stage .studio-entry-primary-actions > :is(#studio-save, .studio-trailer-trigger):is(:hover:where(html:not([data-touch-input]) *), :focus-visible, [aria-expanded=true]) {
  background: linear-gradient(#ffffff18,#ffffff18), var(--playview-card-menu-glass);
  border-color: #eee8f04a;
}
#studio-detail .studio-entry-back-face .studio-season-list > h3 { font-size: 14px; margin: 0 0 10px; }
.studio-entry-back-face .studio-season-row { min-height: 54px; padding: 0; gap: 10px; }
.studio-entry-back-face .studio-season-select { padding: 10px 0; font-size: 13px; }
.studio-entry-back-face .studio-season-list small { font-size: 11px; }
.studio-entry-back-face > .studio-entry-body:has(.studio-show-season) { padding-top: 0; }
.studio-entry-back-face > .studio-entry-body:has(.studio-show-season) > .studio-entry-header { padding-top: 68px; }
.studio-entry-body .studio-show-season[data-season-sticky] > .studio-season-row {
  position: sticky;
  top: 0;
  z-index: 1;
}
.studio-season-artwork { display: none; }
.studio-show-season[data-season-sticky] > .studio-season-row > .studio-season-artwork {
  display: block;
  position: absolute;
  inset: 0 -20px;
  clip-path: inset(0);
  pointer-events: none;
  z-index: -1;
}
/* Paint the same card artwork inside the sticky row, aligned to the card itself. */
.studio-season-artwork::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--entry-card-background);
}
@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .entry-stage #studio-detail:has(.studio-entry-flipper) { width: min(380px, 100%); }
  .studio-entry-flipper { height: min(680px, calc(100dvh - 68px)); }
  .studio-entry-flipper > .studio-entry-poster { display: none; }
  .studio-entry-back-face { transform: none; transition: none; }
  .studio-entry-back-face > .studio-entry-body { padding: 66px 20px 20px; font-size: 13px; }
  .studio-entry-back-face > .studio-entry-body:has(.studio-show-season) > .studio-entry-header { padding-top: 66px; }
  .entry-stage .studio-detail:has(.studio-entry-flipper) { grid-template-rows: minmax(14px,1fr) auto minmax(14px,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .studio-entry-flipper > .studio-entry-poster, .studio-entry-back-face { transition: none; }
}
@media (max-width: 1000px) {
  #entry-studio.has-entry:not(.entry-stage) .studio-layout { grid-template-columns: 180px minmax(0, 1fr) minmax(290px, 38vw); }
  .studio-layout { grid-template-columns: 180px minmax(0, 1fr); }
  .studio-nav {
    grid-column: 1 / -1;
    height: auto;
    background: var(--home-background, #151119) fixed;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 3px 3px 9px;
    border-right: 0;
    border-bottom: 1px solid var(--studio-line);
  }
  .studio-nav .studio-home { margin: 0 8px 0 0; }
  .collection-overlay .studio-nav { height: auto; }
  .studio-filters { top: calc(8px + var(--studio-nav-height, 0px)); }
  .collection-overlay .studio-filters { max-height: calc(var(--collection-content-height) - var(--studio-nav-height, 0px) - 8px); }
  .studio-label { display: none; }
  .studio-nav-groups { flex-basis: 100%; margin-top: 3px; padding-top: 6px; }
  #studio-group-choices { display: flex; flex-wrap: wrap; margin-top: 0; }
}
@media (max-width: 650px) {
  .collection-overlay .studio-collection-scroll { scrollbar-gutter: auto; }
  .collection-overlay .studio-layout { align-content: start; }
  .collection-overlay .studio-layout > .studio-filters { display: none; }
  .collection-overlay .studio-nav {
    position: static;
    justify-content: center;
    background: transparent;
  }
  .collection-overlay .studio-nav :is(.studio-home, .studio-nav-groups) { display: none; }
  .collection-overlay .studio-nav > button { min-height: 40px; padding: 7px 10px; }
  .collection-overlay .studio-nav > button:is([aria-pressed=true], [aria-expanded=true]) {
    background: #ffffff16;
    box-shadow: inset 0 0 0 1px #ffffff25;
  }
  .collection-overlay #studio-library-search {
    display: grid;
    place-items: center;
    width: 40px;
  }
  .collection-overlay .studio-search { padding-block: 5px 9px; }
  .collection-overlay:not(:has(#studio-library-search[aria-expanded=true])) #studio-search-field { display: none; }
  .collection-overlay #studio-search-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .collection-overlay .studio-search-input { display: flex; gap: 6px; }
  .collection-overlay #studio-query { font-size: 16px; }
  .collection-overlay #studio-query::-webkit-search-cancel-button { display: none; }
  .collection-overlay #studio-close-search {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    min-height: 40px;
    border: 1px solid #ffffff20;
    border-radius: 8px;
    background: #ffffff08;
    padding: 0;
    color: inherit;
  }
  .collection-overlay .studio-collection-top {
    grid-template-columns: repeat(2, 38px);
    justify-content: center;
    gap: 8px;
  }
  .collection-overlay #studio-open-filters {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e8d9f24d;
    border-radius: 50%;
    background: #29222f;
    color: inherit;
    font: 22px/1 system-ui, sans-serif;
    pointer-events: auto;
  }
  #studio-mobile-filters {
    box-sizing: border-box;
    width: min(360px, calc(100% - 32px));
    max-height: min(580px, calc(100svh - 32px));
    padding: 16px;
    border: 1px solid #ffffff22;
    border-radius: 20px;
    background: var(--playview-dialog-glass);
    backdrop-filter: blur(24px) saturate(.45);
    box-shadow: 0 22px 68px #0008;
    color: #f2f2f3;
    --studio-line: #ffffff18;
    --studio-muted: #b5b5ba;
  }
  #studio-mobile-filters::backdrop { background: #08080970; backdrop-filter: blur(5px); }
  #studio-mobile-filters[open] { display: flex; flex-direction: column; overflow: hidden; }
  .studio-mobile-filter-content { overflow: auto; overscroll-behavior: contain; }
  #studio-mobile-filters .studio-filters { position: static; max-height: none; padding-inline: 0; }
  #studio-mobile-filters #studio-add-record { display: none; }
  .studio-mobile-filter-groups legend { padding-top: 2px; color: #eaeaec; font-weight: 600; }
  #studio-mobile-group-choices { display: grid; gap: 4px; padding-bottom: 10px; }
  #studio-mobile-group-choices button {
    min-height: 36px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--studio-muted);
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
  }
  #studio-mobile-filters :is(#studio-mobile-group-choices, #studio-categories, .studio-filter-choices) > button[aria-pressed=true] {
    background: #ffffff19;
    color: #f2f2f3;
  }
  #studio-mobile-filters #studio-categories button[aria-pressed=true]::before { background: #e4e4e6; }
  .studio-mobile-filter-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; }
  .studio-mobile-filter-actions button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #ffffff14;
    color: inherit;
    font: inherit;
  }
  .studio-mobile-filter-actions [data-filter-apply] { background: #e4e4e6; color: #19191b; }
  .collection-overlay .studio-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .collection-overlay .studio-card { border: 0; border-radius: 0; background: transparent; }
  .collection-overlay .studio-card .playview-cover-frame { border-radius: 13px; aspect-ratio: 3 / 4; }
  .collection-overlay .studio-card img { height: 100%; aspect-ratio: auto; }
  .collection-overlay .studio-card-caption { gap: 2px; padding: 6px 0 0; }
  .collection-overlay .studio-card-title { font-size: 14px; }
  .collection-overlay .studio-card small { font-size: 11px; }
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  #entry-studio.has-entry:not(.entry-stage) .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .has-entry .studio-detail { grid-row: 2; }
  #studio-categories { display: flex; flex-wrap: wrap; }
  .studio-detail { min-height: 150px; }
  .entry-stage .studio-detail:has(#studio-detail > .studio-entry-poster) {
    grid-template-rows: 24px auto minmax(24px, 1fr);
  }
  .entry-stage #studio-detail { grid-template-columns: minmax(0, 1fr); }
  .studio-entry-poster { width: min(65%, 235px); justify-self: center; }
  #studio-detail .studio-entry-poster img { object-position: center top; }
  .studio-entry-body { margin-top: 0; max-height: none; overflow: visible; }
}

/* Completion is a readable choice, separate from the row's title and dates. */
.studio-entry-back-face .studio-season-row:has(> .studio-watch-pair) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 12px 0 15px;
}
.studio-entry-back-face .studio-season-row:has(> .studio-watch-pair) > .studio-season-select { padding: 0; }
.studio-entry-back-face .studio-season-row:has(> .studio-watch-pair) > strong { padding: 0; }
.studio-entry-body .studio-watch-pair {
  display: flex; flex-wrap: wrap; align-items: center; justify-self: stretch;
  width: 100%; min-width: 0; gap: 7px;
}
.studio-entry-body .studio-watch-pair > :is(.studio-watch-button, .studio-drop-button) {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 6px;
  width: auto; height: auto; min-height: 36px; margin: 0; padding: 8px 11px;
  border: 1px solid #ffffff25; border-radius: 10px;
  background: #ffffff08; color: #d0cdd3;
  font: 13px/1.35 Arial, sans-serif; white-space: nowrap; cursor: pointer;
}
.studio-entry-body .studio-watch-pair > button > svg { display: block; flex: none; width: 16px; height: 16px; }
.studio-entry-body .studio-watch-pair > button:hover:where(html:not([data-touch-input]) *) {
  color: #f2f0f4; border-color: #ffffff4a; background: #ffffff13;
}
.studio-entry-body .studio-watch-pair > .studio-watch-button[aria-pressed=true] {
  color: #1b191e; background: #e2dfe5; border-color: #e2dfe5;
}
.studio-entry-body .studio-watch-pair > .studio-drop-button[aria-pressed=true] {
  color: #f0bec2; background: #84414b40; border-color: #d5848c80;
}
.studio-entry-body .studio-watch-pair > .studio-rate-button { margin-left: auto; color: #ccc7bc; background: transparent; }
.studio-entry-body .studio-watch-pair > .studio-rate-button[hidden] { display: none; }
.studio-entry-body .studio-watch-pair > button:disabled { opacity: .5; cursor: default; }
@media (max-width: 760px), (pointer: coarse) {
  .studio-entry-body .studio-watch-pair > :is(.studio-watch-button, .studio-drop-button) { min-height: 40px; }
  .studio-entry-body .studio-watch-pair > .studio-rate-button {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #ffffff08;
    color: #d0cdd3;
  }
  .studio-rate-button .studio-rate-icon { font-size: 19px; line-height: 1; }
  .studio-rate-button .studio-rate-label { display: none; }
}
