:root {
    --primary-50: #e6f1ff;
    --primary-100: #b3d9ff;
    --primary-600: #0059c0;
    --primary-700: #00438d;
    --accent-50: #fff3e6;
    --accent-500: #ff6b00;
    --neutral-50: #f8f9fa;
    --neutral-100: #e9ecef;
    --neutral-200: #dee2e6;
    --neutral-300: #ced4da;
    --neutral-500: #6c757d;
    --neutral-600: #495057;
    --neutral-700: #343a40;
    --neutral-800: #212529;
    --neutral-900: #0d1117;
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-soft-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--neutral-50);
    color: var(--neutral-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 18px rgba(13, 17, 23, 0.08);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 24px;
}

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

.brand-text,
.footer-brand span:last-child {
    font-size: 22px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
    box-shadow: var(--shadow-soft);
    font-size: 14px;
}

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

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

.nav-link::after {
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-500);
    content: "";
    transition: width 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

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

.top-search input,
.mobile-search input,
.filter-input,
.search-box input {
    border: 1px solid var(--neutral-300);
    border-radius: 12px;
    background: #fff;
    color: var(--neutral-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 230px;
    padding: 10px 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.search-box input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(0, 89, 192, 0.12);
}

.top-search button,
.mobile-search button,
.search-box button,
.btn-primary {
    border: 0;
    border-radius: 12px;
    background: var(--primary-600);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button,
.mobile-search button {
    padding: 10px 16px;
}

.top-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 89, 192, 0.22);
}

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

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

.mobile-link {
    display: block;
    padding: 12px 0;
    color: var(--neutral-700);
    font-weight: 700;
}

.mobile-link.is-active,
.mobile-link:hover {
    color: var(--primary-600);
}

.mobile-search {
    margin-top: 8px;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 10px 14px;
}

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

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

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

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

.hero-slide::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18));
    content: "";
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(100%, 680px);
    color: #fff;
}

.hero-eyebrow,
.badge-accent,
.thumb-badge,
.badge-primary {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-eyebrow,
.badge-accent {
    padding: 8px 14px;
    background: var(--accent-500);
    color: #fff;
}

.hero-copy h1 {
    margin: 18px 0 8px;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 16px;
    color: var(--primary-100);
    font-size: clamp(22px, 3vw, 36px);
    line-height: 1.18;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 24px;
    color: var(--neutral-300);
    font-size: 18px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 12px;
    padding: 12px 22px;
    color: #fff;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.main-space {
    padding: 56px 0;
}

.content-stack {
    display: grid;
    gap: 58px;
}

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

.section-title > div {
    position: relative;
    padding-left: 16px;
}

.section-line {
    position: absolute;
    top: 6px;
    left: 0;
    width: 5px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent-500);
}

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--neutral-600);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-600);
    font-weight: 800;
}

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

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

.movie-list {
    display: grid;
    gap: 18px;
}

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

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

.movie-card:hover .movie-thumb img,
.related-card:hover img,
.cover-card:hover img {
    transform: scale(1.08);
}

.thumb-badge,
.thumb-year {
    position: absolute;
    z-index: 2;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    backdrop-filter: blur(5px);
}

.thumb-badge {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thumb-year {
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.movie-info {
    padding: 17px;
}

.movie-info h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--neutral-900);
    font-size: 17px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--primary-600);
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--neutral-500);
    font-size: 13px;
}

.panel-gradient {
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.movie-card-list {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
}

.list-thumb {
    height: 100%;
    min-height: 172px;
    aspect-ratio: auto;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.badge-row span,
.meta-pill,
.tag-pill {
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--neutral-100);
    color: var(--neutral-600);
    font-size: 12px;
    font-weight: 700;
}

.badge-primary {
    padding: 5px 10px;
    background: var(--primary-100) !important;
    color: var(--primary-700) !important;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-500);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(255, 107, 0, 0.34);
}

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

.category-card {
    min-height: 180px;
    border-radius: 24px;
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span {
    display: inline-flex;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 13px;
    font-weight: 800;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.category-card p {
    margin: 0;
    color: var(--neutral-600);
    font-size: 14px;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: #fff;
    padding: 70px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.12;
}

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

.filter-bar,
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: #fff;
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.filter-input,
.search-box input {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
}

.search-box button {
    padding: 12px 22px;
}

.empty-state {
    display: none;
    border-radius: 18px;
    background: #fff;
    padding: 26px;
    color: var(--neutral-600);
    box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--neutral-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-600);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.detail-card,
.side-card,
.player-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.player-card {
    background: var(--neutral-900);
}

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

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: var(--accent-500);
    box-shadow: 0 20px 46px rgba(255, 107, 0, 0.42);
    font-size: 28px;
}

.detail-card {
    margin-top: 22px;
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.22;
}

.detail-card h2,
.side-card h2 {
    margin: 28px 0 12px;
    color: var(--neutral-900);
    font-size: 21px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--neutral-700);
}

.lead-text {
    border-left: 4px solid var(--accent-500);
    padding-left: 14px;
    color: var(--neutral-700);
    font-size: 18px;
    font-weight: 600;
}

.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.side-card {
    padding: 20px;
}

.cover-card {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

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

.info-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--neutral-100);
    padding-bottom: 10px;
    color: var(--neutral-600);
}

.info-list strong {
    color: var(--neutral-900);
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    border-radius: 14px;
    padding: 8px;
    transition: background 0.2s ease;
}

.related-card:hover {
    background: var(--neutral-50);
}

.related-card img {
    width: 112px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-card h3 {
    display: -webkit-box;
    margin: 0 0 5px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-card p {
    margin: 0;
    color: var(--neutral-500);
    font-size: 12px;
}

.site-footer {
    margin-top: 70px;
    background: var(--neutral-800);
    color: var(--neutral-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
    padding: 44px 0;
}

.footer-grid p {
    max-width: 520px;
    color: var(--neutral-400);
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 16px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--neutral-400);
    font-size: 14px;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 16px;
    text-align: center;
    color: var(--neutral-500);
    font-size: 14px;
}

@media (max-width: 1050px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        height: 520px;
    }

    .hero-slide::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.88));
    }

    .hero-control {
        display: none;
    }

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

    .section-title,
    .filter-bar,
    .search-box {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-four,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .list-thumb {
        min-height: 210px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-card,
    .side-card {
        padding: 18px;
    }
}
