:root {
    --archive-50: #f5f7fa;
    --archive-100: #eaeff5;
    --archive-200: #d0dae8;
    --archive-300: #a8bdd4;
    --archive-400: #7a9cbc;
    --archive-500: #5a7fa5;
    --archive-600: #46678a;
    --archive-700: #395370;
    --archive-800: #2f445d;
    --archive-900: #2a3b4e;
    --white: #ffffff;
    --soft-shadow: 0 18px 45px rgba(42, 59, 78, 0.14);
    --card-shadow: 0 10px 28px rgba(42, 59, 78, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--archive-900);
    background: var(--archive-50);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(234, 239, 245, 0.9);
    box-shadow: 0 8px 24px rgba(42, 59, 78, 0.06);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--archive-700), var(--archive-500));
    box-shadow: 0 8px 18px rgba(70, 103, 138, 0.28);
    font-size: 14px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
    color: var(--archive-900);
}

.brand-text em {
    margin-top: 2px;
    font-size: 12px;
    font-style: normal;
    color: var(--archive-600);
}

.brand-light .brand-text strong,
.brand-light .brand-text em {
    color: var(--archive-100);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--archive-700);
    font-weight: 600;
}

.nav-link {
    padding: 22px 0;
    transition: color 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 190px;
    padding: 8px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transform: translate(-50%, 10px);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--archive-700);
}

.nav-menu a:hover {
    background: var(--archive-50);
    color: var(--archive-900);
}

.nav-dropdown:hover .nav-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    color: var(--archive-800);
    background: var(--archive-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 16px;
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--archive-700);
}

.mobile-nav a:hover {
    background: var(--archive-100);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--archive-900);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 22, 34, 0.90), rgba(14, 22, 34, 0.58), rgba(14, 22, 34, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--archive-600);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.hero h1 {
    width: min(680px, 100%);
    margin: 18px 0 14px;
    font-size: clamp(38px, 7vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    width: min(660px, 100%);
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    color: #f8fafc;
    font-size: 14px;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    background: var(--white);
    color: var(--archive-900);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.home-search {
    margin-top: -46px;
    position: relative;
    z-index: 4;
}

.home-search-card,
.filter-panel,
.content-card,
.player-card,
.side-card,
.rank-card,
.channel-card {
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--card-shadow);
}

.home-search-card {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr;
    gap: 24px;
    padding: 26px;
    align-items: start;
}

.home-search-card h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.home-search-card p {
    margin: 0;
    color: var(--archive-600);
}

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.section-header.compact h2 {
    font-size: 24px;
}

.section-more {
    color: var(--archive-600);
    font-weight: 800;
}

.section-more:hover {
    color: var(--archive-900);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--archive-800), var(--archive-500));
}

.card-cover img,
.horizontal-cover img,
.mini-cover img,
.poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .card-cover img,
.movie-card:hover .horizontal-cover img {
    transform: scale(1.06);
}

.play-pill {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--archive-900);
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 800;
    transform: translateY(6px);
    opacity: 0;
    transition: 0.2s ease;
}

.movie-card:hover .play-pill {
    transform: translateY(0);
    opacity: 1;
}

.card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: rgba(42, 59, 78, 0.86);
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--archive-600);
    font-size: 13px;
}

.card-meta a {
    color: var(--archive-700);
    font-weight: 800;
}

.movie-card h3,
.horizontal-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.movie-card h3 a:hover,
.horizontal-body h3 a:hover {
    color: var(--archive-600);
}

.movie-card p,
.horizontal-body p {
    margin: 0 0 12px;
    min-height: 46px;
    color: var(--archive-700);
    font-size: 14px;
}

.tag-row,
.detail-tags,
.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags a,
.movie-badges a,
.movie-badges span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--archive-100);
    color: var(--archive-700);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.horizontal-cover {
    min-height: 210px;
    background: linear-gradient(135deg, var(--archive-800), var(--archive-500));
    overflow: hidden;
}

.horizontal-body {
    padding: 18px;
}

.movie-card-mini {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 12px;
    align-items: center;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.movie-card-mini:hover {
    transform: none;
    box-shadow: none;
}

.mini-cover {
    width: 66px;
    height: 82px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--archive-800), var(--archive-500));
}

.mini-info a {
    display: block;
    margin-bottom: 5px;
    color: var(--archive-900);
    font-weight: 800;
    line-height: 1.35;
}

.mini-info span {
    color: var(--archive-600);
    font-size: 13px;
}

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

.split-main {
    display: grid;
    gap: 44px;
}

.rank-card {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.rank-list,
.side-rank-list {
    display: grid;
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
}

.rank-item > span {
    color: var(--archive-300);
    font-size: 28px;
    font-weight: 900;
    transition: color 0.2s ease;
}

.rank-item:hover > span {
    color: var(--archive-600);
}

.sub-page {
    min-height: 70vh;
}

.sub-hero {
    padding: 70px 0 58px;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(122, 156, 188, 0.55), transparent 34%), linear-gradient(135deg, var(--archive-900), var(--archive-700));
}

