:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #111827;
    --line: rgba(34, 211, 238, 0.18);
    --line-strong: rgba(34, 211, 238, 0.42);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --radius: 24px;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 26rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
}
img, video {
    max-width: 100%;
    display: block;
}
button, input {
    font: inherit;
}
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.nav-wrap {
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand, .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}
.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.26);
}
.brand-text, .footer-brand span:last-child {
    font-size: 21px;
    background: linear-gradient(90deg, #67e8f9, #60a5fa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-link {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(34, 211, 238, 0.12);
}
.nav-link.active::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 5px;
    left: 16px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: white;
}
.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 16px 18px;
}
.mobile-nav.open {
    display: grid;
    gap: 8px;
}
.home-main, .sub-main, .detail-main {
    padding-top: 68px;
}
.hero-section {
    width: min(1440px, calc(100% - 28px));
    margin: 22px auto 0;
}
.hero-stage {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 34px;
    background: #020617;
    box-shadow: var(--shadow);
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: center;
    padding: 78px min(7vw, 86px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.hero-image, .detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: saturate(1.18) contrast(1.08);
}
.hero-slide::after, .detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 52%, rgba(2, 6, 23, 0.36) 100%),
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 34rem);
}
.hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    right: 10%;
    top: 12%;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.18);
    filter: blur(70px);
}
.hero-content, .hero-poster, .detail-copy, .detail-poster {
    position: relative;
    z-index: 2;
}
.eyebrow, .page-hero span, .section-title span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero-content h1 {
    max-width: 780px;
    margin: 18px 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}
.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 19px;
}
.hero-tags, .year-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 28px;
}
.hero-tags span, .year-tags span {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.13);
    color: #cffafe;
    font-size: 13px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn.primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.22);
}
.btn.ghost {
    border: 1px solid var(--line-strong);
    background: rgba(15, 23, 42, 0.58);
    color: #e0f2fe;
}
.btn.text {
    color: var(--cyan);
}
.btn.full {
    width: 100%;
    margin-top: 12px;
}
.hero-poster {
    align-self: stretch;
    display: flex;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: var(--panel);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.36);
}
.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.hero-poster:hover img {
    transform: scale(1.06);
}
.hero-poster span, .detail-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: #e0f2fe;
    font-weight: 800;
}
.hero-controls {
    position: absolute;
    left: min(7vw, 86px);
    bottom: 36px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
    padding: 0;
}
.hero-dot.is-active {
    width: 62px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.section-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 58px auto;
}
.intro-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.intro-strip a, .side-panel, .filter-panel, .movie-meta-card, .category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}
.intro-strip a {
    padding: 22px;
    transition: transform 0.2s ease, border 0.2s ease;
}
.intro-strip a:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}
.intro-strip strong {
    display: block;
    color: white;
    font-size: 20px;
    margin-bottom: 4px;
}
.intro-strip span {
    color: var(--muted);
}
.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.section-title h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}
.section-title a {
    color: var(--cyan);
    font-weight: 800;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}
.movie-card {
    position: relative;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.88));
    transition: transform 0.24s ease, border 0.24s ease, box-shadow 0.24s ease;
}
.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 54px rgba(8, 145, 178, 0.14);
}
.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.1));
}
.movie-card.compact .poster-frame {
    aspect-ratio: 3 / 4;
}
.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}
.movie-card:hover img {
    transform: scale(1.06);
}
.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}
.movie-year, .movie-duration {
    position: absolute;
    top: 12px;
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}
.movie-year {
    left: 12px;
}
.movie-duration {
    right: 12px;
}
.movie-body {
    display: grid;
    gap: 7px;
    padding: 16px;
}
.movie-body strong {
    min-height: 1.4em;
    color: white;
    font-size: 17px;
    line-height: 1.35;
}
.movie-card.compact .movie-body strong {
    font-size: 15px;
}
.movie-body span {
    min-height: 3.1em;
    color: var(--muted);
    font-size: 14px;
}
.movie-card.compact .movie-body span {
    display: none;
}
.movie-body em {
    color: var(--cyan);
    font-style: normal;
    font-size: 12px;
}
.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}
.rank-list {
    display: grid;
    gap: 13px;
}
.rank-list.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rank-item {
    display: grid;
    grid-template-columns: 58px 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 118px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.2s ease, border 0.2s ease;
}
.rank-item:hover {
    transform: translateX(4px);
    border-color: var(--line-strong);
}
.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(59, 130, 246, 0.18));
    color: #cffafe;
    font-weight: 900;
}
.rank-item img {
    width: 112px;
    height: 78px;
    border-radius: 14px;
    object-fit: cover;
}
.rank-copy {
    display: grid;
    gap: 3px;
}
.rank-copy strong {
    color: white;
    font-size: 16px;
}
.rank-copy span {
    color: var(--muted);
    font-size: 13px;
}
.rank-copy em {
    color: var(--cyan);
    font-style: normal;
    font-size: 12px;
}
.side-panel {
    position: sticky;
    top: 92px;
    padding: 26px;
}
.side-panel h2 {
    margin: 0 0 12px;
    font-size: 25px;
}
.side-panel p {
    margin: 0 0 16px;
    color: var(--muted);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
    transition: transform 0.2s ease, border 0.2s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}
