@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');
:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #f7f3ff;
  background: #160d24;
  font-synthesis: none;
  --muted: #aa9dbb;
  --accent: #ba95ff;
  --line: #ffffff16;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 45%, #3c215751, transparent 60%), #160d24;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #c9a5ff;
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
.logo {
  font-size: 34px;
  letter-spacing: -2px;
  font-weight: 700;
}
.logo span {
  color: #b995fb;
}
.header-middle {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
}
.avatar {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background: #342145;
  color: #d9c0ff;
  font-size: 12px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.badge {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #ad95c5;
  border: 1px solid #5e4777;
  padding: 6px 10px;
  border-radius: 30px;
}
.workspace {
  min-height: calc(100dvh - 88px);
  padding: 35px 5vw 110px;
  max-width: 1400px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.heading {
  font-size: clamp(28px, 3vw, 43px);
  letter-spacing: -1.7px;
  font-weight: 500;
  margin: 10px 0;
}
.sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.intro {
  text-align: center;
}
.discover-layout {
  display: grid;
  grid-template-columns: 1fr 430px 1fr;
  align-items: center;
  gap: 50px;
  max-width: 1140px;
  margin: 25px auto 0;
}
.aside h2 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.aside p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.aside .separator {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.pill {
  padding: 7px 12px;
  border: 1px solid #ffffff27;
  border-radius: 99px;
  font-size: 11px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 3px;
}
.pill.selected {
  background: #fff;
  color: #35204e;
}
.aside .small {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.deck {
  position: relative;
  padding: 39px 40px 47px;
  touch-action: pan-y;
}
.card-under {
  position: absolute;
  inset: 49px 48px 37px;
  background: #49275e;
  border: 1px solid #765487;
  border-radius: 18px;
  transform: rotate(3deg);
}
.movie-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #7b6083, #22122d);
  box-shadow: 0 25px 80px #0007;
  cursor: pointer;
  touch-action: none;
  transition:
    transform 0.22s,
    opacity 0.22s;
}
.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.movie-card:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 38%, #100b17ee 100%);
  pointer-events: none;
}
.poster-info {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 22px;
  right: 22px;
}
.poster-info h2 {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 10px 0;
}
.poster-info p {
  font-size: 11px;
  color: #ded1e9;
  margin: 10px 0;
}
.poster-info .pill {
  background: #ffffff16;
  border: 0;
  padding: 5px 9px;
  margin-left: 0;
}
.poster-kicker {
  font-size: 9px;
  letter-spacing: 2px;
  color: #e4cbff;
}
.card-back {
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(150deg, #5c367f, #23122f);
}
.card-back h2 {
  font-size: 30px;
}
.card-back p {
  line-height: 1.8;
  color: #e0d1eb;
  font-size: 14px;
}
.direction {
  position: absolute;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: #291a3a;
  border: 1px solid #684b80;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #cbb2e6;
  transition:
    background 0.2s,
    transform 0.2s;
}
.direction:hover {
  background: #67418d;
  transform: scale(1.1);
}
.direction.up {
  top: -3px;
  left: calc(50% - 20px);
}
.direction.down {
  bottom: -1px;
  left: calc(50% - 20px);
}
.direction.left {
  left: -4px;
  top: calc(50% - 20px);
}
.direction.right {
  right: -4px;
  top: calc(50% - 20px);
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.deck-caption {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin-top: 20px;
}
.deck-caption button {
  color: #ceb3eb;
  font-size: 10px;
}
.action-stamp {
  position: absolute;
  z-index: 5;
  top: 30px;
  left: 20px;
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  background: #432364c9;
  transform: rotate(-10deg);
}
.nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
  border: 1px solid #ffffff20;
  background: #231631ed;
  backdrop-filter: blur(20px);
  padding: 9px 15px;
  border-radius: 25px;
  box-shadow: 0 15px 40px #0005;
}
.nav button {
  position: relative;
  width: 54px;
  height: 43px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #9b88ad;
}
.nav button.active {
  background: #ae80ed;
  color: #20112e;
}
.nav button .nav-name {
  position: absolute;
  bottom: -25px;
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
}
.nav button:hover .nav-name,
.nav button:focus .nav-name {
  opacity: 1;
}
.count-dot {
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 9px;
  background: #eee1ff;
  color: #301842;
  border-radius: 10px;
  min-width: 15px;
  padding: 1px 3px;
}
.primary {
  background: #c3a0ff;
  color: #221132;
  border-radius: 99px;
  padding: 13px 23px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.secondary {
  border: 1px solid #ffffff35;
  border-radius: 99px;
  padding: 11px 20px;
  font-size: 12px;
}
.welcome {
  min-height: 100dvh;
  background: #fbf9ff;
  color: #382047;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.welcome:before,
.welcome:after {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: #dbc7ff55;
  filter: blur(80px);
  left: -200px;
  top: 50%;
}
.welcome:after {
  left: auto;
  right: -180px;
  top: -150px;
  background: #c5acf54a;
}
.welcome-content {
  z-index: 1;
  width: min(460px, 90vw);
}
.welcome .logo {
  margin-bottom: 60px;
}
.welcome-word {
  font-size: clamp(80px, 13vw, 130px);
  font-weight: 700;
  letter-spacing: -7px;
  margin: 0;
  color: transparent;
  -webkit-text-stroke: 1px #8650c3;
  background: linear-gradient(100deg, #c4a1ed, #6825b4, #d3b4f4);
  background-size: 200%;
  background-clip: text;
  animation: flow 6s linear infinite;
}
.welcome p {
  color: #8c799b;
  line-height: 1.8;
  font-size: 14px;
}
.welcome .primary {
  background: #6732a0;
  color: white;
  margin-top: 24px;
}
.welcome small {
  display: block;
  font-size: 10px;
  color: #a390b3;
  margin-top: 22px;
}
.welcome-out {
  animation: leave 0.5s forwards;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 20px 0;
}
.search {
  background: #ffffff06;
  border: 1px solid #ffffff20;
  color: white;
  border-radius: 30px;
  padding: 12px 18px;
  width: 250px;
}
.view-toggle {
  display: flex;
  border: 1px solid #ffffff25;
  padding: 4px;
  border-radius: 30px;
}
.view-toggle button {
  padding: 8px 15px;
  font-size: 11px;
  border-radius: 20px;
  color: var(--muted);
}
.view-toggle button.active {
  background: #eee2ff;
  color: #362044;
}
.map-wrap {
  height: 480px;
  border: 1px solid var(--line);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, #4a286444, transparent 65%), radial-gradient(#b294cc25 1px, transparent 1px);
  background-size:
    auto,
    25px 25px;
  touch-action: none;
}
.map-canvas {
  width: 1000px;
  height: 600px;
  position: absolute;
  transform-origin: 0 0;
}
.map-lines {
  position: absolute;
  inset: 0;
  width: 1000px;
  height: 600px;
  pointer-events: none;
}
.map-lines line {
  stroke: #ad80d76b;
  stroke-width: 1.4;
}
.node {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid #d9c0ef99;
  border-radius: 99px;
  padding: 11px 18px;
  white-space: nowrap;
  background: #21132ee8;
  color: #f1e4fc;
  font-size: 12px;
  box-shadow: 0 5px 30px #0002;
  animation: appear 0.25s ease-out;
}
.node.selected {
  color: #36204a;
  background: #fff;
  border-color: white;
}
.node .expand {
  margin-left: 12px;
  padding: 0 0 0 10px;
  border-left: 1px solid #bba7ca55;
  font-size: 16px;
}
.node.root {
  font-size: 15px;
  padding: 14px 21px;
}
.map-tools {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 5px;
  background: #231431;
  border: 1px solid #654677;
  border-radius: 20px;
  padding: 5px;
}
.map-tools button {
  width: 33px;
  height: 32px;
}
.map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.list-map {
  min-height: 430px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  align-content: start;
}
.list-category {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #ffffff04;
}
.list-category summary {
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 15px;
}
.collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.collection-card {
  border: 1px solid #ffffff18;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff04;
}
.collection-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.collection-card .copy {
  padding: 15px;
}
.collection-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.collection-card p {
  font-size: 11px;
  color: var(--muted);
}
.collection-card button {
  font-size: 11px;
  color: #d2b4ff;
}
.empty {
  padding: 75px 20px;
  text-align: center;
  border: 1px dashed #ffffff25;
  border-radius: 22px;
  margin-top: 30px;
}
.empty p {
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #f2eaff;
  color: #352046;
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%);
}
.scrim {
  position: fixed;
  inset: 0;
  background: #08030dc9;
  backdrop-filter: blur(8px);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  width: min(520px, 100%);
  max-height: 85dvh;
  overflow: auto;
  background: linear-gradient(150deg, #352047, #21142d);
  border: 1px solid #86639755;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 30px 100px #0009;
}
.modal h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 12px 0;
}
.modal p {
  color: #beaccb;
  font-size: 13px;
  line-height: 1.8;
}
.modal .close {
  float: right;
  font-size: 20px;
  color: #cbb7d9;
}
.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}
.rating {
  display: flex;
  gap: 10px;
  margin: 23px 0;
}
.rating button {
  font-size: 32px;
  color: #756184;
}
.rating button.on {
  color: #dab7ff;
}
.tutorial-number {
  font-size: 10px;
  letter-spacing: 2px;
  color: #be98e6;
}
.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 25px 0;
}
.legend div {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.attribution {
  margin-top: 25px;
  font-size: 9px;
  color: #78678b;
  text-align: center;
}
.screen-enter {
  animation: appear 0.4s ease-out;
}
@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes leave {
  to {
    transform: translateY(-50px);
    opacity: 0;
  }
}
@keyframes flow {
  to {
    background-position: 200%;
  }
}
@media (min-width: 1400px) {
  .discover-layout {
    margin-top: 40px;
  }
}
@media (max-width: 1000px) {
  .discover-layout {
    grid-template-columns: 1fr 390px;
    gap: 30px;
  }
  .aside.right-aside {
    display: none;
  }
}
@media (max-width: 650px) {
  header {
    height: 67px;
    padding: 0 22px;
  }
  .logo {
    font-size: 29px;
  }
  .header-middle {
    display: none;
  }
  .badge {
    font-size: 8px;
  }
  .workspace {
    padding: 23px 22px 115px;
  }
  .heading {
    font-size: 29px;
  }
  .discover-layout {
    display: block;
    margin-top: 22px;
  }
  .aside {
    display: none;
  }
  .deck {
    max-width: 355px;
    margin: auto;
    padding: 35px 35px 40px;
  }
  .movie-card {
    max-height: 49dvh;
    aspect-ratio: 2/3;
    margin: auto;
  }
  .poster-info h2 {
    font-size: 25px;
  }
  .direction {
    width: 35px;
    height: 35px;
  }
  .direction.up,
  .direction.down {
    left: calc(50% - 17.5px);
  }
  .deck-caption {
    margin-top: 14px;
  }
  .sub {
    font-size: 12px;
  }
  .map-wrap {
    height: 53dvh;
    min-height: 350px;
  }
  .map-toolbar {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  .list-map {
    grid-template-columns: 1fr;
  }
  .map-footer {
    gap: 15px;
  }
  .nav {
    bottom: 15px;
  }
  .collection {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .modal {
    padding: 24px;
  }
  .welcome .logo {
    margin-bottom: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* White canvas, purple accents. Poster artwork retains its dark legibility overlay. */
:root {
  color: #292332;
  background: #fff;
  --muted: #716879;
  --accent: #7b3fbc;
  --line: #e9e3ef;
}
body {
  background: #fff;
}
header {
  background: #fff;
}
.logo span {
  color: #8c4ccd;
}
.avatar {
  background: #f1e8fc;
  color: #7138ab;
}
.badge {
  color: #7d569b;
  border-color: #e0d0ed;
}
.pill {
  border-color: #e0d4ec;
  background: #faf7fd;
  color: #63447f;
}
.pill.selected {
  background: #773ab3;
  color: white;
  border-color: #773ab3;
}
.primary {
  background: linear-gradient(110deg, #8548c5, #68309f);
  color: white;
}
.secondary {
  border-color: #ded1e8;
  color: #70429a;
  background: white;
}
.direction {
  background: white;
  border-color: #d8bce9;
  color: #773bab;
  box-shadow: 0 4px 15px #793aae12;
}
.direction:hover {
  background: #f1e5fc;
}
.card-under {
  background: #e1c9f0;
  border-color: #d9b7eb;
}
.movie-card {
  box-shadow: 0 20px 55px #38204925;
  color: white;
}
.poster-info .pill {
  color: white;
  background: #ffffff20;
}
.card-back .eyebrow {
  color: #dab8ff;
}
.deck-caption button {
  color: #7846a0;
}
.nav {
  background: #fffffff2;
  border-color: #e9def1;
  box-shadow: 0 8px 30px #45246615;
}
.nav button {
  color: #867291;
}
.nav button.active {
  background: #8143b9;
  color: white;
}
.nav-name {
  color: #6e4f85;
}
.count-dot {
  background: #e9d5fb;
  color: #5a2b7e;
}
.search {
  background: #fbf9fd;
  border-color: #e5dbea;
  color: #382348;
}
.search::placeholder {
  color: #8c7f96;
}
.view-toggle {
  border-color: #e3d8ec;
}
.view-toggle button.active {
  background: #f0e4fb;
  color: #6a3395;
}
.map-wrap {
  background: radial-gradient(#b59bcc40 1px, transparent 1px), #fdfbff;
  background-size: 24px 24px;
  border-color: #e8deef;
}
.map-canvas,
.map-lines {
  width: 1800px;
  height: 1800px;
}
.map-lines line {
  stroke: #bd9bd3;
  stroke-width: 1.4;
}
.node {
  background: white;
  color: #66358b;
  border-color: #b893d1;
  box-shadow: 0 4px 18px #7442920b;
  animation: none;
}
.node.selected {
  background: #7b3eb1;
  color: white;
  border-color: #7b3eb1;
}
.node button {
  font-weight: 500;
}
.node .expand {
  border-color: #ba9acb;
}
.node.selected .expand {
  border-color: #ffffff50;
}
.map-tools {
  background: white;
  border-color: #dfcce9;
  color: #714393;
  box-shadow: 0 4px 20px #64248512;
}
.list-category {
  background: #fdfbff;
  border-color: #e7ddec;
}
.collection-card {
  background: white;
  border-color: #e6dceb;
}
.collection-card button {
  color: #7d3eb2;
}
.empty {
  border-color: #d8c5e5;
}
.scrim {
  background: #2f1d4455;
}
.modal {
  background: white;
  border-color: #eadff1;
  color: #312438;
  box-shadow: 0 25px 90px #37194b30;
}
.modal p {
  color: #786582;
}
.modal .close {
  color: #7e628e;
}
.rating button {
  color: #d6c9df;
}
.rating button.on {
  color: #8744be;
}
.tutorial-number {
  color: #8751b0;
}
.attribution {
  color: #8b7a97;
}
.welcome {
  background: white;
}
.welcome small {
  color: #7f6c8c;
}
#toast {
  background: #7438a8;
  color: white;
}
.action-stamp {
  background: #7438a8e8;
  color: white;
}

/* Minimal discovery: artwork, directional controls, and quiet navigation. */
body {
  background: radial-gradient(ellipse at 50% 48%, #f4ebfc 0%, #fff 64%);
  min-height: 100dvh;
}
header {
  height: 72px;
  border: 0;
  background: transparent;
  padding: 0 36px;
}
.logo {
  font-size: 30px;
}
.avatar {
  background: linear-gradient(135deg, #faf6ff, #eaddf9);
  box-shadow: 0 4px 18px #6326990d;
}
.discovery-screen {
  min-height: calc(100dvh - 72px);
  padding: 8px 24px 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.discover-layout {
  display: block;
  margin: 0 auto;
  width: min(440px, 100%);
}
.discover-layout .aside {
  display: none;
}
.deck {
  padding: 42px 42px 44px;
  max-width: 440px;
  margin: auto;
}
.movie-card {
  height: min(61dvh, 580px);
  width: 100%;
  aspect-ratio: auto;
  border-radius: 26px;
  box-shadow:
    0 20px 60px #49296a22,
    0 3px 10px #49296a0a;
}
.card-under {
  inset: 50px 49px 36px;
  border: 0;
  border-radius: 26px;
  background: linear-gradient(140deg, #e7d5f7, #c5a0df);
  transform: rotate(2deg);
  box-shadow: 0 12px 36px #774d9820;
}
.direction {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #fff, #f4ebfc);
  border: 0;
  box-shadow: 0 5px 20px #7437ab16;
  color: #8551b4;
}
.direction:hover {
  background: linear-gradient(145deg, #f2e4ff, #e6cef8);
  box-shadow: 0 7px 22px #7437ab25;
}
.direction.up {
  top: -2px;
}
.direction.down {
  bottom: 0;
}
.direction.left {
  left: -3px;
}
.direction.right {
  right: -3px;
}
.deck-caption {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 8px;
}
.deck-caption button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #9e7cb6;
}
.deck-caption svg {
  width: 17px;
  height: 17px;
}
.nav {
  border: 0;
  padding: 7px 12px;
  background: #ffffffeb;
  box-shadow:
    0 10px 45px #63308318,
    0 1px 4px #63308308;
  gap: 10px;
  border-radius: 24px;
}
.nav button.active {
  background: linear-gradient(135deg, #a66de2, #7434b6);
  box-shadow: 0 4px 15px #803aba26;
}
.nav button {
  width: 48px;
}
.attribution {
  max-width: 420px;
  font-size: 8px;
  line-height: 1.5;
  margin: 16px auto 0;
  color: #a295ac;
}
.poster-info {
  bottom: 25px;
  left: 25px;
  right: 25px;
}
.poster-kicker {
  display: none;
}
.poster-info h2 {
  font-size: 29px;
}
.poster-info .pill {
  font-size: 10px;
  backdrop-filter: blur(8px);
}
.movie-card.is-flipped:after {
  display: none;
}
.movie-card.is-flipped {
  touch-action: pan-y;
  cursor: default;
  background: #fff;
  color: #302238;
}
.card-back {
  height: 100%;
  padding: 30px;
  background: linear-gradient(150deg, #fff, #f7effe);
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.card-back .eyebrow {
  color: #9564b3;
  font-size: 9px;
  letter-spacing: 2px;
}
.card-back h2 {
  font-size: 27px;
  line-height: 1.2;
  color: #34243f;
  margin: 18px 0;
}
.card-back p {
  color: #766381;
  line-height: 1.8;
  font-size: 14px;
}
.back-hint {
  display: block;
  margin-top: 25px;
  color: #a188b3;
  font-size: 10px;
}
.map-toolbar {
  justify-content: center;
}
.map-help {
  color: #9c7ab6;
  padding: 8px;
}
.map-wrap {
  border: 0;
  box-shadow: 0 12px 60px #6532870a;
  background: radial-gradient(ellipse at center, #f4eafb, transparent 70%), #fdfcfe;
}
.node {
  border: 1px solid #dccae8;
  box-shadow: 0 5px 18px #69388c0b;
}
.node.selected {
  background: linear-gradient(120deg, #9860d0, #783bb4);
  border-color: transparent;
  box-shadow: 0 5px 18px #783bb425;
}
.node button {
  font-size: inherit;
}
.node.root {
  font-weight: 500;
}
.search {
  border: 0;
  background: #f6f1fa;
  box-shadow: inset 0 1px 3px #61358605;
}
.view-toggle {
  border: 0;
  background: #f5effa;
}
.view-toggle button.active {
  background: white;
  box-shadow: 0 3px 12px #713c930b;
}
.map-footer .sub {
  font-size: 11px;
}
.heading {
  font-weight: 500;
}
.modal {
  border: 0;
  box-shadow: 0 30px 100px #50236925;
}
.secondary {
  border: 0;
  background: #f4edf9;
}
.primary {
  box-shadow: 0 5px 18px #793bae25;
}
@media (max-width: 650px) {
  header {
    height: 60px;
    padding: 0 22px;
  }
  .discovery-screen {
    min-height: calc(100dvh - 60px);
    padding: 5px 20px 105px;
  }
  .deck {
    max-width: 355px;
    padding: 36px 36px 38px;
  }
  .movie-card {
    height: min(58dvh, 500px);
    max-height: none;
    border-radius: 23px;
  }
  .direction {
    width: 34px;
    height: 34px;
  }
  .direction.up,
  .direction.down {
    left: calc(50% - 17px);
  }
  .poster-info h2 {
    font-size: 24px;
  }
  .card-back {
    padding: 24px;
  }
  .card-back h2 {
    font-size: 24px;
  }
  .map-toolbar {
    gap: 12px;
  }
  .search {
    width: 100%;
  }
  .map-wrap {
    height: 55dvh;
  }
  .workspace:not(.discovery-screen) {
    padding-top: 10px;
  }
  .attribution {
    margin-top: 10px;
  }
  .deck-caption {
    margin-top: 6px;
  }
}
@media (max-height: 700px) and (min-width: 651px) {
  .movie-card {
    height: 54dvh;
  }
  .discovery-screen {
    padding-bottom: 95px;
  }
  .attribution {
    display: none;
  }
}

/* The next real poster responds to the distance dragged in every direction. */
.deck {
  isolation: isolate;
}
.card-under {
  --reveal: 0;
  inset: 42px 42px 44px;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 50% 65%;
  transform: translateY(calc(24px * (1 - var(--reveal)))) scale(calc(0.86 + 0.14 * var(--reveal)))
    rotate(calc(3deg * (1 - var(--reveal))));
  filter: brightness(calc(0.82 + 0.18 * var(--reveal)));
  transition:
    transform 460ms cubic-bezier(0.2, 0.85, 0.25, 1.15),
    filter 350ms ease;
  will-change: transform;
  box-shadow: 0 16px 45px #47256822;
  color: white;
}
.card-under img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-under:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 38%, #100b17ee 100%);
  pointer-events: none;
}
.card-under .poster-info {
  z-index: 1;
}
.card-under.promoting {
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 300ms ease;
}
.movie-card {
  transition:
    transform 460ms cubic-bezier(0.2, 0.85, 0.25, 1.15),
    opacity 300ms ease;
  will-change: transform;
}
.movie-card.dragging,
.card-under.dragging {
  transition: none;
}
.movie-card.departing {
  transition:
    transform 420ms cubic-bezier(0.3, 0.05, 0.65, 1),
    opacity 360ms ease-in;
}
.direction {
  z-index: 3;
}
.movie-card {
  z-index: 1;
}
.discovery-screen {
  overflow: clip;
}
.card-under .poster-kicker {
  display: none;
}
@media (max-width: 650px) {
  .card-under {
    inset: 36px 36px 38px;
    border-radius: 23px;
  }
}

.poster-info .poster-logline {
  font-size: 12px;
  line-height: 1.55;
  color: #f2eaf8;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 6px #0006;
}
@media (max-width: 650px) {
  .poster-info .poster-logline {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 9px;
  }
}

.watched-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.watched-search {
  margin-top: 25px;
}
.watched-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
.review-label {
  display: block;
  margin: 22px 0 9px;
  font-size: 12px;
  color: #79548e;
}
#movie-review {
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid #e7d9f0;
  border-radius: 14px;
  background: #fcf9ff;
  color: #46314e;
  padding: 14px;
}
#movie-review:focus {
  outline: 2px solid #bd8cde;
  outline-offset: 2px;
}
.film-results {
  max-height: 320px;
  overflow: auto;
  margin-top: 18px;
}
.film-results button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  text-align: left;
  padding: 13px 4px;
  border-bottom: 1px solid #eee5f4;
  font-size: 13px;
}
.film-results span {
  color: #9f8aaa;
  margin-left: 15px;
}
@media (max-width: 400px) {
  .nav {
    gap: 4px;
    padding: 7px 9px;
  }
  .nav button {
    width: 43px;
  }
  .watched-heading .primary {
    padding: 12px 15px;
  }
}

.loading-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: radial-gradient(ellipse at 50% 50%, #f2e6ff 0%, #fff 60%);
}
.loading-brand {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -3px;
  color: #33233e;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: brand-arrive 450ms ease-out both;
}
.loading-brand span {
  display: inline-block;
  color: #934fcd;
  font-size: 51px;
  animation: brand-orbit 2s ease-in-out infinite;
}
.loading-line {
  height: 3px;
  width: 82px;
  border-radius: 10px;
  overflow: hidden;
  background: #eaddf5;
}
.loading-line:after {
  content: '';
  display: block;
  width: 45%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #d3acef, #8642c1);
  animation: loading-glide 1s ease-in-out infinite alternate;
}
.welcome-word {
  font-size: clamp(64px, 12vw, 106px);
  letter-spacing: -5px;
  line-height: 1.2;
  -webkit-text-stroke: 0;
  color: #8240bc;
  background: none;
  max-width: 100%;
  overflow-wrap: normal;
}
.welcome-content {
  width: min(560px, 90vw);
}
@keyframes brand-arrive {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes brand-orbit {
  0%,
  100% {
    transform: rotate(0);
    opacity: 0.65;
  }
  50% {
    transform: rotate(90deg);
    opacity: 1;
  }
}
@keyframes loading-glide {
  from {
    transform: translateX(-25%);
  }
  to {
    transform: translateX(150%);
  }
}

.tonight-control {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 auto 19px;
  border-radius: 30px;
  background: linear-gradient(125deg, #fff, #f2e8fc);
  box-shadow: 0 5px 22px #793baa12;
  color: #846498;
  padding: 3px 9px;
}
.tonight-control button {
  padding: 10px 12px;
  font-size: 12px;
}
.tonight-control strong {
  font-weight: 500;
  color: #6c329e;
  margin-left: 3px;
}
.tonight-control span {
  margin-left: 12px;
}
.genre-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 25px 0;
}
.genre-choices .pill {
  padding: 11px 17px;
  font-size: 13px;
}
.discovery-screen .movie-card {
  height: min(56dvh, 550px);
}
@media (max-width: 650px) {
  .tonight-control {
    margin-bottom: 14px;
  }
  .discovery-screen .movie-card {
    height: min(52dvh, 475px);
  }
}

.logo .wordmark {
  display: block;
  width: 106px;
  height: auto;
}
.welcome .logo {
  display: flex;
  justify-content: center;
}
.welcome .logo .wordmark {
  width: 180px;
}
.loading-brand .wordmark {
  display: block;
  width: 210px;
  height: auto;
}
.logo {
  padding: 0;
  line-height: 1;
}
.loading-brand {
  letter-spacing: normal;
}
/* Two persistent faces rotate independently of the swipe container. */
.movie-card {
  perspective: 1400px;
  overflow: visible;
  background: transparent !important;
}
.movie-card:after {
  display: none;
}
.card-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.movie-card.is-flipped .card-rotor {
  transform: rotateY(180deg);
}
.card-front,
.movie-card .card-back {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-radius: 26px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-front {
  background: #271d31;
}
.card-front:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 38%, #100b17ee 100%);
  pointer-events: none;
}
.card-front .poster-info {
  z-index: 1;
}
.movie-card .card-back {
  transform: rotateY(180deg);
  overflow-y: auto;
}
.movie-card:not(.is-flipped) .card-back {
  pointer-events: none;
}
.movie-card.is-flipped .card-front {
  pointer-events: none;
}
.action-stamp {
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  padding: 25px;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(140deg, #b77beaee, #7433b9ee);
  box-shadow: 0 14px 65px #22073466;
  backdrop-filter: blur(12px);
  pointer-events: none;
  color: white;
}
.action-stamp .icon {
  width: 100%;
  height: 100%;
  stroke-width: 2.4;
}
.swipe-seen .icon {
  animation: eye-blink 1.15s ease-in-out infinite;
  transform-origin: center;
}
@keyframes eye-blink {
  0%,
  32%,
  55%,
  100% {
    transform: scaleY(1);
  }
  43% {
    transform: scaleY(0.08);
  }
}
.detail-scores {
  display: flex;
  gap: 32px;
  margin: 22px 0;
}
.detail-scores > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.detail-scores strong {
  font-size: 25px;
  color: #7944a6;
}
.detail-scores span {
  font-size: 11px;
  color: #927aa2;
}
.movie-source-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.movie-source-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 24px;
  background: #f2e9fb;
  color: #77429e;
  text-decoration: none;
  font-size: 12px;
}
.modal .match-note {
  font-size: 11px;
  line-height: 1.5;
  color: #9986a6;
}
@media (prefers-reduced-motion: reduce) {
  .card-rotor {
    transition: none;
  }
  .swipe-seen .icon {
    animation: none;
  }
}
@media (min-width: 651px) {
  .discover-layout {
    width: min(620px, 100%);
  }
  .deck {
    max-width: 620px;
    width: min(620px, calc((100dvh - 245px) * 0.7 + 84px));
    padding: 38px 42px 42px;
  }
  .movie-card {
    height: clamp(360px, calc(100dvh - 245px), 800px);
    max-height: none;
  }
  .card-back h2 {
    font-size: 32px;
  }
}
.card-back .detail-scores {
  gap: 22px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.card-back .detail-scores strong {
  font-size: 24px;
}
.card-back .movie-source-links {
  margin: 22px 0;
}
.card-back .back-hint {
  display: block;
  margin-top: 18px;
}
.animation-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #71468b;
}
.animation-choice input {
  width: 21px;
  height: 21px;
  accent-color: #884bbb;
  flex-shrink: 0;
}
.origin-controls {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.lean-controls {
  margin-top: 22px;
}
.lean-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #71468b;
}
html[data-theme='dark'] .lean-label {
  color: #cdb6ea;
}

/* Flixby: one poster ratio, sized to the available viewport. */
header {
  height: 64px;
}
.logo .wordmark {
  width: 124px;
  height: auto;
}
.welcome .logo .wordmark {
  width: 220px;
}
.guide-button {
  color: #8050b4;
  padding: 3px;
}
.butler-hand {
  width: 32px;
  height: 32px;
  display: block;
}
.discovery-screen {
  --poster-width: min(calc(100vw - 100px), calc((100dvh - 242px) * 2/3), 600px);
  justify-content: flex-start;
  min-height: calc(100dvh - 64px);
  padding: 5px 12px 94px;
  overflow: clip;
}
.discovery-screen .discover-layout {
  width: calc(var(--poster-width) + 76px);
  max-width: 100%;
  margin: 0 auto;
}
.discovery-screen .deck {
  width: 100%;
  max-width: none;
  padding: 26px 38px 28px;
}
.discovery-screen .movie-card {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 2/3;
  border-radius: 24px;
}
.discovery-screen .card-under {
  inset: 26px 38px 28px;
  border-radius: 24px;
}
.movie-card img,
.card-under img {
  object-fit: contain;
}
.discovery-screen .direction {
  width: clamp(32px, 4dvh, 42px);
  height: clamp(32px, 4dvh, 42px);
}
.discovery-screen .direction.up,
.discovery-screen .direction.down {
  left: 50%;
  translate: -50% 0;
}
.discovery-screen .direction.up {
  top: 0;
}
.discovery-screen .direction.down {
  bottom: 0;
}
.discovery-screen .direction.left,
.discovery-screen .direction.right {
  top: 50%;
  translate: 0 -50%;
}
.discovery-screen .direction.left {
  left: 0;
}
.discovery-screen .direction.right {
  right: 0;
}
.discovery-screen .direction svg {
  width: 55%;
  height: 55%;
}
.discovery-tools {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto 6px;
  flex-wrap: wrap;
}
.discovery-tools .tonight-control {
  margin: 0;
  max-width: 100%;
}
.ask-button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #7840b2;
  padding: 10px 13px;
  border-radius: 24px;
  background: linear-gradient(125deg, #f8f2ff, #ece0ff);
  box-shadow: 0 4px 20px #71379c0c;
}
.request-chip {
  font-size: 11px;
  color: #774898;
  max-width: 85vw;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 5px;
}
.discovery-screen .deck-caption {
  margin-top: 8px;
  gap: 15px;
}
.deck-caption #details {
  width: auto;
  display: flex;
  gap: 6px;
  font-size: 12px;
}
.discovery-screen .attribution {
  margin: 7px auto 0;
  font-size: 8px;
}
.poster-info {
  bottom: 20px;
  left: 22px;
  right: 22px;
}
.poster-info h2 {
  font-size: clamp(24px, 3.6dvh, 36px);
}
.poster-logline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Explicit face visibility prevents mirrored text in Safari compositing. */
.card-rotor {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  border-radius: inherit;
}
.card-front,
.movie-card .card-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: inherit;
}
.card-front {
  transform: translateZ(1px);
}
.movie-card .card-back {
  transform: rotateY(180deg) translateZ(1px);
  visibility: hidden;
  transition: visibility 0s 180ms;
  justify-content: flex-start;
  padding: clamp(18px, 3dvh, 30px);
}
.movie-card.is-flipped .card-back {
  visibility: visible;
}
.movie-card.is-flipped .card-front {
  visibility: hidden;
  transition: visibility 0s 180ms;
}
.movie-card:not(.is-flipped) .card-front {
  visibility: visible;
  transition: visibility 0s 180ms;
}
.card-back h2 {
  font-size: clamp(23px, 3dvh, 32px);
  margin: 12px 0;
}
.card-back p {
  font-size: 14px;
  line-height: 1.6;
}
.card-back .detail-scores {
  margin: 14px 0;
  gap: 14px;
}
.card-back .detail-scores strong {
  font-size: 22px;
}
.card-back .movie-source-links {
  margin: 14px 0;
}
.card-back .back-hint {
  position: sticky;
  bottom: 0;
  background: #f8f1ffed;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  color: #704b8a;
}
.card-extra[hidden] {
  display: none;
}
.trailer-player {
  aspect-ratio: 16/9;
  width: 100%;
  margin: 12px 0;
}
.trailer-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}
.trailer-fallback {
  font-size: 11px;
  color: #785592;
}
.trailer-slot .secondary {
  margin: 12px 0;
}
.toast-undo {
  color: white;
  text-decoration: underline;
  font-weight: 700;
}
.ask-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
#ask-query {
  display: block;
  width: 100%;
  min-height: 110px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e4d7ed;
  border-radius: 16px;
  font: inherit;
  resize: vertical;
  background: #fcfaff;
  color: #352443;
}
.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  isolation: isolate;
}
.tour-hole {
  position: fixed;
  border-radius: 20px;
  box-shadow: 0 0 0 9999px #211333ad;
  border: 2px solid #d6b5ff;
  pointer-events: none;
  transition: all 0.24s ease;
}
.tour-card {
  position: fixed;
  width: min(330px, calc(100vw - 24px));
  padding: 20px;
  background: linear-gradient(145deg, #fff, #f7edff);
  border-radius: 24px;
  box-shadow: 0 20px 70px #19042d44;
  color: #352443;
}
.tour-card .butler-hand {
  float: right;
  width: 42px;
  height: 42px;
  color: #8752b2;
}
.tour-card h2 {
  font-size: 21px;
  margin: 12px 0;
}
.tour-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #796484;
}
.tour-card small {
  font-size: 11px;
  color: #9779ad;
}
.tour-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}
.tour-card button {
  padding: 10px 16px;
}
.tour-skip {
  color: #876e98;
}
@media (max-width: 650px) {
  header {
    height: 58px;
    padding: 0 18px;
  }
  .discovery-screen {
    --poster-width: min(calc(100vw - 84px), calc((100dvh - 235px) * 2/3));
    padding: 4px 8px 95px;
    min-height: calc(100dvh - 58px);
  }
  .discovery-screen .discover-layout {
    width: calc(var(--poster-width) + 68px);
  }
  .discovery-screen .deck {
    padding: 22px 34px 24px;
  }
  .discovery-screen .card-under {
    inset: 22px 34px 24px;
  }
  .discovery-tools {
    gap: 5px;
  }
  .ask-button,
  .tonight-control button {
    font-size: 11px;
    padding: 9px;
  }
  .poster-info {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .poster-info .pill {
    font-size: 9px;
    padding: 4px 7px;
  }
  .poster-info .poster-logline {
    font-size: 11px;
    line-height: 1.45;
  }
  .top-right {
    gap: 10px;
  }
  .logo .wordmark {
    width: 112px;
  }
}
@media (max-height: 520px) {
  .discovery-screen {
    --poster-width: min(calc(100vw - 100px), 260px);
  }
  .discovery-screen .attribution {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-rotor,
  .card-front,
  .movie-card .card-back,
  .tour-hole {
    transition: none;
  }
}
#toast.show {
  pointer-events: auto;
}
@media (min-width: 651px) and (min-height: 521px) {
  .discovery-screen {
    --poster-width: min(calc(100vw - 100px), calc((100dvh - 288px) * 2/3), 600px);
  }
}
.deck-caption #catalog-more {
  width: auto;
  font-size: 11px;
  padding: 0 8px;
}
.concierge-note {
  font-size: 11px;
  color: #826a93;
  max-width: 450px;
  text-align: center;
  margin: 0 auto 8px;
  line-height: 1.5;
}
.keyword-search {
  max-width: 800px;
  margin: 20px auto;
  padding: 16px;
}
.keyword-search .secondary {
  margin-bottom: 10px;
}
.keyword-search .pill {
  font-size: 12px;
}
.search-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  max-width: 90vw;
  margin: 2px auto 6px;
}
.swiping-label {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
  color: #857091;
}
.swiping-label strong {
  font-weight: 500;
  color: #613789;
}
.back-discover {
  padding: 7px 12px;
  border-radius: 18px;
  background: #f3ecfa;
  color: #72429a;
  font-size: 12px;
}
.concierge-note:empty {
  display: none;
}
.empty [data-back-discover] {
  display: block;
  margin: 18px auto 0;
}
.empty button {
  margin: 6px;
}
@media (max-width: 650px) {
  .search-context {
    max-width: 95%;
    gap: 3px 8px;
  }
  .swiping-label {
    font-size: 12px;
  }
}

/* Short screens use document flow so navigation cannot cover the poster. */
@media (max-height: 520px) {
  .nav {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 20px auto;
    width: max-content;
    max-width: calc(100vw - 24px);
  }
  .discovery-screen {
    padding-bottom: 20px;
  }
  .discovery-screen .discover-layout {
    margin-bottom: 16px;
  }
}
/* Account settings and device appearance */
.account-panel h2 {
  margin: 0 0 22px;
}
.account-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 5px;
  background: #f5f1fa;
  border-radius: 16px;
  margin-bottom: 26px;
}
.account-tabs button {
  white-space: nowrap;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 12px;
  color: #6d587c;
}
.account-tabs button[aria-current='page'] {
  background: white;
  color: #7836b6;
  box-shadow: 0 3px 14px #512b7314;
}
.account-content {
  min-height: 240px;
}
.account-content h3 {
  margin: 0;
  font-size: 19px;
}
.account-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 28px;
}
.account-person p {
  margin: 5px 0;
}
.account-initial {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #ab64ed, #6434b7);
  color: white;
  font-size: 24px;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.account-stats div {
  padding: 18px 8px;
  border-radius: 18px;
  background: #f8f5fc;
  text-align: center;
}
.account-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 500;
}
.account-stats span {
  display: block;
  font-size: 12px;
  color: #7e6c8c;
  margin-top: 5px;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 0;
  text-align: left;
  border-bottom: 1px solid #eee7f3;
  font-size: 14px;
}
.account-row input {
  width: 19px;
  height: 19px;
  accent-color: #8740c9;
  flex-shrink: 0;
}
.account-help {
  font-size: 12px !important;
}
.account-interests {
  max-height: 260px;
  overflow: auto;
  margin: 16px 0 24px;
}
.account-interests .pill {
  background: #f4edf9;
  border: 0;
  color: #754993;
}
.theme-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.theme-options button {
  padding: 22px 8px;
  border: 2px solid #eee7f3;
  border-radius: 18px;
  font-size: 13px;
}
.theme-options button span {
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
}
.look-options {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 12px;
}
.theme-options button[aria-pressed='true'] {
  border-color: #9453d2;
  background: #f5edfc;
  color: #7734b2;
}
.account-danger {
  color: #b44260;
}
.account-import {
  padding: 18px 0;
  font-size: 13px;
}
.account-import summary {
  cursor: pointer;
}
.account-alert {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff1dc;
  color: #795222 !important;
}
.modal:has(.account-panel) {
  width: min(620px, 100%);
}
html[data-theme='dark'] {
  color-scheme: dark;
  --muted: #b9b9bd;
  --accent: #c49af4;
  --line: #ffffff20;
  background: #0b0b0c;
  color: #f2f2f3;
}
html[data-theme='dark'] body {
  background: radial-gradient(ellipse at 50% 20%, #29292b 0%, #171719 48%, #080809 100%);
  color: #f2f2f3;
}
html[data-theme='dark']
  :is(
    .modal,
    .welcome,
    .nav,
    .taste-group,
    .taste-row-head,
    .tonight-control,
    .ask-button,
    .direction,
    .view-toggle,
    .map-tools,
    .map-help,
    .search,
    .map-paging button
  ) {
  background: #222224;
  color: #ededee;
  border-color: #414144;
}
html[data-theme='dark'] :is(.modal p, .sub, .aside p, .welcome p, .attribution, .deck-caption, .account-stats span) {
  color: #b9b9bd;
}
html[data-theme='dark'] :is(input, textarea, select) {
  background: #1c1c1e;
  color: #f2f2f3;
  border-color: #48484c;
}
html[data-theme='dark'] :is(.account-tabs, .account-stats div) {
  background: #18181a;
}
html[data-theme='dark'] .account-tabs button {
  color: #bdbdc2;
}
html[data-theme='dark'] .account-tabs button[aria-current='page'] {
  background: #343437;
  color: #f1ddff;
}
html[data-theme='dark'] :is(.account-row, .theme-options button) {
  border-color: #414144;
}
html[data-theme='dark'] .theme-options button[aria-pressed='true'] {
  background: #303033;
  border-color: #bb80f0;
  color: #efdbff;
}
/* Settings → Flixby → Voices: open rows, a little waveform that dances while the sample plays. */
.voice-group {
  margin: 26px 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a76a0;
  font-weight: 600;
}
.voice-options {
  display: flex;
  flex-direction: column;
}
.voice-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 15px 2px;
  text-align: left;
  border-bottom: 1px solid #eee7f3;
  transition: color 0.2s;
}
.voice-option:last-child {
  border-bottom: 0;
}
.voice-text {
  flex: 1;
  min-width: 0;
}
.voice-text strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.voice-text small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #7e6c8c;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.voice-wave i {
  display: block;
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: #cdbadf;
  transition: background 0.2s;
}
.voice-wave i:nth-child(2) {
  height: 70%;
}
.voice-wave i:nth-child(3) {
  height: 100%;
}
.voice-wave i:nth-child(4) {
  height: 50%;
}
.voice-mark {
  font-size: 12px;
  color: #8740c9;
  opacity: 0;
  transition: opacity 0.2s;
}
.voice-option[aria-pressed='true'] .voice-mark {
  opacity: 1;
}
.voice-option[aria-pressed='true'] strong {
  color: #7836b6;
}
.voice-option[aria-pressed='true'] .voice-wave i {
  background: linear-gradient(#ab64ed, #e0457b);
}
.voice-option.playing .voice-wave i {
  animation: voice-bar 0.9s ease-in-out infinite;
}
.voice-option.playing .voice-wave i:nth-child(2) {
  animation-delay: -0.2s;
}
.voice-option.playing .voice-wave i:nth-child(3) {
  animation-delay: -0.45s;
}
.voice-option.playing .voice-wave i:nth-child(4) {
  animation-delay: -0.65s;
}
@keyframes voice-bar {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice-option.playing .voice-wave i {
    animation: none;
  }
}
html[data-theme='dark'] .voice-option {
  border-color: #414144;
}
html[data-theme='dark'] .voice-text small,
html[data-theme='dark'] .voice-group {
  color: #a99cb8;
}
html[data-theme='dark'] .voice-option[aria-pressed='true'] strong {
  color: #efdbff;
}
html[data-theme='dark'] .voice-wave i {
  background: #5a5060;
}
html[data-theme='dark'] .account-interests .pill {
  background: #303033;
  color: #e1c5fa;
}
html[data-theme='dark'] #screen.taste-spatial {
  background: radial-gradient(ellipse at 50% 45%, #29292b 0%, #171719 48%, #080809 100%);
}
html[data-theme='dark'] .taste-spatial .node:not(.selected) {
  background: #272729;
  color: #e4e4e7;
  border-color: #48484c;
}
html[data-theme='dark'] :is(.taste-group summary, .taste-row, .taste-evidence li) {
  border-color: #414144;
}
html[data-theme='dark'] .taste-pick {
  color: #dedee2;
}
@media (max-width: 480px) {
  .account-tabs button {
    padding: 10px 8px;
    font-size: 11px;
  }
  .account-tabs {
    gap: 1px;
  }
  .account-stats {
    gap: 8px;
  }
  .scrim:has(.account-panel) {
    padding: 12px;
  }
  .modal:has(.account-panel) {
    padding: 22px 18px;
  }
}

html[data-theme='dark'] .scrim {
  background: #0009;
}
html[data-theme='dark'] .welcome:before,
html[data-theme='dark'] .welcome:after {
  background: #ffffff04;
}
html[data-theme='dark'] body {
  min-height: 100dvh;
  background-attachment: fixed;
}
.onboarding {
  max-width: 650px;
  margin: auto;
  min-height: 100dvh;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.onboarding > .wordmark {
  width: 140px;
  margin-bottom: 38px;
}
.onboarding h1 {
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -1.5px;
}
.onboarding > p {
  line-height: 1.8;
  color: var(--muted);
}
.onboard-skip {
  margin-top: 20px;
  padding: 12px;
}
.onboard-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.onboard-top .wordmark {
  width: 110px;
}
.onboard-top button {
  font-size: 12px;
  padding: 12px;
}
.onboard-progress {
  font-size: 12px;
  margin: 12px 0;
}
.onboard-card {
  position: relative;
  width: min(350px, calc((100dvh - 250px) * 0.6667));
  min-width: 180px;
  aspect-ratio: 2/3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px #0003;
  background: #252329;
  touch-action: pan-y;
  transition:
    transform 0.18s,
    opacity 0.18s;
  user-select: none;
}
.onboard-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onboard-copy {
  position: absolute;
  inset: 35% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: white;
  background: linear-gradient(transparent, #000e);
}
.onboard-copy h2 {
  font-size: 24px;
  margin: 0;
}
.onboard-copy p {
  font-size: 11px;
  line-height: 1.5;
  margin: 7px 0 0;
}
.onboard-feedback {
  position: absolute;
  top: 35%;
  left: 0;
  right: 0;
  font-size: 80px;
  color: white;
  text-shadow: 0 3px 20px #000;
}
.onboard-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
}
.onboard-actions button {
  font-size: 30px;
  min-width: 65px;
  padding: 8px;
  color: #a66de0;
}
.onboard-actions button:nth-child(2) {
  font-size: 12px;
  color: var(--muted);
}
.onboard-actions small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.onboarding > .sub {
  font-size: 12px;
  max-width: 400px;
}
.onboarding:has(.onboard-card) {
  overflow: hidden;
}
.onboarding:has(.onboard-card) > .sub {
  margin: 8px 0 0;
}
@media (max-height: 550px) {
  .onboarding {
    justify-content: flex-start;
  }
  .onboard-card {
    width: 190px;
  }
}
.onboard-welcome {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 45%, #f6f1fc, #fff 72%);
  animation: welcome-lift 0.65s cubic-bezier(0.65, 0, 0.25, 1) 2.1s both;
}
.onboard-welcome-message {
  text-align: center;
  animation: welcome-message 2.1s ease both;
}
.onboard-welcome-message span {
  display: block;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.onboard-welcome-message img {
  display: block;
  width: min(280px, 65vw);
  margin: 20px auto;
}
.onboard-welcome-message p {
  font-size: 16px;
  color: #79658a;
}
.welcome-continue {
  position: absolute;
  bottom: 10%;
  padding: 14px;
  font-size: 13px;
  color: #8964ab;
}
.swipe-demo {
  height: 125px;
  position: relative;
  margin: 12px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #00000008;
}
.swipe-demo > img {
  height: 105px;
  width: 70px;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 5px 14px #0003;
  animation: demo-both 3.4s ease-in-out infinite;
}
.demo-hand {
  position: absolute;
  left: calc(50% - 5px);
  top: 57px;
  animation: demo-both 3.4s ease-in-out infinite;
}
.demo-hand .butler-hand {
  width: 36px;
  height: 36px;
  transform: rotate(-20deg);
}
.demo-cue {
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 24px;
  color: #8c50c4;
}
.onboarding-tour[data-direction='right'] :is(.swipe-demo > img, .demo-hand) {
  animation-name: demo-right;
}
.onboarding-tour[data-direction='left'] :is(.swipe-demo > img, .demo-hand) {
  animation-name: demo-left;
}
.onboarding-tour .tour-card {
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.onboarding-tour .tour-card > .butler-hand {
  display: none;
}
html[data-theme='dark'] .onboard-welcome {
  background: radial-gradient(ellipse at 50% 40%, #29292b, #080809);
}
html[data-theme='dark'] .onboard-welcome-message p {
  color: #b9b9bd;
}
html[data-theme='dark'] .tour-card {
  background: #242426;
  color: #ededee;
}
html[data-theme='dark'] .tour-card p {
  color: #b9b9bd;
}
@keyframes welcome-message {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  25%,
  75% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px);
  }
}
@keyframes welcome-lift {
  to {
    transform: translateY(-100%);
  }
}
@keyframes demo-both {
  0%,
  45%,
  100% {
    transform: translateX(0) rotate(0);
  }
  22% {
    transform: translateX(62px) rotate(12deg);
  }
  73% {
    transform: translateX(-62px) rotate(-12deg);
  }
}
@keyframes demo-right {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  60% {
    transform: translateX(65px) rotate(12deg);
  }
}
@keyframes demo-left {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  60% {
    transform: translateX(-65px) rotate(-12deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .onboard-welcome,
  .onboard-welcome-message,
  .swipe-demo > img,
  .demo-hand {
    animation: none !important;
    transform: none !important;
    opacity: 1;
  }
}
/* Teach swiping directly on the real onboarding poster. */
.poster-touring .onboarding {
  justify-content: flex-start;
  padding-top: 18px;
  padding-bottom: 210px;
  overflow: hidden;
}
.poster-touring .onboard-card {
  width: min(310px, calc((100dvh - 370px) * 0.6667));
  min-width: 140px;
  z-index: 42;
  animation: poster-demo-right 2.4s ease-in-out infinite;
}
.poster-touring .onboard-card[data-demo='left'] {
  animation-name: poster-demo-left;
}
.poster-touring .onboard-card[data-demo='skip'] {
  animation: none;
}
.poster-touring .onboard-copy p:last-child {
  display: none;
}
.poster-touring .onboard-actions {
  position: relative;
  z-index: 42;
  margin-top: 10px;
}
.poster-touring .onboarding > .sub {
  visibility: hidden;
}
.poster-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 41;
  background: #00000022;
}
.poster-tour-instructions {
  position: absolute;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100% - 32px));
  text-align: center;
  color: inherit;
}
.poster-tour-instructions small {
  font-size: 11px;
  color: var(--muted);
}
.poster-tour-instructions h2 {
  font-size: 24px;
  margin: 8px 0;
}
.poster-tour-instructions p {
  font-size: 13px;
  line-height: 1.5;
  margin: 8px auto 14px;
  max-width: 340px;
}
.poster-tour-instructions > div {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.poster-tour-instructions .tour-skip {
  font-size: 12px;
}
.poster-tutorial-finger {
  position: absolute;
  top: 45%;
  left: 47%;
  z-index: 5;
  filter: drop-shadow(0 3px 8px #0008);
  color: #a66de0;
  pointer-events: none;
}
.poster-tutorial-finger .butler-hand {
  width: 65px;
  height: 65px;
  transform: rotate(-20deg);
}
.poster-tutorial-cue {
  position: absolute;
  top: 24%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  color: white;
  text-shadow: 0 3px 15px #0009;
  pointer-events: none;
}
.onboard-card[data-demo='skip'] .poster-tutorial-finger {
  display: none;
}
.tutorial-target {
  border-radius: 18px;
  outline: 2px solid #b881ef;
  outline-offset: 4px;
  background: #a66de020;
}
.poster-touring .onboard-card {
  box-shadow:
    0 20px 70px #0004,
    0 0 0 3px #bf95ef66;
}
@keyframes poster-demo-right {
  0%,
  15%,
  100% {
    transform: translateX(0) rotate(0);
  }
  55%,
  70% {
    transform: translateX(55px) rotate(9deg);
  }
}
@keyframes poster-demo-left {
  0%,
  15%,
  100% {
    transform: translateX(0) rotate(0);
  }
  55%,
  70% {
    transform: translateX(-55px) rotate(-9deg);
  }
}
@media (max-height: 560px) {
  .poster-touring .onboarding {
    width: 52%;
    margin: 0;
    padding: 12px 8px;
  }
  .poster-touring .onboard-top {
    display: none;
  }
  .poster-touring .onboard-card {
    width: 130px;
    min-width: 0;
  }
  .poster-touring .onboard-copy {
    padding: 10px;
  }
  .poster-touring .onboard-copy h2 {
    font-size: 16px;
  }
  .poster-touring .onboard-actions {
    gap: 4px;
  }
  .poster-tour-instructions {
    left: 75%;
    width: 44%;
    bottom: 50%;
    transform: translate(-50%, 50%);
  }
  .poster-tour-instructions > div {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .poster-touring .onboard-card {
    animation: none !important;
  }
}
/* White collection surfaces need their own foreground in dark mode. */
html[data-theme='dark'] .collection-card {
  background: #fff;
  color: #32253e;
  --muted: #665772;
}
html[data-theme='dark'] .collection-card h3 {
  color: #32253e;
}
html[data-theme='dark'] .collection-card p {
  color: #665772;
}
html[data-theme='dark'] .collection-card button {
  color: #6b329b;
}
/* Keep both faces mounted through the entire rotation; no delayed visibility snap. */
.movie-card .card-front,
.movie-card .card-back,
.movie-card.is-flipped .card-front,
.movie-card.is-flipped .card-back,
.movie-card:not(.is-flipped) .card-front {
  visibility: visible;
  transition: none;
}
.movie-card .card-rotor {
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.onboard-card {
  perspective: 1400px;
}
.onboard-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: inherit;
  will-change: transform;
}
.onboard-card.is-flipped .onboard-rotor {
  transform: rotateY(180deg);
}
.onboard-front,
.onboard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
}
.onboard-front {
  transform: translateZ(1px);
}
.onboard-front > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onboard-back {
  transform: rotateY(180deg) translateZ(1px);
  background: linear-gradient(140deg, #fff, #f5effb);
  color: #34243f;
  padding: 26px;
  text-align: left;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.onboard-back h2 {
  font-size: 25px;
  margin: 0 0 20px;
}
.onboard-back p {
  font-size: 15px;
  line-height: 1.7;
}
.onboard-back small {
  display: block;
  margin-top: 24px;
  color: #704b8a;
}
.onboard-card:not(.is-flipped) .onboard-back,
.onboard-card.is-flipped .onboard-front {
  pointer-events: none;
}
.onboard-card.is-flipped {
  touch-action: pan-y;
}
@media (prefers-reduced-motion: reduce) {
  .movie-card .card-rotor,
  .onboard-rotor {
    transition: none;
  }
}
.evaluation {
  max-width: 1000px;
  margin: 40px auto;
  padding: 24px;
  color: #32253e;
  background: #fff;
  border-radius: 24px;
}
.evaluation p {
  line-height: 1.7;
  color: #665772;
}
.evaluation-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.evaluation-stats div {
  background: #f5effb;
  padding: 20px;
  border-radius: 16px;
}
.evaluation-stats strong {
  display: block;
  font-size: 30px;
}
.evaluation-stats span {
  font-size: 12px;
}
.evaluation-table {
  overflow: auto;
}
.evaluation table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.evaluation th,
.evaluation td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}
.eval-bar {
  display: block;
  height: 5px;
  background: #9453d2;
  border-radius: 8px;
  margin-top: 6px;
}
.evaluation section {
  margin: 32px 0;
}
.usage-days {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 90px;
  margin: 12px 0 24px;
}
.usage-days span {
  flex: 1;
  background: linear-gradient(#b06ee8, #7b3fc4);
  border-radius: 4px 4px 0 0;
}
.usage-days span.none {
  background: #e8ddf3;
}

.back-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 16px;
}
.back-genres .pill {
  margin: 0;
}

#email-auth-form {
  display: grid;
  gap: 12px;
}
#email-auth-form label {
  display: block;
  margin-bottom: 6px;
}
#email-auth-form input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line, #ddd);
  border-radius: 12px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
}
#auth-message {
  min-height: 1.4em;
}
#auth-code {
  letter-spacing: 0.2em;
  font-size: 1.2rem;
}

html[data-theme='dark'] #email-auth-form input {
  background: #26212c;
  color: #f7f3fa;
  border-color: #55465f;
}

.oauth-result {
  max-width: 520px;
  margin: 12vh auto;
  padding: 32px 24px;
  border: 1px solid #e9e1f5;
  border-radius: 24px;
  background: #fff;
  color: #24202c;
  box-shadow: 0 18px 60px #44227712;
  text-align: center;
}
.oauth-result .wordmark {
  width: 150px;
  height: auto;
  margin-bottom: 28px;
}
.oauth-result h1 {
  font-size: 28px;
  line-height: 1.2;
}
.oauth-result p {
  line-height: 1.6;
  margin: 20px 0 28px;
}
.oauth-result [hidden] {
  display: none;
}

/* Public policy pages and persistent homepage links. */
.site-legal-footer {
  padding: 24px 20px 120px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.site-legal-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 8px;
}
.site-legal-footer a {
  padding: 8px 0;
}
.legal-page {
  min-height: 100dvh;
  background: linear-gradient(145deg, #fbf8ff, #fff 45%);
  color: #292332;
  padding: 36px max(20px, calc((100vw - 800px) / 2)) 40px;
  font-family: 'DM Sans', Arial, sans-serif;
}
.legal-home {
  display: inline-block;
  padding: 8px 0;
}
.legal-home img {
  display: block;
  width: 152px;
  height: auto;
}
.legal-document {
  padding-top: 40px;
}
.legal-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7137ac;
  font-weight: 700;
}
.legal-document h1 {
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 16px 0;
}
.legal-summary {
  font-size: 19px;
  line-height: 1.65;
  color: #655770;
}
.legal-date {
  font-size: 12px;
  line-height: 1.6;
  color: #74677e;
  border-bottom: 1px solid #e5ddec;
  padding-bottom: 32px;
  margin-bottom: 36px;
}
.legal-document section {
  margin: 32px 0;
}
.legal-document h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.legal-document p,
.legal-document li {
  line-height: 1.8;
}
.legal-document li {
  margin-bottom: 12px;
}
.legal-document ul {
  padding-left: 22px;
}
.legal-document a,
.legal-navigation a {
  color: #7137ac;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.legal-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-top: 1px solid #e5ddec;
  padding-top: 24px;
  margin-top: 40px;
  font-size: 14px;
}
.legal-navigation a {
  padding: 8px 0;
}
.legal-page a:focus-visible {
  outline: 3px solid #7137ac;
  outline-offset: 4px;
}
.account-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 22px;
}
.account-legal a {
  padding: 6px 0;
  text-underline-offset: 3px;
}
@media (prefers-color-scheme: dark) {
  .legal-page {
    background: linear-gradient(150deg, #242129, #0e0d10);
    color: #f4effa;
  }
  .legal-summary,
  .legal-date {
    color: #c2b5ce;
  }
  .legal-kicker,
  .legal-document a,
  .legal-navigation a {
    color: #cca6fa;
  }
  .legal-date,
  .legal-navigation {
    border-color: #ffffff26;
  }
}
@media (max-width: 480px) {
  .legal-page {
    padding-top: 20px;
  }
  .legal-document {
    padding-top: 24px;
  }
  .legal-document h1 {
    letter-spacing: -1px;
  }
  .legal-summary {
    font-size: 17px;
  }
}

/* Sign-in provider icon buttons (shared: gate, account panel, offline welcome) */
.provider-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 4px;
}
.provider-button {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0;
  box-shadow: 0 4px 14px #37194b14;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.provider-button img {
  width: 52px;
  height: 52px;
  display: block;
  pointer-events: none;
}
.provider-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #5d2a8f26;
}
.provider-button:active {
  transform: translateY(0) scale(0.96);
}
.provider-button:focus-visible {
  outline: 3px solid #8548c5;
  outline-offset: 3px;
}
.account-signin {
  margin: 18px 0 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.account-signin h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.auth-return {
  font-size: 13px;
  color: var(--muted);
}
.google-continue img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}
.welcome .gate-lead {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* First-visit gate: sign in or continue as guest before the tutorial */
.onboard-gate {
  animation: gate-in 0.45s ease both;
  padding: 24px 16px;
  gap: 8px;
  overflow: auto;
}
.onboard-gate .onboard-welcome-message {
  animation: none;
}
.onboard-gate .onboard-welcome-message img {
  width: min(240px, 60vw);
  margin: 14px auto;
}
.gate-choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, 100%);
  margin-top: 18px;
  animation: gate-in 0.5s ease 0.15s both;
}
.gate-lead {
  margin: 0;
  font-size: 14px;
  color: #5c4a69;
}
.gate-or {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.gate-or::before,
.gate-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.gate-guest {
  justify-content: center;
  width: 100%;
  font-size: 14px;
  padding: 14px 23px;
  color: #fff;
}
html[data-theme='dark'] .gate-guest {
  color: #fff;
}
.gate-choices small {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body:has(.onboard-welcome) .scrim {
  z-index: 70;
}
html[data-theme='dark'] .gate-lead {
  color: #c9c9cd;
}
html[data-theme='dark'] .provider-button {
  box-shadow: 0 4px 18px #0007;
}
@media (prefers-reduced-motion: reduce) {
  .onboard-gate,
  .gate-choices,
  .provider-button {
    animation: none !important;
    transition: none;
  }
}

/* Collection filters: sort + genre chips */
.list-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.list-search {
  width: 100%;
  max-width: 520px;
}
.list-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.list-sort select {
  font: inherit;
  font-size: 13px;
  color: inherit;
  background: #faf7fd;
  border: 1px solid #e0d4ec;
  border-radius: 99px;
  padding: 8px 30px 8px 14px;
  color: #4b3360;
}
.list-genres {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin: 0 -2px;
  scrollbar-width: thin;
}
.list-genres .pill {
  flex: none;
  margin: 0;
  cursor: pointer;
}
.list-genres .pill:focus-visible,
.list-sort select:focus-visible {
  outline: 3px solid #8548c5;
  outline-offset: 2px;
}
.list-filters + .collection {
  margin-top: 18px;
}
#watched-filters .list-filters {
  margin-top: 16px;
}
.list-match {
  color: #7b3fbc;
  font-weight: 600;
}
/* "Still in theatres" / "In theatres Dec 18" on list cards, search rows, details and the poster (Vlad, 2026-10-23) */
.theatre-tag {
  color: #a8570c;
  font-weight: 600;
  white-space: nowrap;
}
html[data-theme='dark'] .theatre-tag {
  color: #f2b35c;
}
.service-pill.theatre-pill {
  color: #8a4608;
}
html[data-theme='dark'] .list-sort select {
  background: #222224;
  border-color: #414144;
  color: #ededee;
}
html[data-theme='dark'] .list-genres .pill {
  background: #2a2a2d;
  color: #e1c5fa;
  border-color: #414144;
}
html[data-theme='dark'] .list-genres .pill.selected {
  background: #773ab3;
  color: #fff;
  border-color: #773ab3;
}

/* Lists home, list screens and Add to list */
.list-back {
  font-size: 13px;
  color: #7d3eb2;
  padding: 6px 0;
  margin-bottom: 2px;
}
.list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.list-title-row .heading {
  overflow-wrap: anywhere;
}
.list-menu {
  display: flex;
  gap: 8px;
}
.list-menu .secondary {
  padding: 9px 16px;
}
.secondary.danger {
  color: #b3261e;
}
.list-section {
  margin-top: 28px;
}
.list-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.list-section h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
}
.list-section .sub {
  margin-top: 4px;
}
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.list-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e6dceb;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.list-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #5d2a8f18;
}
.list-tile:focus-visible {
  outline: 3px solid #8548c5;
  outline-offset: 2px;
}
.list-thumbs {
  display: flex;
  width: 100%;
  aspect-ratio: 3/2;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #f3eafb, #e7d8f6);
}
.list-thumbs img {
  flex: 1;
  min-width: 0;
  height: 100%;
  object-fit: cover;
}
.list-tile-name {
  font-size: 14px;
  font-weight: 600;
  color: #2c2234;
  overflow-wrap: anywhere;
}
.list-tile-count {
  font-size: 12px;
  color: var(--muted);
}
.list-hint {
  margin-top: 12px;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.order-buttons {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}
.order-buttons button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4edf9;
}
.order-buttons button:disabled {
  opacity: 0.35;
}
.watched-actions {
  flex-wrap: wrap;
}
.list-picker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
}
.list-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.list-check:hover {
  background: #faf6fd;
}
.list-check input {
  width: 20px;
  height: 20px;
  accent-color: #773ab3;
}
.list-check span {
  flex: 1;
  font-size: 14px;
}
.list-check small {
  font-size: 12px;
  color: var(--muted);
}
.new-list-form {
  margin-top: 8px;
}
.new-list-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.new-list-form > div {
  display: flex;
  gap: 8px;
}
.new-list-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  padding: 11px 16px;
  border: 1px solid #e0d4ec;
  border-radius: 99px;
  background: #faf7fd;
  color: inherit;
}
.new-list-form input:focus-visible {
  outline: 3px solid #8548c5;
  outline-offset: 1px;
}
html[data-theme='dark'] .list-tile {
  background: #222224;
  border-color: #414144;
}
html[data-theme='dark'] .list-tile-name {
  color: #ededee;
}
html[data-theme='dark'] .list-thumbs {
  background: linear-gradient(135deg, #2c2c30, #1e1e21);
}
html[data-theme='dark'] .list-back {
  color: #c49af4;
}
html[data-theme='dark'] .list-check:hover {
  background: #ffffff0d;
}
html[data-theme='dark'] .new-list-form input {
  background: #1b1b1d;
  border-color: #414144;
}
html[data-theme='dark'] .order-buttons button {
  background: #2e2e31;
  color: #ededee;
}
html[data-theme='dark'] .secondary.danger {
  color: #ff8a80;
}
@media (prefers-reduced-motion: reduce) {
  .list-tile {
    transition: none;
  }
}

/* Find a film (Discover) */
.discovery-tools .find-button svg {
  width: 16px;
  height: 16px;
}
.find-modal {
  width: min(640px, 100%);
}
.find-input {
  width: 100%;
  margin: 8px 0 4px;
  font-size: 15px;
  color: inherit;
}
.find-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.find-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px;
  border: 1px solid #eee5f4;
  border-radius: 14px;
  background: #fff;
}
.find-poster {
  padding: 0;
  width: 64px;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: #efe6f8;
}
.find-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.find-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.find-copy h3 {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.find-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.find-state {
  color: #2f7d4f;
  font-weight: 600;
}
.find-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.find-actions button {
  font-size: 12px;
  padding: 8px 13px;
}
.find-actions .primary svg {
  width: 14px;
  height: 14px;
}
.find-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}
html[data-theme='dark'] .find-row {
  background: #1b1b1d;
  border-color: #36363a;
}
html[data-theme='dark'] .find-state {
  color: #7ad3a0;
}

