/* MCX video: film „Zkrocení větru“ (stránka MCX Energo, okno z úvodu). Barva přehrávacího kolečka = žlutá MCX ENERGO. */
.mcx-film { position: relative; margin: 0; width: 100%; aspect-ratio: 16 / 9; background: #0d0e10; overflow: hidden; }
.mcx-film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0d0e10; }
.mcx-film-play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-start; gap: clamp(14px, 2vw, 26px);
  margin: 0; border: 0; padding: clamp(18px, 4vw, 54px); cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(to top, rgba(10,11,12,.82) 0%, rgba(10,11,12,.35) 38%, rgba(10,11,12,0) 70%);
  transition: opacity .45s ease, background-color .45s ease;
}
.mcx-film-play:focus-visible { outline: 2px solid #fff000; outline-offset: -8px; }
.mcx-film-ico {
  position: relative; flex: none; width: clamp(56px, 6.2vw, 92px); height: clamp(56px, 6.2vw, 92px); border-radius: 50%;
  background: #fff000; box-shadow: 0 0 0 0 rgba(255,240,0,.45); transition: transform .55s cubic-bezier(.16,1,.3,1);
  animation: mcxFilmPulse 2.8s ease-out infinite;
}
.mcx-film-ico::after {
  content: ""; position: absolute; left: 39%; top: 31%; width: 30%; height: 38%; background: #1d1d1b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.mcx-film-play:hover .mcx-film-ico { transform: scale(1.08); }
.mcx-film-txt { display: block; padding-bottom: .2em; }
.mcx-film-txt small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.mcx-film-txt strong {
  display: block; font-family: "Avenir LT Pro 65", "Avenir LT Pro", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 44px); line-height: 1.02; letter-spacing: .01em;
}
.mcx-film.is-playing .mcx-film-play { opacity: 0; pointer-events: none; }
@keyframes mcxFilmPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,240,0,.45); }
  70% { box-shadow: 0 0 0 22px rgba(255,240,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,240,0,0); }
}

/* stránka MCX Energo: film přes celou šířku mezi pruhem s logem a mřížkou referencí */
section.references-grid .mcx-film-row { padding: 0; }

/* úvod, sekce Energy: tlačítko pod úvodním textem */
.mcx-film-cta {
  display: inline-flex; align-items: center; gap: 14px; margin: 22px 0 0; padding: 0; border: 0; background: none;
  color: #fff; cursor: pointer; text-align: left; font: inherit;
}
.mcx-film-cta .mcx-film-ico { width: 46px; height: 46px; animation-duration: 3.2s; }
.mcx-film-cta:hover .mcx-film-ico { transform: scale(1.1); }
.mcx-film-cta span.t { display: block; line-height: 1.25; }
.mcx-film-cta span.t b { display: block; font-family: "Avenir LT Pro 65", "Avenir LT Pro", sans-serif; font-weight: 900; text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }
.mcx-film-cta span.t small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.mcx-film-cta:focus-visible { outline: 2px solid #fff000; outline-offset: 6px; }

/* okno s filmem */
.mcx-film-modal {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  padding: 6vh 5vw; background: rgba(8,9,10,.94); opacity: 0; transition: opacity .35s ease;
}
.mcx-film-modal.is-in { opacity: 1; }
.mcx-film-modal .mcx-film { width: min(1400px, 100%, calc((100vh - 12vh) * 16 / 9)); transform: scale(.96); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.mcx-film-modal.is-in .mcx-film { transform: none; }
.mcx-film-close {
  position: absolute; top: calc(var(--mwbar, 0px) + 18px); right: 22px; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: url("../images/krizek (bila).svg") no-repeat 50% / 30px; opacity: .85; transition: opacity .3s, transform .4s;
}
.mcx-film-close:hover { opacity: 1; transform: rotate(90deg); }
body.mcx-film-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mcx-film-ico { animation: none; } }

/* ---------- v2: tlačítka bez rámečku po kliknutí myší, rámeček jen z klávesnice ---------- */
.mcx-film-close:focus, .mcx-film-play:focus, .mcx-film-cta:focus, .mcx-film-hero-down:focus { outline: none; }
.mcx-film-close:focus-visible { outline: 2px solid #fff000; outline-offset: 2px; border-radius: 50%; }
.mcx-film-cta:focus-visible, .mcx-film-hero-down:focus-visible { outline: 2px solid #fff000; outline-offset: 6px; }
.mcx-film-play:focus-visible { outline: 2px solid #fff000; outline-offset: -8px; }

/* ---------- v2: stránka MCX Energo, video na pozadí přes celou obrazovku ---------- */
.mcx-film-hero {
  position: relative; overflow: hidden; background: #0d0e10; color: #fff;
  min-height: 560px; height: calc(100vh - var(--mwbar, 0px)); height: calc(100svh - var(--mwbar, 0px));
  display: flex; align-items: flex-end;
}
.mcx-film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcx-film-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13,14,16,.92) 0%, rgba(13,14,16,.45) 45%, rgba(13,14,16,.15) 75%, rgba(13,14,16,.5) 100%);
}
.mcx-film-hero-in { position: relative; z-index: 2; width: 100%; padding: 0 clamp(24px, 9vw, 135px) clamp(70px, 12vh, 120px); }
.mcx-film-hero-logo { width: clamp(150px, 14vw, 204px); height: auto; display: block; margin-bottom: clamp(18px, 3vh, 30px); }
.mcx-film-hero-kicker { margin: 0 0 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.mcx-film-hero-title {
  margin: 0; font-family: "Avenir LT Pro 65", "Avenir LT Pro", sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 6.2vw, 92px); line-height: .98; letter-spacing: .005em;
}
.mcx-film-hero-lead { margin: 14px 0 0; max-width: 560px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.45; opacity: .88; }
.mcx-film-cta-big { margin-top: clamp(20px, 3.5vh, 34px); }
.mcx-film-cta-big .mcx-film-ico { width: 64px; height: 64px; }
.mcx-film-cta-big span.t b { font-size: 16px; }
.mcx-film-hero-down {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; width: 28px; height: 44px; margin-left: -14px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 28 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 0v42M2.6 30 14 42.5 25.4 30' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E") no-repeat 50% / contain;
  animation: mcxFilmDown 2.4s ease-in-out infinite; opacity: .8;
}
@keyframes mcxFilmDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.mcx-film-hero + section.references-grid { padding-top: 60px; }
@media (max-width: 767px) {
  .mcx-film-hero { min-height: 520px; height: 88svh; }
  .mcx-film-hero-in { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .mcx-film-hero-down { animation: none; } }
/* v3: načítání filmu je vidět (točící se kroužek), dokud nezačne hrát */
.mcx-film { position: relative; }
.mcx-film.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #fff000; animation: mcx-film-spin .8s linear infinite; pointer-events: none; z-index: 3;
}
@keyframes mcx-film-spin { to { transform: rotate(360deg); } }
