:root {
    color-scheme: dark;
    --background: #101216;
    --surface: #191c22;
    --surface-raised: #22262e;
    --line: #2c3038;
    --text: #f4f5f7;
    --muted: #a0a5b0;
    --accent: #edff67;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button {
    color: inherit;
}

button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

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

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

h1,
h2,
h3,
p {
    margin: 0;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(1376px, calc(100% - 80px));
    margin-inline: auto;
}

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

.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: absolute;
    top: -100px;
    left: 20px;
    background: var(--accent);
    color: #101216;
    padding: 12px 20px;
    z-index: 100;
}

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

.site-header {
    background: #101216;
    border-bottom: 1px solid #ffffff0d;
}

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

.brand-heading {
    position: absolute;
    margin: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.brand img {
    object-fit: contain;
}

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

.search-form {
    margin-left: auto;
    display: flex;
    width: min(370px, 32vw);
    border: 1px solid #32363f;
    border-radius: 30px;
    background: #1c1f25;
    height: 44px;
}

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

.search-form input:focus-visible {
    outline-offset: 0;
    border-radius: 24px;
}

.search-form button {
    background: transparent;
    border: 0;
    width: 48px;
    flex-shrink: 0;
    color: #d5d8e0;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bcc0c8;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 58px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 15px 0 18px;
    color: #b6bac3;
    font-size: 15px;
}

.nav-link .icon {
    width: 17px;
    height: 17px;
}

.nav-link.active {
    color: var(--accent);
    font-weight: 650;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    height: 3px;
    border-radius: 3px;
    bottom: 0;
    left: 22px;
    right: 0;
    background: var(--accent);
}

.hero {
    position: relative;
    margin-top: 26px;
    min-height: 480px;
    aspect-ratio: 2.55;
    border-radius: 16px;
    isolation: isolate;
    overflow: hidden;
    background: #20232a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 550ms ease, visibility 550ms;
    pointer-events: none;
}

.hero-slide.current {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-position: center 40%;
    aspect-ratio: 16 / 9;
}

.hero-shade {
    background: linear-gradient(90deg, #080c12ed 0%, #0a0e13cb 30%, #10121624 76%), linear-gradient(0deg, #070a1099, transparent 55%);
}

.hero-copy {
    position: relative;
    width: min(620px, 70%);
    padding: 48px 0 70px 48px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.7px;
}

.hero-copy h2 {
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 750;
    line-height: 1.3;
    margin: 18px 0 8px;
    letter-spacing: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-meta {
    font-size: 14px;
    color: #d2d5dc;
    letter-spacing: 1px;
}

.hero-meta span {
    display: block;
    margin-top: 12px;
    color: #c1c6ce;
    letter-spacing: 0;
}

.hero-summary {
    margin-top: 18px;
    max-width: 430px;
    color: #c4c8cf;
    font-size: 15px;
    line-height: 1.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    border: 1px solid transparent;
    padding: 11px 24px;
    min-height: 46px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 150ms;
}

.primary {
    background: var(--accent);
    color: #171c09;
}

.primary:hover {
    color: #101216;
    background: #f3ff9a;
}

.secondary {
    background: #262a32;
    border-color: #353a45;
}

.secondary:hover:not(:disabled) {
    background: #363b45;
}

.translucent {
    background: #ffffff15;
    border-color: #ffffff36;
    backdrop-filter: blur(10px);
}

.hero-pagination {
    position: absolute;
    left: 48px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 3;
}

.hero-pagination button {
    border: 0;
    background: #ffffff12;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dots .hero-dot {
    height: 6px;
    width: 6px;
    min-width: 6px;
    padding: 0;
    background: #ffffff55;
}

.hero-dots .hero-dot.active {
    width: 24px;
    border-radius: 6px;
    background: var(--accent);
}

.slide-count {
    font-size: 12px;
    color: #bcc3cd;
    letter-spacing: 2px;
}

.hero-side-label {
    position: absolute;
    right: 28px;
    bottom: 28px;
    color: #ffffff99;
    font-size: 12px;
    letter-spacing: 3px;
}

.quick-discover {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0 44px;
}

.quick-discover a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 10px;
    background: #1b1e24;
    border: 1px solid #ffffff05;
    font-size: 16px;
    font-weight: 600;
}

.quick-discover a > .icon:first-child {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.quick-discover a > .icon:last-child {
    margin-left: auto;
    width: 16px;
    color: #656b76;
}

.quick-discover small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}

.content-section {
    margin: 44px 0 50px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-heading h2,
.synopsis h2,
.episode-section h2 {
    font-size: 24px;
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

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

.section-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.more,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c3c8d2;
    font-size: 14px;
}

.more {
    white-space: nowrap;
}

.more .icon,
.text-link .icon {
    width: 16px;
}

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

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

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    background: #292e38;
    overflow: hidden;
    border-radius: 10px;
    isolation: isolate;
}

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

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

.quality {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 4px;
    background: #11161ad9;
    padding: 2px 6px;
    font-size: 12px;
    color: #fff;
}

.poster-state {
    position: absolute;
    z-index: 1;
    right: 10px;
    bottom: 9px;
    left: 10px;
    text-align: right;
    color: #edf0f5;
    font-size: 12px;
}

.play-hover {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    display: grid;
    place-items: center;
    color: #14180b;
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 180ms, transform 180ms;
}

.card-link:hover img {
    transform: scale(1.035);
}

.card-link:hover .play-hover,
.card-link:focus-visible .play-hover {
    opacity: 1;
    transform: translate(-50%, -50%);
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    color: #989faa;
    font-size: 12px;
    margin-top: 4px;
}

.card-meta span {
    color: #777f8b;
    white-space: nowrap;
}

.card-summary {
    color: #959ca8;
    font-size: 13px;
    margin-top: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

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

.ranking-panel {
    padding: 24px;
    border-radius: 12px;
    background: #1a1e25;
    border-top: 2px solid #777f39;
}

.ranking-panel:nth-child(2) {
    border-top-color: #566c86;
}

.ranking-panel:nth-child(3) {
    border-top-color: #795f88;
}

.ranking-panel h3 {
    font-size: 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ranking-panel h3 .icon {
    color: #828a55;
}

.ranking-panel ol {
    padding: 8px 0 0;
    margin: 0;
    list-style: none;
}

.ranking-panel li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #ffffff08;
    min-width: 0;
}

.ranking-panel li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rank-no {
    color: #6e7786;
    font-size: 25px;
    font-style: italic;
    font-family: Georgia, serif;
    font-weight: 700;
    flex-shrink: 0;
}

.ranking-panel li:first-child .rank-no {
    color: var(--accent);
}

.ranking-panel li a {
    min-width: 0;
}

.ranking-panel strong {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
}

.ranking-panel small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.rank-score {
    margin-left: auto;
    color: #cfd6a2;
    font-family: Georgia, serif;
    font-size: 20px;
}

.editorial-banner {
    position: relative;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 4.8;
    border-radius: 12px;
    overflow: hidden;
    margin: 50px 0;
    isolation: isolate;
    background: #213132;
}

.editorial-banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.editorial-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #0b2024ef, #091b2280 60%, #091b2222);
}

.editorial-banner > div {
    padding: 34px 40px;
}

.editorial-banner h2 {
    margin: 10px 0 8px;
    font-size: 32px;
}

.editorial-banner p:not(.eyebrow) {
    color: #c6d4d7;
    font-size: 15px;
}

.editorial-banner .button {
    margin-top: 22px;
}

.about-strip {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    margin: 65px 0;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-strip h2 {
    font-size: 26px;
    margin-top: 12px;
}

.about-strip > div:last-child p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 16px;
}

.mobile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 34px 40px;
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 14px;
    background: #23281e;
    border: 1px solid #3a422c;
}

.app-mark {
    flex: 0 0 90px;
    object-fit: contain;
}

.mobile-section h2 {
    font-size: 26px;
    margin: 6px 0 8px;
}

.mobile-section p:not(.eyebrow) {
    color: #b8c0ae;
    font-size: 14px;
}

.mobile-section small {
    display: block;
    font-size: 12px;
    color: #9da88f;
    margin-top: 8px;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin-left: auto;
    flex-shrink: 0;
}

.mobile-actions .text-link {
    justify-content: center;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #0c0e12;
    padding: 44px 0 0;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 36px;
}

.footer-main p {
    color: #8d94a0;
    font-size: 14px;
    margin-top: 20px;
}

.footer-main nav {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 15px 42px;
    font-size: 14px;
    color: #a3aab5;
}

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

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

.page-intro {
    padding: 10px 0 32px;
}

.page-intro h1 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 38px;
    margin: 10px 0;
}

