/* CineMatch Helios Sync 1.0.4 — zgodność ze starym HTML-em strony */
#movies.movies .movie-card .poster,
#movies .movie-card .poster {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background-color: #171923 !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

#movies.movies .movie-card .poster::after,
#movies .movie-card .poster::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 32%, rgba(0,0,0,.92) 100%) !important;
}

#movies.movies .movie-card .poster h3,
#movies .movie-card .poster h3,
#movies.movies .movie-card .poster .cmh-legacy-title,
#movies .movie-card .poster .cmh-legacy-title {
  position: relative !important;
  z-index: 3 !important;
  display: block !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.95) !important;
  font-weight: 800 !important;
}

#movies .movie-card .poster .cmh-legacy-poster-img {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  display: block !important;
}

#movies .movie-card .poster.cmh-legacy-no-poster {
  background-image: linear-gradient(135deg,#412031,#171923) !important;
}

/* CineMatch 2.0 — zapis seansu i wejście do wewnętrznej karty filmu */
#peopleSection{display:none!important}
#movies .movie-card .poster.cmh-legacy-clickable{cursor:pointer!important}
#movies .movie-card .time-btn.cmh-wanted{background:#35d07f!important;border-color:#35d07f!important;color:#06150d!important;font-weight:800!important}
#movies .movie-card .cmh-legacy-card-link{display:inline-flex!important;margin-top:14px!important;color:#fff!important;background:#ff315f!important;text-decoration:none!important;border-radius:10px!important;padding:10px 13px!important;font-size:13px!important;font-weight:800!important}
.cmh-register-nav{background:#ff315f!important;color:#fff!important}
.cmh-legacy-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);z-index:99999;background:#11131a;color:#fff;border:1px solid #353946;border-radius:12px;padding:12px 18px;box-shadow:0 16px 50px rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:.2s;font:600 14px/1.4 Inter,Arial,sans-serif}.cmh-legacy-toast.is-show{opacity:1;transform:translate(-50%,0)}


/* CineMatch 2.3 — pełnoekranowy, responsywny frontend i równe karty */
html body .nav{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:nowrap!important}
html body .nav button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Nunito",system-ui,-apple-system,"Segoe UI",sans-serif!important;font-size:17px!important;line-height:1.15!important;font-weight:800!important;padding:12px 16px!important;min-height:46px!important;white-space:nowrap!important}
html body #movies.movies{align-items:stretch!important}
html body #movies.movies .movie-card{display:flex!important;flex-direction:column!important;height:100%!important;max-width:none!important}
html body #movies.movies .movie-card .movie-content{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:190px!important}
html body #movies.movies .movie-card .movie-info{min-height:3.35em!important;line-height:1.55!important;margin-bottom:14px!important}
html body #movies.movies .movie-card .times{margin-bottom:2px!important}
html body #movies.movies .movie-card .cmh-legacy-card-link{margin-top:auto!important;align-self:flex-start!important}

@media (max-width:900px){
  html body .nav button{font-size:15px!important;padding:11px 13px!important}
  html body #movies.movies .movie-card .movie-content{min-height:184px!important}
}
@media (max-width:640px){
  html body .nav{width:100%!important;overflow-x:auto!important;gap:6px!important;padding-bottom:2px!important;scrollbar-width:none!important}
  html body .nav::-webkit-scrollbar{display:none!important}
  html body .nav button{flex:0 0 auto!important;font-size:13px!important;padding:9px 10px!important;min-height:40px!important}
  html body #movies.movies .movie-card .movie-content{min-height:176px!important}
}


html body .cinematch-header{width:100vw!important;margin-left:calc(50% - 50vw)!important}
html body .cinematch-main{width:100vw!important;max-width:none!important;margin-left:50%!important;transform:translateX(-50%)!important}
html body .nav img.emoji{width:1.25em!important;height:1.25em!important;max-width:none!important;margin:0!important}


/* CineMatch 2.6.1 — usuń domyślny header/branding motywu tylko na stronach CineMatch. */
body.cmh-cinematch-wp-page header#masthead,
body.cmh-cinematch-wp-page #masthead,
body.cmh-cinematch-wp-page #site-header,
body.cmh-cinematch-wp-page .site-header,
body.cmh-cinematch-wp-page .site-branding,
body.cmh-cinematch-wp-page .site-title,
body.cmh-cinematch-wp-page .site-description,
body.cmh-cinematch-wp-page .wp-block-site-title,
body.cmh-cinematch-wp-page .wp-block-site-tagline,
body.cmh-cinematch-wp-page .wp-site-title,
body.cmh-cinematch-wp-page .wp-site-tagline {
  display:none!important;
}

/* Block themes (FSE): jeśli tytuł witryny siedzi w osobnym template-part headera,
   usuń cały ten motywowy nagłówek. Header CineMatch nie używa tych klas. */
@supports selector(:has(*)) {
  body.cmh-cinematch-wp-page header:has(.wp-block-site-title),
  body.cmh-cinematch-wp-page .wp-block-template-part:has(.wp-block-site-title),
  body.cmh-cinematch-wp-page header:has(.site-title),
  body.cmh-cinematch-wp-page .wp-block-template-part:has(.site-title) {
    display:none!important;
  }
}

/* Właściwe headery CineMatch zawsze pozostają widoczne. */
body.cmh-cinematch-wp-page .cmh-app-header,
body.cmh-cinematch-wp-page .cinematch-header,
body.cmh-cinematch-wp-page header.cinematch-header {
  display:flex!important;
}

/* CineMatch 2.7.0 — godzina na liście jest głównym CTA prowadzącym do osób na seans. */
#movies .movie-card .time-btn.cmh-saving{opacity:.68!important;cursor:wait!important;transform:none!important}
#movies .movie-card .time-btn{font-weight:850!important}


/* SeansMatch.pl 2.8.8 — stopka frontendu. */
body.cmh-cinematch-wp-page footer.cinematch-footer{display:flex!important}
body.cmh-cinematch-wp-page footer:not(.cinematch-footer):not(.cmh-app-footer){display:none!important}
