﻿/* =========================================
   ZÁKLADNÍ NASTAVENÍ A PÍSMA
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { 
    scroll-behavior: smooth; 
    font-family: 'Montserrat', sans-serif; 
    color: #333; 
    overflow-x: hidden; 
    width: 100%;
}

body { 
    line-height: 1.6; 
    overflow-x: hidden; 
    width: 100%;
    position: relative;
    /* ZDE JSME ODSTRANILI hyphens: auto (dělení slov), aby to neničilo tabulky */
}

section { padding: 80px 20px; }

.admin-editable-block {
    position: relative;
}

.admin-inline-edit {
    position: absolute;
    top: -12px;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(44, 62, 80, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #2c3e50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 25;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.admin-inline-edit:hover,
.admin-inline-edit:focus-visible {
    transform: translateY(-2px);
        box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.18), 0 9px 20px rgba(231, 76, 60, 0.35);
        color: #e74c3c;
}

#uvod .admin-inline-edit {
    top: 26px;
    right: 26px;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(18, 18, 18, 0.62);
    color: #ffffff;
}

#uvod .admin-inline-edit:hover,
#uvod .admin-inline-edit:focus-visible {
    color: #ffb3a9;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.25), 0 9px 20px rgba(231, 76, 60, 0.35);
}

.admin-banner-edit {
    position: absolute;
    top: 8px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.16);
    transition: background-color 0.2s ease;
}

.admin-banner-edit:hover,
.admin-banner-edit:focus-visible {
    background: rgba(231, 76, 60, 0.38);
    border-color: rgba(255, 204, 199, 0.95);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.24);
}

/* Hlavní kontejner */
.container { 
    max-width: 1400px; 
    width: 95%; 
    margin: 0 auto; 
}

h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; color: #2c3e50; }

/* =========================================
   HLAVIČKA (MENU)
   ========================================= */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 40px; 
    background: transparent; 
    position: fixed; 
    width: 100%; 
    max-width: 100vw; 
    z-index: 1000; 
    transition: all 0.3s ease; 
}

header.scrolled, header.menu-open { 
    background: #ffffff; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    padding: 15px 40px; 
}

/* --- LOGO --- */
.logo { 
    flex: 1; 
    text-decoration: none; 
    position: relative; 
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0; 
}

.logo img {
    height: 134px; 
    width: auto;
    max-width: none; 
    transform: translateY(15px); 
    margin-top: -25px;
    margin-bottom: -25px;
    transition: all 0.3s ease;
}

header.scrolled .logo img, 
header.menu-open .logo img {
    height: 72px; 
    transform: translateY(0); 
    margin-top: 0;    
    margin-bottom: 0;
}

/* --- ODKAZY V MENU --- */
nav { flex: 2; display: flex; justify-content: center; }
nav ul { display: flex; list-style: none; gap: 40px; }
.mobile-login-link { display: none; }

nav ul li a { 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    padding-bottom: 5px; 
    transition: all 0.3s; 
    border-bottom: 2px solid transparent; 
    white-space: nowrap; 
}

header.scrolled nav ul li a, header.menu-open nav ul li a { color: #333; }
nav ul li a:hover, nav ul li a.active { color: #3498db; border-bottom: 2px solid #3498db; }

.header-contact { 
    flex: 1; text-align: right; font-size: 1.52rem; font-weight: 700; color: white; white-space: nowrap; transition: color 0.3s;
}
.header-contact i { color: #3498db; margin-right: 5px; }
header.scrolled .header-contact, header.menu-open .header-contact { color: #333; }

.menu-toggle { 
    display: none; font-size: 1.5rem; cursor: pointer; color: white; transition: color 0.3s; position: relative; z-index: 1100;
}
header.scrolled .menu-toggle, header.menu-open .menu-toggle { color: #333; }

@media (max-width: 1300px) {
    header { padding: 15px 20px; } 
    nav ul { gap: 15px; } 
    nav ul li a { font-size: 0.85rem; } 
    .logo img { height: 94px; } 
    .header-contact { font-size: 1.24rem; } 
}

/* =========================================
   ÚVODNÍ FOTKA A STATUS
   ========================================= */
#uvod { 
    height: 100vh; 
    background-color: #2c3e50; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex; flex-direction: column; color: white; padding: 0; margin-top: 0; 
}

.hero-content { flex: 1; display: flex; justify-content: center; align-items: center; text-align: center; width: 100%; }
.status-wrapper { display: flex; flex-direction: column; align-items: center; max-width: 100%; padding: 0 10px; }
.hero-title-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.status-wrapper h1 { font-size: 3.5rem; line-height: 1.1; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); word-wrap: break-word; max-width: 100%; text-transform: uppercase; letter-spacing: 2px; }
.status-wrapper p { font-size: 1.8rem; font-weight: 700; color: #e74c3c; margin-top: 10px; text-shadow: 1px 1px 2px rgba(0,0,0,0.6); }

.admin-inline-edit-hero {
    position: static;
    width: 36px;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(18, 18, 18, 0.62);
    color: #ffffff;
    flex-shrink: 0;
}

.admin-inline-edit-hero:hover,
.admin-inline-edit-hero:focus-visible {
    color: #e9f4ff;
}

/* =========================================
    SEKCE (KAPELA, KONCERTY...)
    ========================================= */
#kapela {
    background-color: #ffffff;
}

#kapela h2 {
    margin-bottom: 28px;
}

.band-about {
    max-width: 980px;
    margin: 0 auto 44px;
}

.band-subheading {
    margin: 0 0 14px;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #4f5b66;
    text-align: center;
}

.about-richtext {
    max-width: 100%;
    margin: 0;
    text-align: left;
    font-size: 1.08rem;
}

#kapela .about-richtext p {
    margin: 0;
    max-width: none;
    text-align: left;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.band-members {
    max-width: 1280px;
    margin: 0 auto;
}

.band-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 22px;
}

.band-member-card {
    text-align: center;
}

.band-member-photo-wrap {
    width: 100%;
    max-width: 170px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 22px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.14);
    background: transparent;
}

