:root {
    --main-font: 'Roboto', sans-serif;
    --title-font: 'Oswald', sans-serif;
    --text-color: #ffffff;
    --background-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}


/* Spoločné štýly pre hlavičku a menu - rovnaké ako na ostatných podstránkach */

/* === HLAVIČKA === */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.subpage-header {
    background-color: var(--background-color);
}

/* === KONTAKTNÝ DROPDOWN V HLAVIČKE === */

/* Wrapper pre umiestnenie */
.contact-wrapper {
    position: relative; /* Dôležité pre umiestnenie drop-downu */
}

/* Štýl pre samotné drop-down okno */
.contact-dropdown {
    position: absolute;
    top: 100%; /* Umiestni hneď pod tlačidlo */
    right: 0;
    min-width: 220px;
    padding: 1rem 1.5rem;
    margin-top: 40px; /* Malá medzera pod tlačidlom */
    background-color: #1a1a1a; /* Tmavé pozadie pre kontrast */
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    
    /* Prechod pre animáciu */
    opacity: 0; 
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Zobrazenie pop-upu po aktivácii triedy 'active' cez JS */
.contact-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-dropdown .contact-name {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-color); /* Biela farba */
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

.contact-dropdown .contact-phone {
    display: block;
    text-decoration: none;
    color: var(--text-color); 
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-dropdown .contact-phone:hover {
    color: #999; /* Jemné stmavnutie pri hoveri */
}

.menu-toggle {
    padding: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.custom-menu-icon {
    position: relative;
    width: 30px;
    height: 14px;
}

.custom-menu-icon::before,
.custom-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.custom-menu-icon::before {
    top: 0;
    width: 100%;
}

.custom-menu-icon::after {
    bottom: 0;
    width: 60%;
}

.brand-logo-top {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 60px;
}

.tickets-btn {
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}

.tickets-btn:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background-color: rgba(0, 0, 0, 0.9);
}

.overlay-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    padding: 8rem 3rem;
}


/* === PÄTA === */

footer {
    width: 100%;
    z-index: 10;
    padding: 2rem;
}

.trailers-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.trailers-section span {
    font-weight: 700;
    white-space: nowrap;
}

.trailer-thumbnails {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.thumbnail {
    width: 200px;
    height: 112px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: var(--text-color);
}


/* === BOČNÉ PRVKY (SOCIÁLNE SIETE) === */

.side-elements {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}


/* === OVERLAY MENU === */

.overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    background-color: rgba(0, 0, 0, 0.9);
}

.overlay-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    padding: 8rem 3rem;
}

.menu-nav a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 0;
    text-decoration: none;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.overlay-menu.active .menu-nav a {
    opacity: 1;
    transform: translateY(0);
}

.menu-nav a img {
    width: 120px;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-nav a:hover img {
    transform: translateX(-15px);
}

.menu-nav a::after {
    content: attr(data-text);
    position: absolute;
    left: 140px;
    top: 50%;
    transform: translate(-15px, -50%);
    font-family: var(--main-font);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-nav a:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.overlay-menu.active .menu-nav a:nth-child(1) {
    transition-delay: 0.1s;
}

.overlay-menu.active .menu-nav a:nth-child(2) {
    transition-delay: 0.2s;
}

.overlay-menu.active .menu-nav a:nth-child(3) {
    transition-delay: 0.3s;
}

.overlay-menu.active .menu-nav a:nth-child(4) {
    transition-delay: 0.4s;
}

.overlay-menu.active .menu-nav a:nth-child(5) {
    transition-delay: 0.5s;
}


/* Animácia ikonky na krížik */

body.menu-open .custom-menu-icon::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.menu-open .custom-menu-icon::after {
    bottom: 50%;
    width: 100%;
    transform: translateY(50%) rotate(-45deg);
}

.side-elements {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: transform 0.3s;
}


/* ŠTÝLY ŠPECIFICKÉ PRE HEAT CHECK */

.heatcheck-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dva stĺpce s rovnakou šírkou */
    height: 100vh;
    /* Výška na celú obrazovku */
    padding-top: 100px;
    /* Priestor pre fixnú hlavičku (uprav podľa výšky tvojej hlavičky) */
    box-sizing: border-box;
}


/* ĽAVÁ STRANA S TEXTOM */

.heatcheck-text-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 4rem;
    height: calc(100vh - 100px);
    /* Plná výška mínus výška hlavičky */
    position: sticky;
    /* KĽÚČOVÁ VLASTNOSŤ: "Prilepí sa" počas skrolovania pravej strany */
    top: 100px;
    /* Pozícia pod hlavičkou */
}

.heatcheck-title {
    font-family: var(--title-font);
    font-size: clamp(2.5rem, 6vw, 5rem);
    /* Responzívna veľkosť písma */
    text-transform: uppercase;
    line-height: 1.2;
    text-align: left;
}


/* PRAVÁ STRANA S VIDEAMI */

.heatcheck-videos-section {
    overflow-y: auto;
    /* KĽÚČOVÁ VLASTNOSŤ: Umožňuje skrolovanie iba tejto časti */
    height: calc(100vh - 100px);
    padding: 2rem 4rem;
}


/* Skrytie scrollbaru, ale zachovanie funkčnosti */

.heatcheck-videos-section::-webkit-scrollbar {
    display: none;
}

