.masthead { grid-template-columns: minmax(0, 1fr) auto minmax(34px, 1fr); }
.collection-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; background: #eeece5; border-radius: 12px; }
.collection-tabs button { background: transparent; color: var(--muted); padding: 9px 18px; white-space: nowrap; }
.collection-tabs button[aria-selected=true] { color: #173e43; background: #fffdf8; box-shadow: 0 1px 4px #173e4310; }
.showtime-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 18px 0; }
.showtime-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.showtime-heading h1 { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.showtime-model { color: var(--muted); font-size: .8125rem; }
.showtime-heading .effort-label { font-size: .6875rem; }
.showtime-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.showtime-action { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; background: transparent; color: #6e8381; font-size: .75rem; padding: 8px 10px; white-space: nowrap; }
.showtime-action:hover { background: #eeece5; }
.showtime-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.showtime-fullscreen { color: #234c48; background: #e7eee7; }
.showtime-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -6px 0 14px; font-size: .75rem; color: var(--muted); }
.showtime-meta span { white-space: nowrap; }
.showtime-stage { position: relative; isolation: isolate; height: calc(max(420px, 100dvh - 178px) - var(--showtime-works-space, 0px)); border-radius: 20px; overflow: hidden; background: #d7e7df; border: 1px solid #173e4310; }
.showtime-stage iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #d7e7df; transform-origin: top left; }
.showtime-placeholder { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: #edf1e7; color: #6e8381; font-size: .875rem; }
.showtime-placeholder p { margin: 0; }
.showtime-placeholder a { text-decoration: underline; text-underline-offset: 4px; }
.showtime-status { margin: 0 0 12px; font-size: .8125rem; color: #9d4932; }
.showtime-exit { display: none; }
.showtime-stage:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; }
.showtime-stage:fullscreen .showtime-exit { display: block; position: absolute; z-index: 2; top: 14px; left: 50%; transform: translateX(-50%); background: #fffdf8e8; color: #234c48; box-shadow: 0 2px 12px #173e4320; }
.showtime-popover { position: fixed; inset: auto; margin: 0; padding: 18px; width: min(360px, calc(100vw - 32px)); color: inherit; border: 1px solid #173e4310; border-radius: 16px; background: #fffdf8; box-shadow: 0 16px 55px #173e4320; }
.showtime-popover h2 { margin: 0 0 12px; font-size: .875rem; font-weight: 600; }
.showtime-popover p { margin: 0; font-size: .875rem; line-height: 1.8; }
#showtime-display-panel { width: 210px; padding: 14px 0; }
#showtime-display-panel h2 { padding: 0 18px; }
.showtime-works { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.showtime-works button { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 6px 14px; text-align: left; min-width: 0; }
.showtime-work-title, .showtime-work-model { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.showtime-work-title { font-size: .8125rem; font-weight: 500; line-height: 1.3; }
.showtime-work-model { font-size: .6875rem; line-height: 1.3; color: #6e8381; }
.showtime-works button[aria-pressed=true] { background: #234c48; color: white; }
.showtime-works button[aria-pressed=true] .showtime-work-model { color: #d4e2dc; }
/* The picker sits above the stage and takes its space from it, so the stage still ends where it did. */
.showtime-works:not([hidden]) ~ .showtime-stage { --showtime-works-space: 54px; }
body.showtime-active footer { margin-top: 20px; }
@media (max-width: 1000px) { .masthead { column-gap: 14px; grid-template-columns: minmax(0, 1fr) auto 34px; } .collection-tabs button { padding-inline: 13px; } }
@media (max-width: 650px) {
  .masthead { grid-template-columns: minmax(0, 1fr) auto; row-gap: 14px; padding-bottom: 6px; }
  .collection-tabs { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .language-toggle { grid-row: 1; grid-column: 2; }
  .collection-tabs button { padding: 9px 17px; }
  .showtime-toolbar { padding: 18px 0 12px; gap: 10px; }
  .showtime-heading { gap: 8px; }
  .showtime-heading h1 { font-size: 1rem; }
  .showtime-model { font-size: .75rem; }
  .showtime-actions { width: 100%; gap: 2px; justify-content: space-between; }
  .showtime-action { padding: 7px 6px; font-size: .6875rem; gap: 4px; }
  .showtime-stage { height: calc(max(440px, 100dvh - 250px) - var(--showtime-works-space, 0px)); border-radius: 15px; }
  .showtime-works button { flex: 1 1 140px; padding-inline: 10px; }
  .showtime-work-model { font-size: .625rem; }
  .showtime-meta { gap: 6px 12px; margin-top: 0; }
}
