/* =====================================================
   HOFFA LOVE — FILMY SLUBNE V3

   BIALE TLO Z ZIARNEM
   MALY WSTEP INTER
   3 FILMY W RZEDZIE DESKTOP
   1 FILM W RZEDZIE MOBILE

   FULLSCREEN VIDEO MODAL + X
===================================================== */

#hl-filmy-slubne {
  --hlfs-white: #ffffff;
  --hlfs-olive: #364531;
  --hlfs-muted: #787d72;
  --hlfs-ease: cubic-bezier(.22,1,.36,1);

  position: relative;
  isolation: isolate;

  width: 100%;
  margin: 0;
  padding: 88px 0 86px;

  overflow: hidden;

  background: var(--hlfs-white);
  color: var(--hlfs-olive);

  font-family: 'Inter', Arial, sans-serif;
}

#hl-filmy-slubne,
#hl-filmy-slubne *,
#hl-filmy-slubne *::before,
#hl-filmy-slubne *::after,
#hlfs-fullscreen,
#hlfs-fullscreen *,
#hlfs-fullscreen *::before,
#hlfs-fullscreen *::after {
  box-sizing: border-box;
}

/* =====================================================
   BIALE ZIARNISTE TLO
===================================================== */

#hl-filmy-slubne .hlfs-grain {
  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  opacity: .16;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='hlfsnoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.44' numOctaves='3' seed='14' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23hlfsnoise)' opacity='.65'/%3E%3C/svg%3E");

  background-size: 240px 240px;
  background-repeat: repeat;

  mix-blend-mode: multiply;
}

/* =====================================================
   CONTAINER
===================================================== */

#hl-filmy-slubne .hlfs-container {
  position: relative;
  z-index: 1;

  width: min(1390px, calc(100% - 110px));
  margin: 0 auto;
}

/* =====================================================
   MALY WSTEP — INTER / BEZ NADTYTULU
===================================================== */

#hl-filmy-slubne .hlfs-intro {
  display: flex;
  align-items: center;
  justify-content: center;

  max-width: 700px;

  margin: 0 auto;
  padding: 0 0 48px;

  text-align: center;
}

#hl-filmy-slubne .hlfs-intro p {
  max-width: 590px;

  margin: 0;
  padding: 0;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;

  color: #6d7467;
}

/* =====================================================
   SIATKA FILMOW
===================================================== */

#hl-filmy-slubne .hlfs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  column-gap: 22px;
  row-gap: 49px;

  width: 100%;
  min-width: 0;
}

#hl-filmy-slubne .hlfs-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  margin: 0;
  padding: 0;
}

/* =====================================================
   MINIATURA
===================================================== */

#hl-filmy-slubne .hlfs-player {
  position: relative;
  isolation: isolate;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;
  background: #34372f;
}

#hl-filmy-slubne .hlfs-thumbnail {
  display: block;

  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: center;

  filter: saturate(.82) contrast(1.03);

  transform: scale(1);

  transition:
    transform .8s var(--hlfs-ease),
    filter .6s ease;
}

#hl-filmy-slubne .hlfs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,.09) 0%,
    rgba(0,0,0,.18) 100%
  );

  pointer-events: none;
}

/* =====================================================
   PLAY
===================================================== */

#hl-filmy-slubne .hlfs-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;

  transform: translate(-50%, -50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 66px;
  height: 66px;

  margin: 0;
  padding: 0;

  border: 1px solid rgba(255,255,255,.92);
  border-radius: 50%;

  background: rgba(255,255,255,.15);
  color: #fff;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  cursor: pointer;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s var(--hlfs-ease);
}

#hl-filmy-slubne .hlfs-play svg {
  display: block;

  width: 25px;
  height: 25px;

  margin-left: 3px;
}

/* =====================================================
   HOVER NA DESKTOP
===================================================== */

@media (hover: hover) {

  #hl-filmy-slubne .hlfs-player:hover .hlfs-thumbnail {
    transform: scale(1.045);
    filter: saturate(1) contrast(1.04);
  }

  #hl-filmy-slubne .hlfs-player:hover .hlfs-play {
    transform: translate(-50%, -50%) scale(1.05);
    background: #fff;
    color: var(--hlfs-olive);
  }

}

/* =====================================================
   PODPISY
===================================================== */

#hl-filmy-slubne .hlfs-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
  width: 100%;

  padding: 14px 0 0;
}

#hl-filmy-slubne .hlfs-card-bottom span {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .17em;

  color: var(--hlfs-muted);
}

