:root {
    color-scheme: dark;
    --bg: #0b1118;
    --surface: #121c26;
    --surface-raised: #1c2a35;
    --text: #f2f6fa;
    --muted: #9aaab9;
    --accent: #65e7b8;
    --line: #24323e;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

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

button,
input,
select {
    font: inherit;
}

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

button {
    cursor: pointer;
}

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

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

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

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

button {
    min-height: 42px;
}

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

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

h1,
h2,
h3 {
    line-height: 1.35;
}

h2 {
    font-size: 24px;
    font-weight: 650;
}

p {
    color: var(--muted);
}

.wrap {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
}

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

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

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: 1px;
}

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

.search {
    display: flex;
    max-width: 410px;
    width: 100%;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    overflow: hidden;
}

.search input {
    border: 0;
    background: transparent;
    padding: 9px 18px;
    min-width: 0;
    width: 100%;
    font-size: 14px;
}

.search button {
    border: 0;
    padding: 0 15px;
    background: transparent;
    color: var(--muted);
}

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

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

.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 13px 0 18px;
    border-bottom: 2px solid transparent;
    color: #bbc5d0;
}

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

.hero {
    margin-top: 28px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #142a35;
    aspect-ratio: 2.5;
}

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

.slide[hidden] {
    display: none;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #08131bf2 0%, #09141acd 33%, #08121a26 78%), linear-gradient(0deg, #08131bc9, transparent 50%);
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-position: center 35%;
    position: absolute;
    z-index: -2;
}

.hero-copy {
    padding: 46px 48px;
    max-width: 620px;
}

.eyebrow {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: clamp(34px, 4.5vw, 58px);
    margin-bottom: 14px;
    letter-spacing: 3px;
}

.hero-meta {
    font-size: 14px;
    color: #d7e4e8;
    margin-bottom: 18px;
}

.hero-meta span {
    color: #6b818d;
    margin: 0 5px;
}

.hero-summary {
    max-width: 450px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #b7c7cd;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    background: var(--accent);
    border: 1px solid transparent;
    color: #06291e;
    white-space: nowrap;
}

.button:hover {
    color: #06291e;
    background: #91f4d1;
}

.button.secondary {
    color: var(--text);
    background: #263743ba;
    border-color: #ffffff12;
}

.button.secondary:hover {
    background: #344b5c;
}

.slider-controls {
    position: absolute;
    bottom: 24px;
    right: 34px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.slider-controls > button {
    background: #0b161ab0;
    border: 1px solid #ffffff30;
    width: 38px;
    min-height: 38px;
    border-radius: 50%;
    font-size: 22px;
}

.slider-controls .slide-pause {
    font-size: 14px;
}

.dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 24px;
    min-height: 38px;
    position: relative;
    border: 0;
    background: transparent;
}

.dot::after {
    content: "";
    display: block;
    height: 4px;
    background: #ffffff60;
    border-radius: 4px;
}

.dot.active::after {
    background: var(--accent);
}

.hero-number {
    position: absolute;
    bottom: 24px;
    left: 48px;
    font-size: 13px;
    color: #adc1cb;
    letter-spacing: 3px;
}

.quick-discover {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    align-items: center;
    gap: 25px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 25px 30px;
    margin-top: 22px;
    border-radius: 12px;
}

.quick-discover .eyebrow {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: 0;
}

.quick-discover p {
    margin: 0;
    font-size: 13px;
}