.heatcheck-videos-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.short-video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centrovanie obsahu na stred */
    margin-bottom: 5rem;
}
.short-video-title {
    font-family: var(--title-font);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.short-video-wrapper {
    position: relative;
    /* Pomer strán pre YouTube Short (9:16) */
    width: 320px;
    /* Typická šírka pre vertikálne video */
    padding-top: 568.88px;
    /* (16 / 9) * 320px - aproximácia, presnejšie je 568.88 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.short-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Responzivita pre mobilné zariadenia */

@media (max-width: 900px) {
    .heatcheck-container {
        grid-template-columns: 1fr;
        /* Stĺpce pôjdu pod seba */
    } 
    .heatcheck-text-section {
        position: static;
        /* Zrušíme "prilepenie" */
        height: auto;
        padding: 2rem 1.5rem;
        text-align: center;
}

.short-video-wrapper {
    width: 100%; /* Zabezpečí, že zaberie celú dostupnú šírku */
    max-width: 100%; /* Zväčšená maximálna šírka (prípadne odstráň pre ešte väčšie) */
    margin: 0 auto; /* Vycentruje video v sekcii */
    padding-top: 177.77%;
}
}

@media (max-width: 768px) {
    /* === ÚPRAVA: Hlavička s presahujúcim logom a tmavším gradientom === */
    header {
        /* Zväčšený padding, aby dal priestor väčšiemu logu */
        padding: 2.5rem 1rem;
        justify-content: space-between;
        /* Kľúčová zmena: Tmavší gradient */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
        border-bottom: none;
    }
    .brand-logo-top {
        /* Kľúčová zmena: Výrazne väčšie logo, ktoré bude presahovať */
        height: 70px;
    }
    /* ==================================================================== */
    .tickets-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .side-elements {
        display: none;
    }
    .menu-nav {
        padding: 6rem 1.5rem;
        align-items: center;
    }
    .menu-nav a {
        text-align: center;
    }
    .menu-nav a:hover img {
        transform: none;
    }
    .menu-nav a::after {
        display: none;
    }
    .short-video-title {
    font-family: var(--title-font);
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}
}

/* Prispôsobenie HTML štruktúry pre správne zarovnanie */
/* Váš short-video-item DIV z PHP by teraz mal vyzerať takto: */

.video-and-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;            /* Medzera medzi videom a tlačidlom */
    margin-top: 1.5rem;
    width: 320px;         /* Zhoda so šírkou .short-video-wrapper */
    margin-left: auto;    /* Vycentrovanie celého bloku */
    margin-right: auto;
}


.purchase-btn {
    display: block;       /* Zmeníme na block, aby lepšie pracovalo so šírkou */
    width: 100%;          /* Roztiahnutie na 100% šírky kontajnera (320px) */
    box-sizing: border-box; /* Zabezpečí, že border nepridá extra pixely k šírke */
    text-align: center;
    padding: 0.8rem 0;    /* Padding zhora a zdola, šírka je fixná na 100% */
    
    /* Ponechaj pôvodné dekorácie */
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    margin-top: 10px;
    font-weight: 700;
    font-family: var(--title-font);
    transition: background-color 0.3s, color 0.3s;
    
    /* Uisti sa, že staré rotácie sú preč */
    transform: none;
    position: static;
}

.purchase-btn:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* Responzivita: Na mobiloch zarovnáme tlačidlo pod video */
@media (max-width: 900px) {
    .video-and-button-container {
        flex-direction: column; /* Tlačidlo pod videom */
        gap: 1.5rem;
        width: 90%; /* Zmenšíme šírku kontajnera na 90% */
        margin: 0 auto; /* Centrovanie kontajnera */
    }
    .purchase-btn {
        transform: none; /* Zrušíme rotáciu */
        position: static;
        left: auto;
        width: 100%; /* Rozťaháme na šírku mobilného videa */
        max-width: 100%; /* Zabezpečíme max šírku ako má wrapper (pre mobil) */
        text-align: center;
    }
}

/* === NOVÁ PÄTA (FOOTER) === */

.custom-footer {
    background-color: #000;
    color: var(--text-color);
    padding: 6rem 2rem 2rem 2rem;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--main-font);
}

/* --- CTA Sekcia (Vrch) --- */
.footer-cta-section {
    text-align: center;
    margin-bottom: 6rem;
}

.footer-cta-title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 5vw, 4rem); /* Responzívna veľkosť */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.footer-cta-title .highlight-text {
    color: #888; /* Jemná šedá pre druhý riadok, ako na obrázku */
    transition: color 0.3s;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px; /* "Pill" tvar tlačidla */
    font-family: var(--main-font);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s;
}

.footer-cta-btn:hover {
    transform: scale(1.05);
    background-color: #e0e0e0;
}

/* --- Stredná časť (Rozloženie) --- */
.footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Zarovnanie na spodok */
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 3rem;
}

/* Ľavá strana */
.footer-left {
    max-width: 400px;
}

.footer-brand {
    font-family: var(--title-font);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: #aaa;
    transform: translateY(-3px);
}

/* Pravá strana */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}

.back-to-top-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: transform 0.3s, background-color 0.3s;
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    background-color: #e0e0e0;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

/* Hover efekt pre linky */
.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* --- Spodná časť (Linka a Copyright) --- */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

/* --- Responzivita pre mobilné zariadenia --- */
@media (max-width: 768px) {
    .custom-footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-main-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        align-items: flex-start;
        width: 100%;
        flex-direction: column-reverse; /* Tlačidlo hore pod menu */
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top-btn {
        align-self: flex-end; /* Tlačidlo na mobiloch vpravo */
    }
}