:root {
    color-scheme: dark;
    --bg: #101113;
    --panel: #1a1c20;
    --panel-light: #23262b;
    --text: #f5f5f3;
    --muted: #a4a6ac;
    --line: #2b2e33;
    --accent: #f6d44b;
    --accent-text: #1b190d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

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

button,
input,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button,
input,
select {
    color: inherit;
}

button {
    border: 0;
}

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

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

img {
    display: block;
    object-fit: cover;
}

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

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

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

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

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

.brand-title {
    margin: 0;
    font-size: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.brand img {
    flex-shrink: 0;
}

.search-form {
    margin-left: auto;
    width: 340px;
    display: flex;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 30px;
}

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

.search-form button {
    background: transparent;
    padding: 10px 18px;
    color: var(--muted);
}

.history-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c4c5c9;
    font-size: 14px;
    white-space: nowrap;
}

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

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    min-height: 58px;
    color: #b7b9bf;
    font-size: 15px;
    border-bottom: 3px solid transparent;
}

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

.nav a:hover,
.more:hover,
.film-card h3 a:hover {
    color: var(--accent);
}

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

.nav .new-link {
    margin-left: auto;
    font-size: 14px;
}

.hero {
    position: relative;
    margin-top: 28px;
    border-radius: 16px;
    overflow: hidden;
    background: #202b35;
    min-height: 450px;
    aspect-ratio: 2.55;
}

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

[hidden] {
    display: none !important;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 13, 20, .97) 0%, rgba(8, 13, 20, .78) 34%, rgba(8, 13, 20, .15) 78%), linear-gradient(0deg, rgba(8, 13, 20, .85), transparent 45%);
}

.hero-content {
    position: absolute;
    z-index: 1;
    left: 5%;
    top: 12%;
    width: 48%;
}

.hero-kicker,
.eyebrow {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.hero-kicker {
    display: inline-block;
    padding: 5px 11px;
    background: #f6d44b18;
    border: 1px solid #f6d44b40;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: clamp(32px, 4.3vw, 62px);
    letter-spacing: 3px;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
    color: #dddfe3;
    margin-bottom: 12px;
}

.hero-meta b {
    font-weight: 400;
    color: var(--accent);
}

.hero-summary {
    max-width: 500px;
    color: #c2c7ce;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 25px;
    font-size: 15px;
}

.hero-actions,
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 24px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    transition: background .18s, transform .18s;
}

.button:hover {
    transform: translateY(-2px);
}

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

.primary .icon {
    fill: currentColor;
    width: 17px;
}

.glass {
    background: #ffffff1c;
    border: 1px solid #ffffff30;
}

.secondary {
    background: var(--panel-light);
    border: 1px solid #3b3e44;
}

.light {
    color: #1a1a19;
    background: #f1f0e8;
}

.hero-bottom {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    left: 5%;
    right: 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.hero-dot {
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background: #ffffff55;
}

.hero-dot.active {
    width: 27px;
    background: var(--accent);
}

.hero-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff14;
    border: 1px solid #ffffff25;
    font-size: 21px;
    line-height: 1;
}

.hero-controls .autoplay {
    font-size: 13px;
}

.slide-count {
    margin-right: 12px;
    color: #d1d5dc;
    font-size: 13px;
    letter-spacing: 2px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 23px;
    background: var(--panel);
    border-radius: 10px;
    padding: 23px 0;
}

.quick-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #35373a;
    font-size: 15px;
}

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

.quick-links .icon {
    color: var(--accent);
}

.quick-links span {
    font-size: 12px;
    color: var(--muted);
}

.content-section {
    margin: 52px 0;
}

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

.section-head h2,
.synopsis h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    margin: 0 0 6px;
    letter-spacing: .3px;
}

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

.section-head p {
    color: var(--muted);
    margin-bottom: 0;
    font-size: 14px;
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b6b9bf;
    font-size: 14px;
    white-space: nowrap;
}

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

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

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

.poster img {
    width: 100%;
    height: 100%;
    transition: transform .3s;
    color: #aeb0b6;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(transparent, #000b);
}

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

.quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #13171bcb;
    border: 1px solid #ffffff30;
    font-size: 12px;
    padding: 1px 7px;
    border-radius: 4px;
}

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

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .2s;
    background: #0004;
}

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

.poster-play .icon {
    width: 48px;
    height: 48px;
    padding: 14px;
    fill: currentColor;
    color: #14140b;
    background: var(--accent);
    border-radius: 50%;
}

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

.card-meta {
    color: var(--muted);
    display: flex;
    gap: 6px;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
}

.card-summary {
    color: #b1b3b9;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 46px;
    margin: 8px 0 0;
}

.editorial {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    background: #192229;
    border: 1px solid #303d45;
    border-radius: 14px;
    padding: 42px;
    margin: 58px 0;
    align-items: center;
}

.editorial h2 {
    font-size: 33px;
    line-height: 1.5;
    margin-bottom: 18px;
}

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

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

.editorial-posters img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 5px;
    box-shadow: 0 15px 24px #0004;
}

.editorial-posters span {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

.rank-section {
    padding: 30px;
    background: #1a1b1e;
    border: 1px solid var(--line);
    border-radius: 12px;
}

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

.rank-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 13px;
}

