*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { background: #1c1f26; color: #d8dbe0; font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a, button { color: inherit; text-decoration: none; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.75rem 1.5rem; border-bottom: 1px solid #2e333b; background: #21242b; position: sticky; top: 0; z-index: 100; }
a[data-contract="site-name"] { color: #d9a441; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; letter-spacing: 0.05em; text-decoration: none; font-weight: 700; }
a[data-contract="site-name"]:hover { color: #e8b857; }
[data-contract="categories"] { display: flex; flex-wrap: wrap; gap: 0.25rem; flex: 1; justify-content: flex-end; }
.runtime-category { color: #aab0ba; font-size: 0.85rem; padding: 0.25rem 0.6rem; border: 1px solid transparent; border-radius: 2px; white-space: nowrap; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.runtime-category:hover { color: #d9a441; border-color: #d9a441; }
main { max-width: 1400px; margin: 0 auto; padding: 0 1rem 2rem; }
section { margin-bottom: 1.5rem; }
.overview-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0; background: #21242b; border: 1px solid #2e333b; border-radius: 0; position: relative; }
.poster-wrapper { grid-column: 1; padding: 1rem; background: #262a32; display: flex; align-items: flex-start; }
.poster-wrapper img { width: 100%; max-width: 280px; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid #3a404a; margin: 0 auto; }
.overview-content { grid-column: 2; padding: 1rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.movie-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; color: #d9a441; letter-spacing: 0.02em; font-weight: 600; line-height: 1.3; margin: 0; }
.tagline { font-size: 0.95rem; color: #c4c9d0; letter-spacing: 0.08em; margin: -0.5rem 0 0; font-style: italic; }
.details-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem 1rem; border-top: 1px solid #333842; border-bottom: 1px solid #333842; padding: 0.75rem 0; }
.detail-item { display: flex; flex-direction: column; gap: 0.15rem; }
.detail-label { font-size: 0.7rem; color: #8b909a; letter-spacing: 0.04em; text-transform: uppercase; font-family: "Courier New", monospace; }
.detail-value { font-size: 0.9rem; color: #e0e2e7; font-weight: 500; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.75rem 0.5rem; align-items: start; }
.cast-member { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
.cast-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #3a404a 0%, #2a2e36 100%); border: 1px solid #d9a441; display: block; position: relative; }
.cast-avatar::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #242830; border: 1px solid #434a55; }
.cast-name { font-size: 0.8rem; color: #c4c9d0; line-height: 1.3; }
.synopsis-box { border-left: 3px solid #d9a441; padding-left: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.synopsis-para { font-size: 0.9rem; color: #b0b5be; line-height: 1.7; text-align: justify; }
.episode-status-panel { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; font-size: 0.85rem; padding-top: 0.25rem; }
.status-total, .status-current, .status-update { font-family: "Courier New", monospace; color: #9aa0aa; }
.status-total { color: #d9a441; font-weight: 700; }
.status-current { color: #6ec99f; }
.status-update { color: #8b909a; }
.player-wrapper { grid-column: 1 / -1; width: 100%; min-width: 100%; padding: 1rem 1.5rem 0; border-top: 1px solid #333842; margin-top: 0.5rem; }
.player-wrapper video { display: block; width: 100%; background: #0c0e11; border: 1px solid #3a404a; }
.player-controls { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0 0.8rem; }
.player-controls button { background: #2a2e36; border: 1px solid #3a404a; color: #c4c9d0; font-size: 0.75rem; padding: 0.3rem 0.7rem; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.player-controls button:hover { background: #333842; border-color: #d9a441; color: #d9a441; }
.section-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; color: #d9a441; font-weight: 600; padding-bottom: 0.5rem; border-bottom: 1px solid #2e333b; margin-bottom: 1rem; letter-spacing: 0.03em; }
.episode-section .section-title, .timeline-section .section-title, .comments-section .section-title, .recommendation-region .recommendation-title { margin-bottom: 0.75rem; }
.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.6rem; }
.episode-item { display: flex; gap: 0.75rem; background: #21242b; border: 1px solid #2e333b; padding: 0.75rem; align-items: flex-start; min-height: 0; }
.episode-item:hover { border-color: #d9a441; }
.episode-number { font-family: "Courier New", monospace; font-size: 1.8rem; color: #d9a441; line-height: 1; min-width: 2rem; text-align: right; font-weight: 700; padding-top: 0.15rem; }
.episode-info { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.episode-title { font-size: 1rem; color: #e0e2e7; font-weight: 600; line-height: 1.3; }
.episode-summary { font-size: 0.82rem; color: #a4a9b2; line-height: 1.5; }
.episode-duration { font-size: 0.72rem; color: #8b909a; font-family: "Courier New", monospace; }
.timeline-horizontal { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; border: 1px solid #2e333b; background: #21242b; padding: 1rem 0.75rem; }
.timeline-node { position: relative; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; min-height: 0; }
.timeline-node::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 8px; height: 8px; border-radius: 50%; background: #d9a441; border: 1px solid #1c1f26; }
.timeline-node::after { content: ""; position: absolute; left: 4px; top: 1.1rem; bottom: -0.75rem; width: 1px; background: #3a404a; }
.timeline-node:last-child::after { display: none; }
.node-time { font-family: "Courier New", monospace; font-size: 0.8rem; color: #d9a441; font-weight: 700; }
.node-label { font-size: 0.82rem; color: #a4a9b2; line-height: 1.4; }
.comments-section { overflow: hidden; }
.comments-horizontal-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }
.comment-card { background: #21242b; border: 1px solid #2e333b; padding: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; min-height: 0; }
.comment-card:hover { border-color: #d9a441; }
.comment-nickname { font-size: 0.8rem; color: #d9a441; font-weight: 600; font-family: Georgia, "Times New Roman", serif; }
.comment-text { font-size: 0.85rem; color: #b0b5be; line-height: 1.6; }
.recommendation-region { margin-bottom: 1.5rem; }
.recommendation-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; color: #d9a441; font-weight: 600; padding-bottom: 0.4rem; border-bottom: 1px solid #2e333b; margin-bottom: 0.75rem; }
.recommendation-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
a[data-runtime="recommendation"] { display: flex; flex-direction: column; background: #21242b; border: 1px solid #2e333b; padding: 0.5rem; gap: 0.4rem; color: #d8dbe0; text-decoration: none; min-height: 0; }
a[data-runtime="recommendation"]:hover { border-color: #d9a441; }
a[data-runtime="recommendation"] img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #262a32; }
a[data-runtime="recommendation"] [data-runtime="name"] { font-size: 0.85rem; font-weight: 600; color: #e0e2e7; line-height: 1.3; }
a[data-runtime="recommendation"] [data-runtime="blurb"] { font-size: 0.75rem; color: #8b909a; line-height: 1.4; }
footer { background: #21242b; border-top: 1px solid #2e333b; padding: 1.5rem 1rem 2rem; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.disclaimer { font-size: 0.75rem; color: #777d87; line-height: 1.6; text-align: center; max-width: 1200px; margin: 0 auto; }
.friend-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center; align-items: center; max-width: 1200px; margin: 0 auto; }
.friend-links-label { color: #8b909a; font-size: 0.8rem; }
a.runtime-friend-link { color: #a4a9b2; font-size: 0.8rem; text-decoration: underline; text-decoration-color: #3a404a; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
a.runtime-friend-link:hover { color: #d9a441; text-decoration-color: #d9a441; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; }
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] { color: #a4a9b2; font-size: 0.8rem; text-decoration: underline; text-decoration-color: #3a404a; text-underline-offset: 3px; }
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover { color: #d9a441; text-decoration-color: #d9a441; }
.player.theater-mode, .player-wrapper video.theater-mode { aspect-ratio: 16 / 9; width: 100%; max-width: none; }
body.light-dim { filter: brightness(0.8); transition: filter 0.3s; }
.player-wrapper .player-controls button:active { background: #d9a441; color: #1c1f26; }
@media (min-width: 1200px) {.episode-list { grid-template-columns: repeat(3, 1fr); }
.comments-horizontal-scroll { grid-template-columns: repeat(5, 1fr); }}
@media (min-width: 900px) and (max-width: 1199px) {.episode-list { grid-template-columns: repeat(2, 1fr); }
.comments-horizontal-scroll { grid-template-columns: repeat(3, 1fr); }}
@media (max-width: 899px) {.overview-shell { grid-template-columns: 1fr; }
.poster-wrapper { grid-column: 1; padding: 0.75rem; justify-content: center; }
.poster-wrapper img { max-width: 200px; }
.overview-content { grid-column: 1; padding: 0.75rem 1rem 1rem; }
.player-wrapper { grid-column: 1; padding: 1rem 0.75rem 0; }
.cast-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.timeline-horizontal { grid-template-columns: 1fr; }
.timeline-node::after { display: none; }
.episode-list { grid-template-columns: 1fr; }
.comments-horizontal-scroll { grid-template-columns: 1fr; }
.recommendation-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }}
@media (max-width: 599px) {.episode-list { grid-template-columns: 1fr; }
.recommendation-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cast-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
.details-panel { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.movie-title { font-size: 1.3rem; }
.tagline { font-size: 0.85rem; }
.player-controls button { font-size: 0.7rem; padding: 0.25rem 0.5rem; }}
.player-wrapper { min-width: 100%; }
.light-dim { transition: background 0.3s, color 0.3s; }
.player-wrapper video:-webkit-full-screen { width: 100vw; height: 100vh; object-fit: contain; background: #000; }
.player-wrapper video:-moz-full-screen { width: 100vw; height: 100vh; object-fit: contain; background: #000; }
.player-wrapper video:fullscreen { width: 100vw; height: 100vh; object-fit: contain; background: #000; }
video.muted { opacity: 0.85; }
video.play { filter: brightness(1); }
.progress { position: relative; }
.volume { transition: opacity 0.2s; }
.speed { font-variant-numeric: tabular-nums; }
.pip { transform: scale(0.98); }
.click { user-select: none; }
.theater-mode { background: #0c0e11; padding-top: 0; }
.theater-mode + .player-controls { background: #0c0e11; }
body.light-dim::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; pointer-events: none; }

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}
