/* Title Details shared panels and cast content. */

.title-detail-panel {
    margin-top: 12px;
    padding: 0 10px 12px;
}

.title-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.title-detail-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.title-detail-section-link {
    flex: 0 0 auto;
    color: #f4b24a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

.title-detail-section-link:hover,
.title-detail-section-link:focus {
    color: #ffcf72;
}

.title-detail-overview {
    margin: 0;
    color: #d4ccc4;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    overflow-wrap: anywhere;
    max-height: 120px;
    overflow-y: auto;
    padding-inline-end: 4px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.title-detail-overview::-webkit-scrollbar {
    width: 4px;
}

.title-detail-overview::-webkit-scrollbar-track {
    background: transparent;
}

.title-detail-overview::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.title-detail-cast-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 24px) / 3);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
}

.title-detail-cast-grid::-webkit-scrollbar {
    display: none;
}

.title-detail-cast-grid > li {
    min-width: 0;
    scroll-snap-align: start;
}

.title-detail-cast-grid:focus-visible {
    outline: 2px solid #ff7a2a;
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .title-detail-panel {
        margin-top: 20px;
        padding: 0 14px 14px;
    }

    .title-detail-section-head {
        margin-bottom: 12px;
    }
}

.title-detail-cast-section {
    margin-top: 14px;
    padding: 0 10px 8px;
}

.title-detail-cast-section h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

.title-detail-cast-section .title-detail-section-head {
    margin-bottom: 10px;
}

.title-detail-cast-section .title-detail-section-link {
    color: #ff7a2a;
    font-weight: 700;
}
