:root {
    --deep-950: #111720;
    --deep-900: #1b222b;
    --deep-850: #222a35;
    --deep-800: #29323c;
    --deep-700: #313a45;
    --night-900: #142565;
    --night-700: #273b81;
    --night-600: #2e448c;
    --glow-500: #ffcf33;
    --glow-600: #edb900;
    --text-main: #f3f4f6;
    --text-soft: #d1d5db;
    --text-muted: #9ca3af;
    --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 207, 51, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at 20% 0%, rgba(39, 59, 129, 0.34), transparent 36%), var(--deep-900);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(27, 34, 43, 0.95);
    border-bottom: 1px solid var(--deep-700);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--glow-500);
    letter-spacing: 0.02em;
}

.logo {
    font-size: 21px;
}

.logo-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: var(--glow-500);
    color: var(--deep-900);
    box-shadow: var(--shadow-glow);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a,
.mobile-nav a {
    color: var(--text-soft);
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 14px;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--glow-500);
    background: var(--deep-800);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--deep-800);
    color: var(--text-main);
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text-main);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 14px;
    background: rgba(27, 34, 43, 0.98);
    border-bottom: 1px solid var(--deep-700);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--deep-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 34, 43, 1) 0%, rgba(27, 34, 43, 0.72) 48%, rgba(27, 34, 43, 0.32) 100%);
}

.hero-content {
    position: absolute;
    inset: auto 0 0;
    padding-bottom: 96px;
}

.hero-copy {
    max-width: 760px;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--glow-500);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-copy h1,
.page-hero h1 {
    margin: 16px 0;
    color: #fff;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
}

.hero-copy p,
.page-hero p {
    max-width: 760px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.7;
}

.hero-meta,
.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta a,
.hero-meta span,
.detail-meta span,
.tag-row span,
.movie-badge,
.movie-year {
    border-radius: 999px;
    background: rgba(46, 68, 140, 0.82);
    color: #fff;
    backdrop-filter: blur(6px);
}

.hero-meta a,
.hero-meta span,
.detail-meta span,
.tag-row span {
    padding: 8px 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.category-enter,
.section-more,
.rank-poster a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.category-enter,
.rank-poster a {
    background: var(--glow-500);
    color: var(--deep-900);
    box-shadow: var(--shadow-glow);
}

.primary-button {
    min-width: 132px;
    padding: 14px 28px;
}

.ghost-button {
    padding: 13px 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(41, 50, 60, 0.82);
    color: #fff;
    backdrop-filter: blur(8px);
}

.ghost-button.small {
    padding: 10px 14px;
    font-size: 14px;
}

.primary-button:hover,
.ghost-button:hover,
.category-enter:hover,
.section-more:hover,
.rank-poster a:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(27, 34, 43, 0.72);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 5;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--glow-500);
}

.hero-search {
    position: absolute;
    right: max(16px, calc((100vw - 1280px) / 2));
    bottom: 88px;
    z-index: 5;
    display: flex;
    width: min(420px, calc(100% - 32px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(27, 34, 43, 0.76);
    backdrop-filter: blur(10px);
}

.hero-search input,
.filter-row input,
.filter-row select {
    border: 1px solid var(--deep-700);
    background: var(--deep-800);
    color: #fff;
    outline: 0;
}

.hero-search input {
    min-width: 0;
    flex: 1;
    padding: 15px 16px;
    border: 0;
    background: transparent;
}

.hero-search button {
    border: 0;
    padding: 0 20px;
    background: var(--glow-500);
    color: var(--deep-900);
    font-weight: 800;
}

.page-stack {
    display: grid;
    gap: 64px;
    padding: 64px 0;
}

.content-section,
.feature-panel,
.rank-panel,
.filter-bar,
.detail-card,
.player-card,
.sticky-panel {
    border: 1px solid rgba(49, 58, 69, 0.88);
    background: rgba(41, 50, 60, 0.7);
    box-shadow: var(--shadow-deep);
}

.content-section,
.feature-panel,
.rank-panel,
.filter-bar,
.detail-card,
.sticky-panel {
    border-radius: 22px;
    padding: clamp(22px, 4vw, 34px);
}

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

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

.section-more {
    padding: 10px 16px;
    border: 1px solid var(--deep-700);
    color: var(--glow-500);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--deep-800);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.movie-cover {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background: #000;
}

.movie-card-small .movie-cover {
    height: 208px;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img {
    transform: scale(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 34, 43, 0.92), rgba(27, 34, 43, 0.26), transparent);
    opacity: 0.74;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 207, 51, 0.9);
    color: var(--deep-900);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.movie-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    font-size: 12px;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 9px;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--glow-500);
}

.movie-info p {
    display: -webkit-box;
    margin: 0;
    min-height: 45px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.category-overview-card {
    border: 1px solid var(--deep-700);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(46, 68, 140, 0.72), rgba(41, 50, 60, 0.86));
    transition: transform 0.2s ease, border 0.2s ease;
}

