*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #0d1117;
    color: #c9d1d9;
    font-family: "Songti SC", "SimSun", serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a {
    color: #58a6ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
ul, ol {
    list-style: none;
}
img, video {
    max-width: 100%;
    display: block;
}
button {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}
header {
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1f2937;
}
a[data-contract="site-name"] {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #e5e7eb;
    letter-spacing: 0.1em;
    text-decoration: none;
}
a[data-contract="site-name"]:hover {
    color: #f0f6fc;
    text-decoration: none;
}
nav[data-contract="categories"] {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 transparent;
    align-items: center;
}
a.runtime-category {
    color: #9ca3af;
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 0.9rem;
    padding: 0.3rem 0.2rem;
    white-space: nowrap;
    text-decoration: none;
}
a.runtime-category:hover {
    color: #e5e7eb;
    background: #1f2937;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    margin: 0 -0.4rem;
    text-decoration: none;
}
main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}
.movie-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 2rem;
    background: #161b22;
    border: 1px solid #1f2937;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.poster-shell {
    position: relative;
    align-self: start;
    width: 100%;
}
.main-poster-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #1f2937;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}
.hero-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}
.movie-title {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f0f6fc;
    line-height: 1.3;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.8rem;
}
.tagline {
    font-size: 0.95rem;
    color: #8b949e;
    font-style: italic;
    border-left: 3px solid #ef4444;
    padding-left: 1rem;
}
.cast-block {
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
}
.block-heading {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
}
.cast-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cast-item {
    background: #1f2937;
    color: #e5e7eb;
    padding: 0.2rem 0.8rem;
    border-radius: 3px;
    font-size: 0.9rem;
    border-left: 2px solid #3b82f6;
}
.synopsis-block {
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
}
.synopsis-para {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}
.episode-status-block {
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
}
.episode-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.total-episodes {
    background: #1f2937;
    color: #8b949e;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
}
.current-episode {
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
}
.player-wrapper {
    width: 100%;
    min-width: 0;
    position: relative;
    background: #0d1117;
    border: 1px solid #1f2937;
    border-radius: 4px;
}
.detail-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.player-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1f2937;
    border-top: 1px solid #2d333b;
}
.player-controls button {
    color: #9ca3af;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    transition: all 0.2s;
}
.player-controls button:hover {
    color: #f0f6fc;
    background: #2d333b;
}
.player-controls input[type="range"] {
    flex: 1;
    accent-color: #3b82f6;
    height: 4px;
    background: #2d333b;
    border-radius: 2px;
}
.player-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}
.theater-mode .detail-player {
    aspect-ratio: 2.35 / 1;
}
.lights-off main {
    background: #0a0d11;
}
.lights-off .movie-hero {
    background: #0d1117;
    border-color: #0d1117;
}
.detail-facts {
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
}
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}
.fact-item {
    background: #1f2937;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.fact-item dt {
    font-size: 0.75rem;
    color: #8b949e;
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
}
.fact-item dd {
    font-size: 0.9rem;
    color: #e5e7eb;
}
.timeline-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #161b22;
    border: 1px solid #1f2937;
    border-radius: 8px;
}
.section-title {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ef4444;
}
.timeline-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    position: relative;
}
.timeline-event {
    background: #1f2937;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #3b82f6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s;
}
.timeline-event:hover {
    transform: translateX(-4px);
}
.timecode {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.1em;
}
.event-label {
    font-size: 0.9rem;
    color: #e5e7eb;
    line-height: 1.5;
}
.episodes-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #161b22;
    border: 1px solid #1f2937;
    border-radius: 8px;
}
.episode-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    overflow: visible;
}
.episode-card {
    background: #1f2937;
    padding: 1.2rem;
    border-radius: 4px;
    border: 1px solid #2d333b;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 160px;
    transition: all 0.2s;
}
.episode-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}
.ep-number {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ef4444;
    opacity: 0.3;
    line-height: 1;
}
.ep-title {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0f6fc;
}
.ep-summary {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8b949e;
    flex: 1;
}
.ep-duration {
    font-size: 0.8rem;
    color: #6e7681;
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
}
.comments-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #161b22;
    border: 1px solid #1f2937;
    border-radius: 8px;
}
.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.comment-card {
    background: #1f2937;
    padding: 1rem;
    border-radius: 4px;
    border-top: 2px solid #3b82f6;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.comment-nickname {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #58a6ff;
}
.comment-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c9d1d9;
}
.rec-region {
    margin-bottom: 2rem;
    padding: 2rem;
    background: #161b22;
    border: 1px solid #1f2937;
    border-radius: 8px;
}
.rec-title {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 3px solid #ef4444;
}
.rec-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
a[data-runtime="recommendation"] {
    background: #1f2937;
    border-radius: 4px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all 0.2s;
    border: 1px solid #2d333b;
    color: #f0f6fc;
    text-decoration: none;
}
a[data-runtime="recommendation"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #3b82f6;
    text-decoration: none;
}
a[data-runtime="recommendation"] img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}
a[data-runtime="recommendation"] [data-runtime="name"] {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f0f6fc;
}
a[data-runtime="recommendation"] [data-runtime="blurb"] {
    font-size: 0.8rem;
    color: #8b949e;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
footer {
    background: #161b22;
    border-top: 1px solid #1f2937;
    padding: 2rem;
    margin-top: 3rem;
}
.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    color: #8b949e;
    font-size: 0.9rem;
    margin-right: 1.5rem;
    text-decoration: none;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
    color: #f0f6fc;
    text-decoration: none;
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}
.friend-label {
    font-family: "Heiti SC", "Microsoft YaHei", sans-serif;
    font-size: 0.85rem;
    color: #8b949e;
    font-weight: 600;
}
a.runtime-friend-link {
    color: #58a6ff;
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    text-decoration: none;
}
a.runtime-friend-link:hover {
    color: #f0f6fc;
    background: #1f2937;
    border-radius: 3px;
    text-decoration: none;
}
.disclaimer {
    font-size: 0.8rem;
    color: #6e7681;
    line-height: 1.6;
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
}
.player-wrapper .player-controls button[data-player-action="play"]:active {
    color: #3b82f6;
}
.player-wrapper .player-controls input[data-player-action="progress"]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
@media (max-width: 1024px) {.movie-hero {
        grid-template-columns: 240px minmax(0, 1fr);
        padding: 1.5rem;
    }
.movie-title {
        font-size: 1.6rem;
    }
.episode-scroll {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }}
@media (max-width: 768px) {main {
        padding: 1rem;
    }
header {
        padding: 0.6rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
nav[data-contract="categories"] {
        width: 100%;
        gap: 1rem;
        padding-bottom: 0.3rem;
    }
.movie-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
.poster-shell {
        max-width: 240px;
        margin: 0 auto;
    }
.movie-title {
        font-size: 1.4rem;
    }
.facts-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
.timeline-list, .comments-grid, .rec-scroll {
        grid-template-columns: 1fr;
    }
.episode-scroll {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
.episode-card {
        scroll-snap-align: start;
        min-width: 220px;
    }
.player-controls {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
.player-controls input[type="range"] {
        flex-basis: 100%;
        order: -1;
    }}
@media (max-width: 480px) {main {
        padding: 0.5rem;
    }
.movie-hero, .timeline-section, .episodes-section, .comments-section, .rec-region {
        padding: 1rem;
        border-radius: 6px;
    }
.poster-shell {
        max-width: 200px;
    }
.movie-title {
        font-size: 1.2rem;
    }
.cast-list {
        flex-direction: column;
        align-items: stretch;
    }
.cast-item {
        text-align: center;
    }
.episode-scroll {
        grid-template-columns: 1fr;
        overflow: visible;
    }
.episode-card {
        min-width: auto;
    }
.player-controls button {
        flex: 1;
        text-align: center;
        padding: 0.4rem 0.3rem;
    }
.player-controls input[type="range"] {
        flex-basis: 100%;
    }
.footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
.friend-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }}
.theater-mode {
    max-width: 100%;
}
.theater-mode .detail-player {
    border-radius: 0;
}
.lights-off .movie-hero, .lights-off .timeline-section, .lights-off .episodes-section, .lights-off .comments-section, .lights-off .rec-region, .lights-off footer {
    background: #0a0d11;
    border-color: #1f2937;
    box-shadow: none;
}
.lights-off .player-wrapper {
    border-color: #1f2937;
}
.player-wrapper.play .player-controls button[data-player-action="play"] {
    color: #3b82f6;
}
.player-wrapper.mute .player-controls button[data-player-action="mute"] {
    color: #ef4444;
}
.player-wrapper.speed .player-controls button[data-player-action="speed"] {
    color: #3b82f6;
}
.player-wrapper.pip .player-controls button[data-player-action="pip"] {
    color: #3b82f6;
}
.player-wrapper.fullscreen .player-controls button[data-player-action="fullscreen"] {
    color: #ef4444;
}
.player-wrapper.theater-mode .player-controls button[data-player-action="theater"] {
    color: #3b82f6;
}
.player-wrapper .player-controls input[type="range"].progress {
    -webkit-appearance: none;
    appearance: none;
}
.player-wrapper .player-controls input[type="range"].progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}
.player-wrapper .player-controls input[type="range"].progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.player-wrapper .player-controls input[type="range"].progress::-webkit-slider-runnable-track {
    background: #2d333b;
    height: 4px;
    border-radius: 2px;
}
.player-wrapper .player-controls input[type="range"].progress::-moz-range-track {
    background: #2d333b;
    height: 4px;
    border-radius: 2px;
}
.player-wrapper .player-controls input[type="range"].volume {
    accent-color: #3b82f6;
    width: 80px;
}
.player-wrapper.pip .detail-player {
    border: 2px solid #3b82f6;
}
.player-wrapper.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    border-radius: 0;
}
.player-wrapper.fullscreen .detail-player {
    height: 100vh;
    object-fit: contain;
}
.player-wrapper.theater-mode {
    background: #0a0d11;
    border-color: #1f2937;
}
.player-wrapper.theater-mode .detail-player {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}
.lights-off .player-wrapper {
    border-color: transparent;
}
.lights-off .player-wrapper .player-controls {
    background: transparent;
    border-top-color: transparent;
}
.player-wrapper.click .player-controls {
    opacity: 1;
}
.player-wrapper.click .player-controls {
    transition: opacity 0.3s;
}

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}
