:root {
    --bg: #f8fbff;
    --panel: #ffffff;
    --panel-soft: #f1f6ff;
    --text: #111827;
    --muted: #64748b;
    --line: #dbe6f7;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --indigo: #4f46e5;
    --violet: #7c3aed;
    --gold: #f59e0b;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #eef4ff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(219, 230, 247, 0.85);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-shell {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--blue), var(--indigo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link,
.mobile-nav-link {
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(248, 251, 255, 0.92);
}

.top-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 4px 8px 12px;
    color: var(--text);
}

.top-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #1f2937;
    border-radius: 99px;
}

.mobile-panel {
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.18), transparent 24rem),
        linear-gradient(135deg, #eff6ff 0%, #eef2ff 48%, #faf5ff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 12px 12px, rgba(37, 99, 235, 0.20) 2px, transparent 0),
        radial-gradient(circle at 42px 42px, rgba(79, 70, 229, 0.14) 2px, transparent 0);
    background-size: 64px 64px;
}

.hero-slider {
    position: relative;
    width: 100%;
    z-index: 2;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 48px;
    align-items: center;
    padding: 64px 0 70px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--blue);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    color: var(--blue);
}

.hero p {
    margin: 22px 0 0;
    color: #475569;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.30);
}

.btn-secondary {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: 460px;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(37, 99, 235, 0.46)),
        var(--hero-image),
        linear-gradient(135deg, #1d4ed8, #7c3aed);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster-card {
    position: absolute;
    right: 34px;
    bottom: 20px;
    width: min(360px, 82%);
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.90);
    border-radius: 34px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-mini {
    position: absolute;
    left: 0;
    top: 38px;
    width: min(260px, 56%);
    padding: 18px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
}

.hero-mini strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.hero-mini span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: -34px;
    padding-bottom: 34px;
    position: relative;
    z-index: 3;
}

.hero-dot {
    width: 36px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.22);
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--blue), var(--indigo));
}

.page-hero {
    padding: 64px 0 44px;
    background:
        radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.12), transparent 22rem),
        linear-gradient(135deg, #ffffff, #eef4ff);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.56);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-link {
    flex: 0 0 auto;
    color: var(--blue);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(219, 230, 247, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #dbeafe, #ede9fe 50%, #fdf2f8);
}

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

.poster-frame.image-missing img,
.hero-poster-card.image-missing img {
    opacity: 0;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.05);
}

.poster-glow {
    position: absolute;
    inset: auto 12px 12px 12px;
    height: 30%;
    z-index: 2;
    border-radius: 18px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.65), transparent);
    pointer-events: none;
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 4;
    display: grid;
    min-width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #ef4444);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.30);
}

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

.card-meta,
.detail-meta,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span,
.detail-meta span,
.tag-row span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #33517a;
    font-weight: 700;
}

.movie-card h2 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

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

.movie-card p {
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 28px;
    border: 1px solid rgba(219, 230, 247, 0.9);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 12rem),
        linear-gradient(135deg, #ffffff, #f1f6ff);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.category-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.category-card a {
    display: inline-flex;
    margin-top: 22px;
    color: var(--blue);
    font-weight: 800;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-chip {
    border: 1px solid var(--line);
    background: #ffffff;
    color: #475569;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    border-color: transparent;
}

.empty-state {
    display: none;
    padding: 30px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #ffffff;
}

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

.detail-hero {
    padding: 42px 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.14), transparent 22rem),
        linear-gradient(135deg, #f8fbff, #eef4ff);
}

.breadcrumb {
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--blue);
    font-weight: 800;
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-copy .lead {
    margin: 20px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

.detail-poster {
    overflow: hidden;
    border: 10px solid #ffffff;
    border-radius: 30px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.player-section {
    padding: 56px 0;
    background: #0f172a;
}

.player-shell {
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

.video-box {
    position: relative;
    background: #020617;
}

.video-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-box.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    box-shadow: 0 24px 46px rgba(37, 99, 235, 0.38);
    font-size: 34px;
}

.player-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.96);
}

.player-caption strong {
    color: #ffffff;
}

.content-block {
    padding: 66px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.article-panel,
.side-panel {
    padding: 30px;
    border: 1px solid rgba(219, 230, 247, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.article-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.article-panel p,
.side-panel p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.9;
}

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

.info-list div {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 10px;
    color: #475569;
}

.info-list dt {
    color: #0f172a;
    font-weight: 800;
}

.side-related {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.side-related a {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}

.side-related img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.side-related strong {
    display: block;
    line-height: 1.35;
}

.side-related span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 100px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.rank-num {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
}

.rank-row img {
    width: 100px;
    height: 132px;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.rank-row h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #111827 48%, #1e1b4b);
}

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

.footer-brand {
    color: #ffffff;
    font-size: 24px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #93c5fd;
}

.footer-bottom {
    padding: 18px 16px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .hero-slide,
    .detail-layout,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

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

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

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

    .nav-shell {
        height: 68px;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-slide {
        gap: 28px;
        padding: 46px 0 70px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-mini {
        width: 70%;
        top: 18px;
    }

    .hero-poster-card {
        right: 8px;
        width: 72%;
    }

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

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

    .section,
    .content-block {
        padding: 46px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 42px 74px 1fr;
    }

    .rank-row .btn {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .rank-row img {
        width: 74px;
        height: 98px;
        border-radius: 14px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .movie-card p {
        min-height: auto;
    }
}
