.sc-stage {
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.sc-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.sc-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f3f5;
}

.sc-dots {
  display: inline-flex;
  gap: 5px;
}

.sc-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6d6da;
}

.sc-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 3px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  background: #fff;
  color: #7a7a80;
  font: 9px var(--font-mono);
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7a7a80;
  font: 9px var(--font-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.sc-live b {
  font: inherit;
  font-weight: 400;
}

.sc-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c2c2c6;
}

.sc-frame.is-live .sc-live {
  color: #4d4d52;
}

.sc-frame.is-live .sc-live i {
  background: var(--accent);
}

.sc-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1200 / 840;
  background: #fff;
}

.sc-still-host {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 220ms ease;
}

.sc-frame.is-live .sc-still-host {
  opacity: 0;
}

.sc-scene {
  position: absolute;
  inset: 0;
}

.sc-scene > .wc-scene {
  width: 1200px;
  height: 840px;
  min-height: 840px;
  overflow: hidden;
  transform: scale(var(--sc-scale, 0.4));
  transform-origin: 0 0;
  contain: layout paint style;
}

.sc-live-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 840px;
  border: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transform: scale(var(--sc-scale, 0.4));
  transform-origin: 0 0;
  transition: opacity 260ms ease;
}

.sc-live-frame.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sc-ghost {
  position: fixed;
  z-index: 120;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  transform-origin: 0 0;
}

.sc-ghost > .wc-scene {
  width: 1200px;
  height: 840px;
  min-height: 840px;
  overflow: hidden;
  transform: scale(var(--sc-ghost-scale, 0.05));
  transform-origin: 0 0;
  contain: layout paint style;
}

.sc-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 18px;
  background: var(--sc-bg);
  color: var(--sc-ink);
}

.sc-fallback::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sc-accent);
  content: "";
}

.sc-fallback-mark {
  align-self: end;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.sc-fallback-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.sc-fallback-meta {
  margin-top: 2px;
  font: 10px var(--font-mono);
  opacity: 0.6;
}

.sc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.sc-foot-copy {
  min-width: 0;
}

.sc-kicker {
  color: var(--stage-muted);
  font: 10px var(--font-mono);
  letter-spacing: 0.12em;
}

.sc-name {
  margin-top: 4px;
  overflow: hidden;
  color: var(--stage-ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-name a {
  color: inherit;
  text-decoration: none;
}

.sc-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sc-en {
  margin-top: 3px;
  overflow: hidden;
  color: var(--stage-muted);
  font: 9.5px var(--font-mono);
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-film {
  display: flex;
  flex: none;
  gap: 5px;
}

.sc-thumb {
  position: relative;
  width: 56px;
  aspect-ratio: 1200 / 840;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #1a1a1e;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 180ms var(--ease-standard), transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.sc-thumb-view {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.sc-thumb-view > .wc-scene {
  width: 1200px;
  height: 840px;
  min-height: 840px;
  overflow: hidden;
  transform: scale(var(--sc-thumb-scale, 0.052));
  transform-origin: 0 0;
  contain: layout paint style;
}

.sc-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.sc-thumb[aria-pressed="true"] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent), 0 8px 18px rgba(0, 0, 0, 0.38);
  transform: translateY(-2px);
}

.sc-thumb:focus-visible {
  outline: 2px solid var(--stage-ink);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .sc-frame:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
  }
}

@media (max-width: 1080px) {
  .sc-stage {
    align-items: center;
    width: min(100%, 700px);
    min-height: 0;
    margin-inline: auto;
    aspect-ratio: auto;
  }

  .sc-frame,
  .sc-foot {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-frame,
  .sc-frame:hover,
  .sc-thumb {
    transition: none;
    transform: none;
  }

  .sc-still-host,
  .sc-live-frame {
    transition: none;
  }
}

:root[data-motion="reduced"] .sc-frame,
:root[data-motion="reduced"] .sc-frame:hover,
:root[data-motion="reduced"] .sc-thumb,
:root[data-motion="none"] .sc-frame,
:root[data-motion="none"] .sc-frame:hover,
:root[data-motion="none"] .sc-thumb {
  transition: none;
  transform: none;
}

:root[data-motion="reduced"] .sc-still-host,
:root[data-motion="reduced"] .sc-live-frame,
:root[data-motion="none"] .sc-still-host,
:root[data-motion="none"] .sc-live-frame {
  transition: none;
}
