:root {
  color-scheme: light;
  --ink: #28222e;
  --muted: #655d6b;
  --line: #39313f;
  --paper: #fff7d9;
  --surface: #fffdf5;
  --topbar-bg: #ffd84d;
  --mint: #51ddd0;
  --mint-strong: #087c78;
  --coral: #f34f7d;
  --yellow: #ffd84d;
  --sky: #73cfff;
  --danger: #b8244c;
  --ok: #087c78;
  --button-text: var(--ink);
  --secondary-button-text: var(--ink);
  --eyebrow: #bf315f;
  --page-pattern: repeating-linear-gradient(135deg, transparent 0, transparent 34px, rgba(243, 79, 125, .055) 35px, transparent 37px);
  --chat-bubble: #e8f4e9;
  --chat-bubble-self: #fff1bf;
  --placeholder: #99a69e;
  --coral-hover: #ff7d9f;
  --mint-hover: #83eee3;
  --film-frame-border: #5a4f63;
  font-family: "Trebuchet MS", "Comic Sans MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2ecdf;
  --muted: #c1b6c4;
  --line: #62596a;
  --paper: #17141c;
  --surface: #24202b;
  --topbar-bg: #25212b;
  --mint: #235a58;
  --mint-strong: #71ddd1;
  --coral: #f06588;
  --yellow: #d7b844;
  --sky: #84d4f0;
  --danger: #ff86a4;
  --ok: #71ddd1;
  --button-text: #28222e;
  --secondary-button-text: #f2ecdf;
  --eyebrow: #ff9bb5;
  --page-pattern: repeating-linear-gradient(135deg, transparent 0, transparent 34px, rgba(240, 101, 136, .07) 35px, transparent 37px);
  --chat-bubble: #2b3c35;
  --chat-bubble-self: #49382d;
  --placeholder: #b5aab6;
  --coral-hover: #ff96b0;
  --mint-hover: #32736d;
  --film-frame-border: #766b80;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--page-pattern);
  color: var(--ink);
  font: 15px/1.5 "Trebuchet MS", "Comic Sans MS", sans-serif;
}

[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

.topbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 4px solid var(--ink);
  background: var(--topbar-bg);
}
.primary-nav { height: 100%; display: flex; align-items: stretch; gap: 6px; }
.nav-tab { min-width: 88px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-size: 13px; font-weight: 800; }
.nav-tab:hover, .nav-tab.is-active { color: var(--ink); }
.nav-tab.is-active { border-bottom-color: var(--coral); }
.trip-toggle { min-width: 104px; }
.trip-toggle[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--coral); }
.theme-toggle {
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}
.theme-toggle:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.wordmark {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  text-decoration: none;
}
.wordmark-mark {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--button-text);
  color: var(--button-text);
  background: var(--coral);
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 16px/1 Impact, "Comic Sans MS", sans-serif;
  transform: rotate(-4deg);
}
.wordmark-copy { display: grid; gap: 4px; }
.wordmark-copy strong { font: 900 14px/1 Impact, "Trebuchet MS", sans-serif; }
.wordmark-copy small { font-size: 10px; font-weight: 750; }
.wordmark-copy b { color: var(--danger); }
.connection-state {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.state-dot { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--coral); }
.state-dot.is-online { background: var(--mint); box-shadow: 2px 2px 0 var(--ink); }

main { width: min(1420px, calc(100% - 64px)); flex: 1; margin: 0 auto; }
.screen { padding: 38px 0 48px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--mint-strong); font-size: 12px; font-weight: 800; text-decoration: none; }
.back:hover { text-decoration: underline; }
.page-heading {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 25px;
  border-bottom: 2px dashed var(--line);
}
.heading-sticker { width: 150px; height: 100px; margin-left: auto; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); object-fit: cover; transform: rotate(3deg); }
.page-heading > div { flex: 1 1 0; min-width: 0; }
.eyebrow { margin: 0 0 10px; color: var(--eyebrow); font-size: 10px; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 100%; margin-bottom: 0; color: var(--ink); font: 48px/1.02 Impact, "Comic Sans MS", sans-serif; overflow-wrap: anywhere; text-shadow: 2px 2px 0 var(--yellow); }
h2 { margin-bottom: 0; color: var(--ink); font-size: 19px; font-weight: 700; }
.heading-note { max-width: 300px; flex: 0 1 300px; margin: 0 0 5px; color: var(--muted); font: italic 15px Georgia, "Trebuchet MS", serif; text-align: right; }
.heading-note b { color: var(--danger); }