.band-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.band-member-name {
    margin: 0 0 6px;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.12;
    font-weight: 700;
    color: #1f2b36;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 2.35em;
}

.band-member-name-line {
    display: block;
    white-space: nowrap;
}

.band-members-empty {
    text-align: center;
    color: #9d8f8f;
    margin-top: 6px;
}

.band-member-instrument {
    margin: 0;
    font-size: 1rem;
    color: #5a6a79;
}

.band-members-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.band-member-admin-row {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 14px;
}

.band-member-admin-row h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.band-member-admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.band-member-file-btn {
    width: 100%;
    margin-top: 2px;
    text-align: center;
}

.band-member-file-name {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #9f8f8f;
    font-style: italic;
    min-height: 1.2em;
    text-align: center;
}

.band-member-admin-photo-preview-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    margin: 0 auto 10px;
    background: transparent;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.26);
}

.band-member-admin-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-richtext p,
.about-richtext ul,
.about-richtext ol,
.about-richtext blockquote,
.about-richtext h1,
.about-richtext h2,
.about-richtext h3,
.about-richtext h4 {
    margin-bottom: 0.8em;
}

.about-richtext p:last-child,
.about-richtext ul:last-child,
.about-richtext ol:last-child,
.about-richtext blockquote:last-child,
.about-richtext h1:last-child,
.about-richtext h2:last-child,
.about-richtext h3:last-child,
.about-richtext h4:last-child {
    margin-bottom: 0;
}

.about-richtext ul,
.about-richtext ol {
    padding-left: 1.2rem;
    list-style-position: inside;
    overflow-wrap: anywhere;
}

.about-richtext a {
    color: var(--rock-accent, #b33a2e);
}

.about-richtext blockquote {
    padding-left: 12px;
    border-left: 3px solid var(--rock-accent, #b33a2e);
    opacity: 0.95;
}

@media (max-width: 1220px) {
    .band-members-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 28px;
    }
}

@media (max-width: 760px) {
    .admin-inline-edit {
        width: 34px;
        height: 34px;
    }

    #uvod .admin-inline-edit {
        top: 14px;
        right: 14px;
    }

    .hero-title-row {
        gap: 10px;
    }

    .admin-inline-edit-hero {
        width: 34px;
        height: 34px;
    }

    .admin-banner-edit {
        top: 7px;
        right: 10px;
    }

    .band-members-grid {
        --member-mobile-card-width: 220px;
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 calc(50% - (var(--member-mobile-card-width) / 2)) 8px;
        scrollbar-width: none;
    }

    .band-members-grid::-webkit-scrollbar {
        display: none;
    }

    .band-member-card {
        flex: 0 0 var(--member-mobile-card-width);
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    #kapela .about-richtext,
    #kapela .about-richtext p {
        text-align: left;
    }

    .band-member-name {
        font-size: 1.35rem;
    }

    .band-members-admin-grid {
        grid-template-columns: 1fr;
    }
}

#sluzby { background-color: #3498db; color: white; }
#sluzby h2 { color: white; }
.sluzby-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; text-align: center; }
.sluzba-item { width: 200px; }
.sluzba-item i { font-size: 4rem; margin-bottom: 20px; }
.sluzba-item h3 { font-size: 1.2rem; }

#hodiny { background-color: #ffffff; }
.hours-layout { display: flex; align-items: stretch; gap: 80px; }
.hours-table-wrapper { flex: 1; order: 1; display: flex; flex-direction: column; justify-content: center; }
.hours-table-wrapper h2 { text-align: center; margin-bottom: 25px; }
.hours-image { flex: 1; order: 2; }
.hours-image img { width: 100%; height: 100%; min-height: 450px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); object-fit: cover; }

.hours-table { width: 100%; border-collapse: collapse; background: transparent; border: none; box-shadow: none; }
.hours-table th, .hours-table td { padding: 18px 20px; border: none; }

.hours-table th { 
    text-align: left; 
    font-weight: 700; 
    color: #2c3e50; 
    width: 35%;
    
    /* FIX: Zakážeme zalomení názvu dne */
    white-space: nowrap; 
    hyphens: none;
}

