*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    background: #faf5ef;
    color: #3e2c1e;
    font-family: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
header {
    background: #faf5ef;
    padding: 1.2rem 2rem 0.8rem;
    border-bottom: 1px solid #e8dcc8;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.site-brand {
    font-size: 1.65rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    color: #4a2c17;
    display: inline-block;
    width: fit-content;
    border-left: 4px solid #c49a6c;
    padding-left: 0.8rem;
    text-decoration: none;
}
.site-brand:hover { color: #76543a; }
nav[data-contract="categories"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    align-items: center;
}
nav[data-contract="categories"] .runtime-category {
    font-size: 0.85rem;
    color: #6b4f3a;
    background: #f2e9dc;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #e0d0b8;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
nav[data-contract="categories"] .runtime-category:hover {
    background: #e5d5c0;
    color: #3e2c1e;
}
main {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}
.movie-shell {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(62, 44, 30, 0.08);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #eadfce;
}
.poster-col {
    padding: 1.5rem;
    background: #f8f2e9;
    border-right: 1px solid #eadfce;
    align-self: start;
}
.main-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(62, 44, 30, 0.15);
    background: #ddd0bd;
}
.info-col {
    padding: 1.8rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}
.movie-title {
    font-size: 1.9rem;
    font-weight: bold;
    color: #3e2c1e;
    letter-spacing: 0.06em;
    line-height: 1.3;
}
.tagline {
    font-size: 1rem;
    color: #8a6f57;
    font-style: italic;
    letter-spacing: 0.15em;
    margin-top: -0.8rem;
    border-bottom: 1px dotted #d9c8b2;
    padding-bottom: 0.8rem;
}
.cast-panel, .details-panel, .synopsis-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.fragment-heading {
    font-size: 1.05rem;
    font-weight: bold;
    color: #5a3d28;
    letter-spacing: 0.1em;
    position: relative;
    padding-left: 0.8rem;
    margin-bottom: 0.3rem;
}
.fragment-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 3px;
    background: #c49a6c;
}
.actor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}
.actor-chip {
    background: #f5ede2;
    border: 1px solid #e2d3bd;
    border-radius: 999px;
    padding: 0.2rem 1.1rem;
    font-size: 0.95rem;
    color: #4a3422;
    display: inline-flex;
    align-items: center;
}
.actor-name {
    font-weight: 500;
    letter-spacing: 0.05em;
}
.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 1.5rem;
    font-size: 0.92rem;
}
.detail-list li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    border-bottom: 1px dashed #ece0cf;
    padding-bottom: 0.2rem;
}
.detail-label {
    color: #8a6f57;
    min-width: 3.5em;
    flex-shrink: 0;
}
.detail-value {
    color: #3e2c1e;
    font-weight: 500;
}
.synopsis-para {
    font-size: 0.98rem;
    color: #4a3a2c;
    line-height: 1.8;
    margin-bottom: 0.2rem;
    text-align: justify;
}
.episode-status-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    background: #f8f2e9;
    border-radius: 6px;
    padding: 0.7rem 1.2rem;
    border: 1px solid #eadfce;
    margin-top: 0.3rem;
}
.episode-count, .episode-current, .episode-duration {
    font-size: 0.95rem;
    color: #5a3d28;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.episode-count::before { content: "📺 "; }
.episode-current::before { content: "🔄 "; }
.episode-duration::before { content: "⏱ "; }
.player-wrapper {
    grid-column: 1 / -1;
    background: #1a120c;
    padding: 1.2rem 1.5rem 1.5rem;
    border-top: 1px solid #3e2c1e;
    min-width: 0;
}
.player-wrapper video {
    width: 100%;
    height: auto;
    background: #000;
    border-radius: 4px;
}
.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.8rem;
}
.player-controls button {
    background: #3e2c1e;
    color: #f5ede2;
    border: 1px solid #5a3d28;
    border-radius: 4px;
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
.player-controls button:hover {
    background: #5a3d28;
}
.timeline-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.8rem 2rem;
    border: 1px solid #eadfce;
    box-shadow: 0 1px 8px rgba(62, 44, 30, 0.05);
}
.timeline-rail {
    position: relative;
    padding-left: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin-top: 1.2rem;
}
.timeline-rail::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    border-left: 2px dashed #c49a6c;
    opacity: 0.5;
}
.timeline-item {
    position: relative;
    padding-left: 0.5rem;
    border-left: 2px solid #c49a6c;
    padding-bottom: 0.5rem;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.45rem;
    top: 0.3rem;
    width: 0.7rem;
    height: 0.7rem;
    background: #c49a6c;
    border-radius: 50%;
    border: 2px solid #fff;
}
.timeline-time {
    font-weight: bold;
    color: #5a3d28;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.2rem;
}
.timeline-label {
    font-size: 0.88rem;
    color: #6b4f3a;
    line-height: 1.6;
}
.episodes-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.8rem 0 1.8rem 2rem;
    border: 1px solid #eadfce;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(62, 44, 30, 0.05);
}
.episodes-section .fragment-heading {
    padding-right: 2rem;
}
.episode-scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1.2rem 2rem 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.episode-scroller::-webkit-scrollbar {
    height: 6px;
}
.episode-scroller::-webkit-scrollbar-thumb {
    background: #c49a6c;
    border-radius: 3px;
}
.episode-scroller::-webkit-scrollbar-track {
    background: #f2e9dc;
}
.episode-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: #faf5ef;
    border: 1px solid #eadfce;
    border-radius: 8px;
    padding: 1.2rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 180px;
    justify-content: space-between;
}
.episode-number {
    font-weight: bold;
    color: #5a3d28;
    font-size: 1.1rem;
    border-bottom: 1px solid #e2d3bd;
    padding-bottom: 0.4rem;
}
.episode-title {
    font-weight: 600;
    color: #3e2c1e;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}
.episode-summary {
    font-size: 0.85rem;
    color: #6b4f3a;
    line-height: 1.6;
    flex: 1;
}
.episode-card .episode-duration {
    font-size: 0.8rem;
    color: #8a6f57;
    border-top: 1px dashed #e2d3bd;
    padding-top: 0.4rem;
    margin-top: 0.2rem;
}
.comments-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.8rem 2rem;
    border: 1px solid #eadfce;
    box-shadow: 0 1px 8px rgba(62, 44, 30, 0.05);
}
.comments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}
.comment-item {
    background: #faf5ef;
    border: 1px solid #eadfce;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.comment-author {
    font-weight: bold;
    color: #5a3d28;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.comment-author::before {
    content: "“";
    font-size: 1.6rem;
    color: #c49a6c;
    line-height: 1;
}
.comment-text {
    font-size: 0.9rem;
    color: #4a3a2c;
    line-height: 1.7;
    margin-left: 1rem;
    border-left: 2px solid #e2d3bd;
    padding-left: 0.8rem;
}
.recommend-panel {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.6rem 2rem;
    border: 1px solid #eadfce;
    box-shadow: 0 1px 8px rgba(62, 44, 30, 0.05);
}
.recommend-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5a3d28;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    border-left: 4px solid #c49a6c;
    padding-left: 0.8rem;
}
.recommend-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}
.recommend-panel:nth-of-type(2) .recommend-list, .recommend-panel:nth-of-type(3) .recommend-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
a[data-runtime="recommendation"] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: #faf5ef;
    border: 1px solid #eadfce;
    border-radius: 6px;
    padding: 0.8rem;
    text-decoration: none;
    color: #3e2c1e;
    transition: box-shadow 0.2s, transform 0.2s;
    height: auto;
    align-self: start;
}
a[data-runtime="recommendation"]:hover {
    box-shadow: 0 4px 16px rgba(62, 44, 30, 0.12);
    transform: translateY(-2px);
}
a[data-runtime="recommendation"] img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    background: #ddd0bd;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
    font-weight: bold;
    font-size: 0.95rem;
    color: #4a3422;
    margin-top: 0.2rem;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
    font-size: 0.8rem;
    color: #8a6f57;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
