:root {
    color-scheme: dark;
    --background: #101113;
    --surface: #191b1e;
    --surface-raised: #232529;
    --foreground: #f4f4f2;
    --muted: #999b9f;
    --accent: #efc75e;
    --border: #2a2c30;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    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,
select {
    cursor: pointer;
}

button {
    color: inherit;
    border: 0;
    background: transparent;
}

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

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

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

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

h2 {
    font-size: 26px;
    line-height: 1.4;
    font-weight: 650;
}

h3 {
    font-size: 17px;
    line-height: 1.5;
}

[hidden] {
    display: none !important;
}

.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;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

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

.brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.7px;
    margin: 0;
    flex-shrink: 0;
}

.brand a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    object-fit: contain;
}

.search-form {
    display: flex;
    align-items: center;
    background: #252629;
    border: 1px solid #303136;
    border-radius: 24px;
    width: 370px;
    margin-left: auto;
}

.search-form input {
    min-width: 0;
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--foreground);
    padding: 10px 0 10px 20px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 16px;
}

.header-actions {
    display: flex;
    gap: 24px;
    color: #b8b9bb;
    font-size: 14px;
}

.header-actions a {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
}

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

.navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #bfc0c3;
    white-space: nowrap;
    padding: 15px 0;
    position: relative;
}

.navigation a.active,
.navigation a:hover {
    color: var(--accent);
}

.navigation a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
}

.hero {
    width: min(1400px, calc(100% - 32px));
    margin: 20px auto 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #20232a;
}

.slides {
    position: relative;
    aspect-ratio: 2.45;
    min-height: 450px;
}

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

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% 45%;
    opacity: 0.78;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #12161deb 0%, #12161dad 34%, #12161d10 78%), linear-gradient(0deg, #111317 0%, transparent 60%);
}

.hero-copy {
    position: relative;
    padding: 62px 56px 90px;
    max-width: 700px;
}

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

.small-line {
    display: inline-block;
    width: 25px;
    height: 1px;
    background: currentColor;
}

.hero-copy h2 {
    margin: 15px 0;
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: 3px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.outline-tag {
    border: 1px solid #b6bdc173;
    padding: 0 8px;
    border-radius: 3px;
}

.hero-copy h3 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-description {
    color: #bbbfc7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 515px;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 28px;
}

.button {
    min-height: 45px;
    padding: 11px 23px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 650;
    transition: background 160ms, transform 160ms;
}

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

.primary:hover {
    background: #ffda7c;
    color: #17130b;
    transform: translateY(-1px);
}

.secondary {
    background: #ffffff13;
    border: 1px solid #ffffff24;
    color: #eee;
}

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

.hero-bottom {
    position: absolute;
    bottom: 25px;
    left: 56px;
    right: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #949aa5;
    font-size: 12px;
}

.slide-count {
    font-size: 24px;
    color: #eee;
    font-weight: 600;
}

.hero-divider {
    background: #ffffff33;
    height: 1px;
    width: 52px;
    margin-inline: 5px;
}

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

.slider-controls > button {
    width: 34px;
    height: 34px;
    border: 1px solid #ffffff2a;
    border-radius: 50%;
    font-size: 22px;
    display: grid;
    place-content: center;
}

.slider-controls > button[data-pause] {
    font-size: 14px;
}

.dots button {
    padding: 0;
    width: 7px;
    height: 7px;
    border-radius: 8px;
    background: #ffffff50;
}

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

.discovery-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-block: 30px 44px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}

.discovery-strip > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 30px;
    border-right: 1px solid var(--border);
}

.discovery-strip .eyebrow {
    color: #7e8187;
    font-size: 12px;
    letter-spacing: 0.8px;
}

.discovery-strip strong {
    font-size: 17px;
    font-weight: 500;
}

.discovery-strip > a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccdd0;
    font-size: 14px;
    white-space: nowrap;
}

.discovery-strip .icon {
    color: var(--accent);
    width: 23px;
    height: 23px;
}