/* Micro-animations. Everything here is skipped when the viewer prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Bottom navigation: chosen tab pops, badges bump when they grow, icons lift on hover */
  .nav button {
    transition:
      background 0.25s ease,
      color 0.25s ease,
      transform 0.2s ease;
  }
  .nav button:hover:not(.active) {
    transform: translateY(-2px);
  }
  .nav button:active {
    transform: scale(0.92);
  }
  .nav button.pop .icon {
    animation: icon-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .count-dot.bump {
    animation: dot-bump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .nav button .nav-name {
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
    transform: translateY(-3px);
  }
  .nav button:hover .nav-name,
  .nav button:focus .nav-name {
    transform: none;
  }
  /* Swipe buttons: springy hover/press and a ring when the action fires */
  .direction {
    transition:
      background 0.2s,
      transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow 0.25s;
  }
  .direction:active {
    transform: scale(0.9);
  }
  .direction.fired {
    animation: fired 0.5s ease-out;
  }
  .direction.fired .icon {
    animation: icon-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .direction.right:hover .icon {
    animation: nudge-x 0.6s ease;
  }
  .direction.left:hover .icon {
    animation: shake 0.45s ease;
  }
  .direction.up:hover .icon {
    animation: twinkle 0.7s ease;
  }
  .direction.down:hover .icon {
    animation: nudge-x 0.6s ease;
  }
  /* Discover tools and deck controls */
  .ask-button {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .ask-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px #71379c22;
  }
  .ask-button:hover .icon {
    animation: twinkle 0.7s ease;
  }
  .find-button:hover .icon {
    animation: search-sweep 0.6s ease;
  }
  #undo.spin .icon {
    animation: spin-back 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .guide-button:hover svg {
    animation: wave 0.8s ease;
    transform-origin: 60% 90%;
  }
  /* Buttons: gentle press feedback */
  .primary,
  .secondary,
  .provider-button,
  .list-tile,
  .find-actions button {
    transition:
      transform 0.15s ease,
      box-shadow 0.2s ease,
      background 0.2s ease;
  }
  .primary:active,
  .secondary:active,
  .find-actions button:active {
    transform: scale(0.96);
  }
  /* Lists */
  .list-tile .list-thumbs img {
    transition: transform 0.35s ease;
  }
  .list-tile:hover .list-thumbs img {
    transform: scale(1.06);
  }
  .list-tile:active {
    transform: scale(0.98);
  }
  .list-check input:checked {
    animation: check-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .order-buttons button {
    transition:
      transform 0.15s ease,
      background 0.2s ease;
  }
  .order-buttons button:not(:disabled):hover {
    transform: translateY(-1px);
  }
  .list-genres .pill {
    transition:
      background 0.2s ease,
      color 0.2s ease,
      transform 0.15s ease;
  }
  .list-genres .pill:active {
    transform: scale(0.94);
  }
  /* Find a film */
  .find-results .find-row {
    animation: rise 0.28s ease both;
  }
  .find-results .find-row:nth-child(2) {
    animation-delay: 0.03s;
  }
  .find-results .find-row:nth-child(3) {
    animation-delay: 0.06s;
  }
  .find-results .find-row:nth-child(4) {
    animation-delay: 0.09s;
  }
  .find-results .find-row:nth-child(n + 5) {
    animation-delay: 0.12s;
  }
  .find-row.just-added {
    animation: added 0.7s ease;
  }
  .find-actions .primary:disabled .icon path {
    stroke-dasharray: 24;
    animation: draw 0.4s ease both;
  }
  /* Toasts slide up with a little spring */
  #toast {
    transition:
      opacity 0.2s ease,
      transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}
@keyframes icon-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes dot-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes fired {
  0% {
    box-shadow: 0 0 0 0 #a771e099;
  }
  100% {
    box-shadow: 0 0 0 16px #a771e000;
  }
}
@keyframes nudge-x {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translateX(3px);
  }
  70% {
    transform: translateX(-1px);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  25% {
    transform: rotate(-12deg);
  }
  60% {
    transform: rotate(9deg);
  }
}
@keyframes twinkle {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: rotate(18deg) scale(1.15);
  }
}
@keyframes blink {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: scaleY(0.15);
  }
}
@keyframes search-sweep {
  0%,
  100% {
    transform: none;
  }
  40% {
    transform: translate(-2px, -2px) rotate(-10deg);
  }
}
@keyframes spin-back {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-360deg);
  }
}
@keyframes wave {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: rotate(-14deg);
  }
  45% {
    transform: rotate(10deg);
  }
  70% {
    transform: rotate(-6deg);
  }
}
@keyframes check-pop {
  0% {
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes added {
  0% {
    box-shadow: 0 0 0 0 #7b3fbc55;
    background: #f6eeff;
  }
  100% {
    box-shadow: 0 0 0 10px #7b3fbc00;
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.offline-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0;
  padding: 9px 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  background: #fff1dc;
  color: #795222;
}
html[data-theme='dark'] .offline-banner {
  background: #3a2c17;
  color: #f3d9ae;
}
/* Accessibility (audit L4): 44px touch targets with unchanged visuals, readable TMDB credit, visible empty stars. */
.direction::before {
  content: '';
  position: absolute;
  inset: min(0px, calc(50% - 22px));
}
.modal .close {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  margin: -12px -12px 0 0;
  border-radius: 50%;
}
.attribution,
.discovery-screen .attribution {
  font-size: 11px;
  color: #6e5c80;
}
html[data-theme='dark'] .attribution {
  color: #b9b9bd;
}
.rating button {
  color: #9784a8;
}
html[data-theme='dark'] .rating button {
  color: #85858b;
}
html[data-theme='dark'] .rating button.on {
  color: #c49af4;
}

/* ===== Redesign phase 1 (phone + shared): edge action buttons, drag feedback, peeking stack, labelled nav ===== */
:root {
  --fx-ink: #241532;
  --fx-muted: #6a5a7c;
  --fx-soft: #f4edf9;
  --fx-line: #e6dcef;
  --fx-brand: #7b3fbc;
  --fx-card: #fff;
  --fx-shadow: rgba(60, 20, 100, 0.18);
}
html[data-theme='dark'] {
  --fx-ink: #f1eef6;
  --fx-muted: #b4abc0;
  --fx-soft: #2a2530;
  --fx-line: #3a3442;
  --fx-brand: #c49af4;
  --fx-card: #1d1b20;
  --fx-shadow: rgba(0, 0, 0, 0.45);
}
html[data-theme='dark'] .logo .wordmark {
  filter: brightness(1.45) saturate(1.15) drop-shadow(0 0 10px rgba(196, 154, 244, 0.3));
}
/* Header: round help button and gradient initial avatar */
#app header {
  height: 64px;
  padding: 0 20px;
}
#app .top-right {
  gap: 10px;
}
#app .help-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--fx-line);
  background: var(--fx-card);
  color: var(--fx-brand);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}
