*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    background: linear-gradient(160deg, #1a1a1c 0%, #0d0d0f 40%, #08080a 100%);
    color: #f2ead8;
    min-height: 100vh;
    letter-spacing: 0.02em;
}
h1, h2 {
    font-family: "Georgia", "Times New Roman", "Songti SC", serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}
h2 {
    font-size: 1.4rem;
    color: #d4b478;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
h2::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #d4b478;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 180, 120, 0.5);
}
a {
    color: #d4b478;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #f2ead8;
}
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(8, 8, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 180, 120, 0.2);
}
a[data-contract="site-name"] {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f2ead8;
    text-decoration: none;
    letter-spacing: 0.12em;
    text-shadow: 0 0 20px rgba(212, 180, 120, 0.3);
}
a[data-contract="site-name"]:hover {
    color: #d4b478;
    text-decoration: none;
}
nav[data-contract="categories"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}
.runtime-category {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: #b8a98a;
    text-decoration: none;
    border: 1px solid rgba(212, 180, 120, 0.25);
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: transparent;
}
.runtime-category:hover {
    color: #f2ead8;
    border-color: #d4b478;
    background: rgba(212, 180, 120, 0.1);
    text-decoration: none;
}
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
[data-fragment="movie-overview"] {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
        "poster title"
        "poster tagline"
        "poster cast"
        "poster synopsis"
        "poster status"
        "poster details";
    gap: 0.8rem 2.5rem;
    padding: 2.5rem 2rem 2rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(212, 180, 120, 0.15);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
[data-fragment="movie-overview"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8b2635, #d4b478, #2c4a6e);
    opacity: 0.6;
}
.poster-shell {
    grid-area: poster;
    width: 260px;
    height: 390px; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 38, 53, 0.2);
    position: relative;
    background: linear-gradient(160deg, #2c2c30, #0d0d0f);
}
.poster-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(139, 38, 53, 0.15), transparent 60%);
    pointer-events: none;
}
.poster-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%) contrast(1.1);
}
.movie-title {
    grid-area: title;
    font-size: 2.8rem;
    line-height: 1.2;
    color: #f2ead8;
    align-self: end;
    position: relative;
    padding-bottom: 0.5rem;
}
.movie-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: #d4b478;
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(212, 180, 120, 0.6);
}
.movie-tagline {
    grid-area: tagline;
    font-size: 1.1rem;
    color: #b8a98a;
    font-style: italic;
    font-family: "Georgia", serif;
    letter-spacing: 0.08em;
    align-self: start;
    padding-top: 0.3rem;
}
.cast-panel {
    grid-area: cast;
    display: flex;
    gap: 1.5rem;
    align-self: start;
    padding-top: 0.5rem;
}
.cast-member {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.cast-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a3a40, #1a1a1e);
    border: 2px solid rgba(212, 180, 120, 0.4);
    position: relative;
    overflow: hidden;
}
.cast-photo::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: rgba(212, 180, 120, 0.3);
    border-radius: 50%;
}
.cast-photo::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 18px;
    background: rgba(212, 180, 120, 0.15);
    border-radius: 50%;
}
.cast-name {
    font-size: 1rem;
    color: #e8dcc8;
    letter-spacing: 0.05em;
}
.synopsis-block {
    grid-area: synopsis;
    font-size: 0.92rem;
    color: #c4b89e;
    line-height: 1.75;
    max-width: 720px;
    align-self: start;
}
.synopsis-block p {
    margin-bottom: 0.6rem;
}
.synopsis-block p:last-child {
    margin-bottom: 0;
}
.episode-status {
    grid-area: status;
    display: flex;
    align-items: center;
    gap: 1rem;
    align-self: start;
    padding-top: 0.2rem;
}
.current-episode {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, #8b2635, #6b1a28);
    color: #f2ead8;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 12px rgba(139, 38, 53, 0.3);
}
.total-episodes {
    font-size: 0.85rem;
    color: #b8a98a;
    letter-spacing: 0.04em;
}
.details-grid {
    grid-area: details;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem 1.5rem;
    align-self: end;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(212, 180, 120, 0.15);
}
.detail-item {
    font-size: 0.85rem;
    color: #c4b89e;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.detail-label {
    font-size: 0.72rem;
    color: #8a7d63;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.player-wrapper {
    margin: 2.5rem 0 0;
    background: #0a0a0c;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 180, 120, 0.15);
    position: relative;
}
.player-wrapper video {
    display: block;
    background: #000;
}
.player-wrapper .custom-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.8rem 1rem;
    background: rgba(20, 20, 24, 0.95);
    border-top: 1px solid rgba(212, 180, 120, 0.15);
}
.custom-controls button {
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    background: transparent;
    color: #b8a98a;
    border: 1px solid rgba(212, 180, 120, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.custom-controls button:hover {
    color: #f2ead8;
    border-color: #d4b478;
    background: rgba(212, 180, 120, 0.1);
}
.player-wrapper.theater-mode {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.player-wrapper.lights-off {
    filter: brightness(1.2);
}
.player-wrapper .play {
    background: rgba(139, 38, 53, 0.4);
}
.player-wrapper .mute {
    background: rgba(139, 38, 53, 0.2);
}
.player-wrapper .volume, .player-wrapper .progress, .player-wrapper .speed, .player-wrapper .pip, .player-wrapper .fullscreen, .player-wrapper .theater, .player-wrapper .light, .player-wrapper .player {
    background: transparent;
}
.player-wrapper:hover .custom-controls button {
    opacity: 1;
}
.timeline-section {
    margin-top: 3rem;
    padding: 0 0.5rem;
}
.timeline-list {
    position: relative;
    padding-left: 2rem;
}
.timeline-list::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d4b478, rgba(212, 180, 120, 0.2));
}
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.2rem;
    padding: 0.7rem 0;
    align-items: baseline;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 1.2rem;
    width: 10px;
    height: 10px;
    background: #d4b478;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(212, 180, 120, 0.6);
}
.timeline-time {
    font-family: "Georgia", serif;
    font-size: 0.9rem;
    color: #d4b478;
    font-weight: 700;
    text-align: right;
}
.timeline-label {
    font-size: 0.9rem;
    color: #c4b89e;
    line-height: 1.5;
}
.episodes-section {
    margin-top: 3rem;
}
.episode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.episode-card {
    position: relative;
    height: 230px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(145deg, #2a2a2e 0%, #1a1a1e 60%, #0f0f11 100%);
    border: 1px solid rgba(212, 180, 120, 0.1);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
}
.episode-card::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(139, 38, 53, 0.3), transparent 70%);
    opacity: 0.5;
}
.episode-card.active-episode {
    border-color: rgba(212, 180, 120, 0.5);
    box-shadow: 0 4px 20px rgba(212, 180, 120, 0.2);
}
.episode-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0.2) 50%, rgba(8, 8, 10, 0.6) 100%);
    transition: background 0.4s ease;
}
.episode-number {
    position: relative;
    z-index: 2;
    font-family: "Georgia", serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4b478;
    line-height: 1;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.episode-title {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    color: #f2ead8;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
}
.episode-duration {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    color: #8a7d63;
    letter-spacing: 0.05em;
}
.episode-summary {
    position: absolute;
    z-index: 3;
    inset: auto 0 0 0;
    padding: 1.2rem;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #e8dcc8;
    background: linear-gradient(to top, rgba(8, 8, 10, 0.95), rgba(8, 8, 10, 0.7));
    transform: translateY(100%);
    transition: transform 0.4s ease;
    opacity: 0;
}
.episode-card:hover .episode-summary {
    transform: translateY(0);
    opacity: 1;
}
.episode-card:hover .episode-overlay {
    background: linear-gradient(to top, rgba(8, 8, 10, 0.3) 0%, rgba(8, 8, 10, 0.1) 50%, rgba(8, 8, 10, 0.4) 100%);
}
.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.comments-section {
    margin-top: 3rem;
}
.comments-masonry {
    column-count: 2;
    column-gap: 1.2rem;
}
.comment-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #d4b478;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease;
}
.comment-card:nth-child(2n) {
    margin-top: 1.5rem;
}
.comment-card:hover {
    background: rgba(212, 180, 120, 0.05);
}
.comment-author {
    font-size: 0.85rem;
    color: #d4b478;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.06em;
}
.comment-text {
    font-size: 0.88rem;
    color: #c4b89e;
    line-height: 1.7;
}
section[data-fragment="recommendations"] {
    margin-top: 3rem;
}
.recommendation-row {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
a[data-runtime="recommendation"] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-decoration: none;
    color: #c4b89e;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 180, 120, 0.08);
    transition: all 0.3s ease;
}
a[data-runtime="recommendation"]:hover {
    text-decoration: none;
    background: rgba(212, 180, 120, 0.05);
    border-color: rgba(212, 180, 120, 0.25);
    transform: translateY(-2px);
}
a[data-runtime="recommendation"] img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
    background: linear-gradient(145deg, #3a3a40, #1a1a1e);
}
a[data-runtime="recommendation"] [data-runtime="name"] {
    font-size: 0.95rem;
    color: #f2ead8;
    font-weight: 500;
    letter-spacing: 0.03em;
}
a[data-runtime="recommendation"] [data-runtime="blurb"] {
    font-size: 0.8rem;
    color: #8a7d63;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
footer {
    margin-top: 4rem;
    padding: 2rem 2rem 3rem;
    border-top: 1px solid rgba(212, 180, 120, 0.15);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem 2rem;
    font-size: 0.82rem;
    color: #8a7d63;
}
[data-contract="disclaimer"] {
    flex: 1 1 100%;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #6b6155;
}
a[data-contract="footer-home"], a[data-contract="footer-sitemap"] {
    color: #b8a98a;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    padding: 0.2rem 0;
}
a[data-contract="footer-home"]:hover, a[data-contract="footer-sitemap"]:hover {
    color: #d4b478;
    text-decoration: underline;
    text-underline-offset: 4px;
}
nav[data-contract="friend-links"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-left: auto;
}
.friend-links-label {
    font-size: 0.8rem;
    color: #8a7d63;
    letter-spacing: 0.08em;
}
.runtime-friend-link {
    display: inline-block;
    color: #8a7d63;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid transparent;
}
.runtime-friend-link:hover {
    color: #d4b478;
    text-decoration: underline;
    text-underline-offset: 3px;
    border-color: rgba(212, 180, 120, 0.2);
    background: rgba(212, 180, 120, 0.05);
}
.player-wrapper:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
    border-radius: 0;
}
.player-wrapper:fullscreen video {
    flex: 1;
    object-fit: contain;
}
.player-wrapper:fullscreen .custom-controls {
    border-top: 1px solid rgba(212, 180, 120, 0.2);
}
@media (max-width: 1024px) {[data-fragment="movie-overview"] {
        grid-template-columns: 220px 1fr;
        gap: 0.8rem 2rem;
    }
.poster-shell {
        width: 220px;
        height: 330px;
    }
.movie-title {
        font-size: 2.2rem;
    }
.episode-cards {
        grid-template-columns: repeat(2, 1fr);
    }}
