.detail-page .site-header {
    position: relative;
}

.drama-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 24px 5.1% 28px;
    background: #0d1017;
}

.drama-backdrop {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: url("../images/hero-romance.png") center 42% / cover;
    opacity: .65;
}

.drama-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(0deg, #08090b, #08090b10 70%),
        linear-gradient(90deg, #08090bf5 5%, #08090bd9 48%, #08090b10);
    content: "";
}

.drama-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    color: #b3bdcf;
    font-size: 11px;
    line-height: 1.5;
}

.drama-overview {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 30px;
    max-width: 1320px;
}

.drama-cover {
    position: relative;
    align-self: start;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid #ffffff20;
    border-radius: 9px;
    background: #271421;
    isolation: isolate;
}

.drama-cover-art {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 50%;
    height: 100%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: url("../images/drama-posters.png") var(--art-x) var(--art-y) / 300% 300%;
}

.drama-cover::after {
    position: absolute;
    z-index: -1;
    inset: 40% 0 0;
    background: linear-gradient(transparent, #130813dd);
    content: "";
}

.drama-cover-episode {
    position: absolute;
    top: 11px;
    left: 10px;
    padding: 7px 9px;
    border-radius: 5px;
    background: #ff0061;
    font-size: 12px;
    font-weight: 700;
}

.drama-cover-title {
    position: absolute;
    right: 10px;
    bottom: 25px;
    left: 10px;
    font-family: Georgia, serif;
    font-size: 31px;
    font-style: italic;
    line-height: 1.05;
    text-align: center;
}

.drama-overview h1 {
    margin: 5px 0 14px;
    font-family: Georgia, serif;
    font-size: clamp(31px, 3.3vw, 51px);
    font-weight: 500;
    line-height: 1.15;
}

.drama-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin: 0 0 12px;
    color: #dbe2ef;
    font-size: 13px;
}

.drama-meta > i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a2aabb;
}

.drama-status {
    padding: 4px 9px;
    border: 1px solid #ff347542;
    border-radius: 15px;
    background: #630c3159;
    font-size: 11px;
}

.drama-synopsis {
    max-width: 620px;
    margin: 0;
    color: #c6cedd;
    font-size: 13px;
    line-height: 1.65;
}

.drama-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 20px 0 27px;
}

.drama-actions .button {
    min-height: 44px;
    padding: 12px 25px;
}

.drama-actions [aria-pressed="true"] {
    border-color: #ff3b80;
    color: #ff8bb7;
}

.drama-facts {
    display: grid;
    grid-template-columns: 1.5fr 1fr .7fr 1fr .8fr;
    gap: 18px;
    margin: 0;
    max-width: 900px;
    font-size: 11px;
    line-height: 1.6;
}

.drama-facts dt {
    margin-bottom: 5px;
    color: #a7b2c6;
}

.drama-facts dd {
    margin: 0;
    color: #d0d8e6;
}

.drama-section-nav {
    display: flex;
    gap: 30px;
    padding: 0 5.1%;
    border-bottom: 1px solid #262b37;
}

.drama-section-nav a {
    position: relative;
    padding: 16px 8px;
    color: #c4cede;
    font-size: 13px;
}

.drama-section-nav .active {
    color: #ff1672;
}

.drama-section-nav .active::after {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    border-radius: 4px 4px 0 0;
    background: #ff0061;
    content: "";
}

.drama-body {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px 5.1% 0;
}

.drama-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    align-items: start;
    gap: 24px;
}

.drama-body h2 {
    margin: 4px 0 8px;
    font-size: 19px;
}

.episode-description {
    margin: 0 0 14px;
    color: #aab6cb;
    font-size: 12px;
    line-height: 1.7;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(18, minmax(0, 1fr));
    gap: 9px;
}

.episode-list button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 52px;
    padding: 12px 3px;
    border: 1px solid #2c2c32;
    border-radius: 6px;
    background: #141416;
    color: #c3c2cc;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    transition: background .15s, border-color .15s, color .15s;
}

.episode-list button:hover,
.episode-list button:focus-visible {
    border-color: #ff0061;
    background: #ff0061;
    color: white;
    box-shadow: 0 3px 12px #ff006126;
}

.episode-list svg {
    width: 14px;
    height: 14px;
}

.episode-preview {
    display: grid;
    place-items: center;
    gap: 9px;
    min-height: 220px;
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid #36303f;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, #3c0d2729, #0d1118);
    text-align: center;
}

.episode-preview h3,
.episode-preview p {
    margin: 0;
}

