:root {
    --pudding-50: #fff8ec;
    --pudding-100: #ffefcf;
    --pudding-200: #ffdea3;
    --pudding-500: #f0a83a;
    --pudding-600: #d88a17;
    --moonlight-50: #f3f7ff;
    --moonlight-100: #e2ecff;
    --moonlight-200: #c7d9ff;
    --moonlight-400: #7da2ff;
    --moonlight-500: #5c82f2;
    --moonlight-600: #4768d7;
    --moonlight-700: #3852ad;
    --ink-900: #162033;
    --ink-700: #3e4b62;
    --ink-500: #68758d;
    --soft-pink: #ffe9f0;
    --soft-blue: #eaf1ff;
    --soft-green: #e8f8ef;
    --white: #ffffff;
    --radius-soft: 24px;
    --shadow-soft: 0 18px 45px rgba(71, 104, 215, 0.12);
    --shadow-card: 0 10px 32px rgba(22, 32, 51, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 222, 163, 0.55), transparent 32rem),
        radial-gradient(circle at top right, rgba(199, 217, 255, 0.7), transparent 34rem),
        linear-gradient(180deg, var(--pudding-50), #ffffff 42%, var(--moonlight-50));
    min-height: 100vh;
}

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

img {
    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: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 222, 163, 0.55);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink-900);
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pudding-200), var(--moonlight-200));
    color: var(--moonlight-700);
    box-shadow: 0 12px 24px rgba(71, 104, 215, 0.18);
}

.logo-text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--pudding-600), var(--moonlight-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--ink-700);
    font-weight: 650;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--moonlight-600);
}

.header-search {
    position: relative;
    width: 250px;
}

.header-search input {
    width: 100%;
    border: 1px solid rgba(240, 168, 58, 0.32);
    border-radius: 999px;
    padding: 11px 18px 11px 42px;
    outline: none;
    color: var(--ink-700);
    background: rgba(255, 248, 236, 0.9);
    transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    background: #fff;
    border-color: var(--moonlight-400);
    box-shadow: 0 0 0 4px rgba(92, 130, 242, 0.1);
}

.header-search span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-500);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--pudding-50);
    color: var(--ink-700);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 222, 163, 0.6);
    padding: 16px 0 20px;
}

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

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: var(--ink-700);
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 239, 207, 0.95), rgba(226, 236, 255, 0.95));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.8), transparent 12rem),
        radial-gradient(circle at 82% 34%, rgba(255, 255, 255, 0.75), transparent 18rem);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    min-height: 580px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    align-items: center;
    gap: 46px;
    min-height: 580px;
    padding: 56px 0 92px;
}

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

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink-700);
    box-shadow: 0 10px 25px rgba(22, 32, 51, 0.06);
    margin-bottom: 20px;
    font-size: 14px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    margin: 0 0 18px;
    letter-spacing: -0.05em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--pudding-600), var(--moonlight-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 0 28px;
    color: var(--ink-700);
    font-size: 18px;
    line-height: 1.85;
}

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

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

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

.btn-primary {
    color: #fff;
    background: var(--moonlight-600);
    box-shadow: 0 16px 30px rgba(71, 104, 215, 0.28);
}

.btn-primary:hover {
    background: var(--moonlight-700);
}

.btn-secondary {
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 28px rgba(22, 32, 51, 0.08);
}

.hero-art {
    position: relative;
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 28px 70px rgba(22, 32, 51, 0.18);
    background: rgba(255, 255, 255, 0.55);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(22, 32, 51, 0.72));
}

.hero-poster-text {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    color: #fff;
}

.hero-poster-text strong {
    display: block;
    font-size: 23px;
    margin-bottom: 8px;
}

.hero-poster-text span {
    color: rgba(255, 255, 255, 0.84);
}

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

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: var(--pudding-50);
    color: var(--pudding-600);
    font-size: 12px;
    font-weight: 700;
}

.chip-blue {
    background: var(--soft-blue);
    color: var(--moonlight-700);
}

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

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

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

.lift-panel {
    position: relative;
    z-index: 8;
    margin-top: -62px;
    margin-bottom: 68px;
}

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

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-soft);
    background: #fff;
    box-shadow: var(--shadow-soft);
    min-height: 210px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(22, 32, 51, 0.14);
}

.feature-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.08);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(22, 32, 51, 0.82));
}

.feature-content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
}

.feature-content h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.feature-content p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.84);
}

.section {
    padding: 24px 0 58px;
}

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

.section-heading h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: var(--ink-500);
    line-height: 1.7;
}

.section-link {
    color: var(--moonlight-600);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--pudding-100), var(--moonlight-100));
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.08);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(22, 32, 51, 0.65));
    opacity: 0.9;
}

