/* 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: 11px;
    font-weight: 600;
    line-height: 1.62;
    overflow-wrap: anywhere;
    max-height: 130px;
    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;
}

.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-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.title-detail-cast-item {
    min-height: 92px;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 11px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    background: linear-gradient(180deg, #171315 0%, #111010 100%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
    text-align: center;
}

.title-detail-cast-avatar {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(242, 90, 0, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(135deg, rgba(242, 90, 0, 0.34), rgba(255, 255, 255, 0.06));
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.title-detail-cast-item h3 {
    margin: 0;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
}

.title-detail-cast-item p {
    margin: 0;
    color: #8f837b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
}

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

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

    .title-detail-cast-grid {
        gap: 12px;
    }
}
