/* Shared media has its own size and state rules on every learning surface. */
.official-film { margin: 20px 0 24px; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; scroll-margin-block: calc(var(--drawer-header-height,var(--header-height,76px)) + 18px) calc(var(--attempt-navigation-height,0px) + 18px); }
.official-film[data-film-state="error"] .film-stage { display: none; }
.film-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; }
.film-heading span,.film-credit { font-size: 13px; color: var(--muted); }
.film-stage { width: 100%; position: relative; display: grid; place-items: center; background: #17151d; aspect-ratio: 16 / 9; min-height: 120px; max-height: max(120px,calc(100dvh - var(--drawer-header-height,var(--header-height,76px)) - var(--attempt-navigation-height,0px) - 72px)); }
.film-stage video { display: block; width: 100%; height: 100%; min-height: 0; max-height: inherit; object-fit: contain; }
.film-stage [hidden] { display: none; }
.film-status { margin: 0; padding: 16px; font-size: 14px; color: #fff; text-align: center; }
.film-stage video:not([hidden]) + .film-status { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; background: #17151d80; }
.film-stage video:not([hidden]) + .film-status[hidden] { display: none; }
.official-film .film-credit { margin: 10px 16px; line-height: 1.65; }
.film-help { margin: 8px 16px 12px; font-size: 13px; }
.film-help > summary { cursor: pointer; min-height: 44px; display: list-item; padding: 10px 0; }
.film-help .actions { padding: 6px 0; gap: 12px 20px; }
.film-error { padding: 12px 16px; background: #fff8ee; }
.film-error p { margin: 0 0 10px; }
.film-source-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
@media(max-width:600px) { .film-heading { padding: 10px 12px; } .film-help { margin-inline:12px; } .official-film .film-credit { margin-inline:12px; } }
