* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
    font-size: 14px;
}
a { text-decoration: none; }

header {
    background-color: #8e1a1a; 
    color: white;
    padding: 10px 0;
    display: grid;
    grid-template-areas: "logo" "navigace";
    gap: 10px;
}

.sekce-logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
    padding: 10px;
}
.sekce-logo h1 {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
}
.bublina {
    background-color: white;
    color: #8e1a1a;
    padding: 10px 10px 15px 15px;
    border-radius: 50% 50% 50% 0;
    line-height: 1;
    margin-right: 2px;
}
.koncovka { font-size: 1rem; margin-bottom: 5px; }

.sekce-menu {
    grid-area: navigace;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.sekce-menu ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    text-align: center;
}
.sekce-menu li {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.sekce-menu li:hover { background-color: #a52a2a; }
.sekce-menu i { font-size: 1.5rem; margin-bottom: 5px; }
.sekce-menu span { font-size: 0.75rem; text-transform: uppercase; }

main {
    max-width: 980px;
    margin: 20px auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
}

.bily-box {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

h2, h3 {
    color: #a33333;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.detail-filmu { display: flex; flex-wrap: wrap; position: relative; }
.plakat img { width: 120px; border: 1px solid #333; margin-right: 20px; }
.popis-text { flex: 1; font-size: 0.85rem; color: #666; }
.zanr { margin-bottom: 10px; }
.orig-nazev { color: #888; margin-bottom: 10px; font-style: italic; }
.cerveny-odkaz { color: #d14949; }
.cerveny-odkaz:hover { text-decoration: underline; }

.kolecko-hodnoceni {
    width: 80px; height: 80px;
    background-color: #a33333;
    border-radius: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}
.kolecko-hodnoceni .procenta { font-size: 1.8rem; font-weight: bold; }
.kolecko-hodnoceni .hlasy { font-size: 0.7rem; }

.panel-obsah {
    background-color: #e8e8e8;
    padding: 15px;
    text-align: center;
}
.vyber-kina select { width: 100%; padding: 5px; margin-bottom: 5px; background: #888; color: white; border: none; font-weight: bold; }
.tlacitko {
    display: block; width: 100%; padding: 6px 0;
    border: none; color: white; font-weight: bold; cursor: pointer; margin-bottom: 10px;
}
.tlacitko-cervene { background-color: #a33333; }
.tlacitko-sede { background-color: #777; font-size: 0.8rem; }
.info-premiera { color: #d14949; font-size: 0.85rem; margin: 10px 0; }
.male-odkazy a { color: #d14949; font-size: 0.8rem; margin: 0 3px; font-weight: bold; }

.mrizka-galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.mrizka-galerie img { width: 100%; height: auto; border: 1px solid #ccc; }

.text-obsah {
    background: #f0f0f0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.text-obsah img { width: 100%; }

@media (min-width: 768px) {
    header {
        grid-template-areas: "logo navigace";
        grid-template-columns: auto 1fr;
        padding: 0 10%;
        align-items: center;
    }
    .sekce-menu { border-top: none; }

    .sekce-menu ul {
        grid-template-columns: repeat(6, auto); 
        justify-content: end; 
        gap: 20px; 
    }

    main {
        grid-template-columns: repeat(12, 1fr);
        gap: 30px;
    }

    .sirka-8 { grid-column: span 8; }
    .sirka-4 { grid-column: span 4; }
    .sirka-12 { grid-column: span 12; }

    .kolecko-hodnoceni {
        position: absolute;
        top: -70px; 
        right: -40px;
        
        margin-top: 0;
    }

    .mrizka-galerie { grid-template-columns: repeat(4, 1fr); }
    .text-obsah { flex-direction: row; }
    .text-obsah .obrazek-vpravo { flex: 0 0 40%; }
}