@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #15191c;
  --surface: #242c32;
  --silver: #c4cdd2;
  --text: #edf0f2;
  --muted: #b0bbc2;
  --cyan: #23cee0;
  --line: #39444c;
  font:
    400 16px/1.5 "IBM Plex Sans",
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
}
button,
input,
summary {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}
button {
  border: 0;
  background: transparent;
}
button:hover:not(:disabled) {
  color: var(--cyan);
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1040px, calc(100% - 80px));
  margin-inline: auto;
}
.advertisement {
  margin-block: 32px;
  text-align: center;
}
.ad-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ad-banner-slot {
  display: grid;
  place-items: center;
  min-height: 90px;
  width: min(728px, 100vw);
  margin-left: 50%;
  transform: translateX(-50%);
}
#adBanner {
  display: block;
  border: 0;
}
.ad-native {
  min-height: 280px;
  max-width: 100%;
  overflow-x: auto;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 30;
  background: var(--text);
  color: var(--page);
  padding: 12px;
  transform: translateY(-180%);
}
.skip:focus {
  transform: none;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 112px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -1px;
  min-height: 44px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.brand-mark i {
  display: block;
  width: 3px;
  background: var(--cyan);
  height: 10px;
}
.brand-mark i:nth-child(2) {
  height: 18px;
}
.brand-mark i:nth-child(3) {
  height: 14px;
}
.brand-mark i:nth-child(4) {
  height: 6px;
}
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.site-nav a,
.site-nav button,
.footer a,
.footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
}
.site-nav .download {
  color: var(--text);
  gap: 8px;
}
.download svg {
  width: 16px;
  height: 16px;
}
.mobile-menu {
  display: none;
}
.mobile-menu summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
}
.mobile-menu nav {
  position: absolute;
  z-index: 6;
  right: 0;
  top: 48px;
  min-width: 200px;
  padding: 12px;
  border: 1px solid #495762;
  border-radius: 6px;
  background: var(--surface);
}
.mobile-menu nav a,
.mobile-menu nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  text-align: left;
  width: 100%;
}
.mobile-menu .badge {
  margin-left: auto;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a,
.site-nav button,
.footer-links a,
.footer-links button {
  gap: 8px;
}
.site-nav .download-badge {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}
.badge {
  padding: 2px 6px;
  border: 1px solid #52616d;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
}
.support-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #ff8979;
  color: #291c19;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.support-cta:hover {
  background: #ffa294;
  text-decoration: none;
}
.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.export-panel button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.view-toggle {
  gap: 6px;
}
.view-toggle .ui-icon {
  width: 15px;
  height: 15px;
}
.footer p .personal-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
}
.personal-site .ui-icon {
  width: 15px;
  height: 15px;
}
@media (min-width: 640px) and (max-width: 1000px) {
  .site-nav {
    gap: 14px;
  }
  .header-actions {
    gap: 14px;
  }
  .support-wide {
    display: none;
  }
}
@media (min-width: 640px) and (max-width: 759px) {
  .site-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
}
@media (max-width: 639px) {
  .site-header {
    gap: 8px;
  }
  .header-actions {
    gap: 10px;
  }
  .support-wide {
    display: none;
  }
  .support-cta {
    padding: 10px 11px;
    font-size: 13px;
    gap: 6px;
  }
  .mobile-menu summary {
    min-width: 44px;
    justify-content: center;
  }
  .mobile-menu nav a,
  .mobile-menu nav button {
    gap: 9px;
  }
  .mobile-menu .badge {
    margin-left: auto;
  }
  .footer p .personal-site {
    margin-left: 12px;
  }
}
.intro {
  padding: 40px 0 0;
}
.intro h1 {
  font-size: clamp(32px, 3.3vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1.1px;
  margin: 0 0 16px;
}
.intro p {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
}
.player {
  margin-top: 40px;
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1600/503;
  overflow: hidden;
  user-select: none;
}
.face {
  position: absolute;
  top: -40.56%;
  width: 100%;
  display: block;
  border-radius: 6px;
}
.oel {
  position: absolute;
  left: 23.3%;
  top: 31.17%;
  width: 44.9%;
  height: 32.14%;
  overflow: hidden;
  background: #000;
}
.oel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
}
.oel #glow {
  opacity: 0;
  filter: blur(3px) brightness(1.7) saturate(1.15);
  mix-blend-mode: screen;
}
.oel .scan,
.oel .inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.oel .scan {
  background: repeating-linear-gradient(#0000 0 1.5px, #0007 1.5px 3px);
}
.oel .inner {
  box-shadow: inset 0 0 14px #000b;
}
.oel.fx #glow {
  opacity: 0.9;
}
.oel.fx .scan {
  opacity: 0.5;
}
.oel.fx .inner {
  opacity: 1;
}
.view-toggle {
  display: none;
}
.player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 10px;
}
.current-track {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.current-track .indicator {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
}
.current-track strong {
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.model {
  font-size: 12px;
  color: var(--muted);
}
.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 10px 0 24px;
  border-bottom: 1px solid var(--line);
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 5px;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.play {
  background: var(--silver);
  color: var(--page);
  padding: 0 23px;
  min-width: 112px;
  min-height: 44px;
  border-radius: 5px;
  font-weight: 600;
}
.play:hover:not(:disabled) {
  color: var(--page);
  background: var(--text);
}
.utilities {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  font-size: 14px;
}
.utilities summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: var(--muted);
}
summary::-webkit-details-marker {
  display: none;
}
.utilities summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  margin-top: -4px;
}
.utilities details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
.utility {
  position: relative;
}
.popover {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 52px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid #495762;
  border-radius: 8px;
  box-shadow: 0 12px 32px #0004;
  min-width: 310px;
}
.popover label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.popover .range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 20px;
}
.range-row label {
  grid-column: 1/-1;
}
.range-row input {
  min-height: 44px;
  width: 100%;
  margin: 0;
}
.popover output {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
}
input {
  accent-color: var(--cyan);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.popover label[for="fx"] {
  min-height: 44px;
}
.export-panel {
  min-width: 220px;
  padding: 12px;
}
.export-panel button {
  width: 100%;
  text-align: left;
  border-radius: 4px;
  padding: 12px;
  min-height: 44px;
}
.export-panel button:hover {
  background: #303c45;
}
.export-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 12px;
}
.meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.meta {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.shortcut {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
kbd {
  font: inherit;
  border: 1px solid #4a555d;
  padding: 0 4px;
  border-radius: 3px;
}
#expStatus,
#status {
  font-size: 14px;
  color: var(--cyan);
  margin: 0;
}
#status:not(:empty),
#expStatus:not(:empty) {
  padding: 10px 0;
}
.collection {
  padding-top: 28px;
}
.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.collection h2 {
  margin: 0;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.3px;
}
.open-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  padding-inline: 0;
}
.open-file svg {
  width: 17px;
  height: 17px;
}
.category-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.category-list button {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 5px;
  font-size: 14px;
  color: var(--muted);
}
.category-list button[aria-pressed="true"] {
  color: var(--cyan);
  background: var(--surface);
  box-shadow: inset 0 -2px var(--cyan);
}
.files {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
}
.chip {
  padding: 0;
  display: block;
  text-align: left;
  min-width: 0;
  min-height: 66px;
  border-radius: 4px;
}
.chip .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4;
  height: auto;
  image-rendering: pixelated;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.chip .cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  min-width: 0;
}
.chip .clip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chip .playing-tag {
  font-size: 11px;
  align-self: center;
  color: var(--cyan);
}
.chip:hover .thumb {
  border-color: #728690;
}
.chip.active .thumb {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
  border-color: var(--cyan);
}
.chip.active .clip-name {
  color: var(--cyan);
}
.chip.pending .thumb {
  background: #1b2328;
}
.chip.failed .thumb {
  border-style: dashed;
}
.drop {
  margin-top: 36px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.drop p {
  margin: 0;
}
.drop .open-file {
  color: var(--text);
}
.drop.over {
  outline: 2px dashed var(--cyan);
  outline-offset: 10px;
}
.privacy {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 32px;
}
.about {
  max-width: 70ch;
  padding-bottom: 32px;
  scroll-margin-top: 16px;
}
.about h2 {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.3px;
  margin: 24px 0 8px;
}
.about h2:first-child {
  margin-top: 0;
}
.about p {
  color: var(--muted);
  margin: 0 0 12px;
}
.about a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer .disclaimer {
  flex-basis: 100%;
  font-size: 12px;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-links {
  display: flex;
  gap: 4px 24px;
  flex-wrap: wrap;
}
.footer p {
  margin: 0;
}
.footer p a {
  display: inline;
}
.footer .support {
  color: var(--text);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid #495762;
  border-radius: 10px;
  width: min(640px, calc(100% - 32px));
  max-height: 85vh;
  padding: 0;
}
dialog::backdrop {
  background: #000a;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #495762;
}
dialog h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
dialog .body {
  padding: 8px 24px 24px;
  overflow-wrap: anywhere;
}
dialog .body p {
  color: var(--muted);
}
dialog .body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
dialog .body h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}
dialog .body h4 {
  font-size: 16px;
  margin: 20px 0 8px;
}
dialog .body code {
  font-size: 13px;
  color: var(--text);
}
dialog .body li {
  color: var(--muted);
  margin-block: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1400px) {
  .shell {
    width: min(1040px, calc(100% - 96px));
  }
  .player {
    margin-top: 48px;
  }
}
@media (max-width: 900px) {
  .shell {
    width: calc(100% - 48px);
  }
  .files {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-header {
    min-height: 96px;
  }
  .intro {
    padding-top: 24px;
  }
}
@media (max-width: 639px) {
  .shell {
    width: calc(100% - 40px);
  }
  .site-header {
    min-height: 84px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    gap: 2px;
  }
  .site-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
  .mobile-menu summary {
    list-style: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
  }
  .mobile-menu nav {
    position: absolute;
    z-index: 6;
    right: 0;
    top: 48px;
    min-width: 200px;
    background: var(--surface);
    padding: 12px;
    border: 1px solid #495762;
    border-radius: 6px;
  }
  .mobile-menu nav a,
  .mobile-menu nav button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    text-align: left;
  }
  .intro {
    padding-top: 24px;
  }
  .intro h1 {
    font-size: 32px;
    max-width: 17ch;
    letter-spacing: -0.8px;
  }
  .intro p {
    font-size: 15px;
    max-width: 35ch;
  }
  .player {
    margin-top: 32px;
  }
  .stage:not(.full-stereo) {
    aspect-ratio: 4;
    background: #000;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
  }
  .stage:not(.full-stereo) .face {
    display: none;
  }
  .stage:not(.full-stereo) .oel {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
  .view-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 12px;
    padding: 0;
  }
  .player-caption {
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 0;
  }
  .current-track strong {
    font-size: 14px;
  }
  .model {
    display: none;
  }
  .control-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
  }
  .transport {
    justify-content: space-between;
    width: 100%;
    gap: 16px;
  }
  .play {
    min-width: 124px;
  }
  .utilities {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .popover {
    right: auto;
    left: 0;
    width: min(310px, calc(100vw - 40px));
    min-width: 0;
  }
  .utility:last-child .popover {
    right: 0;
    left: auto;
  }
  .meta-row {
    min-height: 36px;
  }
  .shortcut {
    display: none;
  }
  .meta {
    font-size: 11px;
  }
  .collection {
    padding-top: 28px;
  }
  .collection h2 {
    font-size: 21px;
  }
  .collection-header {
    margin-bottom: 12px;
  }
  .category-list {
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 3px 10px;
    margin: 0 -3px 14px;
    scrollbar-width: thin;
  }
  .category-list button {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 13px;
  }
  .files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .chip .cap {
    font-size: 12px;
    gap: 4px;
  }
  .chip .playing-tag {
    font-size: 10px;
  }
  .drop {
    margin-top: 28px;
    padding: 20px 0;
    gap: 8px;
  }
  .drop p {
    font-size: 12px;
    max-width: 22ch;
  }
  .drop .open-file {
    font-size: 13px;
    white-space: nowrap;
  }
  .footer {
    flex-wrap: wrap;
    padding-top: 18px;
    gap: 8px;
  }
  .footer-links {
    gap: 4px 20px;
  }
  .footer p {
    width: 100%;
    font-size: 12px;
  }
  .privacy {
    font-size: 12px;
    margin-bottom: 24px;
  }
  dialog header {
    padding: 12px 18px;
  }
  dialog .body {
    padding: 8px 18px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