.episode-preview p {
    color: #a5adbd;
    font-size: 12px;
}

.drama-vip {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 17px;
    padding: 15px 17px;
    border: 1px solid #b08b36;
    border-radius: 7px;
    background: linear-gradient(100deg, #b6892010, #b6892003);
}

.vip-icon,
.drama-vip strong {
    color: #f0c86b;
}

.drama-vip strong {
    font-size: 12px;
}

.drama-vip p {
    margin: 5px 0 0;
    color: #b7c0d1;
    font-size: 11px;
    line-height: 1.5;
}

.drama-vip a {
    flex-shrink: 0;
    margin-left: auto;
    padding: 10px 13px;
    border: 1px solid #8b6d32;
    border-radius: 6px;
    color: #f0c86b;
    font-size: 11px;
}

.drama-about {
    padding: 17px 20px;
    border: 1px solid #242b38;
    border-radius: 9px;
    background: #0e131b;
}

.drama-about h2 {
    margin: 0 0 15px;
    font-size: 15px;
}

.drama-about dl {
    display: grid;
    grid-template-columns: .9fr 1.2fr;
    gap: 8px 12px;
    margin: 0;
    font-size: 10px;
    line-height: 1.4;
}

.drama-about dt {
    color: #9fabbe;
}

.drama-about dd {
    margin: 0;
    color: #c0cbdd;
}

.drama-about-synopsis {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #ffffff12;
}

.drama-about h3 {
    margin: 0 0 8px;
    font-size: 12px;
}

.drama-about p {
    margin: 0;
    color: #b5bfd1;
    font-size: 11px;
    line-height: 1.55;
}

.drama-about .drama-data-note {
    margin-top: 12px;
    color: #778299;
    font-size: 10px;
}

.drama-recommendations {
    margin-top: 30px;
}

.drama-recommendations .poster {
    display: block;
}

.detail-recommend-meta {
    display: block;
    margin-top: 5px;
    color: #a5b1c7;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .episode-list {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

    .drama-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .detail-page {
        padding-bottom: 80px;
    }

    .detail-page .drama-hero::after {
        background: linear-gradient(0deg, #08090b 5%, #08090bc9 75%), linear-gradient(90deg, #08090b99, transparent);
    }

    .drama-hero {
        padding: 20px 5% 24px;
    }

    .drama-breadcrumb {
        margin-bottom: 20px;
        font-size: 10px;
    }

    .drama-overview {
        grid-template-columns: minmax(100px, 32%) minmax(0, 1fr);
        gap: 18px;
    }

    .drama-overview-copy {
        display: contents;
    }

    .drama-cover {
        grid-row: 1 / 3;
    }

    .drama-cover-title {
        bottom: 14px;
        font-size: 20px;
    }

    .drama-cover-episode {
        top: 7px;
        left: 6px;
        padding: 5px;
        font-size: 9px;
    }

    .drama-overview h1 {
        grid-column: 2;
        align-self: end;
        margin: 0;
        font-family: Arial, Helvetica, sans-serif;
        font-size: clamp(23px, 6vw, 32px);
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .drama-meta {
        grid-column: 2;
        align-self: start;
        gap: 8px;
        margin: 0;
        font-size: 11px;
        line-height: 1.5;
    }

    .drama-synopsis,
    .drama-actions,
    .drama-facts {
        grid-column: 1 / -1;
    }

    .drama-synopsis {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.8;
    }

    .drama-actions {
        gap: 12px;
        margin: 0;
    }

    .drama-actions .button {
        flex: 1;
        padding: 12px;
        font-size: 12px;
    }

    .drama-facts {
        display: none;
    }

    .drama-section-nav {
        position: sticky;
        z-index: 5;
        top: 0;
        justify-content: space-between;
        background: #08090bf5;
        gap: 16px;
        padding: 0 4%;
    }

    .drama-section-nav a {
        padding: 15px 6px;
        font-size: 12px;
    }

    .drama-body {
        padding: 26px 5% 20px;
    }

    .drama-body-grid {
        grid-template-columns: 1fr;
    }

    .episode-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
    }

    .drama-vip {
        flex-wrap: wrap;
        padding: 15px;
    }

    .drama-vip > div {
        flex: 1;
    }

    .drama-vip a {
        margin-left: 36px;
    }

    .drama-about dl {
        font-size: 12px;
    }

    .drama-about p {
        font-size: 12px;
    }
}

.drama-view-count { color: #aebbd0; font-size: 13px; margin: 16px 0; }
