.trailer-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(3, 7, 18, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: trailer-backdrop-in .2s ease-out both;
}

.trailer-dialog {
  width: min(100%, 860px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(185, 165, 255, .2);
  border-radius: 25px;
  color: #f7f8fc;
  background: radial-gradient(circle at 100% 0, rgba(139, 92, 246, .2), transparent 34%), linear-gradient(150deg, #18223a, #0c1221 72%);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .045);
  animation: trailer-panel-in .27s cubic-bezier(.2, .8, .2, 1) both;
}

.trailer-dialog-header, .trailer-dialog-heading, .trailer-dialog-footer { display: flex; align-items: center; }
.trailer-dialog-header { justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.trailer-dialog-heading { min-width: 0; gap: 12px; }
.trailer-dialog-heading > div { min-width: 0; }
.trailer-dialog-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding-inline-start: 3px; border: 1px solid rgba(255, 75, 75, .33); border-radius: 15px; color: #ff6b6b; background: linear-gradient(145deg, rgba(255, 69, 69, .18), rgba(139, 92, 246, .13)); font-size: 17px; }
.trailer-dialog-eyebrow { display: block; margin-bottom: 4px; color: #aeb8cf; font-size: 10px; font-weight: 700; }
.trailer-dialog-header h2 { overflow: hidden; color: #fbfbff; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.trailer-dialog-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid rgba(210, 220, 242, .15); border-radius: 50%; color: #e5e9f3; background: rgba(255, 255, 255, .055); font: inherit; font-size: 25px; line-height: 1; transition: background .16s ease, transform .16s ease; }
.trailer-dialog-close:active { transform: scale(.94); background: rgba(255, 255, 255, .12); }
.trailer-dialog-player { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, .1); border-radius: 17px; background: #03050a; box-shadow: 0 14px 40px rgba(0, 0, 0, .34); }
.trailer-dialog-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-dialog-footer { justify-content: space-between; gap: 10px; padding: 13px 2px 0; }
.trailer-dialog-status { display: inline-flex; align-items: center; gap: 7px; color: #aeb8cf; font-size: 10px; }
.trailer-dialog-status i { width: 7px; height: 7px; border-radius: 50%; background: #55d6a3; box-shadow: 0 0 11px rgba(85, 214, 163, .65); }
.trailer-dialog-brand { color: #ff6b6b; font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.trailer-action-icon { display: grid; place-items: center; flex: none; width: 20px; height: 20px; padding-inline-start: 2px; border-radius: 7px; color: #ff7777; background: rgba(255, 85, 85, .14); font-size: 10px; }

@keyframes trailer-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes trailer-panel-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 599px) {
  .trailer-dialog-backdrop { align-items: center; padding-inline: 12px; }
  .trailer-dialog { padding: 13px; border-radius: 21px; }
  .trailer-dialog-header { margin-bottom: 12px; }
  .trailer-dialog-mark { width: 40px; height: 40px; border-radius: 13px; }
  .trailer-dialog-header h2 { font-size: 14px; }
  .trailer-dialog-player { border-radius: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .trailer-dialog-backdrop, .trailer-dialog { animation-duration: .01ms !important; }
}
