.md-film-preview,
.md-film-dialog {
  --md-navy: #071a2f;
  --md-yellow: #ffb21c;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}
.md-film-preview *, .md-film-dialog * { box-sizing: border-box; }
.md-film-preview svg, .md-film-dialog svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.md-film-preview button, .md-film-dialog button { font: inherit; cursor: pointer; }
.md-film-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.md-film-eyebrow > span:first-child { display: flex; align-items: center; gap: 9px; color: #d1deea; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.md-film-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #ffb21c; box-shadow: 0 0 0 4px #ffb21c15; }
.md-film-eyebrow > span:last-child { color: #a9bdce; font-size: 11px; }
.md-film-poster { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; overflow: hidden; border: 1px solid #c7dced38; border-radius: 20px; color: #fff; background: #0b2744; text-align: left; box-shadow: 0 28px 75px #0004, 0 0 0 7px #ffffff03; }
.md-film-poster picture { display: block; width: 100%; height: 100%; }
.md-film-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.md-film-poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #020e1d38, transparent 35%, #020e1d0d 57%, #020e1dbd); }
.md-film-poster-label { position: absolute; top: 21px; left: 23px; padding: 6px 9px; border: 1px solid #ffffff24; border-radius: 5px; color: #d8e7f3; background: #071a2f99; font-size: 8px; font-weight: 800; letter-spacing: .13em; }
.md-film-poster-bottom { position: absolute; right: 24px; bottom: 25px; left: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.md-film-trigger { display: flex; align-items: center; gap: 13px; }
.md-film-play-icon { display: grid; width: 54px; height: 54px; flex-shrink: 0; place-items: center; border: 1px solid #ffffff28; border-radius: 50%; color: #071a2f; background: #ffb21c; box-shadow: 0 7px 30px #0003; transition: background .18s, transform .18s; }
.md-film-play-icon svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; stroke-width: 0; }
.md-film-trigger > span:last-child { display: grid; gap: 5px; }
.md-film-trigger strong { font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.md-film-trigger small { color: #c6d8e7; font-size: 10px; }
.md-film-length { padding: 6px 8px; border: 1px solid #ffffff26; border-radius: 5px; color: #e1ebf3; background: #06182abd; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-film-poster:hover .md-film-play-icon { transform: scale(1.06); background: #ffc34e; }
.md-film-preview-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #9fb6ca; font-size: 10px; line-height: 1.6; }
.md-film-preview-note > span:last-child { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.md-film-preview-note svg { width: 14px; height: 14px; }
.md-film-dialog { width: min(1120px, calc(100% - 40px)); max-width: none; height: min(900px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #bfd4e52d; border-radius: 20px; background: #071a2f; box-shadow: 0 45px 120px #0009; }
.md-film-dialog::backdrop { background: #020b15ed; backdrop-filter: blur(9px); }
.md-film-dialog-inner { display: flex; flex-direction: column; gap: 18px; height: 100%; min-height: 0; padding: 26px; }
.md-film-header { display: flex; flex-shrink: 0; justify-content: space-between; align-items: flex-start; gap: 22px; }
.md-film-kicker { color: #ffbc3d; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.md-film-header h2 { margin: 9px 0 0; color: #fff; font-family: Manrope, sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
.md-film-header p { margin: 10px 0 0; color: #9db5c9; font-size: 11px; line-height: 1.6; }
.md-film-close { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; border: 1px solid #a5bdd42e; border-radius: 8px; color: #cad8e3; background: #ffffff05; }
.md-film-close:hover { background: #ffffff12; }
.md-film-screen { position: relative; display: flex; flex: 1; justify-content: center; align-items: center; min-height: 0; overflow: hidden; border: 1px solid #ffffff1c; border-radius: 12px; background: #020a13; }
.md-film-video { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; background: #020a13; }
.md-film-error { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; padding: 25px; color: #d5e2ed; background: #071a2fef; text-align: center; }
.md-film-error[hidden] { display: none; }
.md-film-error p { max-width: 340px; margin: 0; font-size: 14px; line-height: 1.6; }
.md-film-error button { min-height: 44px; padding: 10px 17px; border: 1px solid #ffffff38; border-radius: 7px; color: #fff; background: #ffffff0e; font-size: 12px; }
.md-film-transcript { flex-shrink: 0; padding: 0 2px; color: #a8bfd1; font-size: 11px; line-height: 1.6; }
.md-film-transcript summary { width: fit-content; min-height: 28px; cursor: pointer; }
.md-film-transcript > div { max-height: 130px; padding-right: 13px; overflow-y: auto; overscroll-behavior: contain; color: #c7d6e2; }
.md-film-transcript p { margin: 0 0 10px; }
.md-film-transcript-note { color: #819eb5; font-size: 10px; }
.md-film-footer { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; gap: 20px; padding-top: 17px; border-top: 1px solid #a5bed523; }
.md-film-footer p { margin: 0; color: #8ea9be; font-size: 11px; line-height: 1.5; }
.md-film-cta { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 46px; padding: 12px 19px; border-radius: 8px; color: #071a2f; background: #ffb21c; font-size: 12px; font-weight: 800; text-align: center; text-decoration: none; transition: background .18s; }
.md-film-cta:hover { background: #ffc34e; }
.md-film-cta svg { width: 17px; height: 17px; }
.md-film-preview button:focus-visible, .md-film-dialog button:focus-visible, .md-film-dialog a:focus-visible, .md-film-transcript summary:focus-visible, .md-film-video:focus-visible { outline: 2px solid #ffcf70; outline-offset: 4px; }
@media (max-width: 640px) {
  .md-film-poster { aspect-ratio: 9/16; border-radius: 17px; }
  .md-film-poster-label { top: 19px; left: 19px; }
  .md-film-poster-bottom { right: 19px; bottom: 24px; left: 19px; }
  .md-film-trigger { gap: 10px; }
  .md-film-play-icon { width: 46px; height: 46px; }
  .md-film-trigger strong { font-size: 18px; }
  .md-film-trigger small { max-width: 170px; font-size: 9px; line-height: 1.5; }
  .md-film-length { padding: 5px 7px; font-size: 9px; }
  .md-film-preview-note { align-items: flex-start; font-size: 9px; }
  .md-film-dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 15px; }
  .md-film-dialog-inner { gap: 12px; padding: 15px 13px; }
  .md-film-header { gap: 10px; }
  .md-film-header h2 { font-size: 22px; }
  .md-film-header p { font-size: 10px; }
  .md-film-kicker { font-size: 8px; }
  .md-film-close { width: 44px; height: 44px; }
  .md-film-screen { border-radius: 9px; }
  .md-film-footer { display: block; padding-top: 12px; }
  .md-film-footer p { display: none; }
  .md-film-cta { display: flex; width: 100%; }
  .md-film-transcript > div { max-height: 115px; }
}
@media (max-height: 540px) {
  .md-film-dialog { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .md-film-dialog-inner { gap: 9px; padding: 10px 17px; }
  .md-film-header { align-items: center; }
  .md-film-header h2 { margin: 0; font-size: 21px; }
  .md-film-header p, .md-film-kicker { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .md-film-footer { padding-top: 9px; }
  .md-film-footer p { display: none; }
  .md-film-transcript summary { min-height: 24px; font-size: 10px; }
  .md-film-transcript > div { max-height: 70px; }
  .md-film-cta { min-height: 42px; padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-film-preview *, .md-film-dialog * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