#app .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f52d6, #642aa6);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(123, 63, 188, 0.3);
}
#app .avatar .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
/* Bottom navigation: always-visible labels, equal columns, count badges on the icon */
#app .nav {
  left: 50%;
  right: auto;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 28px));
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 24px;
  background: var(--fx-card);
  border: 1px solid var(--fx-line);
  box-shadow: 0 10px 30px var(--fx-shadow);
}
#app .nav button {
  flex: 1;
  width: auto;
  height: auto;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  color: var(--fx-muted);
}
#app .nav button.active {
  background: var(--fx-soft);
  color: var(--fx-brand);
}
#app .nav .nav-icon {
  position: relative;
  display: grid;
  place-items: center;
}
#app .nav .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}
#app .nav button .nav-name {
  position: static;
  opacity: 1;
  transform: none;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  white-space: nowrap;
}
#app .nav .count-dot {
  position: absolute;
  top: -8px;
  right: -14px;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 99px;
  background: #7b3fbc;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
#app .nav button:focus-visible {
  outline: 2px solid var(--fx-brand);
  outline-offset: 2px;
}
@media (max-height: 520px) {
  #app .nav {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 16px auto;
  }
}
/* Every screen leaves room for the floating navigation */
#app .workspace:not(.discovery-screen) {
  padding-bottom: calc(118px + env(safe-area-inset-bottom));
}
/* Discover tools: Ask, Find and the genre chip */
.discovery-screen .discovery-tools {
  gap: 8px;
  margin: 2px auto 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.discovery-screen .discovery-tools .ask-button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 99px;
  background: var(--fx-soft);
  color: var(--fx-brand);
  box-shadow: none;
}
.discovery-screen .discovery-tools .ask-button svg {
  width: 16px;
  height: 16px;
}
.discovery-screen .discovery-tools .tonight-control {
  margin: 0;
  padding: 0 4px 0 0;
  border-radius: 99px;
  background: var(--fx-card);
  border: 1.5px solid var(--fx-line);
  box-shadow: none;
  color: var(--fx-ink);
}
.discovery-screen .discovery-tools .tonight-control #tonight-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 41px;
  padding: 0 10px 0 14px;
  font-size: 13px;
  color: var(--fx-ink);
}
.discovery-screen .tonight-control strong {
  margin: 0;
  font-weight: 700;
  color: var(--fx-brand);
}
.discovery-screen .tonight-control .chev {
  margin: 0;
  font-size: 11px;
  color: var(--fx-ink);
}
.discovery-screen .tonight-control #tonight-clear {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
  color: var(--fx-muted);
}
/* Deck geometry: --btn is the action button size, --out how far it reaches outside the card, --lab the room for the bottom label. */
.discovery-screen {
  --btn: 60px;
  --out: 34px;
  --lab: 30px;
  --poster-width: min(calc(100vw - 16px - 2 * var(--out)), calc((100dvh - 392px) * 2/3), 440px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.discovery-screen .discover-layout {
  width: calc(var(--poster-width) + 2 * var(--out));
  max-width: 100%;
}
.discovery-screen .deck {
  padding: var(--out) var(--out) calc(var(--out) + var(--lab));
}
.discovery-screen .movie-card {
  border-radius: 24px;
  box-shadow:
    0 18px 40px rgba(60, 20, 100, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.08);
}
.discovery-screen .card-front,
.discovery-screen .movie-card .card-back {
  border-radius: 24px;
}
/* Peeking stack: the next poster waits slightly smaller and lower, then grows into place */
.discovery-screen .card-under {
  inset: var(--out) var(--out) calc(var(--out) + var(--lab));
  border-radius: 24px;
  border: 0;
  transform-origin: 50% 100%;
  transform: translateY(calc(16px * (1 - var(--reveal)))) scale(calc(0.94 + 0.06 * var(--reveal)));
  filter: brightness(calc(0.8 + 0.2 * var(--reveal)));
  opacity: calc(0.85 + 0.15 * var(--reveal));
  box-shadow: 0 12px 30px rgba(60, 20, 100, 0.16);
}
.discovery-screen .card-under .poster-info {
  opacity: calc(var(--reveal));
}
/* Edge action buttons */
.discovery-screen .deck .direction {
  width: var(--btn);
  height: var(--btn);
  border-radius: 50%;
  background: var(--fx-card);
  border: 1.5px solid var(--fx-line);
  box-shadow: 0 8px 20px var(--fx-shadow);
  display: grid;
  place-items: center;
  z-index: 4;
  translate: none;
  color: var(--fx-ink);
}
.discovery-screen .deck .direction > svg {
  width: 44%;
  height: 44%;
  stroke-width: 2.3;
}
.discovery-screen .deck .direction.up {
  top: 0;
  bottom: auto;
  left: 50%;
  right: auto;
  translate: -50% 0;
}
.discovery-screen .deck .direction.down {
  top: auto;
  bottom: var(--lab);
  left: 50%;
  right: auto;
  translate: -50% 0;
}
.discovery-screen .deck .direction.left,
.discovery-screen .deck .direction.right {
  top: calc(var(--out) + (100% - 2 * var(--out) - var(--lab)) * var(--side-y, 0.44));
  bottom: auto;
  translate: 0 -50%;
}
.discovery-screen .deck .direction.left {
  left: 0;
  right: auto;
}
.discovery-screen .deck .direction.right {
  right: 0;
  left: auto;
}
.discovery-screen .deck .direction[data-action='pass'] > svg {
  color: #d6406b;
}
.discovery-screen .deck .direction[data-action='queue'] > svg {
  color: #d98a0b;
}
.discovery-screen .deck .direction[data-action='maybe'] > svg {
  color: #2f7fd0;
}
.discovery-screen .deck .direction[data-action='library'] {
  background: linear-gradient(135deg, #a46be8, #6a2fae);
  border-color: transparent;
  color: #fff;
}
.discovery-screen .deck .direction[data-action='library'] > svg {
  fill: #fff;
  stroke: #fff;
}
.discovery-screen .deck .direction:hover {
  background: var(--fx-soft);
  transform: none;
}
.discovery-screen .deck .direction[data-action='library']:hover {
  background: linear-gradient(135deg, #9a5fe0, #5f27a0);
}
.discovery-screen .deck .direction:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 3px;
}
.dir-label {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--fx-card);
  border: 1px solid var(--fx-line);
  box-shadow: 0 2px 8px rgba(60, 20, 100, 0.12);
  color: var(--fx-ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}
/* While dragging: the target button grows and glows, the other three fade */
.deck .direction {
  transition:
    opacity 0.15s ease,
    scale 0.2s ease,
    box-shadow 0.2s ease;
}
.deck[data-drag] .direction {
  opacity: 0.3;
}
.deck[data-drag='library'] .direction[data-action='library'],
.deck[data-drag='pass'] .direction[data-action='pass'],
.deck[data-drag='queue'] .direction[data-action='queue'],
.deck[data-drag='maybe'] .direction[data-action='maybe'] {
  opacity: 1;
  scale: 1.07;
}
.deck.drag-ready[data-drag='library'] .direction[data-action='library'] {
  scale: 1.15;
  box-shadow:
    0 0 0 7px rgba(164, 107, 232, 0.3),
    0 8px 20px var(--fx-shadow);
}
.deck.drag-ready[data-drag='pass'] .direction[data-action='pass'] {
  scale: 1.15;
  box-shadow:
    0 0 0 7px rgba(214, 64, 107, 0.25),
    0 8px 20px var(--fx-shadow);
}
.deck.drag-ready[data-drag='queue'] .direction[data-action='queue'] {
  scale: 1.15;
  box-shadow:
    0 0 0 7px rgba(217, 138, 11, 0.25),
    0 8px 20px var(--fx-shadow);
}
.deck.drag-ready[data-drag='maybe'] .direction[data-action='maybe'] {
  scale: 1.15;
  box-shadow:
    0 0 0 7px rgba(47, 127, 208, 0.25),
    0 8px 20px var(--fx-shadow);
}
/* Stamp and colour tint on the card */
#movie-card .action-stamp {
  position: absolute;
  z-index: 6;
  top: 15%;
  left: 18px;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  display: block;
  padding: 4px 12px;
  border: 3px solid #fff;
  border-radius: 10px;
  background: rgba(123, 63, 188, 0.62);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(-12deg);
  opacity: calc(0.45 + 0.55 * var(--drag, 1));
  pointer-events: none;
}
#movie-card .action-stamp.stamp-pass {
  left: auto;
  right: 18px;
  transform: rotate(12deg);
  background: rgba(200, 48, 92, 0.66);
}
#movie-card .action-stamp.stamp-queue {
  top: auto;
  bottom: 38%;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  background: rgba(184, 110, 0, 0.7);
}
#movie-card .action-stamp.stamp-maybe {
  top: 16%;
  left: 50%;
  transform: translateX(-50%) rotate(6deg);
  background: rgba(36, 104, 176, 0.7);
}
#movie-card .drag-tint {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 24px;
  pointer-events: none;
  opacity: var(--drag, 0);
}
#movie-card .drag-tint[data-type='library'] {
  background: linear-gradient(90deg, transparent 35%, rgba(164, 107, 232, 0.5));
}
#movie-card .drag-tint[data-type='pass'] {
  background: linear-gradient(270deg, transparent 35%, rgba(224, 86, 122, 0.45));
}
#movie-card .drag-tint[data-type='queue'] {
  background: linear-gradient(0deg, transparent 35%, rgba(240, 170, 40, 0.42));
}
#movie-card .drag-tint[data-type='maybe'] {
  background: linear-gradient(180deg, transparent 35%, rgba(58, 141, 222, 0.42));
}
#movie-card .drag-tint[data-type='seen'] {
  background: radial-gradient(circle at 88% 6%, rgba(176, 92, 255, 0.55), transparent 60%);
}
/* Card front: match pill, title, meta line, genres, and the flip (i) button */
.discovery-screen .card-front .poster-info,
.discovery-screen .card-under .poster-info {
  left: 20px;
  right: 20px;
  bottom: calc(var(--btn) - var(--out) + 12px);
}
.match-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}
.match-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ef0b5;
}
.match-pill.match-ok i {
  background: #ffd27a;
}
.match-pill.match-low i {
  background: #ff9fb5;
}
.match-pill.match-new i {
  background: #d9cce6;
}
.discovery-screen .poster-info h2 {
  font-size: clamp(22px, 3.3dvh, 30px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.discovery-screen .poster-info .poster-meta {
  margin: 6px 0 9px;
  font-size: 13px;
  color: #efe6f6;
  line-height: 1.35;
}
.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.discovery-screen .poster-info .poster-tags .pill {
  margin: 0;
  padding: 4px 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11.5px;
}
.flip-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  font:
    700 18px/1 Georgia,
    'Times New Roman',
    serif;
  display: grid;
  place-items: center;
}
/* "I've watched this": a bright purple eye on the poster (owner, 2026-10-20); a soft glow, no box, keeps it visible on light posters */
.watched-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 60px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c58cff, #9333ea 60%, #7e22ce);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 4px 18px rgba(147, 51, 234, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.watched-button .icon {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}
.watched-button::before {
  content: '';
  position: absolute;
  inset: -4px;
}
.watched-button:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 6px 24px rgba(147, 51, 234, 0.75);
}
.watched-button:active {
  transform: scale(0.9);
}
.watched-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.discovery-screen .watched-button {
  top: 12px;
  right: 56px;
}
#movie-card .action-stamp.stamp-seen {
  top: 16px;
  left: auto;
  right: 16px;
  transform: rotate(6deg);
  background: rgba(126, 34, 206, 0.78);
}
.discovery-screen .maybe-flag .icon {
  width: 14px;
  height: 14px;
}
.flip-button::before {
  content: '';
  position: absolute;
  inset: -4px;
}
.flip-button:hover {
  background: rgba(255, 255, 255, 0.32);
}
.flip-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
/* Card back: scrolls inside the card; the action row stays put, so nothing is clipped or overlapped */
.discovery-screen .movie-card .card-back {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--fx-card);
  color: var(--fx-ink);
}
.back-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 22px 20px 8px;
}
.discovery-screen .card-back .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--fx-muted);
}
.discovery-screen .card-back h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 6px 0 12px;
  color: var(--fx-ink);
}
.back-scores {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.back-scores strong {
  display: block;
  font-weight: 800;
  color: var(--fx-brand);
  line-height: 1;
}
.back-match strong {
  font-size: 40px;
}
.back-rating strong {
  font-size: 22px;
}
.back-scores span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--fx-muted);
}
.discovery-screen .card-back .back-reason {
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--fx-soft);
  color: var(--fx-ink);
  font-size: 13.5px;
  line-height: 1.45;
}
.back-reason b {
  color: var(--fx-brand);
}
.discovery-screen .card-back .back-plot {
  margin: 0;
  color: var(--fx-muted);
  font-size: 14px;
  line-height: 1.55;
}
.back-plot.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  min-height: 36px;
  padding: 4px 0;
  color: var(--fx-brand);
  font-size: 13px;
  font-weight: 700;
}
.read-more[hidden] {
  display: none;
}
.back-credits {
  display: grid;
  gap: 6px;
  margin: 10px 0 10px;
  font-size: 13.5px;
  line-height: 1.4;
}
.back-credits div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}
.back-credits dt {
  color: var(--fx-muted);
}
.back-credits dd {
  margin: 0;
  color: var(--fx-ink);
  overflow-wrap: anywhere;
}
.back-player .trailer-player {
  margin: 4px 0 6px;
}
.back-player .trailer-fallback {
  display: inline-block;
  margin-bottom: 6px;
}
.back-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin: 2px 0 4px;
  font-size: 13px;
}
.back-links a,
.back-links button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--fx-brand);
  font-weight: 600;
  text-decoration: none;
}
.back-actions {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--fx-line);
  background: var(--fx-card);
}
.back-actions > span {
  flex: 1;
  display: flex;
  min-width: 0;
}
.back-actions > span:empty {
  display: none;
}
.back-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--fx-soft);
  color: var(--fx-brand);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.back-btn.back-primary {
  background: linear-gradient(135deg, #9a5fe0, #6a2fae);
  color: #fff;
}
.back-btn.is-disabled {
  color: var(--fx-muted);
  font-weight: 600;
}
.back-btn:focus-visible,
.back-links :focus-visible,
.read-more:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 2px;
}
/* Under the card: Undo appears after a swipe; More films and Details stay small */
.discovery-screen .deck-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  min-height: 44px;
}
.discovery-screen .deck-caption #undo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 44px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--fx-soft);
  color: var(--fx-brand);
  font-size: 14px;
  font-weight: 700;
}
.discovery-screen .deck-caption #undo svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}
.discovery-screen .deck-caption #undo:disabled {
  opacity: 0;
  pointer-events: none;
}
.discovery-screen .deck-caption #catalog-more,
.discovery-screen .deck-caption #details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: auto;
  height: 44px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fx-muted);
}
.discovery-screen .deck-caption #details svg {
  width: 15px;
  height: 15px;
}
.discovery-screen .attribution {
  margin: 2px auto 0;
  max-width: min(560px, 100%);
  font-size: 11px;
  line-height: 1.5;
  color: #6e5c80;
  text-align: center;
}
.attr-more {
  display: none;
}
html[data-theme='dark'] .discovery-screen .attribution {
  color: #b9b9bd;
}
@media (min-width: 651px) {
  .attr-more {
    display: inline;
  }
}
.streak-ask {
  position: absolute;
  z-index: 7;
  top: 28%;
  left: calc(var(--out) + 12px);
  right: calc(var(--out) + 12px);
  padding: 16px 14px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  color: #241532;
  text-align: center;
  box-shadow: 0 16px 40px rgba(40, 10, 70, 0.3);
}
.streak-ask h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}
.streak-ask p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5a4a6b;
}
.streak-ask-choices {
  display: grid;
  gap: 8px;
}
.streak-ask-choices button {
  min-height: 44px;
  font-size: 14px;
}
html[data-theme='dark'] .streak-ask {
  background: rgba(38, 35, 43, 0.97);
  color: #f1eef6;
}
html[data-theme='dark'] .streak-ask p {
  color: #cfc6da;
}
/* Phone sizes */
@media (max-width: 650px) {
  #app header {
    height: 58px;
    padding: 0 16px;
  }
  .discovery-screen {
    --poster-width: min(calc(100vw - 16px - 2 * var(--out)), calc((100dvh - 386px) * 2/3));
  }
}
/* Small or short phones: smaller buttons tucked further over the card edge so the poster stays large */
@media (max-width: 360px), (max-height: 700px) {
  .discovery-screen {
    --btn: 52px;
    --out: 22px;
    --lab: 26px;
    --poster-width: min(calc(100vw - 16px - 2 * var(--out)), calc((100dvh - 330px) * 2/3), 440px);
  }
  .dir-label {
    font-size: 10.5px;
    padding: 2px 7px;
  }
  .discovery-screen .discovery-tools .ask-button,
  .discovery-screen .discovery-tools .tonight-control #tonight-picker {
    font-size: 12px;
    padding: 0 11px;
  }
  .discovery-screen .poster-info .poster-meta {
    font-size: 12px;
  }
  #app .nav button {
    min-height: 48px;
  }
}
@media (max-height: 520px) {
  .discovery-screen {
    --poster-width: min(calc(100vw - 100px), 240px);
  }
}
/* Dark surfaces */
html[data-theme='dark'] .discovery-screen .discovery-tools .ask-button {
  background: #2a2530;
  color: #d7b8fa;
}
html[data-theme='dark'] #app .nav .count-dot {
  background: #7b3fbc;
  color: #fff;
}
/* Reduced motion: no tilt, spring or growth; states switch instantly */
@media (prefers-reduced-motion: reduce) {
  .deck .direction,
  .discovery-screen .card-under,
  #movie-card,
  .dir-label {
    transition: none !important;
  }
  .deck[data-drag] .direction {
    scale: none !important;
  }
}
/* Gate and welcome: provider buttons with text */
.provider-buttons.with-text {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(320px, 100%);
  margin: 12px auto 4px;
}
.provider-buttons.with-text .provider-button {
  width: auto;
  height: 52px;
  border-radius: 99px;
  padding: 0 20px 0 8px;
  justify-content: flex-start;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #e2d6ec;
  color: #241532;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.provider-buttons.with-text .provider-button img {
  width: 38px;
  height: 38px;
}
.provider-text {
  flex: 1;
  text-align: center;
  margin-right: 30px;
}
html[data-theme='dark'] .provider-buttons.with-text .provider-button {
  background: #232027;
  border-color: #45404d;
  color: #f1eef6;
}
/* The details side is for reading: the edge buttons step away so they never cover it (arrow keys are off there too) */
.deck.is-flipped .direction {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.deck .direction {
  transition:
    opacity 0.15s ease,
    scale 0.2s ease,
    box-shadow 0.2s ease,
    visibility 0.15s;
}
.discovery-screen .deck-caption #catalog-more,
.discovery-screen .deck-caption #details {
  white-space: nowrap;
}
@media (max-width: 360px), (max-height: 700px) {
  .discovery-screen {
    --side-y: 0.34;
  }
}
/* Toasts sit under the header so they never cover Undo or the navigation */
#toast {
  top: calc(64px + env(safe-area-inset-top));
  bottom: auto;
  width: max-content;
  max-width: min(440px, calc(100vw - 32px));
  text-align: center;
  transform: translateX(-50%) translateY(-12px);
}
#toast.show {
  transform: translateX(-50%);
}
/* ---- Phone fit (≤600px wide): the card fills the visible viewport (Safari toolbars included), glass edge buttons
   without label pills, no row under the card (Undo floats above the nav, More films lives in the genre menu). ---- */
