:root {
    color-scheme: dark;
    --background: #101215;
    --surface: #191c21;
    --surface-raised: #22262c;
    --line: #2d3138;
    --text: #f4f6f7;
    --muted: #a1a7b0;
    --accent: #5de0ae;
    --accent-dark: #092e22;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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.7;
    overflow-wrap: break-word;
}

button,
input,
select {
    font: inherit;
}

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

button,
a {
    touch-action: manipulation;
}

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

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

button {
    color: inherit;
    cursor: pointer;
}

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

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

img {
    object-fit: cover;
    background: #252a30;
    color: var(--muted);
    font-size: 14px;
}

svg {
    flex-shrink: 0;
}

[hidden] {
    display: none !important;
}

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

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

h2 {
    font-size: 25px;
    letter-spacing: .015em;
}

h3 {
    font-size: 17px;
}

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

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

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

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

.site-header {
    background: #101215;
    border-bottom: 1px solid #26292e;
}

.header-top {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: .035em;
    line-height: 1.1;
}

.brand small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #a1a7b0;
    letter-spacing: .19em;
    margin-top: 8px;
}

.logo-mark {
    width: 43px;
    height: 43px;
    background: transparent;
}

.search-form {
    display: flex;
    align-items: center;
    width: min(430px, 40%);
    border: 1px solid #353a42;
    background: #20242a;
    border-radius: 30px;
    overflow: hidden;
}

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

.search-form button {
    border: 0;
    background: transparent;
    padding: 12px 20px;
    color: var(--accent);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 26px;
}

.header-tools a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c0c5cb;
    font-size: 14px;
}

.main-nav {
    display: flex;
    gap: 38px;
    padding-top: 2px;
}

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

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

.main-nav .icon {
    width: 19px;
    height: 19px;
}

.hero {
    margin-top: 28px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1b222c;
}

.hero-slide {
    position: relative;
    min-height: 495px;
    isolation: isolate;
}

.hero-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    position: absolute;
    inset: 0;
    z-index: -3;
    object-position: center 35%;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(90deg, rgba(9, 17, 24, .97) 0%, rgba(9, 17, 24, .85) 27%, rgba(9, 17, 24, .35) 65%, rgba(9, 17, 24, .05)), linear-gradient(0deg, rgba(9, 17, 24, .78), transparent 40%);
}

.hero-copy {
    padding: 45px 55px 72px;
    width: min(660px, 64%);
}

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

.hero h2 {
    font-size: clamp(34px, 4vw, 60px);
    letter-spacing: .06em;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-tagline {
    font-size: 20px;
    color: #e1e4e9;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.chip {
    display: inline-block;
    padding: 2px 8px;
    color: var(--accent);
    border: 1px solid #5de0ae60;
    border-radius: 4px;
    background: #163a2e66;
    font-size: 12px;
}

.hero-summary {
    font-size: 14px;
    line-height: 1.85;
    color: #b7c0ca;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
    margin-bottom: 24px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

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

.primary {
    color: #09261d;
    background: var(--accent);
}

.primary:hover {
    color: #09261d;
    background: #8aefc9;
}

.subtle {
    color: var(--text);
    background: #ffffff13;
    border-color: #ffffff1e;
}

.subtle:hover {
    background: #ffffff20;
}

.hero-controls {
    position: absolute;
    right: 32px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.hero-controls button {
    display: grid;
    place-content: center;
    padding: 0;
    border: 1px solid #ffffff40;
    background: #10121580;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 21px;
}

.hero-controls .slide-pause {
    font-size: 12px;
}

.slide-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.slide-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    background: #ffffff60;
    border-radius: 4px;
}

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

.hero-index {
    position: absolute;
    left: 55px;
    bottom: 23px;
    color: #b3bbc5;
    letter-spacing: .1em;
    font-size: 12px;
}

.quick-discover {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
    background: #1a1e23;
    padding: 20px 12px;
    border-radius: 10px;
}

.quick-discover a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border-right: 1px solid #33373d;
}

.quick-discover a:last-child {
    border-right: 0;
}

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

.quick-discover strong,
.quick-discover small {
    display: block;
}

.quick-discover strong {
    font-size: 16px;
}

.quick-discover small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.shelf {
    margin-top: 48px;
    margin-bottom: 48px;
}

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

.section-heading h2,
.content-panel h2,
.page-head h1 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 0;
}

