*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    background: #0a1628;
    color: #c9d1d9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 22, 40, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
}
.site-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #d4af37;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s;
}
.site-brand:hover { color: #f0d060; }
.categories-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: flex-end;
    align-items: center;
}
.runtime-category {
    color: #aab8c5;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.runtime-category:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}
.overview-shell {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    grid-template-areas:
        "poster title"
        "poster status"
        "poster synopsis"
        "poster cast"
        "poster details";
    gap: 0.75rem 1.5rem;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, #0d1b33 0%, #0a1628 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}
.overview-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 10%, rgba(212, 175, 55, 0.06), transparent 50%);
    pointer-events: none;
}
.poster-stage { grid-area: poster; align-self: start; }
.hero-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 12px rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.25);
    background: #1a2a44;
}
.title-block { grid-area: title; align-self: end; }
.movie-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e8dcc0;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.tagline {
    margin-top: 0.4rem;
    font-size: 1.1rem;
    color: #d4af37;
    font-style: italic;
    font-family: Georgia, serif;
    letter-spacing: 0.06em;
}
.episode-status-panel { grid-area: status; }
.status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.total-ep, .current-ep {
    padding: 0.2rem 0.6rem;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 3px;
    color: #d4af37;
    font-weight: 600;
}
.current-ep { color: #e8dcc0; border-color: rgba(233, 30, 99, 0.5); background: rgba(233, 30, 99, 0.1); }
.player-wrapper {
    width: 100%;
    min-width: 480px;
    max-width: 100%;
    position: relative;
}
.player-wrapper video {
    border-radius: 6px;
    border: 1px solid rgba(212,175,55,0.2);
    background: #000;
}
.player-controls {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    padding: 0.3rem 0.5rem;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}
.player-controls button {
    font-size: 0.9rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    color: #c9d1d9;
    transition: background 0.15s, color 0.15s;
}
.player-controls button:hover { background: rgba(212,175,55,0.2); color: #d4af37; }
.synopsis-block { grid-area: synopsis; }
.block-heading {
    font-family: Georgia, serif;
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 0.6rem;
    border-left: 3px solid #d4af37;
    padding-left: 0.6rem;
    letter-spacing: 0.05em;
}
.synopsis-line {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
    color: #aab8c5;
}
.cast-grid { grid-area: cast; }
.cast-grid .block-heading { margin-bottom: 0.5rem; }
.cast-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.cast-member:last-of-type { border-bottom: none; }
.cast-avatar {
    font-size: 1.5rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212,175,55,0.1);
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,0.3);
    filter: saturate(0.6);
}
.cast-name {
    font-weight: 600;
    color: #e8dcc0;
    font-size: 0.95rem;
}
.cast-role {
    font-size: 0.8rem;
    color: #8899aa;
    margin-left: auto;
    text-align: right;
}
.details-table { grid-area: details; }
.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.3rem 1rem;
}
.detail-list > div {
    display: flex;
    gap: 0.4rem;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}
