* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #a22;
    --red-dark: #811;
    --warm: #f9f5f0;
    --sand: #ede6da;
    --brown: #5c4a3a;
    --text: #3a3025;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--warm);
    line-height: 1.7;
}

/* ---- NAV ---- */
nav:not(.admin-nav) {
    position: sticky;
    top: 0;
    background: var(--warm);
    border-bottom: 2px solid var(--sand);
    padding: .6rem 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    z-index: 10;
    flex-wrap: wrap;
}
nav:not(.admin-nav) a {
    color: var(--brown);
    text-decoration: none;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s;
}
nav:not(.admin-nav) a:hover { color: var(--red); }

/* ---- HERO ---- */
.hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}
.hero img.logo {
    max-width: 480px;
    width: 90%;
    margin-bottom: 1rem;
}
.hero .subtitle {
    font-style: italic;
    color: var(--brown);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}
.hero img.foto {
    width: 100%;
    max-width: 720px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* ---- SECTIONS ---- */
section {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
section.alt {
    background: var(--sand);
    max-width: 100%;
}
section.alt > * {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 1.6rem;
    color: var(--red);
    margin-bottom: 1.2rem;
    border-bottom: 2px solid var(--red);
    display: inline-block;
    padding-bottom: .15rem;
}

/* ---- O NÁS / ČLENOVÉ ---- */
.members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}
.member {
    background: var(--warm);
    padding: 1.2rem;
    border-radius: 6px;
    border-left: 4px solid var(--red);
}
.member strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: .2rem;
}
.member span {
    font-size: .9rem;
    color: var(--brown);
    font-style: italic;
}
.member-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: .6rem;
}
.member-bio {
    font-size: .8rem;
    color: #666;
    margin-top: .4rem;
    line-height: 1.4;
}

/* ---- KONCERTY ---- */
.concerts {
    list-style: none;
    margin-top: 1rem;
}
.concerts li {
    padding: .8rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    align-items: baseline;
}
.concerts .date {
    font-weight: bold;
    color: var(--red);
    min-width: 120px;
}
.concerts .place {
    flex: 1;
}
.concerts .note {
    font-size: .85rem;
    color: var(--brown);
    font-style: italic;
}

/* ---- STAGE PLAN ---- */
.stage-plan-info {
    margin-top: 1rem;
}
.stage-plan-info p {
    margin-bottom: .8rem;
}
table.tech {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: .95rem;
}
table.tech th, table.tech td {
    text-align: left;
    padding: .5rem .8rem;
    border-bottom: 1px solid rgba(0,0,0,.1);
}
table.tech th {
    color: var(--red-dark);
    font-weight: bold;
}

/* ---- KONTAKT ---- */
.contact-info p {
    margin-bottom: .5rem;
}
.contact-info a {
    color: var(--red);
}

