* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "archivo-narrow", sans-serif;
    background-color: #111111;
    color: white;
    width: 100%;
    overflow-x: hidden;
}

header {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    background-color: #0000004d;
    backdrop-filter: blur(10px);
    position: fixed;
    align-items: center;
    height: 60px;
    z-index: 1000;
}

.logo-content img {
    width: 200px;

    transition: all 0.3s ease;
}

.logo-content img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.logo-content a {
    text-decoration: none;
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-toggle:hover {
    color: #EFBF04;
}

nav a {
    display: inline-block;
    text-decoration: none;
    color: white;
    margin: 0 15px;
    transition: 0.3s ease-in-out;
}

nav a:hover {
    transform: scale(1.1);
    color: #EFBF04;
}

.main-content {
    padding: 0 9%;
    padding-top: 80px;
}

.back {
    padding: 0 9%;
    text-decoration: none;
    color: white;
}

.back:hover {
    text-decoration: underline;
}

.back::after {
    text-decoration: none;
    color: white;
}

/* Hlavní obal přehrávače - drží poměr stran 16:9 jako video */
.custom-video-player-coming {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9; /* Zachová přesný poměr stran videa */
    margin: 50px auto;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Fotka na pozadí */
    /*background-image: url('../../The\ Documentos\ 2\ plakat.png');*/
    background-color: #0E1217;
    background-size: cover;
    background-position: center;
}

/* Tmavý závoj + rozmazání pozadí (Blur) */
.custom-video-player-coming::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 18, 23, 0.7); /* Ztmaví fotku pro lepší čitelnost textu */
    backdrop-filter: blur(8px);        /* Rozmaže fotku pod textem */
}

/* Text a ikona uprostřed */
.coming-overlay {
    position: relative;
    z-index: 2; /* Zajistí, že text bude NAD rozmazaným pozadím */
    text-align: center;
    padding: 20px;

    i {
        font-size: 3rem;
        color: #EFBF04;
        margin-bottom: 15px;
        display: block;
    }

    h3 {
        font-size: 1.8rem;
        font-weight: 700;
        color: white;
        text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    }
}

/* Responzivita pro mobily */
@media (max-width: 768px) {
    .coming-overlay i {
        font-size: 2.2rem;
    }

    .coming-overlay h3 {
        font-size: 1.3rem;
    }
}