.hours-table th i { margin-right: 8px; color: #3498db; }
.hours-table td:nth-child(2) { text-align: center; font-weight: 600; }
.hours-table tr:nth-child(odd) { background-color: #f2f5f7; }
.hours-table tr:nth-child(even) { background-color: #ffffff; }
.hours-table tr:hover { background-color: #e5eaef; transition: background-color 0.2s; }

/* =========================================
   SEKCE: CENÍK (FIX PRO MOBILY)
   ========================================= */
#koncerty { background-color: #2c3e50; }
#koncerty h2 { color: #ffffff; margin-bottom: 14px; }
#koncerty .pricelist-wrapper {
    background: #f4f7fa;
    border: 1px solid rgba(255,255,255,0.15);
}
#koncerty .pricelist-note { color: #d0dae3; }

.pricelist-wrapper { 
    max-width: 900px; 
    width: 100%; 
    margin: 0 auto; 
    background: #f8f9fa; 
    padding: 50px; 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

.price-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    width: 100%; 
    margin-bottom: 20px; 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: #2c3e50; 
    line-height: 1.3; 
}

.price-name { 
    flex: 0 1 auto; 
    padding-right: 5px; 
    text-align: left; 
    white-space: normal; 
    word-wrap: break-word; 
    
    /* U ceníku chceme dělení slov, aby se vešly dlouhé názvy */
    -webkit-hyphens: auto;
    hyphens: auto;
}

.price-dots { 
    flex: 1 1 auto; 
    border-bottom: 4px dotted #bdc3c7; 
    margin-bottom: 6px; 
    min-width: 20px; 
    opacity: 0.5; 
}

.price-value { 
    flex: 0 0 auto; 
    padding-left: 5px; 
    text-align: right; 
    color: #3498db; 
    white-space: nowrap; 
}

.pricelist-note { 
    text-align: center; 
    width: 100%; 
    display: block; 
    margin-top: 30px; 
    font-style: italic; 
    color: #7f8c8d; 
    font-size: 1rem; 
}


.concerts-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.concerts-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    background: #eef3f7;
    border-radius: 999px;
    padding: 4px;
    min-width: 280px;
}

.concerts-toggle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: #3498db;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.35);
    transition: transform 0.25s ease;
}

.concerts-toggle.past-active::before {
    transform: translateX(100%);
}

.concert-mode-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: #2c3e50;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.3px;
    border-radius: 999px;
    transition: color 0.2s ease;
}

.concert-mode-btn.active {
    color: #ffffff;
}

.concerts-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #7f8c8d;
    font-weight: 600;
    margin-top: 18px;
}

.concert-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cfe0ec;
    background: white;
    color: #3498db;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.concert-nav-btn:hover {
    background: #3498db;
    color: #ffffff;
}

.concert-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.concerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.concert-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border: 1px solid #e5edf3;
    border-radius: 10px;
}

.concert-row:hover {
    border-color: #c7d9e8;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.concert-icon-box {
    background-color: #2ecc71;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    flex-shrink: 0;
}

.concert-date {
    color: #3498db;
    font-weight: 700;
    white-space: nowrap;
}

.concert-dots {
    flex: 1 1 auto;
    border-bottom: 3px dotted #bdc3c7;
    opacity: 0.5;
    margin-top: 3px;
}

.concert-title {
    color: #2c3e50;
    font-weight: 700;
    text-align: right;
    flex: 0 1 auto;
}

/* =========================================
   SEKCE: KONTAKT
   ========================================= */
#kontakt { background-color: #e8f5e9; }
.contact-editable-block > .admin-inline-edit {
    right: -56px;
    top: -8px;
}