.watch-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; }
.access-panel { min-width: 0; padding: 27px 28px 26px 0; border-right: 2px dashed var(--line); }
.player-panel, .library-section { min-width: 0; padding: 27px 0 27px 30px; }
.library-layout { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); }
.library-section-full { padding: 27px 0; }
.owner-content { display: grid; grid-template-columns: minmax(0, 720px) minmax(180px, 1fr); align-items: start; gap: 48px; padding-top: 28px; }
.upload-form { padding: 24px; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); box-shadow: 5px 5px 0 var(--ink); }
.owner-sticker { width: 100%; max-width: 300px; margin: 8px auto 0; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-2deg); }
.auth-tabs { display: flex; gap: 10px; margin: -5px 0 22px; }
.auth-tabs .button { flex: 1; }
.auth-tabs .button[aria-pressed="true"] { outline: 3px solid var(--yellow); outline-offset: 2px; }
.auth-form { display: grid; gap: 2px; }
.auth-form small, .field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.bootstrap-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.admin-panel { margin-top: 28px; padding: 24px; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); box-shadow: 5px 5px 0 var(--ink); }
.admin-user-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.admin-user-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.stream-layout { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(250px, 300px); }
.chat-panel { min-width: 0; display: flex; flex-direction: column; padding: 27px 0 26px 22px; border-left: 2px dashed var(--line); }
.chat-heading { align-items: flex-start; margin-bottom: 18px; }
.chat-heading .eyebrow { margin-bottom: 6px; }
.chat-heading h2 { font-size: 16px; }
.chat-online { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; padding-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.chat-online .state-dot { width: 8px; height: 8px; border-width: 1px; }
.chat-log { min-height: 260px; max-height: 410px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; overflow-y: auto; padding: 12px; border: 2px solid var(--ink); border-radius: 6px; background: var(--surface); box-shadow: 3px 3px 0 var(--ink); }
.chat-message { width: min(100%, 250px); padding: 9px 10px; border-left: 3px solid var(--mint-strong); border-radius: 4px; background: var(--chat-bubble); }
.chat-message-self { align-self: flex-end; border-left-color: var(--coral); background: var(--chat-bubble-self); }
.chat-message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 10px; }
.chat-message-meta time { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.chat-message p { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; line-height: 1.4; }
.chat-form { display: grid; gap: 8px; padding-top: 15px; }
.chat-compose { display: flex; align-items: stretch; gap: 8px; }
.chat-compose .button { flex: 0 0 auto; padding: 0 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.poster-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, 150px);
  gap: 18px;
  padding: 30px 6px 34px;
  border-bottom: 2px dashed var(--line);
}
.poster { position: relative; margin: 0; overflow: hidden; border: 3px solid var(--ink); border-radius: 8px; background: var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.poster:hover { z-index: 2; transform: scale(1.04); box-shadow: 7px 7px 0 var(--coral); }
.poster figcaption { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 4px 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); border-radius: 0 8px 0 0; color: var(--button-text); background: var(--yellow); font: 14px/1.2 Impact, "Comic Sans MS", sans-serif; overflow-wrap: anywhere; }
.poster-main { grid-column: 1 / 4; grid-row: 1 / 3; transform: rotate(-1deg); }
.poster-main figcaption { padding: 7px 14px; color: var(--secondary-button-text); font-size: 20px; background: var(--mint); }
.poster-a { grid-column: 4 / 6; transform: rotate(1.5deg); }
.poster-b { grid-column: 6; transform: rotate(-2deg); }
.poster-c { grid-column: 4 / 6; grid-row: 2; transform: rotate(-1deg); }
.poster-d { grid-column: 6; grid-row: 2; transform: rotate(2deg); }
.burst { display: inline-block; margin-right: 8px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 20px; color: #fff; background: var(--coral); font-size: 14px; transform: rotate(-6deg); }
.mascot { display: block; width: 100%; max-width: 280px; margin: 30px auto 0; border: 3px solid var(--ink); border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); }
.film-strip { display: flex; gap: 8px; padding: 14px 12px; overflow: hidden; border-top: 3px solid var(--ink); background: var(--ink); }
.film-strip img { flex: 1 1 0; min-width: 0; height: 90px; border: 2px solid var(--film-frame-border); border-radius: 3px; object-fit: cover; }
.panel-heading, .section-title-row, .player-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-heading { margin-bottom: 24px; }
.panel-heading-small { margin: 25px 0 13px; }
.panel-index { color: var(--coral); font: 900 16px Impact, sans-serif; transform: rotate(5deg); }
.small-title { font-size: 15px; }
.status-copy { min-height: 42px; margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.divider { height: 1px; margin-top: 22px; background: var(--line); }
.section-title-row { align-items: flex-start; margin-bottom: 20px; }
.section-title-row .eyebrow { margin-bottom: 7px; }
.count { min-width: 28px; height: 28px; display: inline-grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; color: var(--button-text); background: var(--yellow); font-size: 11px; font-weight: 900; }
.count-large { min-width: 38px; height: 38px; font: 17px Georgia, serif; }

.field { margin-bottom: 15px; }
label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 750; }
input[type="text"], input[type="password"], input[type="file"] {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
}
input:not([type]) { width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px; border: 2px solid var(--ink); border-radius: 5px; outline: none; color: var(--ink); background: var(--surface); }
input[type="file"] { padding: 6px; font-size: 11px; }
input:focus { box-shadow: 3px 3px 0 var(--mint); }
input::placeholder { color: var(--placeholder); }
input.mono { font: 12px/1.5 Consolas, "Courier New", monospace; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; min-height: auto; margin: 0; accent-color: var(--mint-strong); }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--button-text);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.button-primary { background: var(--coral); }
.button-primary:hover { background: var(--coral-hover); }
.button-secondary { background: var(--mint); }
.button-secondary:hover { background: var(--mint-hover); }
.button-secondary { color: var(--secondary-button-text); }
.key-form { max-width: 600px; padding-top: 18px; }
.key-entry, .share-field { display: flex; gap: 9px; }
.share-field input { flex: 1; }
.share-field .button { flex: 0 0 auto; }
.field-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.upload-form progress { width: 100%; height: 10px; margin-top: 12px; accent-color: var(--mint-strong); }