/* Kontejner přehrávače */
.custom-video-player {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-video-player video {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* Ovládací lišta dole */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(14, 18, 23, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Zobrazení lišty při najetí myší na video */
.custom-video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.control-btn:hover {
    color: #EFBF04;
    transform: scale(1.1);
}

/* Ukazatel průběhu (Progress bar) */
.progress-area {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #EFBF04;
    border-radius: 10px;
    box-shadow: 0 0 10px #00e5ff88;
    transition: width 0.1s linear;
}

/* Čas a Hlasitost */
.time-display {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
    white-space: nowrap;
}

/* Přesné zarovnání ikony a posuvníku na střed */
.volume-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px;
    height: 6px;
    border-radius: 10px;
    background: linear-gradient(to right, #EFBF04 100%, #2a323d 100%);
    outline: none;
    cursor: pointer;
    margin: 0; /* Důležité: odstraní výchozí okraj prohlížeče */
}

/* Kolečko posuvníku (Chrome, Safari, Edge) */
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #EFBF04;
    box-shadow: 0 0 10px #00e5ffaa;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Kolečko posuvníku (Firefox) */
.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #EFBF04;
    box-shadow: 0 0 10px #00e5ffaa;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Skrytí kurzoru pro přehrávač I VŠECHNY jeho podprvky */
.custom-video-player.hide-controls,
.custom-video-player.hide-controls * {
    cursor: none !important;
}

/* Skrytí ovládací lišty */
.custom-video-player.hide-controls .video-controls {
    opacity: 0;
    pointer-events: none;
}

.informations {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;

    h1 {
        color: #EFBF04;
        font-weight: 800;
        font-size: 4rem;
    }
}

.description-title {
    text-align: center;
    color: #EFBF04;
    font-size: 2rem;
    margin-bottom: 15px;
}

.description {
    text-align: center;
    width: 900px;
}

.description-container {
    display: flex;
    flex-direction: column;                             
    justify-content: center;
    align-items: center;
}

.gallery {
    margin-top: 50px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    
    h3 {
        text-align: center;
        color: #EFBF04;
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

.imgs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;

    img {
        width: 320px;            /* Pevná šírka karty na desktope */
        max-width: 100%;         /* Aby na mobilech nepřetékal */
        aspect-ratio: 16 / 9;    /* Uzamkne poměr stran (můžeš zkusit i 4/3 nebo 1/1) */
        object-fit: cover;       /* Bezpečně ořízne obrázek bez deformace */
        object-position: center; /* Střed ořezu (můžeš dát např. center top) */
        border-radius: 15px;
        transition: 0.3s ease;
    }

    img:hover {
        transform: scale(1.05);
    }
}

.credits {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 50px;

    h3{
        text-align: center;
        color: #EFBF04;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .credits-container {
        display: flex;
        gap: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .credit {
        background-color: #0a0d11;
        text-align: center;
        padding: 12px;
        border-radius: 15px;

        transition: 0.3s ease;

        i {
            font-size: 2rem;
            color: #EFBF04;
        }

        h3 {
            font-size: 1rem;
            color: white;
            margin: 5px;
        }

        p {
            font-size: 0.8rem;
            color: #8f8f8f;
        }
    }

    .credit:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 30px #ff9d0010;
        cursor: default;
    }
}

.casts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 50px;

    h3{
        text-align: center;
        color: #EFBF04;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .cast-container {
        display: flex;
        gap: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cast {
        background-color: #0a0d11;
        text-align: center;
        padding: 12px;
        border-radius: 15px;

        transition: 0.3s ease;

        i {
            font-size: 2rem;
            color: #EFBF04;
        }

        h3 {
            font-size: 1rem;
            color: white;
            margin: 5px;
        }

        p {
            font-size: 0.8rem;
            color: #8f8f8f;
        }
    }

    .cast:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 30px #ff9d0010;
        cursor: default;
    }
}

.interesting-facts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 50px;

    h3{
        text-align: center;
        color: #EFBF04;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .fact-container {
        display: flex;
        gap: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: first baseline;
    }

    .fact {
        background-color: #0a0d11;
        text-align: center;
        align-items: center;
        display: flex;
        padding: 12px;
        border-radius: 15px;

        transition: 0.3s ease;
        width: 200px;


        p {
            font-size: 0.8rem;
            color: white;
        }
    }

    .fact:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 30px #ff9d0010;
        cursor: default;
    }
}

.references {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;

    h3{
        text-align: center;
        color: #EFBF04;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .reference-container {
        display: flex;
        gap: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .reference {
        background-color: #0a0d11;
        text-align: center;
        padding: 12px;
        border-radius: 15px;
        align-items: center;
        justify-content: center;
        display: flex;
        text-decoration: none;
        color: white;

        transition: 0.3s ease;

        i {
            font-size: 1.5rem;
            color: #0a0d11;
            display: inline-flex;
            width: 3rem;
            height: 3rem;
            margin-right: 10px;
            background-color: #EFBF04;
            justify-content: center;
            align-items: center;
            border-radius: 50%;
        }

        a {
            text-decoration: none;
            font-size: 1rem;
            color: white;
        }
        
        p {
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            margin: 0;
        }
    }

    .reference:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 30px #ff9d0010;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: white;
        cursor: pointer;
    }

    /* Cool vysouvací mobilní menu s roseným sklem */
    nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(14, 18, 23, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 1.8rem;
        margin: 0;
    }

    .logo-content h1 {
        font-size: 2rem;
    }
}

/* ==========================================
   OPRAVA ZÁKLADNÍCH PRVKŮ (Předchází přetékání)
   ========================================== */

/* Oprava pevné šířky popisu, aby na mobilech netrhal design */
.description {
    width: 100%;
    max-width: 900px;
    line-height: 1.6;
}


/* ==========================================
   RESPONZIVITA (Tablety a Mobily)
   ========================================== */

/* 1. TABLETY (Displeje do 992px) */
@media (max-width: 992px) {
    .main-content {
        padding: 80px 5% 40px 5%;
    }

    .informations h1 {
        font-size: 3rem;
    }

    .informations h3 {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .custom-video-player {
        margin: 30px auto;
    }

    .imgs {
        gap: 20px;
    }

    .imgs img {
        max-width: 45%; /* 2 obrázky vedle sebe na tabletu */
    }

    .credits-container,
    .cast-container,
    .fact-container {
        gap: 20px;
    }

    .fact {
        width: calc(33.333% - 14px); /* 3 kartičky na řádek */
    }
}


/* 2. MOBILY - VĚTŠÍ I MENŠÍ (Displeje do 768px) */
@media (max-width: 768px) {
    /* Mobilní navigace (Hamburger menu) */
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: white;
        cursor: pointer;
    }

    nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(14, 18, 23, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 1.8rem;
        margin: 0;
    }

    .logo-content h1 {
        font-size: 2rem;
    }

    /* Nadpisy a texty */
    .informations h1 {
        font-size: 2.2rem;
    }

    .informations h3 {
        font-size: 0.95rem;
    }

    .description-title,
    .gallery h3,
    .credits h3,
    .casts h3,
    .interesting-facts h3,
    .references h3 {
        font-size: 1.6rem;
    }

    .description {
        font-size: 0.95rem;
    }

    /* Úprava ovládací lišty videa na mobilu */
    .video-controls {
        padding: 10px 12px;
        gap: 10px;
    }

    .volume-slider {
        width: 45px;
    }

    .time-display {
        font-size: 0.75rem;
    }

    /* Karty štábu, účinkujících a faktů – 2 vedle sebe */
    .credit,
    .cast {
        width: calc(50% - 10px);
    }

    .fact {
        width: calc(50% - 10px);
    }

    .imgs img {
        max-width: 100%;
    }
}


/* 3. MALÉ MOBILY (Displeje do 480px) */
@media (max-width: 480px) {
    .main-content {
        padding: 75px 15px 30px 15px;
    }

    .informations h1 {
        font-size: 1.7rem;
    }

    .informations h3 {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Kompaktní přehrávač videa */
    .control-btn {
        font-size: 1rem;
    }

    .volume-area {
        gap: 4px;
    }

    .volume-slider {
        width: 35px;
    }

    /* Karty na plnou šířku pod sebou (1 na řádek) */
    .credit,
    .cast,
    .fact {
        width: 100%;
    }

    .gallery {
        margin-top: 35px;
    }

    .imgs {
        gap: 15px;
    }

    .imgs img {
        width: 100%;
        max-width: 100%;
    }

    .reference {
        width: 100%;
    }
}