#hl-filmy-slubne .hlfs-card-bottom span:first-child {
  color: var(--hlfs-olive);
}

/* =====================================================
   YOUTUBE FOOTER
===================================================== */

#hl-filmy-slubne .hlfs-footer {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;

  margin-top: 65px;
  padding-top: 34px;

  border-top: 1px solid rgba(54,69,49,.17);

  text-align: center;
}

#hl-filmy-slubne .hlfs-footer p {
  margin: 0;
  padding: 0;

  font-size: 9px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .16em;

  color: var(--hlfs-muted);
}

#hl-filmy-slubne .hlfs-youtube-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  margin-top: 20px;
  padding: 13px 19px;

  border: 1px solid rgba(54,69,49,.46);
  border-radius: 0;

  background: transparent;
  color: var(--hlfs-olive);

  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .14em;

  text-decoration: none;

  transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease;
}

#hl-filmy-slubne .hlfs-youtube-link svg {
  display: block;

  width: 24px;
  height: 24px;

  flex: 0 0 auto;
}

@media (hover: hover) {

  #hl-filmy-slubne .hlfs-youtube-link:hover {
    background: var(--hlfs-olive);
    color: #fff;
    border-color: var(--hlfs-olive);
  }

}

/* =====================================================
   FULLSCREEN MODAL

   POKRYWA CALY WIDOCZNY EKRAN
   NAKLADA SIE PONAD MENU I STRONA
===================================================== */

#hlfs-fullscreen[hidden] {
  display: none;
}

#hlfs-fullscreen {
  position: fixed;
  inset: 0;

  z-index: 2147483647;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  padding: 0;

  overflow: hidden;

  background: #080808;
  color: #fff;

  isolation: isolate;
}

/* CZARNE TLO */

#hlfs-fullscreen .hlfs-fullscreen-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: #080808;
}

/* OKNO FILMU */

#hlfs-fullscreen .hlfs-fullscreen-inner {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  padding: 72px 30px 30px;
}

/* ODTWARZACZ 16:9 MAKSYMALNIE DUZY */

#hlfs-fullscreen .hlfs-fullscreen-video {
  position: relative;

  width: min(
    calc(100vw - 60px),
    calc((100dvh - 110px) * 16 / 9)
  );

  max-width: 100%;
  aspect-ratio: 16 / 9;

  background: #000;
  overflow: hidden;
}

#hlfs-fullscreen .hlfs-fullscreen-video iframe {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  border: 0;
  background: #000;
}

/* =====================================================
   X — ZAMYKANIE
===================================================== */

#hlfs-fullscreen .hlfs-close {
  position: absolute;

  top: 21px;
  right: 27px;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 45px;
  height: 45px;

  margin: 0;
  padding: 0;

  border: 1px solid rgba(255,255,255,.58);
  border-radius: 50%;

  background: rgba(0,0,0,.42);
  color: #fff;

  cursor: pointer;

  transition:
    background .25s ease,
    border-color .25s ease;
}

#hlfs-fullscreen .hlfs-close svg {
  display: block;

  width: 22px;
  height: 22px;
}

@media (hover: hover) {

  #hlfs-fullscreen .hlfs-close:hover {
    background: #364531;
    border-color: #364531;
  }

}

/* BLOKADA PRZEWIJANIA PODCZAS FILMU */

html.hlfs-modal-open,
body.hlfs-modal-open {
  overflow: hidden;
}

/* =====================================================
   TABLET
===================================================== */

@media (min-width: 768px) and (max-width: 1099px) {

  #hl-filmy-slubne {
    padding: 76px 0;
  }

  #hl-filmy-slubne .hlfs-container {
    width: calc(100% - 70px);
  }

  #hl-filmy-slubne .hlfs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 20px;
    row-gap: 39px;
  }

  #hl-filmy-slubne .hlfs-intro {
    padding-bottom: 40px;
  }

}

/* =====================================================
   MOBILE — 1 FILM POD DRUGIM
===================================================== */

