:root {
    color-scheme: dark;
    --background: #0b101a;
    --surface: #121925;
    --raised: #192230;
    --line: #263040;
    --text: #f4f5f7;
    --muted: #9aa6b8;
    --accent: #e7bd77;
    --accent-hover: #f4d39f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button,
select {
    cursor: pointer;
}

button {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

button:disabled {
    cursor: default;
    opacity: .4;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
    color: var(--muted);
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

.wrap,
.header-inner,
.main-nav {
    width: min(1360px, calc(100% - 80px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid #202735;
    background: #0c111b;
}

.header-inner {
    min-height: 91px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    white-space: nowrap;
}

.brand-heading {
    margin: 0;
    font-size: inherit;
}

.brand img {
    width: 42px;
    height: 42px;
}

.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-top: 5px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #171e2b;
    border: 1px solid #29313e;
    border-radius: 24px;
    padding: 8px 10px 8px 18px;
    width: 410px;
    margin-left: auto;
    color: var(--muted);
}

.search-form input {
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.search-form button {
    border: 0;
    background: transparent;
    white-space: nowrap;
    color: var(--accent);
    font-size: 14px;
}

.history-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #b7c0ce;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 36px;
    min-height: 61px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-bottom: 3px solid transparent;
    padding: 14px 0 16px;
    color: #bdc5d1;
    white-space: nowrap;
}

.main-nav a.active {
    color: var(--accent);
    border-color: var(--accent);
}

.main-nav a:hover,
.more-link:hover,
.footer-links a:hover,
.card-title a:hover {
    color: var(--accent);
}

.hero {
    position: relative;
    margin-top: 30px;
    height: 510px;
    border-radius: 16px;
    overflow: hidden;
    background: #151e2b;
    border: 1px solid #293240;
}

.hero-slide {
    height: 100%;
    position: relative;
}

.hero-image {
    position: absolute;
    right: 0;
    width: 80%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-position: center;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #111b2a 0%, #111b2aef 24%, #111b2a7a 56%, #111b2a08 100%), linear-gradient(0deg, #080e1bd9, transparent 60%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 47px 54px 75px;
    max-width: 650px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--accent);
    margin: 0 0 25px;
}

.hero-tag span {
    color: #a3a7ae;
    margin-left: 9px;
    font-size: 11px;
    letter-spacing: 2px;
}

.hero-kicker {
    color: #e3d9c9;
    margin: 0 0 2px;
    font-size: 18px;
    letter-spacing: 4px;
}

.hero-copy h2 {
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: 5px;
    line-height: 1.3;
    margin: 0 0 16px;
}

.hero-meta {
    color: #c8cdd6;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    flex-wrap: wrap;
    margin: 0;
}

.hero-meta strong {
    color: var(--accent);
    font-size: 23px;
}

.hero-meta span {
    border-left: 1px solid #647083;
    padding-left: 12px;
}

.hero-summary {
    color: #bdc5d1;
    max-width: 485px;
    margin: 16px 0 24px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 11px 22px;
    min-height: 46px;
    font-size: 15px;
    font-weight: 600;
}

.primary {
    background: var(--accent);
    color: #221a10;
}

.primary:hover {
    background: var(--accent-hover);
}

.secondary,
.glass {
    background: #ffffff09;
    border-color: #566070;
    color: #e5e8ed;
}

.secondary:hover,
.glass:hover {
    background: #ffffff16;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-bottom {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: 54px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.hero-count {
    font-size: 12px;
    color: #929eaf;
    letter-spacing: 2px;
}

.hero-count span {
    color: #fff;
    font-size: 19px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: 0;
    background: #d8dce14d;
}

.hero-dot.active {
    background: var(--accent);
    outline: 4px solid #e7bd7714;
}

.hero-controls {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.hero-controls button {
    width: 35px;
    height: 35px;
    border: 1px solid #ffffff38;
    border-radius: 50%;
    background: #111a2680;
}

.discovery-strip {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 23px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: #b9c2d0;
}

.discovery-strip > span:first-child {
    display: flex;
    gap: 9px;
    color: var(--accent);
}

.discovery-strip a {
    display: flex;
    gap: 12px;
    align-items: center;
}

.strip-note {
    margin-left: auto;
    color: #748094;
}

.content-section {
    margin-top: 47px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

h2,
h3,
p {
    overflow-wrap: break-word;
}

.section-head h2 {
    font-size: 25px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.section-head h2 .icon {
    color: var(--accent);
    width: 23px;
    height: 23px;
}

.section-head p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.more-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 22px;
}

.film-card {
    min-width: 0;
}

.poster {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    background: linear-gradient(140deg, #293747, #192234);
    aspect-ratio: 2 / 3;
}

.poster img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    transition: transform .35s ease;
}

.poster-link:hover img {
    transform: scale(1.05);
}

.quality {
    position: absolute;
    right: 8px;
    top: 9px;
    border: 1px solid #ffffff38;
    background: #060d18ad;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.8;
}

.poster-status {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: right;
    font-size: 12px;
    padding: 25px 9px 9px;
    background: linear-gradient(transparent, #000b);
}

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #0003;
    opacity: 0;
    transition: opacity .2s;
}

.poster-play .icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
}

.poster-link:hover .poster-play,
.poster-link:focus-visible .poster-play {
    opacity: 1;
}

.card-title {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
    align-items: center;
}

.card-title a {
    min-width: 0;
}

.card-title h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.score {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.card-meta {
    color: var(--muted);
    display: flex;
    gap: 6px;
    margin: 5px 0 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-summary {
    color: #8996a9;
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0 0;
    height: 2lh;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.spotlight {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    background: linear-gradient(115deg, #1c2c37, #141e2c);
    border: 1px solid #334551;
    border-radius: 12px;
    padding: 36px 42px;
    align-items: center;
    gap: 25px;
}

.eyebrow {
    color: var(--accent);
    letter-spacing: 2px;
    font-size: 12px;
    margin: 0 0 10px;
}

.spotlight h2 {
    font-size: 28px;
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

.spotlight p:not(.eyebrow) {
    color: #a7b6c3;
    font-size: 14px;
}

.spotlight-titles {
    border-left: 1px solid #51616b;
    padding-left: 65px;
    display: grid;
    color: #bac9ce;
}

.spotlight-titles strong {
    font-family: Georgia, serif;
    color: #e2cfae;
    font-size: 48px;
    font-weight: normal;
    line-height: 1.1;
    margin: 10px 0;
    letter-spacing: 3px;
}

.spotlight-titles small {
    font-size: 13px;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.rank-panel {
    background: linear-gradient(145deg, #202635, #121925);
    border: 1px solid #2e3544;
    border-radius: 11px;
    padding: 23px;
}

.rank-panel > h3 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #e7d5b6;
}

.rank-row {
    display: flex;
    gap: 15px;
    padding: 11px 0;
    align-items: center;
    border-bottom: 1px solid #ffffff0b;
}

.rank-row:last-child {
    border: 0;
}

.rank-number {
    color: #9c8668;
    font-size: 25px;
    font-style: italic;
    font-family: Georgia, serif;
}

.rank-row h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.rank-row strong {
    color: var(--accent);
    margin-left: auto;
    font-size: 16px;
}

.about-section {
    border-top: 1px solid var(--line);
    padding-top: 35px;
    max-width: 100%;
}

.about-section h2 {
    font-size: 24px;
    font-weight: 500;
}

.about-section > p:not(.eyebrow) {
    color: var(--muted);
    max-width: 1060px;
    font-size: 15px;
    line-height: 2;
}

.mobile-section {
    margin-top: 60px;
    margin-bottom: 45px;
    border: 1px solid #3b3c3c;
    background: linear-gradient(115deg, #272620, #181d26 65%);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.mobile-emblem {
    display: grid;
    place-items: center;
    color: var(--accent);
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: #e7bd7710;
    flex-shrink: 0;
    border: 1px solid #e7bd7750;
}

.mobile-emblem .icon {
    width: 46px;
    height: 46px;
}

.mobile-section h2 {
    font-size: 25px;
    font-weight: 500;
    margin: 0;
}

.mobile-section p:not(.eyebrow),
.mobile-section small {
    font-size: 13px;
    color: var(--muted);
    margin: 5px 0;
}

.mobile-actions {
    margin-left: auto;
    display: grid;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-actions .button {
    font-size: 14px;
    padding: 8px 18px;
}

.site-footer {
    background: #090e17;
    border-top: 1px solid #202837;
    padding-top: 38px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 30px;
}

.footer-top p {
    color: #7f8b9e;
    font-size: 13px;
}

.footer-top h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 14px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    font-size: 13px;
    color: #96a1b2;
}

.footer-bottom {
    border-top: 1px solid #1e2735;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #778396;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 15px;
    top: -100px;
    z-index: 20;
    background: var(--accent);
    color: #111;
    padding: 10px;
}

.skip-link:focus {
    top: 15px;
}

[hidden] {
    display: none !important;
}

.breadcrumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
    padding: 28px 0;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.page-heading {
    margin-bottom: 28px;
}

.page-heading h1 {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 9px;
}

.page-heading p {
    color: var(--muted);
    margin: 0;
}

.filter-panel {
    padding: 23px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 24px 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 6px 0;
}

.filter-row > span {
    color: var(--muted);
    margin-right: 12px;
    font-size: 14px;
}

.filter-chip {
    background: transparent;
    border: 1px solid #354253;
    border-radius: 5px;
    padding: 5px 15px;
    color: var(--muted);
    font-size: 14px;
}

.filter-chip.active {
    color: var(--accent);
    border-color: #ac895351;
    background: #e7bd7712;
}

.filter-row select,
.large-search input {
    border: 1px solid var(--line);
    background: #101824;
    color: var(--text);
    border-radius: 6px;
    padding: 8px 14px;
    min-width: 0;
}

.results-count {
    color: var(--muted);
    font-size: 14px;
    margin: 20px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 35px 0;
}

.detail-hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 38px;
    padding: 30px;
    background: linear-gradient(135deg, #1c2838, #121923);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.detail-poster {
    grid-row: 1 / 4;
    height: auto;
    align-self: start;
    aspect-ratio: 2 / 3;
    width: 100%;
    border-radius: 8px;
    background: var(--raised);
}

.detail-info h1 {
    font-size: 36px;
    margin: 0;
}

.detail-alias {
    color: #a9b8ca;
    margin: 3px 0 15px;
}

.facts {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin: 18px 0;
    font-size: 14px;
}

.facts div {
    display: flex;
    gap: 10px;
}

.facts dt {
    color: var(--muted);
    flex-shrink: 0;
}

.facts dd {
    margin: 0;
}

.notice {
    grid-column: 1 / -1;
    color: #bfac8f;
    border-left: 3px solid var(--accent);
    background: #e7bd7708;
    padding: 12px 18px;
    font-size: 14px;
    margin-top: 20px;
}

.episode-list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.episode-list a {
    background: var(--raised);
    border: 1px solid #334054;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.episode-list a.active,
.episode-list a:hover {
    background: #e7bd771b;
    color: var(--accent);
    border-color: #e7bd77;
}

.prose {
    color: #b3bdcb;
    line-height: 2;
}

.prose h2,
.prose h3 {
    color: var(--text);
    font-weight: 500;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
}

.stills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.stills img {
    height: auto;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 8px;
    background: var(--raised);
}

.large-search {
    display: flex;
    gap: 12px;
    max-width: 750px;
    margin: 25px 0;
}

.large-search input {
    flex: 1;
}

.info-page {
    max-width: 930px;
    min-height: 400px;
}

.empty-state {
    border: 1px dashed #465369;
    border-radius: 10px;
    padding: 50px 25px;
    text-align: center;
    color: var(--muted);
}

.empty-state h2 {
    color: #dde2e9;
}

.inline-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    padding: 22px;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
}

.inline-feature strong {
    color: var(--accent);
}

.inline-feature p {
    color: var(--muted);
    margin: 0;
    flex: 1;
}

.detail-hero .detail-actions {
    grid-column: 2;
}

.image-unavailable {
    font-size: 14px;
    padding: 20px;
}
