/* Standalone Film Viewer — Full-Bleed Screening Room + Docked Right Details Bar */
.viewer-body {
  height: 100dvh;
  width: 100vw;
  margin: 0;
  overflow: hidden;
  background-color: #000000;
  color: var(--text-light);
}

.viewer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 330px);
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

/* =========================================================
   LEFT PANE — FULL-BLEED VIDEO THEATER (~75–77% WIDTH)
   ========================================================= */
.viewer-theater {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  overflow: hidden;
}

.viewer-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 7px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.viewer-back:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.viewer-back-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
}

.viewer-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
}

.viewer-stage img,
.viewer-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #000000;
}

.viewer-placeholder-banner {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: rgba(10, 10, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(247, 245, 238, 0.86);
}

/* =========================================================
   RIGHT PANE — DOCKED DETAILS BAR (~23–25% WIDTH)
   ========================================================= */
.viewer-slate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  min-height: 0;
  padding: 26px 22px 24px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(239, 96, 30, 0.12), transparent 45%),
    #0c0c0e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.slate-top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slate-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slate-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slate-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.slate-title {
  margin: 0;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
}

.slate-subtitle {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-light-muted);
}

.slate-logline {
  margin: 8px 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: rgba(247, 245, 238, 0.78);
}

.slate-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.slate-details {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slate-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slate-label {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-subtle);
}

.slate-pills {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slate-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.79rem;
  font-weight: 450;
  color: var(--text-light);
  line-height: 1.25;
}

.slate-empty {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-light-subtle);
}

.slate-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slate-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.slate-spec-val {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-light);
}

.viewer-copy-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  font-weight: 500;
  color: #ffffff;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.viewer-copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.viewer-copy-btn svg {
  width: 15px;
  height: 15px;
}

/* =========================================================
   MOBILE / NARROW VIEWPORTS (<= 860px)
   ========================================================= */
@media (max-width: 860px) {
  .viewer-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
  }

  .viewer-shell[data-aspect="16:9"] .viewer-theater {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .viewer-shell[data-aspect="9:16"] .viewer-theater {
    width: 100%;
    height: 44dvh;
  }

  .viewer-slate {
    height: 100%;
    padding: 16px var(--gutter) 16px;
    gap: 14px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .slate-top {
    gap: 12px;
  }

  .slate-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .slate-footer {
    gap: 12px;
    padding-top: 12px;
  }

  .viewer-placeholder-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
