@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;700&display=swap');

/* ================= 1. ZÁKLAD A TYPOGRAFIE ================= */
html {
    scroll-behavior: smooth;
}

html, body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    height: 100%;
    background: linear-gradient(to right, #0B0B0B 0%, #2a2a2a 100%);
    color: white;
    /* Hlavní font pro PC */
    font-family: 'Bahnschrift', 'Bebas Neue', sans-serif !important;
}

/* Čitelnější texty pro dlouhé odstavce na PC */
.text p, .about-block p, .news-text {
    font-family: 'Inter', sans-serif;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* ================= 2. NAVIGACE ================= */
nav {
    height: 70px;
    background: transparent;
    width: 100%;
    margin: 0;
    position: relative;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    float: left;
}

.logo { height: 70px; }
.site-title { color: white; font-size: 30px; }

nav ul {
    width: auto;
    margin: 0;
    padding: 0;
    float: right;
    display: flex;
    list-style-type: none;
}

nav ul li {
    width: auto;
    box-sizing: border-box;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    margin: 15px 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.25s ease, background 0.25s ease;
}

nav ul li a:hover {
    color: #cccccc;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

/* ================= 3. HERO SEKCE (Úvodní video) ================= */
.hero {
    position: relative;
    width: 100vw;
    height: 71vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none; /* Zakáže klikání na YouTube přehrávač */
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw; /* Poměr stran 16:9 */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0.25) 40%, rgba(11,11,11,0.0) 70%);
    z-index: 2;
}

