.exp-player {
  --exp-accent: #ff5a1f;
  --exp-accent-soft: rgb(255 90 31 / 16%);
  --exp-ink: #f7f7f7;
  --exp-muted: #a9a9b1;
  --exp-panel: #17171b;
  --exp-panel-raised: #222227;
  --exp-panel-deep: #0e0e12;
  --exp-line: rgb(255 255 255 / 10%);
  display: block;
  min-width: 0;
  color: var(--exp-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  outline: none;
}

.exp-player *,
.exp-player *::before,
.exp-player *::after {
  box-sizing: border-box;
}

.exp-player button {
  border: 0;
  color: inherit;
  font: inherit;
}

.exp-player-shell {
  overflow: hidden;
  border: 1px solid rgb(13 13 15 / 12%);
  border-radius: 8px;
  background: var(--exp-panel);
  box-shadow: 0 24px 72px rgb(13 13 15 / 18%);
}

.exp-player-top {
  min-height: 76px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--exp-line);
}

.exp-player-heading {
  min-width: 0;
  flex: 1 1 18rem;
}

.exp-player-label {
  margin: 0 0 4px;
  color: var(--exp-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.exp-player-title {
  overflow: hidden;
  margin: 0;
  color: var(--exp-ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exp-player-status {
  min-width: 0;
  flex: 0 1 min(58%, 42rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.exp-player-status-pill {
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--exp-line);
  border-radius: 6px;
  background: rgb(255 255 255 / 5%);
  color: #d7d7dc;
  font-size: 12px;
  white-space: nowrap;
}

.exp-player-status-pill--scene-title {
  min-width: 0;
  flex: 0 1 auto;
  width: fit-content;
  max-width: min(18rem, 46vw);
}

.exp-player-status-pill--scene-title > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-player-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
}

.exp-player[data-document-kind="poster"] .exp-player-layout {
  grid-template-columns: minmax(0, 1fr);
}

.exp-player [hidden] {
  display: none !important;
}

.exp-player-stage-column {
  min-width: 0;
  padding: 18px;
}

.exp-player-stage-viewport {
  position: relative;
  width: 100%;
  height: 68dvh;
  min-height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--exp-line);
  border-radius: 6px;
  background: #000;
}

.exp-player-stage-wrap {
  --stage-ratio: 1.7777778;
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: var(--stage-ratio);
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

.exp-player-stage-wrap[data-tool="pen"],
.exp-player-stage-wrap[data-tool="eraser"] {
  touch-action: none;
}

.exp-player-frame,
.exp-player-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.exp-player-frame {
  border: 0;
  background: #000;
}

.exp-player-ink {
  z-index: 2;
  pointer-events: auto;
}

.exp-player-stage-wrap[data-tool="interact"] .exp-player-ink {
  pointer-events: none;
}

.exp-player-stage-wrap[data-tool="laser"],
.exp-player-stage-wrap[data-tool="laser"] .exp-player-ink {
  cursor: none;
}

.exp-player-stage-wrap[data-tool="pen"],
.exp-player-stage-wrap[data-tool="pen"] .exp-player-ink {
  cursor: url("/assets/icons/cursor-pencil.svg") 6 26, crosshair;
}

.exp-player-stage-wrap[data-tool="eraser"],
.exp-player-stage-wrap[data-tool="eraser"] .exp-player-ink {
  cursor: url("/assets/icons/cursor-eraser.svg") 11 23, cell;
}

.exp-player-laser {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--exp-accent);
  box-shadow: 0 0 0 10px rgb(255 90 31 / 14%), 0 0 28px rgb(255 90 31 / 84%);
  pointer-events: none;
}

.exp-player-stage-status {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 28px;
  display: grid;
  place-items: center;
  background: #0c0c10;
  color: var(--exp-muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.exp-player-stage-status[hidden] {
  display: none;
}

.exp-player-stage-status[data-kind="loading"]::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  margin-top: -58px;
  border: 2px solid rgb(255 255 255 / 14%);
  border-top-color: var(--exp-accent);
  border-radius: 50%;
  animation: exp-player-spin .8s linear infinite;
}

.exp-player-stage-status[data-kind="error"] {
  color: #ffb6a0;
}

@keyframes exp-player-spin {
  to { transform: rotate(360deg); }
}

.exp-player-toolbar {
  min-height: 52px;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.exp-player-toolbar::-webkit-scrollbar {
  display: none;
}

.exp-player-toolbar-group,
.exp-player-tool-segment {
  flex: 0 0 auto;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--exp-line);
  border-radius: 6px;
  background: var(--exp-panel-raised);
}

.exp-player-toolbar-end {
  margin-left: auto;
}

.exp-player-icon-button,
.exp-player-tool {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: rgb(255 255 255 / 6%);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.exp-player-icon-button {
  width: 40px;
  flex: 0 0 40px;
}

.exp-player-tool {
  gap: 7px;
  padding: 0 10px;
  color: #d8d8dd;
  font-size: 12px;
  font-weight: 600;
}

.exp-player-icon-button:hover:not(:disabled),
.exp-player-tool:hover {
  border-color: rgb(255 90 31 / 45%);
  background: var(--exp-accent-soft);
}

.exp-player-tool.is-active {
  border-color: var(--exp-accent);
  background: var(--exp-accent);
  color: #fff;
}

.exp-player-icon-button:focus-visible,
.exp-player-tool:focus-visible,
.exp-player-scene:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.exp-player-icon-button:disabled {
  cursor: default;
  opacity: .35;
}

.exp-player-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

.exp-player-scenes {
  min-width: 0;
  max-height: min(72vh, 760px);
  overflow: hidden;
  padding: 18px 14px;
  border-left: 1px solid var(--exp-line);
  background: var(--exp-panel-deep);
}

.exp-player-scene-list {
  max-height: calc(min(72vh, 760px) - 48px);
  display: grid;
  gap: 4px;
  overflow-y: auto;
  scrollbar-color: #55555d transparent;
  scrollbar-width: thin;
}

.exp-player-scene {
  width: 100%;
  min-height: 42px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border: 1px solid transparent !important;
  border-radius: 4px;
  background: transparent;
  color: #ceced4;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.exp-player-scene:hover {
  background: rgb(255 255 255 / 6%);
}

.exp-player-scene span:first-child {
  color: #6f6f78;
  font-variant-numeric: tabular-nums;
}

.exp-player-scene span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exp-player-scene.is-active {
  border-color: rgb(255 90 31 / 42%) !important;
  background: var(--exp-accent-soft);
  color: #fff;
}

.exp-player-scene.is-active span:first-child {
  color: var(--exp-accent);
}

.exp-player-empty {
  margin: 0;
  color: #777780;
  font-size: 12px;
  line-height: 1.45;
}

.exp-player-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--exp-panel);
}

.exp-player-shell:fullscreen .exp-player-layout {
  min-height: 0;
}

.exp-player-shell:fullscreen .exp-player-stage-column {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.exp-player-shell:fullscreen .exp-player-stage-viewport {
  min-height: 0;
  height: 100%;
}

.exp-player-shell:fullscreen .exp-player-scenes {
  max-height: none;
}

.exp-player-shell:fullscreen .exp-player-scene-list {
  max-height: calc(100vh - 140px);
}

@media (max-width: 1020px) {
  .exp-player-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .exp-player-tool-label {
    display: none;
  }

  .exp-player-tool {
    width: 40px;
    padding: 0;
  }
}

@media (max-width: 760px) {
  .exp-player-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .exp-player-heading {
    width: 100%;
    flex: none;
  }

  .exp-player-status {
    width: 100%;
    justify-content: flex-start;
  }

  .exp-player-layout {
    display: block;
  }

  .exp-player-stage-column {
    padding: 10px;
  }

  .exp-player-scenes {
    max-height: 190px;
    border-top: 1px solid var(--exp-line);
    border-left: 0;
  }

  .exp-player-scene-list {
    max-height: 140px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exp-player[data-variant="embedded"] .exp-player-top {
    min-height: 48px;
    padding: 10px 12px;
    align-items: center;
    flex-direction: row;
  }

  .exp-player[data-variant="embedded"] .exp-player-heading,
  .exp-player[data-variant="embedded"] .exp-player-status-pill--scene-title,
  .exp-player[data-variant="embedded"] .exp-player-scenes {
    display: none;
  }

  .exp-player[data-variant="embedded"] .exp-player-status {
    width: auto;
  }

  .exp-player[data-variant="embedded"] .exp-player-stage-column {
    padding: 0;
  }

  .exp-player[data-variant="embedded"] .exp-player-stage-viewport {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
  }

  .exp-player[data-variant="embedded"] .exp-player-toolbar {
    min-height: 60px;
    padding: 8px;
  }
}

@media (max-width: 520px) {
  .exp-player-top {
    padding: 12px;
  }

  .exp-player-status-pill:nth-child(2) {
    display: none;
  }

  .exp-player-toolbar {
    gap: 6px;
  }

  .exp-player-toolbar-end {
    margin-left: 0;
  }

  .exp-player-scene-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exp-player-stage-status[data-kind="loading"]::before {
    animation: none;
  }
}