:root {
  --vh: 100vh;
}
@supports (height: 100dvh) {
  :root {
    --vh: 100dvh;
  }
}
/* Discover owns the whole screen, so the legal footer would only sit under Safari's toolbar; it stays on every other tab and page */
body:has(#app .discovery-screen) .site-legal-footer {
  display: none;
}
.genre-shuffle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 4px 0 16px;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--fx-soft);
  color: var(--fx-brand);
  text-align: left;
}
.genre-hint {
  margin: -4px 0 12px;
  font-size: 13px;
  color: var(--fx-muted, #846498);
}
.genre-done {
  display: block;
  width: 100%;
  margin: 14px 0 4px;
}
.genre-shuffle svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.genre-shuffle span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.genre-shuffle strong {
  font-size: 14px;
}
.genre-shuffle small {
  font-size: 12px;
  color: var(--fx-muted);
  font-weight: 500;
}
.genre-shuffle:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 2px;
}
/* Card back: an equal-column button row that never overlaps; the card flattens after the flip so Safari scrolls the text */
.back-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}
.back-actions > span {
  display: flex;
  min-width: 0;
}
.back-actions > span:empty {
  display: none;
}
.back-btn {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card.flip-settled .card-rotor {
  transform: none;
  transition: none;
}
.movie-card.flip-settled .card-back {
  transform: none;
}
.movie-card.flip-settled .card-front {
  visibility: hidden;
}
.back-links .back-more {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (max-width: 600px) {
  :root {
    --hdr: 58px;
    --nav-gap: 10px;
    --nav-h: 66px;
    --below: calc(var(--nav-gap) + var(--nav-h) + 19px);
  }
  #app header {
    height: var(--hdr);
  }
  #app .nav {
    bottom: calc(var(--nav-gap) + env(safe-area-inset-bottom));
    padding: 5px;
  }
  .discovery-screen {
    --btn: 44px;
    --out: 8px;
    --lab: 0px;
    --side-y: 0.4;
    --tools: 50px;
    --card-h: calc(
      var(--vh) - var(--hdr) - var(--tools) - 2 * var(--out) - var(--below) - env(safe-area-inset-bottom) - 1px
    );
    --poster-width: max(150px, min(calc(100vw - 24px - 2 * var(--out)), calc(var(--card-h) * 2/3), 440px));
    position: relative;
    min-height: calc(var(--vh) - var(--hdr));
    padding: 2px 8px calc(var(--below) + env(safe-area-inset-bottom));
  }
  .discovery-screen:has(.search-context) {
    --tools: 104px;
  }
  .discovery-screen .discovery-tools {
    margin: 0 auto 4px;
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .discovery-screen .discovery-tools .ask-button,
  .discovery-screen .discovery-tools .tonight-control #tonight-picker {
    font-size: 12.5px;
    padding: 0 11px;
    white-space: nowrap;
  }
  .discovery-screen .discovery-tools .tonight-control {
    min-width: 0;
  }
  .discovery-screen .discovery-tools .tonight-control strong {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 34vw;
  }
  .discovery-screen .discover-layout {
    position: static;
    margin: auto;
  }
  .discovery-screen .deck-column {
    position: static;
  }
  /* Glass edge buttons sitting over the card edges; the label pills only show on wider screens */
  .discovery-screen .deck .direction {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: 0 4px 14px rgba(30, 10, 50, 0.22);
  }
  .discovery-screen .deck .direction[data-action='library'] {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(255, 255, 255, 0.65);
  }
  .discovery-screen .deck .direction[data-action='library'] > svg {
    fill: #8a46d4;
    stroke: #8a46d4;
  }
  .discovery-screen .deck .direction:hover,
  .discovery-screen .deck .direction[data-action='library']:hover {
    background: rgba(255, 255, 255, 0.88);
  }
  .discovery-screen .deck .direction > svg {
    width: 48%;
    height: 48%;
  }
  .discovery-screen .dir-label {
    display: none;
  }
  .discovery-screen .deck .direction.down {
    bottom: 0;
  }
  .discovery-screen .card-front .poster-info,
  .discovery-screen .card-under .poster-info {
    left: 16px;
    right: 16px;
    bottom: calc(var(--btn) - var(--out) + 8px);
  }
  .discovery-screen .flip-button {
    top: 12px;
    right: 12px;
  }
  /* Nothing under the card: Details lives on the card (i), More films in the genre menu, Undo floats */
  .discovery-screen .deck-caption {
    min-height: 0;
    height: 0;
    margin: 0;
  }
  .discovery-screen .deck-caption #catalog-more,
  .discovery-screen .deck-caption #details {
    display: none;
  }
  .discovery-screen .deck-caption #undo {
    position: absolute;
    z-index: 8;
    right: 16px;
    bottom: calc(var(--nav-gap) + var(--nav-h) + env(safe-area-inset-bottom) + 6px);
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    box-shadow: 0 4px 14px var(--fx-shadow);
    background: var(--fx-card);
    border: 1px solid var(--fx-line);
  }
  .discovery-screen .deck-caption #undo::before {
    content: '';
    position: absolute;
    inset: -5px;
  }
  .discovery-screen .attribution {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--nav-gap) + var(--nav-h) + env(safe-area-inset-bottom) + 3px);
    margin: 0;
    font-size: 11px;
    line-height: 15px;
    pointer-events: none;
  }
  /* Card back on phones: tighter type so plot and credits come sooner */
  .back-scroll {
    padding: 18px 16px 8px;
  }
  .discovery-screen .card-back h2 {
    font-size: 22px;
    margin: 4px 0 10px;
  }
  .back-actions {
    padding: 8px 10px 10px;
    gap: 6px;
  }
  .back-btn {
    font-size: 12.5px;
    padding: 0 6px;
    border-radius: 11px;
  }
}
/* Shorter visible viewports (Safari with its toolbars): slimmer header and nav, smaller back-side stats */
@media (max-width: 600px) and (max-height: 760px) {
  :root {
    --hdr: 52px;
    --nav-gap: 6px;
    --nav-h: 58px;
  }
  #app .nav {
    padding: 4px;
  }
  #app .nav button {
    min-height: 48px;
    padding: 4px 2px;
    gap: 2px;
  }
  .back-match strong {
    font-size: 30px;
  }
  .back-rating strong {
    font-size: 19px;
  }
  .back-scores {
    gap: 18px;
    margin-bottom: 10px;
  }
  .back-scores span {
    font-size: 11.5px;
  }
  .discovery-screen .card-back .back-reason {
    font-size: 13px;
    padding: 9px 11px;
    margin-bottom: 10px;
  }
  .discovery-screen .card-back .back-plot {
    font-size: 13.5px;
    line-height: 1.5;
  }
}
html[data-theme='dark'] .discovery-screen .deck .direction,
html[data-theme='dark'] .discovery-screen .deck .direction[data-action='library'] {
  background: rgba(32, 30, 36, 0.66);
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-theme='dark'] .discovery-screen .deck .direction[data-action='library'] > svg {
  fill: #c49af4;
  stroke: #c49af4;
}
@media (max-width: 600px) {
  html[data-theme='dark'] .discovery-screen .deck .direction:hover {
    background: rgba(44, 40, 50, 0.8);
  }
}
@media (min-width: 601px) {
  html[data-theme='dark'] .discovery-screen .deck .direction {
    background: #222224;
    border-color: #414144;
  }
  html[data-theme='dark'] .discovery-screen .deck .direction[data-action='library'] {
    background: linear-gradient(135deg, #a46be8, #6a2fae);
    border-color: transparent;
  }
  html[data-theme='dark'] .discovery-screen .deck .direction[data-action='library'] > svg {
    fill: #fff;
    stroke: #fff;
  }
}
@media (max-width: 600px) {
  .discovery-screen .card-under {
    transform: translateY(calc(7px * (1 - var(--reveal)))) scale(calc(0.95 + 0.05 * var(--reveal)));
  }
}
/* ---- Desktop (wide and tall-enough windows): navigation tabs in the header, taste panel on the left, "Why this film" on the right.
   The four action buttons sit fully outside the card with a clear gap, so none of them covers the poster. ---- */
.desk-panel {
  display: none;
}
/* Tablets and laptops (≥601px): the same outside-the-card buttons; Undo floats above the navigation, More films lives in the genre menu */
@media (min-width: 601px) {
  .discovery-screen {
    --btn: 50px;
    --gap: 12px;
    --out: calc(var(--btn) + var(--gap));
    --lab: 0px;
    --side-y: 0.5;
    --card-h: calc(var(--vh) - 64px - 58px - 2 * var(--out) - 30px - 92px);
    --poster-width: max(180px, min(calc(var(--card-h) * 2/3), calc(100vw - 48px - 2 * var(--out)), 460px));
    position: relative;
    min-height: calc(var(--vh) - 64px);
  }
  .discovery-screen:has(.search-context) {
    --card-h: calc(var(--vh) - 64px - 104px - 2 * var(--out) - 30px - 92px);
  }
  .discovery-screen .deck .direction.down {
    bottom: 0;
  }
  .discovery-screen .deck .direction.up .dir-label,
  .discovery-screen .deck .direction.down .dir-label {
    top: 50%;
    left: calc(100% + 8px);
    transform: translateY(-50%);
  }
  .discovery-screen .card-front .poster-info,
  .discovery-screen .card-under .poster-info {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
  .discovery-screen .card-under {
    transform: translateY(calc(8px * (1 - var(--reveal)))) scale(calc(0.96 + 0.04 * var(--reveal)));
  }
  .discovery-screen .deck-caption {
    min-height: 0;
    height: 0;
    margin: 0;
  }
  .discovery-screen .deck-caption #catalog-more,
  .discovery-screen .deck-caption #details {
    display: none;
  }
  .discovery-screen .deck-caption #undo {
    position: absolute;
    z-index: 8;
    right: 24px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    height: 38px;
    padding: 0 16px;
    font-size: 13.5px;
    box-shadow: 0 4px 14px var(--fx-shadow);
    background: var(--fx-card);
    border: 1px solid var(--fx-line);
  }
}
/* Laptops and desktops (≥1000px): the navigation becomes tabs in the header, which gives the card the bottom of the screen */
@media (min-width: 1000px) {
  #app {
    position: relative;
  }
  #app header {
    height: 76px;
    padding: 0 32px;
  }
  #app .nav {
    position: absolute;
    top: 8px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    gap: 2px;
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 6px 22px var(--fx-shadow);
    z-index: 20;
  }
  #app .nav button {
    flex: none;
    min-width: 86px;
    min-height: 50px;
    padding: 5px 12px;
    border-radius: 15px;
  }
  #app .workspace:not(.discovery-screen) {
    padding-bottom: 48px;
  }
  #toast {
    top: 88px;
    bottom: auto;
    left: auto;
    right: 32px;
    transform: translateY(-8px);
  }
  #toast.show {
    transform: none;
  }
  .discovery-screen {
    --card-h: calc(var(--vh) - 76px - 58px - 2 * var(--out) - 34px);
    min-height: calc(var(--vh) - 76px);
    padding: 2px 24px 8px;
  }
  .discovery-screen:has(.search-context) {
    --card-h: calc(var(--vh) - 76px - 104px - 2 * var(--out) - 34px);
  }
  .discovery-screen .deck-caption #undo {
    bottom: 24px;
  }
}
@media (min-width: 1200px) and (min-height: 640px) {
  .discovery-screen {
    --btn: 52px;
    --gap: 16px;
    --poster-width: max(240px, min(calc(var(--card-h) * 2/3), 540px));
  }
  .discovery-screen .discovery-tools {
    margin: 0 auto 2px;
  }
  .discovery-screen .discover-layout {
    display: grid;
    grid-template-columns: minmax(240px, 340px) calc(var(--poster-width) + 2 * var(--out)) minmax(240px, 340px);
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 2.6vw, 52px);
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
  }
  .discovery-screen .deck-column {
    width: 100%;
    min-width: 0;
  }
  /* Buttons outside the card: Tonight above, Seen it below (labels beside them), Pass and Save at the sides (labels under) */
  .discovery-screen .deck-caption {
    display: none;
  }
  .discovery-screen .attribution {
    margin-top: 4px;
  }
  /* Side panels: as tall as the card, scrolling inside if a film has a long description */
  .desk-panel {
    display: flex;
    flex-direction: column;
    align-self: center;
    height: calc(var(--poster-width) * 1.5);
    min-height: 0;
    border-radius: 24px;
    background: var(--fx-card);
    border: 1px solid var(--fx-line);
    box-shadow: 0 10px 30px rgba(60, 20, 100, 0.08);
    color: var(--fx-ink);
    overflow: hidden;
  }
  .desk-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 22px 22px 12px;
  }
  .desk-kicker {
    margin: 0 0 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--fx-muted);
  }
  .desk-kicker:not(:first-child) {
    margin-top: 22px;
  }
  .desk-note {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--fx-muted);
  }
  .desk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }
  .desk-chip {
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--fx-soft);
    color: var(--fx-brand);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
  }
  .desk-recent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }
  .desk-recent li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .desk-recent img,
  .desk-thumb {
    flex: none;
    width: 40px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--fx-soft);
  }
  .desk-recent span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  .desk-recent strong {
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .desk-recent small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: var(--fx-muted);
  }
  .desk-recent small svg {
    width: 13px;
    height: 13px;
  }
  .desk-keys {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
    margin: 0;
  }
  .desk-keys div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .desk-keys dt {
    font-size: 13.5px;
    color: var(--fx-muted);
  }
  .desk-keys dd {
    margin: 0;
  }
  kbd {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 26px;
    padding: 0 7px;
    border-radius: 7px;
    border: 1px solid var(--fx-line);
    border-bottom-width: 2px;
    background: var(--fx-card);
    color: var(--fx-ink);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
  }
  .desk-undo {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 14px 14px;
    border-radius: 12px;
    background: var(--fx-soft);
    color: var(--fx-brand);
    font-size: 14px;
    font-weight: 700;
  }
  .desk-undo svg {
    width: 17px;
    height: 17px;
  }
  .desk-undo:disabled {
    opacity: 0.45;
  }
  .desk-undo:focus-visible {
    outline: 3px solid var(--fx-brand);
    outline-offset: 2px;
  }
  .desk-why .back-scores {
    margin: 2px 0 14px;
  }
  .desk-why .back-reason {
    margin: 0 0 14px;
    padding: 11px 13px;
    border-radius: 14px;
    background: var(--fx-soft);
    font-size: 14px;
    line-height: 1.5;
  }
  .desk-plot {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--fx-muted);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .desk-why .back-credits {
    font-size: 13.5px;
  }
  .desk-why .trailer-player {
    margin: 8px 0 4px;
  }
  .desk-actions {
    flex: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--fx-line);
    background: var(--fx-card);
  }
  .desk-actions > span {
    display: flex;
    min-width: 0;
  }
  .desk-actions > span:empty {
    display: none;
  }
  html[data-theme='dark'] .desk-panel {
    box-shadow: none;
  }
}
@media (min-width: 1200px) and (min-height: 640px) and (prefers-reduced-motion: reduce) {
  .desk-scroll {
    scroll-behavior: auto;
  }
}
/* ---- Flixby account page (email accounts): sign in, create account, reset password; also "About you" and password settings ---- */
.scrim:has(.auth-sheet) {
  padding: 16px;
}
.modal.auth-sheet {
  width: min(460px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 28px 28px 24px;
}
.auth-page {
  display: grid;
  gap: 0;
  color: var(--fx-ink);
}
.auth-logo {
  display: block;
  height: 34px;
  margin: 0 auto 18px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: var(--fx-soft);
}
.auth-tabs button {
  min-height: 44px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-muted);
}
.auth-tabs button[aria-pressed='true'] {
  background: var(--fx-card);
  color: var(--fx-brand);
  box-shadow: 0 2px 10px rgba(60, 20, 100, 0.12);
}
.auth-page h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  color: var(--fx-ink);
}
.auth-page .auth-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fx-muted);
}
.auth-page form,
.auth-page.about-form,
#pw-form {
  display: grid;
  gap: 0;
}
.auth-page label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fx-ink);
}
.auth-page input:not([type='radio']) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1.5px solid var(--fx-line);
  border-radius: 12px;
  background: var(--fx-card);
  color: var(--fx-ink);
  font: inherit;
  font-size: 15px;
}
.auth-page input:not([type='radio']):focus-visible {
  outline: none;
  border-color: var(--fx-brand);
  box-shadow: 0 0 0 3px rgba(123, 63, 188, 0.18);
}
.auth-page input:disabled {
  opacity: 0.7;
}
.auth-optional {
  font-weight: 500;
  color: var(--fx-muted);
}
.auth-password {
  position: relative;
}
.auth-password input {
  padding-right: 70px;
}
.auth-show {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-brand);
}
.auth-show:focus-visible {
  outline: 2px solid var(--fx-brand);
}
.auth-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--fx-muted);
}
.auth-message {
  min-height: 0;
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #b4234f;
}
.auth-message:empty {
  margin: 0;
}
html[data-theme='dark'] .auth-message {
  color: #ff9fb5;
}
.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  font-size: 15px;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 12px 0 0;
}
.auth-links button,
.auth-later {
  min-height: 40px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fx-brand);
}
.auth-later {
  width: 100%;
  margin-top: 6px;
}
.auth-small {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fx-muted);
  text-align: center;
}
.auth-small a {
  color: var(--fx-brand);
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  font-size: 12px;
  color: var(--fx-muted);
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fx-line);
}
.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 48px;
  border-radius: 99px;
  border: 1.5px solid var(--fx-line);
  background: var(--fx-card);
  color: var(--fx-ink);
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .scrim:has(.auth-sheet) {
    padding: 0;
    align-items: stretch;
  }
  .modal.auth-sheet {
    width: 100%;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
  }
}
.auth-google img {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
/* Ask Flixby results: the "Swiping …" row uses the same tokens, pills and sizes as the rest of the redesign;
   the card keeps the normal sizing (minus the row's height) instead of the old smaller one. */
.discovery-screen .search-context {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: min(560px, 100%);
  min-width: 0;
  margin: 2px auto 6px;
}
.discovery-screen .swiping-label {
  min-width: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--fx-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discovery-screen .swiping-label strong {
  font-weight: 700;
  color: var(--fx-brand);
}
.discovery-screen .back-discover {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  background: var(--fx-soft);
  color: var(--fx-brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.discovery-screen .back-discover:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 2px;
}
.discovery-screen .concierge-note {
  max-width: min(520px, 100%);
  margin: 0 auto 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted);
}
html[data-theme='dark'] .discovery-screen .back-discover {
  background: #2a2530;
  color: #d7b8fa;
}
@media (max-width: 600px) {
  .discovery-screen:has(.search-context) {
    --tools: 96px;
  }
  .discovery-screen:has(.concierge-note:not(:empty)) {
    --tools: 128px;
  }
  .discovery-screen .search-context {
    margin: 0 auto 4px;
  }
  .discovery-screen .swiping-label {
    font-size: 13px;
  }
}
/* Undo names the film it brings back; long titles are cut with an ellipsis */
#undo .undo-film {
  display: inline-block;
  max-width: 220px;
  margin-left: -2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-weight: 600;
}
/* Phones: the floating pill stays short so it never covers the Seen it button; the film is named in its label and the toast */
@media (max-width: 600px) {
  #undo .undo-film {
    display: none;
  }
}
.desk-undo .undo-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Film details: Share, Add to list, Save, Mark as seen and Watch tonight wrap onto as many rows as they need */
.modal-footer.detail-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.detail-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.detail-actions .icon {
  width: 17px;
  height: 17px;
}
.detail-seen {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-brand);
}
.list-menu button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.list-menu .icon {
  width: 16px;
  height: 16px;
}
/* Shared list preview */
.shared-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(96px, 28%), 1fr));
  gap: 10px;
  margin: 14px 0 4px;
  max-height: 52dvh;
  overflow-y: auto;
}
.shared-film {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  text-align: left;
  color: var(--fx-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.shared-film img,
.shared-noposter {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--fx-soft);
}
.shared-film:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 2px;
  border-radius: 10px;
}
.share-url {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1.5px solid var(--fx-line);
  border-radius: 12px;
  background: var(--fx-card);
  color: var(--fx-ink);
  font: inherit;
  font-size: 14px;
}
/* A film opened from a shared link sits on top of Discover with a small "Shared with you" flag */
.discovery-screen .shared-flag {
  position: absolute;
  z-index: 3;
  top: calc(var(--out) + 14px);
  left: calc(var(--out) + 14px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  color: #5d2a96;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(30, 10, 50, 0.2);
  pointer-events: none;
}
.discovery-screen .shared-flag .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.deck.is-flipped .shared-flag {
  display: none;
}
.detail-poster {
  display: block;
  width: min(180px, 50%);
  aspect-ratio: 2/3;
  object-fit: cover;
  margin: 0 auto 14px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(60, 20, 100, 0.22);
}
@media (max-width: 600px) {
  .discovery-screen .shared-flag {
    top: calc(var(--out) + 42px);
    left: calc(var(--out) + 12px);
  }
}
/* Where to watch (card back, desktop panel, film details) */
.watch-box {
  margin: 4px 0 12px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid var(--fx-line);
  background: var(--fx-card);
}
.watch-title {
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--fx-muted);
}
.watch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}
.watch-label {
  flex: none;
  width: 76px;
  font-size: 12.5px;
  color: var(--fx-muted);
}
.watch-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.watch-logo {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--fx-soft);
  font-size: 11px;
  color: var(--fx-ink);
}
.watch-logo img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  display: block;
}
.watch-logo.is-mine {
  outline: 2.5px solid var(--fx-brand);
  outline-offset: 1px;
}
.watch-none {
  margin: 0;
  font-size: 13px;
  color: var(--fx-muted);
}
.watch-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--fx-muted);
}
.watch-foot a {
  color: var(--fx-brand);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
}
.modal .watch-box {
  margin: 14px 0;
}
/* "On Netflix" on the poster when a film streams on one of your services */
.service-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 9px 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  color: #4a1f7d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
/* Genre menu: services filter; services picker */
.mine-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.mine-controls .secondary {
  min-height: 40px;
}
.services-region {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  font-size: 13px;
  font-weight: 600;
}
.services-region select {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--fx-line);
  background: var(--fx-card);
  color: var(--fx-ink);
  font: inherit;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(130px, 46%), 1fr));
  gap: 8px;
  max-height: 46dvh;
  overflow-y: auto;
  padding: 2px;
}
.service {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 10px 6px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--fx-line);
  background: var(--fx-card);
  color: var(--fx-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.service img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: none;
}
.service[aria-pressed='true'] {
  border-color: var(--fx-brand);
  background: var(--fx-soft);
  color: var(--fx-brand);
}
.service:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 2px;
}
/* Add to Home Screen instructions */
.install-icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(60, 20, 100, 0.18);
}
.install-steps {
  margin: 12px 0;
  padding-left: 22px;
  line-height: 1.6;
  font-size: 14.5px;
}
.install-steps li {
  margin: 6px 0;
}
.install-steps .icon,
.modal .sub .icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
/* Flixby talks: his line at the top of Ask Flixby, and a caption bubble for lines after it closes */
.flixby-greet {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 36px 14px 0;
}
.flixby-face {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(60, 20, 100, 0.16);
}
#flixby-line {
  margin: 0;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--fx-soft);
  color: var(--fx-ink);
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}
.flixby-mute {
  flex: none;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--fx-line);
  background: var(--fx-card);
  color: var(--fx-brand);
  font-size: 12px;
  font-weight: 700;
}
.flixby-mute[aria-pressed='true'] {
  color: var(--fx-muted);
}
.flixby-mute:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 2px;
}
#ask-voice.is-listening {
  background: linear-gradient(135deg, #9a5fe0, #6a2fae);
  color: #fff;
  animation: flixby-pulse 1.4s ease-in-out infinite;
}
@keyframes flixby-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(154, 95, 224, 0.18);
  }
}
#flixby-says {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
#flixby-says.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#flixby-says.show .flixby-says-mute {
  pointer-events: auto;
}
#flixby-says p {
  flex: 1;
}
#flixby-says .flixby-says-mute {
  flex: none;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 12px 0 9px;
  border-radius: 99px;
  border: 0;
  background: linear-gradient(135deg, #8b4fd6, #5f2a9e);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px #6a1bb040;
  cursor: pointer;
}
#flixby-says .flixby-says-mute[aria-pressed='true'] {
  background: var(--fx-card);
  color: var(--fx-brand);
  box-shadow: inset 0 0 0 1.5px var(--fx-line);
}
#flixby-says .sound-icon {
  width: 18px;
  height: 18px;
}
#flixby-says .flixby-says-face {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(30, 10, 50, 0.22);
}
#flixby-says p {
  margin: 0;
  padding: 10px 13px;
  border-radius: 16px 16px 16px 4px;
  background: var(--fx-card);
  border: 1px solid var(--fx-line);
  box-shadow: 0 10px 30px rgba(60, 20, 100, 0.2);
  color: var(--fx-ink);
  font-size: 14px;
  line-height: 1.45;
}
@media (min-width: 1000px) {
  #flixby-says {
    bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #flixby-says {
    transition: none;
  }
  #ask-voice.is-listening {
    animation: none;
  }
}

