/* Cine Movie Engine – Streaming Design: title page banner */

/* the engine's own top part of the page is replaced by the banner */
html.cmes-detail .me-inline-header, html.cmes-detail .me-inline-actions, html.cmes-detail .me-inline-details,
html.cmes-detail .me-inline-sidebar, html.cmes-detail .movie-engine-movie-hero, html.cmes-detail #cmes-backdrop { display: none !important; }
/* the player waits out of sight until Watch Now */
html.cmes-detail:not(.cmes-watching) .me-inline-player-wrap,
html.cmes-detail:not(.cmes-watching) .me-inline-main > .movie-engine-player-section {
  position: absolute !important; left: -9999px !important; width: 960px !important; height: 540px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important;
}
html.cmes-detail .me-inline-grid { display: block !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
html.cmes-detail .me-inline-watch-page { padding-top: 0 !important; }
html.cmes-detail body.cmes.movie-engine-single #page > * { position: static; }
html.cmes-detail:not(.cmes-detail-ready) .movie-engine-single-movie-wrapper { opacity: 0; animation: cmesShow .3s ease 2.5s forwards; }

.cmes-dh { position: relative; height: 100vh; min-height: 600px; max-height: 1100px; overflow: hidden; background: var(--cmes-bg); color: #fff; font-family: var(--cmes-font); isolation: isolate; }
.cmes-dh-bg, .cmes-dh-tr, .cmes-dh-shade { position: absolute; inset: 0; }
.cmes-dh-bg { background: #111 center 20% / cover no-repeat; transform: scale(1.06); transition: opacity 1s ease; }
body.cmes-kenburns .cmes-dh.in .cmes-dh-bg { animation: cmesKen 24s ease-out both; }
.cmes-dh-tr { z-index: 1; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; overflow: hidden; }
.cmes-dh-tr iframe { position: absolute; left: 50%; top: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%) scale(1.36); border: 0; }
.cmes-dh.playing .cmes-dh-tr { opacity: 1; }
.cmes-dh-shade { z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--cmes-bg) 94%, transparent) 0%, color-mix(in srgb, var(--cmes-bg) 62%, transparent) 30%, transparent 64%),
    linear-gradient(0deg, var(--cmes-bg) 0%, color-mix(in srgb, var(--cmes-bg) 50%, transparent) 22%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 16%); }

.cmes-dh-in { position: absolute; z-index: 3; left: calc(var(--cmes-side) + 60px); bottom: 15vh; width: min(640px, 52vw); }
.cmes-dh-in > * { opacity: 0; transform: translateY(20px); }
.cmes-dh.in .cmes-dh-in > * { animation: cmesUp .8s var(--cmes-ease) both; }
.cmes-dh.in .cmes-dh-in > *:nth-child(2) { animation-delay: .07s; }
.cmes-dh.in .cmes-dh-in > *:nth-child(3) { animation-delay: .14s; }
.cmes-dh.in .cmes-dh-in > *:nth-child(4) { animation-delay: .2s; }
.cmes-dh.in .cmes-dh-in > *:nth-child(5) { animation-delay: .26s; }

