/* =========================
   CREDIT GRID
   ========================= */

.credit-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 30px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =========================
   CREDIT BLOCK
   ========================= */

.block {
    position: relative;
    width: 100%;
    height: 300px;

    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    background-color: #111;

    border-radius: 15px;
    overflow: hidden;

    margin-bottom: 30px;
    overflow: visible;
    z-index: 1;

}

.block:has(.credit-dropdown[open]) {
    z-index: 1000;
}

.block:hover {
    border-color: #b89b5e;
    box-shadow: 0 5px 18px rgba(23, 23, 26, 0.08);
}


/* =========================
   MAIN TITLE
   ========================= */

.titles {
    color: #17171a;

    font-size: 1.3rem;
    font-weight: 600;

    margin: 0 0 20px;
}


/* =========================
   VIEW CREDITS BUTTON
   ========================= */

.credit-dropdown {
    width: 100%;
    z-index: 100;

}

.credit-dropdown summary {
    list-style: none;

    cursor: pointer;

    display: inline-block;

    padding: 8px 14px;

    background: #17171a;
    color: #f7f5f0;

    border-radius: 5px;

    font-size: 0.8rem;

    user-select: none;

    transition: background 0.2s ease;
}

.credit-dropdown summary::-webkit-details-marker {
    display: none;
}

.credit-dropdown summary::after {
    content: " ▾";
}

.credit-dropdown[open] summary::after {
    content: " ▴";
}

.credit-dropdown summary:hover {
    background: #b89b5e;
    color: #17171a;
}


/* =========================
   HIDDEN CREDIT INFORMATION
   ========================= */

.credit-info {
    background: white;
    color: black;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    z-index: 9999;
}


/* =========================
   SHOW / FILM TITLES
   ========================= */

.channel {
    color: #77736b;

    font-size: 0.95rem;
    font-weight: 500;

    margin: 8px 0;
}


/* =========================
   EPISODE DROPDOWN
   ========================= */

.dropdown ul {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.dropdown summary {
    list-style: none;

    cursor: pointer;

    display: inline-block;

    padding: 7px 12px;

    background: #f7f5f0;
    color: #55514a;

    border: 1px solid #dedad1;
    border-radius: 5px;

    font-size: 0.8rem;

    user-select: none;
}

.dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown summary::after {
    content: " ▾";
}

.dropdown[open] summary::after {
    content: " ▴";
}


/* =========================
   EPISODES
   ========================= */

.dropdown ul {
    margin: 10px 0 0;
    padding: 8px 0;

    list-style: none;

    background: #f7f5f0;

    border: 1px solid #dedad1;

    border-radius: 6px;

    max-height: 200px;
    overflow-y: auto;
}

.dropdown li {
    padding: 7px 12px;

    color: #55514a;

    font-size: 0.85rem;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 850px) {

    .container {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
    }

}


@media (max-width: 550px) {

    .container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

}