*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #fdf8f2; color: #2d2d2d; line-height: 1.6; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; }
.main-content { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.site-header { background: #ffffff; border-bottom: 1px solid #eee5dc; padding: 12px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; position: sticky; top: 0; z-index: 100; }
.site-brand { font-size: 1.5rem; font-weight: 800; color: #2d2d2d; text-decoration: none; letter-spacing: -0.5px; }
.site-brand:hover { color: #f5a623; }
.categories-bar { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
a.runtime-category { display: inline-block; padding: 6px 16px; border-radius: 20px; background: #f5f0ea; color: #2d2d2d; text-decoration: none; font-size: 0.9rem; white-space: nowrap; transition: background 0.2s, color 0.2s; }
a.runtime-category:hover { background: #f5a623; color: #fff; }
.player-shell { background: #1e1e1e; border-radius: 16px; overflow: hidden; margin: 20px 0 32px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.player-shell video { display: block; background: #000; }
.player-controls { display: flex; gap: 8px; padding: 10px 16px; background: #1e1e1e; flex-wrap: wrap; }
.player-controls button { color: #ccc; font-size: 0.85rem; padding: 6px 12px; border-radius: 6px; background: #333; transition: background 0.2s; }
.player-controls button:hover { background: #f5a623; color: #fff; }
.theater-mode video { width: 100%; }
.lights-off .main-content { filter: brightness(0.7) contrast(1.1); }
.lights-off .site-header, .lights-off .site-footer { filter: brightness(0.8); }
.movie-overview-panel { background: #ffffff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px; margin-bottom: 32px; align-items: start; }
.poster-col { text-align: center; }
.poster-image { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.info-col { display: flex; flex-direction: column; gap: 16px; }
.hero-title { font-size: 1.8rem; font-weight: 800; color: #1f3a6e; line-height: 1.3; }
.hero-tagline { font-size: 1rem; color: #f5a623; font-weight: 500; }
.synopsis-block { display: flex; flex-direction: column; gap: 8px; }
.block-heading { font-size: 1.1rem; font-weight: 700; color: #1f3a6e; border-left: 4px solid #f5a623; padding-left: 10px; margin-bottom: 4px; }
.synopsis-para { font-size: 0.95rem; color: #555; text-align: justify; }
.cast-block { display: flex; flex-direction: column; gap: 8px; }
.block-subhead { font-size: 1rem; font-weight: 700; color: #1f3a6e; }
.cast-list { display: flex; gap: 16px; flex-wrap: wrap; }
.cast-item { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #f8f5f1; padding: 12px; border-radius: 12px; min-width: 100px; }
.cast-avatar { width: 56px; height: 56px; border-radius: 50%; background: #1f3a6e; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.cast-name { font-size: 0.95rem; font-weight: 600; color: #2d2d2d; }
.cast-role { font-size: 0.8rem; color: #888; }
.episode-status { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.episode-count, .episode-current { background: #f5f0ea; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; color: #1f3a6e; font-weight: 500; }
.episode-current { background: #f5a623; color: #fff; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; background: #faf7f3; border-radius: 12px; padding: 12px; }
.detail-item { font-size: 0.85rem; color: #444; }
.detail-label { color: #999; margin-right: 4px; font-size: 0.8rem; }
.section-title { font-size: 1.5rem; font-weight: 800; color: #1f3a6e; margin: 40px 0 16px; position: relative; padding-left: 16px; }
.section-title::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 6px; background: #f5a623; border-radius: 3px; }
.timeline-section { margin-bottom: 16px; }
.timeline-horizontal { display: flex; gap: 0; overflow-x: auto; padding: 20px 0 12px; position: relative; }
.timeline-horizontal::before { content: ""; position: absolute; top: 40px; left: 0; right: 0; height: 4px; background: #f5a623; border-radius: 2px; opacity: 0.6; }
.timeline-node { position: relative; flex: 0 0 220px; padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.timeline-node::before { content: ""; width: 16px; height: 16px; background: #f5a623; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); position: relative; top: 24px; margin-bottom: 20px; z-index: 2; }
.timeline-node.left::before, .timeline-node.right::before { top: 24px; }
.timecode { font-size: 0.9rem; font-weight: 700; color: #1f3a6e; background: #f5f0ea; display: inline-block; padding: 2px 10px; border-radius: 12px; align-self: flex-start; }
.timeline-label { font-size: 0.9rem; color: #555; line-height: 1.4; }
.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 24px; }
.episode-card { background: #ffffff; border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #f0ebe4; transition: box-shadow 0.2s, transform 0.2s; }
.episode-card:hover { box-shadow: 0 6px 16px rgba(245, 166, 35, 0.2); transform: translateY(-2px); }
.ep-number { font-size: 1.8rem; font-weight: 800; color: #f5a623; min-width: 40px; text-align: center; line-height: 1.2; }
.ep-content { display: flex; flex-direction: column; gap: 4px; }
.ep-title { font-size: 1rem; font-weight: 600; color: #1f3a6e; }
.ep-summary { font-size: 0.85rem; color: #666; line-height: 1.5; }
.ep-duration { font-size: 0.8rem; color: #999; margin-top: 4px; display: inline-block; background: #f5f0ea; padding: 2px 8px; border-radius: 10px; align-self: flex-start; }
.recommend-region { margin-bottom: 32px; }
.recommend-title { font-size: 1.2rem; font-weight: 700; color: #1f3a6e; margin-bottom: 12px; }
.rec-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; }
a[data-runtime="recommendation"] { flex: 0 0 180px; scroll-snap-align: start; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
a[data-runtime="recommendation"]:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
a[data-runtime="recommendation"] img { width: 100%; height: 120px; object-fit: cover; background: #eee; }
a[data-runtime="recommendation"] [data-runtime="name"] { font-size: 0.95rem; font-weight: 600; color: #2d2d2d; padding: 8px 10px 2px; }
a[data-runtime="recommendation"] [data-runtime="blurb"] { font-size: 0.8rem; color: #888; padding: 0 10px 10px; }
.comments-section { margin-bottom: 32px; }
.comment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.comment-card { background: #ffffff; border-radius: 12px; padding: 20px; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #f0ebe4; display: flex; flex-direction: column; gap: 8px; }
.quote-mark { font-size: 3rem; font-weight: 800; color: #f5a623; line-height: 0.8; height: 28px; }
.comment-text { font-size: 0.95rem; color: #444; line-height: 1.6; flex: 1; }
.comment-author { font-size: 0.85rem; color: #999; align-self: flex-end; font-weight: 500; }
.site-footer { background: #ffffff; border-top: 1px solid #eee5dc; padding: 24px 20px 40px; margin-top: 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.friend-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.friend-label { font-size: 0.9rem; color: #888; }
a.runtime-friend-link { font-size: 0.9rem; color: #1f3a6e; text-decoration: none; padding: 2px 8px; border-radius: 4px; transition: background 0.2s; }
a.runtime-friend-link:hover { background: #f5f0ea; text-decoration: underline; }
.disclaimer { font-size: 0.8rem; color: #aaa; max-width: 600px; line-height: 1.5; }
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] { font-size: 0.9rem; color: #1f3a6e; text-decoration: none; padding: 6px 16px; border-radius: 20px; background: #f5f0ea; transition: background 0.2s, color 0.2s; }
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { background: #f5a623; color: #fff; }
@media (max-width: 768px) {.main-content { padding: 0 12px; }
.site-header { flex-direction: column; align-items: flex-start; gap: 8px; }
.categories-bar { justify-content: flex-start; }
.movie-overview-panel { grid-template-columns: 1fr; padding: 16px; }
.poster-col { max-width: 180px; margin: 0 auto; }
.hero-title { font-size: 1.4rem; }
.timeline-node { flex: 0 0 180px; }
.episode-list { grid-template-columns: 1fr; }
.comment-grid { grid-template-columns: 1fr; }
.rec-scroll a[data-runtime="recommendation"] { flex: 0 0 140px; }
.details-grid { grid-template-columns: 1fr 1fr; }}
@media (max-width: 480px) {.hero-title { font-size: 1.2rem; }
.player-controls { gap: 4px; }
.player-controls button { padding: 4px 8px; font-size: 0.75rem; }
.cast-list { justify-content: center; }
.details-grid { grid-template-columns: 1fr; }
.timeline-node { flex: 0 0 150px; }
.episode-card { flex-direction: column; align-items: flex-start; }
a[data-runtime="recommendation"] { flex: 0 0 120px; }
a[data-runtime="recommendation"] img { height: 90px; }
.section-title { font-size: 1.3rem; }}
body.lights-off { background: #1a1a1a; }
body.lights-off .site-header, body.lights-off .site-footer { background: #222; border-color: #333; }
body.lights-off .site-brand, body.lights-off .site-brand:hover { color: #f5a623; }
body.lights-off .movie-overview-panel, body.lights-off .episode-card, body.lights-off .comment-card, body.lights-off a[data-runtime="recommendation"] { background: #2a2a2a; border-color: #444; color: #eee; }
body.lights-off .hero-title, body.lights-off .section-title, body.lights-off .recommend-title, body.lights-off .block-heading, body.lights-off .block-subhead, body.lights-off .ep-title { color: #f5a623; }
body.lights-off .synopsis-para, body.lights-off .ep-summary, body.lights-off .comment-text, body.lights-off .timeline-label { color: #ccc; }
body.lights-off .detail-label, body.lights-off .comment-author, body.lights-off .cast-role { color: #777; }
body.lights-off .cast-avatar { background: #f5a623; color: #1a1a1a; }
body.lights-off .episode-status span { background: #333; color: #ccc; }
body.lights-off .episode-current { background: #f5a623; color: #1a1a1a; }
body.lights-off .details-grid { background: #222; }
body.lights-off .timeline-node::before { border-color: #1a1a1a; }
body.lights-off .timecode { background: #333; color: #f5a623; }
body.lights-off .disclaimer { color: #666; }
body.lights-off a[data-contract="footer-home"], body.lights-off a[data-contract="footer-sitemap"], body.lights-off a.runtime-category { background: #333; color: #ccc; }
body.lights-off a.runtime-category:hover, body.lights-off a[data-contract="footer-home"]:hover, body.lights-off a[data-contract="footer-sitemap"]:hover { background: #f5a623; color: #1a1a1a; }

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}