.section-heading h2 .icon,
.content-panel h2 .icon {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.section-heading p {
    font-size: 13px;
    margin: 8px 0 0;
}

.more {
    color: #a4abb4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    flex-shrink: 0;
}

.more .icon {
    width: 17px;
    height: 17px;
}

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

.card {
    min-width: 0;
}

.card a {
    display: block;
    height: 100%;
}

.poster {
    aspect-ratio: 2 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    background: #242a30;
}

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

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

.quality {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 8px;
    padding: 1px 6px;
    font-size: 12px;
    color: #f6f8fa;
    border: 1px solid #ffffff44;
    background: #111820ba;
    border-radius: 4px;
    letter-spacing: .04em;
}

.poster-status {
    position: absolute;
    z-index: 1;
    left: 10px;
    bottom: 8px;
    font-size: 12px;
    color: #e0e5ea;
}

.hover-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #0c2b1f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .2s;
}

.card:hover .hover-play,
.card:focus-within .hover-play {
    opacity: 1;
}

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

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

.card-meta {
    font-size: 12px;
    margin-bottom: 4px;
    min-height: 41px;
}

.card-meta span {
    display: block;
    color: #8d979f;
}

.card-tagline {
    margin: 0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8e969f;
}

.card-summary {
    display: none;
}

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

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