.detail-list dt {
    color: #8899aa;
    font-weight: 400;
    white-space: nowrap;
}
.detail-list dd {
    color: #e8dcc0;
    font-weight: 500;
}
.timeline-section {
    padding: 1.5rem 1.25rem;
    background: #0d1b33;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}
.timeline-section .block-heading { margin-bottom: 1rem; }
.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto;
}
.timeline-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(10,22,40,0.6);
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.timeline-item:hover {
    border-left-color: #d4af37;
    background: rgba(212,175,55,0.06);
}
.timecode {
    font-family: "Courier New", monospace;
    font-weight: 700;
    color: #d4af37;
    font-size: 1rem;
    min-width: 3.5rem;
    letter-spacing: 0.03em;
}
.event-label {
    color: #c9d1d9;
    font-size: 0.92rem;
}
.episodes-section {
    padding: 1.5rem 1.25rem;
    background: #0a1628;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}
.episodes-section .block-heading { margin-bottom: 0.75rem; }
.episode-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 280px);
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(0,0,0,0.3);
}
.episode-scroller::-webkit-scrollbar { height: 6px; }
.episode-scroller::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.episode-scroller::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 3px; }
.episode-card {
    background: rgba(13, 27, 51, 0.8);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 6px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.episode-card:hover {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 0 16px rgba(212,175,55,0.15);
}
.ep-number {
    font-size: 0.8rem;
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.ep-title {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: #e8dcc0;
    font-weight: 600;
}
.ep-summary {
    font-size: 0.85rem;
    color: #aab8c5;
    line-height: 1.4;
    flex-grow: 1;
}
.ep-duration {
    font-size: 0.8rem;
    color: #d4af37;
    opacity: 0.8;
}
.comments-grid {
    padding: 1.5rem 1.25rem;
    background: #0d1b33;
    border-bottom: 1px solid rgba(212,175,55,0.15);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
}
.comments-grid .block-heading { grid-column: 1 / -1; margin-bottom: 0.25rem; }
.comment-card {
    background: rgba(10, 22, 40, 0.7);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}
.comment-card blockquote {
    font-size: 0.9rem;
    color: #c9d1d9;
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}
.comment-card blockquote::before {
    content: "“";
    font-size: 2.5rem;
    color: #d4af37;
    position: absolute;
    left: -0.25rem;
    top: -0.75rem;
    font-family: Georgia, serif;
    opacity: 0.6;
}
.comment-author {
    font-size: 0.8rem;
    color: #8899aa;
    align-self: flex-end;
    font-style: italic;
}
.recommendation-region {
    padding: 1.25rem 1.25rem 1rem;
    background: #0a1628;
    border-bottom: 1px solid rgba(212,175,55,0.15);
}
.rec-heading {
    font-family: Georgia, serif;
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    border-left: 3px solid #d4af37;
    padding-left: 0.5rem;
}
.rec-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(0,0,0,0.3);
}
.rec-strip::-webkit-scrollbar { height: 5px; }
.rec-strip::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.rec-strip::-webkit-scrollbar-thumb { background: #d4af37; border-radius: 3px; }
a[data-runtime="recommendation"] {
    flex: 0 0 160px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(13, 27, 51, 0.6);
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    color: #c9d1d9;
}
a[data-runtime="recommendation"]:hover {
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
a[data-runtime="recommendation"] img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    background: #1a2a44;
}
a[data-runtime="recommendation"] span[data-runtime="name"] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e8dcc0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
a[data-runtime="recommendation"] span[data-runtime="blurb"] {
    font-size: 0.75rem;
    color: #8899aa;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
footer {
    padding: 1.5rem 1.25rem;
    background: #060e1c;
    border-top: 1px solid rgba(212,175,55,0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.disclaimer-text {
    font-size: 0.8rem;
    color: #667788;
    max-width: 800px;
    line-height: 1.5;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    color: #aab8c5;
    transition: color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: #d4af37; }
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    font-size: 0.85rem;
}
.friend-links-label {
    color: #d4af37;
    font-weight: 600;
    margin-right: 0.25rem;
}
.runtime-friend-link {
    color: #8899aa;
    padding: 0.15rem 0.4rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.runtime-friend-link:hover {
    color: #d4af37;
    border-color: rgba(212,175,55,0.3);
}
body.theater-mode .player-wrapper {
    max-width: 100% !important;
    border: 2px solid #d4af37;
}
body.theater-mode .overview-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
        "poster"
        "title"
        "status"
        "synopsis"
        "cast"
        "details";
}
body.theater-mode .poster-stage { max-width: 300px; }
body.theater-mode .player-wrapper { min-width: 0; }
body.light-dim main, body.light-dim header, body.light-dim footer {
    filter: brightness(0.7);
    transition: filter 0.3s;
}
@media (max-width: 900px) {.overview-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "poster"
            "title"
            "status"
            "synopsis"
            "cast"
            "details";
        gap: 1rem;
    }
.poster-stage { max-width: 260px; margin: 0 auto; }
.player-wrapper { min-width: 0; max-width: 100%; }
.detail-list { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }}
@media (max-width: 600px) {html { font-size: 14px; }
header { padding: 0.5rem 0.75rem; }
.site-brand { font-size: 1rem; }
.categories-shell { justify-content: flex-start; }
.movie-title { font-size: 1.4rem; }
.overview-shell { padding: 1rem 0.75rem; }
.poster-stage { max-width: 220px; }
.player-wrapper { min-width: 0; }
.episode-scroller { grid-auto-columns: minmax(200px, 240px); }
.comments-grid { grid-template-columns: 1fr; }
.rec-strip { gap: 0.5rem; }
a[data-runtime="recommendation"] { flex-basis: 130px; }
.footer-links { flex-wrap: wrap; gap: 0.75rem; }}
@media (max-width: 400px) {.cast-member { flex-wrap: wrap; }
.cast-role { margin-left: 0; }
.detail-list { grid-template-columns: 1fr 1fr; }
.player-controls button { font-size: 0.75rem; }
a[data-runtime="recommendation"] { flex-basis: 110px; padding: 0.35rem; }}
.player-wrapper {
    min-width: 480px;
}
@media (max-width: 900px) {.player-wrapper { min-width: 0; }}
@media (min-width: 481px) and (max-width: 900px) {.overview-shell > * { min-width: 0; }
.player-wrapper { min-width: 480px; }}
@media (max-width: 480px) {.player-wrapper { min-width: 0; }}
body.video-playing .player-controls button[data-player-action="play"] {
    color: #d4af37;
}
body.theater-mode .player-wrapper {
    position: sticky;
    top: 60px;
    z-index: 50;
}

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}