.movies, .list-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.movies li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.movie-name { min-width: 0; color: var(--ink); font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: 11px; white-space: nowrap; }
.movie-actions { display: flex; gap: 8px; }
.movie-action { min-height: 34px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 6px; color: var(--button-text); background: var(--coral); font-size: 11px; font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }
.movie-action.secondary { background: var(--sky); }
.movie-action, button.movie-action { display: inline-flex; align-items: center; justify-content: center; }
.status { min-height: 1.5em; margin-top: 12px; color: var(--muted); font-size: 12px; }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }

.player-stage { position: relative; min-height: 260px; overflow: hidden; border: 3px solid var(--ink); border-radius: 6px; background: #17131c; aspect-ratio: 16 / 9; box-shadow: 5px 5px 0 var(--ink); }
.player-stage video { width: 100%; height: 100%; display: block; margin: 0; border-radius: 0; background: #0b1512; object-fit: contain; }
.player-stage:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; background: #09080b; }
.player-controls { position: absolute; z-index: 1; inset: auto 0 0; padding: 32px 16px 12px; color: #fff; background: linear-gradient(transparent, rgba(10, 8, 15, .95)); transition: opacity .2s ease, transform .2s ease; }
.player-control-error { margin-bottom: 8px; padding: 6px 10px; border-radius: 6px; color: #fff; background: #8d2441; font-size: 12px; }
.controls-hidden .player-controls { opacity: 0; transform: translateY(8px); pointer-events: none; }
.controls-hidden { cursor: none; }
.player-progress { display: flex; padding: 0 3px; }
.player-seek, .player-volume { min-width: 0; accent-color: #f06588; cursor: pointer; }
.player-seek { width: 100%; margin: 0; }
.player-seek:disabled { cursor: default; opacity: .7; }
.player-control-row { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.player-control { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; color: #fff; background: rgba(255, 255, 255, .09); font-size: 19px; line-height: 1; }
.player-control:hover, .player-control[aria-pressed="true"] { color: #151018; background: #73e5d7; }
.player-control:focus-visible, .player-seek:focus-visible, .player-volume:focus-visible { outline: 2px solid #73e5d7; outline-offset: 3px; }
.player-control:disabled { opacity: .5; }
.player-time { color: #f4edf1; font: 12px/1.2 "Trebuchet MS", sans-serif; white-space: nowrap; }
.player-volume { width: 68px; }
.player-control-spacer { flex: 1; }
body.theater-mode::after { content: ""; position: fixed; z-index: 10; inset: 0; pointer-events: none; background: rgba(5, 4, 9, .88); }
body.theater-mode .stream-layout { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
body.theater-mode .chat-panel { display: none; }
body.theater-mode .player-panel { position: relative; z-index: 11; }
body.theater-mode .player-meta { color: #f2ecdf; background: #17141c; }
body.theater-mode .player-meta h2 { color: #f2ecdf; }
body.theater-mode .player-meta .eyebrow { color: #ff9bb5; }
body.theater-mode .room-presence { color: #c1b6c4; }
.player-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #afc0b8; }
.player-empty p { margin: 0; font: italic 15px Georgia, serif; }
.screen-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 2px solid var(--yellow); border-radius: 8px; color: var(--yellow); font: 900 19px Impact, sans-serif; transform: rotate(-4deg); }
.player-meta { min-height: 82px; padding: 15px 0 12px; border-bottom: 1px solid var(--line); }
.player-meta .eyebrow { margin-bottom: 6px; }
.player-meta h2 { font: 21px Georgia, serif; overflow-wrap: anywhere; }
.room-presence { flex: 0 0 auto; color: var(--muted); font-size: 11px; }

.site-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 5vw, 76px); border-top: 3px solid var(--ink); color: var(--ink); background: var(--mint); font-size: 10px; font-weight: 900; }

@media (max-width: 820px) {
  .poster-wall { grid-template-rows: repeat(2, 120px); gap: 12px; }
  main { width: min(100% - 36px, 720px); }
  .topbar { padding: 0 18px; }
  .watch-layout, .library-layout { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); }
  .access-panel { padding-right: 18px; }
  .player-panel, .library-section { padding-left: 18px; }
  .stream-layout { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); }
  .chat-panel { grid-column: 2; padding: 21px 0 0 18px; border-top: 2px dashed var(--line); border-left: 0; }
  h1 { font-size: 40px; }
  .heading-note { max-width: 190px; }
  .owner-content { grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); gap: 24px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 68px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 6px 16px; }
  .primary-nav { grid-column: 1 / -1; height: 40px; }
  .nav-tab { min-width: 0; flex: 1; padding: 0 6px; font-size: 11px; }
  .wordmark { gap: 9px; font-size: 9px; }
  .wordmark-mark { width: 36px; height: 36px; font-size: 14px; }
  .wordmark-copy strong { font-size: 11px; }
  .wordmark-copy small { font-size: 9px; }
  .connection-state { gap: 6px; font-size: 9px; }
  main { width: calc(100% - 32px); }
  .screen { padding: 28px 0 32px; }
  .page-heading { min-height: 100px; align-items: flex-end; padding-bottom: 18px; }
  h1 { font-size: 34px; }
  .heading-note { display: none; }
  .heading-sticker { display: none; }
  .watch-layout, .library-layout { grid-template-columns: 1fr; }
  .stream-layout { grid-template-columns: 1fr; }
  body.theater-mode .stream-layout { grid-template-columns: 1fr; }
  .chat-panel { grid-column: 1; padding: 22px 0; border-top: 1px dashed var(--line); }
  .chat-log { min-height: 230px; max-height: 320px; }
  .poster-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 110px; gap: 12px; padding: 22px 4px 28px; }
  .poster-main { grid-column: 1 / 3; grid-row: span 2; height: 220px; }
  .poster-a, .poster-b, .poster-c, .poster-d { grid-column: auto; grid-row: auto; }
  .film-strip img:nth-child(n+4) { display: none; }
  .access-panel { padding: 22px 0; border-right: 0; border-bottom: 2px dashed var(--line); }
  .player-panel, .library-section { padding: 22px 0; }
  .library-section-full { padding: 22px 0; }
  .owner-content { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; }
  .upload-form { padding: 16px; }
  .admin-panel { padding: 16px; }
  .owner-sticker { max-width: 220px; }
  .player-stage { min-height: 190px; aspect-ratio: 16 / 10; }
  .player-controls { padding: 24px 8px 8px; }
  .player-control-row { gap: 4px; }
  .player-control { width: 32px; height: 32px; font-size: 17px; }
  .player-volume { width: 42px; }
  .player-meta { align-items: flex-start; }
  .player-meta h2 { font-size: 18px; }
  .room-presence { max-width: 105px; text-align: right; }
  .movies li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .movie-name { grid-column: 1 / -1; }
  .movie-actions { justify-self: end; }
  .share-field { align-items: stretch; }
  .share-field .button { padding: 0 12px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

body.trippy {
  background-image: linear-gradient(120deg, #ff6ec7, #ffd84d, #51ddd0, #73cfff, #b388ff, #ff6ec7);
  background-size: 300% 300%;
  animation: trip-bg 20s ease-in-out infinite;
}
body.trippy .topbar,
body.trippy main,
body.trippy .site-footer,
body.trippy .film-strip { animation: trip-hue 16s linear infinite; }
body.trippy h1 { animation: trip-shadow 6s linear infinite; }
body.trippy .poster img { animation: trip-zoom 7s ease-in-out infinite; }
body.trippy .poster:nth-child(even) img { animation-direction: reverse; }
body.trippy .owner-sticker,
body.trippy .heading-sticker { animation: trip-float 5s ease-in-out infinite; }

@keyframes trip-bg { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes trip-hue { to { filter: hue-rotate(360deg); } }
@keyframes trip-shadow {
  0% { text-shadow: 3px 3px 0 #ff6ec7; }
  33% { text-shadow: -3px 3px 0 #51ddd0; }
  66% { text-shadow: 3px -3px 0 #b388ff; }
  100% { text-shadow: 3px 3px 0 #ff6ec7; }
}
@keyframes trip-zoom { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: 1.12; rotate: 2deg; } }
@keyframes trip-float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -8px; rotate: 3deg; } }

@media (prefers-reduced-motion: reduce) {
  body.trippy, body.trippy *, body.trippy::before { animation: none !important; }
}

.role-badge { align-self: flex-start; padding: 4px 10px; border: 2px solid var(--ink); border-radius: 6px; background: var(--sky); color: var(--button-text); font-size: 11px; font-weight: 900; box-shadow: 2px 2px 0 var(--ink); }
.role-badge[hidden] { display: none; }

.title-aside { font-size: 0.35em; font-weight: 400; vertical-align: middle; }