.category-icon {
    color: var(--cyan);
    font-size: 23px;
}
.category-card strong {
    display: block;
    margin-top: 12px;
    color: white;
    font-size: 20px;
}
.category-card > span:not(.category-icon):not(.mini-posters), .category-card em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}
.mini-posters {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 5px;
}
.mini-posters img {
    width: 38px;
    height: 52px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.sub-main {
    padding-bottom: 20px;
}
.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 62px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 32rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.84));
    box-shadow: var(--shadow);
}
.page-hero.small h1 {
    max-width: 920px;
    margin: 12px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}
.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}
.breadcrumb {
    width: min(1280px, calc(100% - 32px));
    margin: 26px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumb a {
    color: var(--cyan);
}
.filter-panel {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 18px;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box span {
    position: absolute;
    left: 16px;
    color: var(--cyan);
    font-size: 20px;
}
.search-box input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px 0 48px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    outline: 0;
    background: rgba(2, 6, 23, 0.72);
    color: white;
}
.search-box input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}
.filter-row button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #cbd5e1;
    padding: 8px 13px;
    cursor: pointer;
}
.filter-row button.active, .filter-row button:hover {
    color: white;
    border-color: var(--line-strong);
    background: rgba(34, 211, 238, 0.16);
}
.result-count {
    min-height: 1.6em;
    margin: 12px 0 0;
    color: var(--muted);
}
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.category-overview-card {
    overflow: hidden;
}
.category-banner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 190px;
    overflow: hidden;
}
.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}
.category-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.18));
}
.category-banner span {
    position: absolute;
    left: 22px;
    bottom: 18px;
    z-index: 1;
    font-size: 26px;
    font-weight: 900;
}
.category-overview-body {
    padding: 22px;
}
.category-overview-body h2 {
    margin: 0 0 8px;
}
.category-overview-body p {
    color: var(--muted);
    margin: 0 0 10px;
}
.category-overview-body em {
    display: block;
    color: var(--cyan);
    font-style: normal;
    margin-bottom: 12px;
}
.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mini-links a {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    color: #cffafe;
    font-size: 13px;
}
.detail-main {
    padding-bottom: 20px;
}
.detail-hero {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 520px;
    margin: 22px auto 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: center;
    padding: 58px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #020617;
    box-shadow: var(--shadow);
}
.detail-copy h1 {
    max-width: 800px;
    margin: 15px 0;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}
.detail-copy p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 18px;
}
.detail-poster {
    overflow: hidden;
    min-height: 410px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background: var(--panel);
}
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.watch-section {
    width: min(1280px, calc(100% - 32px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}
.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: black;
    box-shadow: var(--shadow);
}
.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}
.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
    color: white;
    cursor: pointer;
}
.play-layer span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 60px rgba(34, 211, 238, 0.28);
    font-size: 30px;
    padding-left: 4px;
}
.player-shell.is-playing .play-layer {
    display: none;
}
.movie-meta-card {
    padding: 24px;
}
.movie-meta-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}
.movie-meta-card p {
    color: var(--muted);
    margin: 0 0 16px;
}
.movie-meta-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}
.movie-meta-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.movie-meta-card dt {
    color: var(--muted-2);
}
.movie-meta-card dd {
    margin: 0;
    color: #e0f2fe;
    text-align: right;
}
.detail-text {
    max-width: 980px;
}
.detail-text h2 {
    margin: 28px 0 10px;
    font-size: 28px;
}
.detail-text p {
    color: #cbd5e1;
    font-size: 17px;
}
.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}
.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 34px;
    padding: 44px 0;
}
.site-footer p {
    max-width: 430px;
    color: var(--muted);
}
.site-footer h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 16px;
}
.site-footer a:not(.footer-brand) {
    display: block;
    color: var(--muted);
    margin: 6px 0;
}
.site-footer a:hover {
    color: var(--cyan);
}
[data-movie-card].is-hidden {
    display: none;
}
@media (max-width: 1100px) {
    .hero-slide, .detail-hero, .watch-section, .rank-layout {
        grid-template-columns: 1fr;
    }
    .hero-poster, .detail-poster {
        display: none;
    }
    .movie-grid, .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .rank-list.wide {
        grid-template-columns: 1fr;
    }
    .side-panel {
        position: static;
    }
}
@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }
    .hero-section, .section-wrap, .page-hero, .filter-panel, .breadcrumb, .detail-hero, .watch-section {
        width: min(100% - 22px, 1280px);
    }
    .hero-stage {
        min-height: 640px;
        border-radius: 24px;
    }
    .hero-slide {
        padding: 52px 24px 78px;
    }
    .hero-content h1 {
        font-size: 42px;
    }
    .intro-strip, .movie-grid, .compact-grid, .category-grid, .category-overview-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .rank-item {
        grid-template-columns: 46px 86px minmax(0, 1fr);
        gap: 12px;
    }
    .rank-item img {
        width: 86px;
        height: 66px;
    }
    .rank-copy span {
        display: none;
    }
    .page-hero, .detail-hero {
        padding: 32px 22px;
        border-radius: 24px;
    }
    .detail-copy h1 {
        font-size: 38px;
    }
    .player-shell {
        min-height: 210px;
        border-radius: 20px;
    }
    .play-layer span {
        width: 68px;
        height: 68px;
    }
}