@media (max-width: 767px) {

  #hl-filmy-slubne {
    padding: 61px 0 68px;
  }

  #hl-filmy-slubne .hlfs-container {
    width: calc(100% - 42px);
  }

  /* MALY WSTEP */

  #hl-filmy-slubne .hlfs-intro {
    padding: 0 0 33px;
  }

  #hl-filmy-slubne .hlfs-intro p {
    max-width: 340px;

    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0;
  }

  /* FILMY */

  #hl-filmy-slubne .hlfs-grid {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 31px;
  }

  #hl-filmy-slubne .hlfs-thumbnail {
    transform: none;
    transition: none;
  }

  #hl-filmy-slubne .hlfs-play {
    width: 57px;
    height: 57px;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #hl-filmy-slubne .hlfs-play svg {
    width: 22px;
    height: 22px;
  }

  #hl-filmy-slubne .hlfs-card-bottom {
    padding-top: 11px;
  }

  #hl-filmy-slubne .hlfs-card-bottom span {
    font-size: 8px;
    letter-spacing: .13em;
  }

  /* LINK YOUTUBE */

  #hl-filmy-slubne .hlfs-footer {
    margin-top: 50px;
    padding-top: 29px;
  }

  #hl-filmy-slubne .hlfs-footer p {
    max-width: 280px;

    font-size: 8px;
    line-height: 1.75;
    letter-spacing: .11em;
  }

  #hl-filmy-slubne .hlfs-youtube-link {
    width: 100%;

    margin-top: 18px;
    padding: 15px 12px;

    font-size: 9px;
    letter-spacing: .12em;
  }

  /* FULLSCREEN NA TELEFONIE */

  #hlfs-fullscreen .hlfs-fullscreen-inner {
    padding:
      calc(env(safe-area-inset-top, 0px) + 65px)
      0
      calc(env(safe-area-inset-bottom, 0px) + 18px);
  }

  #hlfs-fullscreen .hlfs-fullscreen-video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }

  #hlfs-fullscreen .hlfs-close {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 17px);

    width: 43px;
    height: 43px;
  }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

  #hl-filmy-slubne .hlfs-container {
    width: calc(100% - 36px);
  }

  #hl-filmy-slubne .hlfs-intro p {
    font-size: 12px;
  }

}

/* =====================================================
   ACCESSIBILITY
===================================================== */

#hl-filmy-slubne .hlfs-play:focus-visible,
#hlfs-fullscreen .hlfs-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#hl-filmy-slubne .hlfs-youtube-link:focus-visible {
  outline: 2px solid #364531;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

  #hl-filmy-slubne *,
  #hl-filmy-slubne *::before,
  #hl-filmy-slubne *::after,
  #hlfs-fullscreen * {
    transition: none;
    animation: none;
  }

}





/* ==========================================
   HOFFA LOVE — FILM
   MALY NADTYTUL NAD WSTEPEM
   DESKTOP + MOBILE
========================================== */

#hl-filmy-slubne .hlfs-intro {
  flex-direction: column;
}

#hl-filmy-slubne .hlfs-intro-label {
  display: block;

  margin-bottom: 15px;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.22em;

  color: #364531;
  text-align: center;
}

/* MOBILE */

@media (max-width: 767px) {

  #hl-filmy-slubne .hlfs-intro-label {
    margin-bottom: 12px;

    font-size: 8px;
    letter-spacing: 0.16em;
  }

}











/* ==========================================
   HOFFA LOVE — PLAY ULTRA TRANSPARENT
   TYLKO DESKTOP
   MOBILE BEZ ZMIAN
========================================== */

@media (min-width: 768px) {

  /* Prawie niewidoczne wypelnienie */

  #hl-filmy-slubne .hlfs-play {
    background: transparent !important;

    border: 1px solid rgba(255,255,255,.32) !important;

    color: rgba(255,255,255,.72) !important;

    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    box-shadow: none !important;
  }

  /* Po najechaniu — nadal przezroczysty */

  #hl-filmy-slubne .hlfs-player:hover .hlfs-play {
    background: rgba(255,255,255,.025) !important;

    border-color: rgba(255,255,255,.55) !important;

    color: rgba(255,255,255,.9) !important;
  }

}


/* AJAX load more */
#hl-filmy-slubne .hlfs-loadmore-wrap { display:flex; justify-content:center; padding-top:45px; }
#hl-filmy-slubne .hlfs-loadmore { font:500 10px/1.5 Inter,Arial,sans-serif; letter-spacing:.14em; padding:15px 26px; color:#364531; background:transparent; border:1px solid rgba(54,69,49,.46); cursor:pointer; transition:background .3s,color .3s,border-color .3s; }
#hl-filmy-slubne .hlfs-loadmore:hover { background:#364531; color:#fff; border-color:#364531; }
#hl-filmy-slubne .hlfs-loadmore:disabled { opacity:.6; cursor:wait; }
#hl-filmy-slubne .hlfs-loadmore:focus-visible { outline:2px solid #364531; outline-offset:4px; }
#hl-filmy-slubne .hlfs-loadmore-status { margin:12px 0 0; text-align:center; font-size:12px; }