.rank-item strong,
.ranking-row strong {
    color: var(--accent);
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
    flex-shrink: 0;
}

.rank-item img {
    width: 54px;
    height: 81px;
    border-radius: 4px;
}

.rank-item div {
    min-width: 0;
}

.rank-item h3 {
    font-size: 16px;
    margin: 0 0 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-item p,
.rank-item span {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.rank-item > .icon {
    margin-left: auto;
    color: #676a71;
}

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

.about-home h2 {
    font-size: 29px;
}

.about-home > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.9;
}

.mobile-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 27px;
    border: 1px solid #49452d;
    border-radius: 12px;
    padding: 35px;
    background: #26251c;
    margin-top: 25px;
    margin-bottom: 65px;
}

.mobile-section h2 {
    font-size: 27px;
    margin-bottom: 9px;
}

.mobile-section p {
    margin-bottom: 9px;
    font-size: 14px;
    color: #d1d0c5;
}

.mobile-section .eyebrow {
    color: var(--accent);
    font-size: 12px;
}

.mobile-section small {
    font-size: 12px;
    color: #b7b3a0;
}

.app-icon {
    flex-shrink: 0;
    border-radius: 18px;
}

.mobile-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.subscription-status:empty {
    display: none;
}

.subscription-status {
    position: absolute;
    bottom: 3px;
    right: 35px;
}

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

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

.site-footer .brand {
    font-size: 21px;
}

.site-footer p {
    color: #92969f;
    font-size: 14px;
    margin-top: 18px;
}

.footer-top nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 25px;
    align-content: start;
    color: #a7aab1;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #22252a;
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: #858994;
}

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

.page-heading {
    margin: 20px 0 32px;
}

.page-heading h1 {
    font-size: 40px;
    margin: 0 0 15px;
}

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

.category-pick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 38px;
}

.category-pick > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: 100%;
    min-height: 270px;
}

.category-pick > div {
    padding: 30px 38px;
}

.category-pick h2 {
    margin: 10px 0 12px;
    font-size: 29px;
}

.category-pick p {
    font-size: 15px;
    color: #b0b4bc;
}

.filter-bar {
    background: var(--panel);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.filter-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

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

.filter-options button {
    background: transparent;
    padding: 7px 15px;
    border-radius: 5px;
}

.filter-options button.active {
    background: var(--accent);
    color: #201e10;
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: var(--muted);
}

select {
    background: #282b31;
    border: 1px solid #3d4046;
    border-radius: 4px;
    padding: 7px 10px;
    max-width: 100%;
}

.list-end {
    text-align: center;
    color: #92969f;
    margin: 40px 0;
    font-size: 14px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 45px;
    padding: 25px 0 40px;
    border-bottom: 1px solid var(--line);
}

.detail-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    background: #24272c;
}

.detail-info h1 {
    font-size: 40px;
    margin: 0 0 10px;
}

.alias {
    color: #9398a1;
    font-size: 15px;
}

.detail-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-tags span,
.pill {
    display: inline-block;
    background: #2a2d30;
    color: #d9d9d8;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

.detail-info dl {
    font-size: 14px;
    margin: 22px 0;
    color: #c7cad0;
}

.detail-info dl div {
    display: flex;
    gap: 20px;
    margin: 7px 0;
}

.detail-info dt {
    min-width: 80px;
    color: var(--muted);
}

.detail-info dd {
    margin: 0;
}

.detail-info > p:not(.eyebrow):not(.alias) {
    color: #c2c5cb;
    max-width: 830px;
}

.episode-section {
    margin: 35px 0;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 26px;
    border-radius: 10px;
}

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

.episode {
    border: 1px solid #42454a;
    background: #25272c;
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 14px;
}

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

.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: 8px;
    background: #282a30;
}

.synopsis p {
    color: #b9bdc4;
    line-height: 1.95;
}

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

.adjacent > span {
    color: #848892;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.ranking-row:nth-child(odd) {
    background: var(--panel);
}

.ranking-row img {
    width: 70px;
    height: 105px;
    border-radius: 5px;
}

.ranking-row div {
    flex: 1;
    min-width: 0;
}

.ranking-row h3 {
    margin: 0 0 8px;
}

.ranking-row p {
    font-size: 14px;
    color: #a9adb5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-row div span {
    font-size: 12px;
    color: var(--muted);
}

.search-page-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    background: var(--panel);
    border: 1px solid #41454c;
    padding: 11px 15px;
    border-radius: 6px;
}

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

.prose {
    max-width: 850px;
    padding: 35px 0 65px;
    min-height: 500px;
}

.prose h1 {
    font-size: 40px;
}

.prose h2 {
    font-size: 26px;
}

.prose > p:not(.eyebrow) {
    color: #bfc2c9;
    line-height: 2;
    margin-bottom: 24px;
}

.personal-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    margin-bottom: 10px;
    background: var(--panel);
    border-radius: 6px;
}

.personal-list p {
    color: var(--muted);
    padding: 30px 0;
}

.toast {
    position: fixed;
    z-index: 20;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #f6d44b;
    color: #201d10;
    padding: 12px 22px;
    border-radius: 8px;
    box-shadow: 0 6px 40px #0007;
    width: max-content;
    max-width: calc(100% - 32px);
    font-size: 14px;
}

.toast:empty {
    display: none;
}
