/* ==========================================================================
   slides.faqih.id — gaya khusus halaman slide
   Token, sidebar, bilah atas, dan tombol ada di shared/chrome.css (dipakai
   bersama course.faqih.id). File ini dimuat sesudahnya.
   ========================================================================== */

/* --- Popup pintasan ------------------------------------------------------- */

.shortcut-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  flex-shrink: 0;
  transition: color 0.15s;
}

.shortcut-btn:hover {
  color: var(--text);
}

.shortcut-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.sheet {
  position: fixed;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--elevated);
  color: var(--text);
  padding: 18px 18px 14px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.24);
}

/* Bening: popup ini menempel pada tombolnya, bukan dialog di tengah layar */
.sheet::backdrop {
  background: transparent;
}

.sheet h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.sheet ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.sheet li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.sheet li:last-child {
  border-bottom: 0;
}

.sheet li span {
  color: var(--secondary);
}

.sheet kbd {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
}

.sheet .btn {
  width: 100%;
  justify-content: center;
}

/* Varian dialog di tengah layar (bukan menempel tombol), dipakai untuk
   prompt password. */
.sheet.center {
  inset: 0;
  margin: auto;
  width: min(320px, calc(100vw - 32px));
}

.sheet.center::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.sheet-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--secondary);
}

#passwordForm .search {
  margin-bottom: 10px;
}

.sheet-error {
  margin: -2px 0 10px;
  font-size: 12.5px;
  color: var(--danger);
}

/* --- Panggung slide ------------------------------------------------------- */

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 0;
  background: var(--bg);
}

/* Kotaknya harus persis 16:9 supaya player Google mengisinya penuh. Dengan
   border-box, border 1px akan memakan kotak itu dan rasionya meleset. */
.frame {
  box-sizing: content-box;
  border: 1px solid var(--border);
  background: var(--elevated);
  overflow: hidden;
  line-height: 0;
}

.frame iframe {
  border: 0;
  display: block;
}

.stage:fullscreen {
  padding: 0;
  background: var(--bg);
}

.stage:fullscreen .frame {
  border: 0;
}

.locked-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  text-align: center;
}

.locked-panel[hidden] {
  display: none;
}

.locked-panel svg {
  width: 34px;
  height: 34px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.4;
}

.locked-panel p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Responsif ------------------------------------------------------------ */

@media (max-width: 720px) {
  .stage {
    padding: 10px;
  }
}