/* Taste setup, step 1: words floating as plain type at three depths over one soft, slowly breathing orb */
.taste-words {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 18px calc(20px + env(safe-area-inset-bottom));
  background: #fbf9ff;
  color: #1f1430;
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}
.taste-words.leaving {
  opacity: 0;
  filter: blur(6px);
}
.tw-orb {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.tw-orb span {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(88vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle at 38% 34%, #f3e9ff 0%, #d9bfff 30%, #b58cf5 58%, #b58cf500 72%);
  filter: blur(28px);
  opacity: 0.75;
  animation: tw-breathe 14s ease-in-out infinite alternate;
}
.tw-orb span + span {
  width: min(60vw, 420px);
  top: 44%;
  left: 60%;
  background: radial-gradient(circle, #f6c9ff 0%, #d79bf766 45%, #d79bf700 70%);
  filter: blur(36px);
  opacity: 0.6;
  animation: tw-wander 23s ease-in-out infinite alternate;
}
@keyframes tw-breathe {
  from {
    transform: scale(0.94) rotate(0);
  }
  to {
    transform: scale(1.06) rotate(18deg);
  }
}
@keyframes tw-wander {
  0% {
    transform: translate(-14%, 4%);
  }
  50% {
    transform: translate(10%, -8%);
  }
  100% {
    transform: translate(-4%, 10%);
  }
}
.tw-top,
.tw-head,
.tw-field,
.tw-tray {
  position: relative;
  z-index: 1;
}
.tw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.tw-top .wordmark {
  height: 24px;
  width: auto;
}
.tw-top > div {
  display: flex;
  gap: 2px;
}
.tw-link {
  background: none;
  border: 0;
  color: #6b4d93;
  padding: 10px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}
.tw-link:hover,
.tw-link:focus-visible {
  color: #3d1d63;
  background: #ffffff80;
}
.tw-head {
  text-align: center;
  margin: 26px auto 0;
  max-width: 520px;
}
.tw-head h1 {
  margin: 0;
  font-size: clamp(25px, 6.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.tw-head p {
  margin: 8px 0 0;
  color: #7a6b8f;
  font-size: 15px;
}
.tw-field {
  flex: 1;
  min-height: 320px;
  margin: 10px auto 0;
  width: min(100%, 940px);
}
.tw-word {
  position: absolute;
  translate: -50% -50%;
  background: none;
  border: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--size);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.05;
  white-space: nowrap;
  color: #2a1745;
  cursor: pointer;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.92);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.tw-word.d1 {
  color: #3d2560;
  font-weight: 600;
}
.tw-word.d2 {
  color: #5c4680;
  font-weight: 550;
}
.tw-word.in {
  opacity: 1;
  filter: none;
  transform: none;
  animation: tw-drift var(--drift) ease-in-out var(--delay) infinite alternate;
}
.tw-word.d1.in {
  opacity: 0.88;
}
.tw-word.d2.in {
  opacity: 0.74;
}
.tw-word.out {
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.94);
}
.tw-word:hover {
  color: #7b3fbc;
}
.tw-word:focus-visible {
  outline: 2px solid #9b6bdc;
  outline-offset: 2px;
}
.tw-word.picked {
  animation: none;
  opacity: 0;
  transform: scale(1.18) translateY(-6px);
  filter: blur(2px);
  color: #7b3fbc;
  text-shadow: 0 0 22px #b58cf5;
  transition:
    opacity 0.6s ease 0.1s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.6s ease 0.1s,
    color 0.15s;
}
@keyframes tw-drift {
  from {
    translate: -50% -50%;
  }
  to {
    translate: calc(-50% + var(--dx)) calc(-50% + var(--dy));
  }
}
.tw-tray {
  text-align: center;
  padding-top: 6px;
  height: 164px;
  flex: none;
} /* fixed, so picking (more chips) never shrinks the space the words float in */
.tw-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tw-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8c8ec;
  transition:
    background 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tw-dots span.extra {
  background: none;
  box-shadow: inset 0 0 0 1.5px #d8c8ec;
}
.tw-dots span.on {
  background: #7b3fbc;
  box-shadow: none;
  transform: scale(1.25);
}
.tw-count {
  margin: 0 0 8px;
  color: #7a6b8f;
  font-size: 13px;
  font-weight: 550;
}
.tw-picked {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  min-height: 30px;
  max-width: 560px;
  margin: 0 auto;
}
.tw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffffb0;
  border: 1px solid #e6daf5;
  color: #4a2a73;
  border-radius: 99px;
  padding: 5px 9px 5px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  animation: tw-chip 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tw-chip span {
  color: #9a86b6;
  font-size: 15px;
  line-height: 1;
}
@keyframes tw-chip {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.tw-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.tw-go {
  border: 0;
  border-radius: 99px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, #8b4fd6, #5f2a9e);
  box-shadow: 0 12px 30px #6732a040;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tw-actions .tw-go {
  opacity: 0;
}
.tw-actions .tw-go.ready {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.tw-go span {
  display: inline-block;
  transition: transform 0.2s;
}
.tw-go:hover span {
  transform: translateX(3px);
}
html[data-theme='dark'] .taste-words {
  background: #0e0c11;
  color: #f4eefc;
}
html[data-theme='dark'] .tw-orb span {
  background: radial-gradient(circle at 38% 34%, #8d5ed6 0%, #5b2f9a 34%, #36175f 58%, #36175f00 72%);
  opacity: 0.8;
}
html[data-theme='dark'] .tw-orb span + span {
  background: radial-gradient(circle, #b45fd8aa 0%, #7a2fa044 45%, #7a2fa000 70%);
  opacity: 0.55;
}
html[data-theme='dark'] .tw-word {
  color: #fbf7ff;
}
html[data-theme='dark'] .tw-word.d1 {
  color: #e8dcf7;
}
html[data-theme='dark'] .tw-word.d2 {
  color: #cbbbe0;
}
html[data-theme='dark'] .tw-word:hover,
html[data-theme='dark'] .tw-word.picked {
  color: #d7b8ff;
}
html[data-theme='dark'] :is(.tw-head p, .tw-count) {
  color: #ab9cc0;
}
html[data-theme='dark'] .tw-link {
  color: #cdb3ef;
}
html[data-theme='dark'] .tw-link:hover {
  background: #ffffff12;
  color: #fff;
}
html[data-theme='dark'] .tw-dots span {
  background: #3a3145;
}
html[data-theme='dark'] .tw-dots span.extra {
  background: none;
  box-shadow: inset 0 0 0 1.5px #3a3145;
}
html[data-theme='dark'] .tw-dots span.on {
  background: #c49af4;
}
html[data-theme='dark'] .tw-chip {
  background: #ffffff10;
  border-color: #ffffff1c;
  color: #eadcfb;
}

/* Taste setup, step 2: the normal Discover card with a progress bar instead of the tools row */

/* "Your taste profile is ready", then the screen lifts away to reveal Discover */
.taste-ready {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fbf9ff;
  color: #292332;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.8s cubic-bezier(0.7, 0, 0.2, 1);
  cursor: pointer;
}
.taste-ready.in {
  opacity: 1;
}
.taste-ready.lift {
  transform: translateY(-102%);
}
.taste-ready-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.taste-ready-copy h1 {
  margin: 14px 0 6px;
  font-size: clamp(26px, 7vw, 40px);
  letter-spacing: -0.02em;
}
.taste-ready-copy p {
  margin: 0;
  color: #5f5670;
}
.taste-ready-check {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #6732a0;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 14px 40px #6732a055;
  animation: tw-chip 0.5s ease;
}
html[data-theme='dark'] .taste-ready {
  background: #0e0c11;
  color: #f2f2f3;
}
html[data-theme='dark'] .taste-ready-copy p {
  color: #c2b8cf;
}
@media (prefers-reduced-motion: reduce) {
  .tw-orb span,
  .tw-word.in,
  .tw-chip,
  .taste-ready-check {
    animation: none;
  }
  .tw-word,
  .taste-words,
  .setup-bar span,
  .tw-go {
    transition: none;
  }
  .tw-word {
    filter: none;
  }
  .taste-ready {
    transition: opacity 0.25s ease;
  }
  .taste-ready.lift {
    transform: none;
    opacity: 0;
  }
}

/* Flixby the fairy (public/fairy.js): the canvas sits behind the words and replaces the static orb */
.fairy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.taste-words.has-fairy .tw-orb,
.taste-ready.has-fairy .tw-orb {
  display: none;
}

/* Flixby narrates taste setup: his line under the title (words) or under the progress bar (swipes), and a voice toggle */
.tw-say {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  text-align: left;
  margin: 10px auto 0 !important;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.42;
  color: #5d4d74;
}
.tw-face {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
  margin-top: 1px;
  box-shadow: 0 3px 10px #5b2d9133;
}
.tw-voice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tw-voice svg {
  width: 20px;
  height: 20px;
}
.tw-voice[data-state='blocked'] {
  background: #ffffffc7;
  box-shadow: 0 0 0 1px #e3d6f3;
  animation: tw-call 2.4s ease-in-out infinite;
}
@keyframes tw-call {
  50% {
    box-shadow:
      0 0 0 1px #c9a6f2,
      0 0 18px #b58cf566;
  }
}
.tune-choices .account-row span {
  display: grid;
  gap: 3px;
}
.tune-choices strong {
  font-size: 15px;
}
.tune-choices small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}
.tw-hint {
  margin: 0 auto 8px;
  max-width: 440px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #6b5a82;
}
.tw-hint strong {
  color: #5b2d91;
}
html[data-theme='dark'] .tw-hint {
  color: #b8a9cc;
}
html[data-theme='dark'] .tw-hint strong {
  color: #d9c2f5;
}
html[data-theme='dark'] .tw-say {
  color: #c2b4d6;
}
html[data-theme='dark'] .tw-voice[data-state='blocked'] {
  background: #ffffff12;
  box-shadow: 0 0 0 1px #ffffff22;
}
@media (prefers-reduced-motion: reduce) {
  .tw-voice[data-state='blocked'] {
    animation: none;
  }
}
.quick-rating {
  justify-content: center;
  margin: 6px 0 4px;
}
.quick-rating button {
  font-size: 38px;
  padding: 4px 6px;
}
.quick-rating-help {
  margin: 4px 0 0;
  color: var(--muted);
  text-align: center;
}

/* Ask Flixby lives in the navigation: a round purple button between Lists and Tonight */
#app .nav .nav-flixby {
  color: var(--fx-brand);
}
#app .nav .nav-flixby .nav-icon {
  width: 40px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9a4fe0, #5b1fa8 55%, #d6407e);
  color: #fff;
  box-shadow: 0 6px 16px #6b2bb455;
}
#app .nav .nav-flixby .flixby-icon {
  width: 26px;
  height: 14px;
}
#app .nav .nav-flixby:hover .nav-icon,
#app .nav .nav-flixby:focus-visible .nav-icon {
  filter: brightness(1.08);
}
@media (min-width: 1000px) {
  #app .nav .nav-flixby {
    flex-direction: row;
    gap: 8px;
  }
  #app .nav .nav-flixby .nav-icon {
    width: 30px;
    height: 26px;
    border-radius: 10px;
  }
  #app .nav .nav-flixby .flixby-icon {
    width: 22px;
    height: 12px;
  }
}

/* Chat with Flixby: full screen, his waveform face on top, the conversation, then the talk button at the bottom */
.chat-open body {
  overflow: hidden;
}
.chat [hidden] {
  display: none !important;
}
.chat {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #fbf9ff;
  color: #1f1430;
  padding: max(10px, env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));
  animation: chat-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Opening: a circle grows from the bowtie button to fill the screen, then Flixby's face blooms in. Closing shrinks it back. */
