#workshop-player {
  position: fixed;
  inset: 0;
  width: min(94vw, 1600px);
  max-width: none;
  max-height: 94dvh;
  box-sizing: border-box;
  padding: clamp(7px, 1vw, 14px);
  border: 1px solid #66594b;
  border-radius: 12px;
  background: #171411;
  color: #fff8e9;
  overflow: auto;
}

#workshop-player[open] {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#workshop-player::backdrop {
  background: rgb(12 10 8 / 35%);
}

html:has(#workshop-player[open]) {
  overflow: hidden;
}

#workshop-player video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1280 / 656;
  object-fit: contain;
  background: #0c0a08;
}

#workshop-player .workshop-caption {
  flex: none;
  align-content: center;
  min-block-size: 2lh;
  margin: 0;
  padding: 3px 6px;
  color: #fff;
  background: #171411;
  text-align: center;
  font: 500 clamp(17px, 2vw, 24px)/1.2 system-ui, sans-serif;
}

@media (max-width: 600px) {
  #workshop-player {
    width: 96vw;
    padding-inline: 5px;
  }

  #workshop-player .workshop-caption {
    min-block-size: 3lh;
  }
}

#workshop-player .workshop-controls {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

#workshop-player button,
.workshop-replay button {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d8bb8d88;
  border-radius: 999px;
  background: #24362e;
  color: #fff8e9;
  font: 650 .82rem/1.15 system-ui, sans-serif;
  box-shadow: 0 3px 12px #16261e42;
  cursor: pointer;
}

#workshop-player button {
  min-height: 31px;
  padding-inline: 9px;
  font-size: .75rem;
}

#workshop-player button:hover,
.workshop-replay button:hover {
  background: #344c3d;
}

#workshop-player [data-sound] {
  background: #f0ce8f;
  color: #211910;
}

#workshop-player [data-status] {
  flex: none;
  margin: 0;
  text-align: center;
}

.workshop-replay {
  margin-bottom: 16px;
}
