:root {
    color-scheme: dark;
    --bg: #101216;
    --surface: #191c22;
    --surface-hover: #22272e;
    --text: #f5f6f7;
    --muted: #989da8;
    --accent: #d7f95a;
    --border: #2c3037;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
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:disabled {
    opacity: .4;
    cursor: default;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}
img {
    max-width: 100%;
    object-fit: cover;
}
h1, h2, h3, p {
    margin: 0;
}
h2 {
    font-size: 26px;
    letter-spacing: -.6px;
}
.wrap {
    width: min(1320px, calc(100% - 80px));
    margin-inline: auto;
}
.header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 26px;
    background: #101216;
}
.topbar {
    height: 91px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}
.brand img {
    object-fit: contain;
}
.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
}
.search-form {
    display: flex;
    width: 380px;
    margin-left: auto;
    background: #202329;
    border: 1px solid #2d3139;
    border-radius: 8px;
    overflow: hidden;
}
.search-form input {
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 11px 16px;
    min-width: 0;
    width: 100%;
    font-size: 14px;
}
.search-form button {
    background: transparent;
    border: 0;
    font-size: 28px;
    width: 52px;
}
.history-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #d4d6dc;
}
.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.nav {
    display: flex;
    gap: 34px;
    min-height: 54px;
    align-items: stretch;
}
.nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b6bac4;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    font-size: 15px;
}
.nav a:hover, .nav a.active {
    color: var(--accent);
    border-color: var(--accent);
}
.hero {
    height: clamp(440px, 40vw, 550px);
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #1c242a;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.hero-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-position: center 40%;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7,12,18,.97), rgba(7,12,18,.74) 40%, rgba(7,12,18,.03) 80%), linear-gradient(0deg, rgba(7,12,18,.8), transparent 50%);
}
.hero-copy {
    position: absolute;
    left: 5%;
    top: 12%;
    max-width: 510px;
    width: 65%;
}
.hero-label, .eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--accent);
}
.hero-label {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid #8ca044;
    border-radius: 4px;
    background: #242e2080;
    margin-bottom: 20px;
}
.hero-kicker {
    font-size: 13px;
    color: #b9c2c9;
    letter-spacing: 2px;
}
.hero h2 {
    font-size: clamp(34px, 4vw, 57px);
    line-height: 1.4;
    margin-top: 5px;
    font-weight: 800;
    letter-spacing: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hero-tagline {
    font-size: 18px;
    margin-top: 7px;
    color: #e2e5e8;
}
.hero-desc {
    margin-top: 13px;
    color: #aeb6c1;
    font-size: 14px;
    max-width: 410px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 27px;
}
.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
.primary {
    background: var(--accent);
    color: #19220a;
}
.primary:hover {
    background: #e5ff8c;
}
.secondary {
    background: #ffffff12;
    border-color: #ffffff26;
}
.secondary:hover {
    background: #ffffff23;
}
.hero-controls {
    position: absolute;
    right: 35px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.hero-controls button {
    border: 0;
    background: #ffffff15;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.hero-dots {
    display: flex;
    gap: 7px;
}
.hero-dots .hero-dot {
    height: 5px;
    width: 17px;
    border-radius: 2px;
    padding: 0;
    background: #ffffff55;
}
.hero-dots .active {
    width: 34px;
    background: var(--accent);
}
.hero-counter {
    position: absolute;
    left: 5%;
    bottom: 30px;
    color: #c0c9d4;
    font-size: 13px;
    letter-spacing: 3px;
}
.discovery {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding: 25px 0;
}
.discovery h1 {
    font-size: 17px;
}
.discovery p {
    color: var(--muted);
    font-size: 14px;
}
.discovery > div {
    display: flex;
    margin-left: auto;
    gap: 26px;
    font-size: 14px;
    color: #d6d9df;
}
.content-section {
    margin: 42px 0 50px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}
.section-head h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}
.section-head .icon {
    color: var(--accent);
    width: 23px;
    height: 23px;
}
.section-head p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}
.more {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}
.more:hover {
    color: var(--accent);
}
.film-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 20px;
}
.film-card {
    min-width: 0;
}
.poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    background: linear-gradient(140deg, #25313e, #181d25);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.poster img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2 / 3;
    transition: transform .3s;
    font-size: 14px;
    color: #c1c5cd;
}
.film-card a:hover img {
    transform: scale(1.045);
}
.quality {
    position: absolute;
    right: 9px;
    top: 9px;
    background: #00000080;
    border: 1px solid #ffffff30;
    border-radius: 3px;
    font-size: 12px;
    padding: 0 6px;
}
.poster-status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: right;
    padding: 22px 10px 8px;
    font-size: 12px;
    background: linear-gradient(transparent, #000000d9);
}
.hover-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 60px;
    opacity: 0;
    background: #00000033;
    color: var(--accent);
}
.film-card a:hover .hover-play {
    opacity: 1;
}
.film-card h3 {
    font-size: 16px;
    line-height: 1.5;
    margin: 12px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meta, .card-desc {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-desc {
    margin-top: 3px;
    color: #747e8e;
}
.filter-grid .card-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 3.3em;
}
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
}
.rank-item {
    background: var(--surface);
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 13px;
    border-radius: 8px;
    min-width: 0;
}
.rank-number {
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
}
.rank-item img {
    width: 52px;
    height: 76px;
    border-radius: 4px;
}
.rank-item div {
    min-width: 0;
}
.rank-item h3 {
    font-size: 15px;
}
.rank-item p, .rank-item small {
    color: var(--muted);
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
}
.rank-arrow {
    color: var(--muted);
    margin-left: auto;
}
.editor-banner {
    position: relative;
    height: 275px;
    border-radius: 10px;
    overflow: hidden;
    background: #182622;
}
.editor-banner > div {
    position: relative;
    z-index: 2;
    padding: 35px 45px;
    background: linear-gradient(90deg, #132420, #132420fa 40%, transparent);
    height: 100%;
}
.editor-banner h2 {
    margin: 12px 0 8px;
    font-size: 32px;
}
.editor-banner p {
    color: #b0c2b8;
    font-size: 14px;
    margin-bottom: 21px;
}
.editor-banner img {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
}
.about-panel {
    margin: 50px 0;
    border-top: 1px solid var(--border);
    padding-top: 35px;
}
.about-panel h2 {
    margin: 10px 0 15px;
}
.about-panel p {
    color: var(--muted);
    max-width: 940px;
    line-height: 1.9;
    margin-bottom: 12px;
}
.mobile-panel {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 28px 35px;
    background: #1c2321;
    border: 1px solid #354138;
    border-radius: 10px;
    margin-top: 50px;
    margin-bottom: 42px;
}
.mobile-panel h2 {
    font-size: 23px;
    margin: 6px 0;
}
.mobile-panel p {
    font-size: 13px;
    color: var(--muted);
    max-width: 600px;
}
.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-left: auto;
    flex-shrink: 0;
}
.footer {
    border-top: 1px solid var(--border);
    padding: 33px 0 23px;
}
.footer-brand .brand {
    font-size: 21px;
}
.footer-brand p {
    color: var(--muted);
    font-size: 14px;
    margin: 12px 0 24px;
}
.footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    font-size: 14px;
    color: #c2c5cb;
}
.footer-bottom {
    margin-top: 29px;
    padding-top: 20px;
    border-top: 1px solid #24272e;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #78818e;
    gap: 10px;
}
.crumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
    margin: 23px 0;
}
.page-heading {
    margin: 35px 0;
}
.page-heading h1 {
    font-size: 38px;
    margin-bottom: 15px;
}
.page-heading p {
    max-width: 860px;
    color: #b6bdc8;
    line-height: 1.9;
}
.category-feature {
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
}
.category-feature a {
    display: grid;
    grid-template-columns: 37% 1fr;
}
.category-feature img {
    width: 100%;
    height: 250px;
}
.category-feature a > div {
    padding: 28px 35px;
}
.category-feature p {
    margin: 8px 0 13px;
    color: var(--muted);
}
.filterbar {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 28px;
}
.filter-options {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}
.filter {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 7px 17px;
    border-radius: 5px;
    font-size: 14px;
}
.filter.active {
    background: var(--accent);
    color: #1a210b;
    border-color: var(--accent);
}
.sort {
    padding: 9px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 5px;
}
.filterbar label {
    white-space: nowrap;
    font-size: 14px;
    color: var(--muted);
}
.result-count, .search-summary, .empty-message {
    margin: 30px 0;
    color: var(--muted);
    text-align: center;
}
.notice {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 30px;
    color: #b9c4ac;
}
.detail-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 42px;
    margin: 40px 0;
}
.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    height: auto;
    border-radius: 9px;
    background: var(--surface);
}
.detail-hero h1 {
    font-size: 40px;
    margin: 8px 0;
}
.detail-tagline {
    color: #bec5cf;
    font-size: 18px;
}
.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: 14px;
    gap: 10px 26px;
    margin: 23px 0;
}
.facts div {
    display: flex;
    gap: 12px;
}
.facts dt {
    color: var(--muted);
    flex-shrink: 0;
}
.facts dd {
    margin: 0;
}
.text-section {
    margin: 36px 0;
    padding: 28px;
    border-radius: 8px;
    background: var(--surface);
}
.text-section h2 {
    margin-bottom: 18px;
    font-size: 23px;
}
.text-section p {
    color: #b7bfcc;
    line-height: 1.9;
}
.episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.episode {
    padding: 10px 22px;
    background: #262c34;
    border-radius: 5px;
    border: 1px solid #343c48;
    font-size: 14px;
}
.episode:hover, .episode.selected {
    border-color: var(--accent);
    color: var(--accent);
}
.muted {
    color: var(--muted);
    font-size: 14px;
}
.stills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stills img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: #252c37;
}
.adjacent {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}
.article-page {
    min-height: 45vh;
}
.toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    background: var(--accent);
    color: #1a230b;
    padding: 13px 22px;
    border-radius: 8px;
    z-index: 50;
    display: none;
    width: max-content;
    max-width: 90%;
    box-shadow: 0 10px 40px #00000050;
}
.toast.visible {
    display: block;
}
.history-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}
.history-row a {
    color: var(--accent);
}
[hidden] {
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
