:root {
  color-scheme: dark;
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --s: clamp(0.85px, min(0.11765vw, 0.18868vh), 2px);
  --cyan: #39dafa;
  --white: #f6f6f8;
  --muted: #ffffffa6;
  --glass: rgba(38, 36, 41, 0.65);
  --shade: rgba(0, 0, 0, 0.43);
  --foot: calc(68 * var(--s));
  --pad: calc(17 * var(--s));
  font-size: clamp(14px, 1.12vw, 20px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #090a0c;
  color: var(--white);
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
button,
a,
input,
select {
  font: inherit;
}
button,
a {
  color: inherit;
  cursor: pointer;
}
a {
  text-decoration: none;
}
button {
  background: #ffffff1a;
  border: 1px solid #ffffff20;
  border-radius: 0.68em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.54em 0.8em;
  font-weight: 600;
}
button:disabled {
  opacity: 0.37;
  cursor: default;
}
button:hover:not(:disabled),
a:hover {
  background-color: #ffffff25;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid white;
  outline-offset: 1px;
}
button.accent,
.selected {
  background: #2f8393aa;
}
.symbol {
  width: 1.1em;
  height: 1.1em;
  display: inline-flex;
  vertical-align: middle;
  flex: none;
}
.symbol svg {
  width: 100%;
  height: 100%;
}
[hidden] {
  display: none !important;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
button,
small,
h1,
h2,
h3,
strong,
span {
  overflow-wrap: anywhere;
}
.skip {
  position: fixed;
  left: -10000px;
  z-index: 10;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #111;
  padding: 0.6rem;
}
.glass,
.pill,
#dock {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border: 1px solid #ffffff0c;
  border-radius: 2em;
  padding: 0.48em 0.9em;
  white-space: nowrap;
}
#wall,
#shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
#wall {
  background: var(--wall-image, url(./assets/direct.jpg)) center/cover no-repeat;
  background-color: #11151a;
}
#wall img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#shade {
  z-index: -1;
  background: linear-gradient(0deg, #000a, transparent 55%), var(--shade);
}
body[data-space="direct"] {
  --wall-image: url(./assets/direct.jpg);
}
body[data-space="films"] {
  --wall-image: url(./assets/cinema.jpg);
}
body[data-space="series"] {
  --wall-image: url(./assets/series.jpg);
}
body[data-space="recherche"] {
  --wall-image: url(./assets/recherche-1.jpg);
}
body[data-space="reglages"] {
  --wall-image: url(./assets/reglages-3.jpg);
}
body[data-space="favoris"] {
  --wall-image: url(./assets/direct.jpg);
}
body[data-space="plain"] {
  --wall-image: linear-gradient(130deg, #182532, #101018);
}
body[data-space="direct-alt"] {
  --wall-image: url(./assets/tv-2.jpg);
}
body[data-space="films-alt"] {
  --wall-image: url(./assets/films-2.jpg);
}
body[data-space="series-alt"] {
  --wall-image: url(./assets/series-3.jpg);
}
body[data-space="recherche-alt"],
body[data-space="reglages-alt"] {
  --wall-image: url(./assets/recherche-2.jpg);
}
body.room-home #wall {
  filter: blur(calc(4 * var(--s)));
  transform: scale(1.02);
}
body.room-home #shade {
  background: linear-gradient(0deg, #000a, transparent 45%), #0005;
}
#main {
  height: 100%;
  outline: 0;
}
#home-bar {
  position: fixed;
  left: 3.2%;
  right: 3.2%;
  top: 3.4%;
  display: flex;
  justify-content: space-between;
  align-items: start;
  font-size: calc(9.5 * var(--s));
}
#home-bar .symbol {
  color: var(--cyan);
}
#home-bar strong {
  font-size: 0.95em;
  white-space: nowrap;
}
.home-name {
  position: absolute;
  top: 31.3%;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
  pointer-events: none;
}
.home-name h1 {
  font-size: calc(35 * var(--s));
  letter-spacing: -0.035em;
}
.home-name p {
  font-size: calc(11.5 * var(--s));
  color: #fffd;
  margin: 0.45em 0;
}
.welcome {
  position: absolute;
  inset: 0 0 var(--foot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: calc(15 * var(--s));
  padding: 20px;
}
.welcome > .symbol {
  font-size: calc(48 * var(--s));
  color: var(--cyan);
}
.welcome h1 {
  font-size: calc(24 * var(--s));
  letter-spacing: -0.04em;
}
.welcome p {
  color: #ffffffc7;
  font-size: calc(13 * var(--s));
}
.welcome-types {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: calc(10 * var(--s));
  color: var(--muted);
}
.welcome-types .symbol:not(:first-child) {
  margin-left: 0.65em;
}
.welcome-load {
  font-size: calc(14 * var(--s));
  padding: 0.72em 1.3em;
  border: 2px solid #d6f9ff;
}
.room-home .welcome {
  display: none;
}
#desk-bar {
  position: fixed;
  inset: auto 0 0;
  height: var(--foot);
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: calc(13 * var(--s));
  pointer-events: none;
}
#desk-bar > * {
  pointer-events: auto;
}
#back-tools,
#zones {
  position: absolute;
  bottom: calc(31 * var(--s));
  font-size: calc(9.5 * var(--s));
}
#back-tools {
  left: 3.2%;
  display: flex;
  gap: 0.5em;
}
#zones {
  right: 3.2%;
  bottom: calc(29 * var(--s));
  color: #ddd9;
}
#zones .symbol {
  width: 1.8em;
}
#dock {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: calc(4 * var(--s));
  padding: calc(6 * var(--s)) calc(10 * var(--s));
  border-radius: calc(17 * var(--s));
  max-width: 88vw;
  min-height: calc(55 * var(--s));
  box-shadow: 0 4px 24px #0003;
  border: 1px solid #ffffff05;
}
.dock-item {
  --tile: calc(31 * var(--s));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: calc(4 * var(--s));
  width: calc(43 * var(--s));
  position: relative;
  flex: 0 1 auto;
  background: none !important;
  border-radius: 8px;
  outline-offset: 2px;
}
.dock-label {
  font-size: calc(8.2 * var(--s));
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}
.dock-tile {
  width: var(--tile);
  aspect-ratio: 1;
  border-radius: 29%;
  display: grid;
  place-items: center;
  background: linear-gradient(165deg, var(--bright), var(--dark));
  box-shadow:
    inset 0 0 0 1px #ffffff30,
    inset 0 -4px 10px #0003;
  transform-origin: bottom center;
}
.dock-tile .symbol {
  width: 54%;
  height: 54%;
  filter: drop-shadow(0 1px 1px #0005);
}
[data-room="direct"] {
  --bright: #308ba4;
  --dark: #183c4c;
  --ink: #55dbfc;
}
[data-room="films"] {
  --bright: #9c622e;
  --dark: #503017;
  --ink: #fcab48;
}
[data-room="series"] {
  --bright: #922a9b;
  --dark: #491750;
  --ink: #e874e8;
}
[data-room="recherche"] {
  --bright: #378e79;
  --dark: #1a4843;
  --ink: #64d6b0;
}
[data-room="favoris"] {
  --bright: #ae9222;
  --dark: #655309;
  --ink: #ffcc28;
}
[data-room="reglages"] {
  --bright: #767d91;
  --dark: #353a49;
  --ink: #c8d6ef;
}
.dock-item[aria-current] {
  color: var(--ink);
}
.dock-item .dock-tile {
  color: white;
}
.dock-item[aria-current]:after {
  content: "";
  background: var(--ink);
  width: 7px;
  height: 2px;
  border-radius: 3px;
  position: absolute;
  bottom: calc(-5 * var(--s));
}
.dock-item:hover .dock-tile,
.dock-item:focus-visible .dock-tile {
  transform: scale(1.14);
  outline: 2px solid white;
}
.room-home #dock {
  min-height: calc(101 * var(--s));
  gap: calc(8 * var(--s));
  padding: calc(10 * var(--s)) calc(18 * var(--s)) calc(17 * var(--s));
  border-radius: calc(25 * var(--s));
}
.room-home .dock-item {
  width: calc(71 * var(--s));
  --tile: calc(52 * var(--s));
  gap: calc(6 * var(--s));
}
.room-home .dock-item.magnified {
  width: calc(109 * var(--s));
  --tile: calc(82 * var(--s));
  color: white;
}
.room-home .dock-item.magnified .dock-tile {
  outline: 2px solid white;
}
.room-home .dock-item:has(+ .magnified),
.room-home .magnified + .dock-item {
  --tile: calc(66 * var(--s));
  width: calc(87 * var(--s));
}
.room-home .dock-label {
  font-size: calc(9 * var(--s));
}
.room-home .magnified .dock-label {
  font-size: calc(13 * var(--s));
}
.room-home .dock-item:after {
  display: none;
}
.room-home #dock {
  background: #29262aba;
}
.dock-shortcut {
  font-size: 0.65rem;
  max-width: 7em;
}
.room-home .dock-item:hover .dock-tile,
.room-home .dock-item:focus-visible .dock-tile {
  transform: none;
}
.workbench {
  position: absolute;
  inset: calc(13 * var(--s)) var(--pad) calc(80 * var(--s));
  display: grid;
  grid-template-columns: calc(151 * var(--s)) minmax(0, 1fr);
  gap: calc(6 * var(--s));
}
.sidebar {
  border-radius: calc(12 * var(--s));
  padding: calc(6 * var(--s));
  overflow: auto;
  scrollbar-width: thin;
  font-size: calc(9.6 * var(--s));
}
.eyebrow {
  font-size: 0.83em;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0.8em 0 0.5em;
}
.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.35em;
}
.side-title h2 {
  margin: 0.55em 0;
}
.side-title button,
.catalog-top > button,
.pages button {
  padding: 0.28em 0.45em;
  border-radius: 2em;
}
.side-row,
.sidebar > button,
.sidebar > div > button {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.62em 0.55em;
  min-height: 2.2em;
}
.side-row.selected,
.sidebar button.selected {
  background: #57b5c63b;
}
.side-row .symbol,
.sidebar > button .symbol {
  color: #fffa;
  font-size: 0.88em;
}
.side-row.selected .symbol {
  color: var(--cyan);
}
.side-row small {
  margin-left: auto;
}
.side-row.selected .symbol:last-child:not(:first-child) {
  margin-left: auto;
}
.side-row small + .symbol {
  margin-left: 0 !important;
}
.sidebar input,
.catalog-search input {
  height: 2.35em;
  border: 0;
  border-radius: 0.7em;
  background: #0004;
  padding: 0.4em 0.7em;
}
.sidebar input {
  margin: 0.35em 0;
  width: 100%;
  font-size: 0.93em;
}
.sidebar .region {
  background: #ffffff16;
  width: auto;
  margin: 0.2em 0;
}
.sidebar h3 {
  margin: 0.95em 0.35em 0.35em;
}
.catalog-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.catalog-top {
  display: flex;
  gap: 0.5em;
  align-items: flex-start;
  font-size: calc(10 * var(--s));
  margin: 0 0 calc(4 * var(--s));
  min-height: calc(25 * var(--s));
}
.title-block {
  min-width: calc(142 * var(--s));
  max-width: 35%;
}
.title-block h1 {
  font-size: 1.35em;
  letter-spacing: -0.025em;
}
.title-block small,
.settings-panel small,
.media-item small,
.season-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.83em;
}
.catalog-search {
  display: flex;
  align-items: center;
  gap: 0.45em;
  width: min(46%, calc(265 * var(--s)));
  border-radius: 2em;
  background: #ffffff19;
  padding: 0 0.65em;
}
.catalog-search input {
  background: transparent;
  color: white;
  outline: 0;
  width: 100%;
  padding-left: 0;
}
.catalog-search .symbol {
  color: #fffa;
}
.pages {
  margin-left: auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.3em;
}
.catalog-banner {
  height: calc(119 * var(--s));
  flex: none;
  max-width: 70%;
  padding-top: 0.25em;
  overflow: auto;
  scrollbar-width: thin;
  font-size: calc(10.4 * var(--s));
}
.catalog-banner .eyebrow {
  color: var(--cyan);
  margin: 0 0 0.5em;
}
.catalog-banner h2 {
  font-size: 1.85em;
  margin: 0 0 0.2em;
  letter-spacing: -0.03em;
}
.catalog-banner p {
  margin: 0.2em 0;
}
.catalog-banner .synopsis {
  line-height: 1.2;
}
.grid-stage {
  border-radius: calc(13 * var(--s));
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: calc(3 * var(--s));
}
.media-grid,
.season-grid {
  display: grid;
  align-content: start;
  gap: calc(3 * var(--s));
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scroll-padding: 0.3em;
}
.media-grid.channels {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.media-grid.posters,
.season-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.media-item,
.season-grid > button {
  display: block;
  min-width: 0;
  text-align: left;
  padding: 0;
  background: none;
  border: 0;
  line-height: 1.1;
  border-radius: calc(6 * var(--s));
  position: relative;
  font-size: calc(8.2 * var(--s));
}
.media-item .sleeve,
.season-grid .sleeve,
.detail-poster .sleeve {
  background: linear-gradient(#161b23, #090d13);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  aspect-ratio: 2/3;
  border-radius: calc(3 * var(--s));
  color: #ddd;
}
.sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sleeve > .symbol {
  width: 20%;
  height: auto;
}
.sleeve > strong {
  padding: 0.45em;
  max-width: 80%;
  font-size: 1em;
}
.channels .sleeve {
  aspect-ratio: 16/9;
  border-radius: calc(5 * var(--s));
}
.channels .sleeve img {
  object-fit: contain;
  max-width: 67%;
  max-height: 54%;
}
.channels .media-item > strong,
.channels .media-item > small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.24em 0.15em;
}
.channels .media-item > small {
  margin-bottom: 0.45em;
}
.channel-no {
  position: absolute;
  top: 0.35em;
  left: 0.35em;
  padding: 0.2em 0.4em;
  border-radius: 1em;
  background: #000a;
  font-size: 0.85em;
}
.channel-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080a0d;
}
.media-item[aria-selected="true"] .sleeve,
.media-item:focus-visible .sleeve {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.folded {
  grid-template-columns: 1fr;
}
.folded .sidebar {
  display: none;
}
.folded .media-grid.channels {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.folded .media-grid.posters {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
.empty-grid {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1em;
}
.empty-grid > .symbol {
  font-size: 2.5em;
  color: var(--cyan);
}
.empty-grid h2 {
  font-size: 1.15em;
}
.empty-grid p {
  color: var(--muted);
  font-size: 0.85em;
}
.settings {
  inset-inline: 3.2%;
  gap: calc(12 * var(--s));
}
.settings .sidebar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.sidebar .version {
  margin-top: auto;
  padding: 1em 0.5em;
  color: var(--muted);
}
.settings-panel {
  overflow: auto;
  padding: calc(16 * var(--s));
  border-radius: calc(14 * var(--s));
  font-size: calc(10 * var(--s));
}
.settings-panel h1 {
  font-size: 2em;
}
.secondary-text,
.note {
  color: var(--muted);
  line-height: 1.4;
  margin: 0.35em 0 1em;
}
.source-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 1em;
  padding: 1em;
  border: 1px solid #74d7e480;
  border-radius: 1em;
  margin: 0.9em 0;
  background: #0003;
}
.source-row > .symbol:first-child {
  box-sizing: content-box;
  background: #25cae51f;
  color: var(--cyan);
  padding: 0.4em;
  border-radius: 0.35em;
  font-size: 1.9em;
}
.source-row small {
  margin-top: 0.4em;
}
.source-row button:first-of-type,
.add-source > .symbol:last-child {
  margin-left: auto;
}
.add-source {
  border: 1px dashed #fff5;
  background: #ffffff0b;
}
.source-row strong {
  font-size: 1.1em;
}
.badge {
  display: inline-block;
  border-radius: 2em;
  padding: 0.26em 0.6em;
  background: #ffffff1b;
  border: 1px solid #ffffff1a;
  font-size: 0.88em;
}
.badge.cyan {
  color: var(--cyan);
  background: #0c505a;
  letter-spacing: 0.09em;
  font-size: 0.75em;
}
.badge.orange {
  color: #ffa13c;
  background: #493019;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: 1em 0;
  border-bottom: 1px solid #fff2;
}
.demo-link {
  margin-top: 1em;
}
.note {
  display: block;
}
input,
select {
  color: white;
  background: #161319;
  border: 1px solid #ffffff25;
  border-radius: 0.6em;
  padding: 0.55em 0.7em;
  min-width: 0;
}
dialog {
  color: var(--white);
  font: inherit;
  background: #17181e;
  border: 1px solid #ffffff30;
  border-radius: 16px;
  max-width: 95vw;
  max-height: 94dvh;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(6px);
}
.sheet.full {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.sheet.compact {
  width: min(500px, 93vw);
  padding: 1.4rem;
  background: #24242aea;
  backdrop-filter: blur(20px);
}
.sheet.compact h2 {
  font-size: 1.25rem;
}
.sheet.compact p {
  margin: 0.5rem 0;
  color: var(--muted);
}
.sheet.compact input {
  width: 100%;
  margin: 0.7rem 0;
}
.assign-row {
  width: 100%;
  justify-content: flex-start;
  margin: 0.22rem 0;
}
.sheet.compact .eyebrow {
  display: block;
}
.inline,
.actions,
.tags,
.source-actions,
.player-head {
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.actions,
.source-actions {
  justify-content: space-between;
  margin-top: 1em;
}
#source-dialog {
  background:
    radial-gradient(at 0 0, #102c3b, transparent 45%),
    radial-gradient(at 100% 0, #32102f, transparent 50%), #09070b;
}
.source-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 61fr);
  gap: 3.3%;
  padding: 3.5% 5%;
  font-size: clamp(14px, 1.32vw, 22px);
}
.source-intro {
  padding: 3% 0;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.big-symbol,
.source-intro > .symbol {
  color: var(--cyan);
  font-size: 2.1em;
}
.source-intro h1 {
  font-size: 2.1em;
  letter-spacing: -0.04em;
  margin: 0.4em 0;
}
.source-intro p,
.source-intro small,
fieldset small {
  color: var(--muted);
  line-height: 1.35;
}
.source-intro > small {
  margin-top: auto;
  max-width: 28em;
  font-size: 0.8em;
}
.source-intro .eyebrow {
  margin: 1.6em 0 0.8em;
}
.switch {
  display: flex;
  background: #fff1;
  border-radius: 2em;
  padding: 0.15em;
  flex-wrap: wrap;
}
.switch button {
  background: transparent;
  border: 0;
  font-size: 0.9em;
}
.switch [aria-pressed="true"] {
  background: #fff3;
  border-radius: 2em;
}
#source-form {
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid #ffffff30;
  border-radius: 1.5em;
  padding: 1.3em;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
#source-form label {
  display: block;
  margin: 0.7em 0 0.25em;
  color: #fffb;
  font-size: 0.9em;
}
#source-form input,
#source-form select {
  width: 100%;
  border: 0;
  background: #0005;
  border-radius: 2em;
  padding: 0.75em 1em;
}
#source-form small {
  display: block;
  font-size: 0.75em;
  margin: 0.3em 0;
}
#source-result,
#play-status {
  color: #ffcea9;
}
#source-result {
  margin: 0.6em 0;
}
.source-actions {
  margin-top: auto;
}
.source-actions button {
  border-radius: 1.8em;
}
#details {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  padding: 2.7% 7%;
  background: linear-gradient(120deg, #13161a, #06080d);
  overflow: auto;
  font-size: clamp(14px, 1.24vw, 23px);
}
.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: brightness(0.19);
}
.detail-top,
.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.detail-copy {
  width: 70%;
  margin-top: 1em;
}
.detail-copy h1 {
  font-size: 2em;
  letter-spacing: -0.035em;
}
.tags {
  margin: 0.6em 0;
  flex-wrap: wrap;
}
.detail-copy > .eyebrow {
  border-top: 1px solid #fff3;
  padding-top: 0.7em;
}
.detail-copy > p {
  line-height: 1.35;
}
.detail-poster {
  position: absolute;
  right: 8%;
  top: 16%;
  width: 21.8%;
  text-align: center;
  font-size: 0.78em;
  color: #bbb;
}
.detail-poster .sleeve {
  aspect-ratio: 2/2.85;
  border: 2px solid #ffffff40;
  border-left: 12px ridge #383838;
  box-shadow: 4px 8px 16px #0009;
}
.detail-poster > span {
  display: block;
  margin-bottom: 0.6em;
}
.credits {
  position: absolute;
  bottom: 14%;
  left: 7%;
  max-width: 65%;
  font-size: 0.8em;
}
.credits p {
  margin: 0.4em 0;
}
.cast-row {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}
.cast-row > div {
  background: #ffffff15;
  border-radius: 0.45em;
  padding: 0.6em;
}
.cast-row small {
  display: block;
  color: var(--muted);
}
.prev-film,
.next-film {
  position: absolute;
  top: 49%;
  padding: 0.65em;
}
.prev-film {
  left: 3%;
}
.next-film {
  right: 3%;
}
.detail-foot {
  text-align: center;
  position: absolute;
  bottom: 4%;
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 0.8em;
}
.shelf-head {
  justify-content: start;
}
.shelf-head h1 {
  font-size: 1.35em;
}
.shelf-head button:last-child {
  margin-left: auto;
}
.season-grid {
  height: 83%;
  margin: 2em -3% 0;
}
.season-grid strong,
.season-grid small {
  display: block;
}
.season-bg {
  filter: brightness(0.72);
}
.loading {
  padding: 2rem;
}
#play-dialog {
  background: #030406;
}
#play-dialog > video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.player-head {
  position: absolute;
  top: 4%;
  left: 3%;
  right: 3%;
  font-size: 0.85em;
  text-shadow: 0 2px 4px black;
}
.player-head h2 {
  font-size: 1.35em;
}
.player-head button {
  background: #17171abf;
  border-radius: 2em;
}
.player-head button:last-child {
  margin-left: auto;
}
#play-status:not(:empty) {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 19%;
  padding: 0.75em;
  text-align: center;
  background: #15151ce8;
  border-radius: 1em;
}
body[data-motion="off"] *,
body[data-magnify="off"] .dock-tile {
  transition: none !important;
}
body[data-magnify="off"] .dock-tile {
  transform: none !important;
}
body[data-glass="off"] .glass,
body[data-glass="off"] #dock {
  backdrop-filter: none;
  background: #27272c;
}
body[data-dock="off"]:not(.room-home) #dock:not(:focus-within) {
  opacity: 0;
}
body[data-dock="off"] #desk-bar:hover #dock {
  opacity: 1;
}
@media (max-width: 720px) {
  :root {
    --s: 1px;
    --foot: 76px;
    --pad: 9px;
  }
  .workbench {
    inset: 9px 9px 80px;
    grid-template-columns: minmax(105px, 29%) minmax(0, 1fr);
    gap: 5px;
  }
  .workbench.folded {
    grid-template-columns: 1fr;
  }
  .sidebar {
    font-size: 12px;
  }
  .catalog-top {
    flex-wrap: wrap;
    align-items: center;
    font-size: 12px;
  }
  .title-block {
    max-width: 80%;
    min-width: 0;
    flex: 1;
  }
  .catalog-search {
    order: 8;
    width: 100%;
    max-width: none;
  }
  .catalog-banner {
    height: 118px;
    max-width: 100%;
    font-size: 12px;
  }
  .media-grid.channels,
  .media-grid.posters,
  .folded .media-grid.channels,
  .folded .media-grid.posters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .folded .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .media-item,
  .season-grid > button {
    font-size: 11px;
  }
  .season-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dock-label {
    font-size: 9px;
  }
  .room-home .dock-item,
  .room-home .dock-item.magnified,
  .room-home .dock-item:has(+ .magnified),
  .room-home .magnified + .dock-item {
    width: clamp(43px, 13vw, 68px);
    --tile: clamp(32px, 8.7vw, 50px);
  }
  .room-home #dock {
    gap: 2px;
    padding: 10px 7px;
    min-height: 66px;
  }
  .room-home .magnified .dock-label {
    font-size: 10px;
  }
  #dock {
    max-width: 97vw;
    gap: 2px;
    padding: 6px;
  }
  .dock-item {
    width: clamp(39px, 12.7vw, 52px);
  }
  #zones {
    display: none;
  }
  #back-tools {
    bottom: 73px;
    left: 10px;
  }
  body:not(.room-home) #main {
    padding-bottom: 10px;
  }
  .workbench {
    bottom: 104px;
  }
  #home-bar {
    font-size: 10px;
  }
  .home-name h1 {
    font-size: 34px;
  }
  .home-name p {
    font-size: 14px;
  }
  .welcome {
    gap: 16px;
  }
  .welcome p {
    font-size: 15px;
  }
  .welcome-types {
    font-size: 11px;
  }
  .settings-panel {
    padding: 12px;
    font-size: 12px;
  }
  .source-row {
    flex-wrap: wrap;
  }
  .settings-panel .source-row > div {
    flex: 1;
  }
  .source-layout {
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
    overflow: auto;
    height: 100%;
  }
  .source-intro {
    padding: 0;
  }
  .source-intro h1 {
    font-size: 1.6em;
  }
  .source-intro > small {
    display: none;
  }
  .source-intro .eyebrow {
    margin: 0.7em 0 0.25em;
  }
  .source-intro > .symbol {
    display: none;
  }
  #source-form {
    flex: 1;
    overflow: auto;
    min-height: 260px;
  }
  .source-actions {
    padding-top: 1em;
  }
  .detail-copy {
    width: 66%;
  }
  .detail-poster {
    width: 25%;
    right: 4%;
    top: 19%;
  }
  .credits {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 2em;
  }
  .detail-foot {
    display: none;
  }
  .prev-film,
  .next-film {
    top: 72%;
  }
  .shelf-head {
    flex-wrap: wrap;
  }
  .shelf-head button:last-child {
    font-size: 0.8em;
  }
  .welcome-load {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .dock-tile {
    transition: transform 0.14s;
  }
  .dock-item {
    transition: width 0.14s;
  }
  .room-home #wall {
    transition: background-image 0.15s;
  }
}
.sidebar .side-title > button {
  width: auto;
  flex: none;
  margin-left: auto;
  padding: 0.27em 0.42em;
}
.side-title h2 {
  white-space: nowrap;
}
.room-home #dock {
  height: calc(101 * var(--s));
  min-height: 0;
  transform: translateX(2%);
}
.media-item[aria-selected="true"] .sleeve {
  box-shadow: 0 2px 6px #0005;
}
.detail-bg {
  filter: brightness(0.13);
}
.cast-row > div {
  display: flex;
  flex-direction: column;
  max-width: 9em;
  background: transparent;
  padding: 0;
}
.cast-row > div:before {
  content: "";
  display: block;
  width: 7.8em;
  height: 4.2em;
  border-radius: 0.5em;
  background:
    radial-gradient(circle at 50% 35%, #666 8%, transparent 9%),
    radial-gradient(ellipse at 50% 70%, #555 15%, transparent 16%), #22262a;
  border: 1px solid #fff2;
}
.cast-row strong {
  padding: 0.4em 0 0.2em;
}
@media (max-width: 720px) {
  .room-home #dock {
    height: 70px;
    transform: none;
  }
  .side-title h2 {
    white-space: normal;
  }
}
.player-head button:nth-last-child(2) {
  margin-left: auto;
}
.player-head .pill {
  background: #242126ae;
}
.play-tray {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1.35em;
  padding: 0.65em 1em 0.6em;
  font-size: clamp(12px, 1.04vw, 18px);
  min-width: min(94vw, 40em);
}
.play-progress,
.play-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.6em;
}
.play-progress input {
  width: 100%;
  accent-color: white;
  padding: 0;
}
.play-progress small {
  white-space: nowrap;
}
.play-actions {
  margin-top: 0.5em;
}
.play-actions button {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.78em;
  min-width: 3.8em;
}
.play-actions button > :first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65em;
  height: 2.65em;
  border-radius: 50%;
  background: #fff2;
  border: 1px solid #fff3;
}
.play-actions .symbol svg {
  width: 50%;
  height: 50%;
}
.hide-controls .player-head,
.hide-controls .play-tray {
  opacity: 0;
  pointer-events: none;
}
.hide-controls .player-head:focus-within,
.hide-controls .play-tray:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.studio {
  width: min(96vw, 1080px);
  height: min(87dvh, 780px);
  max-height: 94dvh;
  background-color: #151720;
  background-position: center;
  background-size: cover;
  padding: clamp(1rem, 3vw, 2.5rem);
  color: white;
  border: 1px solid #fff4;
  border-radius: 1.4rem;
  overflow: auto;
}
.studio-tabs,
.studio-scopes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.25rem;
  overflow: auto;
}
.studio-tabs strong {
  margin-right: 0.5rem;
  font-size: 1.3rem;
}
.studio-tabs button:last-child {
  margin-left: auto;
}
.studio button {
  background-color: #23222dcc;
}
.studio-scopes button {
  flex: none;
}
.studio button[aria-pressed="true"] {
  border-color: #4cddff;
  background-color: #156283;
}
.studio-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 0.75rem;
  padding: 0.3rem;
}
.studio-choices button {
  flex-direction: column;
  min-height: 3rem;
}
.studio-choices img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 0.4rem;
}
body[data-theme="smoked"] {
  --glass: #15151ce8;
}
body[data-theme="vivid"] {
  --glass: #243765db;
  --cyan: #ffca48;
}
body[data-theme="neon"],
body[data-theme="neon90"] {
  --glass: #231543da;
  --cyan: #49dcff;
}
body[data-theme="floating"] #dock {
  background: none;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body[data-theme="tactile"] {
  --glass: #4c5762c9;
}
body[data-theme="pebbles"] {
  --glass: #5c5661bb;
}
body[data-theme="pebbles"] .dock-tile {
  border-radius: 50%;
}
body[data-theme="frost"] {
  --glass: #53677bd1;
  --cyan: #d4efff;
}
body[data-theme="gel"] {
  --glass: #254d8fe0;
}
body[data-theme="hills"] {
  --glass: #1d4593ea;
}
body[data-theme="bevel"],
body[data-theme="eightColor"],
body[data-theme="fourColor"],
body[data-theme="greenDesk"],
body[data-theme="phosphor"] {
  --glass: #3e444cf5;
  --cyan: #d6eaff;
}
body[data-theme="fourColor"] {
  --glass: #163772f5;
  --cyan: #fea744;
}
body[data-theme="greenDesk"] {
  --glass: #245642f5;
  --cyan: #b6e8ae;
}
body[data-theme="phosphor"] {
  --glass: #081e0cf5;
  --cyan: #64f480;
}
body[data-theme="bevel"] .dock-tile,
body[data-theme="eightColor"] .dock-tile,
body[data-theme="fourColor"] .dock-tile,
body[data-theme="greenDesk"] .dock-tile,
body[data-theme="phosphor"] .dock-tile {
  border-radius: 2px;
  border: 2px outset #adb3bb;
}
body[data-theme="nightGlass"] {
  --glass: #112746d9;
  --cyan: #a2d6ff;
}
body[data-theme="artDeco"] {
  --glass: #24252ce8;
  --cyan: #e3b674;
}
.drawn-pack #dock {
  background: var(--pack-plate) center/100% 100% no-repeat;
  border-color: transparent;
  backdrop-filter: none;
}
.drawn-pack .dock-tile {
  background: var(--pack-icon) center/contain no-repeat;
  box-shadow: none;
}
.drawn-pack .dock-tile .symbol {
  visibility: hidden;
}
[data-room="direct"] {
  --pack-icon: var(--pack-direct);
}
[data-room="films"] {
  --pack-icon: var(--pack-films);
}
[data-room="series"] {
  --pack-icon: var(--pack-series);
}
[data-room="favoris"] {
  --pack-icon: var(--pack-favoris);
}
[data-room="recherche"] {
  --pack-icon: var(--pack-recherche);
}
[data-room="reglages"] {
  --pack-icon: var(--pack-reglages);
}
body[data-focus-look="halo"]
  .dock-item:is(:focus-visible, :hover, .magnified)
  .dock-tile {
  outline: none;
  position: relative;
  box-shadow: 0 0 0.55em var(--ink);
}
body[data-focus-look="halo"]
  .dock-item:is(:focus-visible, :hover, .magnified)
  .dock-tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 20%,
    color-mix(in srgb, var(--ink) 45%, transparent) 43%,
    transparent 71%
  );
  pointer-events: none;
}
body[data-focus-look="lift"]
  .dock-item:is(:focus-visible, :hover, .magnified)
  .dock-tile {
  outline: none;
  transform: translateY(-6%) scale(1.1);
  box-shadow: 0 0.4em 0.6em #0009;
}
.dock-section {
  display: flex;
  align-items: flex-end;
  gap: 0.3em;
  min-width: 0;
  padding-left: 0.35em;
  border-left: 1px solid #ffffff55;
}
.dock-folder {
  width: min(90vw, 32em);
  max-height: 80vh;
  background: #22252bf5;
  color: white;
  border: 1px solid #fff3;
  border-radius: 1.3em;
  padding: 1.3em;
}
