/* Title Details page foundation and error states. */

.title-detail-page-body {
    min-height: 100vh;
    background: #100b08;
}

.title-detail-page {
    min-height: calc(100vh - 54px);
    padding: 0 0 120px;
    background: #100b08;
}

.title-detail-error-message {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 14px;
    background: rgba(127, 29, 29, 0.42);
    color: #fecaca;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}

.title-detail-state-card {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    min-height: 170px;
    margin: 32px 14px 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #16110f;
    text-align: center;
}

.title-detail-state-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 24px;
}

.title-detail-state-card p {
    margin: 0;
    color: #a99b8d;
    font-size: 12px;
    line-height: 20px;
}

.title-detail-state-card button,
.title-detail-state-card .title-people-retry {
    min-width: 142px;
    min-height: 44px;
    margin-top: 6px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: #f25a00;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.title-detail-state-card button:active,
.title-detail-state-card .title-people-retry:active {
    opacity: 0.88;
    transform: translateY(1px);
}

.title-detail-state-card button:focus-visible,
.title-detail-state-card .title-people-retry:focus-visible {
    outline: 2px solid #ff7a2a;
    outline-offset: 3px;
}

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

.title-detail-loading-heading,
.title-detail-loading-card span {
    display: block;
    border-radius: 8px;
    background: #2a211c;
}

.title-detail-loading-heading {
    width: 80px;
    height: 16px;
    margin-bottom: 10px;
}

.title-detail-loading-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.title-detail-loading-card {
    display: grid;
    gap: 5px;
}

.title-detail-loading-photo {
    width: 100%;
    aspect-ratio: 2 / 3;
}

.title-detail-loading-name {
    width: 85%;
    height: 14px;
}

.title-detail-loading-line {
    width: 60%;
    height: 12px;
}

.title-detail-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    color: #ffffff;
}

@media (min-width: 768px) {
    .title-detail-page {
        min-height: calc(100vh - 56px);
    }
}
