/* Title Details hero follows the mobile layout at every screen width. */

.title-detail-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: transparent;
    isolation: isolate;
}

.title-detail-backdrop-mask {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: 430px;
    pointer-events: none;
    /* Fade the artwork and its tint together, like mobile's MaskedView. */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.8) 68%, rgba(0, 0, 0, 0.2) 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.8) 68%, rgba(0, 0, 0, 0.2) 88%, transparent 100%);
}

.title-detail-backdrop-mask::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(16, 11, 8, 0.04) 0%, rgba(16, 11, 8, 0.18) 62%, rgba(16, 11, 8, 0.48) 100%);
    content: "";
}

.title-detail-backdrop {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.title-detail-hero-top-actions {
    position: absolute;
    top: 14px;
    inset-inline: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.title-detail-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 430px;
    padding: 145px 14px 22px;
    direction: ltr;
}

.title-detail-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.title-detail-hero-visual {
    position: relative;
    width: 128px;
    height: 192px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: #111010;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.title-detail-poster-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
}

.title-detail-poster-button:disabled {
    cursor: default;
}

.title-detail-poster-button:focus-visible {
    outline: 3px solid #ff7a18;
    outline-offset: -3px;
}

.title-detail-poster[hidden],
.title-detail-poster-rating[hidden] {
    display: none;
}

.title-detail-poster {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.title-detail-poster-placeholder {
    display: grid;
    place-items: center;
    padding: 10px;
    background: #201916;
    color: #8f837b;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

.title-detail-poster-rating {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 192, 110, 0.22);
    border-radius: 50%;
    background: #9d3f09;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.34);
    color: #fff8ef;
    text-align: center;
}

.title-detail-poster-rating strong {
    font-size: 12px;
    font-weight: 900;
    line-height: 14px;
}

.title-detail-poster-rating-count {
    max-width: 100%;
    overflow: hidden;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(16, 14, 16, 0.72);
    color: rgba(255, 248, 239, 0.88);
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.title-detail-icon-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(24, 18, 20, 0.74);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
    color: #f7f1eb;
    text-decoration: none;
    cursor: pointer;
}

.title-detail-icon-button:active:not(:disabled) {
    opacity: 0.82;
    transform: scale(0.97);
}

.title-detail-icon-button:disabled {
    cursor: default;
}

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

.title-detail-icon-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.title-detail-share-message {
    margin: 10px 16px 0;
    color: #d7f7df;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
}

.title-detail-share-message.is-error {
    color: #ff9d64;
}

.title-detail-hero-action-spacer {
    visibility: hidden;
    pointer-events: none;
}

.title-detail-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding-top: 10px;
    text-align: right;
    direction: rtl;
}

.title-detail-hero h1 {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #ffffff;
    font-size: 27px;
    font-weight: 900;
    line-height: 31px;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}

.title-detail-subtitle {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    overflow-wrap: anywhere;
}

.title-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #d8cec4;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.title-detail-meta span {
    white-space: nowrap;
}

.title-detail-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.title-detail-genres span {
    min-height: 20px;
    max-width: 100%;
    overflow: hidden;
    padding: 4px 8px;
    border-radius: 999px;
    background: #2a2523;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.55);
}

.title-detail-overview-block {
    margin-top: 6px;
}

.title-detail-overview-block h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 18px;
}