.contact-layout { display: flex; align-items: flex-start; justify-content: space-between; gap: 60px; }
.contact-text { flex: 1; }
.contact-text h2 { text-align: left; font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; color: #2c3e50; }
.contact-text p { font-size: 1.2rem; color: #555; font-weight: 600; margin-bottom: 40px; }
.billing-box { background: rgba(255, 255, 255, 0.6); padding: 25px; border-radius: 10px; border-left: 5px solid #2ecc71; margin-top: 20px; max-width: 400px; }
.billing-box h3 { font-size: 1.1rem; margin-bottom: 10px; color: #2c3e50; text-transform: uppercase; letter-spacing: 1px; }
.billing-box p { font-size: 1rem; margin-bottom: 5px; color: #555; font-weight: 400; }
.contact-details { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; text-decoration: none; color: #2c3e50; font-size: 1.3rem; font-weight: 700; transition: transform 0.2s, color 0.2s; background: white; padding: 15px; border-radius: 50px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.contact-item:hover { color: #3498db; transform: translateX(10px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.icon-box { background-color: #2ecc71; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; margin-right: 20px; box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4); flex-shrink: 0; }
.legal-block { margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(44, 62, 80, 0.1); text-align: center; font-size: 0.85rem; color: #7f8c8d; line-height: 1.6; }
.legal-block strong { color: #2c3e50; }
.legal-block a { color: #7f8c8d; text-decoration: underline; }
.legal-block a:hover { color: #3498db; }

/* =========================================
   SEKCE: GALERIE (FRONTEND)
   ========================================= */
#galerie { background-color: #f8f9fa; overflow: hidden; }
.gallery-container-relative { position: relative; padding: 0 60px; }
.gallery-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 20px; scroll-behavior: smooth; }
.gallery-wrapper::-webkit-scrollbar { display: none; }
.gallery-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
.gallery-item { flex: 0 0 250px; height: 200px; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform 0.3s ease; }
.gallery-item img:hover { transform: scale(1.03); }
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: white; border: none; width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 0 16px rgba(0,0,0,0.16); cursor: pointer; z-index: 10; color: #3498db; font-size: 1.2rem; display: flex; justify-content: center; align-items: center; transition: all 0.2s; }
.scroll-btn:hover { background-color: var(--rock-accent, #b33a2e); color: white; transform: translateY(-50%) scale(1.1); }
.left-btn { left: 5px; } .right-btn { right: 5px; } 

/* =========================================
   LIGHTBOX (SPOLEČNÝ PRO ADMIN I WEB)
   ========================================= */
.lightbox-modal { display: none; position: fixed; z-index: 3000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); align-items: center; justify-content: center; }
.lightbox-content { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 5px; box-shadow: 0 0 30px rgba(0,0,0,0.5); animation: zoomIn 0.3s ease; }
.instagram-lightbox { display: none; width: min(90vw, 540px); height: min(85vh, 760px); border: none; border-radius: 8px; background: #fff; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: white; font-size: 50px; font-weight: bold; cursor: pointer; z-index: 3001; transition: color 0.2s; }
.close-lightbox:hover { color: #e74c3c; }
@keyframes zoomIn { from {transform:scale(0.8); opacity: 0;} to {transform:scale(1); opacity: 1;} }

/* =========================================
   PATIČKA
   ========================================= */
footer { background-color: #1a1616; color: white; padding: 0; text-align: center; }
footer .container {
    --footer-row-gap: 8px;
    max-width: none;
    width: 100%;
    min-height: 92px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--footer-row-gap);
}

footer .container.footer-has-actions {
    min-height: 132px;
    justify-content: center;
}

.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.login-btn { background: #3498db; padding: 5px 15px; border-radius: 20px; color: white !important; font-weight: bold; text-decoration: none; }
.footer-logo { font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 20px; }
.copyright {
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border-top: none;
    box-shadow: none;
    color: #b8aeae;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--footer-row-gap);
    white-space: normal;
    line-height: 1.4;
}

.copyright-main,
.copyright-login,
.copyright-credit {
    display: block;
    margin: 0;
}

.copyright-credit {
    color: #9d9393;
}

.copyright a {
    color: #d3c8c8;
    text-decoration: none;
    font-weight: 700;
}

.copyright a:hover {
    color: #ffffff;
}

/* =========================================
   ADMINISTRACE - ZÁKLAD
   ========================================= */
body.admin-bg { background-color: #f0f4f8; }
.back-link { font-weight: 600; color: #3498db; text-decoration: none; font-size: 1rem; }
.back-link:hover { color: #2c3e50; }
.admin-header-right { display: flex; gap: 20px; align-items: center; }
.logged-user { color: #7f8c8d; }
body.admin-bg .logo img { height: 50px !important; transform: translateY(0) !important; margin: 0 !important; }

.login-section { height: 100vh; display: flex; justify-content: center; align-items: center; padding-top: 60px; }
.login-box { background: #241d1d; padding: 40px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.35); width: 100%; max-width: 450px; position: relative; border-top: 5px solid var(--rock-accent, #b33a2e); }
.login-icon { width: 80px; height: 80px; background: var(--rock-accent, #b33a2e); color: white; border-radius: 50%; font-size: 2rem; display: flex; justify-content: center; align-items: center; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); box-shadow: 0 5px 15px rgba(179, 58, 46, 0.35); }
.login-box h2 { font-size: 1.8rem; margin-top: 30px; margin-bottom: 30px; color: #f0e7e7; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; color: #d8cdcd; }
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #a18f8f; }
.input-wrapper input { width: 100%; padding: 15px 40px; border: 2px solid #4a3535; border-radius: 8px; font-size: 1rem; transition: all 0.3s; background: #211c1c; color: #f0e7e7; }
.input-wrapper input:focus { border-color: var(--rock-accent, #b33a2e); outline: none; box-shadow: 0 0 10px rgba(179, 58, 46, 0.18); }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #a18f8f; font-size: 1.2rem; }
.submit-btn { width: 100%; background: #b33a2e; color: white; border: none; padding: 15px; border-radius: 8px; font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 5px 15px rgba(179, 58, 46, 0.4); transition: all 0.3s; }
.submit-btn:hover { background: #8f2a21; transform: translateY(-3px); }
.logout-btn { background: #e74c3c !important; }

/* --- ADMIN DASHBOARD --- */
.admin-dashboard { padding-top: 120px; min-height: calc(100vh - 150px); }
.dashboard-box { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border-top: 5px solid #3498db; max-width: 1400px; margin: 0 auto; width: 95%; }
.dashboard-header { display: flex; align-items: center; gap: 15px; margin-bottom: 40px; color: #2c3e50; }
.dashboard-header h2 { font-size: 2rem; margin: 0; }
.dashboard-header i { font-size: 2.5rem; color: #3498db; }

.admin-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.admin-sidebar-box,
.admin-main-box {
    width: 100%;
    max-width: none;
    margin: 0;
}

.admin-sidebar-box {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.admin-sidebar-header {
    margin-bottom: 18px;
}

.admin-sidebar-header h2 {
    font-size: 1.35rem;
}

.admin-sidebar-header i {
    font-size: 1.7rem;
}

.admin-side-group {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.admin-side-group h4 {
    margin: 0 0 10px;
    font-size: 0.96rem;
    color: #2c3e50;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.admin-quick-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-quick-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-quick-nav a:hover {
    background: rgba(179, 58, 46, 0.14);
    color: var(--rock-accent, #b33a2e);
}

.admin-quick-nav a.active {
    background: var(--rock-accent, #b33a2e);
    color: #ffffff;
}

.admin-panel-hidden {
    display: none !important;
}

.feature-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.feature-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #3d4a56;
    font-size: 0.94rem;
}

.admin-side-note {
    margin-top: 8px;
    color: #68798a;
    font-size: 0.84rem;
}

/* Grid pro karty */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 40px; }
.admin-card { background: #f8f9fa; border-radius: 10px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.admin-card h3 { font-size: 1.3rem; margin-bottom: 20px; color: #2c3e50; display: flex; justify-content: space-between; align-items: center; }
.admin-card label { display: block; font-weight: 600; color: #555; margin-bottom: 5px; }
.admin-card input[type="text"], .admin-card input[type="email"], .admin-card input[type="url"], .admin-card input[type="password"], .admin-card input[type="time"], .admin-card input[type="date"], .admin-card textarea { width: 100%; padding: 12px; border: 2px solid #e1e8ed; border-radius: 8px; margin-bottom: 15px; font-family: inherit; font-size: 1rem; }
.admin-card textarea { min-height: 120px; resize: vertical; }
.admin-card select,
.admin-card input[type="number"] { width: 100%; padding: 12px; border: 2px solid #e1e8ed; border-radius: 8px; margin-bottom: 15px; font-family: inherit; font-size: 1rem; }

.admin-card input[type="text"]:focus,
.admin-card input[type="email"]:focus,
.admin-card input[type="url"]:focus,
.admin-card input[type="password"]:focus,
.admin-card input[type="time"]:focus,
.admin-card input[type="date"]:focus,
.admin-card input[type="number"]:focus,
.admin-card select:focus,
.admin-card textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.18);
}

.rt-module { margin-bottom: 14px; border: 1px solid #4a3535; border-radius: 10px; overflow: hidden; background: #1f1a1a; }
.rt-tabs { display: inline-flex; gap: 4px; }
.rt-tabs-inline {
    margin-left: auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
}
.rt-tab {
    height: 34px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5a4242;
    background: #1f1a1a;
    color: #d4c6c6;
    border-radius: 4px;
    padding: 0 12px;
    font-weight: 700;
    cursor: pointer;
}
.rt-tab:hover { background: #3a2f2f; border-color: var(--rock-accent, #b33a2e); }
.rt-tab.active {
    background: #3a2f2f;
    border-color: var(--rock-accent, #b33a2e);
    color: #f4ecec;
}
.rt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #4a3535;
    background: #2a2323;
}
.rt-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
    margin-right: 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.rt-group:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}
.rt-btn {
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5a4242;
    background: #1f1a1a;
    color: #f0e7e7;
    border-radius: 4px;
    cursor: pointer;
}
.rt-btn:hover { background: #3a2f2f; border-color: var(--rock-accent, #b33a2e); }
.rt-format-btn {
    height: 34px;
    min-width: 40px;
    padding: 0 10px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5a4242;
    background: #1f1a1a;
    color: #f0e7e7;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}
.rt-format-btn:hover {
    background: #3a2f2f;
    border-color: var(--rock-accent, #b33a2e);
}
.rt-format-btn.active {
    background: #3a2f2f;
    border-color: var(--rock-accent, #b33a2e);
    color: #fff;
}
.rt-mode-text .rt-group { display: none; }
.rt-mode-text .rt-toolbar {
    justify-content: flex-end;
    padding: 8px 10px;
}
.rt-editor {
    min-height: 220px;
    background: #1f1a1a;
    color: #f0e7e7;
    padding: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.rt-editor * { box-sizing: border-box; max-width: 100%; }
.rt-editor ul,
.rt-editor ol {
    margin: 0.5em 0;
    padding-left: 1.2rem;
    list-style-position: inside;
}
.rt-editor li { margin: 0.2em 0; }
.rt-editor:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(179, 58, 46, 0.32);
}
.rt-editor:empty::before {
    content: attr(data-placeholder);
    color: #8f7f7f;
}
.rt-editor-source {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Switch */
.switch-wrapper { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: bold; color: #7f8c8d; }
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #5b5252; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: #c7bcbc; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #e74c3c; } 
input:checked + .slider:before { transform: translateX(24px); }

/* Řádky hodin */
.day-row { display: grid; grid-template-columns: 80px 1fr 1fr auto; gap: 15px; align-items: center; margin-bottom: 10px; }
.day-label { font-weight: 600; color: #2c3e50; }
.close-day-label { font-size: 0.9rem; color: #e74c3c; font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.time-disabled { background-color: #f1f1f1 !important; color: #aaa !important; border-color: #eee !important; cursor: not-allowed; }
.hidden { display: none !important; }

/* Notifikace */
.save-notification { position: fixed; top: 90px; right: 20px; background-color: #2ecc71; color: white; padding: 15px 25px; border-radius: 8px; font-size: 1.1rem; font-weight: 700; box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4); display: flex; align-items: center; gap: 10px; z-index: 3000; transform: translateX(150%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.save-notification.show { transform: translateX(0); }

.analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.analytics-summary-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px;
}

.analytics-summary-label {
    display: block;
    font-size: 0.82rem;
    color: #b8aeae;
    margin-bottom: 6px;
}

.analytics-summary-value {
    font-size: 1.35rem;
    line-height: 1.1;
    color: #f0ecec;
}

.analytics-summary-value.is-positive {
    color: #61dca0;
}

.analytics-summary-value.is-negative {
    color: #ff8f84;
}

.analytics-note {
    font-size: 0.85rem;
    color: #b8aeae;
    margin-bottom: 12px;
}

.analytics-weekly-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
    min-height: 240px;
    padding: 34px 10px 10px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.analytics-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    min-width: 0;
    height: 100%;
    padding-top: 24px;
    box-sizing: border-box;
}

.analytics-bar {
    position: relative;
    width: 100%;
    max-width: 34px;
    min-height: 6px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #ff7f6d 0%, #b33a2e 100%);
    box-shadow: 0 6px 16px rgba(179, 58, 46, 0.35);
    transition: transform 0.2s ease;
}

.analytics-bar-wrap:hover .analytics-bar {
    transform: translateY(-2px);
}

.analytics-bar-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #d5caca;
    font-weight: 700;
    white-space: nowrap;
}

.analytics-bar-label {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #b8aeae;
    text-align: center;
    line-height: 1.1;
}

.analytics-empty {
    grid-column: 1 / -1;
    margin: auto;
    color: #b8aeae;
    font-style: italic;
}

/* --- STYLY PRO GALERII V ADMINU --- */

/* Karta na celou šířku */
.full-width-card {
    width: 100%;
    margin-top: 40px;
}

/* Vylepšený nahrávací box */
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fcfcfc;
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    padding: 30px;
    transition: background-color 0.3s;
    gap: 15px; /* Mezera mezi prvky */
}
.upload-box:hover { background-color: #f0f4f8; border-color: #3498db; }

/* TLAČÍTKA (Sjednocený vzhled pro save-btn a custom-file-btn) */
.save-btn, .custom-file-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;       /* Sjednocená velikost písma */
    line-height: 1.5;      /* Sjednocená výška řádku */
    padding: 12px 25px;    /* Sjednocené odsazení */
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    color: #ffffff !important; /* Vynucení bílé barvy */
}

/* Specifické barvy */
.save-btn { background-color: #b33a2e; margin-top: 10px; }
.save-btn:hover { background-color: #8f2a21; transform: translateY(-2px); }

.custom-file-btn { background-color: #34495e; }
.custom-file-btn:hover { background-color: #2c3e50; transform: translateY(-2px); }

/* Ikonka uvnitř tlačítka musí být taky bílá */
.save-btn i, .custom-file-btn i { color: #ffffff !important; }

/* Skrytý input */
#real-file { display: none; }

/* Jeden řádek s fotkou */
.admin-gallery-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: box-shadow 0.2s;
}
.admin-gallery-row:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* Miniatura s lupou při najetí */
.gallery-thumb-wrapper {
    position: relative;
    cursor: pointer;
    width: 80px;
    height: 60px;
    margin-right: 15px;
    flex-shrink: 0;
}
.gallery-thumb {
    width: 100%; height: 100%; object-fit: cover; border-radius: 5px; border: 2px solid #ddd; display: block;
}
.is-hero .gallery-thumb { border-color: #f1c40f; box-shadow: 0 0 8px rgba(241, 196, 15, 0.5); }

/* Ikonky akcí */
.gallery-actions { display: flex; align-items: center; gap: 5px; }

.icon-btn { 
    background: #f8f9fa; border: 1px solid #e1e8ed; cursor: pointer; 
    width: 35px; height: 35px; border-radius: 5px; 
    display: flex; align-items: center; justify-content: center; 
    transition: all 0.2s; color: #555;
}
.icon-btn:hover { background-color: #ecf0f1; transform: translateY(-2px); }

/* Specifické barvy tlačítek */
.btn-up:hover, .btn-down:hover { color: #3498db; border-color: #3498db; }
.btn-delete:hover { color: #fff; background-color: #e74c3c; border-color: #e74c3c; }
.btn-hero { color: #bdc3c7; }
.btn-hero:hover { color: #f1c40f; border-color: #f1c40f; }
.btn-hero.active { color: #fff; background-color: #f1c40f; border-color: #f39c12; cursor: default; }

.gallery-filename { font-size: 0.85rem; color: #7f8c8d; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================
   SPOLEČNÁ RESPONZIVITA PRO MOBILY (Pod 900px)
   ========================================= */
@media (max-width: 900px) {
    header { height: 70px; padding: 0 20px; }
    .logo { flex: 0 1 auto; max-width: 75%; }
    .logo img { height: 55px; width: auto; transform: translateY(8px); margin-top: -10px; margin-bottom: -10px; } 
    
    header.scrolled .logo img, header.menu-open .logo img, body.admin-bg .logo img {
        height: 45px; transform: translateY(0); margin: 0;
    }

    .header-contact { display: none; }
    .menu-toggle { display: block; }
    nav { justify-content: flex-end; }

    nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #232020; text-align: center; padding: 20px 0; box-shadow: 0 5px 16px rgba(0,0,0,0.35); z-index: 1000; }
    nav ul li a { color: #ebe5e5; }
    nav ul.active { display: flex; }
    .mobile-login-link { display: list-item; }

    #uvod { margin-top: 0; }
    .status-wrapper h1 { font-size: 2.5rem; }
    .hero-logo { font-size: 3.5rem; }

    .hours-layout { flex-direction: column; gap: 30px; }
    .hours-table-wrapper h2 { text-align: center; margin-top: 0; }
    .hours-image img { height: 300px; min-height: auto; margin-top: 20px; }

    .scroll-btn { display: none; }
    .gallery-container-relative { padding: 0; }
    .close-lightbox { top: 10px; right: 20px; font-size: 40px; }

    .contact-layout { flex-direction: column; text-align: center; gap: 40px; }
    .contact-editable-block > .admin-inline-edit { right: 0; top: -10px; }
    .contact-text h2 { text-align: center; font-size: 2.2rem; }
    
    .billing-box { margin: 0 auto; text-align: left; width: 100%; }
    
    .contact-details { width: 100%; align-items: center; }
    .contact-item { width: 100%; max-width: 400px; justify-content: flex-start; font-size: 1.1rem; margin: 0 auto; }
    .contact-item span { word-break: break-all; text-align: left; }
    
    .legal-block { margin-top: 40px; font-size: 0.8rem; }

    /* Na mobilu ceník trochu zmenšíme */
    .pricelist-wrapper { padding: 25px 15px; }
    .price-item { font-size: 1rem; margin-bottom: 15px; }
    .price-dots { border-bottom-width: 2px; }
    #koncerty h2 { margin-bottom: 10px; }
    .concerts-toggle { min-width: 260px; max-width: 320px; }
    .concert-row { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
    .concert-icon-box { grid-row: span 2; }
    .concert-date { grid-column: 2; }
    .concert-dots { display: none; }
    .concert-title { grid-column: 2; }
    .concert-title { text-align: left; }

    /* Patička */
    footer .container { min-height: 84px; padding: 10px 14px; }
    footer .container.footer-has-actions { min-height: 126px; }
    .footer-buttons { flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 0; }
    .footer-buttons .login-btn { width: 100%; max-width: 620px; text-align: center; font-size: 1rem; padding: 10px 22px; }
    .copyright { white-space: normal; line-height: 1.4; gap: var(--footer-row-gap); }
    .copyright-main,
    .copyright-login,
    .copyright-credit { width: 100%; text-align: center; }

    /* Admin dashboard */
    .admin-dashboard { padding-top: 110px; } 
    .dashboard-box { padding: 15px; width: 100%; box-sizing: border-box; }
    .admin-layout { display: flex; flex-direction: column; gap: 18px; }
    .admin-sidebar-box { position: static; top: auto; order: 1; }
    .admin-main-box { order: 2; }
    .admin-quick-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-quick-nav a { min-height: 44px; padding: 10px 12px; font-size: 0.9rem; }
    .admin-quick-nav a i { width: 16px; text-align: center; }
    .login-box { padding: 25px; width: 90%; box-sizing: border-box; }
    .admin-grid { display: flex; flex-direction: column; gap: 25px; width: 100%; } 
    .admin-card { padding: 20px; width: 100%; box-sizing: border-box; }
    .admin-card h3 { flex-direction: column; align-items: flex-start; gap: 15px; }
    .analytics-summary-grid { grid-template-columns: 1fr; }
    .analytics-weekly-chart { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; min-height: 280px; }
    .admin-header-right { gap: 10px; font-size: 0.85rem; }
    .dashboard-header h2 { font-size: 1.5rem; }
    .admin-card input:not([type="checkbox"]), .admin-card textarea { width: 100%; min-width: 0; box-sizing: border-box !important; }
    
    .day-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 15px; gap: 12px; border: 1px solid #e1e8ed; box-sizing: border-box; }
    .day-label { width: 100%; text-align: center; border-bottom: 1px solid #e1e8ed; padding-bottom: 10px; margin-bottom: 5px; }
    .day-row input[type="time"] { width: calc(50% - 15px) !important; max-width: 130px !important; margin-bottom: 0; text-align: center; }
    .close-day-label { display: flex !important; width: 100%; justify-content: center !important; align-items: center; margin-top: 5px; padding-top: 10px; }
    .close-day-label input[type="checkbox"] { width: auto !important; margin-right: 8px; margin-bottom: 0; }

    /* --- OPRAVA GALERIE V ADMINU NA MOBILU --- */
    .admin-gallery-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .admin-gallery-row > div:first-child {
        width: 100%;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    .admin-gallery-row > div:first-child span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px; 
        font-size: 0.8rem;
    }

    .gallery-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .icon-btn {
        flex: 1; 
        height: 40px; 
        width: auto;
    }
}

/* =========================================
   ROCK DARK THEME (FRONTEND)
   ========================================= */
:root {
    --rock-accent: #b33a2e;
    --rock-accent-dark: #8f2a21;
    --rock-bg: #1e1b1b;
    --rock-panel: #2a2525;
    --rock-panel-soft: #312b2b;
    --rock-text: #ebe5e5;
    --rock-muted: #c4b7b7;
}

body:not(.admin-bg) {
    background: var(--rock-bg);
    color: var(--rock-text);
}

h2,
#kapela h2,
#galerie h2,
#kontakt h2 {
    color: var(--rock-text);
}

header.scrolled,
header.menu-open {
    background: rgba(22, 22, 22, 0.96);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

header.scrolled nav ul li a,
header.menu-open nav ul li a,
header.scrolled .header-contact,
header.menu-open .header-contact,
header.scrolled .menu-toggle,
header.menu-open .menu-toggle {
    color: var(--rock-text);
}

@media (max-width: 900px) {
    nav ul {
        background: #232020;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    nav ul li a,
    header.scrolled nav ul li a,
    header.menu-open nav ul li a {
        color: #ebe5e5;
    }
}

nav ul li a:hover,
nav ul li a.active,
.header-contact i,
.hours-table th i,
.price-value,
.scroll-btn,
.back-link,
.legal-block a:hover,
.concert-date,
.contact-item:hover {
    color: var(--rock-accent);
}

nav ul li a:hover,
nav ul li a.active {
    border-bottom-color: var(--rock-accent);
}

#kapela,
#galerie {
    background-color: #232020;
}

#kapela p,
#kapela .about-richtext,
#kapela .band-member-instrument {
    color: #ddd2d2;
}

#kapela .band-subheading,
#kapela .band-member-name {
    color: #f1ebeb;
}

#kapela .band-member-photo-wrap {
    background: transparent;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.34);
}

#koncerty {
    background-color: #241d1d;
}

#koncerty .pricelist-wrapper {
    background: transparent;
    border: none;
    max-width: 1140px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.concerts-toggle {
    background: #2b2424;
}

.concerts-toggle::before {
    background: var(--rock-accent);
    box-shadow: 0 4px 14px rgba(179, 58, 46, 0.35);
}

.concert-mode-btn {
    color: #d9cfcf;
}

.concert-nav-btn {
    background: #231c1c;
    border-color: #4a3535;
    color: #d7c6c6;
}

.concert-nav-btn:hover {
    background: var(--rock-accent);
    color: #fff;
}

.concert-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2f2828;
    border: none;
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
    padding: 13px 22px;
}

.concert-text {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    column-gap: 26px;
    min-width: 0;
    flex: 1;
    padding-right: 2px;
}

.concert-title {
    color: #eee6e6;
    font-weight: 700;
    line-height: 1.25;
    font-size: 1.24rem;
    letter-spacing: 0.2px;
    text-align: left;
    justify-self: start;
    min-width: 0;
    width: 100%;
}

.concert-date {
    color: #d8baba;
    font-size: 1.24rem;
    font-weight: 700;
    white-space: nowrap;
    justify-self: start;
    padding-left: 2px;
    width: 140px;
}

.concert-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    flex-shrink: 0;
    background-color: var(--rock-accent);
    box-shadow: 0 5px 15px rgba(179, 58, 46, 0.35);
}

.concert-dots {
    display: none;
}

.concert-row:hover {
    transform: translateX(6px);
    transition: transform 0.2s ease;
}

.contact-item {
    background: #2d2727;
}

#kontakt {
    background-color: #211d1d;
}

footer {
    background-color: #1a1616;
}

@media (max-width: 900px) {
    #koncerty .pricelist-wrapper { max-width: 100%; border-radius: 0; }
    .concert-row {
        border-radius: 18px;
        padding: 14px 16px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 2px;
        align-items: start;
    }
    .concert-icon-box {
        grid-row: 1 / span 2;
        margin-top: 2px;
    }
    .concert-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        min-width: 0;
        padding-right: 0;
    }
    .concert-title {
        font-size: 1.05rem;
        text-align: left;
        width: 100%;
        padding-left: 0;
        margin: 0;
    }
    .concert-date {
        font-size: 1.05rem;
        width: auto;
        padding-left: 0;
        margin: 0;
        text-align: left;
    }
}

.billing-box {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--rock-accent);
}

.contact-item {
    color: #e6dfdf;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.icon-box {
    background-color: var(--rock-accent);
    box-shadow: 0 5px 15px rgba(179, 58, 46, 0.35);
}

#concerts-window-label,
#koncerty .pricelist-note {
    color: #ddd2d2;
}

.footer-menu a:hover,
.login-btn {
    color: #fff !important;
}

.login-btn {
    background: var(--rock-accent);
}

/* =========================================
   ROCK DARK THEME (ADMIN)
   ========================================= */
body.admin-bg {
    background-color: #1e1b1b;
    color: #e8e1e1;
}

body.admin-bg .dashboard-box {
    background: #241d1d;
    border-top-color: var(--rock-accent);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body.admin-bg .dashboard-header,
body.admin-bg .dashboard-header h2,
body.admin-bg .admin-card h3,
body.admin-bg .day-label,
body.admin-bg .admin-card label,
body.admin-bg .close-day-label,
body.admin-bg .gallery-filename,
body.admin-bg .logged-user {
    color: #e4dada;
}

body.admin-bg .admin-card,
body.admin-bg .admin-gallery-row,
body.admin-bg .day-row,
body.admin-bg .upload-box {
    background: #2b2424;
    border-color: #4a3535;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
}

body.admin-bg .admin-side-group {
    background: #2b2424;
    border-color: #4a3535;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

body.admin-bg .admin-side-group h4,
body.admin-bg .feature-toggle-item,
body.admin-bg .admin-side-note,
body.admin-bg .admin-quick-nav a {
    color: #e4dada;
}

body.admin-bg .admin-quick-nav a:hover {
    background: rgba(179, 58, 46, 0.18);
    color: #fff2f0;
}

body.admin-bg .admin-quick-nav a.active {
    background: var(--rock-accent, #b33a2e);
    color: #ffffff;
}

body.admin-bg .admin-card input[type="text"],
body.admin-bg .admin-card input[type="email"],
body.admin-bg .admin-card input[type="url"],
body.admin-bg .admin-card input[type="password"],
body.admin-bg .admin-card input[type="time"],
body.admin-bg .admin-card input[type="date"],
body.admin-bg .admin-card input[type="number"],
body.admin-bg .admin-card select,
body.admin-bg .admin-card textarea {
    background: #211c1c;
    border-color: #4a3535;
    color: #f0e7e7;
}

body.admin-bg .admin-card input[type="text"]:focus,
body.admin-bg .admin-card input[type="email"]:focus,
body.admin-bg .admin-card input[type="url"]:focus,
body.admin-bg .admin-card input[type="password"]:focus,
body.admin-bg .admin-card input[type="time"]:focus,
body.admin-bg .admin-card input[type="date"]:focus,
body.admin-bg .admin-card input[type="number"]:focus,
body.admin-bg .admin-card select:focus,
body.admin-bg .admin-card textarea:focus {
    outline: none;
    border-color: var(--rock-accent, #b33a2e);
    box-shadow: 0 0 0 3px rgba(179, 58, 46, 0.24);
}

/* Keep autofilled credentials visually consistent with dark admin fields. */
body.admin-bg .admin-card input:-webkit-autofill,
body.admin-bg .admin-card input:-webkit-autofill:hover,
body.admin-bg .admin-card input:-webkit-autofill:focus,
body.admin-bg .input-wrapper input:-webkit-autofill,
body.admin-bg .input-wrapper input:-webkit-autofill:hover,
body.admin-bg .input-wrapper input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #211c1c inset;
    -webkit-text-fill-color: #f0e7e7;
    border-color: #4a3535;
    transition: background-color 9999s ease-in-out 0s;
}

body.admin-bg .admin-card input::placeholder,
body.admin-bg .admin-card textarea::placeholder {
    color: #9f8f8f;
}

body.admin-bg .icon-btn {
    background: #231d1d;
    border-color: #4a3535;
    color: #d6c9c9;
}

body.admin-bg .icon-btn:hover {
    background: #312828;
}

body.admin-bg .upload-box:hover {
    background: #322a2a;
    border-color: var(--rock-accent);
}

body.admin-bg .back-link {
    color: #d9c8c8;
}

body.admin-bg .back-link:hover {
    color: var(--rock-accent);
}