/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: .85rem;
    color: var(--brown);
    border-top: 2px solid var(--sand);
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-body {
    background: #f3f0eb;
}
.admin-body footer { display: none; }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.admin-sidebar {
    width: 220px;
    background: var(--brown);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.admin-sidebar-logo {
    padding: 1.5rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar-logo img {
    max-width: 140px;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}
.admin-nav a {
    display: block;
    padding: .7rem 1.2rem;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: .9rem;
    transition: all .15s;
    border-left: 3px solid transparent;
}
.admin-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.admin-nav a.active {
    color: #fff;
    background: rgba(170,34,34,.5);
    border-left-color: var(--red);
    font-weight: bold;
}
.admin-sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.admin-sidebar-footer a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .8rem;
    transition: color .15s;
}
.admin-sidebar-footer a:hover {
    color: #fff;
}

/* ---- Content area ---- */
.admin-content {
    flex: 1;
    padding: 2rem 2.5rem;
    overflow-x: auto;
}
.admin-content section {
    max-width: none;
    padding: 0;
}
.admin-content h2 {
    margin-bottom: 1rem;
}

/* ---- Admin shared ---- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
a.btn, .admin-header a.btn {
    background: var(--red);
    color: #fff;
    padding: .5rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: .9rem;
    transition: background .2s;
    display: inline-block;
}
a.btn:hover, .admin-header a.btn:hover { background: var(--red-dark); }

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
table.admin-table th, table.admin-table td {
    text-align: left;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--sand);
}
table.admin-table th {
    background: var(--sand);
    color: var(--red-dark);
    font-weight: bold;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.td-thumb { width: 50px; }
.table-thumb {
    width: 44px;
    height: 32px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
table.admin-table .actions {
    white-space: nowrap;
}
table.admin-table .actions a {
    color: var(--red);
    margin-right: .8rem;
    text-decoration: none;
}
table.admin-table .actions a:hover {
    text-decoration: underline;
}
table.admin-table .actions a.delete {
    color: #999;
}

/* ---- Admin panels ---- */
.admin-panel {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-panel h2 {
    border-bottom: none;
    display: block;
    margin-bottom: .3rem;
}
.admin-panel h3 {
    font-size: 1.1rem;
    color: var(--brown);
    margin-bottom: 1rem;
}
.admin-panel-sub {
    color: var(--brown);
    font-style: italic;
    font-size: .9rem;
    margin-bottom: .5rem;
}
.admin-details summary {
    cursor: pointer;
    color: var(--red);
    font-size: .9rem;
    user-select: none;
}
.admin-details summary:hover {
    color: var(--red-dark);
}

/* ---- Dropzone ---- */
.dropzone-form {
    max-width: 100%;
}
.dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--warm);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dropzone-hover, .dropzone:hover {
    border-color: var(--red);
    background: #fdf5f0;
}
.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: var(--brown);
}
.dropzone-content svg {
    color: #bbb;
}
.dropzone-hover .dropzone-content svg {
    color: var(--red);
}
.dropzone-content p {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text);
}
.dropzone-content span {
    font-size: .8rem;
    color: #aaa;
}
.dropzone-btn {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: .4rem 1.2rem;
    border-radius: 4px;
    font-size: .85rem;
    cursor: pointer;
    transition: background .2s;
}
.dropzone-btn:hover {
    background: var(--red-dark);
}
.dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    opacity: 0;
}
.dropzone-preview {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
}
.dropzone-thumb {
    width: 100px;
    text-align: center;
}
.dropzone-thumb img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.dropzone-thumb span {
    display: block;
    font-size: .7rem;
    color: #999;
    margin-top: .3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropzone-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: space-between;
}
.dropzone-actions span {
    font-size: .9rem;
    color: var(--brown);
    font-style: italic;
}
.btn-upload {
    background: var(--red);
    color: #fff;
    border: none;
    padding: .6rem 2rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s;
}
.btn-upload:hover { background: var(--red-dark); }

/* ---- Photo grid (admin) ---- */
.photo-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}
.photo-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: transform .15s;
}
.photo-item:hover {
    transform: scale(1.03);
}
.photo-item img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}
.photo-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(180,30,30,.85);
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    opacity: 0;
    transition: opacity .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.photo-item:hover .photo-delete {
    opacity: 1;
}

/* ---- Members admin ---- */
.members-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.member-admin-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: transform .15s, box-shadow .15s;
    align-items: center;
}
.member-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.member-admin-photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
}
.member-admin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-admin-nophoto {
    width: 100%;
    height: 100%;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
}
.member-admin-info strong {
    display: block;
    font-size: 1rem;
}
.member-admin-info span {
    font-size: .85rem;
    color: var(--brown);
    font-style: italic;
}
.member-admin-info p {
    font-size: .8rem;
    color: #888;
    margin-top: .3rem;
    line-height: 1.4;
}