.rank-panel {
    border: 1px solid var(--line);
    background: linear-gradient(125deg, #252b2d, #191c21 65%);
    border-radius: var(--radius);
    padding: 24px;
}

.rank-panel h3 {
    margin-bottom: 18px;
    color: #edf4ee;
}

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

.rank-list li {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid #ffffff0c;
}

.rank-list li:last-child {
    border-bottom: 0;
}

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

.rank-list a {
    min-width: 0;
    flex: 1;
}

.rank-list strong {
    font-size: 14px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list small {
    color: #8f98a2;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.rank-score {
    color: #ecbf79;
    font: 600 18px Georgia, serif;
    text-align: right;
}

.rank-score small {
    font: 12px/1.4 "Microsoft YaHei", sans-serif;
}

.spotlight {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #142b35;
    isolation: isolate;
    min-height: 340px;
    margin-block: 56px;
}

.spotlight img {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    z-index: -2;
}

.spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0b2431f5, #0b2431b0 45%, #0b243120);
    z-index: -1;
}

.spotlight > div {
    padding: 40px 45px;
    max-width: 570px;
}

.spotlight h2 {
    font-size: 31px;
    line-height: 1.5;
    margin-bottom: 15px;
}

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

.update-strip {
    padding: 32px;
    background: #1c2226;
    border: 1px solid #303a3e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
}

.update-strip h2 {
    margin-bottom: 8px;
}

.update-strip p {
    margin-bottom: 0;
}

.update-strip .eyebrow {
    margin-bottom: 10px;
}

.about-strip {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 32px;
    border-top: 1px solid var(--line);
    padding-top: 35px;
    margin-bottom: 50px;
}

.about-strip h1 {
    font-size: 22px;
    margin: 0;
}

.about-strip p:not(.eyebrow) {
    font-size: 14px;
    margin: 0;
    line-height: 1.9;
}

.mobile-banner {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 32px 40px;
    border: 1px solid #35483e;
    border-radius: 14px;
    background: linear-gradient(110deg, #1d332a, #1c2324 60%);
    margin-top: 60px;
    margin-bottom: 50px;
}

.mobile-banner > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.mobile-banner h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.mobile-banner p {
    font-size: 13px;
    margin-bottom: 0;
}

.mobile-banner .eyebrow {
    margin-bottom: 8px;
}

.mobile-symbol {
    width: 70px;
    height: 90px;
    display: grid;
    place-items: center;
    border: 1px solid #5de0ae50;
    border-radius: 14px;
    transform: rotate(-7deg);
    background: #2b4638;
    color: var(--accent);
    flex-shrink: 0;
}

.mobile-symbol .icon {
    width: 39px;
    height: 39px;
}

.mobile-actions {
    display: grid;
    grid-template-columns: auto auto;
    gap: 10px;
}

.mobile-actions p {
    grid-column: 1 / -1;
    text-align: center;
}

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

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

.footer .brand {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer p {
    font-size: 13px;
    line-height: 1.9;
}

.footer h3 {
    font-size: 14px;
    margin: 0 0 16px;
}

.footer-main > div:not(:first-child) a {
    display: inline-block;
    width: 48%;
    margin-bottom: 9px;
    font-size: 13px;
    color: #9aA2ad;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 23px;
    border-top: 1px solid #23272b;
    font-size: 12px;
    color: #858e98;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #929ba6;
    padding-block: 27px;
}

.page-head {
    margin-top: 15px;
    margin-bottom: 32px;
}

.page-head h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

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

.page-head p:not(.eyebrow) {
    max-width: 920px;
    margin-bottom: 0;
}

.feature-recommend {
    background: linear-gradient(100deg, #24372f, #1d2329);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 28px;
    border: 1px solid #33443c;
}

.feature-recommend h2 {
    font-size: 23px;
    margin: 12px 0 10px;
}

.feature-recommend p {
    font-size: 14px;
    max-width: 800px;
}

.filter-panel {
    padding: 0 0 25px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 14px;
}

.filter-row > span:first-child,
.filter-row > label {
    color: #999faa;
    margin-right: 8px;
}

.filter-chip {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

.filter-chip.active {
    background: #1c4132;
    border-color: #347659;
    color: var(--accent);
}

select {
    background: #22272d;
    color: #e0e6e9;
    border: 1px solid #3e464e;
    border-radius: 5px;
    padding: 7px 12px;
    max-width: 100%;
}

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

.listing-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.catalog-search {
    width: min(680px, 100%);
    background: var(--surface-raised);
    border: 1px solid #414951;
    border-radius: 9px;
    color: #f5f5f5;
    padding: 14px 18px;
    margin-block: 24px 16px;
}

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

.detail-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 42px;
    align-items: start;
    margin-bottom: 40px;
}

.detail-copy h1 {
    font-size: 38px;
    margin-bottom: 10px;
}

.detail-tagline {
    font-size: 18px;
}

.metadata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 26px;
    font-size: 14px;
    margin: 22px 0 28px;
}

.metadata > div {
    display: flex;
    gap: 10px;
}

.metadata dt {
    color: #929ba6;
    flex-shrink: 0;
}

.metadata dd {
    color: #d1d7de;
    margin: 0;
}

.rights-note {
    font-size: 13px;
    margin-top: 16px;
    color: #b9c6bb;
}

.content-panel {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 28px;
}

.content-panel h2 {
    font-size: 22px;
    margin-bottom: 18px;
}

.content-panel > p:last-child {
    margin-bottom: 0;
}

.editor-note {
    color: #adbdb2;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    font-size: 14px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
}

.episode {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border: 1px solid #393f47;
    border-radius: 6px;
    background: #24292f;
    font-size: 14px;
}

.episode.active {
    background: #274d3c;
    color: var(--accent);
    border-color: #48876b;
}

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

.stills img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
}

.prose {
    max-width: 900px;
    margin-block: 18px 60px;
}

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

.prose h2 {
    font-size: 24px;
    margin-top: 32px;
}

.prose p {
    line-height: 2;
}

.small {
    font-size: 13px;
}

.image-unavailable {
    background: linear-gradient(145deg, #283e38, #1b242c);
}

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

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