.content-section {
    margin-bottom: 55px;
}

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

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

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

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

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

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

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

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

.poster img {
    width: 100%;
    height: 100%;
    transition: transform 300ms;
}

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

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

.quality {
    top: 10px;
    right: 10px;
    background: #0008;
    padding: 1px 7px;
    border: 1px solid #ffffff29;
    border-radius: 4px;
    color: #eee;
    font-weight: 600;
}

.poster-state {
    right: 11px;
    bottom: 10px;
    color: #f1f1f1;
}

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

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

.poster:hover .hover-play,
.poster:focus-visible .hover-play {
    opacity: 1;
}

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

.card-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #90939a;
    margin-bottom: 4px;
}

.tagline {
    font-size: 13px;
    color: #a5a7ad;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-summary {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.7;
    height: 4.8em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
}

.editorial-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 58px;
}

.editorial-card {
    position: relative;
    background: #20242b;
    border-radius: 12px;
    overflow: hidden;
    min-height: 240px;
}

.editorial-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0.6;
}

.editorial-card > div {
    position: relative;
    padding: 30px;
    background: linear-gradient(90deg, #121519ed, #12151925);
    min-height: 240px;
}

.editorial-card h2 {
    font-size: 27px;
    margin: 13px 0 9px;
}

.editorial-card p {
    font-size: 14px;
    color: #c0c0c3;
}

.editorial-card a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
}

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

.rank-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    background: linear-gradient(145deg, #242420 0%, #191b1e 45%);
}

.rank-panel > h3 {
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ffffff12;
    margin: 0;
}

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

.rank-list li {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 17px 0 0;
    min-width: 0;
}

.rank-list li > a:not(.rank-play) {
    flex: 1;
    min-width: 0;
}

.rank-number {
    font-size: 27px;
    font-weight: 700;
    font-style: italic;
    color: #74777e;
    font-family: Georgia, serif;
    width: 34px;
}

.rank-list li:nth-child(-n+3) .rank-number {
    color: var(--accent);
}

.rank-list h3 {
    font-size: 15px;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-play {
    color: #7c7e84;
}

.wide-feature {
    min-height: 330px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #272926;
    margin-bottom: 55px;
}

.wide-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.wide-feature > div {
    position: relative;
    min-height: 330px;
    padding: 40px;
    background: linear-gradient(90deg, #101617e8, #10161710);
}

.wide-feature h2 {
    font-size: 32px;
    margin: 16px 0;
}

.wide-feature p {
    color: #c4c7c8;
    font-size: 14px;
}

.update-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 34px;
}

.update-list article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.update-list article > span:last-child {
    margin-left: auto;
    color: var(--muted);
}

.update-label {
    color: var(--accent);
    border: 1px solid #efc75e40;
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 12px;
    white-space: nowrap;
}

.about-block {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 55px 12%;
    margin-bottom: 15px;
}

.about-block h2 {
    margin: 18px 0;
    font-size: 30px;
}

.about-block p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.about-block a {
    color: var(--accent);
    font-size: 14px;
}

.mobile-band {
    display: flex;
    align-items: center;
    gap: 26px;
    background: #1c1f22;
    border: 1px solid #303132;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 55px;
    margin-top: 35px;
}

.mobile-brand {
    flex-shrink: 0;
}

.mobile-band h2 {
    margin: 5px 0;
    font-size: 25px;
}

.mobile-band p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 0;
    max-width: 500px;
}

.mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    max-width: 345px;
}

.mobile-actions .button {
    padding-inline: 15px;
}

.subscribe-status {
    font-size: 12px;
    color: var(--accent);
    flex-basis: 100%;
}

.footer {
    background: #0c0d0f;
    border-top: 1px solid #222428;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding-block: 42px;
    gap: 40px;
}

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

.footer p {
    color: #85888f;
    font-size: 13px;
    margin-top: 18px;
    line-height: 1.9;
}