footer {
    background: #f2e9dc;
    border-top: 1px solid #e0d0b8;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.disclaimer {
    font-size: 0.8rem;
    color: #8a6f57;
    line-height: 1.6;
    max-width: 900px;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    color: #5a3d28;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
    border-color: #5a3d28;
}
nav[data-contract="friend-links"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    align-items: center;
    border-top: 1px solid #e0d0b8;
    padding-top: 1rem;
}
.friend-label {
    font-size: 0.85rem;
    color: #8a6f57;
    font-weight: bold;
}
a.runtime-friend-link {
    font-size: 0.85rem;
    color: #6b4f3a;
    text-decoration: none;
    border-bottom: 1px dashed #b8a088;
    transition: color 0.2s, border-color 0.2s;
}
a.runtime-friend-link:hover {
    color: #3e2c1e;
    border-color: #3e2c1e;
}
@media (max-width: 1024px) {main {
        padding: 1rem 1.2rem 2rem;
        gap: 1.8rem;
    }
.movie-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }
.poster-col {
        padding: 1rem;
    }
.info-col {
        padding: 1.4rem 1.5rem 1.2rem;
    }
.movie-title {
        font-size: 1.6rem;
    }
.detail-list {
        grid-template-columns: 1fr;
    }
.timeline-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.recommend-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.recommend-panel:nth-of-type(2) .recommend-list, .recommend-panel:nth-of-type(3) .recommend-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }}
@media (max-width: 768px) {header {
        padding: 1rem 1rem 0.6rem;
    }
.site-brand {
        font-size: 1.3rem;
    }
main {
        padding: 1rem 1rem 2rem;
    }
.movie-shell {
        grid-template-columns: 1fr;
    }
.poster-col {
        border-right: none;
        border-bottom: 1px solid #eadfce;
        padding: 1rem;
        display: flex;
        justify-content: center;
    }
.main-poster {
        max-width: 280px;
    }
.info-col {
        padding: 1.2rem 1.2rem 1rem;
    }
.player-wrapper {
        padding: 1rem;
    }
.timeline-rail {
        grid-template-columns: 1fr;
        padding-left: 1.5rem;
    }
.episodes-section {
        padding-left: 1rem;
    }
.episode-scroller {
        padding-right: 1rem;
    }
.episode-card {
        flex-basis: 220px;
    }
.comments-grid {
        grid-template-columns: 1fr;
    }
.recommend-list, .recommend-panel:nth-of-type(2) .recommend-list, .recommend-panel:nth-of-type(3) .recommend-list {
        grid-template-columns: 1fr;
    }
footer {
        padding: 1.5rem 1rem;
    }}
