:root {
  color-scheme: dark;
  --night: #142823;
  --deep: #10211d;
  --ink: #253d33;
  --paper: #eadfc5;
  --pale: #f4ead5;
  --gold: #cfab69;
  --muted: #b3bfaa;
  --serif: Georgia,"Noto Serif SC","Songti SC","SimSun",serif;
  --sans: "Microsoft YaHei","PingFang SC",system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

html,body {
  margin: 0;
  min-height: 100%;
}

body {
  font: 16px/1.6 var(--sans);
  color: var(--pale);
  background: radial-gradient(ellipse at 26% 40%,#2b493a 0,transparent 53%),linear-gradient(115deg,#1d332a,var(--night) 58%,#0d201c);
  min-height: 100svh;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,input:focus-visible {
  outline: 3px solid #da9c4d;
  outline-offset: 4px;
}

button:disabled,input:disabled {
  cursor: default;
  opacity: .5;
}

button {
  touch-action: manipulation;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

[hidden] {
  display: none!important;
}

.mast {
  height: 73px;
  max-width: 1240px;
  margin: auto;
  padding: 0 clamp(20px,5vw,66px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d6bd8438;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 20px var(--serif);
  letter-spacing: .15em;
}

.record-mark {
  display: block;
  width: 28px;
  height: 28px;
  border: 1.5px solid #d4b37c;
  border-radius: 50%;
  background: repeating-radial-gradient(circle,transparent 0 3px,#c8a96d91 3.5px 4px,transparent 4.6px 6px);
  position: relative;
  transform: rotate(-22deg);
}

.record-mark:after {
  content: "";
  position: absolute;
  background: var(--gold);
  width: 19px;
  height: 2px;
  right: -5px;
  top: 5px;
}

.mast-note,.section-line,.status {
  font-size: .84rem;
}

.mast-note {
  letter-spacing: .14em;
  color: var(--muted);
}

.desk {
  display: grid;
  grid-template-columns: minmax(220px,auto) minmax(285px,410px);
  gap: clamp(42px,7vw,112px);
  align-items: center;
  justify-content: center;
  max-width: 1250px;
  min-height: calc(100svh - 73px);
  margin: auto;
  padding: 25px 32px 23px;
}

.stage {
  margin: 0;
  min-width: 0;
  justify-self: center;
}

.view {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 9/16;
  height: clamp(340px,calc(100svh - 153px),850px);
  max-width: 100%;
  background: #27382d;
  border: 1px solid #dfc493a6;
  box-shadow: 0 15px 56px #07150f91,0 0 0 5px #14231ea6,0 0 0 6px #c8a36638;
}

.view img,.view canvas {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: fill;
}

.view canvas {
  opacity: 0;
}

.view.live canvas {
  opacity: 1;
}

#enlarge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-content: center;
  border: 1px solid #e4d6b1a1;
  background: #12261fba;
  color: var(--pale);
  border-radius: 50%;
  z-index: 2;
}

#enlarge:hover {
  background: #10241f;
}

.expand-icon {
  width: 14px;
  height: 14px;
  background: linear-gradient(currentColor,currentColor) left top/6px 1.5px,linear-gradient(currentColor,currentColor) left top/1.5px 6px,linear-gradient(currentColor,currentColor) right bottom/6px 1.5px,linear-gradient(currentColor,currentColor) right bottom/1.5px 6px;
  background-repeat: no-repeat;
}

figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 0;
  line-height: 1.4;
  color: #ccd1bd;
  font-size: .82rem;
}

.location {
  font: italic 14px var(--serif);
  color: #d9c395;
  letter-spacing: .16em;
}

.console {
  width: 100%;
  min-width: 0;
}

.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  color: #d7b77d;
  letter-spacing: .14em;
  border-bottom: 1px solid #cdb37f63;
  padding-bottom: 7px;
}

h1,h2,p {
  margin: 0;
}

h1 {
  font: 500 clamp(41px,4.9vw,68px)/1.14 var(--serif);
  letter-spacing: .065em;
  margin: 23px 0 3px;
  color: #f3e5c9;
}

.subtitle {
  font: 400 20px var(--serif);
  letter-spacing: .23em;
  color: #c5c6ad;
  margin: 9px 0 29px;
}

.panel {
  position: relative;
  color: var(--ink);
  color-scheme: light;
  background: linear-gradient(112deg,#f0e6ce,#e6d8b9);
  border-radius: 3px;
  box-shadow: 0 8px 26px #0a171442;
  padding: 27px 29px 26px;
}

.ticket-edge {
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(128deg,#a9744c 0 6px,transparent 6px 12px,#526d5d 12px 18px,transparent 18px 24px);
  opacity: .85;
}

.panel h2 {
  font: 600 clamp(21px,2.1vw,27px)/1.3 var(--serif);
  letter-spacing: .04em;
}

.description {
  font-size: 1rem;
  line-height: 1.85;
  color: #4b5647;
  margin: 12px 0 24px;
}

.primary {
  display: block;
  background: #254d40;
  color: #fff1d3;
  border: 1px solid #1a4034;
  border-radius: 2px;
  width: 100%;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.primary:hover {
  background: #315e4f;
}

.status,.scene-error {
  margin: 13px 3px 0;
  color: #cbd0ba;
  line-height: 1.7;
}

.scene-error {
  font-size: .86rem;
  color: #f2cfab;
}

.text-button {
  padding: 6px 1px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: .88rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.controls {
  padding: 24px 24px 17px;
}

.track {
  display: flex;
  align-items: center;
  gap: 15px;
}

.track img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid #ac9b76;
  box-shadow: 1px 3px 7px #473d2e36;
}

.track-type {
  min-width: 0;
}

.track-type h2 {
  font: 600 22px/1.24 var(--serif);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-type p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
  color: #59614f;
}

.track-type #album {
  font-size: .78rem;
  color: #6d705f;
}

.seek-box {
  position: relative;
  height: 50px;
  margin-top: 23px;
  border-top: 1px dashed #a79977;
  padding-top: 6px;
}

.seek-box canvas {
  position: absolute;
  inset: 8px 0 1px;
  width: 100%;
  height: 38px;
}

.seek-box input {
  position: absolute;
  inset: 7px 0 0;
  width: 100%;
  height: 40px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  background: transparent;
}

.seek-box input::-webkit-slider-runnable-track {
  height: 31px;
  background: transparent;
}

.seek-box input::-webkit-slider-thumb {
  appearance: none;
  width: 3px;
  height: 31px;
  background: #93532f;
  border-radius: 2px;
}

.seek-box input::-moz-range-track {
  background: transparent;
}

.seek-box input::-moz-range-thumb {
  width: 3px;
  height: 31px;
  background: #93532f;
  border: 0;
}

.times {
  display: flex;
  justify-content: space-between;
  color: #526253;
  font: 14px/1.2 ui-monospace,Consolas,monospace;
  font-variant-numeric: tabular-nums;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 18px 0 16px;
}

.transport button {
  color: var(--ink);
  border: 0;
  background: transparent;
  font: 600 16px Georgia,serif;
  min-width: 44px;
  min-height: 44px;
}

.transport button span {
  font-weight: 400;
}

.transport .play {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: #28513f;
  color: #fff0cf;
  display: grid;
  place-content: center;
}

.play i {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  margin-left: 3px;
}

.play.is-playing i {
  width: 12px;
  height: 16px;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  margin: 0;
}

.mix {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed #a79977;
  padding-top: 10px;
}

.mix input {
  width: 78px;
  height: 24px;
  accent-color: #476450;
}

.mix .text-button:last-child {
  margin-left: auto;
}

.mix .text-button {
  color: #37503f;
}

.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #37503f;
  font-size: 14px;
}

.meter select {
  font: inherit;
  color: var(--ink);
  background: var(--pale);
  border: 1px solid #a79977;
  border-radius: 3px;
  padding: 3px 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

#dropHint {
  position: fixed;
  inset: 14px;
  z-index: 8;
  background: #173a2ee8;
  border: 2px dashed var(--gold);
  color: var(--pale);
  display: grid;
  place-items: center;
  font: 600 24px var(--serif);
  pointer-events: none;
}

.stage.expanded {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: #0b1714;
  display: grid;
  justify-content: center;
  align-content: center;
  width: 100%;
  height: 100dvh;
}

.expanded .view {
  height: min(100dvh,calc(100vw * 16 / 9));
  width: auto;
  max-width: none;
  box-shadow: none;
  border: 0;
}

.expanded figcaption {
  display: none;
}

@media(max-width:720px) {
  .mast {
    height: 48px;
    padding: 0 20px;
  }

  .wordmark {
    font-size: 17px;
    gap: 9px;
  }

  .record-mark {
    height: 22px;
    width: 22px;
  }

  .mast-note {
    font-size: .77rem;
  }

  .desk {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding: 19px 18px max(20px,env(safe-area-inset-bottom));
    max-width: 490px;
  }

  .stage {
    display: block;
  }

  .view {
    height: clamp(290px,45svh,460px);
  }

  figcaption {
    margin-top: 8px;
    font-size: .75rem;
  }

  .location {
    font-size: 12px;
  }

  .section-line {
    min-height: 25px;
    font-size: .8rem;
    padding-bottom: 4px;
  }

  h1 {
    font-size: 34px;
    display: inline-block;
    margin: 12px 12px 12px 0;
  }

  .subtitle {
    display: inline-block;
    font-size: 16px;
    margin: 0;
  }

  .panel {
    padding: 18px 19px;
  }

  .panel h2 {
    font-size: 20px;
  }

  .description {
    margin: 8px 0 14px;
    font-size: .94rem;
    line-height: 1.65;
  }

  .track img {
    width: 54px;
    height: 54px;
  }

  .track-type h2 {
    font-size: 20px;
  }

  .seek-box {
    margin-top: 13px;
    height: 42px;
  }

  .seek-box canvas {
    height: 31px;
  }

  .transport {
    margin: 8px 0;
  }

  .mix {
    padding-top: 4px;
  }

  .status {
    margin-top: 8px;
    font-size: .81rem;
  }

  .primary {
    padding: 10px 14px;
  }

}

@media(max-width:720px) and (max-height:710px) {
  .view {
    height: 37svh;
    min-height: 190px;
  }

  .desk {
    gap: 12px;
    padding-top: 12px;
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto;
  }

}
