*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Songti SC", "SimSun", serif; background: #0a0e14; color: #c8d0dc; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input[type="range"] { width: 100%; }
.page-main { overflow: hidden; }
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 1.5rem;
    background: rgba(6,10,14,0.85); backdrop-filter: blur(8px);
    border-bottom: 1px solid #1a2530;
}
.site-brand {
    font-family: "Heiti SC", "SimHei", sans-serif;
    font-size: 1.1rem; font-weight: 900; letter-spacing: 0.1em;
    color: #e8edf2; text-transform: uppercase;
    border-left: 3px solid #e8592f; padding-left: 0.6rem;
}
a[data-contract="site-name"] { color: #e8edf2; text-decoration: none; }
a[data-contract="site-name"]:hover { color: #e8592f; }
.categories-nav { display: flex; gap: 0.5rem; overflow-x: auto; max-width: 70%; }
a.runtime-category {
    color: #aab6c2; text-decoration: none; white-space: nowrap;
    font-family: "Heiti SC", "SimHei", sans-serif; font-size: 0.8rem;
    padding: 0.3rem 0.7rem; border: 1px solid transparent; border-radius: 2px;
}
a.runtime-category:hover { color: #e8592f; border-color: #e8592f; }
.hero-section { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-poster-bg { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) brightness(0.4) contrast(1.1); }
.hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,10,14,0.3) 0%, rgba(6,10,14,0.7) 60%, rgba(6,10,14,0.95) 100%);
}
.hero-content-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1.5rem; padding: 5rem 2rem 2rem; max-width: 1400px; margin: 0 auto; width: 100%;
}
.poster-wrapper { align-self: start; }
.poster-image { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid #2a3744; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.info-panel {
    background: rgba(10,15,22,0.9); border: 1px solid #1f2b36;
    padding: 1.5rem 1.5rem 0; display: flex; flex-direction: column; gap: 1.2rem;
}
.movie-title {
    font-family: "Heiti SC", "SimHei", sans-serif; font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900; color: #f0f4f8; letter-spacing: 0.05em;
    border-bottom: 2px solid #e8592f; padding-bottom: 0.6rem;
}
.tagline {
    font-family: "Heiti SC", "SimHei", sans-serif; font-size: 0.95rem; color: #e8592f;
    letter-spacing: 0.08em; border-left: 3px solid #e8592f; padding-left: 0.8rem;
}
.synopsis-block { display: grid; grid-template-columns: 1fr 200px; gap: 1rem; align-items: start; }
.synopsis-text p { font-size: 0.85rem; margin-bottom: 0.4rem; color: #b8c4d0; text-align: justify; }
.synopsis-still img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid #2a3744; }
.cast-grid { border-top: 1px solid #1f2b36; padding-top: 1rem; }
.section-title {
    font-family: "Heiti SC", "SimHei", sans-serif; font-size: 1rem; font-weight: 800;
    color: #e8edf2; letter-spacing: 0.15em; margin-bottom: 0.8rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.section-title::before { content: "▲"; font-size: 0.6rem; color: #e8592f; }
.cast-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 0.8rem; }
.cast-item { text-align: center; }
.cast-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid #2a3744; }
.cast-name { display: block; font-size: 0.75rem; margin-top: 0.3rem; color: #aab6c2; }
.episode-status { border-top: 1px solid #1f2b36; padding-top: 1rem; }
.status-row {
    display: flex; justify-content: space-between; font-size: 0.8rem; color: #aab6c2;
    background: #0e141c; padding: 0.4rem 0.8rem; margin-bottom: 1rem; border-left: 3px solid #e8592f;
}
.player-wrapper { width: 100%; min-width: 480px; background: #000; border: 1px solid #1f2b36; }
video { width: 100%; display: block; }
.player-controls {
    display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.5rem; background: #0e141c;
    border-top: 1px solid #1f2b36; align-items: center;
}
.player-controls button {
    font-size: 0.7rem; padding: 0.3rem 0.6rem; border: 1px solid #2a3744; color: #aab6c2;
}
.player-controls button:hover { color: #e8592f; border-color: #e8592f; }
.player-controls input[type="range"] { flex: 1; min-width: 80px; accent-color: #e8592f; height: 4px; }
.movie-details { border-top: 1px solid #1f2b36; padding-top: 1rem; margin-bottom: 1.5rem; }
.details-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.4rem 1rem; }
.details-list li { font-size: 0.8rem; display: flex; justify-content: space-between; border-bottom: 1px solid #141c26; padding-bottom: 0.2rem; }
.detail-label { color: #7a8a9a; font-weight: 700; margin-right: 0.5rem; }
.timeline-section { padding: 3rem 2rem; position: relative; }
.timeline-section::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: linear-gradient(180deg, transparent, #e8592f 10%, #e8592f 90%, transparent);
    transform: translateX(-50%);
}
.timeline-container { max-width: 1000px; margin: 0 auto; position: relative; }
.timeline-item { width: 45%; margin-bottom: 1.5rem; position: relative; }
.timeline-item.left { margin-right: auto; text-align: right; padding-right: 2rem; }
.timeline-item.right { margin-left: auto; text-align: left; padding-left: 2rem; }
.timeline-item::after {
    content: "▼"; position: absolute; top: 0; font-size: 0.7rem; color: #e8592f;
}
.timeline-item.left::after { right: -0.8rem; }
.timeline-item.right::after { left: -0.8rem; }
.timecode {
    font-family: "Heiti SC", "SimHei", sans-serif; font-weight: 800; color: #e8592f;
    font-size: 0.9rem; margin-bottom: 0.2rem;
}
.timeline-text { font-size: 0.85rem; color: #b8c4d0; background: #0e141c; padding: 0.5rem 0.8rem; border: 1px solid #1f2b36; }
.episodes-section { padding: 2rem 2rem 3rem; }
.episodes-scroll {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem;
    max-width: 1200px; margin: 0 auto;
}
.episode-card {
    background: #0e141c; border: 1px solid #1f2b36; padding: 1rem; position: relative;
    transition: border-color 0.2s;
}
.episode-card:hover { border-color: #e8592f; }
.episode-card.current { border-color: #e8592f; box-shadow: 0 0 15px rgba(232,89,47,0.2); }
.episode-card.current::before { content: "▶"; position: absolute; top: 0.5rem; right: 0.6rem; color: #e8592f; font-size: 0.7rem; }
.episode-number {
    font-family: "Heiti SC", "SimHei", sans-serif; font-size: 1.8rem; font-weight: 900;
    color: #2a3744; line-height: 1; margin-bottom: 0.5rem;
}
.episode-card.current .episode-number { color: #e8592f; }
.episode-title { font-family: "Heiti SC", "SimHei", sans-serif; font-size: 0.85rem; font-weight: 700; color: #e8edf2; margin-bottom: 0.4rem; }
.episode-summary { font-size: 0.75rem; color: #8a9aaa; margin-bottom: 0.6rem; }
.episode-duration { font-size: 0.7rem; color: #6a7a8a; border-top: 1px solid #141c26; padding-top: 0.3rem; }
.comments-section { padding: 2rem 2rem 3rem; background: #0a0e14; }
.comments-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem;
    max-width: 1200px; margin: 0 auto; align-items: start;
}
.comment-card { background: #0e141c; border: 1px solid #1f2b36; padding: 0.8rem 1rem; }
.comment-card:nth-child(2n) { margin-top: 1.5rem; }
.comment-card:nth-child(3n) { margin-top: 0.8rem; }
.comment-nickname {
    font-family: "Heiti SC", "SimHei", sans-serif; font-size: 0.8rem; font-weight: 700;
    color: #e8592f; margin-bottom: 0.3rem;
}
.comment-text { font-size: 0.8rem; color: #b8c4d0; }
.recommendation-region { padding: 2rem 2rem 3rem; border-top: 1px solid #141c26; }
.recommendation-row {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem;
    max-width: 1200px; margin: 0 auto;
}
a.rec-item {
    display: flex; flex-direction: column; background: #0e141c; border: 1px solid #1f2b36;
    overflow: hidden; transition: border-color 0.2s, transform 0.2s; text-decoration: none;
}
a.rec-item:hover { border-color: #e8592f; transform: translateY(-2px); }
[data-runtime="recommendation"] img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
[data-runtime="recommendation"] [data-runtime="name"] {
    font-family: "Heiti SC", "SimHei", sans-serif; font-size: 0.8rem; font-weight: 700;
    color: #e8edf2; padding: 0.5rem 0.6rem 0.2rem;
}
[data-runtime="recommendation"] [data-runtime="blurb"] {
    font-size: 0.7rem; color: #8a9aaa; padding: 0 0.6rem 0.6rem; line-height: 1.4;
}
.site-footer {
    background: #060a0e; border-top: 2px solid #e8592f; padding: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.footer-disclaimer { font-size: 0.7rem; color: #6a7a8a; text-align: center; max-width: 900px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; }
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    color: #aab6c2; text-decoration: none; font-size: 0.8rem;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: #e8592f; }
.friend-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; align-items: center; }
.friend-label { font-family: "Heiti SC", "SimHei", sans-serif; font-size: 0.7rem; color: #6a7a8a; font-weight: 700; }
a.runtime-friend-link { color: #8a9aaa; text-decoration: none; font-size: 0.75rem; }
a.runtime-friend-link:hover { color: #e8592f; }
.player-wrapper.theater-mode { max-width: 1200px; margin: 0 auto; }
.lights-off .hero-backdrop { filter: brightness(0.15); }
.lights-off .hero-content-grid { background: rgba(0,0,0,0.5); }
.player-wrapper.play video { box-shadow: 0 0 30px rgba(232,89,47,0.3); }
.player-wrapper.mute .player-controls button[aria-label="静音"] { color: #e8592f; border-color: #e8592f; }
.player-wrapper.fullscreen { background: #000; }
.player-wrapper.pip .player-controls button[aria-label="画中画"] { color: #e8592f; }
.player-wrapper.progress input[type="range"] { accent-color: #e8592f; }
.player-wrapper.speed .player-controls button[aria-label="倍速"] { color: #e8592f; }
.player-wrapper.timeupdate .player-controls input[type="range"] { background: linear-gradient(90deg, #e8592f var(--progress, 0%), #2a3744 var(--progress, 0%)); }
.player-wrapper.loadedmetadata .player-controls input[type="range"] { opacity: 1; }
.player-wrapper.input .player-controls input[type="range"] { border-color: #e8592f; }
.player-wrapper.click .player-controls button:active { background: #e8592f; color: #060a0e; }
@media (max-width: 900px) {.hero-content-grid { grid-template-columns: 1fr; }
.poster-wrapper { max-width: 240px; }
.player-wrapper { min-width: 0; }
.synopsis-block { grid-template-columns: 1fr; }
.synopsis-still { max-width: 200px; }
.timeline-section::before { left: 20px; }
.timeline-item { width: 100%; padding-left: 3rem !important; padding-right: 0 !important; text-align: left !important; }
.timeline-item::after { left: 0.4rem !important; right: auto !important; }
.comments-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.comment-card:nth-child(2n), .comment-card:nth-child(3n) { margin-top: 0; }}
@media (max-width: 600px) {.site-header { padding: 0.5rem 1rem; flex-wrap: wrap; }
.categories-nav { max-width: 100%; order: 2; width: 100%; }
.hero-content-grid { padding: 4.5rem 1rem 1rem; gap: 1rem; }
.info-panel { padding: 1rem 1rem 0; }
.cast-list { grid-template-columns: repeat(3, 1fr); }
.details-list { grid-template-columns: repeat(2, 1fr); }
.episodes-scroll { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.recommendation-row { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.timeline-section, .episodes-section, .comments-section, .recommendation-region { padding: 1.5rem 1rem; }
.player-controls { flex-direction: column; align-items: stretch; }
.player-controls button { text-align: center; }
.status-row { flex-direction: column; gap: 0.2rem; }}

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}
