/* Film embeds reuse the public film page's title and action recipes.
   Layout dimensions match shared/promoEmbeds.ts. */
.film-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  height: 256px;
  padding: 18px 22px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid hsl(var(--foreground) / .14);
  border-radius: 14px;
  background: hsl(var(--background));
}
.film-art {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.film-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.film-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, hsl(var(--background) / .95), hsl(var(--background) / .78) 38%, hsl(var(--background) / .16) 78%),
    linear-gradient(0deg, hsl(var(--background) / .85), transparent 75%);
}
.film-brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 20px;
  text-shadow: 0 1px 8px #000;
}
.film-content {
  min-width: 0;
  width: 100%;
  max-width: 390px;
  margin-top: auto;
}
.film-banner .ds-cinema-title {
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0 0 6px;
  text-wrap: balance;
}
.film-banner .byline {
  color: hsl(var(--foreground) / .72);
  font-size: 11px;
  line-height: 14px;
  margin: 0 0 9px;
}
.film-banner .ds-cinema-synopsis {
  color: hsl(var(--foreground) / .8);
  font-size: 12px;
  line-height: 18px;
  margin: 0 0 12px;
  max-width: 350px;
  -webkit-line-clamp: 2;
}
.film-banner .film-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.film-banner .film-formats .ds-format {
  --format-h: 20px;
  --format-size: 10px;
}
.film-banner--formats .ds-cinema-synopsis { -webkit-line-clamp: 1; }
@media (max-width: 360px) {
  .film-banner--formats .ds-cinema-synopsis { display: none; }
}
.film-banner .film-cta {
  height: 40px!important;
  min-height: 40px!important;
  padding: 0 16px!important;
  font-size: 12px!important;
}
.film-banner--portrait .film-art { left: 45%; }
.film-banner--portrait .film-art img { object-position: center; }
.film-banner--plain { background: radial-gradient(ellipse at top right, #16313f, hsl(var(--background)) 75%); }
@media (max-width: 480px) {
  .film-banner { padding: 16px 18px; }
  .film-art img { object-position: 65% center; }
  .film-banner::after {
    background: linear-gradient(90deg, hsl(var(--background) / .94), hsl(var(--background) / .6)),
      linear-gradient(0deg, hsl(var(--background) / .85), transparent);
  }
  .film-banner .ds-cinema-title { font-size: 30px; }
  .film-banner .ds-cinema-synopsis { max-width: 300px; }
}
*{
  box-sizing:border-box
}
html,body{
  margin:0;
  width:100%;
  min-height:100%;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#f8fafc;
  background:transparent
}
body{
  padding:1px
}
.banner{
  display:flex;
  gap:24px;
  align-items:center;
  min-height:276px;
  padding:24px;
  border:1px solid #28303c;
  border-radius:16px;
  background:#0c1018;
  overflow:hidden
}
.banner--vidreno{
  background:radial-gradient(ellipse at 100% 0, #243c3c 0,transparent 70%),#0c1018
}
.content{
  min-width:0;
  flex:1
}
.brand{
  display:flex;
  align-items:center;
  gap:7px;
  font-weight:650;
  font-size:16px;
  letter-spacing:-.4px;
  margin-bottom:12px
}
.brand img{
  object-fit:contain
}
.eyebrow{
  font-size:11px;
  font-weight:450;
  color:#9ca9b8;
  letter-spacing:0;
  margin-left:12px
}
h1{
  font-size:clamp(22px,3.6vw,30px);
  line-height:1.15;
  letter-spacing:-.8px;
  margin:0 0 9px;
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere
}
.byline{
  font-size:12px;
  margin:0 0 6px;
  color:#c8d0da;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.description{
  font-size:13px;
  line-height:1.5;
  color:#aeb9c7;
  margin:0 0 16px;
  max-width:650px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere
}
.cta{
  display:inline-flex;
  align-items:center;
  gap:18px;
  background:#3fd3fd;
  color:#06151d;
  border-radius:7px;
  padding:11px 16px;
  text-decoration:none;
  font-size:13px;
  font-weight:650;
  line-height:1.2
}
.cta:hover{
  background:#86e4ff
}
.cta:focus-visible{
  outline:3px solid white;
  outline-offset:3px
}
@media(min-width:900px){
  .banner{
    padding:24px 32px
  }

}
@media(max-width:480px){
  .banner{
    gap:14px;
    padding:18px 16px;
    min-height:276px
  }
  .eyebrow{
    display:none
  }
  h1{
    font-size:22px
  }
  .brand{
    margin-bottom:10px
  }
  .description{
    font-size:12px;
    margin-bottom:13px
  }
  .cta{
    gap:10px;
    padding:10px 12px;
    font-size:12px
  }
}

.banner--vidreno .promo-headline { display: block; }
.promo-headline span { display: block; }
.banner--vidreno .promo-headline span:nth-child(2) {
  font-weight: 400;
  color: #65d7ef;
}

/* Saturated SDR is the baseline, including when scripting or HDR is unavailable. */
.banner--vidreno {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 100% 25%, #124857 0, #0d2030 36%, #090f18 76%);
  border-color: #29505e;
}
.banner--vidreno::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 480px;
  right: -100px;
  top: -110px;
  border: 1px solid #65d7ef;
  border-radius: 50%;
  transform: rotate(-30deg);
  box-shadow: 0 0 20px #23bde844, inset 0 0 20px #23bde822;
  pointer-events: none;
}
.banner--vidreno .content { position: relative; }
.cta, .film-banner .film-cta {
  background: #3bd4fc;
  color: #041b27;
  box-shadow: 0 0 18px #19bdec38;
}
.cta:hover, .film-banner .film-cta:hover { background: #5edfff; }
.promo-hdr {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: 2;
  pointer-events: none;
  dynamic-range-limit: no-limit;
}

/* Replace only successfully painted highlights, avoiding doubled antialiased text.
   Removing the overlay state immediately restores the original DOM on GPU loss. */
[data-hdr-state="enabled"] h1[data-hdr-painted="true"],
[data-hdr-state="enabled"] .brand img,
[data-hdr-state="enabled"] .film-brand img { opacity: 0; }
.banner--vidreno[data-hdr-state="enabled"]::before { border-color: transparent; }

@media (max-width: 600px) { .banner--vidreno::before { display: none; } }
