.pg-root {
  --pg-steel: #5e6570;
  --pg-chrome: #3f454e;
  --pg-panel: #d4d6da;
  --pg-ink: #1b1e23;
  --pg-muted: #4a4f58;
  --pg-select: #f2c230;
  container-type: inline-size;
  min-height: 100%;
  box-sizing: border-box;
  background: var(--pg-steel);
  background-image: linear-gradient(#4a4f58 1px, transparent 1px), linear-gradient(90deg, #4a4f58 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--pg-ink);
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  padding-bottom: 14px;
}

.pg-root a {
  color: #123f9a;
  cursor: pointer;
}

.pg-root h1,
.pg-root h2 {
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  margin: 0;
}

.pg-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 16px;
  background: var(--pg-chrome);
  border-bottom: 1px solid #22262c;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.pg-root .pg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef0f3;
  text-decoration: none;
}

.pg-tri {
  width: 34px;
  height: 30px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: conic-gradient(from 90deg at 50% 66%, #2a5bd7 0 120deg, #e0301e 0 240deg, #2fb84a 0);
}

.pg-name {
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-weight: bold;
  font-size: 28px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #22262c, 2px 2px 0 #22262c, 3px 3px 0 #22262c;
}

.pg-tag {
  color: #c3c8cf;
  font-size: 12px;
}

.pg-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 12px;
  padding: 12px 16px 0;
  align-items: start;
}

.pg-stage {
  min-width: 0;
}

.pg-viewport {
  position: relative;
  background: #000;
  border: 2px solid var(--pg-select);
  outline: none;
  line-height: 0;
}

.pg-viewport:focus-visible {
  box-shadow: 0 0 0 2px #fff;
}

.pg-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  image-rendering: pixelated;
  cursor: pointer;
}

.pg-vp-label {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 2;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

.pg-fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.pg-caption {
  position: absolute;
  left: 5%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  line-height: 1.15;
  text-shadow: 2px 2px 0 #000000;
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}

.pg-caption-on {
  opacity: 1;
}

.pg-cap-artist {
  font-size: clamp(13px, 3.4cqw, 22px);
  font-weight: bold;
}

.pg-cap-title {
  font-size: clamp(12px, 3cqw, 19px);
}

.pg-cap-note {
  font-size: clamp(10px, 1.9cqw, 12px);
  color: var(--pg-select);
}

.pg-root .pg-bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  font-family: 'Trebuchet MS', Tahoma, sans-serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  background: rgba(20, 22, 26, 0.78);
  border: 2px solid var(--pg-select);
  cursor: pointer;
}

.pg-root .pg-bigplay:hover {
  background: rgba(20, 22, 26, 0.92);
}

.pg-root .pg-bigplay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pg-rec {
  position: absolute;
  top: 6%;
  right: 5%;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: clamp(10px, 2.2cqw, 15px);
  font-weight: bold;
  line-height: 1;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

.pg-rec-dot {
  color: #ff2020;
}

.pg-bigplay[hidden],
.pg-rec[hidden],
.pg-msg[hidden] {
  display: none;
}

.pg-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  margin: 0 auto;
  width: fit-content;
  max-width: 86%;
  padding: 6px 10px;
  background: #ffffe1;
  border: 1px solid #000;
  color: #000;
  font-size: 11px;
  line-height: 1.4;
}

.pg-broken .pg-msg {
  top: 50%;
  transform: translateY(-50%);
}

.pg-audio {
  display: none;
}

.pg-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 6px;
  background: var(--pg-panel);
  border: 1px solid #22262c;
}

.pg-root .pg-play {
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
}

.pg-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--pg-muted);
}

.pg-timeline {
  position: relative;
  flex: 1;
  min-width: 60px;
  height: 16px;
  background: #22262c;
  cursor: pointer;
  touch-action: none;
}

.pg-timeline:focus-visible {
  outline: 2px solid var(--pg-select);
  outline-offset: 1px;
}

