/* Detail page shares the homepage palette and cards, with its own layout. */
.detail-hero {
    position: relative;
    isolation: isolate;
    padding: 120px 5vw 85px;
    background: #14212a;
}

.detail-backdrop,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.detail-backdrop {
    object-fit: cover;
    filter: saturate(.45) brightness(.5);
}

.detail-hero-shade {
    background: linear-gradient(0deg, #111112, #11111250 65%),
        linear-gradient(90deg, #111112d9, #11111255);
}

.detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #8c8e96;
    font-size: 11px;
    margin-bottom: 40px;
}

.detail-breadcrumb a:hover {
    color: white;
}

.detail-breadcrumb [aria-current] {
    color: #dad8dc;
}

.detail-intro {
    display: grid;
    grid-template-columns: 240px minmax(0, 650px);
    gap: 55px;
    align-items: center;
}

.detail-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    isolation: isolate;
    background: #23313e;
    box-shadow: 0 20px 65px #0009;
    border: 1px solid #ffffff20;
}

.detail-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.detail-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #090c13, #090c1315 85%);
    z-index: -1;
}

.detail-poster-brand {
    position: absolute;
    top: 16px;
    left: 19px;
    color: #ef4651;
    font: 800 29px var(--font-h);
}

.detail-poster-brand small {
    font: 600 7px var(--font-b);
    letter-spacing: 2px;
    color: #fff;
    vertical-align: middle;
}

.detail-poster > strong {
    position: absolute;
    bottom: 45px;
    left: 22px;
    right: 20px;
    font: 800 32px/1.05 var(--font-h);
    letter-spacing: -1px;
}

.detail-poster-caption {
    position: absolute;
    bottom: 20px;
    left: 22px;
    font-size: 7px;
    letter-spacing: 2px;
    color: #aaa8ad;
}

.detail-eyebrow {
    display: block;
    font-size: 9px;
    letter-spacing: 2.3px;
    color: #d36871;
    font-weight: 600;
}

.detail-copy h1 {
    font: 800 clamp(34px, 4.1vw, 60px)/1.05 var(--font-h);
    letter-spacing: -2px;
    margin: 17px 0 20px;
    text-wrap: balance;
}

.detail-metadata,
.detail-genres,
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.detail-metadata {
    font-size: 12px;
    color: #b2b1b9;
}

.detail-metadata span + span::before {
    content: '·';
    color: #6b6972;
    margin-right: 12px;
}

.detail-genres {
    gap: 8px;
    margin: 19px 0;
}

.detail-genres a {
    border: 1px solid #ffffff28;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 10px;
    color: #c7c2cc;
}

.detail-genres a:hover {
    border-color: #ffffff70;
}

.detail-logline {
    max-width: 570px;
    color: #bcbac3;
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 24px;
}

.detail-access-note {
    font-size: 10px;
    color: #939099;
    margin-top: 14px;
}

.detail-copy .share-status {
    margin: 8px 0 0;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.detail-content {
    padding: 0 5vw 45px;
}

.detail-section-nav {
    display: flex;
    gap: 35px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 35px;
}

.detail-section-nav a {
    padding: 18px 0;
    font-size: 12px;
    color: #a5a1ad;
}

.detail-section-nav a:first-child {
    color: #fff;
    border-bottom: 2px solid #df3c47;
}

.detail-section-nav a span {
    background: #ffffff0c;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 5px;
    font-size: 9px;
}

.detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 55px;
    padding-bottom: 45px;
    margin-bottom: 38px;
    border-bottom: 1px solid var(--line);
}

.detail-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.detail-section-heading h2,
.detail-about h2 {
    font: 600 26px var(--font-h);
    letter-spacing: -.7px;
    margin: 9px 0;
}

.detail-section-heading > span,
.detail-section-note {
    color: #8d8996;
    font-size: 11px;
}

.detail-episode-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 10px;
    color: #a5a1ad;
    margin: 23px 0 15px;
}

.detail-episode-legend i {
    display: inline-block;
    background: #ce4654;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.detail-resume-label {
    color: #d1b478;
}

.detail-episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 9px;
}

.detail-episode {
    min-height: 53px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid #ffffff16;
    border-radius: 6px;
    background: #1a191e;
    color: #b2adbc;
    font-size: 13px;
    transition: border-color .2s, background .2s;
}

.detail-episode:hover,
.detail-episode.current {
    border-color: #df4652;
    background: #a72e3b24;
    color: #fff;
}

.detail-episode small {
    font-size: 7px;
    letter-spacing: .6px;
    color: #c2a570;
}

.detail-episode.locked {
    background: #151418;
}

.detail-vip-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid #b9985e30;
    border-radius: 8px;
    padding: 18px;
    margin-top: 24px;
    background: #c19a5108;
}

.detail-vip-banner span {
    color: #d8b777;
    font-size: 9px;
    letter-spacing: 2px;
}

.detail-vip-banner p {
    font-size: 11px;
    color: #9e9482;
    margin-top: 4px;
}

.detail-vip-banner button {
    color: #d8b777;
    font-size: 11px;
}

.detail-about {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff02;
    align-self: start;
}

.detail-about h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.detail-about > p {
    color: #a09aa9;
    font-size: 12px;
    line-height: 1.9;
}

.detail-about dl {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.detail-about dl > div {
    margin-bottom: 15px;
}

.detail-about dt {
    font-size: 10px;
    color: #77717f;
    margin-bottom: 4px;
}

.detail-about dd {
    font-size: 12px;
    color: #ccc5d2;
}

.detail-help {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.detail-help details {
    padding-top: 15px;
}

.detail-help summary {
    font-size: 11px;
    color: #b8b1c2;
    cursor: pointer;
}

.detail-help p {
    margin-top: 10px;
    font-size: 11px;
    color: #98919f;
    line-height: 1.8;
}

.detail-not-found {
    min-height: 65vh;
    padding: 180px 5vw 80px;
}

.detail-not-found h1 {
    font: 800 40px var(--font-h);
    margin: 15px 0;
}

.detail-not-found p {
    color: var(--mute);
    margin-bottom: 25px;
}

#episodes,
#about,
#recommendations {
    scroll-margin-top: 30px;
}

@media (max-width: 1000px) {
    .detail-intro {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 30px;
    }

    .detail-columns {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 25px;
    }
}

@media (max-width: 720px) {
    .detail-hero {
        padding-top: 90px;
        padding-bottom: 35px;
    }

    .detail-breadcrumb {
        margin-bottom: 25px;
        font-size: 10px;
    }

    .detail-intro,
    .detail-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .detail-poster {
        width: 145px;
    }

    .detail-poster > strong {
        font-size: 23px;
        left: 14px;
        bottom: 30px;
    }

    .detail-poster-caption {
        left: 14px;
        bottom: 13px;
        font-size: 5px;
        letter-spacing: 1px;
    }

    .detail-poster-brand {
        top: 10px;
        left: 13px;
        font-size: 22px;
    }

    .detail-copy h1 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .detail-section-nav {
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .detail-section-nav a {
        font-size: 11px;
    }

    .detail-episode-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
    }

    .detail-about {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .detail-episode {
        transition: none;
    }
}