.chat.reveal {
  animation: chat-reveal 0.62s cubic-bezier(0.65, 0, 0.25, 1) both;
}
.chat.reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--ox, 50%) var(--oy, 100%),
    #e0407b,
    #8e24aa 30%,
    #4a148c 60%,
    transparent 85%
  );
  animation: chat-flash 0.9s ease-out both;
}
.chat.reveal .chat-face {
  animation: chat-face-in 0.7s 0.28s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
}
.chat.reveal .chat-top,
.chat.reveal #flixby-line,
.chat.reveal .chat-log,
.chat.reveal .chat-bottom,
.chat.reveal .chat-controls {
  animation: chat-fade 0.45s 0.45s ease both;
}
.chat.closing {
  pointer-events: none;
  animation: chat-unreveal 0.34s cubic-bezier(0.5, 0, 0.75, 0) both;
}
@keyframes chat-reveal {
  from {
    clip-path: circle(22px at var(--ox, 50%) var(--oy, 100%));
  }
  to {
    clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 100%));
  }
}
@keyframes chat-unreveal {
  from {
    clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 100%));
  }
  to {
    clip-path: circle(22px at var(--ox, 50%) var(--oy, 100%));
    opacity: 0.6;
  }
}
@keyframes chat-flash {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes chat-face-in {
  from {
    opacity: 0;
    transform: scale(0.35) translateY(30px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes chat-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat.reveal,
  .chat.reveal::before,
  .chat.reveal *,
  .chat.closing {
    animation: none !important;
  }
}
.chat > * {
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
}
.chat-top strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.chat-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: none;
  color: #5b2d91;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.chat-close .icon {
  transform: rotate(180deg);
}
.chat .flixby-mute {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 0;
  background: linear-gradient(135deg, #8b4fd6, #5f2a9e);
  color: #fff;
  border-radius: 99px;
  padding: 0 15px 0 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px #6a1bb03d;
  cursor: pointer;
}
.chat .flixby-mute .sound-icon {
  width: 20px;
  height: 20px;
}
.chat .flixby-mute.is-muted {
  background: #fff;
  color: #5b2d91;
  box-shadow: inset 0 0 0 1.5px #c9b2e8;
}
.chat-face {
  position: relative;
  height: min(28vh, 210px);
  min-height: 140px;
  flex: none;
  margin-top: 4px;
}
.chat-wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 76%;
}
.chat-bowtie {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 43px;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 12px #6a1bb044);
  transition: transform 0.2s;
}
.chat-face.is-speaking .chat-bowtie {
  animation: bowtie 1.1s ease-in-out infinite;
}
@keyframes bowtie {
  0%,
  100% {
    transform: translateX(-50%) rotate(0);
  }
  30% {
    transform: translateX(-50%) rotate(-4deg) scale(1.03);
  }
  70% {
    transform: translateX(-50%) rotate(3deg);
  }
}
.chat #flixby-line.chat-line {
  flex: none;
  background: none;
  padding: 0 6px;
  border-radius: 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 550;
  margin: 10px auto 6px;
  min-height: 2.9em;
  max-width: 520px;
  color: #2a1745;
}
.chat-log {
  flex: 1;
  min-height: 60px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}
.chat-msg {
  max-width: 82%;
  border-radius: 18px;
  padding: 9px 13px;
  font-size: 14.5px;
  line-height: 1.4;
  animation: chat-in 0.3s ease;
}
.chat-msg p {
  margin: 0;
}
.chat-msg.you {
  align-self: flex-end;
  background: linear-gradient(135deg, #8b4fd6, #5f2a9e);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat-msg.flixby {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #ece2f8;
  color: #2a1745;
  border-bottom-left-radius: 6px;
}
.chat-results p {
  margin: 8px 0 10px;
  font-size: 13.5px;
  color: #5d4d74;
}
.chat-posters {
  display: flex;
  gap: 6px;
}
.chat-posters img {
  width: 58px;
  height: 87px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px #2a174522;
}
.chat-results .primary {
  margin: 0;
  padding: 10px 16px;
}
.chat-narrow {
  margin: 2px 0 12px;
}
.chat-narrow p {
  margin: 6px 0 6px;
  font-weight: 650;
  font-size: 12.5px;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.chat-chip {
  border: 1px solid #e3d6f3;
  background: #fff;
  border-radius: 99px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #4a2a73;
  cursor: pointer;
  min-height: 34px;
}
.chat-chip:hover,
.chat-chip:focus-visible {
  border-color: #9b5de5;
}
html[data-theme='dark'] .chat-chip {
  background: #1d1822;
  border-color: #ffffff22;
  color: #e3d0fb;
}
.chat-controls {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}
.chat-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.chat-talk {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #b47cf0, #6a1bb0 60%, #4a148c);
  box-shadow:
    0 12px 30px #6a1bb055,
    inset 0 -6px 14px #0003;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.chat-talk svg {
  width: 34px;
  height: 34px;
}
.chat-talk:disabled {
  opacity: 0.5;
}
.chat #ask-voice.chat-talk.is-listening {
  animation: none;
  transform: scale(1.1);
  background: radial-gradient(circle at 35% 30%, #ff8fb1, #d6407e 55%, #8e24aa);
  box-shadow:
    0 0 0 10px #d6407e22,
    0 0 0 22px #d6407e11,
    0 14px 34px #d6407e55;
}
.chat-talk-label {
  font-size: 13px;
  font-weight: 600;
  color: #5d4d74;
}
.chat-tapmode {
  border: 0;
  background: none;
  color: #8a78a3;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px;
}
.chat-text {
  display: flex;
  gap: 8px;
  width: 100%;
  align-items: flex-end;
}
.chat-text textarea {
  flex: 1;
  resize: none;
  min-height: 48px;
  max-height: 120px;
  border-radius: 24px;
  border: 1px solid #e3d6f3;
  padding: 13px 16px;
  font-size: 15px;
  background: #fff;
}
.chat-text .primary {
  margin: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.chat-choose {
  text-align: center;
}
.chat-choose p {
  margin: 0 0 8px;
  font-weight: 600;
}
.chat-choose div {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.chat-pick {
  border: 1px solid #e3d6f3;
  background: #fff;
  border-radius: 99px;
  padding: 11px 22px;
  font-weight: 650;
  color: #4a2a73;
  cursor: pointer;
}
.chat-status {
  margin: 0;
  min-height: 1.2em;
  text-align: center;
}
.chat-mode {
  display: inline-flex;
  background: #f0e8fa;
  border-radius: 99px;
  padding: 3px;
}
.chat-mode button {
  border: 0;
  background: none;
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b4d93;
  cursor: pointer;
}
.chat-mode button[aria-pressed='true'] {
  background: #fff;
  color: #3d1d63;
  box-shadow: 0 2px 8px #5b2d9122;
}
.chat-mode button:disabled {
  opacity: 0.4;
}
html[data-theme='dark'] .chat {
  background: #0e0c11;
  color: #f4eefc;
}
html[data-theme='dark'] .chat #flixby-line.chat-line {
  color: #f1e7ff;
}
html[data-theme='dark'] .chat-close {
  color: #d7b8ff;
}
html[data-theme='dark'] .chat .flixby-mute.is-muted,
html[data-theme='dark'] .chat-pick {
  background: #1d1822;
  border-color: #ffffff22;
  color: #e3d0fb;
}
html[data-theme='dark'] .chat-msg.flixby {
  background: #1d1822;
  border-color: #ffffff14;
  color: #efe6fb;
}
html[data-theme='dark'] .chat-results p,
html[data-theme='dark'] .chat-talk-label {
  color: #b8aacb;
}
html[data-theme='dark'] .chat-text textarea {
  background: #1d1822;
  border-color: #ffffff22;
  color: #f4eefc;
}
html[data-theme='dark'] .chat-mode {
  background: #1d1822;
}
html[data-theme='dark'] .chat-mode button {
  color: #c9b6e4;
}
html[data-theme='dark'] .chat-mode button[aria-pressed='true'] {
  background: #33293d;
  color: #fff;
}
@media (max-height: 640px) {
  .chat-face {
    height: 22vh;
    min-height: 110px;
  }
  .chat-line {
    font-size: 15px;
    min-height: 2.6em;
  }
  .chat-talk {
    width: 72px;
    height: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat,
  .chat-msg {
    animation: none;
  }
  .chat-face.is-speaking .chat-bowtie {
    animation: none;
  }
  .chat-talk {
    transition: none;
  }
}
@media (min-width: 1000px) {
  .chat-face {
    height: min(34vh, 280px);
  }
  .chat-wave {
    height: 78%;
  }
}
/* Admin tuning bench (/tuning) */
.tuning {
  max-width: 1240px;
}
.tuning-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 20px;
}
.tuning-sliders {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding-right: 8px;
}
.tuning-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tuning-actions button,
.tuning-one {
  border: 1px solid #d9c9ec;
  background: #fff;
  color: #32253e;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}
.tuning-actions .primary {
  background: linear-gradient(135deg, #7b3fc4, #b04fd6);
  color: #fff;
  border: 0;
}
.tuning-one {
  padding: 1px 8px;
  font-size: 11px;
  margin-left: 6px;
}
.tuning-copied {
  min-height: 1.2em;
  font-size: 13px;
  margin: 8px 0;
}
.tuning-copied textarea {
  width: 100%;
  font:
    12px ui-monospace,
    monospace;
}
.tuning fieldset {
  border: 0;
  border-top: 1px solid #eee;
  margin: 0;
  padding: 12px 0;
}
.tuning legend {
  font-weight: 700;
  padding: 0;
  color: #32253e;
}
.tuning-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  margin: 10px 0;
  font-size: 14px;
}
.tuning-row input {
  grid-column: 1/-1;
  width: 100%;
  accent-color: #9453d2;
}
.tuning-row output {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.tuning-row small {
  grid-column: 1/-1;
  color: #8a7b96;
  font-size: 11px;
}
.tuning-row.changed label,
.tuning-row.changed output {
  color: #7b3fc4;
}
.tuning-results h3 {
  margin-top: 24px;
}
.tuning-who select {
  font: inherit;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #d9c9ec;
  margin-left: 6px;
  max-width: 100%;
}
.tuning-decks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tuning-decks ol {
  padding-left: 22px;
  margin: 0;
}
.tuning-decks li {
  padding: 5px 0;
  border-bottom: 1px solid #f1eaf7;
  font-size: 14px;
}
.tuning-decks li > span:first-child {
  display: block;
}
.tuning-decks li small {
  color: #8a7b96;
}
.tuning .up {
  color: #1f8a4c;
  font-weight: 700;
  margin-left: 6px;
}
.tuning .down {
  color: #c0392b;
  font-weight: 700;
  margin-left: 6px;
}
.tuning-new {
  background: #f0e6fb;
  color: #7b3fc4;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 11px;
  margin-left: 6px;
}
.tuning-layout > *,
.tuning fieldset {
  min-width: 0;
}
@media (max-width: 820px) {
  .tuning {
    margin: 0;
    padding: 16px;
    border-radius: 0;
  }
  .tuning-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .tuning-sliders {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .tuning-decks {
    grid-template-columns: 1fr;
  }
}
.tuning-wait {
  font-size: 16px;
  font-weight: 600;
  color: #8a7b96;
}
.tuning-actions #tuning-tune {
  border-color: #9453d2;
  color: #7b3fc4;
  font-weight: 600;
}
.tuning-actions #tuning-tune.stop {
  background: #fbeaea;
  border-color: #c0392b;
  color: #c0392b;
}
.tuning-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}
.tuning-progress {
  background: #f5effb;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.tuning-progress p {
  margin: 0 0 8px;
}
.tuning-progress progress {
  width: 100%;
  accent-color: #9453d2;
}
.tuning-note {
  background: #f5effb;
  border-radius: 16px;
  padding: 12px 16px;
}
.tuning-uncounted td {
  color: #a99bb4;
}
/* "Never show me" (public/blocks-ui.js) */
.never-panel h4 {
  margin: 16px 0 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-muted);
}
.never-help,
.never-empty {
  color: var(--fx-muted);
  font-size: 13px;
  line-height: 1.45;
}
.never-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
.never-add input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--fx-line);
  border-radius: 22px;
  background: var(--fx-card);
  color: var(--fx-ink);
  font: inherit;
}
.never-add select {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--fx-line);
  border-radius: 22px;
  background: var(--fx-card);
  color: var(--fx-ink);
  font: inherit;
}
.never-add .primary {
  min-height: 44px;
}
.never-error {
  min-height: 1em;
  margin: 4px 0;
  font-size: 12px;
  color: #c0396b;
}
.never-chips,
.never-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.never-chip,
.never-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--fx-line);
  border-radius: 99px;
  background: var(--fx-soft);
  color: var(--fx-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.never-chip span {
  font-size: 16px;
  line-height: 1;
  color: var(--fx-muted);
}
.never-option {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border-radius: 16px;
  text-align: left;
}
.never-option small {
  font-size: 11px;
  color: var(--fx-muted);
}
.never-option[aria-pressed='true'] {
  border-color: var(--fx-brand);
  background: var(--fx-brand);
  color: #fff;
}
.never-option[aria-pressed='true'] small {
  color: #ffffffcc;
}
.never-manage {
  margin-top: 18px;
}
.never-chip:focus-visible,
.never-option:focus-visible {
  outline: 3px solid var(--fx-brand);
  outline-offset: 2px;
}
.back-links .back-never {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.never-field {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.never-field input {
  width: 100%;
}
.never-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  background: var(--fx-card);
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  box-shadow: 0 14px 40px #2a103d30;
  padding: 6px;
  max-height: 300px;
  overflow: auto;
}
.never-suggestion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  text-align: left;
  color: var(--fx-ink);
  font: inherit;
  font-size: 14px;
  background: none;
  cursor: pointer;
}
.never-suggestion small {
  font-size: 11.5px;
  color: var(--fx-muted);
  text-align: right;
}
.never-suggestion.active,
.never-suggestion:hover {
  background: var(--fx-soft);
}
.never-none {
  margin: 6px 10px;
  font-size: 13px;
  color: var(--fx-muted);
}
/* Letterboxd / IMDb import (2026-10-19) */
.tour-card > div {
  flex-wrap: wrap;
  gap: 8px;
}
.tour-action[hidden] {
  display: none;
}
.tour-action {
  border: 1px solid #d6b5ff;
  border-radius: 99px;
  color: #6732a0;
  font-weight: 600;
}
.import-panel h3 {
  margin: 18px 0 8px;
}
.import-panel ol {
  margin: 8px 0;
  padding-left: 20px;
  line-height: 1.6;
  font-size: 14px;
}
.import-panel a {
  color: #6732a0;
  font-size: 13px;
}
.import-how {
  border: 1px solid #eadff5;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 8px 0;
}
.import-how summary {
  cursor: pointer;
  font-weight: 600;
}
.import-pick {
  position: relative;
  cursor: pointer;
  margin: 14px 0 6px;
  justify-content: center;
  min-height: 44px;
}
.import-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.import-pick.busy {
  opacity: 0.6;
  pointer-events: none;
}
.import-pick:focus-within {
  outline: 2px solid #8548c5;
  outline-offset: 3px;
}
#import-status progress {
  width: 100%;
  height: 8px;
  accent-color: #8548c5;
}
#import-status .primary {
  margin-top: 14px;
}
.import-missing ul {
  max-height: 180px;
  overflow: auto;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}
html[data-theme='dark'] .import-how {
  border-color: #414144;
}
html[data-theme='dark'] :is(.import-panel a, .tour-action) {
  color: #d6b5ff;
}
/* Profile page (flixby.app/me, 2026-10-19). Open layout, no boxes (owner): sections are set apart by space and headings. */
.me {
  --me-ink: #2a1840;
  --me-muted: #7a6a8c;
  --me-line: #eadff5;
  --me-glow: #c99cff;
  position: relative;
  display: grid;
  gap: 44px;
  max-width: 780px;
  margin: 0 auto;
  padding: 4px 4px 120px;
  color: var(--me-ink);
}
html[data-theme='dark'] .me {
  --me-ink: #f2eef8;
  --me-muted: #a59bb3;
  --me-line: #ffffff1c;
  --me-glow: #8a4fd6;
}
.me {
  isolation: isolate;
}
.me::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -120px;
  height: 540px;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--me-glow) 42%, transparent),
    color-mix(in srgb, #ff8fc8 16%, transparent) 55%,
    transparent
  );
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}
.me-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 26px 12px 0;
}
.me-photo {
  flex: none;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  padding: 4px;
  background: conic-gradient(from 210deg, #8548c5, #e0559f, #ffb36b, #8548c5);
  box-shadow: 0 18px 48px -12px #8548c588;
}
img.me-photo {
  background-clip: padding-box;
  border: 4px solid transparent;
  padding: 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from 210deg, #8548c5, #e0559f, #ffb36b, #8548c5) border-box;
}
.me-initial {
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #b07cf2, #6732a0 70%);
  border: 4px solid #fff;
  box-shadow:
    0 0 0 3px #d6b5ff,
    0 18px 48px -12px #8548c588;
}
html[data-theme='dark'] .me-initial {
  border-color: #1b1a1e;
}
html[data-theme='dark'] img.me-photo {
  background:
    linear-gradient(#1b1a1e, #1b1a1e) padding-box,
    conic-gradient(from 210deg, #8548c5, #e0559f, #ffb36b, #8548c5) border-box;
}
.me-who {
  min-width: 0;
  max-width: 560px;
}
.me-who h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.me-who p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--me-muted);
  letter-spacing: 0.2px;
}
.me-who .me-taste-line {
  font-size: 17px;
  line-height: 1.45;
  margin-top: 12px;
  color: var(--me-ink);
  font-weight: 500;
  background: linear-gradient(90deg, #6732a0, #c2569f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme='dark'] .me-who .me-taste-line {
  background-image: linear-gradient(90deg, #d6b5ff, #ff9bd0);
}
.me-rail,
.me-views {
  display: contents;
}
.me-nav {
  display: none;
}
.me-settings {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px 0 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: #6732a0;
  background: color-mix(in srgb, #fff 70%, transparent);
  border: 1px solid #d6b5ff;
  backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    transform 0.2s;
}
.me-settings:hover {
  background: #f3e8ff;
}
.me-settings .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.me-settings:hover .icon {
  transform: rotate(90deg);
}
html[data-theme='dark'] .me-settings {
  color: #e6d2ff;
  background: #ffffff10;
  border-color: #ffffff2a;
}
html[data-theme='dark'] .me-settings:hover {
  background: #ffffff1c;
}
.me-guest {
  text-align: center;
}
.me-guest p {
  margin: 0;
  color: var(--me-muted);
  font-size: 14px;
}
.me-guest .primary {
  margin-top: 14px;
}
.me-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-top: -14px;
}
.me-stats button {
  display: grid;
  gap: 2px;
  padding: 6px clamp(10px, 3.4vw, 26px);
  text-align: center;
  min-height: 44px;
  position: relative;
  border-radius: 14px;
  transition: transform 0.2s;
}
.me-stats button:hover {
  transform: translateY(-2px);
}
.me-stats button + button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--me-line);
}
.me-stats strong {
  font-size: clamp(24px, 5.4vw, 34px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.05;
  background: linear-gradient(160deg, #8548c5, #c2569f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme='dark'] .me-stats strong {
  background-image: linear-gradient(160deg, #d6b5ff, #ff9bd0);
}
.me-stats span {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--me-muted);
}
.me-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.me-section > h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: #8548c5;
  display: flex;
  align-items: center;
  gap: 12px;
}
.me-section > h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--me-line), transparent);
}
.me-section > h2 small {
  order: 2;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--me-muted);
  text-transform: none;
}
html[data-theme='dark'] .me-section > h2 {
  color: #c9a5ff;
}
.me-quiet {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--me-muted);
}
.me-quiet strong {
  color: var(--me-ink);
  font-weight: 600;
}
.me-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.me-bars li {
  display: grid;
  grid-template-columns: 120px 1fr 64px;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}
