:root {
    color-scheme: dark;
    --bg: #0a0e16;
    --panel: #121925;
    --raised: #1b2332;
    --line: #263043;
    --text: #f5f7fb;
    --muted: #a0aabd;
    --accent: #d9ff67;
    --accent-ink: #182500;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

button, input, select {
    font: inherit;
}

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

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

button, select {
    cursor: pointer;
}

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

button {
    border: 0;
}

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

img {
    display: block;
    object-fit: cover;
    background: #1a2738;
    color: #d1d8e4;
}

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

h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.3;
}

h2 {
    font-size: 25px;
    line-height: 1.4;
}

h3 {
    font-size: 17px;
}

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

.site-header {
    background: rgba(10, 14, 22, .97);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 43px;
    height: 43px;
    background: none;
}

.brand strong {
    font-size: 24px;
    letter-spacing: 1px;
}

.brand small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 3px;
    line-height: 1.2;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #344053;
    background: var(--panel);
    border-radius: 24px;
    padding: 8px 14px;
    gap: 10px;
    width: min(440px, 42%);
}

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

.search-form button {
    color: var(--accent);
    background: none;
    padding: 0;
    display: flex;
}

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

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: -4px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.nav a {
    padding: 12px 0 16px;
    white-space: nowrap;
    color: #b5bfd0;
    font-size: 15px;
    border-bottom: 3px solid transparent;
}

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

.nav .icon {
    margin-right: 6px;
    width: 18px;
}

.hero {
    margin-top: 28px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel);
}

.slide {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 460px;
    aspect-ratio: 16 / 6.3;
    display: none;
    isolation: isolate;
}

.slide.active {
    display: flex;
    align-items: center;
}

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

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(9, 15, 26, .98), rgba(9, 15, 26, .8) 32%, rgba(9, 15, 26, .08) 80%), linear-gradient(0deg, rgba(9, 15, 26, .68), transparent 65%);
}

.hero-copy {
    min-width: 0;
    padding: 48px 60px 60px;
    max-width: 590px;
}

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

.hero h2 {
    font-size: clamp(36px, 4vw, 58px);
    letter-spacing: 3px;
    margin: 12px 0;
}

.hero-copy p {
    color: #c7cfda;
    font-size: 15px;
}

.clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 7px;
    color: var(--text);
    background: #273245;
    min-height: 44px;
    font-size: 14px;
}

.button.primary {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}

.button:hover {
    filter: brightness(1.12);
}

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

.hero-controls button {
    background: rgba(17, 25, 38, .8);
    color: white;
    border: 1px solid #647083;
    border-radius: 50%;
    width: 34px;
    height: 34px;
}

.hero-controls .dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    background: #95a0b4;
}

.hero-controls .dot.active {
    background: var(--accent);
    width: 26px;
    border-radius: 10px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    gap: 25px;
}

.quick-links a {
    display: flex;
    gap: 14px;
    align-items: center;
}

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

.quick-links strong {
    display: block;
    font-size: 16px;
}

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

.module {
    margin: 48px 0;
}

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

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

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

.section-head a {
    color: var(--muted);
    white-space: nowrap;
    font-size: 14px;
}

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

.card {
    min-width: 0;
}

.poster {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--panel);
    aspect-ratio: 2 / 3;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 60% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    pointer-events: none;
}

.quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(5, 11, 18, .75);
    border: 1px solid #6e7986;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
}

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

.card h3 {
    margin: 12px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    margin-bottom: 5px;
}

.card .summary {
    color: var(--muted);
    font-size: 14px;
    height: 48px;
    margin-top: 9px;
}

.tag {
    color: #b6c391;
    font-size: 12px;
}

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

.feature-card {
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
}

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

.feature-card .copy {
    padding: 20px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

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

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

.rank-panel {
    background: linear-gradient(150deg, #202c35, #121925 65%);
    border: 1px solid #2e3b42;
    border-radius: 14px;
    padding: 25px;
}

.rank-panel:nth-child(2) {
    background: linear-gradient(150deg, #302537, #121925 65%);
}

.rank-panel:nth-child(3) {
    background: linear-gradient(150deg, #283028, #121925 65%);
}

.rank-row {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid rgba(157, 176, 204, .13);
}

.rank-row b {
    font-size: 24px;
    font-style: italic;
    color: var(--accent);
    width: 33px;
    flex-shrink: 0;
}

.rank-row strong {
    display: block;
    font-size: 15px;
}

.rank-row small {
    color: var(--muted);
    font-size: 12px;
}

.editorial {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 14px;
    padding: 30px;
}

.editorial p {
    color: var(--muted);
    margin-bottom: 0;
}

.mobile-module {
    margin-top: 56px;
    padding: 34px;
    background: linear-gradient(100deg, #253624, #152124);
    border: 1px solid #3c5134;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
}

.mobile-module img {
    width: 88px;
    height: 88px;
    background: transparent;
}

.mobile-module h2 {
    margin: 0 0 5px;
}

.mobile-module p {
    color: #bdc9bb;
    margin: 0;
    font-size: 14px;
}

.mobile-module .actions {
    margin-top: 0;
    flex-shrink: 0;
}

.site-footer {
    margin-top: 45px;
    border-top: 1px solid var(--line);
    padding: 35px 0;
    color: var(--muted);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-top .brand {
    color: var(--text);
}

.footer-top p {
    font-size: 13px;
    margin: 15px 0;
    max-width: 480px;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 24px;
    max-width: 560px;
    font-size: 14px;
}

.legal {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 22px;
    font-size: 12px;
}

.breadcrumb {
    padding: 26px 0;
    color: var(--muted);
    font-size: 14px;
}

.page-intro {
    max-width: 900px;
    margin-bottom: 30px;
}

.page-intro p {
    color: var(--muted);
}

.filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    margin-bottom: 25px;
}

.filter {
    color: #c1cada;
    background: transparent;
    border-radius: 6px;
    padding: 7px 15px;
    font-size: 14px;
}

.filter.active {
    color: var(--accent-ink);
    background: var(--accent);
}

select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: 5px;
}

.filters label {
    margin-left: auto;
    font-size: 14px;
}

.result-info {
    color: var(--muted);
    font-size: 14px;
    margin: 25px 0;
}

.detail-top {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 38px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px;
}

.detail-poster {
    width: 100%;
    height: auto;
    align-self: start;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
}

.detail-top h1 {
    margin: 5px 0 8px;
}

.detail-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 25px;
    margin-top: 22px;
    font-size: 14px;
}

.detail-data dt {
    color: var(--muted);
    display: inline;
}

.detail-data dd {
    display: inline;
    margin-left: 10px;
}

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

.episodes a {
    padding: 10px 22px;
    border-radius: 6px;
    background: var(--raised);
    font-size: 14px;
}

.episodes a.current {
    background: var(--accent);
    color: var(--accent-ink);
}

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

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

.article-text {
    color: #c2cbd9;
    max-width: 960px;
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 25px;
}

.player-side {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}

.player-side .episodes {
    flex-direction: column;
}

.empty-message {
    padding: 40px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted);
}

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

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-ink);
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10;
    max-width: calc(100% - 30px);
}

[hidden] {
    display: none !important;
}
