*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.5; color: #0f1e2e; background: #0d1b2a; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
dt, dd { display: inline; }
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: #0a1524;
    border-bottom: 1px solid #1e3a5f;
    position: sticky;
    top: 0;
    z-index: 100;
}
a[data-contract="site-name"] {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: #e8eef5;
    text-transform: uppercase;
    text-decoration: none;
}
a[data-contract="site-name"]:hover { color: #c0392b; }
nav[data-contract="categories"] {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 70%;
}
.runtime-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b7c4d1;
    background: transparent;
    border: 1px solid #1e3a5f;
    border-radius: 2px;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.runtime-category:hover {
    color: #e8eef5;
    background: #1e3a5f;
    border-color: #2a4a75;
}
main {
    padding: 20px 24px 48px;
    max-width: 1400px;
    margin: 0 auto;
}
.movie-shell {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr;
    gap: 24px;
    background: #102030;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.movie-shell.theater-mode {
    background: #0a1524;
    border-color: #2a4a75;
}
.poster-column { min-width: 0; }
.poster-wrapper {
    width: 100%;
    max-width: 320px;
}
.main-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #1a2a3a;
    border-radius: 2px;
}
.info-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.title-tagline-group { padding-bottom: 8px; border-bottom: 1px solid #1e3a5f; }
.movie-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #e8eef5;
    margin-bottom: 4px;
    line-height: 1.2;
}
.tagline {
    font-size: 1rem;
    color: #8a9bb0;
    letter-spacing: 0.05em;
    font-weight: 400;
}
.section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #c0392b;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #c0392b;
    line-height: 1.3;
}
.cast-panel { margin-bottom: 4px; }
.cast-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.cast-member {
    flex: 0 0 auto;
    padding: 6px 14px;
    background: #1a2a3a;
    border: 1px solid #2a4a75;
    border-radius: 2px;
    white-space: nowrap;
}
.actor-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9d4e0;
    letter-spacing: 0.05em;
}
.synopsis-block { margin-bottom: 4px; }
.synopsis-para {
    font-size: 0.95rem;
    color: #a7b6c5;
    margin-bottom: 10px;
    line-height: 1.7;
    max-width: 90ch;
}
.synopsis-para:last-child { margin-bottom: 0; }
.episode-status-panel { margin-bottom: 4px; }
.player-block {
    width: 100%;
    max-width: 720px;
    background: #0a1524;
    border: 1px solid #1e3a5f;
    border-radius: 2px;
    padding: 8px;
}
.player-block video {
    display: block;
    background: #000;
    border-radius: 2px;
}
.player-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 4px 4px;
}
.player-controls button {
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #b7c4d1;
    border: 1px solid #2a4a75;
    border-radius: 2px;
    background: #102030;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.player-controls button:hover {
    background: #1e3a5f;
    color: #e8eef5;
}
.episode-indicator {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 6px 4px 4px;
    font-size: 0.85rem;
    color: #8a9bb0;
}
.current-episode-label {
    font-weight: 600;
    color: #c0392b;
    letter-spacing: 0.03em;
}
.episode-progress {
    color: #6d7f92;
}
.details-grid {
    border-top: 1px solid #1e3a5f;
    padding-top: 16px;
}
.detail-list {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 8px 16px;
    justify-content: start;
}
.detail-item {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    font-size: 0.9rem;
    padding: 2px 10px 2px 0;
    border-right: 1px solid #1e3a5f;
}
.detail-item:last-child { border-right: none; }
.detail-item dt {
    color: #6d7f92;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.detail-item dt::after { content: "："; }
.detail-item dd {
    color: #c9d4e0;
    font-weight: 600;
}
.timeline-section {
    margin-bottom: 28px;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    background: #102030;
    padding: 20px 24px;
}
.timeline-horizontal {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 0 8px;
    position: relative;
}
.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #2a4a75;
    transform: translateY(-50%);
}
.timeline-item {
    flex: 0 0 auto;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    position: relative;
    background: #102030;
    text-align: center;
}
.timeline-item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c0392b;
    border: 2px solid #102030;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.timecode {
    font-size: 0.9rem;
    font-weight: 700;
    color: #c0392b;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.timeline-label {
    font-size: 0.85rem;
    color: #a7b6c5;
    line-height: 1.4;
    margin-top: 8px;
}
.episodes-section {
    margin-bottom: 28px;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    background: #102030;
    padding: 20px 24px;
}
.episode-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.episode-card {
    background: #0a1524;
    border: 1px solid #1e3a5f;
    border-left: 3px solid #c0392b;
    border-radius: 2px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.episode-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
    letter-spacing: -0.02em;
}
.ep-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8eef5;
    letter-spacing: 0.03em;
}
.ep-summary {
    font-size: 0.85rem;
    color: #8a9bb0;
    line-height: 1.5;
    flex-grow: 1;
}
.ep-duration {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c0392b;
    letter-spacing: 0.05em;
    padding-top: 4px;
    border-top: 1px solid #1e3a5f;
    width: 100%;
}
.comments-section {
    margin-bottom: 28px;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    background: #102030;
    padding: 20px 24px;
}
.comments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.comment-card {
    background: #0a1524;
    border: 1px solid #1e3a5f;
    border-right: 2px solid #c0392b;
    border-radius: 2px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.comment-nickname {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e8eef5;
    letter-spacing: 0.05em;
}
.comment-text {
    font-size: 0.85rem;
    color: #8a9bb0;
    line-height: 1.6;
}
.recommendation-region {
    margin-bottom: 28px;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    background: #102030;
    padding: 20px 24px;
}
.rec-title {
    margin-bottom: 16px;
}
.rec-card-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
a.rec-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #0a1524;
    border: 1px solid #1e3a5f;
    border-radius: 2px;
    padding: 8px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
a.rec-card:hover {
    border-color: #c0392b;
    transform: translateY(-2px);
}
a.rec-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 2px;
    background: #1a2a3a;
}
a.rec-card span {
    line-height: 1.3;
}
a.rec-card span[data-runtime="name"] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8eef5;
    letter-spacing: 0.03em;
}
a.rec-card span[data-runtime="blurb"] {
    font-size: 0.8rem;
    color: #8a9bb0;
    flex-grow: 1;
}
footer {
    background: #0a1524;
    border-top: 1px solid #1e3a5f;
    padding: 20px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.disclaimer-text {
    font-size: 0.8rem;
    color: #6d7f92;
    line-height: 1.6;
    max-width: 90ch;
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}
.friend-links-label {
    font-size: 0.85rem;
    color: #8a9bb0;
    font-weight: 600;
}
a.runtime-friend-link {
    font-size: 0.85rem;
    color: #b7c4d1;
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid #1e3a5f;
    border-radius: 2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
a.runtime-friend-link:hover {
    color: #c0392b;
    border-color: #c0392b;
}
.footer-links {
    display: flex;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #1e3a5f;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    font-size: 0.9rem;
    color: #8a9bb0;
    text-decoration: none;
    transition: color 0.2s;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
    color: #c0392b;
}
@media (max-width: 900px) {main { padding: 16px 16px 40px; }
.movie-shell {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
.poster-column {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
.poster-wrapper { max-width: 320px; margin: 0 auto; }
.movie-title { font-size: 1.6rem; }
.detail-list { grid-template-columns: repeat(2, auto); }
.episode-card-grid { grid-template-columns: repeat(2, 1fr); }
.rec-card-slider { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }}
@media (max-width: 600px) {header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 16px;
    }
nav[data-contract="categories"] {
        max-width: 100%;
        width: 100%;
    }
main { padding: 12px 12px 32px; }
.movie-shell {
        padding: 12px;
        gap: 12px;
    }
.poster-column { max-width: 240px; }
.poster-wrapper { max-width: 240px; }
.movie-title { font-size: 1.3rem; }
.tagline { font-size: 0.9rem; }
.cast-scroll { gap: 6px; }
.cast-member { padding: 4px 10px; }
.player-controls button { padding: 4px 8px; font-size: 0.75rem; }
.episode-indicator { gap: 8px; font-size: 0.8rem; }
.detail-list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.detail-item { border-right: none; padding: 2px 4px; }
.timeline-horizontal { gap: 10px; }
.timeline-item { min-width: 120px; }
.episode-card-grid { grid-template-columns: 1fr; }
.comments-grid { grid-template-columns: 1fr; }
.rec-card-slider {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
a.rec-card {
        flex: 0 0 140px;
    }
.footer-links { flex-wrap: wrap; gap: 12px; }}
body.lights-off main, body.lights-off footer {
    opacity: 0.35;
    filter: brightness(0.6);
    transition: opacity 0.3s, filter 0.3s;
}
body.lights-off header {
    opacity: 0.5;
    filter: brightness(0.6);
    transition: opacity 0.3s, filter 0.3s;
}
.movie-shell.theater-mode .player-block {
    max-width: 100%;
    border-color: #c0392b;
}
.movie-shell.theater-mode .episode-status-panel {
    grid-row: 1 / -1;
}
.player .play, .player .progress, .player .volume, .player .mute, .player .speed, .player .pip, .player .fullscreen, .player .theater, .player .light {
    
    cursor: pointer;
}
.player.fullscreen video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}
.player.theater-mode .player-block {
    max-width: 100%;
    border-color: #c0392b;
}
.player.mute button[data-player-action="mute"], .player.pip button[data-player-action="pip"] {
    background: #1e3a5f;
    color: #e8eef5;
}
.click { cursor: pointer; }
.player-block {
    min-width: 480px;
}
@media (max-width: 600px) {.player-block {
        min-width: 0;
    }}

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}