/* ---- Concert form ---- */
.concert-form-grid {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 2rem;
    align-items: start;
}
.concert-form-fields {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.concert-form-fields .field label {
    display: block;
    font-weight: bold;
    font-size: .85rem;
    color: var(--brown);
    margin-top: .8rem;
    margin-bottom: .2rem;
}
.concert-form-fields .field input[type="text"],
.concert-form-fields .field input[type="date"],
.concert-form-fields .field textarea {
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
}
.concert-form-fields .field textarea {
    resize: vertical;
}
.concert-form-fields .field input:focus,
.concert-form-fields .field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(170,34,34,.15);
}
.field-row {
    display: flex;
    gap: 1rem;
}
.field-row .field { flex: 1; }
.concert-form-image {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.concert-form-submit {
    grid-column: 1 / -1;
}
.concert-form-submit input[type="submit"] {
    background: var(--red);
    color: #fff;
    border: none;
    padding: .6rem 2.5rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
.concert-form-submit input[type="submit"]:hover {
    background: var(--red-dark);
}

/* Image dropzone (single) */
.img-dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--warm);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.img-dropzone-hover, .img-dropzone:hover {
    border-color: var(--red);
    background: #fdf5f0;
}
.img-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: var(--brown);
}
.img-dropzone-content svg { color: #bbb; }
.img-dropzone-hover .img-dropzone-content svg { color: var(--red); }
.img-dropzone-content span {
    font-size: .85rem;
    color: #999;
}
.dropzone-btn-sm {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: .3rem .9rem;
    border-radius: 4px;
    font-size: .8rem;
    cursor: pointer;
    transition: background .2s;
    margin-top: .3rem;
}
.dropzone-btn-sm:hover { background: var(--red-dark); }
.img-dropzone-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: 6px;
}

/* Current image (edit) */
.img-current {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.img-current img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.img-current-delete {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(180,30,30,.85);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: .35rem;
    font-size: .8rem;
    opacity: 0;
    transition: opacity .15s;
}
.img-current:hover .img-current-delete {
    opacity: 1;
}

@media (max-width: 600px) {
    .concert-form-grid {
        grid-template-columns: 1fr;
    }
    .img-dropzone { min-height: 140px; }
}

/* ---- FORMS ---- */
.form-wrap {
    max-width: 500px;
}
.form-wrap label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-size: .9rem;
    color: var(--brown);
}
.form-wrap input[type="text"],
.form-wrap input[type="date"],
.form-wrap input[type="password"],
.form-wrap textarea {
    width: 100%;
    padding: .5rem .7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: .95rem;
    background: #fff;
    margin-top: .2rem;
}
.form-wrap textarea {
    resize: vertical;
}
.form-wrap input:focus,
.form-wrap textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(170,34,34,.15);
}
.form-wrap input[type="file"] {
    margin-top: .4rem;
    font-size: .9rem;
}
.form-wrap input[type="submit"] {
    margin-top: 1.5rem;
    background: var(--red);
    color: #fff;
    border: none;
    padding: .6rem 2rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
.form-wrap input[type="submit"]:hover { background: var(--red-dark); }

/* ---- FLASH MESSAGES ---- */
.flash {
    padding: .7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.flash.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================================
   FRONTEND GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}
.gallery-card {
    text-decoration: none;
    color: var(--text);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}
.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.gallery-card-noimg {
    width: 100%;
    height: 200px;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown);
    font-style: italic;
}
.gallery-card-info {
    padding: .8rem 1rem;
}
.gallery-card-info strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: .15rem;
}
.gallery-card-info span {
    font-size: .85rem;
    color: var(--brown);
    font-style: italic;
}

.gallery-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}
.gallery-photo-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}
.gallery-photo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.gallery-photo-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
}
.lightbox.active {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 40px rgba(0,0,0,.5);
    transition: opacity .15s;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    transition: color .15s, transform .15s;
    font-family: inherit;
    padding: 0;
    line-height: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
}
.lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
}
.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    padding: .5rem;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.15);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    letter-spacing: .1em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .admin-sidebar-logo { padding: .8rem 1rem; border-bottom: none; }
    .admin-sidebar-logo img { max-width: 100px; }
    .admin-nav { flex-direction: row; padding: 0; }
    .admin-nav a { border-left: none; border-bottom: 3px solid transparent; }
    .admin-nav a.active { border-left: none; border-bottom-color: var(--red); }
    .admin-sidebar-footer {
        flex-direction: row;
        margin-top: 0;
        border-top: none;
        padding: .5rem 1rem;
        gap: 1rem;
    }
    .admin-content { padding: 1.5rem 1rem; }
}
@media (max-width: 500px) {
    nav:not(.admin-nav) { gap: 1rem; }
    nav:not(.admin-nav) a { font-size: .82rem; }
    h2 { font-size: 1.3rem; }
    .concerts li { flex-direction: column; gap: .2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
