:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #f59e0b;
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-500: #78716c;
    --neutral-700: #44403c;
    --neutral-900: #1c1917;
    --white: #ffffff;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--neutral-900);
    background: var(--neutral-50);
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--neutral-900);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.28);
}

.brand-text {
    white-space: nowrap;
    font-size: 20px;
}

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

.nav-link {
    color: var(--neutral-700);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--neutral-300);
    border-radius: 10px;
    background: var(--white);
    padding: 10px 12px;
    color: var(--neutral-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.header-search button,
.mobile-search button,
.btn-primary,
.btn-secondary,
.rank-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: var(--white);
    background: var(--primary);
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.rank-watch:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.22);
}

.btn-secondary {
    background: var(--neutral-900);
}

.btn-secondary:hover {
    background: #000000;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 10px;
    color: var(--white);
    padding: 10px 16px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: var(--neutral-900);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--neutral-200);
    padding: 14px 16px 18px;
    background: var(--white);
}

.mobile-panel.open {
    display: block;
}

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: var(--neutral-900);
}

.hero-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
    padding: 70px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bae6fd;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--primary-dark);
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-actions {
    margin-top: 26px;
}

.hero-dots {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding-bottom: 34px;
    margin-top: 470px;
}

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--white);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    transform: translateY(-34px);
    position: relative;
    z-index: 9;
}

.stats-strip div {
    padding: 22px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.stats-strip strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    color: var(--primary);
}

.stats-strip span {
    color: var(--neutral-500);
    font-weight: 600;
}

.section-block {
    margin-top: 54px;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2,
.category-overview-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p,
.category-overview-head p {
    margin: 6px 0 0;
    color: var(--neutral-500);
}

.section-more {
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-tile {
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-tile strong {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.category-tile em {
    color: var(--primary);
    font-style: normal;
    font-weight: 800;
}

.category-tile p {
    color: var(--neutral-500);
    min-height: 76px;
}

.mini-title-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-title-list span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    font-size: 12px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.compact-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--neutral-100);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.04);
}

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--white);
    background: rgba(2, 132, 199, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--neutral-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h2 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-body h2 a:hover {
    color: var(--primary);
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--neutral-500);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card.compact .movie-card-body {
    padding: 13px;
}

.movie-card.compact h2 {
    font-size: 16px;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.small-heading {
    align-items: flex-start;
    margin-bottom: 16px;
}

.small-heading h2 {
    font-size: 22px;
}

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

.rank-mini {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: var(--neutral-50);
    transition: background 0.2s ease;
}

.rank-mini:hover {
    background: #e0f2fe;
}

.rank-mini span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--white);
    background: var(--primary);
    font-weight: 800;
}

.rank-mini strong,
.rank-mini em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-mini em {
    grid-column: 2;
    color: var(--neutral-500);
    font-size: 12px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.62), transparent 30%), linear-gradient(135deg, #0f172a, #075985 52%, #111827);
}

.page-hero .container {
    padding: 76px 0 82px;
}

.category-hero,
.search-hero,
.ranking-hero {
    background: radial-gradient(circle at 80% 15%, rgba(245, 158, 11, 0.32), transparent 30%), linear-gradient(135deg, #0f172a, #0c4a6e 54%, #111827);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(130px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 22px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 6px;
}

.filter-panel label span {
    color: var(--neutral-500);
    font-size: 12px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
}

.filter-count {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--primary-dark);
    background: #e0f2fe;
    font-weight: 800;
    white-space: nowrap;
}

.category-overview {
    display: grid;
    gap: 44px;
}

.category-overview-block {
    padding-bottom: 44px;
    border-bottom: 1px solid var(--neutral-200);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 76px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 2 / 3;
    background: var(--neutral-100);
}

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

.rank-body h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-body p {
    margin: 0 0 8px;
    color: var(--neutral-500);
}

.detail-hero {
    padding: 18px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.player-shell,
.detail-card,
.article-content {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.player-shell {
    padding: 14px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.36), rgba(0, 0, 0, 0.76));
    cursor: pointer;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--white);
    font-size: 30px;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay em {
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    font-style: normal;
}

.detail-card {
    overflow: hidden;
}

.detail-card img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--neutral-100);
}

.detail-card h1,
.detail-card p,
.detail-card .detail-meta,
.detail-card .detail-tags {
    margin-left: 18px;
    margin-right: 18px;
}

.detail-card h1 {
    margin-top: 10px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.detail-card p {
    color: var(--neutral-500);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--primary-dark);
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.detail-tags {
    padding-bottom: 18px;
}

.article-content {
    padding: 28px;
}

.article-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.article-content p {
    margin: 0 0 24px;
    color: var(--neutral-700);
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0;
}

.info-list div {
    border-radius: 12px;
    padding: 12px;
    background: var(--neutral-100);
}

.info-list dt {
    color: var(--neutral-500);
    font-size: 12px;
    font-weight: 800;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 700;
}

.site-footer {
    margin-top: 74px;
    color: #d6d3d1;
    background: var(--neutral-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 540px;
    color: #a8a29e;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 16px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #d6d3d1;
}

.site-footer a:hover {
    color: var(--white);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    text-align: center;
    color: #a8a29e;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .filter-keyword {
        grid-column: span 3;
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-carousel {
        min-height: 500px;
    }

    .hero-copy {
        padding: 52px 0;
    }

    .hero-dots {
        margin-top: 430px;
    }

    .stats-strip,
    .home-split,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

    .detail-card {
        order: -1;
    }

    .info-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand-text {
        font-size: 17px;
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-strip,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .filter-keyword {
        grid-column: auto;
    }

    .ranking-row {
        grid-template-columns: 54px 68px minmax(0, 1fr);
    }

    .rank-watch {
        grid-column: 1 / -1;
    }

    .rank-number {
        font-size: 18px;
    }

    .article-content {
        padding: 20px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