.me-bars i {
  display: block;
  height: 4px;
  width: var(--w);
  border-radius: 99px;
  background: linear-gradient(90deg, #8548c5, #e0559f);
  box-shadow: 0 0 14px #c2569f66;
  transform-origin: left;
  animation: me-grow 0.9s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
.me-bars small {
  font-size: 12px;
  color: var(--me-muted);
  text-align: right;
}
@keyframes me-grow {
  from {
    transform: scaleX(0);
  }
}
.me-facts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-size: 15px;
}
.me-facts div {
  display: grid;
  gap: 2px;
}
.me-facts dt {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--me-muted);
}
.me-facts dd {
  margin: 0;
}
.me-actions {
  display: flex;
  gap: 8px 22px;
  flex-wrap: wrap;
}
.me-actions button,
.me-link {
  padding: 10px 0;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
  color: #6732a0;
  justify-self: start;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat;
  transition: background-size 0.3s;
}
.me-actions button:hover,
.me-link:hover {
  background-size: 100% 1.5px;
}
.me-actions button::after {
  content: ' →';
}
html[data-theme='dark'] :is(.me-actions button, .me-link) {
  color: #d6b5ff;
}
/* Your taste tags (2026-10-22): words that float in two rows, no boxes. Your own tags glow; learned ones are quieter. */
.tt {
  display: grid;
  gap: 14px;
}
/* More of / Less of: two words with a gradient underline (Vlad, 2026-10-27: pills grouped by kind) */
.tt-tabs {
  display: flex;
  gap: 26px;
}
.tt-tabs button {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 0 7px;
  font-size: 17px;
  font-weight: 600;
  color: var(--me-muted);
  position: relative;
}
.tt-tabs button small {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.8;
}
.tt-tabs button[aria-selected='true'] {
  color: #8548c5;
}
.tt-tabs button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8548c5, #e0559f);
}
html[data-theme='dark'] .tt-tabs button[aria-selected='true'] {
  color: #d6b5ff;
}
.tt-row {
  display: grid;
  gap: 18px;
}
.tt-row[hidden] {
  display: none;
}
.tt-group h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--me-muted);
}
.tt-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tt-tag {
  --pill: #f4eefb;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--me-ink);
  font-size: 15px;
  animation: tt-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  transition: background 0.2s;
}
html[data-theme='dark'] .tt-learned {
  --pill: #ffffff14;
}
.tt-tag > span,
.tt-learned > button:first-child {
  padding: 0 4px 0 15px;
  min-height: 38px;
  color: inherit;
}
.tt-learned:hover {
  --pill: #ebe0f8;
}
html[data-theme='dark'] .tt-learned:hover {
  --pill: #ffffff22;
}
.tt-mine {
  --pill: linear-gradient(135deg, #8548c5, #e0559f);
  color: #fff;
  font-weight: 600;
}
.tt-mine > span {
  display: inline-flex;
  align-items: center;
}
.tt-less .tt-mine {
  --pill: #4a3560;
}
html[data-theme='dark'] .tt-less .tt-mine {
  --pill: #ffffff40;
}
.tt-x {
  min-width: 30px;
  min-height: 38px;
  padding-right: 6px;
  font-size: 15px;
  color: inherit;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.tt-tag:hover .tt-x,
.tt-x:focus-visible {
  opacity: 0.9;
}
@media (hover: none) {
  .tt-x {
    opacity: 0.6;
  }
}
.tt-empty,
.tt-help,
.tt-paused {
  margin: 0;
  font-size: 13px;
  color: var(--me-muted);
}
.tt-empty {
  margin-bottom: 10px;
}
.tt-paused button {
  color: inherit;
  text-decoration: underline dotted;
}
.tt-add {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 14px;
  margin-top: 4px;
}
.tt-plus {
  background: none;
}
.tt-plus button {
  min-height: 38px;
  font-size: 14px;
  font-weight: 600;
  color: #8548c5;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px dashed #8548c580;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.tt-plus button:hover,
.tt-plus button:focus-visible {
  border-color: #8548c5;
  background: #8548c514;
}
html[data-theme='dark'] .tt-plus button {
  color: #d6b5ff;
  border-color: #d6b5ff80;
}
.tt-submit {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8548c5, #e0559f);
}
.tt-field {
  position: relative;
}
.tt-field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--me-ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--me-line);
  border-radius: 0;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s;
}
.tt-field input:focus {
  border-image: linear-gradient(90deg, #8548c5, #e0559f) 1;
}
.tt-field input::placeholder {
  color: var(--me-muted);
}
.tt-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  padding: 6px;
  border-radius: 16px;
  background: var(--me-bg, #fff);
  box-shadow: 0 18px 50px #3b1d6626;
}
html[data-theme='dark'] .tt-suggest {
  background: #1b1622;
  box-shadow: 0 18px 50px #0009;
}
.tt-suggest[hidden] {
  display: none;
}
.tt-option {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: left;
  color: var(--me-ink);
}
.tt-option small {
  color: var(--me-muted);
}
.tt-option.active,
.tt-option:hover {
  background: #8548c514;
}
.tt-hint,
.tt-note {
  margin: 0;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--me-muted);
}
.tt-note {
  padding: 0;
}
.tt-note:empty {
  display: none;
}
@keyframes tt-in {
  from {
    opacity: 0;
    transform: translateY(4px);
    filter: blur(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tt-tag {
    animation: none;
  }
}
/* Achievements: round medals that twist in and flip over for details. */
.ach-grid {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 22px 10px;
}
.ach {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  perspective: 700px;
}
.ach-medal {
  position: relative;
  width: 96px;
  height: 96px;
  padding: 0;
  border-radius: 50%;
}
.ach-flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 1.45, 0.45, 1);
}
.ach.flipped .ach-flip {
  transform: rotateY(180deg);
}
.ach-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ach-front {
  filter: drop-shadow(0 10px 16px #5b2a9a40);
}
.ach.locked .ach-front {
  filter: none;
}
.ach-front::after {
  content: '';
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, #ffffffb0 48%, transparent 60%) -150% 0/250% 100% no-repeat;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.ach.earned .ach-medal:hover .ach-front::after {
  animation: ach-shine 0.9s ease;
}
@keyframes ach-shine {
  to {
    background-position: 150% 0;
  }
}
.medal-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.ach-back {
  transform: rotateY(180deg);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 12px;
  background: radial-gradient(circle at 35% 30%, #8f55d6, #4a1f7c);
  color: #fff;
  box-shadow:
    inset 0 0 0 3px #ffffff40,
    0 10px 16px #5b2a9a40;
}
.ach.locked .ach-back {
  background: radial-gradient(circle at 35% 30%, #8d8599, #4c4556);
}
.ach-back strong {
  font-size: 11px;
  line-height: 1.15;
}
.ach-back small {
  font-size: 9.5px;
  line-height: 1.2;
  opacity: 0.85;
}
.ach-back em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffe48f;
}
.ach-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  max-width: 110px;
}
.ach.locked .ach-name {
  color: var(--me-muted);
  font-weight: 500;
}
.ach.locked .ach-front {
  opacity: 0.9;
}
@media (hover: hover) {
  .ach.earned:not(.flipped) .ach-medal:hover .ach-flip {
    animation: ach-wiggle 0.7s cubic-bezier(0.3, 1.5, 0.5, 1);
  }
}
@keyframes ach-wiggle {
  30% {
    transform: rotateY(-28deg) rotateZ(-6deg) scale(1.08);
  }
  65% {
    transform: rotateY(14deg) rotateZ(3deg) scale(1.04);
  }
}
.ach-grid.twist .ach.earned .ach-medal {
  animation: ach-twist 0.95s cubic-bezier(0.25, 1.5, 0.45, 1) both;
  animation-delay: calc(var(--i) * 70ms + 120ms);
}
@keyframes ach-twist {
  0% {
    transform: rotateY(-540deg) scale(0.3);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  75% {
    transform: rotateY(18deg) scale(1.12);
  }
  100% {
    transform: none;
  }
}
.ach-pop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  background: radial-gradient(circle, #2a1145cc, #12071fee 70%);
  color: #fff;
  animation: ach-pop-in 0.3s ease both;
  pointer-events: none;
  perspective: 900px;
}
.ach-pop-medal {
  width: min(46vw, 200px);
  aspect-ratio: 1;
  filter: drop-shadow(0 20px 40px #e0559f66);
  animation: ach-twist 1.1s cubic-bezier(0.25, 1.5, 0.45, 1) both;
}
.ach-pop p {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d6b5ff;
}
.ach-pop strong {
  font-size: 26px;
  letter-spacing: -0.6px;
}
.ach-pop.leaving {
  animation: ach-pop-out 0.35s ease forwards;
}
@keyframes ach-pop-in {
  from {
    opacity: 0;
  }
}
@keyframes ach-pop-out {
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ach-flip {
    transition: none;
  }
  .ach-grid.twist .ach.earned .ach-medal,
  .ach-pop-medal,
  .me-bars i {
    animation: none;
  }
  .ach.flipped .ach-flip {
    transform: none;
  }
  .ach-back {
    transform: none;
    opacity: 0;
    transition: opacity 0.25s;
  }
  .ach-front {
    transition: opacity 0.25s;
  }
  .ach.flipped .ach-back {
    opacity: 1;
  }
  .ach.flipped .ach-front {
    opacity: 0;
  }
  .ach-face {
    backface-visibility: visible;
  }
}
.ach-pop.still,
.ach-pop.still .ach-pop-medal {
  animation: none;
}
/* Top 5 of all time: five posters in a row with big soft ranks, no frames. */
.favs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 20px);
  padding: 0;
  margin: 4px 0 0;
  max-width: 640px;
}
.fav {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
}
.fav img,
.fav i {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 24px -10px #2a184066;
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.fav i {
  display: grid;
  place-items: center;
  font-style: normal;
  background: linear-gradient(160deg, #d6b5ff, #ff9bd0);
}
.fav-empty i {
  background: none;
  box-shadow: none;
  border: 1.5px dashed color-mix(in srgb, var(--me-muted) 55%, transparent);
  color: var(--me-muted);
  font-size: 26px;
}
.fav:hover img,
.fav:hover i {
  transform: translateY(-4px);
}
.fav-rank {
  position: absolute;
  left: -4px;
  top: -12px;
  z-index: 1;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(160deg, #d6b5ff, #ff9bd0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fav small {
  font-size: 12px;
  color: var(--me-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fav-results {
  max-height: min(440px, 60vh);
}
.fav-results button {
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}
.fav-results img,
.fav-results i {
  flex: none;
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  background: linear-gradient(160deg, #d6b5ff, #ff9bd0);
}
.fav-results strong {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}
.fav-menu {
  flex-wrap: wrap;
}
/* Lists on your wall: posters fanned out, no frames. */
.me-tiles {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 6px 4px 10px;
  scrollbar-width: none;
  margin: 0 -4px;
}
.me-tiles::-webkit-scrollbar {
  display: none;
}
.me-tile {
  flex: none;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 0;
  width: 150px;
}
.me-tile strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-tile small {
  font-size: 12px;
  color: var(--me-muted);
}
.fan {
  position: relative;
  display: block;
  height: 150px;
  width: 150px;
}
.fan img,
.fan i {
  position: absolute;
  left: 30px;
  top: 6px;
  width: 88px;
  height: 132px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 24px -8px #2a184066;
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.fan i {
  background: linear-gradient(160deg, #d6b5ff, #ff9bd0);
}
.fan img[style*='--k:0'] {
  z-index: 3;
}
.fan img[style*='--k:1'] {
  transform: rotate(-9deg) translateX(-22px);
  z-index: 2;
}
.fan img[style*='--k:2'] {
  transform: rotate(9deg) translateX(22px);
  z-index: 1;
}
.me-tile:hover .fan img[style*='--k:1'] {
  transform: rotate(-14deg) translateX(-30px);
}
.me-tile:hover .fan img[style*='--k:2'] {
  transform: rotate(14deg) translateX(30px);
}
.me-tile:hover .fan img[style*='--k:0'] {
  transform: translateY(-4px);
}
.me-import .primary {
  justify-self: start;
  margin-top: 0;
  min-height: 44px;
}
/* The wall: a timeline with a soft line running down it. */
.wall {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 18px;
  position: relative;
}
.wall::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(#c99cff, #ff9bd0 60%, transparent);
}
.wall-item {
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
}
.wall-dot {
  position: absolute;
  left: -21px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #8548c5;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--me-glow) 30%, transparent);
}
.wall-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.wall-item small {
  font-size: 12px;
  color: var(--me-muted);
}
.wall-poster {
  flex: none;
  width: 44px;
  padding: 0;
}
.wall-poster img {
  width: 44px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 14px -6px #2a184066;
}
.wall-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #8548c5, #e0559f);
}
.wall-icon .icon {
  width: 20px;
  height: 20px;
}
.wall-medal {
  flex: none;
  width: 48px;
  height: 48px;
  margin: -2px;
}
@media (max-width: 420px) {
  .me {
    gap: 38px;
  }
  .me-stats button {
    padding: 6px 9px;
  }
  .me-bars li {
    grid-template-columns: 86px 1fr 56px;
    gap: 10px;
    font-size: 14px;
  }
  .ach-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 6px;
  }
  .ach-medal {
    width: 88px;
    height: 88px;
  }
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: var(--c);
  transform: rotate(var(--r));
  animation: confetti-fall 1.8s ease-in var(--d) forwards;
}
@keyframes confetti-fall {
  to {
    transform: translateY(105vh) rotate(calc(var(--r) + 540deg));
    opacity: 0.2;
  }
}
.publish-list.on {
  background: linear-gradient(140deg, #f3e8ff, #ffe9f3);
  color: #6732a0;
  border-color: #d6b5ff;
}
html[data-theme='dark'] .publish-list.on {
  background: linear-gradient(140deg, #3b2856, #43263a);
  color: #e6d2ff;
}
/* Back to results from a film's details (Find a film), testers 2026-10-20 */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #7d3eb2;
  padding: 4px 0;
  margin-bottom: 6px;
}
html[data-theme='dark'] .detail-back {
  color: #d2b4ff;
}
/* Select several films (Saved, Tonight, Watched, Maybe, own lists): tap posters to tick them, one floating bar adds them to a list */
.pick-start[hidden] {
  display: none;
}
.collection.pick-mode .collection-card {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.collection.pick-mode .collection-card > button {
  position: relative;
  display: block;
}
.collection.pick-mode .collection-card > button:after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #0004;
  box-shadow: 0 2px 10px #0004;
}
.collection.pick-mode .collection-card.picked > button:after {
  content: '✓';
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(120deg, #9860d0, #783bb4);
  border-color: transparent;
}
.collection.pick-mode .collection-card.picked {
  box-shadow:
    0 0 0 2px #8548c5,
    0 10px 30px #783bb430;
  transform: translateY(-2px);
}
.collection.pick-mode .card-actions,
.collection.pick-mode .watched-actions {
  opacity: 0.3;
  pointer-events: none;
}
.pick-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
  bottom: 96px;
  width: min(520px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border-radius: 22px;
  background: #fffffff2;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 50px #45246630;
  animation: pick-in 0.25s ease both;
}
@keyframes pick-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%);
  }
}
.pick-count {
  font-size: 12px;
  color: #786582;
  flex: 1 1 auto;
}
.pick-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.pick-buttons button {
  padding: 10px 18px;
}
html[data-theme='dark'] .pick-bar {
  background: #1d1d20f2;
  box-shadow: 0 15px 50px #0008;
}
html[data-theme='dark'] .pick-count {
  color: #b9a9c8;
}
#app .workspace:has(.pick-bar) {
  padding-bottom: 200px;
}
.many-picker {
  max-height: 42dvh;
  overflow-y: auto;
  margin: 6px -4px 14px;
}
.many-picker .list-check {
  width: 100%;
  text-align: left;
}
.pick-count {
  font-size: 13px;
}
@media (min-width: 1000px) {
  .pick-bar {
    bottom: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pick-bar {
    animation: none;
  }
  .collection.pick-mode .collection-card.picked {
    transform: none;
  }
}
/* Search results get the room (testers, 2026-10-20): face shrinks to a strip, results bubble spans the chat */
.chat-face {
  transition:
    height 0.35s ease,
    min-height 0.35s ease;
}
.chat.has-results .chat-face {
  height: clamp(70px, 11vh, 110px);
  min-height: 0;
}
.chat.has-results .chat-bowtie {
  width: 62px;
  height: 29px;
}
.chat.has-results #flixby-line.chat-line {
  font-size: 15px;
  min-height: 0;
  margin: 6px auto 4px;
}
.chat-msg.flixby:has(.chat-results) {
  max-width: 100%;
  width: 100%;
  padding: 12px 14px;
}
.chat-results .chat-posters img {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  max-width: 96px;
  height: auto;
  aspect-ratio: 2/3;
}
.chat-results .chat-chip {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 14px;
}
.chat-results .primary {
  padding: 12px 20px;
}
@media (prefers-reduced-motion: reduce) {
  .chat-face {
    transition: none;
  }
}
/* Language and country filters: your own and the 10 biggest as pills, plus type to find any (testers, 2026-10-20) */
.origin-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #79558d;
  letter-spacing: 0.02em;
}
.origin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.origin-chips .pill {
  margin: 0;
  cursor: pointer;
}
.origin-find {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: #f6f1fa;
  color: #382348;
  border-radius: 99px;
  padding: 10px 16px;
  font-size: 14px;
}
.origin-matches:not(:empty) {
  margin-top: 8px;
}
.origin-none {
  font-size: 12px;
  color: #8c7f96;
}
html[data-theme='dark'] .origin-title {
  color: #c9b6e4;
}
html[data-theme='dark'] .origin-find {
  background: #2a2a2d;
  color: #f4ecff;
}
/* Find a film: people and genres to browse; Browse: a page of films to scroll (testers, 2026-10-20) */
.find-browse {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 12px;
}
.find-person {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f8f3fc;
  color: #382348;
}
.find-person:hover {
  background: #f1e7fa;
}
.find-person img,
.find-person-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #b48be8, #7a3fb8);
  color: #fff;
  font-weight: 700;
}
.find-person strong {
  display: block;
  font-size: 14px;
}
.find-person small {
  display: block;
  font-size: 12px;
  color: #8c7f96;
}
html[data-theme='dark'] .find-person {
  background: #232326;
  color: #f4ecff;
}
html[data-theme='dark'] .find-person:hover {
  background: #2c2c30;
}
.browse-modal {
  width: min(820px, 100%);
}
.browse-find {
  width: 100%;
  margin: 6px 0 2px;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 0 0 10px #fff;
}
html[data-theme='dark'] .browse-find {
  box-shadow: 0 0 0 10px #222224;
}
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 14px 12px;
  margin-top: 14px;
}
.browse-film {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 3px;
  color: inherit;
}
.browse-film img,
.browse-noposter {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
  background: #eee5f4;
  box-shadow: 0 6px 18px #45246618;
  transition: transform 0.18s ease;
}
.browse-film:hover img {
  transform: translateY(-2px);
}
.browse-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.browse-year {
  font-size: 11px;
  color: #8c7f96;
}
.browse-state {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 99px;
  background: #ffffffe6;
  color: #6b329b;
}
.browse-more {
  display: flex;
  justify-content: center;
  margin: 18px 0 4px;
}
.chat-result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-result-actions .secondary {
  padding: 10px 16px;
}
@media (max-width: 600px) {
  .browse-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .browse-film img {
    transition: none;
  }
}
/* Voice/chat fixes (Vlad, 2026-10-20): the talk button answers a press at once, and steps back while results are showing. */
.chat .chat-talk.is-pressed {
  transform: scale(0.94);
}
.chat.has-results .chat-talk {
  width: 62px;
  height: 62px;
  margin-top: 10px;
}
.chat.has-results .chat-talk svg {
  width: 26px;
  height: 26px;
}
.chat-posters.chat-one {
  justify-content: center;
}
.chat-posters.chat-one img {
  max-width: 140px;
}
/* Microphone picker (Vlad, 2026-10-20): a quiet line under the talk button on desktop, and in Settings → Flixby. */
.mic-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #7e6c8c;
}
.mic-picker[hidden] {
  display: none;
}
.mic-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mic-picker select {
  max-width: min(260px, 60vw);
  padding: 6px 26px 6px 10px;
  border: 0;
  border-bottom: 1px solid #e3d8ee;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
}
.mic-meter {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: #eee7f3;
  overflow: hidden;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.mic-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ab64ed, #e0457b);
  transition: width 60ms linear;
}
.mic-picker.testing .mic-meter {
  opacity: 1;
}
.mic-picker.mic-failed .mic-meter {
  background: #f6c9d6;
}
.mic-test {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #7836b6;
}
.chat-mic {
  margin-top: 6px;
  justify-content: center;
}
.mic-heading {
  margin-top: 30px !important;
}
html[data-theme='dark'] .mic-picker {
  color: #a99cb8;
}
html[data-theme='dark'] .mic-picker select {
  border-color: #414144;
}
html[data-theme='dark'] .mic-picker select option {
  background: #232326;
}
html[data-theme='dark'] .mic-meter {
  background: #333;
}
html[data-theme='dark'] .mic-test {
  color: #d7b4f7;
}

/* Profile on desktop (owner, 2026-10-20): a rail on the left (you, the section links, Settings); each section opens on its own. */
@media (min-width: 1000px) {
  .me {
    max-width: 1180px;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 80px;
    row-gap: 0;
    align-items: start;
    padding-top: 24px;
  }
  .me::before {
    left: -160px;
    right: auto;
    width: 720px;
    top: -160px;
  }
  .me-rail {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 112px;
  }
  .me-cover {
    align-items: flex-start;
    text-align: left;
    padding: 0;
    gap: 16px;
  }
  .me-photo {
    width: 96px;
    height: 96px;
  }
  .me-initial {
    font-size: 40px;
  }
  .me-who h1 {
    font-size: 34px;
  }
  .me-who .me-taste-line {
    font-size: 15px;
  }
  .me-nav {
    display: grid;
    gap: 2px;
    margin-left: -14px;
  }
  .me-nav button {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--me-muted);
    text-align: left;
    position: relative;
    transition:
      color 0.2s,
      background 0.2s;
  }
  .me-nav button:hover {
    color: var(--me-ink);
    background: color-mix(in srgb, var(--me-glow) 10%, transparent);
  }
  .me-nav button[aria-current] {
    color: var(--me-ink);
    font-weight: 600;
    background: color-mix(in srgb, var(--me-glow) 14%, transparent);
  }
  .me-nav button[aria-current]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(#8548c5, #e0559f);
  }
  .me-nav small {
    font-size: 12px;
    color: var(--me-muted);
    font-weight: 500;
  }
  .me-settings {
    position: static;
    align-self: flex-start;
    min-height: 44px;
    padding: 0 18px 0 14px;
    font-size: 14px;
  }
  .me-views {
    display: grid;
    gap: 52px;
    min-width: 0;
    animation: me-view 0.35s ease;
  }
  .me-stats {
    justify-content: flex-start;
    margin: 0 0 -12px -26px;
  }
  .me:is([data-view='taste'], [data-view='wall'])
    .me-views
    > [data-view]:not([data-view='taste'], [data-view='wall'], [data-view='all']),
  .me[data-view='tags'] .me-views > [data-view]:not([data-view='tags'], [data-view='all']),
  .me[data-view='achievements'] .me-views > [data-view]:not([data-view='achievements'], [data-view='all']),
  .me[data-view='lists'] .me-views > [data-view]:not([data-view='lists'], [data-view='all']),
  .me[data-view='import'] .me-views > [data-view]:not([data-view='import'], [data-view='all']),
  .me[data-view='feed'] .me-views > [data-view]:not([data-view='feed'], [data-view='all']),
  .me[data-view='friends'] .me-views > [data-view]:not([data-view='friends'], [data-view='all']) {
    display: none;
  }
  .me-nav [data-me-view='wall'] {
    display: none;
  }
  .me[data-view='wall'] .me-nav [data-me-view='taste'] {
    color: var(--me-ink);
  }
  .me-section > h2 {
    font-size: 13px;
  }
  .ach-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 30px 14px;
  }
  .ach-medal {
    width: 112px;
    height: 112px;
  }
  .ach-back strong {
    font-size: 12.5px;
  }
  .ach-back small,
  .ach-back em {
    font-size: 11px;
  }
  .me-guest {
    text-align: left;
  }
}
@keyframes me-view {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
/* Profile on phones (owner, 2026-10-25): a compact header, then the desktop rail's sections as a row of words
   that sticks under the top bar and scrolls sideways; one section at a time. */
@media (max-width: 999px) {
  .me {
    gap: 26px;
    padding-top: 0;
  }
  .me::before {
    height: 380px;
    top: -140px;
  }
  .me-cover {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 14px 2px 0;
  }
  .me-photo {
    width: 72px;
    height: 72px;
    box-shadow: 0 12px 30px -12px #8548c588;
  }
  .me-initial {
    font-size: 30px;
    border-width: 3px;
    box-shadow:
      0 0 0 2px #d6b5ff,
      0 12px 30px -12px #8548c588;
  }
  .me-photo-button .me-photo-edit {
    transform: scale(0.8);
    transform-origin: bottom right;
  }
  .me-who h1 {
    font-size: 26px;
    letter-spacing: -0.8px;
    margin-right: 96px;
  }
  .me-who p {
    margin-top: 4px;
    font-size: 12.5px;
  }
  .me-who .me-taste-line {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 6px;
  }
  .me-settings {
    top: 14px;
    min-height: 34px;
    padding: 0 12px 0 10px;
    font-size: 12.5px;
    gap: 5px;
  }
  .me-settings .icon {
    width: 16px;
    height: 16px;
  }
  .me-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 3;
    gap: 22px;
    margin: -8px -5vw 0;
    padding: 0 5vw;
    overflow-x: auto;
    scrollbar-width: none;
    background: #ffffffd6;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--me-line);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .me-nav::-webkit-scrollbar {
    display: none;
  }
  html[data-theme='dark'] .me-nav {
    background: #19181bd6;
  }
  .me-nav button {
    position: relative;
    flex: none;
    min-height: 46px;
    padding: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--me-muted);
    transition: color 0.2s;
  }
  .me-nav button span {
    font-size: 0;
  }
  .me-nav button span::before {
    content: attr(data-short);
    font-size: 15px;
  }
  .me-nav small {
    display: none;
  }
  .me-nav button[aria-current] {
    color: var(--me-ink);
    font-weight: 600;
  }
  .me-nav button::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #8548c5, #e0559f);
    transform: scaleX(0);
    transition: transform 0.25s ease;
  }
  .me-nav button[aria-current]::after {
    transform: scaleX(1);
  }
  .me-nav [data-me-view].has-news::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e0559f;
  }
  .me-nav [data-me-view].has-news::after {
    all: unset;
  }
  .me-nav [data-me-view].has-news[aria-current]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #8548c5, #e0559f);
  }
  .me-views {
    display: grid;
    gap: 38px;
    min-width: 0;
    animation: me-view 0.3s ease;
  }
  .me-stats {
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0;
  }
  .me-stats button {
    flex: 1;
    padding: 4px 0;
  }
  .me-stats strong {
    font-size: 24px;
  }
  .me-stats span {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .me[data-view='taste'] .me-views > [data-view]:not([data-view='taste'], [data-view='import'], [data-view='all']),
  .me[data-view='tags'] .me-views > [data-view]:not([data-view='tags'], [data-view='all']),
  .me[data-view='wall'] .me-views > [data-view]:not([data-view='wall'], [data-view='all']),
  .me[data-view='achievements'] .me-views > [data-view]:not([data-view='achievements'], [data-view='all']),
  .me[data-view='lists'] .me-views > [data-view]:not([data-view='lists'], [data-view='all']),
  .me[data-view='import'] .me-views > [data-view]:not([data-view='import'], [data-view='all']),
  .me[data-view='feed'] .me-views > [data-view]:not([data-view='feed'], [data-view='all']),
  .me[data-view='friends'] .me-views > [data-view]:not([data-view='friends'], [data-view='all']) {
    display: none;
  }
  .me-section:is([data-view='wall'], [data-view='feed'], [data-view='friends']) > h2 {
    display: none;
  }
  .ach-grid:not(.all) .ach.locked {
    display: none;
  }
  .ach-progress {
    display: block;
    height: 3px;
    margin-top: -4px;
    border-radius: 3px;
    background:
      linear-gradient(90deg, #8548c5, #e0559f) 0 0 / var(--w) 100% no-repeat,
      var(--me-line);
  }
  .ach-more {
    justify-self: center;
  }
}
@media (min-width: 1000px) {
  .ach-progress {
    display: none;
  }
  .ach-more {
    display: none;
  }
}
[data-me-view].has-news::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0559f;
  box-shadow: 0 0 0 3px color-mix(in srgb, #e0559f 25%, transparent);
}
.me-nav [data-me-view].has-news::after {
  position: static;
  align-self: center;
  margin-left: auto;
}
.feed,
.pals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.feed-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--me-line);
}
.feed-item:last-child {
  border-bottom: 0;
}
.feed-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.feed-text small {
  font-size: 12px;
  color: var(--me-muted);
}
.feed-text .me-link {
  display: block;
  min-height: 36px;
  padding: 6px 0;
}
.feed-name {
  padding: 0;
  font-weight: 700;
  color: var(--me-ink);
}
.feed-name:hover {
  text-decoration: underline;
}
.feed-who {
  padding: 0;
  border-radius: 50%;
}
.feed-poster {
  padding: 0;
  width: 52px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px -12px #0008;
  transition: transform 0.2s;
}
.feed-poster:hover {
  transform: translateY(-2px) rotate(-1.5deg);
}
.feed-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.feed-empty {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.pal-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex: none;
}
.pal-initial {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #b07cf2, #6732a0 70%);
}
.pal-photo.big {
  width: 84px;
  height: 84px;
  font-size: 32px;
  margin: 0 auto;
}
.pal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--me-line);
}
.pal:last-child {
  border-bottom: 0;
}
.pal-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  min-width: 0;
}
.pal-who span {
  display: grid;
  min-width: 0;
}
.pal-who strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pal-who small {
  font-size: 12px;
  color: var(--me-muted);
}
.pal-actions {
  display: flex;
  gap: 6px;
  flex: none;
}
.pal-yes,
.pal-no {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
}
.pal-yes {
  background: linear-gradient(135deg, #8548c5, #c2569f);
  color: #fff;
}
.pal-no {
  border: 1px solid var(--me-line);
  color: var(--me-ink);
}
#me-friends-box {
  display: grid;
  gap: 24px;
}
#me-friends-box h3 {
  margin: 6px 0 -12px;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--me-muted);
  font-weight: 600;
}
#me-friends-box h3 small {
  letter-spacing: 0;
  margin-left: 6px;
}
.handle-form,
.add-friend {
  display: grid;
  gap: 8px;
}
.handle-form label,
.add-friend label {
  font-size: 15px;
  font-weight: 600;
}
.handle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--me-line);
  padding-bottom: 6px;
  max-width: 440px;
}
.handle-row:focus-within {
  border-color: #8548c5;
}
.handle-row > span {
  font-size: 18px;
  color: var(--me-muted);
}
.handle-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 18px;
  padding: 8px 0;
  outline: none;
}
.handle-row .primary {
  padding: 10px 18px;
}
.handle-error {
  margin: 0;
  min-height: 1em;
  font-size: 13px;
  color: #c2365f;
}
html[data-theme='dark'] .handle-error {
  color: #ff8fb1;
}
.you-are {
  display: flex;
  align-items: center;
  gap: 16px;
}
.you-are div {
  display: grid;
}
.you-are small {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--me-muted);
}
.you-are strong {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.switch-row,
.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 560px;
}
.switch-row span,
.invite-row div {
  display: grid;
  gap: 3px;
}
.switch-row small,
.invite-row small {
  font-size: 13px;
  color: var(--me-muted);
  line-height: 1.5;
}
.switch-row input {
  appearance: none;
  flex: none;
  width: 48px;
  height: 28px;
  border-radius: 99px;
  background: var(--me-line);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.switch-row input::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px #0003;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.switch-row input:checked {
  background: linear-gradient(135deg, #8548c5, #c2569f);
}
.switch-row input:checked::after {
  transform: translateX(20px);
}
.switch-row input:focus-visible {
  outline: 2px solid #8548c5;
  outline-offset: 3px;
}
.invite-row .primary .icon {
  width: 16px;
  height: 16px;
}
.person .me-cover {
  margin-bottom: 6px;
}
.person-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.person-stats span {
  display: grid;
  gap: 2px;
  padding: 6px clamp(10px, 3.4vw, 26px);
  text-align: center;
}
.person-stats > span + span {
  position: relative;
}
.person-stats > span + span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--me-line);
}
.person-private {
  text-align: center;
  max-width: 420px;
  margin: 10px auto 0;
}
.invite-card {
  text-align: center;
}
.invite-card .handle-form {
  text-align: left;
  margin-top: 16px;
}
@media (min-width: 1000px) {
  .person {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }
  .person .me-cover {
    align-items: center;
    text-align: center;
  }
  .person-stats {
    justify-content: center;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .me-views {
    animation: none;
  }
}

/* Returning people's one-time spotlight of the new swipe layout (tour.js "swipes"): the card leans down with a Maybe cue, then the eye pulses */
body[data-tour-step='swipes-0'] #movie-card {
  animation: tour-lean-down 2.2s ease-in-out infinite;
}
body[data-tour-step='swipes-0'] .deck .direction[data-action='maybe'] {
  scale: 1.15;
  box-shadow:
    0 0 0 7px rgba(47, 127, 208, 0.3),
    0 8px 20px var(--fx-shadow);
}
body[data-tour-step='swipes-0'] .deck::after {
  content: 'MAYBE ?';
  position: absolute;
  z-index: 7;
  top: 58%;
  left: 50%;
  padding: 4px 12px;
  border: 3px solid #fff;
  border-radius: 10px;
  background: rgba(36, 104, 176, 0.75);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%) rotate(6deg);
  pointer-events: none;
}
body[data-tour-step='swipes-1'] .watched-button {
  animation: tour-eye-pulse 1.4s ease-in-out infinite;
}
@keyframes tour-lean-down {
  0%,
  15%,
  100% {
    transform: none;
  }
  45%,
  70% {
    transform: translateY(46px) rotate(2deg);
  }
}
@keyframes tour-eye-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.35),
      0 4px 18px rgba(147, 51, 234, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(168, 85, 247, 0.28),
      0 4px 26px rgba(147, 51, 234, 0.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-tour-step='swipes-0'] #movie-card {
    animation: none;
    transform: translateY(24px);
  }
  body[data-tour-step='swipes-1'] .watched-button {
    animation: none;
    box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.3);
  }
}
.pill.tag-arrived {
  animation: tag-arrive 0.45s ease both;
}
@keyframes tag-arrive {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pill.tag-arrived {
    animation: none;
  }
}
/* Send feedback and the ? menu (owner, 2026-10-21) */
.top-right {
  position: relative;
}
.help-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 220px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #eadff1;
  box-shadow: 0 18px 50px #37194b26;
  animation: help-in 0.18s ease;
}
.help-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: #46285e;
  text-align: left;
}
.help-menu button:hover,
.help-menu button:focus-visible {
  background: #f4ecfc;
}
.help-menu .icon {
  color: #8548c5;
}
@keyframes help-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
html[data-theme='dark'] .help-menu {
  background: #241733;
  border-color: #ffffff1f;
  box-shadow: 0 18px 50px #0008;
}
html[data-theme='dark'] .help-menu button {
  color: #efe4ff;
}
html[data-theme='dark'] .help-menu button:hover,
html[data-theme='dark'] .help-menu button:focus-visible {
  background: #ffffff12;
}
html[data-theme='dark'] .help-menu .icon {
  color: #c9a5ff;
}
.feedback-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 18px 0 4px;
}
.feedback-kinds .pill {
  font-size: 13px;
  padding: 9px 14px;
}
.feedback-kinds .pill[aria-checked='true'] {
  background: #773ab3;
  color: #fff;
  border-color: #773ab3;
}
#feedback-message,
.report-note {
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid #e7d9f0;
  border-radius: 14px;
  background: #fcf9ff;
  color: #46314e;
  padding: 14px;
}
.report-note {
  min-height: 80px;
}
#feedback-message:focus,
.report-note:focus {
  outline: 2px solid #bd8cde;
  outline-offset: 2px;
}
html[data-theme='dark'] :is(#feedback-message, .report-note) {
  background: #ffffff0a;
  border-color: #ffffff24;
  color: #f3eaff;
}
.me-rail-buttons {
  display: contents;
}
.me-feedback {
  display: none;
}
@media (min-width: 1000px) {
  .me-rail-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .me-feedback {
    display: inline-flex;
  }
  .me-feedback:hover .icon {
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .help-menu {
    animation: none;
  }
}
/* Block and report (owner, 2026-10-21) */
.person-safety {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.person-safety .me-link {
  font-size: 13px;
  opacity: 0.75;
}
.person-safety .me-link:hover {
  opacity: 1;
}
.report-block {
  margin: 18px 0 4px;
  max-width: none;
}
.report-block input {
  background: #e7dcef;
}
html[data-theme='dark'] .report-block input {
  background: #ffffff26;
}
.report-block input:checked {
  background: linear-gradient(135deg, #8548c5, #c2569f);
}
/* Your own photo (owner, 2026-10-21) */
.me-photo-button {
  position: relative;
  flex: none;
  border-radius: 50%;
  padding: 0;
  line-height: 0;
}
.me-photo-button:focus-visible {
  outline-offset: 4px;
}
.me-photo-edit {
  position: absolute;
  right: 2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #6732a0;
  box-shadow: 0 4px 14px #37194b33;
  transition: transform 0.2s;
}
.me-photo-edit .icon {
  width: 18px;
  height: 18px;
}
.me-photo-button:hover .me-photo-edit {
  transform: scale(1.08);
}
html[data-theme='dark'] .me-photo-edit {
  background: #2a2333;
  color: #e6d2ff;
}
.photo-preview {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 22px auto;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #efe3fb, #f9e6f1);
  color: #9a7bb6;
  font-size: 48px;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html[data-theme='dark'] .photo-preview {
  background: #ffffff10;
}
.photo-buttons {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.photo-buttons [hidden] {
  display: none;
}
.photo-buttons .primary {
  justify-content: center;
  min-width: 220px;
}
.photo-buttons #photo-pick:not(.primary) {
  padding: 10px;
  font-size: 13px;
  color: #6732a0;
}
html[data-theme='dark'] .photo-buttons #photo-pick:not(.primary) {
  color: #d9bfff;
}
.photo-buttons .account-row {
  justify-content: center;
  border: 0;
}
/* Owner's inbox on /evaluation (2026-10-21) */
.evaluation-inbox {
  margin: 24px 0 40px;
}
.evaluation-inbox h3 {
  margin: 28px 0 10px;
}
.evaluation-inbox h3 small {
  font-weight: 400;
  color: #8b7a97;
}
.inbox-mail {
  padding: 12px 16px;
  border-radius: 14px;
  background: #f6f0fc;
}
.inbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.inbox-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eee5f4;
}
.inbox-list li.done {
  opacity: 0.55;
}
.inbox-list p {
  margin: 0 0 6px;
}
.inbox-list blockquote {
  margin: 6px 0;
  padding-left: 12px;
  border-left: 3px solid #c9a5ff;
  white-space: pre-wrap;
}
.inbox-list small {
  display: block;
  color: #8b7a97;
  overflow-wrap: anywhere;
}
.inbox-list button {
  margin-top: 8px;
  color: #6732a0;
  font-weight: 600;
}
.inbox-list pre {
  white-space: pre-wrap;
  font-size: 12px;
}
/* Film series (2026-10-21): the "Seen other films in this series?" sheet and "More in this series" in details. Open rows, no boxes. */
.series-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #00000010;
  font-size: 12px;
  color: var(--muted);
}
.series-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.series-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  padding: 10px 0;
  border-bottom: 1px solid #00000008;
}
.series-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 100%;
  min-width: 0;
  text-align: left;
  padding: 2px;
  border-radius: 10px;
}
.series-pick img,
.series-noposter {
  width: 32px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  background: #e9dff3;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.series-row.on .series-pick img,
.series-row.on .series-noposter {
  opacity: 1;
}
.series-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.series-title strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
.series-title small {
  font-size: 11px;
  color: var(--muted);
}
.series-tick {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cdb8df;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: transparent;
  flex: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.series-row.on .series-tick {
  background: linear-gradient(110deg, #8548c5, #68309f);
  border-color: transparent;
  color: #fff;
}
.series-stars {
  margin: 0;
  gap: 2px;
  flex: none;
}
.series-row .series-stars {
  margin: -2px 0 0 42px;
}
.series-stars button {
  font-size: 18px;
  padding: 2px;
}
.series-note {
  font-size: 12px !important;
  margin: 12px 0 0;
}
.series-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 6px;
  scrollbar-width: thin;
}
.series-film {
  flex: none;
  width: 86px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  font-size: 11px;
}
.series-film img,
.series-film .series-noposter {
  width: 86px;
  height: 129px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 1;
}
.series-film span {
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-film small {
  color: var(--muted);
  font-size: 10px;
}
.series-some {
  margin: 6px 0 4px;
}
html[data-theme='dark'] .series-all,
html[data-theme='dark'] .series-row {
  border-color: #ffffff12;
}
html[data-theme='dark'] .series-pick img,
html[data-theme='dark'] .series-noposter {
  background: #2a2a30;
}
html[data-theme='dark'] .series-tick {
  border-color: #ffffff30;
}
.series-group {
  list-style: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 0 2px !important;
  line-height: 1.4 !important;
}
/* Settings → Apps & API (public/api-keys.js) */
.api-keys {
  margin: 18px 0 8px;
}
.api-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee7f3;
}
.api-key strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.api-key small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #7e6c8c;
  line-height: 1.4;
}
.api-key button {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 12px;
}
.api-key-form {
  margin: 22px 0 12px;
}
.api-key-form h4 {
  margin: 0 0 10px;
}
.api-key-form > label {
  display: block;
  font-size: 12px;
  color: #7e6c8c;
  margin-bottom: 6px;
}
.api-key-form input:not([type]) {
  width: 100%;
  box-sizing: border-box;
}
.api-key-form .account-row span {
  display: grid;
  gap: 3px;
}
.api-key-form .account-row small {
  color: #7e6c8c;
  line-height: 1.4;
}
.api-key-form > button {
  margin-top: 16px;
}
.api-key-new {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 2px solid #b07ce6;
  border-bottom: 2px solid #b07ce6;
}
.api-key-new code {
  font-size: 13px;
  word-break: break-all;
  user-select: all;
  color: #5e2a96;
}
.api-key-new button {
  justify-self: start;
}
html[data-theme='dark'] :is(.api-key) {
  border-color: #414144;
}
html[data-theme='dark'] .api-key-new code {
  color: #d9bfff;
}
html[data-theme='dark'] :is(.api-key small, .api-key-form > label, .api-key-form .account-row small) {
  color: #a99bb5;
}
.api-key-form input:not([type]) {
  font: inherit;
  font-size: 14px;
  padding: 11px 16px;
  border: 1px solid #e0d4ec;
  border-radius: 99px;
  background: #faf7fd;
  color: inherit;
}
.api-key-form input:not([type]):focus-visible {
  outline: 3px solid #8548c5;
  outline-offset: 1px;
}
html[data-theme='dark'] .api-key-form input:not([type]) {
  background: #1b1b1d;
  border-color: #414144;
}
/* API guide (app/developers/page.tsx) */
.dev-docs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: #5e2a96;
}
.dev-code {
  margin: 14px 0 18px;
  padding: 16px 18px;
  overflow-x: auto;
  border-left: 3px solid #b07ce6;
  background: #f6f0fd;
  border-radius: 0 14px 14px 0;
  font-size: 13px;
  line-height: 1.55;
}
.dev-code code {
  color: #2f2340;
  font-size: inherit;
}
.dev-endpoint {
  padding: 14px 0;
  border-bottom: 1px solid #eee7f3;
}
.dev-endpoint p {
  margin: 4px 0;
}
.dev-method {
  display: inline-block;
  min-width: 58px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #7836b6;
}
.dev-scope {
  font-size: 11px;
  color: #8b7a99;
  margin-left: 6px;
}
@media (prefers-color-scheme: dark) {
  .dev-docs code {
    color: #d9bfff;
  }
  .dev-code {
    background: #ffffff0d;
    border-color: #9b6ad6;
  }
  .dev-code code {
    color: #efe6fa;
  }
  .dev-endpoint {
    border-color: #ffffff1f;
  }
  .dev-method {
    color: #cca6fa;
  }
  .dev-scope {
    color: #a99bb5;
  }
}
/* TV shows: badge on a show's poster */
.tv-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 9px 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: linear-gradient(135deg, #7b2ff7, #c13dd8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
/* Discover: Movies · TV shows · Both above the card; list screens: Movies | TV shows tabs */
.deck-switch,
.shelf-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 4px;
  gap: 2px;
  border-radius: 99px;
  background: var(--fx-soft, #f4edf9);
  border: 1px solid var(--fx-line, #e6dcef);
}
.shelf-tabs {
  margin: 4px 0 14px;
}
.deck-switch-option,
.shelf-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--fx-muted, #6a5a7c);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.shelf-tab span {
  font-size: 12px;
  opacity: 0.75;
}
.deck-switch-option.on,
.shelf-tab.on {
  background: linear-gradient(135deg, #7b2ff7, #c13dd8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(123, 47, 247, 0.28);
}
.deck-switch-option:focus-visible,
.shelf-tab:focus-visible {
  outline: 2px solid var(--fx-brand, #7b3fbc);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .deck-switch-option,
  .shelf-tab {
    transition: none;
  }
}
/* Phones: the switch gets its own row above Find a film and the genre button; wide screens keep one row. */
.discovery-tools .deck-switch {
  margin: 0;
}
.discovery-screen .discovery-tools:has(.deck-switch) {
  flex-wrap: wrap;
}
.deck-switch-option,
.shelf-tab {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .deck-switch-option {
    min-height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }
}
.deck-break {
  flex-basis: 100%;
  height: 0;
}
@media (min-width: 1000px) {
  .deck-break {
    display: none;
  }
}
/* Below 1000px the switch takes a row of its own: the card gives up that height so nothing needs scrolling. */
@media (max-width: 600px) {
  .discovery-screen:has(.deck-switch) {
    --tools: 102px;
  }
}
@media (min-width: 601px) and (max-width: 999px) {
  .discovery-screen:has(.deck-switch) {
    --card-h: calc(var(--vh) - 64px - 100px - 2 * var(--out) - 30px - 92px);
  }
}
@media (max-width: 360px), (max-height: 700px) {
  .discovery-tools .deck-switch {
    padding: 3px;
  }
  .deck-switch-option {
    min-height: 28px;
    font-size: 12.5px;
  }
}
/* A show's poster says so in its corner, so a mixed deck is easy to read at a glance */
.tv-corner {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, #7b2ff7, #c13dd8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
/* Today for you (Feed): today's smart lists as open rows of posters, no boxes (Vlad, 2026-10-22). */
.today {
  margin: 0 0 34px;
  min-width: 0;
}
.today:empty {
  display: none;
}
.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.today-head h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--me-muted);
}
.today-head .shelf-tabs {
  margin: 0;
}
.today-row {
  margin-top: 22px;
  min-width: 0;
}
.today-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--me-ink);
  text-align: left;
}
.today-title .icon {
  width: 18px;
  height: 18px;
  opacity: 0.55;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.today-title:hover .icon,
.today-title:focus-visible .icon {
  transform: translateX(3px);
  opacity: 1;
}
.today-blurb {
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--me-muted);
}
.today-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.today-strip::-webkit-scrollbar {
  display: none;
}
.today-poster {
  flex: none;
  width: 104px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 12px 26px -16px #0009;
  transition: transform 0.2s;
}
.today-poster:hover {
  transform: translateY(-3px);
}
.today-poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
@media (min-width: 1000px) {
  .today-poster {
    width: 124px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .today-title .icon,
  .today-poster {
    transition: none;
  }
  .today-poster:hover {
    transform: none;
  }
}

/* Quick re-rating stars (Watched cards, details) */
.quick-stars {
  display: flex;
  gap: 2px;
  margin: 2px 0 6px -6px;
}
.quick-stars button {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--fx-line-strong, #cbbad8);
  background: none;
  transition:
    transform 0.15s ease,
    color 0.15s ease;
}
.quick-stars button.on {
  color: var(--fx-brand, #8744be);
}
.quick-stars button:hover {
  transform: scale(1.15);
}
html[data-theme='dark'] .quick-stars button {
  color: #5f5a66;
}
html[data-theme='dark'] .quick-stars button.on {
  color: #c49af4;
}
.collection.pick-mode .quick-stars {
  opacity: 0.3;
  pointer-events: none;
}
.detail-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}
.detail-rate .quick-stars {
  margin: 0;
}
.detail-rate .quick-stars button {
  min-width: 40px;
  min-height: 40px;
  font-size: 26px;
}
@media (prefers-reduced-motion: reduce) {
  .quick-stars button {
    transition: none;
  }
  .quick-stars button:hover {
    transform: none;
  }
}
/* List links for Radarr/Sonarr (public/api-keys.js bindFeeds) */
.feed-links {
  margin: 26px 0 12px;
}
.feed-links h4 {
  margin: 0 0 10px;
}
.feed-links .account-row span {
  display: grid;
  gap: 3px;
}
.feed-links .account-row small,
.feed-list small {
  color: #7e6c8c;
  line-height: 1.4;
}
.feed-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 12px 0;
  border-bottom: 1px solid #eee7f3;
}
.feed-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.feed-list small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}
.feed-copy {
  display: flex;
  gap: 8px;
}
.feed-copy button {
  padding: 8px 12px;
  font-size: 12px;
}
#feed-reset {
  margin-top: 16px;
}
html[data-theme='dark'] .feed-list {
  border-color: #414144;
}
html[data-theme='dark'] :is(.feed-links .account-row small, .feed-list small) {
  color: #a99bb5;
}
/* Movie night with a friend (2026-10-23): a dark, open screen over the app; yes or no only. */
html.night-open {
  overflow: hidden;
}
.night {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: flex;
  flex-direction: column;
  color: #f7f3ff;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, #5a2a8a66, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%, #e0559f22, transparent 70%), #12081d;
  padding: max(10px, env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom));
  animation: chat-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
}
.night-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}
.night-close {
  font-size: 30px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #d9c8f0;
}
.night-body .night-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 16px;
}
.night-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.night-title > div {
  min-width: 0;
}
.night-title small {
  display: block;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 3px;
  color: #c7a8f5;
}
.night-title strong {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.night-here {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9fe6c9;
}
.night-here[hidden] {
  display: none;
}
.night-here i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4fdc9f;
  box-shadow: 0 0 0 0 #4fdc9f88;
  animation: night-here 2s infinite;
}
@keyframes night-here {
  70% {
    box-shadow: 0 0 0 7px #4fdc9f00;
  }
}
.night-pair {
  display: inline-flex;
  flex: none;
}
.night-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #12081d;
  background: linear-gradient(135deg, #8548c5, #e0559f);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.night-pair .night-avatar + .night-avatar {
  margin-left: -9px;
}
.night-pair.big .night-avatar {
  width: 64px;
  height: 64px;
  font-size: 24px;
  border-width: 3px;
}
.night-pair.big .night-avatar + .night-avatar {
  margin-left: -16px;
}
.night-waiting .night-avatar:last-child {
  opacity: 0.45;
  animation: night-wait 1.8s ease-in-out infinite;
}
@keyframes night-wait {
  50% {
    opacity: 0.85;
  }
}
.night-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.night-shared-link {
  font-size: 13px;
  font-weight: 600;
  color: #e6d7ff;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.night-shared-link b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8548c5, #e0559f);
  color: #fff;
  font-size: 11px;
}
.night-menu {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: #d9c8f0;
}
.night-menu-list {
  position: absolute;
  right: 0;
  top: 46px;
  z-index: 3;
  display: grid;
  min-width: 230px;
  padding: 6px;
  border-radius: 16px;
  background: #24143a;
  box-shadow: 0 18px 40px #0008;
}
.night-menu-list[hidden] {
  display: none;
}
.night-menu-list button {
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.night-menu-list button:hover {
  background: #ffffff10;
}
.night-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 0 0;
}
.night-quiet {
  color: #b9a8d4;
  text-align: center;
}
.night-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 520px;
}
.night-setup h2,
.night-shared h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 6vw, 36px);
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.night-sub {
  margin: 0;
  color: #c4b4dc;
  line-height: 1.5;
}
.night-mood-line {
  margin: 0;
  font-weight: 600;
  background: linear-gradient(90deg, #d6b5ff, #ff8fb1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.night-kinds {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #ffffff0d;
}
.night-kinds button {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: #c4b4dc;
}
.night-kinds button[aria-checked='true'] {
  background: #f7f3ff;
  color: #2a1145;
}
.night-genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.night-genre {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ffffff22;
  color: #e6d7ff;
  font-size: 14px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.night-genre[aria-pressed='true'] {
  background: linear-gradient(135deg, #8548c5, #c04f9c);
  border-color: transparent;
  color: #fff;
}
.night-go {
  margin-top: 6px;
  min-width: 220px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: #ffffff14;
}
.night-go.primary {
  background: linear-gradient(135deg, #8548c5, #e0559f);
  box-shadow: 0 14px 34px #e0559f44;
}
.night-text-link {
  color: #c7a8f5;
  font-weight: 600;
  padding: 8px 12px;
}
.night-status {
  min-height: 1.2em;
  margin: 0;
  color: #ffb3c8;
}
.night-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.night-card {
  position: relative;
  width: min(100%, 360px, calc((100dvh - 250px) * 2 / 3));
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: #24143a;
  box-shadow: 0 30px 60px #0009;
  touch-action: none;
  user-select: none;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
  --yes: 0;
  --no: 0;
}
.night-card.dragging {
  transition: none;
}
.night-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.night-card.gone.to-yes {
  transform: translateX(120%) rotate(14deg);
  opacity: 0;
}
.night-card.gone.to-no {
  transform: translateX(-120%) rotate(-14deg);
  opacity: 0;
}
.night-info {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 18px 18px;
  background: linear-gradient(transparent, #0c0514ee 55%);
}
.night-info h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.4px;
}
.night-info p {
  margin: 4px 0 0;
  color: #d4c6e8;
  font-size: 13px;
}
.night-plot {
  display: none;
  line-height: 1.45;
}
.night-card.show-plot .night-plot {
  display: block;
}
.night-stamp {
  position: absolute;
  top: 22px;
  padding: 6px 14px;
  border: 3px solid;
  border-radius: 10px;
  font:
    700 26px/1 'Bebas Neue',
    'DM Sans',
    sans-serif;
  letter-spacing: 2px;
  pointer-events: none;
}
.night-stamp.yes {
  left: 20px;
  color: #4fdc9f;
  transform: rotate(-12deg);
  opacity: var(--yes);
}
.night-stamp.no {
  right: 20px;
  color: #ff6b8f;
  transform: rotate(12deg);
  opacity: var(--no);
}
.night-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
.night-actions button {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.15s;
}
.night-actions button:active {
  transform: scale(0.92);
}
.night-actions .icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
.night-no {
  color: #ff8fb1;
  background: #ffffff10;
  border: 1px solid #ff8fb155;
}
.night-yes {
  color: #fff;
  background: linear-gradient(135deg, #8548c5, #e0559f);
  box-shadow: 0 12px 30px #e0559f55;
}
.night-left {
  min-width: 70px;
  text-align: center;
  font-size: 12px;
  color: #a998c2;
}
.night-shared {
  width: 100%;
  align-self: stretch;
}
.night-shared .back {
  padding-left: 0;
}
.night-shared .night-sub {
  margin: 6px 0 18px;
}
.night-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 18px 14px;
}
.night-grid button,
.person-shared-film {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #24143a;
}
.night-grid img,
.person-shared-film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.night-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}
.night-grid em,
.person-shared-film em {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0559f;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.person-shared-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 8px;
}
.person-shared-film {
  flex: none;
  width: 96px;
}
.person-actions .person-night {
  margin-right: 8px;
}
@media (max-width: 420px) {
  .night-head {
    gap: 6px;
  }
  .night-close {
    width: 32px;
  }
  .night-shared-link {
    padding: 8px 6px;
    font-size: 12px;
  }
  .night-title small {
    letter-spacing: 2px;
  }
}
/* "It's a match!": large across the screen like an achievement, with Watch this or Keep going. */
.night-match {
  position: fixed;
  inset: 0;
  z-index: 2050;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle, #3a1660ee, #0d0516f5 70%);
  animation: ach-pop-in 0.3s ease both;
}
.night-match.leaving {
  animation: ach-pop-out 0.3s ease forwards;
}
.night-match-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.night-match-eyebrow {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d6b5ff;
}
.night-match h2 {
  margin: 0;
  font:
    400 clamp(56px, 16vw, 104px) / 0.95 'Bebas Neue',
    'DM Sans',
    sans-serif;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #d6b5ff, #ff8fb1, #ffd36e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: night-match-in 0.7s cubic-bezier(0.25, 1.5, 0.45, 1) both;
}
.night-match-poster {
  width: min(42vw, 170px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 10px;
  box-shadow: 0 24px 50px #e0559f55;
  animation: night-poster-in 0.8s 0.15s cubic-bezier(0.25, 1.4, 0.45, 1) both;
}
.night-match strong {
  margin-top: 6px;
  font-size: 22px;
}
.night-match small {
  color: #c4b4dc;
}
.night-match-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}
.night-match-actions .primary {
  min-width: 220px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #8548c5, #e0559f);
}
@keyframes night-match-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes night-poster-in {
  from {
    transform: translateY(30px) rotate(-8deg) scale(0.8);
    opacity: 0;
  }
}
.night-match.still,
.night-match.still h2,
.night-match.still .night-match-poster {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .night,
  .night-card,
  .night-here i,
  .night-waiting .night-avatar:last-child {
    animation: none;
    transition: none;
  }
}
.find-kinds {
  margin: 10px 0 2px;
}
.find-genre-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.find-genre-bar:empty {
  display: none;
}
