/* The Broken Tavern — Explainer Player chrome (Nov 29, 2026)
 * Companion to explainer-player.js. The accent colour is per-title
 * data (--xpl-accent, sampled from the book's cover palette); every
 * other value follows the site's existing modal language.
 * ICON LAW: all glyphs are real art (/art/icons). SIZE LAW: targets
 * are large — the open button is full-width, the big toggle is 76px,
 * the bar toggle 44px, seek track 14px tall. */

/* ── the cinematic play button (in the popup's text column) ── */
.xpl-slot { margin-top: 1.1rem; }
.xpl-open-btn {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  padding: .85rem 1.1rem; cursor: pointer; text-align: left;
  background: linear-gradient(160deg, rgba(0,0,0,.55), rgba(0,0,0,.3));
  border: 1px solid var(--xpl-accent, #c9a227); border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 22px -6px var(--xpl-accent, #c9a227);
  color: #f3ead2; transition: box-shadow .2s, transform .2s;
}
.xpl-open-btn:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 30px -2px var(--xpl-accent, #c9a227); transform: translateY(-1px); }
.xpl-open-btn[hidden] { display: none; }
.xpl-open-ico { width: 30px; height: 30px; flex: none; }
.xpl-open-txt {
  font-family: var(--ff-head, 'Cinzel', serif); font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; flex: 1;
}
.xpl-open-len {
  font-family: var(--ff-head, 'Cinzel', serif); font-size: .8rem;
  color: var(--xpl-accent, #c9a227); border: 1px solid var(--xpl-accent, #c9a227);
  border-radius: 999px; padding: .15rem .6rem; flex: none;
}

/* ── the theater panel (third column inside the popup) ── */
.modal.xpl-wide { max-width: 1180px; }
.modal-grid.xpl-open { grid-template-columns: 240px 1fr 440px; }
.xpl-theater {
  background: #05030a; border: 1px solid var(--xpl-accent, #c9a227);
  border-radius: 8px; overflow: hidden; align-self: start;
  box-shadow: 0 18px 50px rgba(0,0,0,.75), 0 0 34px -10px var(--xpl-accent, #c9a227);
  animation: xplIn .3s ease;
}
@keyframes xplIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.xpl-slate {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .8rem .9rem .7rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.045), transparent);
}
.xpl-slate-txt { flex: 1; min-width: 0; }
.xpl-slate-kicker {
  font-family: var(--ff-head, 'Cinzel', serif); font-size: .68rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--xpl-accent, #c9a227); margin: 0 0 .25rem;
}
.xpl-slate-title {
  font-family: var(--ff-display, 'Cinzel Decorative', serif); font-size: 1.06rem;
  color: #f3ead2; line-height: 1.25; margin: 0;
}
.xpl-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.xpl-close:hover { border-color: var(--xpl-accent, #c9a227); transform: rotate(90deg); }
.xpl-close img { width: 17px; height: 17px; }
.xpl-screen { position: relative; background: #000; }
.xpl-video { display: block; width: 100%; aspect-ratio: 16/9; background: #000; }
.xpl-big {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px;
  border-radius: 50%; cursor: pointer; border: 1px solid var(--xpl-accent, #c9a227);
  background: rgba(3,2,8,.66); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px -4px var(--xpl-accent, #c9a227); transition: opacity .25s, transform .2s;
}
.xpl-big:hover { transform: scale(1.06); }
.xpl-big img { width: 34px; height: 34px; }
.xpl-theater.xpl-playing .xpl-big { opacity: 0; pointer-events: none; }
.xpl-bar {
  display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem .75rem;
  background: linear-gradient(0deg, rgba(255,255,255,.04), transparent);
}
.xpl-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.xpl-toggle img { width: 19px; height: 19px; }
.xpl-track {
  flex: 1; height: 14px; border-radius: 999px; cursor: pointer; position: relative;
  background: rgba(255,255,255,.13); outline-offset: 3px;
}
.xpl-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: var(--xpl-accent, #c9a227);
  box-shadow: 0 0 12px -2px var(--xpl-accent, #c9a227);
}
.xpl-time {
  flex: none; font-family: var(--ff-head, 'Cinzel', serif); font-size: .82rem;
  letter-spacing: .08em; color: #d8cfb4; min-width: 86px; text-align: right;
}

/* ── stacking: below desktop widths the theater takes the full row ── */
@media (max-width: 1150px) {
  .modal-grid.xpl-open { grid-template-columns: 240px 1fr; }
  .xpl-theater { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .modal-grid.xpl-open { grid-template-columns: 1fr; }
  .xpl-big { width: 64px; height: 64px; }
  .xpl-time { min-width: 74px; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .xpl-theater { animation: none; }
  .xpl-open-btn, .xpl-big, .xpl-close { transition: none; }
}
