:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --red-500: #ef4444;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fafc;
    color: #334155;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.24);
}

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

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

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.main-nav a {
    color: #dbeafe;
    font-weight: 700;
    padding: 9px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.22s ease, border-color 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
    border-color: var(--blue-500);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.38);
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 8px 10px 8px 14px;
}

.nav-search input::placeholder {
    color: #94a3b8;
}

.nav-search button,
.primary-btn,
.ghost-btn,
.text-link,
.play-start {
    border: 0;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.nav-search button {
    color: var(--white);
    background: var(--blue-600);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.nav-search button:hover,
.primary-btn:hover,
.play-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    color: var(--white);
    background: transparent;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-700));
}

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

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

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

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(37, 99, 235, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.14) 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: var(--white);
}

.hero-tags,
.card-tags,
.detail-tags,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 20px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.mini-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    padding: 7px 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-tags span:first-child {
    background: var(--blue-600);
    border-color: var(--blue-600);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 30px;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 25px);
    max-width: 680px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.35);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

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

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

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

.section {
    padding: 72px 0;
}

.section.white {
    background: var(--white);
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--blue-600);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #0f172a;
    line-height: 1.18;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--slate-500);
}

.text-link {
    color: var(--blue-600);
    background: transparent;
    font-weight: 800;
}

.text-link:hover {
    color: var(--blue-700);
}

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

.movie-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.04));
    opacity: 0.82;
}

.play-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--white);
    background: var(--blue-600);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.34);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span {
    display: inline-flex;
    align-items: center;
}

.movie-meta span:not(:last-child)::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 8px;
    border-radius: 999px;
    background: #cbd5e1;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.3;
}

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

.movie-card p {
    margin: 0 0 14px;
    color: var(--slate-600);
    min-height: 52px;
}

.card-tags span,
.mini-tags span {
    color: var(--blue-700);
    background: #dbeafe;
    padding: 4px 9px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background: var(--slate-900);
    box-shadow: var(--soft-shadow);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
    opacity: 0.76;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.12));
}

.category-tile-content {
    position: absolute;
    inset: auto 20px 20px;
    z-index: 2;
}

.category-tile h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: #dbeafe;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    font-size: 18px;
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-main h3 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 16px;
}

.rank-main p {
    margin: 0;
    color: var(--slate-500);
    font-size: 13px;
}

.rank-score {
    color: var(--red-500);
    font-weight: 900;
}

.page-hero {
    padding: 74px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.32), transparent 28%),
        linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(36px, 5vw, 56px);
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.filter-box {
    flex: 1;
    min-width: 240px;
}

.filter-box input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--slate-200);
    outline: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--slate-700);
    background: #f8fafc;
}

.filter-box input:focus {
    border-color: var(--blue-500);
    background: var(--white);
}

.sort-note {
    color: var(--slate-500);
    font-weight: 700;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.wide-poster {
    display: block;
    min-height: 148px;
    background: var(--slate-900);
}

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

.wide-body {
    padding: 18px;
}

.wide-body h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
}

.wide-body p {
    margin: 0 0 12px;
    color: var(--slate-600);
}

.detail-shell {
    padding: 38px 0 74px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--slate-500);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--blue-600);
}

.detail-hero {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 32px;
}

.detail-cover {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.detail-info {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-info h1 {
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -0.03em;
}

.detail-lead {
    margin: 18px 0 24px;
    color: var(--slate-600);
    font-size: 19px;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.detail-meta dt {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.detail-tags span {
    color: var(--blue-700);
    background: #dbeafe;
    padding: 7px 11px;
}

.player-section,
.story-section,
.related-section {
    margin-top: 28px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.player-section h2,
.story-section h2,
.related-section h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 28px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000;
    aspect-ratio: 16 / 9;
}

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

.play-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: auto;
    width: 116px;
    height: 116px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 24px 64px rgba(37, 99, 235, 0.48);
}

.player-box.is-playing .play-start {
    display: none;
}

.story-section p {
    margin: 0 0 18px;
    color: var(--slate-700);
    font-size: 18px;
}

.story-section p:last-child {
    margin-bottom: 0;
}

.no-results {
    display: none;
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    color: var(--slate-500);
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.no-results.visible {
    display: block;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 34px;
    padding: 52px 0 34px;
}

.footer-grid p {
    max-width: 430px;
    margin: 16px 0 0;
    color: #94a3b8;
}

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

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-grid a:hover {
    color: var(--blue-500);
}

.footer-bottom {
    padding: 20px;
    text-align: center;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.hidden-card {
    display: none !important;
}

@media (max-width: 980px) {
    .nav-wrap {
        flex-wrap: wrap;
        gap: 14px;
        padding: 12px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav,
    .nav-search {
        display: none;
        width: 100%;
    }

    .main-nav.open,
    .nav-search.open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .rank-list,
    .wide-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-slider {
        height: 600px;
    }

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

    .section {
        padding: 48px 0;
    }

    .section-head,
    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .detail-info,
    .player-section,
    .story-section,
    .related-section {
        padding: 20px;
    }

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

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

.mini-links {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--slate-200);
}

.mini-links a {
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 700;
}

.mini-links a:hover {
    color: var(--blue-600);
}

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

.movie-card.compact h3 {
    font-size: 18px;
}

.movie-card.compact p {
    min-height: 44px;
    font-size: 14px;
}
