/* ---------------------------------------------------
   KAPELY – PROFI GRID A KARTY
--------------------------------------------------- */

/* Sekce – čistý kontejner bez těžkého pozadí */
.bands-wrapper {
    padding: 48px 24px 56px;
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* Grid – rovnoměrné mezery, profi rozestupy */
.bands-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1140px;
}

/* Karta kapely – profi pozadí, jméno vždy čitelné */
.band {
    font-family: "Oswald", "Rubik", sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;

    /* Tmavé pozadí s jemnou texturou – přes overlay je text čitelný */
    background:
        linear-gradient(145deg, rgba(22, 22, 22, 0.97) 0%, rgba(12, 12, 12, 0.98) 100%),
        url('obrazky/beton.png') center / cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    padding: 20px 16px;

    border: 1px solid rgba(255, 122, 0, 0.45);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
        0 4px 20px -4px rgba(0, 0, 0, 0.4);

    transition: border-color 0.3s ease, box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);

    /* Čitelnost jména – jemný stín a kontrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.band:hover {
    border-color: rgba(255, 122, 0, 0.8);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
        0 0 32px rgba(255, 122, 0, 0.25),
        0 8px 28px -8px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.band:focus-visible {
    outline: 2px solid #ffd200;
    outline-offset: 2px;
}

/* ---------------------------------------------------
   RESPONSIVE GRID – profi breakpointy
--------------------------------------------------- */

@media (max-width: 992px) {
    .bands-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .band {
        font-size: 24px;
        min-height: 100px;
        padding: 16px 12px;
    }
}

@media (max-width: 600px) {
    .bands-wrapper {
        padding: 32px 16px 40px;
    }

    .bands-list {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 400px;
        margin: 0 auto;
    }

    .band {
        min-height: 88px;
        font-size: 20px;
        padding: 16px 12px;
        border-radius: 10px;
    }
}

/* ---------------------------------------------------
   MODÁLNÍ OKNO – PROFI (sklo, typografie, video)
--------------------------------------------------- */

.band-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 15000;
    padding: 24px;
}

.band-modal.active {
    display: flex;
}

.band-modal-content {
}

.band-modal-content {
    background: linear-gradient(165deg, rgba(22, 22, 22, 0.98) 0%, rgba(14, 14, 14, 0.99) 100%);
    padding: 0;
    border: 1px solid rgba(255, 122, 0, 0.35);
    border-radius: 16px;
    max-width: 920px;
    width: 100%;
    display: flex;
    gap: 0;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 24px 48px -12px rgba(0, 0, 0, 0.6),
        0 0 80px -20px rgba(255, 122, 0, 0.15);
    animation: band-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes band-modal-in {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Zavírací tlačítko – pill, v rohu */
.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.close-modal:hover {
    background: rgba(255, 122, 0, 0.25);
    color: #ff9a33;
    border-color: rgba(255, 122, 0, 0.4);
}

/* Levá část – název + bio */
.band-modal-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 32px 32px;
    min-width: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 122, 0, 0.15);
}

.band-modal-left h2 {
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #FF5E00;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-right: 36px;
    line-height: 1.2;
}

.band-modal-left p {
    font-family: "Source Sans 3", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

/* Oddělení mezi bio a videem */
.band-modal-left {
    border-right: 1px solid rgba(255, 122, 0, 0.15);
}
/* Scrollbar v bio – diskrétní */
.band-modal-left::-webkit-scrollbar {
    width: 6px;
}

.band-modal-left::-webkit-scrollbar-track {
    background: transparent;
}

.band-modal-left::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 0, 0.3);
    border-radius: 3px;
}

.band-modal-left::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 122, 0, 0.5);
}

/* Pravá část – video doprostřed */
.band-modal-right {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    padding-left: 0;
}

.band-modal-right iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.5);
}


/* ---------------------------------------------------
   MOBIL – MENŠÍ BOX, UPROSTŘED, SCROLL FUNKČNÍ
--------------------------------------------------- */

@media (max-width: 768px) {

    .band {
        font-size: 18px;
        min-height: 80px;
        padding: 14px 12px;
    }

    /* Overlay – modal uprostřed, od okrajů */
    .band-modal {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.85);
        display: none;
        justify-content: center;
        align-items: center;
        padding: 12px;
        z-index: 15000;
        box-sizing: border-box;
    }

    .band-modal.active {
        display: flex;
    }

    /* Modal na mobilu – šířka OK, výška omezená, scroll uvnitř */
    .band-modal-content {
        width: 100%;
        max-width: min(calc(100vw - 24px), 480px);
        max-height: 70vh;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
        position: relative;
    }

    .band-modal-left {
        padding: 44px 16px 16px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 122, 0, 0.15);
    }

    .band-modal-left h2 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 12px;
        padding-right: 0;
    }

    .band-modal-left p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Křížek – větší, viditelný, vždy v rohu */
    .close-modal {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 24px;
        background: rgba(255, 122, 0, 0.9);
        color: #000;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        z-index: 10;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    }

    .close-modal:hover {
        background: #ff7a00;
        color: #000;
        border-color: rgba(255, 255, 255, 0.5);
    }

    .band-modal-right {
        flex: none;
        padding: 0 16px 16px;
        justify-content: center;
        align-items: center;
    }

    .band-modal-right iframe {
        border-radius: 8px;
    }
}