.page-intro h1 .icon {
    color: var(--accent);
    width: 32px;
    height: 32px;
}

.page-intro > p:last-child {
    color: var(--muted);
    max-width: 850px;
}

.category-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 36px;
    padding: 24px;
    background: var(--surface);
    border-radius: 14px;
    align-items: center;
}

.category-feature img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #2d323c;
}

.category-feature h2 {
    font-size: 28px;
    margin: 10px 0;
}

.category-feature p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 18px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 28px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter {
    padding: 7px 17px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #bfc5cd;
    font-size: 14px;
}

.filter.active {
    background: var(--accent);
    color: #161b08;
}

.filter-bar label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.sort-select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: 6px;
}

.list-end {
    margin: 32px 0;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 22px;
    border-top: 1px solid var(--line);
}

.list-end a {
    color: var(--accent);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr) 200px;
    gap: 34px;
    margin: 10px 0 40px;
}

.detail-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    background: #292e38;
    border-radius: 12px;
}

.detail-info h1 {
    font-size: 36px;
    line-height: 1.35;
    margin: 10px 0 6px;
    overflow-wrap: anywhere;
}

.english-title {
    color: #8992a1;
    font-size: 15px;
}

.metadata {
    margin: 24px 0;
}

.metadata > div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    margin: 9px 0;
    font-size: 14px;
}