.category-card {
    min-height: 148px;
    padding: 20px;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: var(--glow-500);
}

.category-card span,
.category-overview-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.category-card p,
.category-overview-card p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.rank-panel {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 26px;
    background: linear-gradient(90deg, rgba(20, 37, 101, 0.45), rgba(41, 50, 60, 0.72));
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(27, 34, 43, 0.58);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(46, 68, 140, 0.45);
    transform: translateX(3px);
}

.rank-cover {
    width: 58px;
    height: 76px;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-text strong,
.rank-text em {
    display: block;
}

.rank-text strong {
    color: #fff;
    line-height: 1.4;
}

.rank-text em {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.rank-poster {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    border-radius: 20px;
    background: #000;
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.rank-poster div {
    position: absolute;
    inset: auto 18px 18px;
}

.rank-poster strong {
    display: block;
    color: #fff;
    font-size: 24px;
}

.rank-poster p {
    color: var(--text-soft);
    line-height: 1.55;
}

.rank-poster a {
    padding: 10px 16px;
}

.sub-page {
    padding-top: 64px;
}

.page-hero {
    background: linear-gradient(to bottom, rgba(20, 37, 101, 0.46), rgba(27, 34, 43, 0));
    border-bottom: 1px solid var(--deep-700);
}

.slim-hero .container {
    padding: 58px 0;
}

.filter-bar {
    display: grid;
    gap: 14px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 12px;
}

.filter-row input,
.filter-row select {
    height: 46px;
    border-radius: 12px;
    padding: 0 14px;
}

.filter-status {
    min-height: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.category-overview-card {
    display: grid;
    gap: 15px;
    padding: 18px;
}

.category-mini-posters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-mini-posters a {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    background: #000;
}

.category-mini-posters img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-enter {
    padding: 10px 14px;
}

.ranking-grid {
    display: grid;
    gap: 18px;
}

.ranking-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    align-items: start;
}

.ranking-number {
    position: sticky;
    top: 82px;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--glow-500);
    color: var(--deep-900);
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 28px 0 64px;
}

.breadcrumb-bar {
    border-bottom: 1px solid var(--deep-700);
    background: rgba(27, 34, 43, 0.72);
}

.breadcrumb-bar .container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.breadcrumb-bar a {
    color: var(--glow-500);
}

.player-card {
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 22px;
    padding: 0;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-frame video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: block;
    border: 0;
    padding: 0;
    background: #000;
    color: var(--deep-900);
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.22));
}

.big-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 207, 51, 0.92);
    box-shadow: var(--shadow-glow);
    transform: translate(-50%, -50%);
    font-size: 32px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.detail-card h1 {
    margin: 12px 0 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-meta {
    margin-top: 18px;
}

.one-line {
    margin: 22px 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.tag-row {
    margin-bottom: 24px;
}

.tag-row span {
    background: rgba(49, 58, 69, 0.88);
    color: var(--text-soft);
}

.story-block {
    border-top: 1px solid var(--deep-700);
    padding-top: 22px;
    margin-top: 22px;
}

.story-block h2,
.sticky-panel h2 {
    margin: 0 0 14px;
    color: #fff;
}

.story-block p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.9;
}

.detail-sidebar {
    min-width: 0;
}

.sticky-panel {
    position: sticky;
    top: 86px;
}

.compact-rank .rank-item {
    grid-template-columns: 50px 1fr;
}

.compact-rank .rank-cover {
    width: 50px;
    height: 68px;
}

.related-section {
    margin-top: 22px;
}

.site-footer {
    border-top: 1px solid var(--deep-700);
    background: #151c25;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-grid p,
.footer-links a,
.footer-bottom {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-grid h3 {
    margin: 0 0 15px;
    color: #fff;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a:hover {
    color: var(--glow-500);
}

.footer-bottom {
    border-top: 1px solid var(--deep-700);
    padding: 16px;
    text-align: center;
    font-size: 14px;
}

.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .grid-5,
    .grid-4,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-3,
    .feature-grid,
    .rank-panel,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-poster {
        min-height: 420px;
    }

    .filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-content {
        padding-bottom: 150px;
    }

    .hero-search {
        right: 16px;
        bottom: 72px;
    }

    .hero-arrow {
        display: none;
    }

    .page-stack {
        gap: 38px;
        padding: 38px 0;
    }

    .section-heading,
    .detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .grid-5,
    .grid-4,
    .grid-3,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .filter-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-cover,
    .movie-card-small .movie-cover {
        height: 230px;
    }

    .rank-poster {
        min-height: 360px;
    }

    .ranking-card {
        grid-template-columns: 38px 1fr;
    }

    .ranking-number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .big-play {
        width: 68px;
        height: 68px;
    }
}