.sub-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.1;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--archive-100);
    font-size: 18px;
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--archive-300);
    font-size: 14px;
}

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

.crumb a::after {
    content: "/";
    margin-left: 8px;
    color: rgba(234, 239, 245, 0.55);
}

.filter-panel {
    padding: 22px;
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.search-box {
    display: grid;
    gap: 8px;
}

.search-box span,
.filter-group strong {
    color: var(--archive-700);
    font-size: 14px;
    font-weight: 900;
}

.search-box input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--archive-200);
    border-radius: 12px;
    padding: 0 15px;
    color: var(--archive-900);
    background: var(--archive-50);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--archive-500);
    box-shadow: 0 0 0 4px rgba(90, 127, 165, 0.16);
}

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

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-group button {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--archive-700);
    background: var(--archive-100);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: 0.2s ease;
}

.filter-group button:hover,
.filter-group button.is-active {
    color: var(--white);
    background: var(--archive-600);
}

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

.channel-card {
    padding: 26px;
}

.channel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.channel-link span {
    font-size: 24px;
    font-weight: 900;
}

.channel-link strong {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--archive-100);
    color: var(--archive-700);
    font-size: 13px;
}

.channel-card p {
    margin: 0 0 16px;
    color: var(--archive-700);
}

.channel-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.channel-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--archive-700);
    background: var(--archive-50);
    font-size: 13px;
}

.movie-page {
    padding: 34px 0 68px;
}

.movie-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.movie-page .crumb {
    margin-bottom: 18px;
    color: var(--archive-600);
}

.movie-page .crumb a:hover {
    color: var(--archive-900);
}

.movie-page .crumb a::after {
    color: var(--archive-300);
}

.player-card {
    overflow: hidden;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--archive-900);
    background: rgba(255, 255, 255, 0.94);
    font-size: 32px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.movie-intro {
    padding: 26px;
}

.movie-badges {
    margin-bottom: 14px;
}

.movie-intro h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.5vw, 44px);
    line-height: 1.15;
}

.lead {
    margin: 0;
    color: var(--archive-700);
    font-size: 18px;
}

.content-card {
    margin-top: 26px;
    padding: 28px;
}

.content-card h2 {
    position: relative;
    margin: 26px 0 12px;
    padding-left: 14px;
    color: var(--archive-800);
    font-size: 22px;
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: var(--archive-600);
}

.content-card p {
    margin: 0;
    color: var(--archive-700);
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags a {
    font-size: 14px;
}

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

.nearby-links a {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--white);
    color: var(--archive-700);
    box-shadow: var(--card-shadow);
    font-weight: 800;
}

.nearby-links a:hover {
    color: var(--archive-900);
}

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

.movie-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 22px;
}

.poster-card {
    overflow: hidden;
}

.poster-card img {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--archive-800), var(--archive-500));
}

.info-card,
.side-rank {
    padding: 22px;
}

.info-card h2,
.side-rank h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.info-card dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.info-card dt {
    color: var(--archive-600);
    font-size: 13px;
    font-weight: 900;
}

.info-card dd {
    margin: 3px 0 0;
    color: var(--archive-900);
}

.side-rank-list a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    color: var(--archive-700);
    font-weight: 800;
}

.side-rank-list span {
    color: var(--archive-300);
    font-size: 20px;
    font-weight: 900;
}

.site-footer {
    color: var(--archive-100);
    background: var(--archive-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 420px;
    color: var(--archive-300);
}

.footer-links h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

.footer-links a {
    color: var(--archive-300);
}

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

.js-movie-card.is-hidden {
    display: none;
}

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

    .home-split,
    .movie-layout {
        grid-template-columns: 1fr;
    }

    .rank-card,
    .movie-sidebar {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .home-search-card {
        grid-template-columns: 1fr;
    }

    .grid-4,
    .grid-3,
    .grid-2,
    .channel-grid,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .wrap,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text em {
        display: none;
    }

    .hero {
        height: 520px;
    }

    .hero-content {
        width: min(100% - 28px, 1180px);
    }

    .hero h1 {
        font-size: 38px;
    }

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

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .home-search {
        margin-top: -28px;
    }

    .home-search-card,
    .filter-panel,
    .content-card,
    .movie-intro {
        padding: 20px;
    }

    .grid-4,
    .grid-3,
    .grid-2,
    .channel-grid,
    .footer-inner,
    .nearby-links {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .horizontal-cover {
        aspect-ratio: 16 / 10;
        min-height: auto;
    }

    .sub-hero {
        padding: 48px 0;
    }

    .page-space {
        padding: 42px 0;
        gap: 42px;
    }
}