.quick-discover a {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.quick-discover .icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.quick-discover small {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.shelf {
    margin: 46px 0;
}

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

.section-heading h2 {
    margin: 0;
    display: flex;
    gap: 11px;
    align-items: center;
}

.section-heading h2 .icon {
    color: var(--accent);
}

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

.text-button {
    color: var(--accent);
}

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

.grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
    min-width: 0;
}

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

.poster img {
    width: 100%;
    height: 100%;
    transition: transform .35s ease;
}

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

.quality,
.state {
    position: absolute;
    font-size: 12px;
    z-index: 1;
}

.quality {
    top: 10px;
    right: 9px;
    padding: 2px 6px;
    background: #0d1720ba;
    color: #e6ecef;
    border-radius: 4px;
}

.state {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 30px 12px 10px;
    text-align: right;
    background: linear-gradient(transparent, #08121af0);
    color: #e2e9ed;
}

.poster-play {
    opacity: 0;
    position: absolute;
    top: 45%;
    left: 40%;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: #082d20;
    background: var(--accent);
    transition: opacity .2s;
}

.card:hover .poster-play {
    opacity: 1;
}

.card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 13px 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meta {
    font-size: 13px;
    margin-bottom: 6px;
}

.meta span {
    float: right;
    color: var(--accent);
    font-weight: 650;
}

.card-summary {
    font-size: 13px;
    line-height: 1.7;
    height: 3.4em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: #142a2d;
    border-radius: 14px;
    overflow: hidden;
    margin: 52px 0;
    align-items: center;
}

.feature-band > div {
    padding: 35px 0 35px 36px;
}

.feature-band h2 {
    font-size: 32px;
}

.feature-band > a {
    position: relative;
}

.feature-band img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.feature-band a > span {
    position: absolute;
    bottom: 14px;
    left: 20px;
    padding: 5px 12px;
    background: #061311c9;
    border-radius: 5px;
    font-size: 14px;
}

.ranking-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1fr 2.4fr;
    gap: 30px;
    padding: 35px;
    margin: 52px 0;
}

.ranking-section h2 .icon {
    margin-right: 8px;
    color: var(--accent);
}

.rank-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-list li {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
}

.rank-number {
    font-size: 26px;
    font-style: italic;
    color: var(--accent);
    font-weight: 750;
}

.rank-list p {
    font-size: 13px;
    margin: 3px 0 0;
}

.rank-list strong {
    margin-left: auto;
    color: #e8c38a;
    text-align: right;
}

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

.rank-grid {
    counter-reset: selection;
}

.rank-grid .card {
    counter-increment: selection;
    position: relative;
    padding-top: 46px;
}

.rank-grid .card::before {
    content: counter(selection, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    font-size: 29px;
    font-style: italic;
    font-weight: 750;
    color: var(--accent);
}

.about-home {
    padding: 38px 0;
    border-top: 1px solid var(--line);
    max-width: 920px;
}

.mobile-promo {
    display: flex;
    gap: 24px;
    align-items: center;
    background: #142630;
    border: 1px solid #28413e;
    border-radius: 13px;
    padding: 28px 32px;
    margin-top: 30px;
    margin-bottom: 38px;
}

.mobile-brand {
    border: 1px solid #386654;
    background: #1c3d36;
    border-radius: 18px;
    padding: 22px;
}

.mobile-brand .icon {
    width: 38px;
    height: 38px;
    color: var(--accent);
}

.mobile-promo .eyebrow {
    margin-bottom: 6px;
}

.mobile-promo h2 {
    margin-bottom: 8px;
}

.mobile-promo p {
    font-size: 14px;
    margin: 0;
}

.promo-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 320px;
    justify-content: flex-end;
}

.promo-actions .subscription-status {
    width: 100%;
    font-size: 12px;
    text-align: right;
}

footer {
    padding: 0 0 25px;
}

footer .brand {
    font-size: 21px;
    margin-bottom: 15px;
}

footer p {
    max-width: 850px;
    font-size: 14px;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 25px;
    color: #b7c2cd;
    font-size: 14px;
    margin: 24px 0;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    font-size: 12px;
    color: #92a0af;
}

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

.page-intro {
    margin: 38px 0 28px;
}

.page-intro h1,
.document-page h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

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

.category-feature {
    border-left: 3px solid var(--accent);
    padding: 25px 30px;
    background: var(--surface);
    border-radius: 0 12px 12px 0;
    max-width: 950px;
}

.category-feature .eyebrow {
    margin-bottom: 8px;
}

.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
    padding: 18px;
    background: var(--surface);
    border-radius: 10px;
    font-size: 14px;
}

.filter-bar > span {
    color: var(--muted);
    margin-right: 8px;
}

.filter {
    padding: 5px 13px;
    background: transparent;
    border-color: transparent;
    min-height: 34px;
}

.filter.active {
    color: var(--accent);
    background: #65e7b818;
}

.filter-bar label {
    margin-left: auto;
    color: var(--muted);
}

.filter-bar select {
    padding: 6px;
    margin-left: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
    margin: 35px 0;
}

.pagination [aria-current] {
    padding: 6px 16px;
    border-radius: 8px;
    background: var(--surface-raised);
    color: var(--accent);
}

.detail-hero {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    padding: 25px 0;
}

.detail-copy h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.alias {
    font-size: 14px;
    letter-spacing: 1px;
}

.detail-score {
    font-size: 25px;
    color: var(--accent);
    margin-bottom: 18px;
}

.detail-score span {
    font-size: 13px;
    color: var(--muted);
    margin-left: 10px;
}

dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 25px;
    font-size: 14px;
}

dl > div {
    display: flex;
    gap: 15px;
}

dt {
    color: var(--muted);
    white-space: nowrap;
}

dd {
    margin: 0;
}

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

.episode {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
}

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

.synopsis {
    margin: 40px 0;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

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

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

.subtle,
.save-status,
.result-count {
    font-size: 14px;
    color: var(--muted);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.prev-next span {
    color: var(--muted);
}

.document-page {
    max-width: 850px;
    padding: 60px 0;
    min-height: 440px;
}

.document-page p {
    line-height: 2;
    margin-bottom: 30px;
}

.local-list {
    list-style: none;
    padding: 0;
}

.local-list li {
    padding: 18px;
    margin: 10px 0;
    background: var(--surface);
    border-radius: 8px;
}

.empty-message {
    padding: 40px;
    text-align: center;
    background: var(--surface);
    border-radius: 10px;
}

.image-failed {
    opacity: .6;
}

[hidden] {
    display: none !important;
}

.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;
}
