*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1040 45%, #2d1b4e 100%);
    color: #d8dcf0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 165, 0, 0.04) 0%, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
}
body.lights-dim {
    background: #0a0a0a;
}
body.lights-dim main, body.lights-dim header, body.lights-dim footer {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
a {
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
    color: #ffb347;
    text-decoration: underline;
}
a[data-contract="site-name"] {
    color: #00e5ff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
}
a[data-contract="site-name"]:hover {
    color: #ffb347;
    text-decoration: none;
}
a.runtime-category {
    color: #b8c0d8;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}
a.runtime-category:hover {
    color: #00e5ff;
    text-decoration: none;
    background: rgba(0, 229, 255, 0.08);
}
a.rec-card {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
a.rec-card:hover {
    color: inherit;
    text-decoration: none;
    border-color: rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    color: #8890a8;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0 0.5rem;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
    color: #00e5ff;
    text-decoration: underline;
}
a.runtime-friend-link {
    color: #8890a8;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
a.runtime-friend-link:hover {
    color: #ffb347;
    text-decoration: underline;
}
header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.site-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
nav[data-contract="categories"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
main {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
}
footer {
    position: relative;
    z-index: 1;
    background: rgba(10, 14, 39, 0.9);
    border-top: 1px solid rgba(0, 229, 255, 0.08);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}
.movie-overview-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    background: rgba(16, 20, 48, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}
.movie-overview-shell::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00e5ff, #ffb347, transparent);
    opacity: 0.5;
    z-index: 1;
}
.poster-wrapper {
    grid-column: 1;
    grid-row: 1 / span 3;
    position: relative;
    background: #0d1025;
    padding: 0;
    align-self: start;
}
.main-poster-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-right: 1px solid rgba(0, 229, 255, 0.1);
}
.overview-content {
    grid-column: 2;
    grid-row: 1;
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.movie-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.tagline {
    color: #00e5ff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
}
.synopsis-block {
    margin-top: 0.5rem;
}
.section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00e5ff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    display: inline-block;
}
.synopsis-para {
    font-size: 0.95rem;
    color: #c0c8e0;
    margin-bottom: 0.5rem;
}
.cast-block {
    margin-top: 0.25rem;
}
.actor-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}
.actor-chip {
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: #d8dcf0;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}
.episode-status-block {
    margin-top: 0.25rem;
}
.episode-indicator {
    color: #ffb347;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 165, 0, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border-left: 3px solid #ffb347;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem 1rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.detail-label {
    font-size: 0.75rem;
    color: #7a84a8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-value {
    font-size: 0.9rem;
    color: #e0e4f0;
}
.rating-large {
    position: relative;
}
.rating-number {
    font-size: 2rem;
    font-weight: 900;
    color: #ffb347;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
}
.player-region {
    grid-column: 2;
    grid-row: 2;
    padding: 0 1.5rem 0.5rem;
    min-width: 0;
}
.player-region video {
    display: block;
    background: #000;
    border-radius: 8px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}
.player-control-bar {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    padding: 0.4rem 0.2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-top: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.ctrl-btn {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #d8dcf0;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 32px;
}
.ctrl-btn:hover {
    background: rgba(0, 229, 255, 0.3);
    color: #fff;
}
.ctrl-btn.active-state {
    background: rgba(0, 229, 255, 0.4);
    color: #fff;
}
.ctrl-progress {
    font-size: 0.8rem;
    color: #8890a8;
    padding: 0 0.3rem;
    font-variant-numeric: tabular-nums;
}
.wide-side {
    min-width: 0;
}
.episode-list-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.episode-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.episode-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    grid-template-areas:
        "num title duration"
        "num summary summary";
    gap: 0.2rem 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
    align-items: start;
}
.episode-item:hover {
    border-color: rgba(0, 229, 255, 0.2);
}
.episode-item.current-episode {
    border-color: rgba(255, 165, 0, 0.4);
    background: rgba(255, 165, 0, 0.04);
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.1);
}
.episode-number {
    grid-area: num;
    font-size: 1.4rem;
    font-weight: 900;
    color: #00e5ff;
    line-height: 1;
    text-align: center;
    padding-top: 0.2rem;
}
.current-episode .episode-number {
    color: #ffb347;
}
.episode-title {
    grid-area: title;
    font-weight: 700;
    color: #e8ecf8;
    font-size: 1rem;
}
.episode-duration {
    grid-area: duration;
    font-size: 0.8rem;
    color: #7a84a8;
    white-space: nowrap;
}
.episode-summary {
    grid-area: summary;
    font-size: 0.85rem;
    color: #a0a8c0;
    line-height: 1.4;
}
.timeline-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    padding-top: 1.5rem;
}
.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, #ffb347);
    opacity: 0.3;
}
.timeline-item {
    position: relative;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.timeline-item::before {
    content: "";
    position: absolute;
    top: -0.9rem;
    left: 1rem;
    width: 12px;
    height: 12px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}
.timeline-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00e5ff;
    letter-spacing: 0.03em;
}
.timeline-label {
    font-size: 0.85rem;
    color: #b0b8d0;
    line-height: 1.4;
}
.cast-highlight-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cast-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
}
.cast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.cast-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}
.avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(0, 229, 255, 0.3);
    position: relative;
    overflow: hidden;
}
.avatar-circle::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 229, 255, 0.3);
    border-radius: 50%;
}
.avatar-circle::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 24px;
    background: rgba(0, 229, 255, 0.2);
    border-radius: 50% 50% 0 0;
}
.cast-name {
    font-weight: 700;
    color: #e8ecf8;
    font-size: 1rem;
}
.cast-role {
    font-size: 0.8rem;
    color: #7a84a8;
}
.cast-extra {
    margin-top: 0.6rem;
    max-width: 300px;
}
.cast-extra .cast-card {
    background: rgba(255, 165, 0, 0.04);
    border-color: rgba(255, 165, 0, 0.2);
}
.comments-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.comments-masonry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
    align-items: start;
}
.comment-card {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.comment-nick {
    font-weight: 700;
    color: #00e5ff;
    font-size: 0.9rem;
}
.comment-text {
    font-size: 0.9rem;
    color: #b0b8d0;
    line-height: 1.5;
}
.recommendation-region {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.rec-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8ecf8;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}
.rec-scroll {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.3rem 0.3rem 0.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.3) transparent;
}
.rec-scroll::-webkit-scrollbar {
    height: 6px;
}
.rec-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.3);
    border-radius: 3px;
}
.rec-scroll::-webkit-scrollbar-track {
    background: transparent;
}
[data-runtime="recommendation"] img.rec-thumb {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}
.rec-name {
    font-weight: 700;
    color: #e0e4f0;
    font-size: 0.95rem;
    padding: 0.5rem 0.6rem 0.2rem;
}
.rec-blurb {
    font-size: 0.8rem;
    color: #8890a8;
    padding: 0 0.6rem 0.6rem;
    line-height: 1.4;
}
.disclaimer-text {
    font-size: 0.8rem;
    color: #7a84a8;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border-left: 3px solid rgba(0, 229, 255, 0.2);
    margin-bottom: 1rem;
}
.footer-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: center;
}
.friend-links-label {
    font-size: 0.85rem;
    color: #7a84a8;
    font-weight: 600;
}
.runtime-friend-link {
    font-size: 0.85rem;
    padding: 0.2rem 0;
}
video.theater-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    object-fit: contain;
    background: #000;
}
@media (max-width: 1100px) {.movie-overview-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }
.details-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
.timeline-horizontal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 1.5rem;
    }