.footer h2 {
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-top > div:not(:first-child) a {
    display: block;
    font-size: 13px;
    color: #85888f;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #25272a;
    padding-block: 21px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #71757c;
    font-size: 12px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #999ca3;
    font-size: 14px;
    padding-block: 26px;
}

.page-heading {
    padding-block: 38px;
}

.page-heading h1 {
    font-size: 42px;
    margin: 10px 0 14px;
}

.page-heading p {
    color: #a9acb2;
    max-width: 800px;
    margin: 0;
}

.channel-feature {
    position: relative;
    min-height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: #242a30;
    margin-bottom: 36px;
}

.channel-feature > img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-position: center 35%;
}

.channel-feature > div {
    padding: 36px;
    position: relative;
    min-height: 250px;
    background: linear-gradient(90deg, #101318f5, #10131811);
}

.channel-feature h2 {
    font-size: 35px;
    margin: 10px 0;
}

.channel-feature p {
    color: #c0c3c7;
}

.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-bar h2 {
    font-size: 23px;
    margin: 0 15px 0 0;
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-buttons button,
[data-clear-search] {
    padding: 7px 15px;
    background: var(--surface-raised);
    border-radius: 5px;
    font-size: 14px;
}

.filter-buttons button.active {
    color: var(--accent);
    background: #efc75e18;
}

.sort-label {
    margin-left: auto;
    font-size: 14px;
    color: var(--muted);
}

select {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #ddd;
    background: var(--surface);
    margin-left: 10px;
}

.result-count,
.empty-state {
    text-align: center;
    margin: 34px 0;
    padding: 15px;
    color: var(--muted);
    font-size: 14px;
}

.detail-header {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 45px;
    margin-block: 15px 40px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    background: #292d33;
    border-radius: 12px;
    overflow: hidden;
    align-self: start;
}

.detail-poster img {
    height: 100%;
    width: 100%;
}

.detail-copy h1 {
    font-size: 40px;
    line-height: 1.3;
    margin: 10px 0 8px;
}

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

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

.detail-tags span {
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--surface-raised);
    font-size: 13px;
    color: #c1c3c7;
}

.detail-tags span:first-child {
    color: var(--accent);
}

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

dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 9px;
    font-size: 14px;
    margin-bottom: 28px;
}

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

dd {
    margin: 0;
}

.synopsis,
.episode-section,
.stills-section {
    margin-bottom: 35px;
}

.synopsis {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 27px;
    background: #191b1e;
}

.synopsis h2,
.episode-section h2,
.stills-section h2 {
    font-size: 22px;
}

.synopsis p {
    color: #b6b9c0;
    line-height: 1.95;
    margin-bottom: 0;
}

.episode-section .section-heading > span {
    color: var(--muted);
    font-size: 14px;
}

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

.episode-grid a {
    background: #24262b;
    border-radius: 5px;
    text-align: center;
    padding: 12px 5px;
    font-size: 14px;
}

.episode-grid .selected {
    background: var(--accent);
    color: #151515;
}

.stills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stills img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #24262a;
    border-radius: 10px;
}

.previous-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    margin-bottom: 24px;
    font-size: 14px;
}

.previous-next > span {
    color: #767b83;
}

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

.rank-page .more {
    margin-top: 25px;
    color: var(--accent);
}

.catalog-query {
    display: block;
    width: 100%;
    background: var(--surface);
    border: 1px solid #4b4d53;
    color: var(--foreground);
    padding: 17px;
    border-radius: 9px;
    margin: 10px 0 35px;
}

.search-page-label {
    color: var(--muted);
}

.prose {
    max-width: 950px;
    background: var(--surface);
    border-radius: 12px;
    padding: 38px;
    margin-bottom: 50px;
}

.prose p {
    color: #b4b8c0;
    line-height: 2;
    margin-bottom: 30px;
}

.image-unavailable {
    color: #ddd;
    padding: 12px;
    font-size: 14px;
    background: #242931;
}