dt {
    color: #8b95a4;
}

dd {
    margin: 0;
    color: #d4d9e1;
    overflow-wrap: anywhere;
}

.detail-note {
    align-self: start;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.detail-note > span {
    display: block;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 54px;
    line-height: 1.2;
}

.detail-note strong {
    font-size: 14px;
    font-weight: 500;
}

.detail-note p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 14px;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}

.synopsis {
    margin: 34px 0;
    padding: 28px;
    background: var(--surface);
    border-radius: 12px;
}

.synopsis p {
    margin-top: 16px;
    color: #b8c0cc;
    line-height: 1.95;
}

.episode-section {
    margin: 40px 0;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.episode {
    background: #242933;
    padding: 12px 25px;
    border: 1px solid #303743;
    border-radius: 7px;
    font-size: 14px;
}

.episode.selected {
    color: #111606;
    background: var(--accent);
    border-color: var(--accent);
}

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

.stills-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #292e38;
    border-radius: 8px;
}

.previous-next {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    border-block: 1px solid var(--line);
    padding: 20px 0;
    color: var(--muted);
    font-size: 14px;
}

.prose {
    max-width: 920px;
    margin: 20px auto 60px;
}

.prose h1 {
    font-size: 38px;
    margin: 12px 0;
}

.prose .lead {
    color: #d2d9e4;
    font-size: 20px;
}

.prose section {
    margin-top: 32px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.prose h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.prose section p {
    color: #b2bdcb;
    line-height: 2;
}

.catalog-query {
    width: min(100%, 720px);
    background: var(--surface);
    color: var(--text);
    border: 1px solid #3b4351;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 18px;
}

.search-scope > .result-count {
    color: var(--muted);
    margin: 10px 0 24px;
}

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

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: #eaff90;
    color: #1a2310;
    padding: 12px 22px;
    border-radius: 8px;
    z-index: 100;
    box-shadow: 0 8px 30px #0009;
    max-width: calc(100% - 32px);
    font-size: 14px;
}

.image-unavailable {
    color: #d5dce8;
    background: #242c38;
    font-size: 14px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