@media (max-width: 480px) {html {
        font-size: 15px;
    }
.movie-title {
        font-size: 1.4rem;
    }
.tagline {
        font-size: 0.9rem;
    }
.detail-list {
        grid-template-columns: 1fr;
    }
.actor-list {
        gap: 0.4rem;
    }
.actor-chip {
        padding: 0.15rem 0.9rem;
        font-size: 0.85rem;
    }
.episode-status-panel {
        gap: 0.4rem 1rem;
        padding: 0.6rem 0.8rem;
    }
.player-controls button {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
.episode-card {
        flex-basis: 200px;
        padding: 1rem;
    }
.timeline-rail {
        padding-left: 1.2rem;
    }
.recommend-panel {
        padding: 1.2rem 1rem;
    }
.comments-section, .timeline-section {
        padding: 1.2rem 1rem;
    }}
video.theater-mode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    z-index: 100;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
body:has(video.light-off)::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99;
    pointer-events: none;
}
video.light-off {
    position: relative;
    z-index: 100;
}
video.light-off ~ .player-controls {
    position: relative;
    z-index: 101;
}
video.light-off ~ .player-controls button {
    background: #f5ede2;
    color: #1a120c;
}
.player-wrapper {
    min-width: 480px;
}
@media (max-width: 520px) {.player-wrapper {
        min-width: 0;
        width: 100%;
    }}
video[data-contract="player"] {
    width: 100%;
    height: auto;
}
.recommend-panel:first-of-type .recommend-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.recommend-panel:first-of-type .recommend-list a:last-child:nth-child(4) {
    grid-column: auto;
}
.recommend-panel, .cast-panel, .details-panel, .synopsis-panel, .episode-status-panel, .timeline-section, .episodes-section, .comments-section, .comment-item, .episode-card {
    height: auto;
    align-self: start;
}
.movie-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
}
.movie-shell .poster-col, .movie-shell .info-col, .movie-shell .player-wrapper {
    background: #ffffff;
}
a[data-contract="site-name"] {
    color: #4a2c17;
    text-decoration: none;
}
a[data-contract="site-name"]:hover {
    color: #76543a;
}
a.runtime-category {
    color: #6b4f3a;
    text-decoration: none;
}
a.runtime-category:hover {
    color: #3e2c1e;
    text-decoration: underline;
}
a[data-runtime="recommendation"] {
    color: #3e2c1e;
    text-decoration: none;
}
a[data-runtime="recommendation"]:hover {
    text-decoration: none;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    color: #5a3d28;
    text-decoration: none;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
    text-decoration: underline;
}
a.runtime-friend-link {
    color: #6b4f3a;
    text-decoration: none;
}
a.runtime-friend-link:hover {
    color: #3e2c1e;
    text-decoration: underline;
}
.comments-grid {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1200px) {.recommend-panel:first-of-type .recommend-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }}
@media (max-width: 900px) {.movie-shell {
        grid-template-columns: 240px minmax(0, 1fr);
    }}
@media (max-width: 700px) {.movie-shell {
        grid-template-columns: 1fr;
    }
.poster-col {
        border-right: none;
        border-bottom: 1px solid #eadfce;
    }
.comments-grid {
        grid-template-columns: 1fr;
    }}
.timeline-rail::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed #c49a6c;
    opacity: 0.6;
}
.episode-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.actor-chip {
    border-radius: 999px 999px 999px 999px;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
}
.actor-chip::before {
    content: "◉";
    margin-right: 0.4rem;
    font-size: 0.7rem;
    color: #c49a6c;
}
.recommend-panel:first-of-type .recommend-list {
    grid-template-columns: repeat(4, 1fr);
}
.recommend-panel:nth-of-type(2) .recommend-list, .recommend-panel:nth-of-type(3) .recommend-list {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {.recommend-panel:first-of-type .recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }
.recommend-panel:nth-of-type(2) .recommend-list, .recommend-panel:nth-of-type(3) .recommend-list {
        grid-template-columns: repeat(2, 1fr);
    }}
@media (max-width: 600px) {.recommend-panel:first-of-type .recommend-list, .recommend-panel:nth-of-type(2) .recommend-list, .recommend-panel:nth-of-type(3) .recommend-list {
        grid-template-columns: 1fr;
    }}

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}
