:root {
  --bg: #0a0f16;
  --panel: #121b26;
  --line: rgba(255,255,255,.14);
  --text: #eaf2ff;
  --muted: #9fb2cf;
  --accent: #47a3ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Segoe UI, Tahoma, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 10% -10%, #1c2f47 0%, transparent 60%), var(--bg);
}
.wrap {
  width: min(1200px, 94vw);
  margin: 18px auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
}
.wrap.single { grid-template-columns: 1fr; max-width: 760px; }
.panel {
  background: linear-gradient(180deg, rgba(18,27,38,.95), rgba(14,22,33,.95));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
h1,h2 { margin: 0 0 8px; }
.sub { margin: 0 0 12px; color: var(--muted); }
#camera {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #08101a;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line);
  background: #1c2b3c;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.btn.primary { background: var(--accent); color: #06131f; border-color: transparent; font-weight: 700; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.status { margin-top: 10px; font-size: 13px; color: var(--muted); min-height: 18px; }
.slideshow-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
select {
  margin-left: 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #172536;
  color: var(--text);
  padding: 6px;
}
.slide-frame {
  margin-top: 8px;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #060c14;
}
.slide-frame.fullscreen {
  height: calc(100vh - 110px);
  aspect-ratio: auto;
  margin-top: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
#slideImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 12px;
  text-align: center;
}
.meta { margin-top: 8px; color: var(--muted); font-size: 13px; }

.slideshow-fullscreen {
  min-height: 100vh;
  overflow: hidden;
}
.slideshow-root {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.slideshow-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.9);
}
.slideshow-root .meta {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.85);
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; text-align: center; }
}
