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

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

.player {
  position: relative;
  width: 300px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2a2740, #17141a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.frameDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.25);
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 8, 18, 0.55);
  backdrop-filter: blur(var(--blur, 6px));
  -webkit-backdrop-filter: blur(var(--blur, 6px));
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.ring {
  --spin-duration: 900ms;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid rgba(255, 247, 230, 0.22);
  border-top-color: #5b8cf8;
  transform-origin: center;
  animation: spin var(--spin-duration) linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.toggleBtn {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #17141a;
  background: rgba(255, 247, 230, 0.9);
  cursor: pointer;
}
.toggleBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.status {
  position: absolute;
  top: 8px;
  left: 8px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff7e6;
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 340px) {
  .player {
    width: 220px;
    height: 140px;
  }
  .ring {
    width: 34px;
    height: 34px;
    border-width: 3px;
  }
  .toggleBtn {
    font-size: 10px;
    padding: 4px 8px;
    bottom: 8px;
  }
  .status {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
  }
  .overlay {
    transition: none;
  }
}
