html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.stage {
  position: relative;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: filter;
}

.panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.frameWrap {
  display: grid;
  place-items: center;
  --base-fw: 118;
  --amp-fw: 16;
}

.frame {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  background: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playBtn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.playShape {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #fff7e6;
  filter: drop-shadow(0 1px 2px rgba(23, 20, 26, 0.4));
  opacity: 0.92;
}

.captionBar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background: rgba(23, 20, 26, 0.66);
  backdrop-filter: blur(4px);
}

.captionText {
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  color: #fff7e6;
  opacity: 0.9;
}

.readout {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0a4fe8;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  color: #fff7e6;
}

@media (max-width: 340px) {
  .frameWrap {
    --base-fw: 62;
    --amp-fw: 10;
  }
  .panel {
    gap: 4px;
  }
  .captionText {
    font-size: 10px;
  }
  .readout {
    font-size: 10px;
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bg {
    filter: blur(8px);
  }
}