.hero-overlay {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-inner {
    width: 100%;
    max-width: 520px;
    margin-left: clamp(2rem, 8vw, 8rem);
}

.hero-inner h3 { font-size: 24px; margin: 0 0 0.5rem 0; }
.hero-inner h1 { font-size: 75px; line-height: 1.1; margin-bottom: 2rem; max-width: 480px; }

/* ================= 4. TLAČÍTKA ================= */
.hero-buttons { display: flex; gap: 1rem; }
.btn {
    padding: 0.8rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    display: inline-block;
}
.btn.primary { background: rgba(0,0,0,0.15); color: white; border: 1px solid rgba(255,255,255,0.6); }
.btn.primary:hover { background: #cc181e; border-color: rgba(255,255,255,0.6); }
.btn.secondary { border: 1px solid rgba(255,255,255,0.6); background: rgba(0,0,0,0.15); color: white; }
.btn.secondary:hover { background: #cc181e; border-color: rgba(255,255,255,0.6); }

/* ================= 5. TEXTOVÉ SEKCE A O NÁS ================= */
.text { text-align: center; width: 1000px; margin: 20px auto; }
.text h1 { font-size: 50px; margin-top: 75px; margin-bottom: 75px; letter-spacing: 2px; }
.text p { font-size: 23px; line-height: 1.6; opacity: 0.9; }

.inline-link { color: inherit; text-decoration: none; font-weight: inherit; cursor: pointer; }
.inline-link:hover { text-decoration: underline; }

.about-section { width: 100%; max-width: 900px; margin: 0 auto; text-align: left; }
.about-block { margin-bottom: 60px; }
.about-block h2 {
    font-size: 32px; color: white; margin-bottom: 15px; letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1); padding-bottom: 10px; text-align: center; 
}
.about-block p { font-size: 18px; line-height: 1.8; color: #cccccc; margin: 0 0 20px 0; }
.about-block strong { color: white; font-size: 22px; }

.about-img {
    width: 30%; max-width: 400px; height: auto; border-radius: 12px; display: block; 
    margin: 20px auto 0 auto; box-shadow: 0 5px 20px rgba(0,0,0,0.4); object-fit: cover;
}

/* Tým */
.team-grid { display: flex; gap: 50px; margin-top: 30px; }
.team-member { flex: 1; display: flex; text-align: center; flex-direction: column; justify-content: space-between; }
.team-member strong { display: block; text-align: center; font-size: 24px; margin-bottom: 10px; color: white; }
.team-img {
    width: 50%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px;
    margin-top: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.4); display: block; margin: 20px auto 0 auto;
}

/* ================= 6. PROJEKTY A VYKLÁPĚCÍ TEXT ================= */
.project-container { width: 100%; margin-top: 40px; margin-bottom: 60px; }
.project-card { display: flex; align-items: flex-start; justify-content: center; gap: 50px; width: 100%; }
.project-poster { flex: 0 0 35%; max-width: 400px; position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.project-poster img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.project-info { flex: 1; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; }

.title-row { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.title-row h2 { font-size: 35px; margin: 0; letter-spacing: 1px; }

/* TLAČÍTKO ZOBRAZIT VÍCE (Zde upravuješ velikost) */
.toggle-more {
    font-size: 18px; /* <-- TADY JE VELIKOST TLAČÍTKA PRO PC */
    color: white; cursor: pointer; font-weight: bold; background: rgba(0, 0, 0, 0.5); 
    padding: 6px 12px; border-radius: 6px; transition: all 0.3s ease;
}
.toggle-more:hover { background: rgba(0, 0, 0, 0.75); color: white; }

/* VYKLÁPĚCÍ TEXT Uvnitř (Zde upravuješ velikost) */
.more-content {
    max-height: 0; opacity: 0; overflow: hidden; padding: 0 30px; margin-top: 0; 
    border-top: 3px solid transparent; width: 100%; text-align: left; 
    background: rgba(255, 255, 255, 0.03); border-radius: 12px; box-sizing: border-box; transition: all 0.4s ease; 
}
.more-content.show { max-height: 800px; opacity: 1; padding: 25px 30px; margin-top: 30px; border-top: 3px solid rgba(0, 0, 0, 0.75); }
.more-content p {
    margin: 0; 
    font-size: 18px; /* <-- TADY JE VELIKOST TEXTU PRO PC */
    line-height: 1.8; color: #cccccc; 
}
.more-content strong { color: white; }

.project-info .genre { color: white; font-size: 18px; margin-top: 0; margin-bottom: 20px; font-weight: bold; }
.project-info .credits { list-style-type: none; padding: 0; margin: 0 0 30px 0; }
.project-info .credits li { font-size: 18px; line-height: 1.8; color: #cccccc; }
.project-info .credits strong { color: white; margin-right: 5px; }
.project-links { display: flex; gap: 15px; justify-content: flex-start; }

/* ================= 7. GALERIE FOTEK ================= */
.project-gallery {
    width: 100%; max-width: 1000px; margin: 40px auto 0 auto; position: relative;
    border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.project-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); 
    color: white; border: none; font-size: 24px; padding: 12px 18px; cursor: pointer; z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease; border-radius: 8px;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.75); transform: translateY(-50%) scale(1.1); }
#prev-slide { left: 10px; }
#next-slide { right: 10px; }
.progress-container { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); position: absolute; bottom: 0; left: 0; }
#progress-bar { width: 0%; height: 100%; background: #1e5bff; }

/* ================= 8. KONTAKT A MAIL ================= */
.mini-logo { height: 35px; width: auto; vertical-align: middle; margin-right: 15px; }
.copy-container { position: relative; display: inline-block; }
.copy-mail { cursor: pointer; }
.copy-tooltip {
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5); color: white; padding: 6px 12px; border-radius: 6px;
    font-size: 14px; font-weight: bold; white-space: nowrap; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; pointer-events: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.copy-tooltip::after {
    content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px;
    border-width: 6px; border-style: solid; border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent; 
}
.copy-tooltip.show { opacity: 1; visibility: visible; bottom: 140%; }

/* ================= 9. ADMIN A NOVINKY ================= */
.admin-panel { background: #1a1a1a; padding: 30px; border-radius: 12px; margin-bottom: 50px; border: 1px solid #333; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: #ccc; }
.form-group input[type="text"], .form-group textarea, .form-group input[type="password"] { width: 100%; padding: 12px; background: #2a2a2a; color: white; border: 1px solid #444; border-radius: 6px; box-sizing: border-box; font-family: inherit; }
.form-group textarea { height: 120px; resize: vertical; }
.form-group input[type="file"] { color: #ccc; }
.link-row { display: flex; gap: 15px; }
.link-row .form-group { flex: 1; }
.btn-submit { background: #cc181e; color: white; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; font-weight: bold; font-size: 16px; transition: background 0.3s ease; }
.btn-submit:hover { background: #ff1e26; }
.btn-danger { background: transparent; border: 1px solid #666; color: #888; padding: 12px 20px; border-radius: 6px; cursor: pointer; margin-left: 10px; }
.btn-danger:hover { color: white; border-color: white; }

.login-panel { background: #1a1a1a; padding: 30px; border-radius: 12px; margin: 100px auto; max-width: 400px; text-align: center; border: 1px solid #333; }
.login-panel button { background: #cc181e; color: white; border: none; padding: 12px 25px; border-radius: 6px; cursor: pointer; margin-top: 15px; font-weight: bold; width: 100%;}
.logout-btn { background: #444; color: white; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; margin-bottom: 20px; float: right; }

.news-feed { display: flex; flex-direction: column; gap: 40px; margin-bottom: 60px; }
.news-card { background: rgba(255, 255, 255, 0.03); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.4); text-align: left; }
.news-img-container { width: 100%; max-height: 400px; overflow: hidden; background: #000; }
.news-img-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-content-wrapper { padding: 30px; border-top: 3px solid #cc181e; position: relative; }
.news-date { font-size: 14px; color: #888; margin-bottom: 10px; display: block; }
.news-title { font-size: 28px; margin: 0 0 15px 0; color: white; padding-right: 40px; }
.news-text { font-size: 18px; line-height: 1.6; color: #ccc; margin-bottom: 25px; }
.news-btn { display: inline-block; padding: 10px 20px; background: rgba(0,0,0,0.5); color: white; text-decoration: none; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; font-size: 14px; transition: all 0.3s ease; }
.news-btn:hover { background: #cc181e; border-color: rgba(255,255,255,0.6); }

.options-container { position: absolute; top: 20px; right: 20px; }
.dots-btn { background: rgba(255,255,255,0.05); color: white; border: none; font-size: 20px; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.dots-btn:hover { background: rgba(255,255,255,0.2); }
.dropdown-menu { display: none; position: absolute; top: 40px; right: 0; background: #222; border: 1px solid #444; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.8); min-width: 120px; z-index: 100; }
.dropdown-menu.show { display: block; }
.dropdown-item { padding: 12px 15px; color: white; cursor: pointer; display: block; font-size: 14px; border-bottom: 1px solid #333; }
.dropdown-item:hover { background: #333; }
.dropdown-item.delete { color: #ff4d4d; }
.dropdown-item.delete:hover { background: #cc181e; color: white; }

/* ================= 10. MOBILY A TABLETY (Vše sjednoceno) ================= */
/* ================= 10. MOBILY A TABLETY ================= */
@media (max-width: 900px) {
    
    /* 1. KONEC CAPS-LOCK HUMUSU: Čistý a moderní font pro běžné texty */
    body, p, a, li, button, input, textarea, .sub-text, .news-text, .genre, .credits li {
        font-family: 'Inter', sans-serif !important;
        letter-spacing: 0px;
    }

    /* Filmový font si necháme JENOM na velké nadpisy a logo */
    h1, h2, h3, .site-title, .main-heading {
        font-family: 'Bebas Neue', sans-serif !important;
        letter-spacing: 1px;
    }

    /* 2. ZÁKLAD A SCROLLOVÁNÍ */
    html { scroll-behavior: smooth !important; }
    body { overflow-x: hidden; }

    /* 3. ODSAZENÍ A VELIKOSTI TEXTŮ */
    .text { 
        width: 85% !important; margin: 0 auto; 
    }

    .text h1, .main-heading { 
        font-size: 30px; margin-top: 35px; margin-bottom: 25px; text-align: center; 
    }
    .about-block h2 { 
        font-size: 18px; text-align: center; 
    }
    
    /* Odstavce teď můžou být menší, protože Inter je perfektně čitelný */
    .text p, .about-block p, .news-text, .sub-text { font-size: 11px; line-height: 1.6; text-align: left; }

    /* 4. KONTAKT */
    #kontakt { text-align: center; }
    #kontakt ~ p { text-align: center !important; font-size: 11px !important; line-height: 1.8; }
    #kontakt ~ p img.mini-logo { height: 18px; margin-right: 8px; }

    /* 5. TÝM */
    .team-grid { flex-direction: row; justify-content: center; gap: 15px; margin-top: 20px; }
    .team-member { flex: 1; min-width: 0; }
    .team-img { width: 100%; max-width: 130px; height: auto; margin: 0 auto; }
    .team-member strong { font-size: 14px; margin-bottom: 5px; text-align: center; display: block; font-family: 'Inter', sans-serif !important; }

    /* 6. PROJEKTY */
    .project-card { flex-direction: column; align-items: center; gap: 20px; }
    .project-poster { width: 65%; flex: none; }
    .project-info { width: 100%; text-align: center; align-items: center; }
    .title-row { flex-direction: column; gap: 10px; }
    .project-info h2 { font-size: 30px; text-align: center; } 
    .project-info .genre { font-size: 12px; margin-bottom: 15px; text-align: center; }
    .project-info .credits li { font-size: 11px; line-height: 1.5; text-align: center; }
    .project-links { justify-content: center; }

    /* ZOBRAZIT VÍCE NA MOBILU (Tady upravuješ velikosti) */
    .toggle-more { font-size: 14px !important; text-transform: uppercase; } 
    .more-content p { font-size: 14px !important; line-height: 1.6; } 

    /* 7. HERO VIDEO (Oprava ořezu) */
    .hero { height: 50vh; width: 100%; }
    .video-background iframe {
        min-width: 100% !important; min-height: 100% !important;
        width: 250vw !important; height: 100% !important;
        left: 50% !important; top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    .hero-inner { margin-left: 0; width: 100%; text-align: center; padding: 0 15px; }
    .hero-inner h1 { font-size: 45px; margin-bottom: 15px; text-align: center; } 
    .hero-inner h3 { font-size: 16px; text-align: center; font-family: 'Inter', sans-serif !important; }
    .hero-buttons { justify-content: center; }

    /* 8. NAVIGACE (Vše na jednom řádku s filmovým fontem) */
    nav { flex-direction: column; height: auto; padding: 10px 0; overflow: hidden; }
    .nav-left { float: none; justify-content: center; margin-bottom: 5px; }
    .site-title { font-size: 26px; } 
    .logo { height: 40px; } 
    
    nav ul { 
        float: none; 
        display: flex;
        flex-wrap: nowrap; /* Zakáže zalamování na více řádků */
        justify-content: center; 
        width: 100%;
        padding: 0; 
        margin: 0; 
        overflow-x: auto; /* Umožní horizontální scrollování, pokud je displej extrémně úzký */
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; 
    }
    
    nav ul::-webkit-scrollbar { display: none; } /* Skryje posuvník pro čistý vzhled */

    nav ul li { margin: 0 4px; }

    nav ul li a { 
        font-family: 'Bebas Neue', sans-serif !important; /* Vrací menu filmový nádech */
        font-size: 15px !important; 
        letter-spacing: 1px;
        padding: 5px; 
        white-space: nowrap; /* Ochrana proti zlomení dlouhých slov, jako je "PŘIPRAVUJEME" */
    }
}