@media (max-width: 768px) {header {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1rem;
    }
nav[data-contract="categories"] {
        justify-content: center;
    }
[data-fragment="movie-overview"] {
        grid-template-columns: 1fr;
        grid-template-areas:
            "poster"
            "title"
            "tagline"
            "cast"
            "synopsis"
            "status"
            "details";
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
.poster-shell {
        width: 180px;
        height: 270px;
        margin: 0 auto;
    }
.movie-title {
        font-size: 1.8rem;
        text-align: center;
    }
.movie-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
.movie-tagline {
        text-align: center;
    }
.cast-panel {
        justify-content: center;
    }
.synopsis-block {
        text-align: center;
    }
.episode-status {
        justify-content: center;
    }
.details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
.timeline-item {
        grid-template-columns: 70px 1fr;
        gap: 0.8rem;
    }
.episode-cards {
        grid-template-columns: 1fr;
    }
.comments-masonry {
        column-count: 1;
    }
.comment-card:nth-child(2n) {
        margin-top: 0;
    }
.recommendation-row {
        grid-template-columns: repeat(2, 1fr);
    }
footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1rem 2.5rem;
    }
nav[data-contract="friend-links"] {
        margin-left: 0;
    }}
@media (max-width: 480px) {main {
        padding: 0 0.8rem;
    }
.recommendation-row {
        grid-template-columns: 1fr;
    }
.custom-controls button {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
.timeline-list {
        padding-left: 1.5rem;
    }
.timeline-item::before {
        left: -1.5rem;
    }
.movie-title {
        font-size: 1.5rem;
    }
.cast-panel {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
.details-grid {
        grid-template-columns: 1fr;
    }}
@media (hover: none) {.episode-summary {
        transform: translateY(0);
        opacity: 0.9;
        position: relative;
        inset: auto;
        margin-top: 0.5rem;
        padding: 0.5rem 0 0;
        background: none;
    }
.episode-card {
        height: auto;
        min-height: 200px;
    }}

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}
