:root {
    color-scheme: dark;
    --background: #0b1013;
    --surface: #141c20;
    --surface-raised: #1b252b;
    --line: #293237;
    --text: #f1f4f2;
    --muted: #97a3a6;
    --accent: #bcf06a;
    --accent-dark: #26371e;
    --gold: #f0cc87;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

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

button, input, select {
    font: inherit;
}

button, select {
    cursor: pointer;
}

button, input, select {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

button {
    padding: 9px 16px;
}

button:hover, a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

img {
    display: block;
    max-width: 100%;
}

svg.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.container {
    width: min(1360px, calc(100% - 96px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #0c1215;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 86px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

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

.brand h1, .brand strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.4;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 3px;
}

.search-form {
    display: flex;
    align-items: center;
    background: #1a2227;
    border: 1px solid var(--line);
    border-radius: 30px;
    width: min(440px, 44%);
    padding: 3px 8px 3px 19px;
}

.search-form input {
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    outline-offset: 0;
    padding: 8px;
    font-size: 14px;
}

.search-form button {
    background: transparent;
    border: 0;
    padding: 8px;
    display: flex;
}

.header-tools, .actions, .section-heading, .section-title, .nav-links a, .chip-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-tools a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links a {
    min-height: 55px;
    flex-shrink: 0;
    gap: 8px;
    border-bottom: 3px solid transparent;
    font-size: 15px;
}

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

main {
    min-height: 55vh;
}

.hero {
    width: 100%;
    min-width: 0;
    margin-top: 28px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #18232a;
    aspect-ratio: 2.65;
    min-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    isolation: isolate;
}

.hero-slide[hidden], [hidden] {
    display: none !important;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: -2;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 15, 21, .98), rgba(7, 15, 21, .7) 36%, rgba(7, 15, 21, .08) 75%), linear-gradient(0deg, rgba(7, 15, 21, .83), transparent 40%);
}

.hero-copy {
    max-width: 585px;
    padding: 48px 56px 74px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

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

.hero .tagline {
    color: #d6e0e2;
    font-size: 20px;
    margin: 0 0 12px;
}

.metadata {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.hero .metadata {
    color: #d0dbdd;
}

.badge {
    border: 1px solid #657675;
    border-radius: 4px;
    padding: 0 6px;
    font-size: 12px;
}

.hero .summary {
    color: #b5c0c3;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 14px 0 22px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 7px;
    background: #ffffff12;
    border: 1px solid #ffffff23;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
}

.button.primary {
    background: var(--accent);
    color: #172017;
    border-color: var(--accent);
}

.button.primary:hover {
    background: #cdf799;
    color: #172017;
}

.hero-controls {
    position: absolute;
    bottom: 23px;
    left: 56px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dots, .hero-arrows {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dots button {
    padding: 0;
    width: 7px;
    height: 7px;
    border-radius: 8px;
    background: #ffffff66;
    border: 0;
}

.dots button[aria-selected="true"] {
    width: 26px;
    background: var(--accent);
}

.hero-arrows button {
    display: flex;
    padding: 7px;
    background: #12212c88;
    border-color: #ffffff33;
}

.hero-count {
    font-size: 12px;
    color: #c2ced0;
    margin-right: 10px;
}

.quickbar {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    margin-top: 18px;
    padding: 20px 26px;
    border: 1px solid var(--line);
    border-radius: 10px;
    gap: 24px;
    background: #121a1e;
}

.quickbar a {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    font-size: 14px;
}

.quickbar a:last-child {
    border: 0;
}

.quickbar strong {
    font-size: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.quickbar span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

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

.section-heading {
    justify-content: space-between;
    margin-bottom: 21px;
    gap: 16px;
}

.section-title {
    gap: 10px;
    min-width: 0;
}

.section-title > .icon {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.section-title h2 {
    font-size: 23px;
    margin: 0;
    letter-spacing: 1px;
}

.section-title small, .more {
    font-size: 13px;
    color: var(--muted);
}

.more {
    white-space: nowrap;
}

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

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 9px;
    overflow: hidden;
    background: #1e2b30;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, #071013c9);
    pointer-events: none;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    color: var(--muted);
    font-size: 14px;
}

.poster:hover img {
    transform: scale(1.045);
}

.quality {
    position: absolute;
    top: 9px;
    right: 9px;
    border: 1px solid #ffffff35;
    color: #e4ece9;
    background: #0a121bc2;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 12px;
}

.poster-status {
    position: absolute;
    bottom: 9px;
    left: 11px;
    right: 11px;
    z-index: 1;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.poster-status b {
    color: var(--gold);
    font-size: 16px;
}

.film-card h3 {
    font-size: 16px;
    margin: 10px 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.film-card .metadata {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 12px;
}

.card-summary {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    min-height: 43px;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editorial-banner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #162629;
    border: 1px solid #2a4041;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 44px;
}

.editorial-banner img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.editorial-copy {
    padding: 34px 40px;
}

.editorial-copy h2 {
    margin: 0 0 10px;
    font-size: 27px;
}

.editorial-copy p {
    font-size: 14px;
    color: #aebfc0;
    margin: 0 0 20px;
}

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

.rank-panel {
    background: #151d21;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 24px;
}

.rank-panel h3 {
    font-size: 18px;
    margin: 0 0 17px;
}

.rank-panel ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-panel li a {
    display: grid;
    grid-template-columns: 27px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.rank-number {
    color: var(--gold);
    font: italic 23px Georgia, serif;
}

.rank-name {
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-name small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.rank-score {
    color: var(--gold);
    font-size: 14px;
}

.about-strip {
    display: grid;
    grid-template-columns: .8fr 2fr;
    gap: 50px;
    padding: 35px 0;
    border-top: 1px solid var(--line);
    margin-top: 45px;
}

.about-strip h2 {
    margin: 0;
    font-size: 23px;
}

.about-strip p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.mobile-module {
    background: #192622;
    border: 1px solid #314336;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 29px 36px;
    margin-top: 45px;
    margin-bottom: 46px;
}

.mobile-module h2 {
    font-size: 23px;
    margin: 0 0 5px;
}

.mobile-module p {
    margin: 0;
    color: #aab9ac;
    font-size: 14px;
}

.mobile-mark {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

.mobile-text {
    flex: 1;
}

.mobile-module .actions {
    flex-wrap: wrap;
}

.site-footer {
    background: #080d10;
    border-top: 1px solid var(--line);
    padding: 38px 0 22px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-top p {
    color: var(--muted);
    font-size: 13px;
    max-width: 480px;
}

.footer-top h3 {
    font-size: 14px;
    margin: 3px 0 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid #1d282d;
    padding-top: 20px;
    margin-top: 28px;
    color: #79888c;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    margin: 26px 0;
}

.page-title {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.5;
}

.page-intro {
    color: var(--muted);
    max-width: 850px;
    margin: 0 0 25px;
}

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

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

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

.filter-row button {
    font-size: 14px;
    border: 0;
    padding: 6px 13px;
}

.filter-row button.active {
    background: var(--accent-dark);
    color: var(--accent);
}

select {
    padding: 7px 12px;
    max-width: 100%;
}

.list-count {
    color: var(--muted);
    font-size: 13px;
}

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

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

.detail-panel {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 38px;
    border-radius: 14px;
    padding: 34px;
    background: linear-gradient(120deg, #1a292c, #151c21 65%);
    border: 1px solid var(--line);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #27343a;
}

.detail-panel h1 {
    font-size: 32px;
    margin: 0;
}

.alias {
    color: var(--muted);
    margin: 4px 0 16px;
    font-size: 14px;
}

.detail-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 22px;
    margin: 19px 0;
    font-size: 14px;
}

.detail-facts div {
    display: flex;
    gap: 8px;
}

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

.detail-facts dd {
    margin: 0;
}

.detail-facts .wide {
    grid-column: 1 / -1;
}

.prose {
    color: #bdc7c9;
    max-width: 950px;
    line-height: 1.9;
}

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

.episode-list a {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 9px 4px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
}

.episode-list a.active {
    color: var(--accent);
    border-color: #81a653;
    background: #202f24;
}

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

.stills img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface);
    border-radius: 8px;
}

.film-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.notice {
    border-left: 3px solid var(--accent);
    padding: 12px 18px;
    margin: 20px 0;
    background: #172220;
    font-size: 14px;
    color: #b8c6be;
}

.legal-page {
    max-width: 950px;
    padding-bottom: 25px;
}

.legal-page h2 {
    font-size: 23px;
    margin-top: 34px;
}

.legal-page p, .legal-page li {
    color: #b7c2c5;
}

.empty-state {
    padding: 55px 20px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border-radius: 10px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #172017;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 50;
    max-width: calc(100% - 32px);
    font-size: 14px;
}

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