.timeline-horizontal::before {
        display: none;
    }
.timeline-item::before {
        top: auto;
        bottom: -0.9rem;
    }}
@media (max-width: 860px) {main {
        padding: 1rem 1rem 1.5rem;
    }
header {
        padding: 0.8rem 1rem;
    }
.movie-overview-shell {
        grid-template-columns: 1fr;
    }
.poster-wrapper {
        grid-column: 1;
        grid-row: 1;
        max-width: 200px;
        margin: 0 auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    }
.main-poster-img {
        border-right: none;
    }
.overview-content {
        grid-column: 1;
        grid-row: 2;
        padding: 1rem;
    }
.player-region {
        grid-column: 1;
        grid-row: 3;
        padding: 0 1rem 1rem;
        min-width: 0;
        width: 100%;
    }
.episode-list {
        grid-template-columns: 1fr;
    }
.comments-masonry {
        grid-template-columns: 1fr;
    }
.cast-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.cast-extra {
        max-width: none;
    }}
@media (max-width: 560px) {.details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
.timeline-horizontal {
        grid-template-columns: 1fr;
    }
.cast-grid-3 {
        grid-template-columns: 1fr;
    }
.movie-title {
        font-size: 1.4rem;
    }
.player-control-bar {
        flex-wrap: wrap;
    }}
@media (max-width: 420px) {header {
        flex-direction: column;
        align-items: flex-start;
    }
.episode-item {
        grid-template-columns: 28px minmax(0, 1fr);
        grid-template-areas:
            "num title"
            "num duration"
            "num summary";
        gap: 0.2rem 0.5rem;
    }
.episode-duration {
        grid-area: duration;
    }
.details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }
.rec-scroll {
        scroll-snap-type: x mandatory;
    }
.rec-card {
        scroll-snap-align: start;
    }}

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}
