/* Scoped entirely to the optional Marhaba Dubai Time add-on. */
.cinema.mdt-time-on .hero-backdrop > .photo-frame,
.cinema.mdt-time-on .hero-backdrop > .hero-video,
.cinema.mdt-time-on .hero-backdrop > video:not(.mdt-frame){opacity:0!important;visibility:hidden!important}
.cinema .hero-backdrop .mdt-frame-wrap{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .8s ease;background:#0b111b}
.cinema.mdt-time-on .hero-backdrop .mdt-frame-wrap{opacity:1}
.cinema .hero-backdrop .mdt-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition:opacity 2.5s ease;display:block;transform:none!important;animation:none!important}
.cinema .hero-backdrop .mdt-frame.mdt-visible{opacity:1}
.cinema .hero-backdrop .photo-scrim{z-index:1;pointer-events:none}
.mdt-ui{position:absolute;left:5%;top:127px;right:auto;z-index:11;display:flex;align-items:center;gap:7px;flex-wrap:wrap;max-width:calc(100% - 10%);font:500 11px/1.35 'DM Sans',Arial,sans-serif;letter-spacing:0;color:#f6f3e9}
.mdt-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:rgba(5,16,27,.77);border:1px solid rgba(217,183,118,.45);border-radius:8px;padding:7px 10px;backdrop-filter:blur(8px);box-shadow:0 4px 20px #0003}
.mdt-status strong{color:#f4d497;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mdt-status span{white-space:nowrap}
.mdt-switch{display:flex;gap:3px;background:rgba(5,16,27,.77);border:1px solid rgba(217,183,118,.45);border-radius:8px;padding:3px}
.mdt-switch button{width:auto!important;min-width:0!important;min-height:0!important;padding:6px 9px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#f5e9d0!important;font:600 11px/1.4 Arial,sans-serif!important;box-shadow:none!important;transform:none!important;letter-spacing:0!important}
.mdt-switch button[aria-pressed="true"]{background:#d9b776!important;color:#16202a!important}
.mdt-switch button:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:900px){.mdt-ui{top:105px;left:6%;max-width:88%;gap:5px}.mdt-status{padding:5px 7px;font-size:10px}.mdt-status strong{font-size:11px}.mdt-switch button{font-size:10px!important;padding:5px 7px!important}}
@media(max-width:540px){.mdt-ui{top:96px;left:5%;max-width:90%;gap:4px}.mdt-status{gap:5px;font-size:9px}.mdt-status strong{font-size:10px}.mdt-switch button{font-size:9px!important;padding:5px 7px!important}}
@media(prefers-reduced-motion:reduce){.mdt-frame,.mdt-frame-wrap{transition:none!important}}

/* Test control: displayed only to logged-in staging administrators. */
.mdt-switch .mdt-demo-button{border-left:1px solid #d9b77666!important;color:#ffe3a5!important}
.mdt-switch .mdt-demo-button[aria-pressed=true]{background:#674e27!important;color:#fff!important}

/* v0.3: compact left-side controls and a separate continuously playing hyperlapse mode. */
.cinema .hero-backdrop .mdt-loop-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block;opacity:0;visibility:hidden;transition:opacity .7s ease;pointer-events:none;transform:none!important;animation:none!important}
.cinema.mdt-loop-on .hero-backdrop .mdt-loop-video{opacity:1;visibility:visible}
.cinema.mdt-loop-on .hero-backdrop .mdt-frame{opacity:0!important}
.mdt-ui{left:5%!important;right:auto!important;justify-content:flex-start;max-width:min(780px,90%);}
.mdt-switch .mdt-loop-button{border-left:1px solid #d9b77666!important;color:#ffe3a5!important;white-space:nowrap}
.mdt-switch .mdt-loop-button[aria-pressed="true"]{background:#d9b776!important;color:#16202a!important}
.mdt-status,.mdt-switch{max-width:100%}
@media(max-width:900px){.mdt-ui{left:6%!important;right:auto!important;max-width:88%;}}
@media(max-width:540px){.mdt-ui{left:5%!important;right:auto!important;max-width:90%;}.mdt-switch{flex-wrap:wrap}.mdt-switch .mdt-loop-button{border-left:0!important;border-top:1px solid #d9b77666!important}}

/* v0.4: small edge tab, slide-out on pointer hover, click/touch and keyboard. */
.mdt-ui{display:block!important;position:absolute!important;top:124px!important;left:5%!important;right:auto!important;width:auto!important;max-width:calc(100% - 10%)!important;pointer-events:none;z-index:110!important}
.mdt-status{display:inline-flex;pointer-events:auto}
.mdt-drawer-host{position:fixed;left:0;top:45%;z-index:111;display:flex;align-items:center;pointer-events:auto;font:500 12px/1.3 'DM Sans',Arial,sans-serif}
.mdt-edge-tab{background:#d9b776!important;color:#122032!important;border:1px solid #f4dca9!important;border-left:0!important;border-radius:0 9px 9px 0!important;writing-mode:vertical-rl;transform:none!important;min-width:30px!important;min-height:98px!important;padding:12px 7px!important;box-shadow:2px 5px 16px #0007!important;font:700 11px Arial,sans-serif!important;letter-spacing:.04em;cursor:pointer;position:relative;z-index:2}
.mdt-edge-tab:focus-visible{outline:3px solid white!important;outline-offset:3px!important}
.mdt-drawer{position:absolute;left:100%;top:50%;transform:translate(-16px,-50%);opacity:0;visibility:hidden;pointer-events:none;transition:transform .24s ease,opacity .24s ease,visibility .24s;min-width:170px;max-width:min(240px,calc(100vw - 55px));background:rgba(8,20,32,.96);border:1px solid #d9b77688;border-radius:0 12px 12px 0;padding:12px;box-shadow:10px 14px 32px #0008;backdrop-filter:blur(10px)}
.mdt-drawer-host:hover .mdt-drawer,.mdt-drawer-host:focus-within .mdt-drawer,.mdt-drawer-host.mdt-open .mdt-drawer{transform:translate(0,-50%);opacity:1;visibility:visible;pointer-events:auto}
.mdt-drawer-title{font-size:11px!important;color:#e7c37d!important;letter-spacing:.08em;margin-bottom:9px}
.mdt-drawer .mdt-switch{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%;border:0!important;background:transparent!important;gap:6px!important;padding:0!important}
.mdt-drawer .mdt-switch button{display:block!important;text-align:left!important;padding:9px 10px!important;white-space:normal!important;width:100%!important;border:1px solid #d9b77650!important;border-radius:6px!important;min-height:35px!important;font-size:11px!important}
.mdt-drawer .mdt-switch button[aria-pressed=true]{background:#d9b776!important;color:#152433!important}
.mdt-drawer .mdt-switch .mdt-demo-button,.mdt-drawer .mdt-switch .mdt-loop-button{border:1px solid #d9b77650!important}
@media(max-width:900px){.mdt-ui{top:100px!important;left:6%!important}.mdt-drawer-host{top:50%}}
@media(max-width:540px){.mdt-ui{top:92px!important;left:5%!important;max-width:90%!important}.mdt-edge-tab{min-width:28px!important;min-height:86px!important;font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.mdt-drawer{transition:none!important}}

/* v0.5 - left-edge hover drawer with compact clock/weather and continuous play */
body .mdt-drawer-host{position:fixed!important;left:0!important;top:43%!important;z-index:2147482000!important;display:flex!important;align-items:center!important;pointer-events:auto!important}
body .mdt-edge-tab{writing-mode:vertical-rl!important;white-space:nowrap!important;min-height:100px!important;cursor:pointer!important}
body .mdt-drawer{width:214px!important;min-width:214px!important;max-width:calc(100vw - 48px)!important;overflow:visible!important}
body .mdt-drawer .mdt-status{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4px 8px!important;padding:9px!important;margin-bottom:11px!important;font-size:11px!important}
body .mdt-drawer .mdt-status strong{font-size:17px!important;grid-column:1/-1!important;color:#f4d497!important}
body .mdt-drawer .mdt-status span[data-mdt-weather]{grid-column:1/-1!important;color:#e3d5b7!important}
body .mdt-drawer .mdt-status span[data-mdt-date]{grid-column:1/-1!important}
body .mdt-drawer .mdt-switch{gap:6px!important}
body .mdt-mode-note{font:400 10px/1.4 Arial,sans-serif!important;color:#d6ccbd!important;margin-top:9px!important}
body .mdt-drawer .mdt-switch .mdt-loop-button{display:block!important;color:#ffe3a5!important}
body .mdt-drawer .mdt-switch .mdt-loop-button[aria-pressed="true"]{color:#152433!important}
@media(max-width:540px){body .mdt-drawer-host{top:48%!important}body .mdt-drawer{width:206px!important;min-width:206px!important}}

/* v0.6: ONLY the theme selector is hidden in the left-edge sliding drawer.
   Clock, small date and weather remain independently visible on the left. */
body .mdt-mini-status{position:absolute!important;top:150px!important;left:5%!important;right:auto!important;z-index:110!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px 8px!important;max-width:min(405px,90vw)!important;padding:5px 9px!important;border:1px solid rgba(217,183,118,.45)!important;border-radius:8px!important;background:rgba(6,16,28,.78)!important;color:#f4ead6!important;font:500 10px/1.45 Arial,sans-serif!important;letter-spacing:0!important;box-shadow:0 3px 14px #0004!important;backdrop-filter:blur(5px)}
body .mdt-mini-status .mdt-mini-city{color:#e7c37d!important;font-size:9px!important;font-weight:700!important;white-space:nowrap!important}
body .mdt-mini-status strong{font-size:12px!important;font-weight:700!important;color:#f4d497!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
body .mdt-mini-status [data-mdt-date],body .mdt-mini-status .mdt-mini-weather{font-size:10px!important;white-space:nowrap!important}
body .mdt-mini-status [data-mdt-weather-icon]{color:#e7c37d!important}
body .mdt-drawer .mdt-status{display:none!important}
body .mdt-edge-tab{font-size:10px!important;min-height:76px!important;padding:10px 6px!important}
body .mdt-drawer{width:205px!important;min-width:205px!important}
@media(max-width:900px){body .mdt-mini-status{top:112px!important;left:5%!important;max-width:90vw!important}}
@media(max-width:540px){body .mdt-mini-status{top:105px!important;left:4%!important;gap:3px 6px!important;padding:5px 7px!important;max-width:92vw!important;font-size:9px!important}body .mdt-mini-status strong{font-size:11px!important}body .mdt-mini-status .mdt-mini-city{font-size:8px!important}body .mdt-mini-status [data-mdt-date],body .mdt-mini-status .mdt-mini-weather{font-size:9px!important}}

/* v0.7: thinner hidden edge tab; slightly larger always-visible clock/weather. */
body .mdt-edge-tab{min-width:22px!important;min-height:61px!important;padding:8px 3px!important;font-size:9px!important;letter-spacing:0!important;border-radius:0 6px 6px 0!important;box-shadow:2px 3px 10px #0006!important}
body .mdt-drawer-host{top:44%!important}
body .mdt-drawer{width:196px!important;min-width:196px!important;padding:10px!important}
body .mdt-drawer-title{font-size:10px!important;margin-bottom:7px!important}
body .mdt-drawer .mdt-switch button{font-size:10px!important;min-height:32px!important;padding:7px 8px!important}
body .mdt-mini-status{font-size:11px!important;gap:5px 9px!important;padding:7px 11px!important;max-width:min(460px,91vw)!important}
body .mdt-mini-status .mdt-mini-city{font-size:10px!important}
body .mdt-mini-status strong{font-size:15px!important;line-height:1.2!important}
body .mdt-mini-status [data-mdt-date],body .mdt-mini-status .mdt-mini-weather{font-size:11px!important}
body .mdt-mini-status [data-mdt-weather-icon]{font-size:13px!important}
@media(max-width:900px){body .mdt-mini-status{top:112px!important}}
@media(max-width:540px){body .mdt-mini-status{top:105px!important;left:4%!important;gap:4px 7px!important;padding:6px 8px!important;max-width:92vw!important}body .mdt-mini-status strong{font-size:13px!important}body .mdt-mini-status .mdt-mini-city{font-size:9px!important}body .mdt-mini-status [data-mdt-date],body .mdt-mini-status .mdt-mini-weather{font-size:10px!important}body .mdt-drawer{width:190px!important;min-width:190px!important}body .mdt-edge-tab{min-width:21px!important;min-height:57px!important;padding:7px 3px!important;font-size:9px!important}}

/* v0.8: retain the source MP4's original colour and reduce the heavy dark
   scrim ONLY while Time Theme is selected. The original theme is unaffected. */
.cinema.mdt-time-on .hero-backdrop .mdt-frame,
.cinema.mdt-time-on .hero-backdrop .mdt-loop-video {
  filter:none!important; mix-blend-mode:normal!important;
}
.cinema.mdt-time-on .hero-backdrop .photo-scrim {
  background:linear-gradient(90deg,rgba(4,11,19,.75) 0%,rgba(4,11,19,.49) 40%,rgba(4,11,19,.08) 77%,rgba(4,11,19,.04) 100%),
             linear-gradient(0deg,rgba(4,11,19,.22),transparent 30%)!important;
}
@media (max-width:900px){
  .cinema.mdt-time-on .hero-backdrop .photo-scrim {
    background:linear-gradient(180deg,rgba(4,11,19,.46),rgba(4,11,19,.5) 45%,rgba(4,11,19,.3))!important;
  }
}

/* v0.9 - independent upper-right live clock/weather card, same as reference;
   only three controls in the hidden left-edge theme drawer. */
body .cinema .mdt-mini-status {
  position:absolute!important; left:auto!important; right:5%!important;
  top:108px!important; width:228px!important; max-width:228px!important;
  display:flex!important; flex-direction:column!important; flex-wrap:nowrap!important;
  align-items:stretch!important; gap:3px!important;
  padding:12px 14px!important; border-radius:13px!important;
  background:rgba(14,25,39,.94)!important;
  border:1px solid rgba(217,183,118,.55)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.25)!important;
  line-height:1.35!important; pointer-events:none!important;
  z-index:105!important; backdrop-filter:blur(8px)!important;
}
body .cinema .mdt-mini-status .mdt-mini-city{font:600 10px/1.4 Arial,sans-serif!important;letter-spacing:.08em!important;color:#e5bd70!important}
body .cinema .mdt-mini-status strong{font:700 25px/1.15 Arial,sans-serif!important;color:#fff!important;letter-spacing:-.02em!important}
body .cinema .mdt-mini-foot{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;white-space:nowrap!important}
body .cinema .mdt-mini-status [data-mdt-date]{font:500 10px/1.3 Arial,sans-serif!important;color:#e7eaf2!important}
body .cinema .mdt-mini-status .mdt-mini-weather{font:500 10px/1.3 Arial,sans-serif!important;color:#e8c47d!important;white-space:nowrap!important}
body .cinema .mdt-mini-status [data-mdt-weather-icon]{font-size:11px!important}
body .mdt-drawer-title,body .mdt-mode-note{display:none!important}
body .mdt-drawer{width:168px!important;min-width:168px!important;padding:9px!important}
body .mdt-drawer .mdt-switch{display:flex!important;flex-direction:column!important;gap:6px!important}
body .mdt-drawer .mdt-switch button{width:100%!important;text-align:left!important;font-size:11px!important}
@media(max-width:900px){body .cinema .mdt-mini-status{top:95px!important;right:5%!important;width:205px!important;max-width:205px!important;padding:10px 11px!important}body .cinema .mdt-mini-status strong{font-size:22px!important}}
@media(max-width:540px){body .cinema .mdt-mini-status{top:85px!important;right:4%!important;width:174px!important;max-width:174px!important;padding:8px 10px!important}body .cinema .mdt-mini-status strong{font-size:19px!important}body .cinema .mdt-mini-status .mdt-mini-city{font-size:8px!important}body .cinema .mdt-mini-status [data-mdt-date],body .cinema .mdt-mini-status .mdt-mini-weather{font-size:8px!important}body .mdt-drawer{width:168px!important;min-width:168px!important}}


/* v1.0 — user-requested left-side clock and neutral (non-blue) cinematic background.
   Only affects the optional add-on. Does not modify the Marhaba Gold theme. */
body .cinema .mdt-mini-status {
  left:5%!important;
  right:auto!important;
  top:124px!important;
  width:228px!important;
  max-width:min(228px,90vw)!important;
  background:rgba(15,16,18,.94)!important;
  border-color:rgba(217,183,118,.60)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.24)!important;
}
/* Use charcoal, not navy blue, for the optional controls. */
body .mdt-drawer {
  background:rgba(15,16,18,.97)!important;
  border-color:rgba(217,183,118,.60)!important;
  box-shadow:10px 14px 32px rgba(0,0,0,.5)!important;
}
body .mdt-drawer .mdt-switch button {
  background:rgba(20,20,20,.96)!important;
  color:#f4ead8!important;
  border-color:rgba(217,183,118,.55)!important;
  box-shadow:none!important;
}
body .mdt-drawer .mdt-switch button[aria-pressed="true"] {
  background:#d9b776!important;
  color:#171510!important;
}
body .mdt-edge-tab { color:#171510!important; background:#d9b776!important; box-shadow:2px 3px 10px rgba(0,0,0,.4)!important; }
/* Preserve the video’s native colour, without cool-toned filters/overlays. */
body .cinema.mdt-time-on .hero-backdrop .mdt-frame-wrap { background:#101010!important; }
body .cinema.mdt-time-on .hero-backdrop .mdt-frame,
body .cinema.mdt-time-on .hero-backdrop .mdt-loop-video {
  filter:none!important;
  mix-blend-mode:normal!important;
}
body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
  background:linear-gradient(90deg,
    rgba(10,10,10,.72) 0%,
    rgba(10,10,10,.43) 40%,
    rgba(10,10,10,.07) 78%,
    rgba(10,10,10,.02) 100%),
    linear-gradient(0deg,rgba(9,9,9,.20),transparent 30%)!important;
}
@media (max-width:900px){
  body .cinema .mdt-mini-status {top:114px!important;left:5%!important;right:auto!important;width:205px!important;max-width:205px!important;}
  body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
    background:linear-gradient(180deg,rgba(10,10,10,.44),rgba(10,10,10,.46) 45%,rgba(10,10,10,.26))!important;
  }
}
@media (max-width:540px){
  body .cinema .mdt-mini-status {top:92px!important;left:4%!important;right:auto!important;width:174px!important;max-width:min(174px,91vw)!important;}
}

/* v1.1 - Correct cool/blue cast only on the optional Time Theme media.
   No filter applied to user interface, headline, service carousel or Original Theme.
   The source contains real blue skies and water; these cannot disappear without changing the footage. */
body .cinema.mdt-time-on .hero-backdrop video.mdt-frame,
body .cinema.mdt-time-on .hero-backdrop video.mdt-loop-video {
  filter: sepia(.18) saturate(.83) contrast(1.04) brightness(1.03) !important;
  mix-blend-mode: normal !important;
}
/* Scope to optional overlay only, and avoid an added blue hue. */
body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
  background:linear-gradient(90deg,
    rgba(15,12,9,.68),rgba(15,12,9,.32) 42%,rgba(15,12,9,.04) 82%,transparent),
    linear-gradient(0deg,rgba(15,12,9,.16),transparent 32%)!important;
}
@media(max-width:900px) {
  body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
    background:linear-gradient(180deg,rgba(15,12,9,.39),rgba(15,12,9,.44) 50%,rgba(15,12,9,.20))!important;
  }
}

/* v1.2: Minimal theme drawer, detached LIVE Dubai clock */
body .mdt-drawer-title,
body .mdt-drawer .mdt-status,
body .mdt-drawer .mdt-description,
body .mdt-drawer .mdt-help,
body .mdt-drawer p { display:none!important; }
body .mdt-drawer .mdt-switch{gap:7px!important;}
body .mdt-drawer .mdt-switch button{font-size:12px!important;line-height:1.35!important;min-height:38px!important;}
body .cinema .mdt-mini-status{pointer-events:none!important;}

/* v1.3 — compact, lightly translucent clock that adapts to Dubai local time.
   Only the clock panel changes; original theme/video/services stay untouched. */
body .cinema .mdt-mini-status{
  top:166px!important;left:5%!important;right:auto!important;
  width:206px!important;max-width:min(206px,90vw)!important;
  padding:8px 11px!important;gap:3px!important;
  border-radius:12px!important;
  border:1px solid rgba(230,195,130,.46)!important;
  background:rgba(24,27,27,.64)!important;
  box-shadow:0 4px 20px rgba(0,0,0,.22)!important;
  -webkit-backdrop-filter:blur(9px)!important;backdrop-filter:blur(9px)!important;
  transition:background-color 1.5s ease,border-color 1.5s ease!important;
}
body .cinema .mdt-mini-status .mdt-mini-city{font-size:9px!important;line-height:1.2!important}
body .cinema .mdt-mini-status strong{font-size:20px!important;line-height:1.1!important}
body .cinema .mdt-mini-status .mdt-mini-foot{gap:4px!important}
body .cinema .mdt-mini-status [data-mdt-date],
body .cinema .mdt-mini-status .mdt-mini-weather{font-size:9px!important}
/* Four subtle neutral/golden transparencies; no blue applied to the video. */
body .cinema .mdt-mini-status[data-mdt-period="morning"]{background:rgba(65,47,28,.61)!important;border-color:rgba(233,196,130,.57)!important}
body .cinema .mdt-mini-status[data-mdt-period="day"]{background:rgba(36,35,30,.55)!important;border-color:rgba(224,193,130,.49)!important}
body .cinema .mdt-mini-status[data-mdt-period="evening"]{background:rgba(66,40,24,.68)!important;border-color:rgba(237,181,104,.61)!important}
body .cinema .mdt-mini-status[data-mdt-period="night"]{background:rgba(14,15,19,.78)!important;border-color:rgba(218,181,119,.49)!important}
@media(max-width:900px){body .cinema .mdt-mini-status{top:116px!important;left:5%!important;right:auto!important;width:196px!important;max-width:min(196px,90vw)!important;padding:7px 10px!important}}
@media(max-width:540px){body .cinema .mdt-mini-status{top:100px!important;left:4%!important;right:auto!important;width:175px!important;max-width:min(175px,92vw)!important;padding:6px 9px!important;border-radius:10px!important}body .cinema .mdt-mini-status strong{font-size:18px!important}body .cinema .mdt-mini-status .mdt-mini-city{font-size:8px!important}body .cinema .mdt-mini-status [data-mdt-date],body .cinema .mdt-mini-status .mdt-mini-weather{font-size:8px!important}}
@media(prefers-reduced-motion:reduce){body .cinema .mdt-mini-status{transition:none!important}}

/* v1.4 — Align detached Dubai clock with the left content column,
   and keep its lower edge clear of the hero eyebrow. */
@media (min-width: 901px) {
  body .cinema .mdt-mini-status {
    top: 123px !important;
    left: 7.5% !important;
    right: auto !important;
  }
}
@media (min-width: 541px) and (max-width: 900px) {
  body .cinema .mdt-mini-status {
    top: 102px !important;
    left: 6% !important;
    right: auto !important;
  }
}
@media (max-width: 540px) {
  body .cinema .mdt-mini-status {
    top: 91px !important;
    left: 6% !important;
    right: auto !important;
  }
}

/* v1.5: one-player video pipeline with immediate poster/photo fallback. */
html body .cinema .hero-backdrop .mdt-frame-wrap {background-color:transparent!important; background-repeat:no-repeat!important;}
html body .cinema.mdt-time-on .hero-backdrop .mdt-frame-wrap {opacity:1!important;}
html body .cinema .hero-backdrop video.mdt-frame {opacity:0!important;visibility:hidden!important;transition:opacity .4s ease!important;}
html body .cinema.mdt-time-on.mdt-loaded .hero-backdrop video.mdt-frame {opacity:1!important;visibility:visible!important;}
html body .cinema.mdt-loop-on .hero-backdrop video.mdt-frame {opacity:1!important;visibility:visible!important;}
html body .cinema.mdt-loop-on .hero-backdrop .mdt-frame-wrap {opacity:1!important;}
html body .cinema.mdt-time-on .hero-backdrop .mdt-frame-wrap {background-color:#17232d!important;}

/* v1.6: restore sharp and correctly distinct Dubai scene modes. */
html body .cinema .hero-backdrop .mdt-frame-wrap {
  background-repeat:no-repeat !important;
  background-size:cover !important;
  background-position:center !important;
  background-color:#1b2634 !important;
}
/* A still time-matched frame is shown only after the seek has completed. */
html body .cinema.mdt-time-on:not(.mdt-loaded) .hero-backdrop video.mdt-frame {
  opacity:0 !important;visibility:hidden !important;
}
html body .cinema.mdt-time-on.mdt-loaded .hero-backdrop video.mdt-frame {
  opacity:1 !important;visibility:visible !important;
}
/* Keep time and timelapse layers identical in cropping, with no extra colour filter. */
html body .cinema.mdt-time-on .hero-backdrop video.mdt-frame {
  object-fit:cover !important;
  object-position:center !important;
  filter:none !important;
  image-rendering:auto !important;
  transform:none !important;
}
/* Reduce unnecessarily heavy video darkening to improve perceived clarity,
   without changing the original mode's scrim. */
html body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
  background:linear-gradient(90deg,rgba(7,15,27,.55) 0%,rgba(7,15,27,.36) 38%,rgba(7,15,27,.06) 76%),
             linear-gradient(0deg,rgba(7,15,27,.19),transparent 32%) !important;
}
@media(max-width:900px){
  html body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
    background:linear-gradient(180deg,rgba(7,15,27,.40),rgba(7,15,27,.23) 60%,rgba(7,15,27,.36)) !important;
  }
}

/* v1.9 continuous timelapse + instant poster fallback */
html body .cinema .hero-backdrop > .photo-frame,
html body .cinema .hero-backdrop > .hero-video,
html body .cinema .hero-backdrop > video:not(.mdt-frame){
  opacity:0 !important;
  visibility:hidden !important;
}
html body .cinema .hero-backdrop .mdt-frame-wrap{
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  overflow:hidden !important;
  opacity:1 !important;
  background:transparent !important;
}
html body .cinema .hero-backdrop .mdt-poster{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  opacity:1 !important;
  transition:opacity .35s ease !important;
}
html body .cinema.mdt-loaded .hero-backdrop .mdt-poster{
  opacity:0 !important;
}
html body .cinema .hero-backdrop video.mdt-frame{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  opacity:0 !important;
  visibility:hidden !important;
  transition:opacity .35s ease !important;
  background:transparent !important;
  filter:none !important;
}
html body .cinema.mdt-loaded .hero-backdrop video.mdt-frame,
html body .cinema.mdt-loop-on .hero-backdrop video.mdt-frame{
  opacity:1 !important;
  visibility:visible !important;
}
html body .cinema .mdt-inline-timelapse{
  margin-left:8px !important;
}

/* v2.1 stability: never reveal video before first decoded frame. */
html body .cinema.mdt-loop-on:not(.mdt-loaded) .hero-backdrop video.mdt-frame {opacity:0!important;visibility:hidden!important;}
html body .cinema.mdt-time-on.mdt-loaded .hero-backdrop video.mdt-frame {opacity:1!important;visibility:visible!important;}

/* v3.7: brighter skyline without video filters or quality-reducing re-encode. */
html body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
  background:linear-gradient(90deg,rgba(7,15,27,.46) 0%,rgba(7,15,27,.28) 38%,rgba(7,15,27,.04) 76%),
             linear-gradient(0deg,rgba(7,15,27,.14),transparent 32%) !important;
}
@media(max-width:900px){
 html body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
  background:linear-gradient(180deg,rgba(7,15,27,.34),rgba(7,15,27,.18) 60%,rgba(7,15,27,.29)) !important;
 }
}

/* v3.9: modestly reduce darkening, leave 4K frames unfiltered. */
html body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
  background:linear-gradient(90deg,rgba(7,15,27,.40) 0%,rgba(7,15,27,.24) 38%,rgba(7,15,27,.035) 76%),
             linear-gradient(0deg,rgba(7,15,27,.12),transparent 32%) !important;
}
@media(max-width:900px){
 html body .cinema.mdt-time-on .hero-backdrop .photo-scrim {
   background:linear-gradient(180deg,rgba(7,15,27,.30),rgba(7,15,27,.15) 60%,rgba(7,15,27,.25)) !important;
 }
}

/* v4.4: Scroll-controlled scene, pinned only while scroll progress is available. */
html body .mdt-scroll-stage {position:relative!important; width:100%!important; overflow:visible!important; isolation:auto!important;}
html body .mdt-scroll-stage > .cinema.mdt-scroll-hero {
 position:sticky!important; top:0!important; z-index:1!important;
 margin:0!important; transform:none!important;
}
@media(max-width:767px){
 html body .mdt-scroll-stage > .cinema.mdt-scroll-hero {top:0!important;}
}

/* v4.5: gold scroll progress and exact end-of-video header tint. */
html body .mdt-scroll-stage>.cinema.mdt-scroll-hero { min-height:100svh!important; }
html body .cinema .mdt-gold-progress {position:absolute!important;bottom:0!important;left:0!important;width:100%!important;height:5px!important;z-index:110!important;pointer-events:none!important;background:rgba(12,25,35,.35)!important;box-shadow:0 -1px 9px rgba(0,0,0,.18)!important;}
html body .cinema .mdt-gold-progress[hidden]{display:none!important;}
html body .cinema .mdt-gold-progress-fill {height:100%!important;width:100%!important;transform-origin:left center!important;transform:scaleX(0);background:linear-gradient(90deg,#c79b44,#e8c879,#f7da9a)!important;box-shadow:0 0 12px rgba(236,191,92,.45)!important;will-change:transform;}
/* This class is toggled only after the scroll-controlled clip reaches 100%. */
html body .header.mdt-video-finished, html body.mdt-video-finished .header {background:rgba(9,19,33,.96)!important;transition:background-color .35s ease,background .35s ease!important;}
@media (max-width:767px){html body .cinema .mdt-gold-progress{height:4px!important;}}
/* Keep theme's own .header.scrolled darkening from starting during the pinned movie. */
html body:not(.mdt-video-finished) .mdt-scroll-stage ~ .header.scrolled {background:transparent!important;}
html body:not(.mdt-video-finished):has(.mdt-scroll-stage) .header.scrolled {background:transparent!important;}


/* v4.6 — keep the navigation legible above the pinned hero. */
html body:has(.mdt-scroll-stage) header.header,
html body:has(.mdt-scroll-stage) .header {
  z-index:1000 !important;
}
html body.mdt-scroll-active:not(.mdt-video-finished) header.header,
html body.mdt-scroll-active:not(.mdt-video-finished) header.header.scrolled,
html body.mdt-scroll-active:not(.mdt-video-finished) .header,
html body.mdt-scroll-active:not(.mdt-video-finished) .header.scrolled {
  background:rgba(9,19,33,.14) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
}
html body.mdt-scroll-active.mdt-video-finished header.header,
html body.mdt-scroll-active.mdt-video-finished .header {
  background:rgba(9,19,33,.97) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
html body.mdt-scroll-active .header a,
html body.mdt-scroll-active .header nav a { opacity:1; }

/* Put the gold progress directly UNDER the Dubai time and weather glass bar,
   not at the base of the full hero. Glass Header v3.2 moves this entire bar. */
html body .cinema .mdt-mini-status {
  overflow:visible !important;
}
html body .cinema .mdt-mini-status .mdt-gold-progress {
  position:absolute !important;
  top:calc(100% + 7px) !important;
  bottom:auto !important;
  left:1% !important;
  width:98% !important;
  height:5px !important;
  z-index:120 !important;
  border-radius:999px !important;
  background:rgba(9,22,34,.40) !important;
  box-shadow:0 2px 8px rgba(0,0,0,.25) !important;
  overflow:hidden !important;
  pointer-events:none !important;
  grid-column:auto !important;
  grid-row:auto !important;
}
html body .cinema .mdt-mini-status .mdt-gold-progress[hidden] {display:none !important;}
html body .cinema .mdt-mini-status .mdt-gold-progress-fill {
  border-radius:999px !important;
  background:linear-gradient(90deg,#b68b3c,#e9bd69,#ffe2a2) !important;
}
@media(max-width:760px) {
  html body .cinema .mdt-mini-status .mdt-gold-progress {height:4px !important;top:calc(100% + 6px) !important;}
}


/* v4.7: CLEAR stable navigation above hero; only darken after full video sequence. */
html body.mdt-scroll-active:not(.mdt-video-finished) .header,
html body.mdt-scroll-active:not(.mdt-video-finished) header.header,
html body.mdt-scroll-active:not(.mdt-video-finished) .header.scrolled,
html body.mdt-scroll-active:not(.mdt-video-finished) .header.menu-open {
  position:fixed !important;
  background:none !important;
  background-color:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  filter:none !important;
  opacity:1 !important;
}
html body.mdt-scroll-active:not(.mdt-video-finished) .header::before,
html body.mdt-scroll-active:not(.mdt-video-finished) .header::after {background:none !important; box-shadow:none !important;}
/* Do not let the theme shrink/move the header as scroll progresses. */
@media(min-width:901px) {
  html body.mdt-scroll-active:not(.mdt-video-finished) .header .nav-wrap,
  html body.mdt-scroll-active:not(.mdt-video-finished) .header.scrolled .nav-wrap {
    padding-top:25px !important;
    padding-bottom:25px !important;
    transition:none !important;
  }
}
html body.mdt-scroll-active.mdt-video-finished .header,
html body.mdt-scroll-active.mdt-video-finished header.header {
  position:fixed !important;
  background:rgba(9,19,33,.97) !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
/* Pin a full viewport movie across the full scroll range; reveal next content after 100%. */
html body .mdt-scroll-stage {
  display:block !important;
  position:relative !important;
  width:100% !important;
  overflow:visible !important;
  transform:none !important;
}
html body .mdt-scroll-stage > .cinema.mdt-scroll-hero {
  position:-webkit-sticky !important;
  position:sticky !important;
  top:0 !important;
  height:100svh !important;
  min-height:100svh !important;
  max-height:100svh !important;
  overflow:hidden !important;
  transform:none !important;
  margin:0 !important;
  z-index:1 !important;
}
/* Preserve the gold progress indicator under the Dubai time glass bar. */
html body .cinema .mdt-mini-status .mdt-gold-progress {
  top:calc(100% + 7px) !important;
  bottom:auto !important;
}


/* v4.8: no shaded rectangle behind navigation during the video scrubbing. */
html body.mdt-scroll-active:not(.mdt-video-finished) .header,
html body.mdt-scroll-active:not(.mdt-video-finished) header.header,
html body.mdt-scroll-active:not(.mdt-video-finished) .header.scrolled,
html body.mdt-scroll-active:not(.mdt-video-finished) .header.menu-open {
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
  border:0 !important;
  filter:none !important;
  opacity:1 !important;
}
html body.mdt-scroll-active:not(.mdt-video-finished) .header:before,
html body.mdt-scroll-active:not(.mdt-video-finished) .header:after {content:none !important;}
html body.mdt-scroll-active:not(.mdt-video-finished) .header .nav-wrap,
html body.mdt-scroll-active:not(.mdt-video-finished) .header .nav-wrap:before,
html body.mdt-scroll-active:not(.mdt-video-finished) .header .nav-wrap:after {
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  border:0 !important;
}
/* With virtual progress the page remains fixed naturally, no extended sticky stage. */
html body.mdt-scroll-active .mdt-scroll-stage {height:100svh !important; min-height:100svh !important;}
html body.mdt-scroll-active .mdt-scroll-stage>.cinema.mdt-scroll-hero {
  position:relative !important;
  top:auto !important;
  height:100svh !important;
  min-height:100svh !important;
}


/* v5.2 — dynamic nav contrast so menu stays visible through night→day→night frames */
html body.mdt-nav-gold .header a,
html body.mdt-nav-gold .header nav a,
html body.mdt-nav-gold .header .menu a,
html body.mdt-nav-gold .header .menu > li > a {
  color:#e3bf72 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
html body.mdt-nav-dark .header a,
html body.mdt-nav-dark .header nav a,
html body.mdt-nav-dark .header .menu a,
html body.mdt-nav-dark .header .menu > li > a {
  color:#173553 !important;
  opacity:1 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.18) !important;
}
/* keep the CTA consistently visible */
html body.mdt-nav-dark .header .button,
html body.mdt-nav-dark .header .btn,
html body.mdt-nav-dark .header .elementor-button,
html body.mdt-nav-dark .header .apply-online,
html body.mdt-nav-gold .header .button,
html body.mdt-nav-gold .header .btn,
html body.mdt-nav-gold .header .elementor-button,
html body.mdt-nav-gold .header .apply-online {
  background:#d9b776 !important;
  color:#152433 !important;
  border-color:#d9b776 !important;
}


/* v5.3 — stronger dynamic menu visibility and stable Apply Online CTA */
html body.mdt-nav-gold .header a,
html body.mdt-nav-gold .header nav a,
html body.mdt-nav-gold .header .menu a,
html body.mdt-nav-gold .header .menu > li > a,
html body.mdt-nav-gold .header ul li a,
html body.mdt-nav-gold .header .main-menu li > a,
html body.mdt-nav-gold .header .menu-item > a {
  color:#e4bf72 !important;
  opacity:1 !important;
  text-shadow:0 1px 2px rgba(0,0,0,.28) !important;
  filter:none !important;
}
html body.mdt-nav-dark .header a,
html body.mdt-nav-dark .header nav a,
html body.mdt-nav-dark .header .menu a,
html body.mdt-nav-dark .header .menu > li > a,
html body.mdt-nav-dark .header ul li a,
html body.mdt-nav-dark .header .main-menu li > a,
html body.mdt-nav-dark .header .menu-item > a {
  color:#153a5b !important;
  opacity:1 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.35) !important;
  filter:none !important;
}
html body.mdt-nav-gold .header .menu-item-has-children:after,
html body.mdt-nav-gold .header .sub-arrow,
html body.mdt-nav-gold .header i,
html body.mdt-nav-gold .header svg,
html body.mdt-nav-dark .header .menu-item-has-children:after,
html body.mdt-nav-dark .header .sub-arrow,
html body.mdt-nav-dark .header i,
html body.mdt-nav-dark .header svg {
  opacity:1 !important;
}
html body.mdt-nav-dark .header .button,
html body.mdt-nav-dark .header .btn,
html body.mdt-nav-dark .header .elementor-button,
html body.mdt-nav-dark .header .apply-online,
html body.mdt-nav-dark .header .menu-cta,
html body.mdt-nav-gold .header .button,
html body.mdt-nav-gold .header .btn,
html body.mdt-nav-gold .header .elementor-button,
html body.mdt-nav-gold .header .apply-online,
html body.mdt-nav-gold .header .menu-cta {
  background:#d9b776 !important;
  color:#162738 !important;
  border-color:#d9b776 !important;
  box-shadow:none !important;
}
html body.mdt-nav-dark .header .button a,
html body.mdt-nav-dark .header .btn a,
html body.mdt-nav-dark .header .elementor-button a,
html body.mdt-nav-dark .header .apply-online a,
html body.mdt-nav-gold .header .button a,
html body.mdt-nav-gold .header .btn a,
html body.mdt-nav-gold .header .elementor-button a,
html body.mdt-nav-gold .header .apply-online a {
  color:#162738 !important;
}


/* v5.4 — readable menu on the actual light/dark video frames; do not tint
   the entire header or override the brand image. */
html body.mdt-nav-gold .header nav > a,
html body.mdt-nav-gold .header nav > a:visited,
html body.mdt-nav-gold .header nav > a:hover {
  color:#e6c57c !important;
  -webkit-text-fill-color:#e6c57c !important;
  text-shadow:none !important;
  opacity:1 !important;
  transition:color .32s ease,-webkit-text-fill-color .32s ease !important;
}
html body.mdt-nav-dark .header nav > a,
html body.mdt-nav-dark .header nav > a:visited,
html body.mdt-nav-dark .header nav > a:hover {
  color:#102c49 !important;
  -webkit-text-fill-color:#102c49 !important;
  text-shadow:none !important;
  opacity:1 !important;
  transition:color .32s ease,-webkit-text-fill-color .32s ease !important;
}
/* Critical: Apply Online is a BUTTON, not a link. Keep the entire gold CTA
   readable in every phase, including hover, focus, and the split arrow area. */
html body .header nav button.nav-cta,
html body .header nav button.nav-cta:hover,
html body .header nav button.nav-cta:focus,
html body .header nav button.nav-cta:active,
html body .header nav .nav-cta.button,
html body.mdt-nav-gold .header nav button.nav-cta,
html body.mdt-nav-dark .header nav button.nav-cta {
  background:#e5c16c !important;
  background-image:none !important;
  color:#11283b !important;
  -webkit-text-fill-color:#11283b !important;
  border-color:#e5c16c !important;
  text-shadow:none !important;
  filter:none !important;
  opacity:1 !important;
}
html body .header nav button.nav-cta span,
html body .header nav button.nav-cta i,
html body .header nav button.nav-cta svg,
html body.mdt-nav-gold .header nav button.nav-cta span,
html body.mdt-nav-dark .header nav button.nav-cta span {
  color:#11283b !important;
  -webkit-text-fill-color:#11283b !important;
  text-shadow:none !important;
  opacity:1 !important;
}
/* When the video sequence is complete, menu should be gold on navy header. */
html body.mdt-scroll-active.mdt-video-finished .header nav > a,
html body.mdt-scroll-active.mdt-video-finished .header nav > a:visited {
  color:#e6c57c !important;
  -webkit-text-fill-color:#e6c57c !important;
  text-shadow:none !important;
}
@media (prefers-reduced-motion:reduce){
  html body .header nav > a {transition:none !important;}
}


/* v5.5: Apply Online is permanently BLACK on gold — never inherit the
   gold/dark-blue navigation colour, even during hover, focus, scrolling,
   or after the cinematic sequence has finished. */
html body .header .mdt-apply-cta,
html body .header .mdt-apply-cta:hover,
html body .header .mdt-apply-cta:focus,
html body .header .mdt-apply-cta:focus-visible,
html body .header .mdt-apply-cta:active,
html body.mdt-nav-gold .header .mdt-apply-cta,
html body.mdt-nav-dark .header .mdt-apply-cta,
html body .header nav button.nav-cta,
html body .header nav button.nav-cta:hover,
html body .header nav button.nav-cta:focus,
html body .header nav button.nav-cta:active {
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
  text-shadow:none !important;
  background-color:#e5c16c !important;
  background-image:none !important;
  border-color:#e5c16c !important;
  opacity:1 !important;
  filter:none !important;
}
html body .header .mdt-apply-cta *,
html body .header .mdt-apply-cta *::before,
html body .header .mdt-apply-cta *::after,
html body .header nav button.nav-cta *,
html body .header nav button.nav-cta *::before,
html body .header nav button.nav-cta *::after {
  color:#111111 !important;
  -webkit-text-fill-color:#111111 !important;
  text-shadow:none !important;
  fill:currentColor !important;
  stroke:currentColor !important;
  opacity:1 !important;
}

/* v5.6.4: Night is chosen by actual video frame, never by darkening the picture. */
html body.mdt-strong-live-night .cinema .mdt-frame-wrap video.mdt-frame { filter:none !important; }

/* v5.6.5: prevent a black compositing gap between the night fallback and decoded video.
   Keep poster present behind the video, with no crossfade to the empty backdrop.
   The video itself continues to show live decoded frames in all three modes. */
html body .cinema .hero-backdrop .mdt-poster,
html body .cinema.mdt-loaded .hero-backdrop .mdt-poster {
  opacity:1 !important;
  visibility:visible !important;
  transition:none !important;
}
html body .cinema .hero-backdrop video.mdt-frame {
  transition:opacity .12s linear !important;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

/* v5.6.6: make the initial poster-to-decoded-frame transition atomic.
   Poster remains behind the player as a safety fallback. No animated opacity
   between layers while scroll scrubbing; the wheel controls are unchanged. */
html body.mdt-scroll-active .cinema .hero-backdrop video.mdt-frame,
html body.mdt-scroll-active .cinema .hero-backdrop .mdt-poster {
  transition:none !important;
}

/* v5.6.7: Remove the Gold theme's thin bottom border below the fixed header.
   This is purely a visual correction; no hero, animation or scroll logic changes. */
html body header.header,
html body .header,
html body header.header.scrolled,
html body header.header.menu-open,
html body.mdt-scroll-active header.header {
  border-bottom:0 !important;
  border-bottom-width:0 !important;
  border-bottom-color:transparent !important;
}
