@import "./scenes/scenes.css?v=50550e5db1bc";
:root {
  color-scheme: dark;
  --accent: #b9e3a0;
  --bg: #100e19;
  --muted: #a49bb4;
  --line: #ffffff18;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  color: #fff4ff;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
summary {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff09;
  color: inherit;
  padding: 10px 16px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background: #ffffff19;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input {
  min-width: 0;
  color: inherit;
  background: #100e19;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 15px;
}
a {
  color: inherit;
  text-decoration: none;
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.app {
  height: 100%;
  height: 100dvh;
  max-width: 1440px;
  margin: auto;
  padding: 24px 32px;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) 108px 52px;
  gap: 18px;
  background: radial-gradient(ellipse at 70% 40%, #36204244, transparent 65%);
}
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.brand {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.brand > span:last-child {
  color: #cbb3e8;
}
.brand-mark {
  display: grid;
  place-items: center;
  margin-right: 5px;
  background: #b78ce5;
  color: #22152e;
  width: 32px;
  height: 32px;
  border-radius: 11px;
}
.avatars {
  display: flex;
  margin-left: auto;
  padding-left: 8px;
}
.avatar {
  border: 2px solid var(--bg);
  border-radius: 50%;
  margin-left: -8px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #493656;
  font-size: 11px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3e0b8;
}
.menu {
  position: relative;
}
.menu summary {
  font-size: 24px;
  padding: 0 6px;
}
.menu > div {
  position: absolute;
  right: 0;
  top: 32px;
  z-index: 20;
  background: #292034;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  white-space: nowrap;
}
.radio-card {
  position: relative;
  min-height: 0;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56% 44%;
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 13%, #191421), #171321 60%);
  box-shadow: 0 20px 60px #0004;
}
.player-details {
  display: grid;
  grid-template-columns: minmax(100px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 32px 0 32px 28px;
  z-index: 2;
}
.art-wrap {
  aspect-ratio: 1;
  border: 3px solid var(--accent);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #473a58, #211a30);
  box-shadow: 0 10px 32px #0005;
}
.art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-wrap > span {
  font-size: 48px;
  color: var(--accent);
}
.metadata {
  min-width: 0;
}
.radio-name {
  font-size: 27px;
  font-weight: bold;
  letter-spacing: -1px;
}
.scene-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 9px 0 23px;
  font-weight: bold;
}
h1 {
  font-size: 23px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.6px;
}
.artist {
  color: var(--accent);
  font-size: 14px;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.requester {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 20px;
}
.progress-track {
  height: 4px;
  background: #ffffff18;
  border-radius: 5px;
  overflow: hidden;
}
#progress {
  height: 100%;
  background: var(--accent);
  width: 0;
}
.times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 16px;
  font-variant-numeric: tabular-nums;
}
.controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.controls button {
  font-size: 12px;
  padding: 10px 12px;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #181220;
  border: 0;
  font-weight: bold;
}
button.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent), white 20%);
}
.volume-menu {
  position: relative;
}
.volume-menu summary {
  padding: 8px;
}
.volume-menu label {
  position: absolute;
  bottom: 40px;
  right: 0;
  width: 160px;
  padding: 14px;
  border-radius: 14px;
  background: #30273d;
  font-size: 11px;
  box-shadow: 0 4px 20px #0007;
  z-index: 10;
}
.volume-menu input {
  width: 100%;
  padding: 0;
  margin-top: 8px;
  accent-color: var(--accent);
}
#start-card p {
  font-size: 13px;
  margin: 12px 0;
}
#scene-panel {
  position: relative;
  min-height: 0;
  isolation: isolate;
}
#scene-panel:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #171321, transparent 28%);
  z-index: 1;
}
#scene-tag {
  position: absolute;
  bottom: 20px;
  left: 34px;
  z-index: 4;
  background: #141020b3;
  border: 1px solid #ffffff24;
  padding: 7px 12px;
  border-radius: 30px;
  font-size: 10px;
}
#premium-scene {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 4;
  border: 1px solid #e5c78d55;
  border-radius: 20px;
  background: #281e39b3;
  color: #eed5a1;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 6px 9px;
}
#miko-slot {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-head span {
  font-size: 11px;
  color: var(--muted);
}
#queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #32283e;
  color: var(--accent);
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.queue-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}
.queue-meta b,
.queue-meta small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-meta b {
  font-size: 12px;
}
.queue-meta small,
.queue-item > small {
  font-size: 10px;
  color: var(--muted);
}
#queue-empty {
  padding: 22px;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.search-launch {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--muted);
  background: #ffffff05;
}
.search-launch > span:last-child {
  margin-left: auto;
}
.search-launch > span {
  font-size: 12px;
}
#notice {
  position: fixed;
  z-index: 40;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #63334c;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 12px;
  max-width: 90%;
}
dialog {
  background: #211a2d;
  color: inherit;
  border: 1px solid #ffffff25;
  border-radius: 22px;
  padding: 24px;
  width: min(560px, calc(100% - 32px));
  max-height: 70dvh;
  overflow: auto;
  box-shadow: 0 30px 100px #000a;
}
dialog::backdrop {
  background: #090512aa;
  backdrop-filter: blur(6px);
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
#search-form {
  display: flex;
  gap: 8px;
  position: sticky;
  top: -24px;
  background: #211a2d;
  padding: 4px 0 12px;
  z-index: 1;
}
#search-input {
  flex: 1;
}
#results {
  padding: 0;
  margin: 0;
  list-style: none;
}
.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.result-item button {
  font-size: 12px;
}
.result-message {
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted);
}
#expired p {
  margin: 16px 0;
  font-size: 13px;
}
/* Overrides intentionally scoped to the embedded scene, including the stage's injected styles. */
#scene-panel .miko-card {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
#scene-panel .miko-area {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  background: none;
  border-radius: 0;
  overflow: hidden;
}
#scene-panel .miko-area:after {
  display: none;
}
#scene-panel .miko-figure {
  height: 86%;
  bottom: 2%;
  left: 56%;
}
#scene-panel .miko-caption {
  top: 56px;
  left: 20px;
  transform: none;
  max-width: 75%;
  white-space: normal;
  background: #fff7fd;
  color: #38283f;
  padding: 13px 17px;
  border-radius: 17px 17px 17px 3px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 6px 25px #0003;
}
#scene-panel .miko-now {
  display: none;
}
#scene-panel .miko-toolbar {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 5;
  margin: 0;
  gap: 4px;
}
#scene-panel .miko-toolbar button {
  padding: 7px;
  background: #1f1726b3;
  border-radius: 50%;
  font-size: 13px;
}
#scene-panel .stage-menu {
  position: absolute;
  top: 14px;
  left: 24px;
  z-index: 6;
}
#scene-panel .stage-menu summary {
  font-size: 24px;
  width: 30px;
  text-align: center;
}
#scene-panel .stage-options {
  position: absolute;
  top: 32px;
  left: 0;
  background: #2a2037;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  display: grid;
  gap: 4px;
  min-width: 130px;
}
#scene-panel .stage-options button {
  font-size: 12px;
}
#scene-panel .miko-show {
  position: absolute;
  bottom: 60px;
  right: 16px;
  font-size: 11px;
}
#scene-panel .miko-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  height: 100%;
  z-index: 10;
}
@media (max-height: 600px) and (min-width: 701px) {
  .app {
    padding: 14px 24px;
    gap: 12px;
    grid-template-rows: 38px minmax(0, 1fr) 96px 44px;
  }
  .player-details {
    gap: 18px;
    padding: 20px 0 20px 20px;
  }
  .radio-name {
    font-size: 23px;
  }
  .scene-label {
    margin: 7px 0 16px;
  }
  h1 {
    font-size: 20px;
  }
  .requester {
    margin-bottom: 14px;
  }
  .queue-item {
    padding: 9px;
  }
}
@media (max-width: 700px) {
  .app {
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
    gap: 12px;
    grid-template-rows: 36px minmax(0, 1fr) 150px 46px;
  }
  .top {
    gap: 10px;
  }
  .brand {
    font-size: 15px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
  .status {
    margin-left: auto;
  }
  .status span {
    display: none;
  }
  .top > button {
    padding: 6px 10px;
  }
  .avatars {
    display: none;
  }
  .radio-card {
    display: flex;
    flex-direction: column;
    border-radius: 21px;
  }
  .player-details {
    order: 2;
    flex: 0 0 45%;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    align-content: center;
  }
  .art-wrap {
    border-radius: 12px;
  }
  .metadata {
    position: relative;
  }
  .radio-name {
    font-size: 19px;
  }
  .scene-label {
    font-size: 8px;
    margin: 5px 0 10px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: 17px;
  }
  .artist {
    font-size: 12px;
    margin-top: 4px;
  }
  .requester {
    font-size: 9px;
    margin: 6px 0 11px;
  }
  .times {
    margin: 5px 0 9px;
    font-size: 9px;
  }
  .controls {
    gap: 4px;
  }
  .controls button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .volume-menu summary {
    padding: 5px;
    font-size: 12px;
  }
  #scene-panel {
    flex: 1;
    order: 1;
    min-height: 0;
  }
  #scene-panel:after {
    background: linear-gradient(0deg, #171321, transparent 22%);
  }
  #scene-tag {
    left: 16px;
    bottom: 12px;
  }
  #scene-panel .miko-caption {
    top: 47px;
    left: 14px;
    font-size: 13px;
    padding: 10px 13px;
    max-width: 48%;
  }
  /* Phone: Miko stands right of center so her speech bubble sits beside her face, not on it. */
  #scene-panel .miko-figure,
  #scene-panel canvas {
    translate: 16% 0;
  }
  #scene-panel .miko-figure {
    height: 89%;
  }
  #scene-panel .miko-toolbar {
    bottom: 10px;
    right: 12px;
  }
  #queue {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .queue-item {
    padding: 8px 10px;
  }
  .queue-item:nth-child(n + 3) {
    display: none;
  }
  .thumb {
    width: 36px;
    height: 36px;
  }
  .section-head {
    margin-bottom: 8px;
  }
  .section-head h2 {
    font-size: 13px;
  }
  .queue-meta {
    gap: 3px;
  }
  .queue-meta b {
    font-size: 11px;
  }
  .search-launch {
    padding: 10px 14px;
  }
  dialog#search-modal {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 70dvh;
    border-radius: 22px 22px 0 0;
    padding: 20px;
  }
  #start-card p {
    font-size: 11px;
  }
  #start-card button {
    font-size: 11px;
    padding: 8px 12px;
  }
}
@media (min-width: 530px) and (max-width: 700px) {
  .avatars {
    display: flex;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  .app {
    grid-template-rows: 32px minmax(0, 1fr) 132px 40px;
    gap: 8px;
  }
  .player-details {
    padding: 10px;
    gap: 10px;
  }
  .scene-label {
    margin-bottom: 5px;
  }
  .requester {
    margin: 4px 0 7px;
  }
  .queue-item {
    padding: 5px 9px;
  }
  .radio-name {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

#scene-panel .miko-figure[data-dance="groove_b"] {
  animation-name: miko-sway;
}
#scene-panel .miko-figure.stretch {
  scale: 1 1.04;
}
#scene-panel .miko-figure.look {
  rotate: 5deg;
}
@keyframes miko-sway {
  0%,
  100% {
    rotate: -3deg;
    translate: -3px 0;
  }
  50% {
    rotate: 3deg;
    translate: 3px -8px;
  }
}