.cmes-dh-title { margin: 0 0 22px !important; font: 900 clamp(44px, 6vw, 104px)/.92 var(--cmes-font) !important; letter-spacing: .03em !important; color: #fff !important; text-transform: uppercase; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
body:not(.cmes-title-upper) .cmes-dh-title { text-transform: none; letter-spacing: -.01em !important; }
.cmes-dh-logo { margin: 0 0 24px !important; }
.cmes-dh-logo img { max-width: min(520px, 100%); max-height: 180px; object-fit: contain; filter: drop-shadow(0 6px 30px rgba(0,0,0,.5)); }
.cmes-dh-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin-bottom: 18px; font: 700 15px/1 var(--cmes-font); color: rgba(255,255,255,.9); }
.cmes-dh-meta i { width: 4px; height: 4px; margin: 0 11px; border-radius: 50%; background: rgba(255,255,255,.45); }
.cmes-dh-meta .r { display: inline-flex; align-items: center; gap: 5px; }
.cmes-dh-meta .r svg { width: 15px; height: 15px; }
.cmes-dh-desc { margin: 0 0 18px !important; max-width: 580px; font: 400 16px/1.65 var(--cmes-font) !important; color: rgba(255,255,255,.72) !important;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cmes-dh-genres { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 34px; font: 700 15px/1 var(--cmes-font); color: rgba(255,255,255,.75); }
.cmes-dh-genres i { width: 1px; height: 15px; margin: 0 12px; background: rgba(255,255,255,.3); }
.cmes-dh-acts { display: flex; align-items: center; gap: 16px; }
.cmes-dh-play { display: inline-flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; text-align: left; }
.cmes-dh-play .o { width: 62px; height: 62px; padding: 19px; box-sizing: border-box; border-radius: 50%; background: #fff; color: #000; box-shadow: 0 10px 34px rgba(0,0,0,.4); transition: transform .35s var(--cmes-ease), background-color .2s; }
.cmes-dh-play:hover .o { transform: scale(1.08); }
.cmes-dh-play svg { width: 100%; height: 100%; display: block; }
.cmes-dh-play b { display: block; font: 800 18px/1.1 var(--cmes-font); }
.cmes-dh-play small { display: block; margin-top: 4px; font: 700 11px/1 var(--cmes-font); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.cmes-dh-round { width: 52px; height: 52px; padding: 14px; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .2s, transform .3s var(--cmes-ease); }
.cmes-dh-round svg { width: 100%; height: 100%; display: block; }
.cmes-dh-round:hover { background: rgba(255,255,255,.18); transform: scale(1.06); }
.cmes-dh-round.on { background: #fff; color: #000; }
.cmes-dh-ctl { position: absolute; z-index: 3; right: 56px; bottom: 15vh; display: flex; gap: 12px; opacity: 0; transition: opacity .5s; }
.cmes-dh.playing .cmes-dh-ctl, .cmes-dh-ctl:hover { opacity: 1; }
.cmes-dh-ctl button { width: 44px; height: 44px; padding: 12px; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .2s; }
.cmes-dh-ctl button:hover { background: rgba(255,255,255,.18); }
.cmes-dh-ctl svg { width: 100%; height: 100%; display: block; }
.cmes-dh.playing .cmes-dh-desc { -webkit-line-clamp: 2; }

.cmes-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 2147483000; padding: 12px 20px; border-radius: 999px; background: #fff; color: #000; font: 700 14px/1 var(--cmes-font); animation: cmesUp .4s var(--cmes-ease) both; transition: opacity .4s; }
.cmes-toast.out { opacity: 0; }

/* sections under the banner line up with it */
html.cmes-detail .me-inline-below, html.cmes-detail .movie-engine-single-movie-wrapper > .movie-engine-container-fluid:not(.me-inline-watch-page) { padding-left: 56px !important; padding-right: 0 !important; }
html.cmes-detail .me-inline-watch-page { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }

@media (max-width: 767px) {
  .cmes-dh { height: auto; min-height: 0; max-height: none; padding-top: 56vw; }
  .cmes-dh-bg, .cmes-dh-tr { bottom: auto; height: 78vw; }
  .cmes-dh-shade { background: linear-gradient(0deg, var(--cmes-bg) 45%, color-mix(in srgb, var(--cmes-bg) 40%, transparent) 70%, transparent 100%); }
  .cmes-dh-in { position: relative; left: 0; bottom: auto; width: auto; padding: 0 18px 28px; }
  .cmes-dh-title { font-size: 42px !important; }
  .cmes-dh-desc { font-size: 14px !important; -webkit-line-clamp: 3; }
  .cmes-dh-ctl { display: none; }
  html.cmes-detail .me-inline-below, html.cmes-detail .movie-engine-single-movie-wrapper > .movie-engine-container-fluid:not(.me-inline-watch-page) { padding-left: 16px !important; }
}

html.cmes-detail .movie-engine-single-movie-wrapper, html.cmes-detail .movie-engine-single-series-wrapper { overflow: visible !important; }

/* long titles: smaller type and at most three lines, so the banner never overflows */
.cmes-dh-title { max-width: min(860px, 62vw); overflow-wrap: break-word; }
.cmes-dh-title.cmes-dh-long { font-size: clamp(36px, 4.4vw, 76px) !important; line-height: .98 !important; }
.cmes-dh-title.cmes-dh-xlong { font-size: clamp(24px, 2.4vw, 40px) !important; line-height: 1.04 !important; letter-spacing: .01em !important; }
@media (max-width: 767px) {
  .cmes-dh-title { max-width: none; }
  .cmes-dh-title.cmes-dh-long { font-size: 34px !important; }
  .cmes-dh-title.cmes-dh-xlong { font-size: 27px !important; }
}
