/* =========================================
   PODSTRONA FILMY
   (hero korzysta z .manor-lead; mapa z .hr-mapa / .hr-pin z CSS Kontaktu)
   ========================================= */

/* --- HERO --- */
.filmy-hero {
    position: relative;
    overflow: hidden;
}
.filmy-hero.vc_row::before {
    content: "Filmy" !important;
    display: block !important;
    position: absolute !important;
    right: -10px;
    bottom: 30px;
    width: auto !important;
    height: auto !important;
    font-family: initial;
    font-style: italic;
    font-size: 200px;
    line-height: 1;
    color: rgba(180, 88, 52, 0.10);
    pointer-events: none;
    z-index: 1;
}
.filmy-hero .vc_column_container {
    position: relative;
    z-index: 2;
}

/* --- PRZYCISK PLAY (wspólny) --- */
.hr-film-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    background: rgba(180, 88, 52, 0.92);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
    transition: transform 0.3s, background 0.3s;
    pointer-events: none;
}
.hr-film-play::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 21px;
    border-style: solid;
    border-width: 13px 0 13px 20px;
    border-color: transparent transparent transparent #fff;
}

/* --- FILM WYRÓŻNIONY (hero) --- */
.hr-film-duzy {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(90, 40, 20, 0.25);
}
.hr-film-duzy img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}
.hr-film-duzy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 23, 20, 0) 45%, rgba(29, 23, 20, 0.85) 100%);
}
.hr-film-duzy .hr-film-play {
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    z-index: 2;
}
.hr-film-duzy .hr-film-play::after {
    left: 38px;
    top: 30px;
    border-width: 18px 0 18px 28px;
}
.hr-film-duzy:hover img {
    transform: scale(1.04);
}
.hr-film-duzy:hover .hr-film-play {
    transform: scale(1.08);
    background: #b45834;
}
.hr-film-duzy-podpis {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 26px;
    z-index: 2;
}
.hr-film-duzy-podpis .hr-film-lok {
    color: #d9a27f;
}
.hr-film-duzy-tytul {
    display: block;
    font-family: 'Bodoni Moda', serif;
    font-size: 26px;
    line-height: 34px;
    color: #fff;
}

/* --- FILTRY --- */
.hr-filmy-filtry {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
}
.hr-filmy-filtr {
    border: 1px solid #d9b9a8;
    border-radius: 30px;
    padding: 8px 22px;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #963109;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.25s;
}
.hr-filmy-filtr:hover {
    border-color: #b45834;
}
.hr-filmy-filtr.aktywny {
    background: linear-gradient(90deg, #b45834 0%, #944222 100%);
    border-color: transparent;
    color: #fff;
}

/* --- SIATKA FILMÓW --- */
.hr-filmy-siatka {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.hr-film {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(120, 60, 30, 0.10);
    transition: transform 0.3s, box-shadow 0.3s;
}
.hr-film:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(120, 60, 30, 0.18);
}
.hr-film.ukryty {
    display: none;
}
.hr-film-kadr {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1d1714;
}
.hr-film-kadr img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ucina czarne pasy miniatur YouTube */
    transition: transform 0.6s;
}
.hr-film:hover .hr-film-kadr img {
    transform: scale(1.05);
}
.hr-film:hover .hr-film-play {
    transform: scale(1.08);
    background: #b45834;
}
.hr-film-licznik {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(29, 23, 20, 0.85);
    color: #e8c9a6;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.hr-film-tresc {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 24px 24px;
    border-top: 3px solid #b45834;
}
.hr-film-lok {
    display: block;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    color: #963109;
}
.hr-film-tytul {
    margin: 6px 0 6px;
    font-size: 20px;
    line-height: 27px;
}
.hr-film-opis {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hr-film-ujecia {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
}
.hr-film-ujecie {
    border: 1px solid #e5d2cb;
    border-radius: 20px;
    padding: 4px 12px 4px 26px;
    background: #f5f4f2;
    color: #1d1714;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
}
.hr-film-ujecie::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 9px;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent #b45834;
}
.hr-film-ujecie:hover {
    background: #b45834;
    border-color: #b45834;
    color: #fff;
}
.hr-film-ujecie:hover::before {
    border-left-color: #fff;
}
.hr-filmy-brak {
    text-align: center;
    color: #963109;
}

/* --- OKNO ODTWARZACZA --- */
.hr-okno {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.hr-okno.otwarte {
    display: flex;
}
.hr-okno-tlo {
    position: absolute;
    inset: 0;
    background: rgba(29, 23, 20, 0.92);
    backdrop-filter: blur(4px);
}
.hr-okno-ramka {
    position: relative;
    width: min(1100px, 100%);
}
.hr-okno-tytul {
    font-family: 'Bodoni Moda', serif;
    font-size: 24px;
    line-height: 32px;
    color: #fff;
    margin: 0 50px 14px 0;
}
.hr-okno-wideo {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hr-okno-wideo iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.hr-okno-nagrania {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.hr-okno-nagrania button {
    border: 1px solid rgba(186, 140, 95, 0.5);
    border-radius: 20px;
    padding: 6px 16px;
    background: transparent;
    color: #e8c9a6;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
}
.hr-okno-nagrania button.aktywny,
.hr-okno-nagrania button:hover {
    background: #b45834;
    border-color: #b45834;
    color: #fff;
}
.hr-okno-zamknij {
    position: absolute;
    right: 0;
    top: -6px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(186, 140, 95, 0.6);
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 38px;
    cursor: pointer;
}
.hr-okno-zamknij:hover {
    background: #b45834;
    border-color: #b45834;
}
html.hr-okno-blokada {
    overflow: hidden;
}

/* --- MAPA REALIZACJI: dymek z miniaturą --- */
.hr-mapa-film {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #1d1714;
}
.hr-mapa-film img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hr-mapa-film .hr-film-play {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.25);
}
.hr-mapa-film .hr-film-play::after {
    left: 18px;
    top: 14px;
    border-width: 9px 0 9px 14px;
}

/* --- MOBILE --- */
@media (max-width: 991px) {
    .filmy-hero.vc_row::before {
        font-size: 120px;
    }
    .hr-filmy-siatka {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .hr-filmy-siatka {
        grid-template-columns: minmax(0, 1fr);
    }
    .hr-film-duzy-tytul {
        font-size: 20px;
        line-height: 26px;
    }
    .hr-okno {
        padding: 15px;
    }
    .hr-okno-tytul {
        font-size: 18px;
        line-height: 24px;
    }
}
/* #### koniec FILMY */
