*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #0d1326;
    color: #f2e9d8;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.02em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
video { display: block; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(13, 19, 38, 0.85);
    border-bottom: 1px solid rgba(242, 233, 216, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}
.site-brand {
    font-family: "Didot", "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f2e9d8;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
nav[data-contract="categories"] {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 75vw;
}
nav[data-contract="categories"]::-webkit-scrollbar { display: none; }
.runtime-category {
    color: #c3b8a9;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.runtime-category:hover {
    background: rgba(242, 233, 216, 0.1);
    color: #f2e9d8;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.hero-poster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "media copy"
        "media cast"
        "media synopsis"
        "status status"
        "details details";
    gap: 1.5rem 2rem;
    padding: 2.5rem 0 1rem;
    align-items: start;
}
.poster-media-wrap {
    grid-area: media;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: #1a2340;
    align-self: start;
}
.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
.hero-copy {
    grid-area: copy;
    padding-top: 0.5rem;
}
.movie-title {
    font-family: "Didot", "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #f2e9d8;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}
.tagline {
    color: #aab3c8;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-style: italic;
}
.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.meta-chip {
    background: rgba(242, 233, 216, 0.07);
    border: 1px solid rgba(242, 233, 216, 0.15);
    color: #c3b8a9;
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    letter-spacing: 0.05em;
}
.cast-panel {
    grid-area: cast;
}
.fragment-heading {
    font-family: "Didot", "Playfair Display", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4c9b8;
    margin-bottom: 0.8rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(242, 233, 216, 0.15);
    padding-bottom: 0.4rem;
}
.cast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.cast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: rgba(242, 233, 216, 0.04);
    border-radius: 16px;
    padding: 1rem 0.5rem;
    border: 1px solid rgba(242, 233, 216, 0.06);
    transition: background 0.2s;
}
.cast-card:hover { background: rgba(242, 233, 216, 0.08); }
.avatar-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5a4a7a, #3a2f55);
    color: #f2e9d8;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid rgba(242, 233, 216, 0.2);
}
.actor-name {
    font-size: 0.75rem;
    color: #c3b8a9;
}
.synopsis-panel {
    grid-area: synopsis;
}
.synopsis-text p {
    font-size: 0.85rem;
    color: #aab3c8;
    margin-bottom: 0.6rem;
    line-height: 1.7;
    text-align: justify;
}
.synopsis-text p:last-child { margin-bottom: 0; }
.episode-status-panel {
    grid-area: status;
    background: rgba(242, 233, 216, 0.03);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(242, 233, 216, 0.06);
}
.status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #aab3c8;
}
.total-ep, .current-ep, .ep-duration {
    padding: 0.3rem 0.8rem;
    background: rgba(242, 233, 216, 0.06);
    border-radius: 20px;
}
.player-shell {
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
}
.player-shell video {
    display: block;
    background: #000;
}
.player-controls-bar {
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    padding: 0.6rem 0.8rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.ctrl-btn {
    font-size: 0.7rem;
    color: #f2e9d8;
    background: rgba(242, 233, 216, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 16px;
    transition: background 0.2s;
}
.ctrl-btn:hover { background: rgba(242, 233, 216, 0.25); }
.player-shell.theater-mode {
    position: fixed;
    inset: 0;
    z-index: 100;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background: #000;
}
.player-shell.theater-mode video {
    flex: 1;
    min-height: 0;
    object-fit: contain;
}
.player-shell.lights-off { filter: brightness(0.5); }
.details-panel {
    grid-area: details;
}
.details-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem 1.2rem;
}
.detail-item {
    padding: 0.6rem;
    background: rgba(242, 233, 216, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(242, 233, 216, 0.05);
}
.detail-item dt {
    font-size: 0.7rem;
    color: #8b93a8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}
.detail-item dd {
    font-size: 0.85rem;
    color: #e0d7c8;
}
.timeline-section {
    padding: 2.5rem 0 1rem;
}
.timeline-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    padding-left: 2rem;
    max-width: 700px;
}
.timeline-wrap::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #5a4a7a 0 6px, transparent 6px 12px);
}
.timeline-node {
    position: relative;
    padding-left: 1rem;
}
.timeline-node::before {
    content: "";
    position: absolute;
    left: -1.4rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7c6ba0;
    border: 2px solid #1a2340;
    box-shadow: 0 0 8px rgba(124, 107, 160, 0.5);
}
.node-timecode {
    display: inline-block;
    font-size: 0.75rem;
    color: #aab3c8;
    background: rgba(124, 107, 160, 0.15);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.3rem;
    letter-spacing: 0.04em;
}
.node-label {
    font-size: 0.85rem;
    color: #d4c9b8;
    line-height: 1.6;
}
.episodes-carousel {
    padding: 2rem 0 1rem;
}
.episode-scroll-wrap {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.episode-card {
    scroll-snap-align: start;
    background: rgba(242, 233, 216, 0.04);
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid rgba(242, 233, 216, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s, background 0.2s;
}
.episode-card:hover {
    transform: translateY(-3px);
    background: rgba(242, 233, 216, 0.07);
}
.ep-number {
    font-size: 1.6rem;
    font-weight: 600;
    color: #7c6ba0;
    font-family: "Didot", Georgia, serif;
}
.ep-title {
    font-size: 0.95rem;
    color: #f2e9d8;
    font-weight: 500;
}
.ep-summary {
    font-size: 0.78rem;
    color: #aab3c8;
    line-height: 1.6;
    flex: 1;
}
.ep-duration {
    font-size: 0.7rem;
    color: #8b93a8;
    align-self: flex-start;
    background: rgba(124, 107, 160, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}
.comments-carousel {
    padding: 2rem 0 1rem;
}
.comment-scroll-wrap {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.comment-card {
    scroll-snap-align: start;
    flex: 0 0 280px;
    background: rgba(242, 233, 216, 0.04);
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid rgba(242, 233, 216, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.comment-nick {
    font-size: 0.8rem;
    color: #7c6ba0;
    font-weight: 500;
}
.comment-bubble {
    background: rgba(124, 107, 160, 0.12);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    color: #e0d7c8;
    line-height: 1.6;
    position: relative;
}
.comment-bubble::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(124, 107, 160, 0.12);
}
.recommend-region {
    padding: 2rem 0 1rem;
}
.region-heading {
    font-family: "Didot", "Playfair Display", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4c9b8;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(242, 233, 216, 0.15);
    padding-bottom: 0.4rem;
}
.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.reco-card {
    display: flex;
    flex-direction: column;
    background: rgba(242, 233, 216, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(242, 233, 216, 0.06);
    transition: transform 0.2s, background 0.2s;
    align-self: start;
}
.reco-card:hover {
    transform: translateY(-3px);
    background: rgba(242, 233, 216, 0.06);
}
.reco-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #1a2340;
}
.reco-name {
    font-size: 0.85rem;
    color: #f2e9d8;
    padding: 0.7rem 0.8rem 0.2rem;
    font-weight: 500;
}
.reco-blurb {
    font-size: 0.75rem;
    color: #aab3c8;
    padding: 0 0.8rem 0.8rem;
    line-height: 1.5;
}
footer {
    background: rgba(242, 233, 216, 0.02);
    border-top: 1px solid rgba(242, 233, 216, 0.08);
    padding: 2rem 1rem 2.5rem;
    margin-top: 3rem;
}
.disclaimer-text {
    font-size: 0.7rem;
    color: #8b93a8;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    line-height: 1.6;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.footer-link {
    font-size: 0.8rem;
    color: #c3b8a9;
    transition: color 0.2s;
}
.footer-link:hover { color: #f2e9d8; }
.friend-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    align-items: center;
}
.friend-label {
    font-size: 0.75rem;
    color: #8b93a8;
    margin-right: 0.5rem;
}
.runtime-friend-link {
    font-size: 0.75rem;
    color: #aab3c8;
    background: rgba(242, 233, 216, 0.04);
    padding: 0.25rem 0.8rem;
    border-radius: 14px;
    transition: background 0.2s, color 0.2s;
}
.runtime-friend-link:hover {
    background: rgba(242, 233, 216, 0.1);
    color: #f2e9d8;
}
@media (max-width: 900px) {.hero-poster {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "copy"
            "cast"
            "synopsis"
            "status"
            "details";
        gap: 1.5rem;
    }
.poster-media-wrap {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
.details-list {
        grid-template-columns: repeat(2, 1fr);
    }
.region-grid {
        grid-template-columns: repeat(2, 1fr);
    }}
@media (max-width: 600px) {header {
        padding: 0.6rem 1rem;
        flex-direction: column;
        gap: 0.4rem;
    }
nav[data-contract="categories"] {
        max-width: 100%;
        justify-content: flex-start;
    }
main { padding: 0 0.8rem; }
.hero-poster { padding-top: 1.5rem; }
.movie-title { font-size: 1.4rem; }
.cast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
.details-list {
        grid-template-columns: 1fr;
    }
.region-grid {
        grid-template-columns: 1fr;
    }
.episode-scroll-wrap {
        grid-auto-columns: 220px;
    }
.comment-card {
        flex-basis: 240px;
    }
.timeline-wrap {
        padding-left: 1.5rem;
    }
.timeline-node::before {
        left: -1.1rem;
    }}
.player-shell.theater-mode {
    position: fixed;
    inset: 0;
    z-index: 100;
    border-radius: 0;
}
.player-shell.lights-off {
    background: rgba(0,0,0,0.85);
}
.player-shell.lights-off video {
    opacity: 0.7;
}

footer{text-align:center!important}
footer *{justify-content:center!important}
footer :is(div,nav,ul,ol,p,section,address){margin-left:auto!important;margin-right:auto!important}
