


/* ==========================================================================
   FESTIVALS SUBPAGE
   ========================================================================== */

.festivals-body {
    background-color: #020202;
    background-image: linear-gradient(rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.94)), url('1.png');
    background-size: cover;
    background-attachment: fixed;
    color: #e0e0e0;
    min-height: 100vh;
}

.festivals-stage {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 25px 80px 25px;
    display: flex;
    flex-direction: column;
}

.festivals-header {
    border-bottom: 2px solid #222;
    padding-bottom: 25px;
    margin-bottom: 50px;
}

.festivals-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #ffffff;
    line-height: 1;
}

.festivals-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.festival-card {
    background: rgba(7, 7, 7, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    display: flex;
    gap: 50px;
    align-items: center;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.festival-card:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(14, 14, 14, 0.95);
    transform: translateX(5px);
}

.festival-logo-box {
    
    height: auto;
    
    align-items: center;

    flex-shrink: 0;
}

.festival-logo-img {
    max-width: 100%;
    max-height: 120px;
    
    filter: none !important;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.festival-card:hover .festival-logo-img {
    opacity: 1;
    transform: scale(1.03);
}

.festival-content-col {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.festival-outlet-name {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.festival-links-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.festival-link-entry {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.festival-entry-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.festival-screenings-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.festival-screening-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #b0b0b0;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.festival-url-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #888888;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.festival-url-link:hover {
    color: #ffffff;
    padding-left: 4px;
    text-decoration: underline;
}

@media (max-width: 800px) {
    .festival-card {
        flex-direction: column;
        gap: 25px;
        padding: 30px 25px;
        align-items: flex-start;
    }

    .festival-logo-box {
        width: 100%;
        max-width: 260px;
    }
}
.festival-read-more-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #888888;
    text-decoration: none;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.festival-read-more-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* NAVIGATION */
.main-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 12px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 100;
     /* Półprzezroczysty czarny pasek z rozmyciem tła pod spodem */
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Delikatne odcięcie dolnej krawędzi w klimacie brutalizmu */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav a {
    font-family: 'Space Mono', monospace;
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #fff;
}

/* PRZEŁĄCZNIK JĘZYKA / LANGUAGE SWITCHER */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    user-select: none;
}

.lang-switcher a {
    color: #777;
    text-decoration: none;
    font-size: 0.75rem !important;
    letter-spacing: 1.5px !important;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.lang-switcher a:hover {
    color: #fff !important;
}

.lang-switcher .lang-active {
    color: #fff !important;
    font-weight: 700;
}

.lang-switcher .lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

/* ==========================================================================
   MOBILE MENU & HAMBURGER - PRESS SUBPAGE (TWARDY RESET)
   ========================================================================== */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 20px;                     /* Przesunięcie na lewą stronę */
    transform: none;               /* Usunięcie translateX(-50%) */
    width: 44px;
    height: 44px;
    background: rgba(12, 12, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    cursor: pointer;
    
    padding: 0;
    margin: 0;
    font-size: 0;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-sizing: border-box;

    place-content: center;
    gap: 4px;                      /* Zmniejszony gap, by 3 kreski leżały proporcjonalnie */
    touch-action: manipulation;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.mobile-nav-toggle:hover {
    border-color: #ffffff;
    background: rgba(22, 22, 22, 0.98);
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    display: block;
    pointer-events: none;
    border-radius: 1px;
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Animacja w krzyżyk [X] dla 3 kresek: środkowa znika, skrajne tworzą ramiona */
.mobile-nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 950px) {
    .mobile-nav-toggle {
        display: grid !important;
    }

    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(0, 0, 0, 0.97) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 18px !important;
        z-index: 2800 !important;
        padding: 80px 20px 40px 20px !important;
        box-sizing: border-box !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-8px) !important;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s !important;
    }

    
    .main-nav .lang-switcher {
        margin-left: 0 !important;
        margin-top: 15px !important;
        padding: 8px 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
    .main-nav .lang-switcher a,
    .main-nav .lang-switcher .lang-active {
        font-size: 1.1rem !important;
        letter-spacing: 3px !important;
    }

    .main-nav.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .main-nav a {
        font-family: 'Space Mono', monospace !important;
        font-size: 1.1rem !important;
        letter-spacing: 3px !important;
        color: #999 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        padding: 6px 12px !important;
        transition: color 0.2s ease !important;
    }

    .main-nav a:hover,
    .main-nav a:active {
        color: #fff !important;
    }
}

@media (max-width: 950px) {
    #trailer {
        /* Wartość określa, o ile wyżej ma się zatrzymać scroll */
        scroll-margin-top: 80px; 
    }
}