
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: transparent;
}

.mesh-public-player-page {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--mesh-player-max-width, 100%);
  margin: 0 auto;
  line-height: 0;
}

.mesh-public-player-page--left {
  margin-left: 0;
}

.mesh-public-player-page--right {
  margin-right: 0;
}

.mesh-public-player-page--wide {
  max-width: 100%;
}

.mesh-public-player {
  --mesh-play-button-bg: #ffffff;
  --mesh-play-button-icon: #111827;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #050505;
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: normal;
}

.mesh-public-player__stage,
.mesh-public-player__video,
.mesh-public-player__embed,
.mesh-public-player__audio {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mesh-public-player__stage {
  display: grid;
  place-items: center;
  background: #050505;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.mesh-public-player__video,
.mesh-public-player__embed {
  display: block;
  border: 0;
  background: #050505;
}

.mesh-public-player__audio {
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.mesh-public-player__audio audio {
  width: min(720px, 100%);
}

.mesh-public-player__start {
  position: relative;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: var(--mesh-play-button-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.mesh-public-player__start::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 29px;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 29px solid var(--mesh-play-button-icon);
}

.mesh-public-player__start.is-loading {
  cursor: wait;
}

@keyframes mesh-public-player-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mesh-public-player__start.is-loading::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, rgba(250, 204, 21, 0), rgba(250, 204, 21, 0.95), rgba(250, 204, 21, 0));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: mesh-public-player-spin 0.9s linear infinite;
}

.mesh-public-player__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  border-radius: 4px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 700 12px/1 ui-sans-serif, system-ui;
  text-transform: uppercase;
}

.mesh-public-player__skip {
  position: absolute;
  right: 12px;
  bottom: 58px;
  z-index: 4;
  min-width: 108px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 8px 11px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font: 700 12px/1 ui-sans-serif, system-ui;
  cursor: default;
}

.mesh-public-player__skip.is-ready {
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  cursor: pointer;
}

.mesh-public-player__click {
  position: absolute;
  inset: 0 0 72px;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.mesh-public-player__progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: grid;
  gap: 6px;
}

.mesh-public-player__progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.mesh-public-player__progress-fill {
  width: 0%;
  height: 100%;
  background: #facc15;
}

.mesh-public-player__progress-time {
  color: #fff;
  font: 700 12px/1 ui-sans-serif, system-ui;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.mesh-public-player__message {
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  font: 500 14px/1.4 ui-sans-serif, system-ui;
  text-align: center;
}

@media (max-width: 640px) {
  .mesh-public-player__start {
    width: 82px;
    height: 82px;
  }

  .mesh-public-player__start::before {
    left: 33px;
    top: 25px;
    border-top-width: 16px;
    border-bottom-width: 16px;
    border-left-width: 25px;
  }
}
