:root {
  color-scheme: dark;
  --bg: #141517;
  --panel: #202225;
  --line: #37393b;
  --ink: #f6f5ef;
  --muted: #b5b6b2;
  --lime: #c5f37e;
  --quiet: #26292b;
  font:
    16px/1.5 "Inter",
    "Helvetica Neue",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a.primary,
a.soft {
  cursor: pointer;
  touch-action: manipulation;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #d2ff96;
  outline-offset: 3px;
}
button,
select,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
header {
  border-bottom: 1px solid var(--line);
  background: #18191b;
}
.nav,
main,
footer {
  width: min(1240px, 100%);
  margin: auto;
  padding: 0 clamp(20px, 4.8vw, 72px);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.42rem;
  letter-spacing: -1.35px;
  font-weight: 850;
}
.wave {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.wave i {
  background: #25291e;
  width: 3px;
  height: 8px;
  border-radius: 4px;
}
.wave i:nth-child(2) {
  height: 15px;
}
.wave i:nth-child(3) {
  height: 22px;
}
.wave i:nth-child(4) {
  height: 13px;
}
nav {
  display: flex;
  gap: 25px;
}
nav a,
.back,
.text-link {
  color: var(--muted);
}
nav a:hover,
.text-link:hover,
.back:hover,
.card-action:hover {
  color: var(--lime);
}
.user {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 30px;
  padding: 8px 19px;
  max-width: 30%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user:hover {
  border-color: var(--lime);
}
main {
  flex: 1;
  padding-top: 42px;
  padding-bottom: 65px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  padding-top: 20px;
  padding-bottom: 24px;
}
footer span:first-child {
  color: var(--ink);
  font-weight: 750;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.043em;
}
h1 {
  font-size: clamp(2.15rem, 4.5vw, 3.8rem);
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}
h3 {
  font-size: 1.24rem;
}
p {
  color: var(--muted);
}
small {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
}
.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #202224;
  min-height: 370px;
}
.hero-copy {
  align-self: center;
  padding: clamp(26px, 4vw, 58px);
}
.film-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 550;
}
.live-dot {
  height: 8px;
  width: 8px;
  background: var(--lime);
  border-radius: 100%;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.3vw, 4.6rem);
  margin: 22px 0 16px;
  letter-spacing: -0.065em;
  line-height: 0.99;
}
.hero em {
  font-style: normal;
  color: var(--lime);
}
.hero-copy p {
  max-width: 420px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero .actions {
  margin-top: 26px;
}
.primary,
.soft,
.icon,
.role,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  line-height: 1.25;
  padding: 12px 17px;
  font-size: 0.94rem;
  font-weight: 660;
  min-height: 43px;
}
.primary {
  background: var(--lime);
  color: #1a2510;
}
.primary:hover:enabled,
a.primary:hover {
  background: #d7ffa0;
}
.soft,
.icon,
.role {
  color: var(--ink);
  background: #303235;
  border: 1px solid #424448;
}
.soft:hover:enabled,
.role:hover:enabled,
a.soft:hover {
  border-color: #7d8275;
}
.hero-film {
  position: relative;
  display: block;
  background: #30241c;
  overflow: hidden;
  color: white;
  width: 100%;
  height: 100%;
  min-height: 290px;
}
.hero-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 50%;
  transition: transform 0.3s;
}
.hero-film:hover img {
  transform: scale(1.025);
}
.hero-film:after {
  position: absolute;
  content: "";
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}
.play-symbol {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffffa0;
  border-radius: 100%;
  background: #18181755;
}
.film-caption {
  position: absolute;
  z-index: 1;
  text-align: left;
  left: 25px;
  bottom: 21px;
}
.film-caption b {
  display: block;
  font-size: 1.25rem;
}
.film-caption span {
  color: #dbdbd6;
  font-size: 0.88rem;
}
.shelf {
  margin-top: 38px;
}
.section-head,
.studio-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.filter {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}
select {
  background: var(--quiet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.card .thumb {
  display: block;
  position: relative;
  background: #171617;
  padding: 0;
  width: 100%;
}
.thumb img,
.room-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 2.2;
  object-fit: cover;
}
.thumb span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 5px;
  padding: 1px 6px;
  background: #0b0c0ece;
  color: #fff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.card-info {
  padding: 16px 18px;
}
.card-info p {
  font-size: 0.85rem;
}
.card-info h3 {
  margin: 6px 0 13px;
}
.card-action,
.text-link {
  background: none;
  color: var(--lime);
  padding: 0;
  min-height: 30px;
  font-size: 0.92rem;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.panel {
  padding: 24px;
}
.narrow,
.watch {
  max-width: 850px;
  margin: 25px auto;
}
.narrow {
  max-width: 560px;
}
.narrow p,
.narrow .actions {
  margin: 14px 0;
}
.room-thumb {
  border-bottom: 1px solid var(--line);
}
dialog {
  color: var(--ink);
  background: #222427;
  border: 1px solid #50544d;
  border-radius: 20px;
  width: min(460px, calc(100% - 28px));
  padding: 25px;
  max-height: 90dvh;
  overflow: auto;
}
dialog:has(video) {
  width: min(820px, calc(100% - 28px));
}
dialog::backdrop {
  background: #08090bd6;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.modal-head h2 {
  font-size: 1.55rem;
}
.icon {
  border-radius: 100%;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.25rem;
}
.preview,
.watch video {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: #101112;
}
.watch h1 {
  margin-top: 12px;
}
.watch .section-head {
  margin-top: 20px;
}
.scene-mini {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scene-mini img {
  width: 100px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
form label,
fieldset legend {
  font-size: 0.93rem;
  display: block;
  margin-top: 14px;
  color: var(--muted);
}
input:not([type="radio"]):not([type="range"]) {
  padding: 11px;
  border: 1px solid #55575a;
  color: var(--ink);
  background: #181a1c;
  border-radius: 8px;
  width: 100%;
  margin-top: 5px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.radio {
  display: flex;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  cursor: pointer;
}
.radio:has(:checked) {
  border-color: var(--lime);
  background: #293025;
}
.radio input {
  accent-color: var(--lime);
}
.error {
  color: #ffab96;
  margin-top: 10px;
}
.credit {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 18px 0;
}
.credit a,
.back {
  text-decoration: underline;
}
.credit summary {
  cursor: pointer;
}
.credit p {
  margin: 9px 0;
}
.studio-title h1 {
  margin: 8px 0;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 18px;
}
.stage {
  position: relative;
  background: #08090b;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: grid;
  align-items: center;
}
.stage video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.stage #prompt:not(:empty) {
  position: absolute;
  bottom: 5%;
  inset-inline: 6%;
  text-align: center;
  border-radius: 8px;
  background: #0b0c0ec7;
  color: white;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  padding: 8px;
  font-weight: 650;
}
.transport {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 0;
}
.transport label {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.transport input {
  width: 66px;
  accent-color: var(--lime);
}
.time,
.stamp {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.86rem;
}
.status {
  min-height: 1.6em;
  color: var(--lime);
}
.booth h2 {
  font-size: 1.45rem;
}
.booth h3 {
  margin: 18px 0 8px;
  font-size: 1.04rem;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.avatar {
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: #394832;
  color: var(--lime);
}
.hint {
  font-size: 0.88rem;
  margin: 12px 0 0;
}
.role {
  font-size: 0.9rem;
  padding: 8px 11px;
  margin: 0 6px 6px 0;
  min-height: 36px;
}
.chosen {
  border-color: var(--lime);
  color: var(--lime);
}
.script,
.result {
  margin-top: 18px;
}
.script .section-head span {
  color: var(--muted);
}
.cue,
.version {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 15px;
}
.cue-text {
  flex: 1;
}
.cue-text b {
  display: block;
}
.cue.mine small:first-child,
.cue.playing .stamp {
  color: var(--lime);
}
.cue.playing {
  background: #2c3328;
}
.cue-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.cue-actions .soft {
  min-height: 35px;
  padding: 8px 11px;
}
.version {
  justify-content: space-between;
}
.version:first-child {
  margin-top: 12px;
}
.take {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
audio {
  max-width: 100%;
}
.take audio {
  width: 100%;
}
.back {
  font-size: 0.88rem;
}
.studio-title p {
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 10px);
  padding: 12px 18px;
  border-radius: 10px;
  background: #deebcf;
  color: #1c2315;
  box-shadow: 0 8px 24px #0008;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 99;
  max-width: min(90vw, 620px);
}
#notice.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
dt {
  color: var(--muted);
  font-size: 0.88rem;
}
dd {
  margin: 4px 0 16px;
}
button[hidden] {
  display: none;
}
@media (max-width: 820px) {
  .nav {
    height: 62px;
    gap: 22px;
  }
  nav {
    gap: 15px;
  }
  .hero {
    grid-template-columns: 1.05fr 1fr;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .cards {
    gap: 12px;
  }
  .card-info {
    padding: 13px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .booth {
    display: block;
  }
  .hero .actions {
    gap: 7px;
  }
  .hero .actions button {
    padding: 11px;
  }
  .section-head {
    align-items: center;
  }
}
@media (max-width: 620px) {
  .nav,
  main,
  footer {
    padding-inline: 16px;
  }
  .nav {
    gap: 14px;
  }
  .brand {
    font-size: 1.23rem;
    gap: 6px;
  }
  .wave {
    width: 27px;
    height: 27px;
  }
  nav {
    gap: 12px;
    font-size: 0.85rem;
  }
  .user {
    font-size: 0.85rem;
    padding: 7px 11px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 25px 22px;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 11vw, 4rem);
    margin: 16px 0 12px;
  }
  .hero-film {
    min-height: 160px;
    max-height: 190px;
  }
  .hero .actions {
    margin-top: 17px;
  }
  .film-caption {
    bottom: 13px;
    left: 16px;
  }
  .play-symbol {
    top: 12px;
    right: 12px;
  }
  .shelf {
    margin-top: 27px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    display: grid;
    grid-template-columns: 38% 1fr;
  }
  .thumb img,
  .room-thumb {
    height: 100%;
    min-height: 125px;
  }
  .card-info h3 {
    margin-bottom: 8px;
  }
  .card-info p {
    font-size: 0.8rem;
  }
  .filter {
    font-size: 0;
  }
  .filter select {
    font-size: 0.88rem;
  }
  main {
    padding-top: 20px;
  }
  .panel {
    padding: 16px;
  }
  .studio-title {
    align-items: flex-end;
  }
  .studio-title h1 {
    font-size: 1.85rem;
  }
  .studio-title .soft {
    font-size: 0.86rem;
    max-width: 125px;
  }
  .transport {
    gap: 9px;
  }
  .transport label {
    font-size: 0.8rem;
  }
  .transport input {
    width: 46px;
  }
  .cue {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 4px 9px;
  }
  .cue-actions {
    grid-column: 2;
  }
  .version,
  .watch .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-head {
    gap: 8px;
  }
  .section-head h2 {
    font-size: 1.45rem;
  }
  .result .primary {
    font-size: 0.85rem;
    padding: 9px;
  }
  .stamp {
    align-self: start;
  }
  .booth .wide {
    min-height: 44px;
  }
  footer {
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

[hidden] {
  display: none !important;
}
