.store-home .film-ready .film-stage {
  --replay-opening: url('https://tbgauto.com/studio-r1/poster-mobile.webp');
  --replay-eap: url('https://tbgauto.com/studio-r1/poster-eap-mobile.webp');
  --replay-elon: url('https://tbgauto.com/studio-r1/poster-elon-mobile.webp');
  --replay-journey: url('https://tbgauto.com/studio-r1/poster-journey-mobile.webp');
}
@media (min-width: 760px) {
  .store-home .film-ready .film-stage {
    --replay-opening: url('https://tbgauto.com/studio-r1/poster-wide.webp');
    --replay-eap: url('https://tbgauto.com/studio-r1/poster-eap-wide.webp');
    --replay-elon: url('https://tbgauto.com/studio-r1/poster-elon-wide.webp');
    --replay-journey: url('https://tbgauto.com/studio-r1/poster-journey-wide.webp');
  }
}
/* The opaque live WebGL canvas covers this existing poster. DOM replay can show
   the same chapter when it reconstructs the canvas without the original pixels. */
.store-home .film-ready .film-media {
  background: center / cover no-repeat var(--replay-opening);
}
.store-home .film-stage:has(.enhanced-copy[aria-hidden="false"]) .film-media { background-image: var(--replay-eap); }
.store-home .film-stage:has(.elon-copy[aria-hidden="false"]) .film-media { background-image: var(--replay-elon); }
.store-home .film-stage:has(.journey-copy[aria-hidden="false"]) .film-media { background-image: var(--replay-journey); }

.tbg-cookie-preferences {
  position: fixed;
  z-index: 2147483000;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  inline-size: min(440px, calc(100vw - 32px));
  max-block-size: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid #50565d;
  border-radius: 12px;
  background: #15181c;
  color: #fff;
  box-shadow: 0 8px 32px #0008;
  font: 400 14px/1.45 system-ui, sans-serif;
  text-align: start;
  color-scheme: dark;
}
.tbg-cookie-preferences[hidden] { display: none; }
.tbg-cookie-preferences h2 {
  margin: 0;
  color: inherit;
  font: 650 17px/1.25 system-ui, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.tbg-cookie-preferences p { margin: 8px 0; color: #e0e3e7; }
.tbg-cookie-preferences a {
  color: #e0e3e7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tbg-cookie-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-block-start: 12px;
}
.tbg-cookie-actions button {
  min-block-size: 44px;
  padding: 6px 10px;
  border: 1px solid #8d969f;
  border-radius: 6px;
  background: #24282e;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tbg-cookie-actions button:hover:enabled { background: #363c44; }
.tbg-cookie-actions button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #fff; }
.tbg-cookie-actions button:disabled { opacity: .6; cursor: default; }
.tbg-cookie-settings {
  justify-self: start;
  min-block-size: 44px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tbg-cookie-preferences :focus-visible,
.tbg-cookie-settings:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 480px) {
  .tbg-cookie-preferences {
    inset-inline-end: max(10px, env(safe-area-inset-right));
    inset-block-end: max(10px, env(safe-area-inset-bottom));
    inline-size: calc(100vw - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)));
    padding: 14px;
  }
}