.badge,
.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.badge {
    left: 10px;
    bottom: 10px;
    color: #fff;
    background: rgba(71, 104, 215, 0.88);
    backdrop-filter: blur(10px);
}

.year-badge {
    right: 10px;
    top: 10px;
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.86);
}

.rank-badge {
    left: 10px;
    top: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--pudding-500), var(--moonlight-600));
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 17px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

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

.card-body p {
    margin: 0 0 14px;
    color: var(--ink-500);
    line-height: 1.65;
    font-size: 14px;
}

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

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

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

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

.category-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pudding-100), var(--moonlight-100));
    margin-bottom: 18px;
}

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

.category-card p {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.65;
}

.page-hero {
    padding: 56px 0 38px;
    background: linear-gradient(135deg, rgba(255, 239, 207, 0.85), rgba(226, 236, 255, 0.92));
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--ink-500);
    font-size: 14px;
    margin-bottom: 18px;
}

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

.page-title {
    max-width: 820px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0;
}

.filter-panel {
    padding: 22px;
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
    margin-bottom: 28px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.filter-label {
    color: var(--ink-700);
    font-weight: 750;
    min-width: 76px;
}

.filter-button,
.sort-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--ink-700);
    background: var(--pudding-50);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-button:hover,
.sort-button:hover {
    transform: translateY(-1px);
    background: var(--moonlight-100);
}

.filter-button.active,
.sort-button.active {
    color: #fff;
    background: var(--moonlight-600);
}

.search-box {
    width: min(100%, 760px);
    position: relative;
}

.search-box input {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(71, 104, 215, 0.18);
    border-radius: 999px;
    padding: 0 22px 0 52px;
    outline: none;
    background: #fff;
    box-shadow: var(--shadow-card);
    color: var(--ink-700);
}

.search-box input:focus {
    border-color: var(--moonlight-400);
    box-shadow: 0 0 0 4px rgba(92, 130, 242, 0.1), var(--shadow-card);
}

.search-box span {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-500);
}

.no-results {
    display: none;
    padding: 34px;
    border-radius: var(--radius-soft);
    background: #fff;
    box-shadow: var(--shadow-card);
    color: var(--ink-500);
    text-align: center;
}

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

.filter-card[hidden] {
    display: none;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 28px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 120px 1fr;
    gap: 16px;
    align-items: center;
    border-radius: var(--radius-soft);
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #fff;
    font-weight: 850;
    background: linear-gradient(135deg, var(--pudding-500), var(--moonlight-600));
}

.rank-thumb {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    background: var(--moonlight-50);
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-info p {
    margin: 0 0 9px;
    color: var(--ink-500);
    line-height: 1.6;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    padding: 34px 0 64px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #101827;
    aspect-ratio: 16 / 9;
    box-shadow: 0 28px 70px rgba(22, 32, 51, 0.22);
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #101827;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.28), rgba(16, 24, 39, 0.82));
    transition: opacity 0.25s ease;
}

.player-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--moonlight-600);
    font-size: 30px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.content-card,
.side-card {
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

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

.content-card h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.15;
}

.content-card h2 {
    margin: 28px 0 12px;
    font-size: 23px;
}

.content-card p {
    margin: 0 0 16px;
    color: var(--ink-700);
    line-height: 1.9;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 20px;
}

.info-pill {
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--ink-700);
    background: var(--pudding-50);
    font-size: 13px;
    font-weight: 700;
}

.side-card {
    padding: 18px;
    margin-bottom: 22px;
}

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

.side-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
    background: var(--moonlight-50);
}

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

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

.side-link {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
}

.side-link-thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: var(--pudding-50);
}

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

.side-link h3 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
}

.side-link p {
    margin: 0;
    color: var(--ink-500);
    font-size: 12px;
}

.footer {
    border-top: 1px solid rgba(255, 222, 163, 0.65);
    background: linear-gradient(180deg, #ffffff, var(--pudding-50));
    padding: 44px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 30px;
}

.footer h2,
.footer h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.footer p,
.footer a {
    color: var(--ink-500);
    line-height: 1.8;
    font-size: 14px;
}

.footer a:hover {
    color: var(--moonlight-600);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 222, 163, 0.75);
    color: var(--ink-500);
    font-size: 14px;
}

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

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

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 38px;
    }

    .hero-art {
        max-width: 700px;
    }

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

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

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

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

    .hero,
    .hero-slider,
    .hero-grid {
        min-height: 660px;
    }

    .hero-grid {
        padding-bottom: 72px;
    }

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

    .hero-actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .lift-panel {
        margin-top: 22px;
    }

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

    .section-heading,
    .footer-bottom,
    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 48px 92px 1fr;
        gap: 10px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 14px;
    }

    .content-card {
        padding: 20px;
    }

    .side-link {
        grid-template-columns: 86px 1fr;
    }
}
