/* frontend/src/style.css */
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
  background: #090909;
  color: #faf9f7;
  font-synthesis: none;
  --line: #292829;
  --soft: #a29e9e;
  --pink: #f26992;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.055em;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.04em;
}
button svg {
  flex-shrink: 0;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 196px;
  padding: 35px 20px;
  border-right: 1px solid #252424;
  background: #0c0c0d;
  z-index: 4;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1.4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.brand img {
  display: block;
  flex: none;
  margin-right: 6px;
}
.brand span {
  font-weight: 350;
}
.layout nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 48px;
}
.layout nav button {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 14px;
  color: #aaa7a8;
  font-weight: 600;
}
.layout nav button.current {
  background: #252426;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .layout nav button:hover {
    background: #1c1b1c;
  }
}
.content {
  margin-left: 196px;
}
.catalog,
.narrow,
.createBody {
  max-width: 1400px;
  margin: auto;
  padding: 30px clamp(22px, 3vw, 52px) 80px;
}
.pagehead,
.sheet header,
.chat header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.round,
.playerHead button,
.sideControls button,
.sheet header button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #211f21;
}
.tabs,
.pills,
.composeTools,
.scroll {
  display: flex;
  gap: 18px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs {
  margin: 13px 0 16px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  padding: 10px 0 12px;
  color: #aaa6a7;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
.tabs button.selected {
  color: white;
}
.tabs button.selected:after {
  position: absolute;
  content: "";
  height: 3px;
  bottom: 0;
  left: 20%;
  right: 20%;
  border-radius: 8px;
  background: #f7f3f1;
}
.pills {
  gap: 8px;
  margin: 10px 0 16px;
}
.pills button,
.composeTools button,
.secondary,
.subtle {
  padding: 9px 15px;
  white-space: nowrap;
  border: 1px solid #393638;
  background: #1f1e20;
  border-radius: 100px;
}
.pills button.active {
  background: #452331;
  border-color: #b65172;
  color: #ffdae7;
}
.primary,
.secondary,
.subtle,
.back,
.setting,
.composeTools button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 25px 14px;
}
.card {
  padding: 0;
  min-width: 0;
  text-align: left;
  display: flex;
  align-items: stretch;
  flex-direction: column;
}
.poster,
.portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9/16;
  object-fit: cover;
  border: 1px solid #322e30;
  border-radius: 9px;
  background: #1a1719;
  overflow: hidden;
  position: relative;
}
.poster img,
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.poster span {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #111b;
  border-radius: 12px;
  padding: 5px 9px;
  font-size: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .poster img {
    transform: scale(1.035);
  }
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .poster span {
    display: flex;
    gap: 5px;
    align-items: center;
  }
}
.card strong {
  font-size: 15px;
  margin-top: 9px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card small,
.muted,
.setting small,
.history small,
.empty p,
.intro p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.4;
}
.card small {
  margin-top: 4px;
}
.search,
.composer form,
.chatInput {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #242325;
  border: 1px solid #454245;
  border-radius: 14px;
  padding: 8px 12px;
  margin: 12px 0;
}
.search input,
.composer input,
.chatInput input {
  color: white;
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  padding: 4px;
}
.player {
  height: 100dvh;
  max-width: 540px;
  margin: auto;
  background: #100e10;
  display: flex;
  flex-direction: column;
  position: relative;
}
.playing .content {
  background:
    radial-gradient(
      ellipse at center,
      #282024,
      #080808 75%);
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: #0b090a;
}
.stage video {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.playerHead {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(#130d0ee6, transparent);
  padding: 12px 10px 35px;
  font-weight: 650;
}
.playerHead span {
  flex: 1;
}
.playerHead button,
.sideControls button {
  background: #1d1719a8;
  backdrop-filter: blur(12px);
}
.progress {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 4px;
  height: 2px;
  background: #ffffff40;
}
.progress i {
  display: block;
  height: 100%;
  background: white;
}
.sideControls {
  position: absolute;
  right: 12px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}
.sceneLabel {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-size: 12px;
  text-shadow: 0 1px 4px black;
}
.composer {
  flex: none;
  padding: 8px 12px 12px;
}
.submissionStatus {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 0;
  color: var(--soft);
  font-size: 12px;
}
.composeTools button {
  font-size: 13px;
  background: #252024;
  border: 0;
}
.composer form,
.chatInput {
  margin: 7px 0 0;
  border-radius: 30px;
  padding: 5px 5px 5px 13px;
}
.send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ca426c;
  color: white;
  display: grid;
  place-items: center;
  flex: none;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: #0009;
  display: grid;
  place-items: center;
  padding: 18px;
}
.sheet {
  width: min(100%, 420px);
  max-height: 75vh;
  overflow: auto;
  background: #222022;
  border: 1px solid #454145;
  border-radius: 22px;
  padding: 20px;
}
.sheet header {
  margin-bottom: 16px;
}
.setting {
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff17;
  text-align: left;
  padding: 13px 0;
}
.setting small {
  display: block;
}
.job,
.empty,
.intro {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
}
.job {
  position: relative;
  background: #141115ed;
  border: 1px solid #494048;
  padding: 22px 20px;
  border-radius: 18px;
  width: 80%;
  font-size: 14px;
}
.empty {
  padding: 58px 15px;
}
.empty > svg {
  color: #ba9da8;
}
.primary,
.secondary,
.back {
  justify-content: center;
  padding: 12px 17px;
}
.primary {
  border: 0;
  border-radius: 30px;
  background: #f1d7c4;
  color: #281c1c;
  font-weight: 650;
}
.back {
  padding-left: 0;
  color: #ccc;
}
.creation {
  position: relative;
  min-height: 100dvh;
  background: #ebe5f2;
  color: #423850;
  overflow: hidden;
}
.createCover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      #eee7f6,
      transparent 28% 68%,
      #f6f1f8),
    url(https://drama-chat.sg.vworkon.com/storage/v1/object/public/drama-media/create.webp) center/auto 92% no-repeat;
}
.createBody {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.createBody h1 {
  font-weight: 450;
  font-size: clamp(35px, 4vw, 65px);
  line-height: 1.04;
  text-align: center;
  margin-top: 22px;
}
.createBody .primary {
  margin-top: auto;
  min-width: 230px;
  color: #453a53;
  background: #fff9;
  backdrop-filter: blur(9px);
}
.subtle {
  align-self: flex-end;
  color: #3c3043;
  background: #fffb;
  border-color: white;
}
.narrow {
  max-width: 660px;
}
.actorForm,
.actorForm label {
  display: grid;
  gap: 10px;
}
.actorForm {
  gap: 18px;
  margin-top: 25px;
}
.actorForm input,
.actorForm textarea {
  background: #201e20;
  border: 1px solid #464046;
  border-radius: 12px;
  padding: 13px;
  color: white;
}
.portraits,
.starRow,
.historyRow {
  display: flex;
  gap: 12px;
  overflow: auto;
}
.portraits button {
  position: relative;
  padding: 0;
  width: 23%;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
}
.portraits .chosen {
  border-color: #ed80a1;
}
.portraits svg {
  position: absolute;
  right: 4px;
  bottom: 3px;
}
.portraits img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.stars section,
.history {
  margin: 25px 0;
}
.stars h2,
.history h2 {
  margin-bottom: 12px;
}
.starRow .card {
  width: clamp(148px, 19vw, 240px);
  flex: none;
}
.portrait {
  aspect-ratio: 3/4;
}
.actorDetail {
  max-width: 760px;
  margin: 40px auto;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 18px;
}
.actorDetail img {
  width: 42%;
  border-radius: 22px;
}
.actorDetail p {
  margin: 14px 0 22px;
  color: #b9b2b6;
}
.actorDetail button {
  margin: 4px;
}
.chat {
  height: 100dvh;
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.chat header {
  justify-content: flex-start;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0 12px;
}
.chat header img,
.intro img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
}
.intro {
  margin: auto;
}
.intro img {
  width: 100px;
  height: 100px;
}
.bubble {
  align-self: flex-start;
  max-width: 85%;
  padding: 12px 15px;
  border-radius: 16px;
  background: #252326;
}
.bubble.user {
  background: #4a303d;
  align-self: flex-end;
}
.historyRow button {
  position: relative;
  padding: 0;
}
.historyRow img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}
.historyRow span {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: #171217b5;
  padding: 3px 6px;
  border-radius: 5px;
}
.error,
.retryNotice,
.notice {
  font-size: 13px;
  background: #442a33;
  color: #ffd0db;
  padding: 9px;
  border-radius: 8px;
  margin: 5px;
}
.retryNotice {
  background: #25382f;
  color: #dcf3e4;
}
.error button,
.notice button {
  text-decoration: underline;
}
.spin {
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .grid {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media (max-width: 760px) {
  aside {
    inset: auto 14px max(9px, env(safe-area-inset-bottom)) 14px;
    width: auto;
    padding: 4px;
    border: 1px solid #393438;
    border-radius: 40px;
    background: #1b191beb;
    backdrop-filter: blur(16px);
  }
  .brand {
    display: none;
  }
  .layout nav {
    margin: 0;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
  .layout nav button {
    justify-content: center;
    padding: 8px 2px;
    flex: 1;
    border-radius: 30px;
  }
  .layout nav button span {
    display: none;
  }
  .content {
    margin: 0;
  }
  .catalog,
  .narrow {
    padding: 18px 16px 88px;
  }
  .pagehead h1 {
    font-size: 22px;
  }
  .round {
    width: 32px;
    height: 32px;
    background: none;
  }
  .tabs {
    gap: 17px;
    border: 0;
    margin: 4px 0 9px;
  }
  .tabs button {
    font-size: 13px;
    padding: 7px 0 9px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 8px;
  }
  .card strong {
    font-size: 14px;
  }
  .card small {
    font-size: 12px;
  }
  .poster {
    border-radius: 7px;
  }
  .player,
  .chat {
    height: calc(100dvh - 66px);
  }
  .layout:has(.player:not(.feed)) aside,
  .layout:has(.chat) aside {
    display: none;
  }
  .player:not(.feed),
  .chat {
    height: 100dvh;
  }
  .scrim {
    align-items: end;
    padding: 0;
  }
  .sheet {
    margin: 0 auto;
    border-radius: 22px 22px 0 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .createBody {
    padding: 20px 16px 82px;
  }
  .actorDetail {
    display: block;
    margin: 0 0 80px;
  }
  .actorDetail img {
    height: 48vh;
    width: 100%;
    object-fit: cover;
  }
  .starRow .card {
    width: 45%;
  }
  .stars h2,
  .history h2 {
    font-size: 18px;
  }
  .historyRow img {
    width: 90px;
    height: 110px;
  }
  .pills button {
    font-size: 12px;
    padding: 7px 11px;
  }
  .actorForm input,
  .composer input,
  .search input {
    font-size: 16px;
  }
}
.anime {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
}
.anime input {
  accent-color: var(--pink);
}
@media (max-width: 380px) {
  .catalog .tabs {
    gap: 12px;
  }
}
.storyChoices {
  display: grid;
  gap: 5px;
  margin: 0 0 9px;
  max-height: 26dvh;
  overflow-y: auto;
}
.storyChoices button {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 8px 12px;
  border-radius: 12px;
  background: #292429;
  color: #f4edf0;
  font-size: 13px;
  line-height: 1.38;
}
@media (hover: hover) and (pointer: fine) {
  .storyChoices button:hover {
    background: #48313c;
  }
}
.storyChoices b {
  flex: none;
  color: #edb7c8;
}
.sceneCost {
  margin-left: auto;
  white-space: nowrap;
  color: #c9b1bb;
  font-size: 11px;
}
.composeTools {
  gap: 6px;
}
.presetRow {
  padding: 0 10px;
  border-radius: 12px;
}
.presetRow.picked {
  background: #302b30;
}
.presetRow .pills {
  padding-bottom: 8px;
}
.presetRow .pills small {
  margin-left: auto;
  color: #bdb2ba;
}
.presetRow .setting {
  border: 0;
}
.playerHead {
  pointer-events: none;
}
.playerHead button {
  pointer-events: auto;
}
.composer textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  resize: none;
  color: white;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  padding: 4px;
}
.storyChoices strong {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #e1ccd5;
}
.composer {
  position: relative;
}
.storyChoices {
  position: absolute;
  bottom: 100%;
  left: 12px;
  right: 60px;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  background: #1c171be8;
  max-height: min(41dvh, 340px);
}
.accessGate {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 20px;
}
.layout:has(.player:not(.feed)) > aside {
  display: none;
}
.layout:has(.player:not(.feed)) > .content {
  margin: 0;
  background: #050505;
}
.player:not(.feed) {
  width: min(100%, max(320px, 56.25dvh));
  height: 100dvh;
  background: #090909;
}
.player:not(.feed) .composer {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #0b080bdd);
}
.player:not(.feed) .sideControls {
  bottom: 105px;
}
.player:not(.feed) .sceneLabel {
  bottom: 100px;
}
.playerHead {
  justify-content: space-between;
}
.playerHead span {
  position: absolute;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.centerPlay,
.previewOverlay > button {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #211d20a8;
  width: 46px;
  height: 46px;
}
.centerPlay {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cleanPlayback .playerHead,
.cleanPlayback .sideControls,
.cleanPlayback .sceneLabel,
.cleanPlayback .progress,
.cleanPlayback .composer,
.cleanPlayback .centerPlay {
  visibility: hidden;
}
.stage .videoSurface {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  width: 100%;
}
.waitPage {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: #fafafa;
  background: #050505;
  flex: 1;
  min-height: 0;
  padding: 8px 10px max(10px, env(safe-area-inset-bottom));
  gap: 8px;
}
.waitPage header,
.waitPage footer,
.storyChoices header,
.activityBar > div,
.activityBar button,
.nextRecs,
.waitPage footer > * {
  display: flex;
  align-items: center;
  gap: 8px;
}
.waitPage header,
.waitPage footer {
  justify-content: space-between;
}
.waitPage header button,
.waitPage footer > *,
.nextRecs,
.donePlays {
  background: #151416;
  border-radius: 14px;
  padding: 10px 14px;
}
.waitPage header button {
  border-radius: 50%;
  padding: 9px;
  display: grid;
  place-items: center;
}
.waitPage footer > * {
  font-size: 13px;
}
.waitBody {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
}
.waitBody h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.waitGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-height: 0;
  aspect-ratio: 9/16;
  max-width: 78%;
  max-height: calc(100% - 80px);
  height: 100%;
}
.waitGrid button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 9px;
  background: #191819;
  border: 1px solid #ffffff18;
}
.waitGrid img,
.playRow img,
.playRow video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
.waitGrid i {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #2c2826a6;
  color: #fff;
  border-radius: 50%;
}
.nextRecs,
.donePlays {
  font-size: 13px;
  font-weight: 650;
}
.previewOverlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: black;
  display: grid;
  place-items: center;
}
.previewOverlay video {
  max-width: 100%;
  max-height: 100%;
}
.previewOverlay > button {
  top: 12px;
  right: 12px;
}
.activityBar {
  position: fixed;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #100f11f2;
}
.activityBar > div {
  max-width: 1080px;
  margin: auto;
  height: 100%;
  padding: 0 12px;
}
.activityBar button {
  font-size: 12px;
}
.activityBar button:first-child {
  flex: 1;
  min-width: 0;
}
.activityBar strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.activityBar button span {
  margin-left: auto;
}
.layout:has(.activityBar) .waitPage {
  padding-top: 48px;
}
.layout:has(.activityBar) .playerHead {
  top: 40px;
}
.layout:has(.activityBar) .catalog {
  padding-top: 50px;
}
.storyChoices header {
  gap: 6px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.storyChoices header small {
  margin-left: auto;
  font-size: 10px;
  color: #cfc8cb;
}
.storyChoices header button {
  font-size: 11px;
  padding: 5px 7px;
}
button:disabled {
  opacity: 0.55;
}
.playGroups h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}
.playGroups h3 small,
.playRow small {
  font-size: 10px;
  background: #2f2b31;
  border-radius: 8px;
  padding: 3px 6px;
}
.playRow {
  display: flex;
  gap: 7px;
  overflow-x: auto;
}
.playRow button {
  position: relative;
  flex: 0 0 76px;
  aspect-ratio: 9/14;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #292528;
}
.playRow span,
.playRow small {
  position: absolute;
  left: 0;
  right: 0;
  color: white;
}
.playRow span {
  bottom: 0;
  padding: 12px 3px 5px;
  background: linear-gradient(transparent, #000d);
  font-size: 12px;
}
.playRow small {
  display: flex;
  align-items: center;
  gap: 3px;
  right: auto;
  top: 4px;
  left: 3px;
}
.playRow button .playGenerationBadge {
  inset: 5px auto auto 5px;
  inset-inline: 5px auto;
  min-height: 23px;
  padding: 3px 6px;
  gap: 4px;
  background: #171217ed;
  border: 1px solid #ffffff30;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.playGenerationBadge svg {
  flex: none;
  color: #ffa2bd;
}
.waitPage footer {
  align-items: stretch;
}
.waitPage footer .waitStatus {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid #3c3039;
}
.waitStatus span {
  font-size: 11px;
  color: #c8b8c1;
}
.waitStatus progress {
  width: 100%;
  height: 4px;
  margin-block-start: 4px;
  accent-color: var(--pink);
}
.waitPage footer button {
  flex: 0 0 auto;
  max-width: 45%;
}
.waitPage footer button svg {
  flex: none;
}
.donePlays {
  width: 100%;
  margin-top: 14px;
}
.storyState blockquote {
  margin: 0;
  border-left: 2px solid #d4b6c2;
  padding: 8px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.player .scrim {
  position: absolute;
  align-items: end;
  padding: 0;
}
.player .sheet {
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding-bottom: max(22px, env(safe-area-inset-bottom));
}
.layout:has(.activityBar) .previewOverlay > button {
  top: 50px;
}
.cleanPlayback .composer:focus-within {
  visibility: visible;
}
.waitGrid {
  height: 94%;
}
:root {
  font-family:
    -apple-system,
    system-ui,
    "SF Pro Text",
    "SF Pro Display",
    "Segoe UI",
    "Noto Sans KR",
    "Apple Color Emoji",
    sans-serif;
}
.catalog {
  width: min(1098px, calc(100% - 32px));
  padding: 0 0 88px;
}
.catalogHeader {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flow-root;
  background: #090909;
}
.layout:has(.activityBar) .catalogHeader {
  top: 40px;
}
.catalog .pagehead {
  height: 48px;
}
.catalog h1 {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -.4px;
}
.catalogActions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.apkDownload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .apkDownload:hover {
    text-decoration: underline;
  }
}
.apkDownload:focus-visible {
  text-decoration: underline;
}
.catalogActions .round {
  width: 40px;
  height: 40px;
  background: transparent;
}
.catalogSearch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  width: 294px;
  border-radius: 20px;
  padding: 0 12px;
  background: #19191b;
  color: #aaa;
}
.catalog .tabs {
  gap: 16px;
  margin: 0 0 8px;
  height: 36px;
  border: 0;
}
.catalog .tabs button {
  height: 36px;
  padding: 0;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -.18px;
  font-weight: 600;
  color: #ffffffad;
}
.catalog .tabs button.selected {
  color: #fffffff5;
  font-weight: 700;
}
.catalog .tabs button.selected:after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}
.catalog .grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 34px 18px;
}
.cardStory {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
}
.cardStory strong {
  font-size: 15px;
  font-weight: 610;
  line-height: 19px;
  letter-spacing: -.42px;
  margin-top: 8px;
}
.card .poster {
  background: #151517;
}
.rankBadge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 36px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 0 6px 0 7px;
  background: rgba(12, 12, 14, .9);
  color: white;
  font-size: 11px;
  line-height: 11px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.tileTags,
.tileCreator {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -.144px;
  color: #ffffff75;
}
.tileTags button {
  font: inherit;
  padding: 0;
  color: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .tileTags button:hover {
    color: white;
  }
}
@media (min-width: 761px) {
  .layout > aside {
    width: 72px;
    padding: 16px 6px;
  }
  .layout > aside .brand {
    font-size: 0;
    justify-content: center;
    gap: 0;
  }
  .layout > aside .brand img {
    margin: 0;
  }
  .layout > aside nav {
    margin-top: 24px;
    gap: 8px;
  }
  .layout > aside nav button {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 8px 0;
    font-size: 10px;
  }
  .layout > .content {
    margin-left: 72px;
  }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .catalog .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 14px;
  }
}
@media (max-width: 760px) {
  .catalog .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 10px;
  }
  .cardStory strong {
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -.392px;
  }
  .catalogSearch {
    width: 44px;
    height: 44px;
    justify-content: center;
    background: transparent;
    padding: 0;
    color: white;
  }
  .catalogSearch span {
    display: none;
  }
  .catalogActions {
    gap: 0;
  }
  .layout > aside {
    left: 16px;
    right: 16px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 48px;
    padding: 1px 4px;
  }
  .layout > aside nav button {
    height: 44px;
  }
}
.player .playerHead {
  top: 0;
  padding: 0 8px;
  background: none;
  gap: 0;
}
.player .playerHead button,
.player .sideControls button,
.player .centerSound {
  width: 44px;
  height: 44px;
  background: transparent;
  backdrop-filter: none;
  color: white;
  filter: drop-shadow(0 1px 3px #0009);
}
.player .playerHead .worldTitle {
  flex: 1;
  display: flex;
  min-width: 0;
  width: auto;
  justify-content: flex-start;
  text-align: left;
  margin: 0 8px;
  overflow: hidden;
  gap: 3px;
  border-radius: 0;
  font-size: 15px;
  line-height: 19px;
  font-weight: 650;
}
.player .worldTitle svg {
  flex: none;
}
.player .sideControls {
  right: 8px;
  bottom: 66px;
  gap: 2px;
}
.player .centerPlay {
  width: 56px;
  height: 56px;
}
.player .centerSound {
  position: absolute;
  top: calc(50% - 60px);
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.player.cleanPlayback .centerSound {
  visibility: hidden;
}
.player .composer {
  padding: 4px 8px max(12px, env(safe-area-inset-bottom));
}
.player .composer form {
  background: none;
  border: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}
.player .composer textarea {
  min-height: 44px;
  max-height: min(28dvh, 128px);
  overflow-y: auto;
  border-radius: 22px;
  background: #181819dd;
  padding: 11px 14px;
  color: #fff;
}
.player .composer .dictate,
.player .composer .send {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.dictate.recording {
  background: #bf344a;
  color: white;
}
.player .composeTools {
  justify-content: flex-start;
  padding-right: 44px;
}
.player .sheet.playerTools {
  max-height: 80dvh;
  overflow: auto;
}
.playerTools label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  margin: 12px 0;
}
.playerTools select,
.playerTools input:not([type=checkbox]),
.playerTools textarea {
  width: 100%;
  color: inherit;
  background: #1c1c1f;
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 9px;
  font: inherit;
}
.playerTools .languageList {
  max-height: 52dvh;
  overflow-y: auto;
}
.playerTools .setting {
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}
.playerTools .setting > span:last-child {
  margin-left: auto;
}
.playerTools .magicRow span {
  flex: 1;
  display: grid;
  gap: 3px;
}
.playerTools p {
  margin: 10px 0;
  line-height: 1.45;
}
.playerTools .detailPoster,
.playerTools .magicPhoto {
  max-height: 180px;
  border-radius: 8px;
}
.playerTools .primary {
  margin-top: 10px;
}
video::cue {
  background: rgba(0, 0, 0, .55);
  font: 600 16px system-ui;
  color: white;
}
.player.cleanPlayback .composer,
.player.cleanPlayback .sideControls,
.player.cleanPlayback .playerHead {
  visibility: visible;
}
.player.cleanPlayback .worldTitle,
.player.cleanPlayback .playerHead [aria-label="Search worlds"] {
  visibility: hidden;
}
.player .sideControls button[aria-pressed=true] {
  color: #ff647e;
}
.titleTranslation {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 3px 0 0;
  padding: 0;
  color: #ffffffad;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
}
.player .composer:has(.dictationStatus) form {
  flex-wrap: wrap;
}
.player .composer .dictationStatus {
  flex: 0 0 100%;
  padding: 0 10px 4px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px #000;
}
.coinShopEntry {
  flex: none;
  min-height: 40px;
  padding: 0 13px;
  font-size: .875rem;
  white-space: nowrap;
  background: #21171d;
  border-color: #47303a;
}
.coinShopEntry > span[aria-hidden] {
  margin-inline-start: 5px;
  color: var(--pink);
}
.interfaceSettings {
  margin-block: 18px 22px;
}
.interfaceSettings > h2 {
  margin: 0 0 10px;
  font-size: .875rem;
  color: #bbb0b7;
  font-weight: 600;
}
.settingsCard {
  border: 1px solid #332a31;
  border-radius: 18px;
  background: #171417;
  overflow: hidden;
}
.languageSetting {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #332a31;
  border-radius: 0;
  text-align: start;
  background: transparent;
}
.languageSettingIcon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #34212b;
  color: #ffa2bd;
}
.languageSetting > span,
.languageSettingValue {
  overflow-wrap: anywhere;
}
.languageSettingValue,
.languageSettingArrow {
  color: #bdb1ba;
}
.localizedLibrary[dir=rtl] .languageSettingArrow {
  transform: scaleX(-1);
}
.profileGender {
  min-inline-size: 0;
  margin: 13px 14px 0;
  padding: 0;
  border: 0;
}
.profileGender legend,
.profileForm label {
  font-size: .875rem;
  font-weight: 600;
}
.genderOptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-block: 8px;
  padding: 4px;
  background: #100e10;
  border-radius: 12px;
}
.genderOptions label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: center;
  overflow-wrap: anywhere;
  color: #c7bac3;
  cursor: pointer;
}
.genderOptions input {
  position: absolute;
  opacity: 0;
}
.genderOptions label:has(:checked) {
  border-color: #694052;
  background: #38232e;
  color: #ffd5e3;
}
.genderOptions label:has(:focus-visible) {
  outline: 2px solid var(--pink);
}
.genderOptions label:has(:disabled) {
  opacity: .6;
  cursor: default;
}
.profileGender small {
  display: block;
  color: #bdb1ba;
  line-height: 1.5;
}
.profileForm {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 14px;
}
.profileForm label {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 7px;
}
.profileForm input,
.profileSave {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #453741;
  border-radius: 10px;
}
.profileForm input {
  min-width: 0;
  width: 100%;
  background: #100e10;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.profileSave {
  max-width: 48%;
  color: #ffd5e3;
  background: #38232e;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.settingsCard > [role=alert] {
  margin: 0 14px 14px;
  color: #ffa2bd;
}
.interfaceLanguageDialog {
  width: min(440px, calc(100% - 32px));
  max-height: none;
  padding: 0;
  border: 1px solid #41343d;
  border-radius: 22px;
  background: #1c171b;
  color: #faf4f7;
}
.interfaceLanguageDialog::backdrop {
  background: #080608b8;
}
.interfaceLanguagePanel {
  display: flex;
  flex-direction: column;
  max-height: 84dvh;
  padding: 10px 12px 12px;
}
.interfaceLanguagePanel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 8px 0;
  margin-block-end: 4px;
}
.interfaceLanguagePanel h2 {
  margin: 0;
  font-size: 1.125rem;
}
.interfaceLanguagePanel header button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}
.interfaceLanguageOptions {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2px;
}
.interfaceLanguageOptions button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: start;
  background: transparent;
}
.interfaceLanguageOptions button[aria-current] {
  border-color: #694052;
  background: #38232e;
  color: #ffd5e3;
}
@media (max-width: 600px) {
  .interfaceLanguageDialog {
    width: min(100%, 540px);
    max-width: 100%;
    margin: auto auto 0;
    border-radius: 22px 22px 0 0;
  }
  .interfaceLanguagePanel {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}
.localizedLibrary[dir=rtl] .empty button svg {
  transform: scaleX(-1);
}
.catalog .tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.catalog .tabs > * {
  flex-shrink: 0;
}
.layout[dir=rtl] .anime,
.layout[dir=rtl] .playerTools .setting > span:last-child {
  margin-left: 0;
  margin-inline-start: auto;
}
.layout[dir=rtl] .playerTools .setting,
.layout[dir=rtl] .player .playerHead .worldTitle {
  text-align: start;
}
.presetRow .setting > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.presetRow .setting > span:last-child {
  flex-shrink: 0;
}
.feed .stage {
  touch-action: none;
  contain: paint;
}
.feed .composer {
  z-index: 1;
  background: #100e10;
}
.feedTrack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.feedPreview {
  position: absolute;
  inset-inline: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b090a;
}
.feedPreview.previous {
  bottom: 100%;
}
.feedPreview.next {
  top: 100%;
}
.emailSetting {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
}
.emailNotice {
  margin: 12px 14px 0;
  color: #ffd5e3;
}
.accountEmailForm {
  display: grid;
  gap: 12px;
  padding: 8px;
  overflow: auto;
}
.accountEmailForm p {
  margin: 0;
  overflow-wrap: anywhere;
}
.accountEmailForm label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.accountEmailForm input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #51424c;
  border-radius: 10px;
  background: #211a20;
  color: inherit;
}
.accountEmailForm button {
  min-height: 44px;
}
.accountEmailForm [role=alert] {
  color: #ffa2bd;
}
