:root {
    --bg: #0d0d0f;
    --bg-card: #17171a;
    --text: #f2f2f0;
    --text-muted: #9a9a9f;
    --accent: #f0f0f2;
    --accent-contrast: #0d0d0f;
    --border: #2a2a2e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.site-header {
    display: flex;
    justify-content: center;
    position: relative;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    padding: 20px 32px 44px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Logo - grafický wordmark místo prostého textu */
.logo-mark {
    display: inline-flex;
    flex-direction: column;
    line-height: 0.86;
    text-decoration: none;
    color: var(--text);
    transform-origin: left top;
}
.logo-line {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
}
.logo-line-accent {
    -webkit-text-stroke: 1.5px var(--text);
    color: var(--bg);
    font-size: 30px;
}
.logo-image {
    max-height: 44px;
    width: auto;
    display: block;
}

@media (max-width: 699px) {
    .site-header-inner {
        flex-direction: column;
        text-align: center;
        padding-bottom: 24px;
    }
    .logo-mark { align-items: center; }
}

@media (min-width: 700px) {
    .site-header-inner { padding: 28px 40px 56px; }
    .logo-mark {
        transform: rotate(-4deg);
    }
    .logo-line { font-size: 30px; }
    .logo-line-accent { font-size: 36px; }
    .logo-image { max-height: 56px; }
}

/* Hamburger - jen na mobilu, na desktopu žádné menu */
.menu-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu {
    display: none;
}

@media (max-width: 699px) {
    .menu-toggle { display: flex; }

    .mobile-menu {
        position: absolute;
        top: 100%;
        right: 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        flex-direction: column;
        min-width: 160px;
        z-index: 30;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
        display: block;
        padding: 12px 16px;
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid var(--border);
    }
    .mobile-menu a:last-child { border-bottom: none; }
    .mobile-menu a:hover { background: var(--bg); }
}

/* Animace - respektuje preferenci omezeného pohybu */
@media (prefers-reduced-motion: no-preference) {
    @keyframes pop-in {
        from { opacity: 0; transform: scale(0.8); }
        to { opacity: 1; transform: scale(1); }
    }
    @keyframes slide-from-left {
        from { opacity: 0; transform: translateX(-70px); }
        to { opacity: 1; transform: translateX(0); }
    }
    @keyframes slide-from-right {
        from { opacity: 0; transform: translateX(70px); }
        to { opacity: 1; transform: translateX(0); }
    }
    @keyframes fade-up {
        from { opacity: 0; transform: translateY(32px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .poster-tile {
        opacity: 0;
        animation: pop-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .program-item.slide-from-left {
        opacity: 0;
        animation: slide-from-left 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .program-item.slide-from-right {
        opacity: 0;
        animation: slide-from-right 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .contact-heading,
    .contact-venue,
    .contact-team-heading {
        opacity: 0;
        animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .contact-venue { animation-delay: 0.15s; }
    .contact-team-heading { animation-delay: 0.3s; }
    .contact-person {
        opacity: 0;
        animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

.section-heading-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 32px 24px;
}
.section-title {
    margin: 0;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Karusel plakáty <-> měsíční program */
.view-carousel {
    position: relative;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.view-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    width: 200%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-carousel.at-program .view-carousel-track {
    transform: translateX(-50%);
}

.view-slide {
    width: 50%;
    flex-shrink: 0;
    min-width: 0;
}

.carousel-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}
.carousel-arrow:hover { background: var(--accent); color: var(--accent-contrast); }

.arrow-right { right: 12px; }
.arrow-left { left: 12px; }

@media (min-width: 700px) {
    .carousel-arrow { display: flex; }
    .view-carousel:not(.at-program) .arrow-right { display: flex; }
    .view-carousel:not(.at-program) .arrow-left { display: none; }
    .view-carousel.at-program .arrow-left { display: flex; }
    .view-carousel.at-program .arrow-right { display: none; }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px 0;
    background: var(--bg);
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.view-carousel:not(.at-program) .carousel-dot:first-child,
.view-carousel.at-program .carousel-dot:last-child {
    background: var(--accent);
    border-color: var(--accent);
}

/* Plakátová nástěnka - dlaždice nalepené vedle sebe, žádné zaoblení, žádné mezery, ostré rohy */
.poster-wall {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    background: #000;
}

@media (min-width: 700px) {
    .poster-wall {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        margin: 0 auto;
    }
}

.poster-tile {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    cursor: pointer;
    outline: 1px solid rgba(255,255,255,0.06);
    background: #000;
}

.poster-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.15s ease;
}

.poster-tile:hover img {
    filter: brightness(1.08);
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-muted);
    background: #1a1a1c;
}

/* Fullscreen lightbox po kliknutí na plakát */
.poster-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
    cursor: pointer;
}

.poster-lightbox.open {
    display: flex;
}

.poster-lightbox img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 12px 48px rgba(0,0,0,0.7);
}

.lightbox-placeholder-text {
    display: none;
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    max-width: 600px;
}

.lightbox-ticket {
    display: none;
    margin-top: 24px;
}

/* Měsíční program */
.program-view { max-width: 1100px; margin: 0 auto; padding: 32px; }

.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.month-nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; }
.month-nav a:hover { color: var(--text); }
.month-nav h2 { margin: 0; text-transform: uppercase; letter-spacing: 1px; }

.program-list { list-style: none; margin: 0; padding: 0; }
.program-item {
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
    padding: 16px 0;
    align-items: center;
    cursor: pointer;
}
.program-item:hover { opacity: 0.85; }
.program-day {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    width: 64px;
    flex-shrink: 0;
    text-align: center;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.program-date { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.program-title { font-size: 17px; font-weight: 700; margin: 2px 0; }
.program-price { font-size: 13px; color: var(--text-muted); }

/* Detail akce */
.event-detail { max-width: 900px; margin: 0 auto; padding: 32px; }
.event-detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; }
.event-detail-poster img { width: 100%; }
.event-detail-info h1 { margin-top: 0; }
.event-detail-date { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 14px; }
.event-detail-price { font-size: 18px; margin: 12px 0; }
.event-detail-genre { color: var(--text-muted); }
.event-detail-description { line-height: 1.6; margin: 20px 0; }
.btn-ticket {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-contrast);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 700;
}
.back-link { margin-top: 24px; }
.back-link a { color: var(--text-muted); }

@media (max-width: 640px) {
    .event-detail-grid { grid-template-columns: 1fr; }
}

.empty-state { color: var(--text-muted); padding: 40px; text-align: center; }
.site-footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; }

/* Kontakt */
.contact-page { max-width: 1100px; margin: 0 auto; padding: 56px 32px 64px; }

.contact-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 28px;
}
.contact-heading-mark {
    width: 28px;
    height: 6px;
    background: var(--accent);
    transform: skewX(-20deg);
    flex-shrink: 0;
}
.contact-page h1 {
    margin: 0;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-venue {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 28px 32px;
    margin-bottom: 36px;
}
.contact-venue-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}
.contact-address { color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
.contact-venue-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.contact-link svg { color: var(--accent); flex-shrink: 0; }
.contact-link:hover { color: var(--accent); }

.contact-team-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0 0 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.contact-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.contact-person {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.15s ease;
}
.contact-person:hover { border-color: var(--accent); }

.contact-person-photo {
    aspect-ratio: 1 / 1;
    background: #1a1a1c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.contact-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-person-initials {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-muted);
}

.contact-person-body { min-width: 0; padding: 14px; }
.contact-person-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); font-weight: 700; }
.contact-person-name { font-size: 16px; font-weight: 700; margin: 2px 0 8px; }
.contact-link-small { font-size: 13px; font-weight: 600; color: var(--text-muted); display: flex; margin-top: 4px; }
.contact-link-small svg { color: var(--text-muted); }
.contact-link-small:hover, .contact-link-small:hover svg { color: var(--accent); }
