:root {
    color-scheme: dark;
    --bg: #0c0f14;
    --surface: #161a22;
    --panel: #1c222c;
    --text: #f4f6fa;
    --muted: #9198a7;
    --accent: #46e0b6;
    --line: #ffffff12;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
}

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

button, input, select {
    font: inherit;
}

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

button, select {
    cursor: pointer;
}

button, .button {
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--panel);
    border-radius: 8px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

button:hover, .button:hover {
    background: #2b3441;
}

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

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

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

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

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

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

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand img {
    width: 40px;
    height: 40px;
}

.brand h1 {
    font-size: inherit;
}

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

.search-form {
    display: flex;
    align-items: center;
    width: min(420px, 45%);
    background: #1b2029;
    border: 1px solid #ffffff0a;
    border-radius: 30px;
    padding: 5px 8px 5px 20px;
}

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

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

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

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

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

.navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b7bdc9;
    white-space: nowrap;
    height: 58px;
    border-bottom: 3px solid transparent;
}

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

.hero {
    position: relative;
    margin-top: 28px;
    min-height: 510px;
    overflow: hidden;
    border-radius: 14px;
    background: #17212d;
}

.slide {
    position: relative;
    min-height: 510px;
    display: none;
    isolation: isolate;
}

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

.slide > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-position: center 40%;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #071018ed 0%, #071018bf 35%, #07101818 75%), linear-gradient(0deg, #0c0f14b3, transparent 60%);
}

.hero-copy {
    max-width: 640px;
    padding: 60px 64px 90px;
}

.eyebrow {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h2 {
    font-size: clamp(36px, 4.4vw, 64px);
    line-height: 1.25;
    letter-spacing: 4px;
    margin-bottom: 14px;
}

.hero .alias {
    font-size: 14px;
    letter-spacing: 5px;
    color: #b9c4cf;
    margin-bottom: 16px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #aab3bf;
    font-size: 13px;
}

.badge {
    background: #ffffff12;
    border: 1px solid #ffffff1f;
    color: #d7dfeb;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
}

.hero-copy p {
    color: #c0c6cf;
    margin: 18px 0 26px;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.primary {
    background: var(--accent);
    color: #082b24;
    border-color: var(--accent);
}

.primary:hover {
    color: #082b24;
    background: #73f0ce;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 28px;
    left: 64px;
    right: 30px;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    border: 0;
    background: #ffffff4d;
    padding: 0;
    width: 8px;
    height: 8px;
    border-radius: 10px;
}

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

.arrows {
    display: flex;
    gap: 8px;
}

.arrows button {
    background: #121a2680;
    border: 1px solid #ffffff33;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 8px;
}

.quickbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 20px;
    padding: 20px 0;
    background: #151a22;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.quickbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-right: 1px solid var(--line);
}

.quickbar a:last-child {
    border: 0;
}

.quickbar .icon {
    color: var(--accent);
    width: 26px;
    height: 26px;
}

.quickbar small {
    font-size: 12px;
    display: block;
    color: var(--muted);
}

.section {
    margin-top: 44px;
}

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

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    letter-spacing: 1px;
}

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

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

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

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

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

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

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

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

.poster .quality {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #061813bc;
    border: 1px solid #ffffff26;
    color: #d0ffe8;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
}

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

.film-card h3 {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.film-card .card-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.film-card .synopsis {
    margin-top: 8px;
    color: #9da7b6;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

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

.rank-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, #1d2b2d, #161b24 65%);
}

.rank-panel:nth-child(2) {
    background: linear-gradient(145deg, #2a2538, #161b24 65%);
}

.rank-panel:nth-child(3) {
    background: linear-gradient(145deg, #302922, #161b24 65%);
}

.rank-panel h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.rank-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

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

.rank-row img {
    width: 46px;
    height: 64px;
    border-radius: 5px;
}

.rank-row span {
    min-width: 0;
}

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

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

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

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    background: #202a38;
}

.feature-card img {
    width: 100%;
    height: 100%;
}

.feature-card div {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    background: linear-gradient(transparent, #080f19eb);
}

.feature-card h3 {
    font-size: 20px;
}

.feature-card small {
    color: #c0cbd6;
}

.about-box {
    border-top: 1px solid var(--line);
    padding: 30px 0 10px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.about-box p {
    color: var(--muted);
    font-size: 14px;
}

.mobile-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 48px;
    background: linear-gradient(105deg, #172f31, #161c28 70%);
    border: 1px solid #345054;
    border-radius: 12px;
    padding: 30px 40px;
}

.mobile-banner .app-mark {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}

.mobile-banner h2 {
    font-size: 23px;
    margin-bottom: 6px;
}

.mobile-banner p {
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    background: #080b10;
    border-top: 1px solid var(--line);
    padding: 36px 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 26px;
}

.site-footer .brand {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 15px;
}

.site-footer .brand img {
    width: 32px;
    height: 32px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h3 {
    color: #c3c9d3;
    font-size: 14px;
    margin-bottom: 6px;
}

.copyright {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

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

.page-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.lead {
    color: var(--muted);
    max-width: 850px;
    margin-bottom: 24px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 22px;
    border-radius: 10px;
    background: var(--surface);
    margin: 24px 0;
    align-items: center;
}

.filters button {
    font-size: 14px;
    padding: 6px 15px;
    border: 0;
    background: transparent;
}

.filters button.active {
    color: var(--accent);
    background: #46e0b61a;
}

.filters select {
    padding: 7px;
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    margin-left: auto;
    max-width: 100%;
}

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

.detail-top {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 42px;
    padding: 32px;
    background: linear-gradient(110deg, #1c2930, #161b24 75%);
    border: 1px solid var(--line);
    border-radius: 14px;
}

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

.detail-top h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.detail-top .alias {
    color: var(--muted);
    margin-bottom: 16px;
}

dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px 12px;
    margin: 20px 0;
    font-size: 14px;
}

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

dd {
    margin: 0;
}

.text-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    color: #bdc5d0;
}

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

.episodes a {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.episodes a.active {
    background: #46e0b61c;
    color: var(--accent);
    border-color: #46e0b655;
}

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

.stills img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #1b2532;
}

.notice {
    border-left: 3px solid var(--accent);
    background: #46e0b60a;
    padding: 15px 20px;
    color: #9dafbc;
    font-size: 14px;
    margin: 22px 0;
}

.bottom-navigation {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