.pg-seg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.45);
}

.pg-cursor {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--pg-select);
  box-shadow: 0 0 0 1px #000;
  pointer-events: none;
}

.pg-vol {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pg-root .pg-mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 22px;
  padding: 0;
}

.pg-vol-track {
  position: relative;
  width: 64px;
  height: 16px;
  background: #22262c;
  cursor: pointer;
  touch-action: none;
}

.pg-vol-track:focus-visible {
  outline: 2px solid var(--pg-select);
  outline-offset: 1px;
}

.pg-vol-ramp {
  position: absolute;
  inset: 2px 0;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  background: linear-gradient(90deg, var(--pg-select) var(--pg-vol), var(--pg-steel) var(--pg-vol));
}

.pg-vol-knob {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--pg-vol);
  width: 2px;
  margin-left: -1px;
  background: var(--pg-select);
  box-shadow: 0 0 0 1px #000;
  pointer-events: none;
}

.pg-vol-off .pg-vol-ramp {
  background: linear-gradient(90deg, #8a9099 var(--pg-vol), var(--pg-muted) var(--pg-vol));
}

.pg-vol-off .pg-vol-knob {
  background: #8a9099;
}

.pg-root .pg-full {
  flex-shrink: 0;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.pg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.pg-root .pg-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 5px;
  font: inherit;
  font-size: 11px;
  color: #eef0f3;
  background: var(--pg-chrome);
  border: 1px solid #22262c;
  cursor: pointer;
}

.pg-root .pg-loc:hover {
  background: #4c535d;
}

.pg-root .pg-loc:focus-visible {
  outline: 2px solid #fff;
}

.pg-root .pg-loc-on {
  border-color: var(--pg-select);
  box-shadow: inset 0 -2px 0 var(--pg-select);
}

.pg-swatch {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

.pg-count {
  color: #aab0b8;
}

.pg-info {
  background: var(--pg-panel);
  border: 1px solid #22262c;
  padding: 10px 12px 12px;
}

.pg-artist {
  color: var(--pg-muted);
  font-size: 12px;
}

.pg-title {
  font-size: 19px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.pg-facts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  margin: 0 0 10px;
}

.pg-facts dt {
  color: var(--pg-muted);
}

.pg-facts dd {
  margin: 0;
  text-align: right;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}

.pg-note {
  margin: 0;
  font-size: 11px;
  color: var(--pg-muted);
}

.pg-list,
.pg-how {
  margin: 12px 16px 0;
  padding: 10px 12px 12px;
  background: var(--pg-panel);
  border: 1px solid #22262c;
  max-width: 72ch;
}

.pg-list h2,
.pg-how h2 {
  font-size: 15px;
  margin-bottom: 6px;
}

.pg-how p {
  margin: 0 0 6px;
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
}

.pg-table th {
  text-align: left;
  font-weight: normal;
  color: var(--pg-muted);
  border-bottom: 1px solid #9aa0a8;
  padding: 2px 6px;
}

.pg-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #b8bcc2;
}

.pg-row-on td {
  background: #fff6cc;
}

.pg-num {
  font-weight: bold;
}

.pg-next {
  margin: 8px 0 0;
  color: var(--pg-muted);
}

.pg-empty {
  margin: 16px;
  color: #eef0f3;
}

.pg-foot {
  margin: 12px 16px 0;
  color: #c3c8cf;
  font-size: 11px;
}

.pg-viewport:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.pg-viewport:fullscreen .pg-canvas {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@container (max-width: 620px) {
  .pg-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-head {
    padding: 8px 10px;
  }

  .pg-main,
  .pg-list,
  .pg-how,
  .pg-foot {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pg-list,
  .pg-how,
  .pg-foot {
    margin-left: 10px;
    margin-right: 10px;
  }

  .pg-root .pg-full {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-caption {
    transition: none;
  }
}
